:root {
    --stat-bg: #ffffff;
    --stat-border: #E5E7EB;
    --stat-value-color: #3E3E3E;
    --stat-label-color: #8D8D8D;
    
    --table-header-bg: #F9FAFB;
    --table-row-hover: #F9FAFB;
    --progress-bg: #E5E7EB;
}

[data-theme="dark"] {
    --stat-bg: #181d24;
    --stat-border: #2b333e;
    --stat-value-color: #f3f4f6;
    --stat-label-color: #9ca8b5;
    
    --table-header-bg: #212936;
    --table-row-hover: #212936;
    --progress-bg: #2b333e;
}

.missionary-dashboard-banner {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: var(--card-bg, #FFFFFF);
    border-bottom: 1px solid var(--border-color, #E5E7EB);
    box-sizing: border-box;
}

.missionary-dashboard-banner-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 128px 20px;
    gap: 16px;
}

.missionary-dashboard-banner-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.missionary-dashboard-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color, #111827);
    margin: 0;
}

.missionary-dashboard-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary, #6B7280);
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    background-color: var(--stat-bg);
    border: 1px solid var(--stat-border);
    border-radius: 8px;
    padding: 16px 24px;
    gap: 8px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.stat-value {
    font-family: 'Work Sans', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--stat-value-color);
    margin: 0;
    line-height: 1.2;
}

.stat-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--stat-label-color);
    margin: 0;
    line-height: 1.4;
}

.stat-meta-highlight {
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #15803D;
    margin: 0;
    line-height: 1.4;
}

.stat-label-mobile-only {
    display: none;
}

.dashboard-content-wrapper {
    padding: 36px 128px;
    background-color: var(--bg-color, #F9FAFB);
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.dashboard-main-card {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tabs-header-bar {
    display: flex;
    background-color: var(--card-bg, #FFFFFF);
    border-bottom: 1px solid var(--border-color, #E5E7EB);
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.tabs-header-bar::-webkit-scrollbar {
    display: none;
}

.tab-nav-btn {
    height: 48px;
    padding: 0 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary, #6B7280);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    outline: none;
}

.tab-nav-btn:hover {
    color: var(--text-color, #111827);
}

.tab-nav-btn.active {
    color: var(--bell-bg, #0ea5e9);
    border-bottom-color: var(--bell-bg, #0ea5e9);
    font-weight: 600;
}

.tab-content-panel {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.alerts-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.alert-priority-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-priority-chip {
    height: 30px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--stat-border, #D1D5DB);
    background-color: var(--stat-bg, #FFFFFF);
    color: var(--stat-label-color, #374151);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.alert-priority-chip:hover {
    background-color: var(--bg-color, #F9FAFB);
}

.alert-priority-chip.active {
    background-color: #0EA5E9;
    border-color: #0EA5E9;
    color: #FFFFFF;
}

.alert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    background-color: var(--stat-bg, #FFFFFF);
    border: 1px solid var(--stat-border, #E5E7EB);
    border-radius: 12px;
    box-shadow: 0px 1.95px 3.36px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.alert-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.alert-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

.alert-badge.priority-alta {
    background-color: #FEF2F2;
    color: #DC2626;
}

.alert-badge.priority-média {
    background-color: #FFF7ED;
    color: #C2410C;
}

.alert-project-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color, #111827);
    margin: 0;
    line-height: 24px;
}

.alert-description {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
    letter-spacing: 0.2px;
    margin: 0;
}

.alert-description-line1,
.alert-description-line2 {
    display: inline;
}

.btn-alert-details {
    flex-shrink: 0;
    height: 38px;
    padding: 0 16px;
    background-color: var(--stat-bg, #FFFFFF);
    border: 1px solid var(--stat-border, #D1D5DB);
    border-radius: 4px;
    color: var(--stat-label-color, #374151);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-alert-details:hover {
    background-color: var(--bg-color, #F9FAFB);
}

.btn-label-mobile {
    display: none;
}

@media (max-width: 768px) {
    .alert-priority-filters {
        display: none;
    }

    .alert-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .alert-card-content {
        width: 100%;
    }

    .alert-description {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .alert-description-dot {
        display: none;
    }

    .btn-label-desktop {
        display: none;
    }

    .btn-label-mobile {
        display: inline;
    }
}

.table-actions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 12px;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-bottom: none;
    border-radius: 8px 8px 0px 0px;
    box-sizing: border-box;
    position: relative;
}

.dashboard-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 0 0 auto;
    position: relative;
}

.dashboard-search-input {
    width: 100%;
    height: 38px;
    padding: 0 32px 0 36px;
    border: 1px solid var(--border-color, #D1D5DB);
    background-color: var(--card-bg, #FFFFFF);
    color: var(--text-color, #111827);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.dashboard-search-input:focus {
    border-color: var(--bell-bg, #0EA5E9);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.projects-search-wrapper {
    width: 185px;
    flex: 0 0 auto;
}

.projects-search-input {
    height: 34px !important;
    padding-left: 36px !important;
    border-radius: 4px !important;
    border: 1px solid var(--border-color, #D1D5DB) !important;
    background-color: var(--card-bg, #FFFFFF) !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.dashboard-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 2;
}

.dashboard-search-icon path {
    fill: var(--Icon-icon-color, #6B7280);
}

.dashboard-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
}

.figma-close-svg {
    width: 9.188px;
    height: 9.188px;
    fill: var(--Icon-icon-color, #6B7280);
}

.dashboard-search-clear-icon {
    width: 14px;
    height: 14px;
}

.toolbar-right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-filter-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 30px;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #D1D5DB);
    border-radius: 4px;
    color: var(--text-color, #374151);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    gap: 6px;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    align-self: stretch;
}

.btn-filter-category:hover {
    background-color: var(--dropdown-hover, #f3f4f6);
}

.filter-chevron-svg {
    transition: transform 0.2s ease;
}

.btn-filter-category.open .filter-chevron-svg {
    transform: rotate(180deg);
}

.btn-new-project {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 16px;
    height: 38px;
    background-color: var(--bell-bg, #0EA5E9);
    border: 1px solid #F0F9FF;
    border-radius: 4px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    gap: 8px;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.btn-new-project:hover {
    background-color: var(--bell-hover, #0284c7);
}

.btn-new-project svg {
    fill: currentColor;
}

.category-filter-dropdown-wrapper {
    position: relative;
}

.category-filter-dropdown-menu {
    position: absolute;
    right: 0;
    top: 44px;
    z-index: 1050;
    width: 200px;
    background-color: var(--dropdown-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 6px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.category-filter-item {
    padding: 10px 16px;
    background: none;
    border: none;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-color, #374151);
    cursor: pointer;
    width: 100%;
}

.category-filter-item:hover {
    background-color: var(--dropdown-hover, #F3F4F6);
}

.category-filter-item.active {
    background-color: #F0F9FF;
    color: #0EA5E9;
    font-weight: 500;
}

.new-project-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-project-modal {
    background-color: var(--card-bg, #FFFFFF);
    border-radius: 8px;
    width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.new-project-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
}

.new-project-modal-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color, #111827);
    margin: 0;
}

.btn-close-modal {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
}

.new-project-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.new-project-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color, #E5E7EB);
    background-color: var(--table-header-bg, #F9FAFB);
}

.table-responsive-container {
    margin-top: -44px;
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 0px 0px 8px 8px;
    overflow-x: auto;
    background-color: var(--card-bg, #FFFFFF);
}

.dashboard-custom-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    text-align: left;
}

.dashboard-custom-table th {
    height: 44px;
    box-sizing: border-box;
    background-color: var(--table-header-bg);
    color: var(--text-secondary, #6B7280);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    text-transform: uppercase;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
}

.dashboard-custom-table td {
    height: 76px;
    box-sizing: border-box;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-color, #374151);
    vertical-align: middle;
}

.team-table th {
    height: 56px;
}

.team-table td {
    height: 50px;
    box-sizing: border-box;
    padding: 10px 12px;
    white-space: nowrap;
}

.dashboard-custom-table tr:last-child td {
    border-bottom: none;
}

.dashboard-custom-table tr:hover td {
    background-color: var(--table-row-hover);
}

.project-data-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.project-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background-color: var(--border-color, #E5E7EB);
}

.project-text-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-name-txt {
    font-weight: 500;
    color: var(--text-color, #111827);
}

.project-update-date {
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
}

.badge-status-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.badge-status-dashboard.disponível,
.badge-status-dashboard.disponivel {
    background-color: #F0F9FF;
    color: #0EA5E9;
}

.badge-status-dashboard.recrutamento,
.badge-status-dashboard.em-recrutamento {
    background-color: #FEF3C7;
    color: #D97706;
}

.badge-status-dashboard.urgente {
    background-color: #FEF2F2;
    color: #DC2626;
}

.contributions-table th:nth-child(1),
.contributions-table td:nth-child(1) {
    width: 78px;
}

.contributions-table th:nth-child(2),
.contributions-table td:nth-child(2) {
    width: 171px;
}

.contributions-table th:nth-child(3),
.contributions-table td:nth-child(3) {
    width: 233px;
}

.contributions-table th:nth-child(4),
.contributions-table td:nth-child(4) {
    width: 206px;
}

.contribution-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 5px;
    border-radius: 12px;
    background-color: #DCFCE7;
    color: #15803D;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.contribution-status-badge i {
    font-size: 13px;
}

.meta-fin-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 120px;
}

.meta-fin-txt-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
}

.meta-fin-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--progress-bg);
    border-radius: 3px;
    overflow: hidden;
}

.meta-fin-bar-fill {
    height: 100%;
    background-color: var(--bell-bg, #0ea5e9);
    border-radius: 3px;
}

.meta-fin-bar-fill.progress-pct-0 { width: 0%; }
.meta-fin-bar-fill.progress-pct-5 { width: 5%; }
.meta-fin-bar-fill.progress-pct-10 { width: 10%; }
.meta-fin-bar-fill.progress-pct-15 { width: 15%; }
.meta-fin-bar-fill.progress-pct-20 { width: 20%; }
.meta-fin-bar-fill.progress-pct-25 { width: 25%; }
.meta-fin-bar-fill.progress-pct-30 { width: 30%; }
.meta-fin-bar-fill.progress-pct-35 { width: 35%; }
.meta-fin-bar-fill.progress-pct-40 { width: 40%; }
.meta-fin-bar-fill.progress-pct-45 { width: 45%; }
.meta-fin-bar-fill.progress-pct-50 { width: 50%; }
.meta-fin-bar-fill.progress-pct-55 { width: 55%; }
.meta-fin-bar-fill.progress-pct-60 { width: 60%; }
.meta-fin-bar-fill.progress-pct-65 { width: 65%; }
.meta-fin-bar-fill.progress-pct-70 { width: 70%; }
.meta-fin-bar-fill.progress-pct-75 { width: 75%; }
.meta-fin-bar-fill.progress-pct-80 { width: 80%; }
.meta-fin-bar-fill.progress-pct-85 { width: 85%; }
.meta-fin-bar-fill.progress-pct-90 { width: 90%; }
.meta-fin-bar-fill.progress-pct-95 { width: 95%; }
.meta-fin-bar-fill.progress-pct-100 { width: 100%; }

.custom-checkbox-td {
    width: 20px;
}

.custom-checkbox-td input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

@media (max-width: 1200px) {
    .missionary-dashboard-banner-content,
    .dashboard-content-wrapper {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .missionary-dashboard-banner-content,
    .dashboard-content-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .missionary-dashboard-banner-content {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-new-project {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .stat-value {
        order: 1;
    }
    .stat-label {
        order: 2;
    }
    .stat-label-desktop-only {
        display: none;
    }
    .stat-meta-highlight {
        display: none;
    }
    .stat-label-mobile-only {
        display: inline;
    }

    .table-actions-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .dashboard-search-wrapper {
        width: 100%;
    }

    .projects-search-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .toolbar-right-actions {
        width: 100%;
    }

    .category-filter-dropdown-wrapper {
        width: 100%;
    }

    .btn-filter-category {
        width: 100%;
    }
}

.member-profile-cell {
    vertical-align: middle;
}

.member-profile-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar-wrapper {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-initials {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4B5563;
}

.member-name-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
}

.member-header-mobile,
.member-mobile-status-badge {
    display: none;
}

.team-data-grid-card {
    display: contents;
}

.team-table td {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    color: #000000;
}

.badge-check-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.team-table th.text-right-col {
    text-align: right;
}

.team-table td.text-center-col,
.team-table th.text-center-col {
    text-align: center;
}

.team-table th:nth-child(2),
.team-table td:nth-child(2),
.team-table th:nth-child(4),
.team-table td:nth-child(4) {
    width: 127px;
}

.member-skills-cell {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.member-skill-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 1000px;
    background-color: #F3F4F6;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.member-skill-overflow {
    cursor: default;
}

.actions-th-header {
    text-align: right !important;
    width: 80px;
}

.actions-td-cell {
    text-align: right !important;
}

.btn-table-actions {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    color: #9CA3AF;
    transition: background-color 0.2s, color 0.2s;
}

.btn-table-actions:hover {
    background-color: #F3F4F6;
    color: #4B5563;
}

.table-pagination-container {
    margin-top: -44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-sizing: border-box;
}

.table-responsive-container:has(+ .table-pagination-container) {
    border-radius: 0;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0;
}

.btn-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 7px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #374151);
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-right-width: 0;
    border-radius: 0;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-pagination svg {
    display: block;
}

.btn-pagination svg path {
    fill: var(--text-color, #374151);
}

.btn-pagination:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.btn-pagination:last-child {
    border-right-width: 1px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.btn-pagination:hover:not([disabled]) {
    background-color: var(--table-row-hover, #F9FAFB);
}

.btn-pagination.active {
    background-color: #F0F9FF;
    color: #0EA5E9;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.btn-pagination[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: var(--table-row-hover, #F9FAFB);
}

.pagination-info {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
}

@media (max-width: 768px) {
    .missionary-dashboard-banner-content {
        padding: 40px 16px;
        gap: 0;
    }

    .missionary-dashboard-banner .btn-new-project {
        display: none;
    }

    .dashboard-content-wrapper {
        padding: 36px 16px;
    }

    .stats-grid {
        gap: 18px;
    }

    .stat-card {
        gap: 4px;
    }

    .dashboard-main-card {
        border-radius: 12px;
    }

    .dashboard-main-card:has(.team-table) {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .tabs-header-bar:has(.tab-nav-btn:nth-child(4).active) .tab-nav-btn:nth-child(1),
    .tabs-header-bar:has(.tab-nav-btn:nth-child(4).active) .tab-nav-btn:nth-child(2) {
        display: none;
    }

    .dashboard-main-card:has(.team-table) .tab-content-panel {
        width: 100%;
        box-sizing: border-box;
        padding: 22px 16px;
        gap: 0;
        align-items: flex-start;
    }

    .team-data-grid-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border: 1px solid var(--border-color, #E5E7EB);
        border-radius: 8px;
        box-shadow: none;
        overflow: hidden;
        background: var(--card-bg, #FFFFFF);
    }

    .dashboard-main-card:has(.team-table) .table-actions-toolbar {
        width: 100%;
        height: 104px;
        box-sizing: border-box;
        padding: 16px 12px;
        gap: 12px;
        border: 0;
        border-radius: 0;
    }

    .dashboard-main-card:has(.team-table) .table-responsive-container,
    .dashboard-main-card:has(.team-table) .table-pagination-container {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        align-self: stretch;
    }

    .dashboard-main-card:has(.team-table) .dashboard-search-wrapper,
    .dashboard-main-card:has(.team-table) .toolbar-right-actions {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .dashboard-main-card:has(.team-table) .dashboard-search-input {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        height: 30px !important;
        min-height: 30px;
        padding-left: 36px !important;
        padding-right: 30px !important;
        border-radius: 4px !important;
        font-size: 14px;
        line-height: 20px;
    }

    .dashboard-main-card:has(.team-table) .btn-new-project {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        height: 30px;
        min-height: 30px;
        font-size: 14px;
        line-height: 20px;
        padding-top: 0;
        padding-bottom: 0;
    }

    .dashboard-main-card:has(.team-table) .table-responsive-container {
        height: 291px;
        margin-top: 0;
        border: 1px solid var(--border-color, #E5E7EB);
        border-radius: 0;
        overflow-x: hidden;
    }

    .dashboard-main-card:has(.team-table) .table-pagination-container {
        height: 38px;
        margin-top: 0;
        border: 0;
        border-radius: 0;
    }

    .team-table {
        table-layout: fixed;
        width: 100%;
        max-width: none;
    }

    .team-table th:nth-child(2),
    .team-table td:nth-child(2),
    .team-table th:nth-child(3),
    .team-table td:nth-child(3),
    .team-table th:nth-child(5),
    .team-table td:nth-child(5) {
        display: none;
    }

    .team-table th:nth-child(1),
    .team-table td:nth-child(1) {
        width: 59.1216%;
        max-width: 59.1216%;
    }

    .team-table th:nth-child(4),
    .team-table td:nth-child(4) {
        width: 40.8784%;
        max-width: 40.8784%;
        text-align: left !important;
    }

    .team-table th {
        height: 56px;
    }

    .team-table th,
    .team-table td {
        padding: 10px 12px;
    }

    .team-table td {
        height: 47px;
    }

    .member-profile-content {
        min-width: 0;
    }

    .member-name-text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .member-header-desktop,
    .member-availability-text {
        display: none;
    }

    .member-header-mobile {
        display: inline;
    }

    .member-availability-cell {
        text-align: left !important;
    }

    .member-mobile-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 24px;
        padding: 4px 5px;
        border-radius: 12px;
        background-color: var(--success-light, #DCFCE7);
        color: var(--success, #15803D);
        font-family: 'Work Sans', sans-serif;
        font-size: 14px;
        font-weight: 500;
        line-height: 16px;
        white-space: nowrap;
    }

    .member-mobile-status-badge i {
        font-size: 16px;
        line-height: 1;
    }

    .table-pagination-container {
        padding: 0;
    }

    .pagination-buttons {
        width: 100%;
    }

    .pagination-info {
        display: none;
    }

    .pagination-buttons .btn-pagination {
        flex: 1 1 0;
        padding: 7px 16px;
    }

    .pagination-buttons .btn-pagination:not(:first-child):not(:nth-child(2)):not(:nth-last-child(2)):not(:last-child) {
        display: none;
    }
}

.project-actions-wrap {
    position: relative;
    display: inline-flex;
    justify-content: center;
    overflow: visible;
}

.project-btn-dots {
    background: none;
    border: none;
    color: var(--text-secondary, #6B7280);
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-btn-dots:hover {
    background: var(--ark-fundo-claro, #F3F4F6);
    color: var(--text-color, #111827);
}

.project-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: transparent;
}

.project-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 100;
    min-width: 180px;
    background: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.project-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-color, #111827);
    cursor: pointer;
    text-align: left;
}

.project-dropdown button:hover {
    background: var(--ark-fundo-claro, #F3F4F6);
}

.project-dropdown button i {
    width: 16px;
    color: var(--text-secondary, #6B7280);
}

.project-action-danger {
    color: #DC2626 !important;
}

.project-action-danger i {
    color: #DC2626 !important;
}

.icon-margin-right-sm {
    margin-right: 2px;
}

.dashboard-loading-state {
    padding: 100px 0;
    text-align: center;
    color: var(--text-secondary);
}

.dashboard-spinner-centered {
    margin: 0 auto 16px;
}

.dashboard-error-state {
    padding: 100px 20px;
    text-align: center;
    color: #DC2626;
}

.dashboard-error-title {
    font-weight: 600;
}

.dashboard-error-message {
    margin-bottom: 16px;
}

.dashboard-retry-btn {
    padding: 8px 16px;
}

.dashboard-table-empty-cell {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.dashboard-table-empty-cell-sm {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}

.project-name-clickable {
    cursor: pointer;
}

.text-medium {
    font-weight: 500;
}

.alerts-empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

.alerts-empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: #D97706;
}

.alerts-empty-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-color);
}

.alerts-empty-text {
    font-size: 14px;
}

.pagination-icon-flip {
    transform: scaleX(-1);
}
