:root {
    --bg-color: #F9FAFB;
    --card-bg: #FFFFFF;
    --border-color: #E5E7EB;
    --text-color: #111827;
    --text-secondary: #6B7280;
    --header-gradient: linear-gradient(90deg, #5395BB 0%, #3D799E 50%, #050A0C 100%);
    --bell-bg: #0ea5e9;
    --bell-hover: #0284c7;
    --dropdown-bg: #ffffff;
    --dropdown-border: #D1D5DB;
    --dropdown-text: #374151;
    --dropdown-hover: #f3f4f6;
}

[data-theme="dark"] {
    --bg-color: #0f1216;
    --card-bg: #181d24;
    --border-color: #2b333e;
    --text-color: #f3f4f6;
    --text-secondary: #9ca8b5;
    --header-gradient: linear-gradient(90deg, #243b55 0%, #141e30 100%);
    --bell-bg: #38bdf8;
    --bell-hover: #0ea5e9;
    --dropdown-bg: #1e242e;
    --dropdown-border: #353f4f;
    --dropdown-text: #e5e7eb;
    --dropdown-hover: #2d3748;
}

.main-container:has(.missionaries-page-wrapper) .main-content {
    padding: 0 !important;
    margin: 0 !important;
}

.main-container:has(.missionaries-page-wrapper) .top-header {
    display: none !important;
}

.missionaries-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    padding: 0 24px;
    background: var(--header-gradient);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
}

.missionaries-mobile-menu-btn {
    display: none;
}

.missionaries-mobile-menu-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1.6px solid currentColor;
    border-radius: 4px;
}

.missionaries-mobile-menu-icon::before {
    content: "";
    position: absolute;
    top: 1px;
    bottom: 1px;
    left: 6px;
    width: 1.6px;
    background: currentColor;
    border-radius: 99px;
}

.missionaries-top-bar-divider {
    display: none;
}

.missionaries-top-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.missionaries-top-bar-title-module {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    color: #ffffff;
}

.missionaries-top-bar-dropdown {
    position: relative;
    display: inline-block;
    margin-right: auto;
    margin-left: 16px;
}

.missionaries-top-bar-dropdown-toggle {
    height: 38px;
    padding: 0 16px;
    background-color: var(--dropdown-bg);
    color: var(--dropdown-text);
    border: 1px solid var(--dropdown-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.missionaries-top-bar-dropdown-toggle:hover {
    background-color: var(--dropdown-hover);
}

.missionaries-top-bar-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: var(--dropdown-bg);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 180px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    z-index: 1050;
    border: 1px solid var(--border-color, #E5E7EB);
}

.missionaries-top-bar-dropdown-item {
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.dropdown-toggle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dropdown-menu-item-flex {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu-item-icon {
    width: 16.667px;
    height: 16.667px;
    flex-shrink: 0;
}

.missionaries-top-bar-dropdown-item:hover {
    background-color: var(--dropdown-hover);
    color: var(--text-color);
}

.missionaries-top-bar-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1040;
    background: transparent;
}

.module-selector-wrapper {
    position: relative;
    display: inline-block;
}

.module-selector-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.module-selector-chevron {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.module-selector-chevron.open {
    transform: rotate(180deg);
}

.module-selector-menu {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    background-color: var(--dropdown-bg);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 280px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    z-index: 1050;
    border: 1px solid var(--dropdown-border);
}

.module-selector-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.15s;
}

.module-selector-item:hover:not(.disabled) {
    background-color: var(--dropdown-hover);
}

.module-selector-item.active {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
}

.module-selector-item.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.module-item-texts {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.module-item-texts strong {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
}

.module-item-texts span {
    font-size: 11px;
    color: var(--text-secondary);
}

.badge-soon {
    font-size: 9px;
    background-color: #ef4444;
    color: #ffffff;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 700;
}

.module-selector-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1040;
    background: transparent;
}

.module-horizontal-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: 32px;
    margin-right: auto;
}

.module-horizontal-nav .nav-item {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
    border-bottom: 2px solid transparent;
    padding: 20px 0;
}

.module-horizontal-nav .nav-item:hover {
    color: #ffffff;
}

.module-horizontal-nav .nav-item.active {
    color: #ffffff;
    font-weight: 600;
    border-bottom-color: #ffffff;
}

.missionaries-top-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .module-horizontal-nav {
        display: none;
    }
}

.missionaries-page-wrapper .notification-bell-blue {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: var(--bell-bg);
    display: inline-grid;
    place-items: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    font-size: 16px;
    padding: 0;
}

.missionaries-page-wrapper .notification-bell-blue:hover {
    background-color: var(--bell-hover);
}

.missionaries-page-wrapper .notification-bell-blue:active {
    transform: scale(0.95);
}

.missionaries-page-wrapper .notification-bell-blue svg {
    display: block;
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.missionaries-page-wrapper .bell-dot {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    border: 1px solid #0ea5e9;
}

.missionaries-page-wrapper .bell-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 1.5px solid #0ea5e9;
    border-radius: 999px;
    color: #ffffff;
    background: #ef4444;
    font-size: 9px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
}

.missionaries-page-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    background-color: var(--bg-color, #F9FAFB);
    box-sizing: border-box;
    overflow-x: hidden;
}

.missionaries-banner {
    display: flex;
    justify-content: center;
    width: 100%;
    background: var(--Background-content-bg-color, #FFF);
    border-bottom: 1px solid var(--Border-border-light, #E5E7EB);
    box-sizing: border-box;
}

.missionaries-banner-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 40px 56px 20px 56px;
    gap: 32px;
    align-self: stretch;
}

.missionaries-banner-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
}

.missionaries-banner-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color, #111827);
    margin: 0;
}

.missionaries-banner-subtitle {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-secondary, #6B7280);
    margin: 0;
}

.missionary-banner-buttons {
    display: flex;
    gap: 12px;
}

.my-projects-banner-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .my-projects-banner-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }

    .my-projects-banner-actions .btn-find-mission-filter {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .missionary-projects-grid.my-projects-grid > :nth-child(n+2) {
        display: block;
    }
}

.missionary-banner-action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.missionaries-content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    padding: 32px 56px;
    gap: 64px;
}

.missionary-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.missionary-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.missionary-section-header-right {
    margin-top: 8px;
}

.missionary-section-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color, #111827);
    margin: 0;
}

.missionary-section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
    margin: 4px 0 0 0;
}

.btn-section-action {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    color: #0EA5E9;
    border: 0;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}

.btn-section-action:hover {
    background: transparent;
    color: #0284C7;
}

.btn-section-action-chevron {
    display: none;
}

.missionary-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    align-items: stretch;
}

.missionary-profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.missionary-profile-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    min-height: 179px;
    padding: 18px 22px;
    background: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 8px;
}

.missionary-profile-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.missionary-profile-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    object-fit: cover;
    background: #E5E7EB;
}

.missionary-profile-card-main {
    min-width: 0;
}

.missionary-profile-card-main h3 {
    margin: 0;
    color: var(--text-color, #111827);
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.missionary-profile-card-main span,
.missionary-profile-card-meta {
    color: var(--text-secondary, #6B7280);
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    line-height: 18px;
}

.missionary-profile-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.missionary-profile-card-meta span {
    padding: 4px 8px;
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 999px;
    background: #F9FAFB;
}

.missionary-profile-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.missionary-profile-card-skills span {
    padding: 5px 8px;
    color: #374151;
    background: #EFF6FF;
    border-radius: 999px;
    font-size: 12px;
    line-height: 16px;
}

.missionary-profile-support-button {
    display: flex;
    align-self: stretch;
    height: 30px;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    background: #FFFFFF;
    color: #374151;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.missionary-profile-support-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #FFF, 0 0 0 4px #4F46E5;
}

.missionary-profile-support-button:hover {
    background: #F9FAFB;
}

.missionary-project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.missionary-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.missionary-project-card-clickable {
    cursor: pointer;
}

.missionary-project-card-header {
    position: relative;
    height: 160px;
    background-color: var(--border-color, #E5E7EB);
}

.missionary-project-card-image {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.missionary-project-card-body {
    display: flex;
    flex-direction: column;
    padding: 16px 12px 12px;
    flex: 1;
}

.missionary-project-card-badge-row {
    display: flex;
    margin-bottom: 8px;
}

.missionary-project-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 2px 10px;
    border-radius: 1000px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.missionary-project-badge.status-disponível,
.missionary-project-badge.status-disponivel,
.missionary-project-badge.status-em-recrutamento {
    background-color: #F0F9FF;
    color: #0EA5E9;
}

.missionary-project-badge.status-últimas-vagas,
.missionary-project-badge.status-ultimas-vagas {
    background-color: #FEF3C7;
    color: #D97706;
}

.missionary-project-badge.status-urgente {
    background-color: #FEF2F2;
    color: #DC2626;
}

.missionary-project-badge.status-ativo {
    background-color: #F0FDF4;
    color: #15803D;
}

.missionary-project-badge.status-encerrado {
    background-color: #F3F4F6;
    color: #4B5563;
}

.missionary-project-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 22px;
}

.missionary-project-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color, #111827);
    margin: 0;
}

.missionary-project-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
}

.missionary-project-location-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.missionary-project-progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.missionary-project-spots-text {
    font-family: 'Work Sans', sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary, #6B7280);
}

.missionary-project-progress-bar-bg {
    width: 100%;
    height: 9px;
    background-color: var(--border-color, #E5E7EB);
    border-radius: 8px;
    overflow: hidden;
}

.missionary-project-progress-bar-fill {
    height: 100%;
    background-color: #0EA5E9;
    border-radius: 8px;
}

.missionary-project-progress-bar-fill.pct-0 { width: 0%; }
.missionary-project-progress-bar-fill.pct-5 { width: 5%; }
.missionary-project-progress-bar-fill.pct-10 { width: 10%; }
.missionary-project-progress-bar-fill.pct-15 { width: 15%; }
.missionary-project-progress-bar-fill.pct-20 { width: 20%; }
.missionary-project-progress-bar-fill.pct-25 { width: 25%; }
.missionary-project-progress-bar-fill.pct-30 { width: 30%; }
.missionary-project-progress-bar-fill.pct-35 { width: 35%; }
.missionary-project-progress-bar-fill.pct-40 { width: 40%; }
.missionary-project-progress-bar-fill.pct-45 { width: 45%; }
.missionary-project-progress-bar-fill.pct-50 { width: 50%; }
.missionary-project-progress-bar-fill.pct-55 { width: 55%; }
.missionary-project-progress-bar-fill.pct-60 { width: 60%; }
.missionary-project-progress-bar-fill.pct-65 { width: 65%; }
.missionary-project-progress-bar-fill.pct-70 { width: 70%; }
.missionary-project-progress-bar-fill.pct-75 { width: 75%; }
.missionary-project-progress-bar-fill.pct-80 { width: 80%; }
.missionary-project-progress-bar-fill.pct-85 { width: 85%; }
.missionary-project-progress-bar-fill.pct-90 { width: 90%; }
.missionary-project-progress-bar-fill.pct-95 { width: 95%; }
.missionary-project-progress-bar-fill.pct-100 { width: 100%; }

.missionary-project-financials {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color, #E5E7EB);
}

.financial-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.financial-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-secondary, #6B7280);
}

.financial-value {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #111827);
}

.financial-item-right {
    text-align: right;
}

.missionary-project-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--card-bg, #FFFFFF);
    border-top: 1px solid var(--border-color, #E5E7EB);
}

.btn-ver-mais {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    background-color: var(--card-bg, #FFFFFF);
    color: var(--text-color, #374151);
    border: 1px solid var(--border-color, #D1D5DB);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-ver-mais:hover {
    background-color: var(--bg-color, #F9FAFB);
}

.btn-participar {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    background-color: #0EA5E9;
    color: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-participar:hover {
    background-color: #0284C7;
}

.missionary-table-section {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 8px;
    overflow: visible;
}

.missionary-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 12px;
    background-color: var(--card-bg, #FFFFFF);
    border-bottom: 1px solid var(--border-color, #E5E7EB);
}

.search-box-wrapper {
    position: relative;
    width: 241px;
}

.search-icon-img {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.search-input {
    width: 100%;
    height: 34px;
    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-sizing: border-box;
}

.search-input:focus {
    border-color: #0EA5E9;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.close-icon-img {
    width: 14px;
    height: 14px;
}

.search-clear-btn:hover {
    color: #4B5563;
}

.filter-dropdown-wrapper-v3 {
    position: relative;
}

.btn-filter-v3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    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;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-filter-v3:hover {
    background-color: var(--bg-color, #F9FAFB);
}

.filter-dropdown-menu-v3 {
    position: absolute;
    right: 0;
    top: 36px;
    z-index: 100;
    width: 100%;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.filter-dropdown-item-v3 {
    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%;
}

.filter-dropdown-item-v3:hover {
    background-color: var(--bg-color, #F3F4F6);
}

.filter-dropdown-item-v3.active {
    background-color: #F0F9FF;
    color: #0EA5E9;
    font-weight: 500;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.missionary-projects-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.missionary-projects-table th {
    background-color: var(--bg-color, #F9FAFB);
    color: var(--text-color, #374151);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
}

.missionary-projects-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
    vertical-align: middle;
}

.missionary-projects-table tr:hover {
    background-color: var(--bg-color, #F9FAFB);
}

.missionary-projects-table tr.row-selected {
    background-color: rgba(14, 165, 233, 0.08) !important;
}

.col-checkbox {
    width: 48px;
    text-align: center;
}

.col-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.col-projeto {
    min-width: 260px;
}

.project-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.project-info-cell:hover .project-cell-title {
    color: #0EA5E9;
}

.project-cell-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}

.project-cell-texts {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-cell-title {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #111827);
    transition: color 0.2s ease;
}

.project-cell-date {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-secondary, #6B7280);
}

.table-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 1000px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.table-badge.status-em-recrutamento {
    background-color: #FEF3C7;
    color: #D97706;
}

.table-badge.status-disponivel {
    background-color: #F0F9FF;
    color: #0EA5E9;
}

.table-badge.status-urgente {
    background-color: #FEF2F2;
    color: #DC2626;
}

.table-text-normal {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-color, #374151);
}

.table-progress-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 120px;
}

.table-progress-percentage {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color, #374151);
}

.table-progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: var(--border-color, #E5E7EB);
    border-radius: 4px;
    overflow: hidden;
}

.table-progress-bar-fill {
    height: 100%;
    background-color: #0EA5E9;
    border-radius: 4px;
}

.table-empty-row {
    text-align: center;
    padding: 32px !important;
    color: var(--text-secondary, #6B7280);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.missionary-updates-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.missionary-update-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 12px;
    gap: 16px;
}

.missionary-update-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.missionary-update-project-badge {
    display: flex;
}

.update-project-link {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #0EA5E9;
    cursor: pointer;
    background-color: rgba(14, 165, 233, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.update-project-link:hover {
    text-decoration: underline;
}

.missionary-update-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color, #111827);
    margin: 0;
    line-height: 28px;
}

.missionary-update-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-color, #374151);
}

.missionary-update-image-wrapper {
    width: 265px;
    height: 198px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--border-color, #E5E7EB);
}

.missionary-update-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.missionary-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 27px;
    height: 38px;
    background-color: #F3F4F6;
    border-top: 1px solid rgba(75, 85, 99, 0.25);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #4B5563;
}

.loading-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
    text-align: center;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 12px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color, #E5E7EB);
    border-top-color: #0EA5E9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.error-icon {
    font-size: 48px;
    color: #DC2626;
    margin-bottom: 16px;
}

.error-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color, #111827);
    margin: 0 0 8px 0;
}

.error-message {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary, #6B7280);
    margin: 0 0 24px 0;
    max-width: 400px;
}

.btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    background-color: #0EA5E9;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-retry:hover {
    background-color: #0284C7;
}

.section-empty-state {
    padding: 32px;
    text-align: center;
    background-color: var(--card-bg, #FFFFFF);
    border: 1px dashed var(--border-color, #E5E7EB);
    border-radius: 8px;
    color: var(--text-secondary, #6B7280);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.mock-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mock-modal-card {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E5E7EB);
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

.mock-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color, #E5E7EB);
}

.mock-modal-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color, #111827);
    margin: 0;
}

.mock-modal-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary, #9CA3AF);
    cursor: pointer;
    line-height: 1;
}

.mock-modal-close-btn:hover {
    color: var(--text-color, #111827);
}

.mock-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-modal-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-color, #374151);
    line-height: 20px;
    margin: 0;
}

.mock-modal-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background-color: rgba(14, 165, 233, 0.08);
    padding: 12px;
    border-radius: 6px;
    color: #0284C7;
}

.mock-modal-alert i {
    font-size: 16px;
    margin-top: 2px;
}

.mock-modal-disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 16px;
}

.mock-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 20px;
    border-top: 1px solid var(--border-color, #E5E7EB);
}

.btn-mock-modal-close {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    background-color: #0EA5E9;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-mock-modal-close:hover {
    background-color: #0284C7;
}

[data-theme="dark"] .missionary-project-badge.status-disponivel {
    background-color: rgba(14, 165, 233, 0.15);
    color: #38BDF8;
}

[data-theme="dark"] .missionary-project-badge.status-em-recrutamento,
[data-theme="dark"] .missionary-project-badge.status-últimas-vagas,
[data-theme="dark"] .missionary-project-badge.status-ultimas-vagas {
    background-color: rgba(217, 119, 6, 0.15);
    color: #FBBF24;
}

[data-theme="dark"] .missionary-project-badge.status-urgente {
    background-color: rgba(220, 38, 38, 0.15);
    color: #F87171;
}

[data-theme="dark"] .missionary-project-badge.status-ativo {
    background-color: rgba(21, 128, 61, 0.15);
    color: #4ADE80;
}

[data-theme="dark"] .missionary-project-badge.status-encerrado {
    background-color: rgba(107, 114, 128, 0.2);
    color: #D1D5DB;
}

[data-theme="dark"] .table-badge.status-disponivel {
    background-color: rgba(14, 165, 233, 0.15);
    color: #38BDF8;
}

[data-theme="dark"] .table-badge.status-em-recrutamento {
    background-color: rgba(217, 119, 6, 0.15);
    color: #FBBF24;
}

[data-theme="dark"] .table-badge.status-urgente {
    background-color: rgba(220, 38, 38, 0.15);
    color: #F87171;
}

[data-theme="dark"] .filter-dropdown-item-v3.active {
    background-color: rgba(14, 165, 233, 0.15);
    color: #38BDF8;
}

[data-theme="dark"] .filter-dropdown-item-v3:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}





.missionary-table-toolbar {
    height: 74px;
    box-sizing: border-box;
}

.filter-dropdown-wrapper-v3,
.btn-filter-v3 {
    width: 179px;
}

.missionary-projects-table {
    min-width: 1072px;
    table-layout: fixed;
}

.missionary-projects-table th {
    height: 44px;
    padding: 0 16px;
    box-sizing: border-box;
}

.missionary-projects-table td {
    height: 76px;
    padding: 0 16px;
    box-sizing: border-box;
}

.col-checkbox { width: 44px; }
.col-projeto { width: 289px; min-width: 289px; }
.col-status { width: 152px; }
.col-equipe { width: 197px; }
.col-candidaturas { width: 189px; }
.col-meta { width: 201px; }

.project-info-cell {
    gap: 0;
}

.project-cell-img {
    margin-right: 16px;
}

.missionary-update-card {
    height: 234px;
    padding: 18px 22px;
    align-items: flex-start;
    border-radius: 0;
    box-sizing: border-box;
}

.missionary-update-content {
    flex: 0 1 747px;
    max-width: 747px;
}

.missionary-update-image-wrapper {
    width: 265px;
    height: 198px;
    margin-left: auto;
    border-radius: 0;
}

[data-theme="dark"] .missionary-footer {
    background-color: var(--card-bg, #1e2329);
    border-top-color: var(--border-color, #353d48);
}

[data-theme="dark"] .footer-copyright {
    color: var(--text-secondary, #9ca8b5);
}

@media (max-width: 1024px) {
    .missionary-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .missionaries-top-bar {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        height: 102px;
        padding: 12px 6px;
        align-items: center;
        gap: 12px;
        box-sizing: border-box;
    }

    .missionaries-top-bar-left {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .missionaries-mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        color: #ffffff;
        cursor: pointer;
        padding: 0;
        width: 24px;
        height: 24px;
    }

    .missionaries-mobile-menu-btn.is-back .missionaries-mobile-menu-icon {
        width: 18px;
        height: 18px;
        border: 0;
        border-radius: 0;
    }

    .missionaries-mobile-menu-btn.is-back .missionaries-mobile-menu-icon::before {
        top: 8px;
        left: 3px;
        width: 14px;
        height: 1.6px;
        background: currentColor;
        transform: none;
    }

    .missionaries-mobile-menu-btn.is-back .missionaries-mobile-menu-icon::after {
        content: "";
        position: absolute;
        top: 4px;
        left: 3px;
        width: 8px;
        height: 8px;
        border-left: 1.6px solid currentColor;
        border-bottom: 1.6px solid currentColor;
        transform: rotate(45deg);
        transform-origin: center;
    }

    .missionaries-top-bar-divider {
        display: block;
        width: 1px;
        height: 20px;
        background-color: rgba(255, 255, 255, 0.3);
    }

    .missionaries-top-bar-title-module {
        font-size: 20px;
        line-height: 28px;
    }

    .missionaries-top-bar-dropdown {
        grid-column: 1 / span 2;
        grid-row: 2;
        width: 100%;
        margin: 0;
    }

    .missionaries-top-bar-dropdown-toggle {
        width: 100%;
        height: 38px;
        justify-content: center;
    }

    .missionaries-page-wrapper .notification-bell-blue {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        width: 28px;
        height: 28px;
    }

    .missionaries-page-wrapper .notification-bell-blue svg {
        width: 16px;
        height: 16px;
    }

    .missionaries-banner {
        min-height: 139px;
        height: auto;
        padding: 0 !important;
        box-sizing: border-box;
    }

    .missionaries-banner-content {
        padding: 20px 16px !important;
        width: 100% !important;
    }

    .missionary-banner-buttons {
        display: none !important;
    }

    .missionaries-banner-title {
        font-size: 24px;
        line-height: 28px;
        margin: 0;
    }

    .missionaries-banner-subtitle {
        font-size: 18px;
        line-height: 21px;
        margin: 0;
    }

    .missionaries-content-container {
        padding: 32px 16px;
        gap: 64px;
    }

    .missionary-section {
        width: 100%;
    }

    .missionary-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .missionary-section-title {
        font-size: 20px;
        line-height: 24px;
    }

    .missionary-section-subtitle {
        width: 100%;
        margin: 0;
        font-size: 14px;
        line-height: 22px;
    }

    .missionary-section-header-right {
        align-self: flex-start;
        margin-top: 0;
    }

    .btn-section-action {
        width: auto;
        height: auto;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        color: #0EA5E9;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
    }

    .missionary-projects-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        justify-items: stretch;
    }

    .missionary-projects-grid > :nth-child(n+2) {
        display: none;
    }

    .missionary-profiles-grid {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .missionary-project-card {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
    }

    .missionary-project-card-header,
    .missionary-project-card-image,
    .missionary-project-card-body,
    .missionary-project-card-footer {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .missionary-project-card-footer .btn-ver-mais,
    .missionary-project-card-footer .btn-participar {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        padding: 0;
    }

    .missionary-table-toolbar {
        height: 116px;
        padding: 20px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .search-box-wrapper,
    .filter-dropdown-wrapper-v3,
    .btn-filter-v3 {
        width: 100%;
    }

    .filter-dropdown-menu-v3 {
        width: 100%;
        left: 0;
        right: 0;
    }


    .missionary-update-card {
        height: auto;
        padding: 18px 0;
        border: 0;
        flex-direction: column-reverse;
        gap: 16px;
    }

    .missionary-update-image-wrapper {
        width: 100%;
        height: 198px;
        margin: 0;
        border-radius: 8px;
    }

    .missionary-update-content {
        width: 100%;
        max-width: none;
        flex-basis: auto;
        padding: 0;
        gap: 12px;
    }

    .missionary-update-title {
        font-size: 18px;
        line-height: 28px;
    }

    .missionary-footer {
        padding: 0 16px;
    }
}

[data-theme="dark"] .missionaries-top-bar,
.missionaries-top-bar {
    background: linear-gradient(90deg, #5395BB 36%, #245878 69%, #050A0C 100%) !important;
}
