:root {
    --primary: #711739;
    --secondary: #8a1c47;
    --accent: #ffc107;
    --light: #f8f9fa;
    --dark: #212529;
}

.app-body {
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.visitor-body {
    background-color: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.visitor-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.visitor-footer {
    background: transparent;
}

.app-header {
    background-color: #ffffff;
}

.app-navbar .navbar-brand {
    font-size: 1.15rem;
}

.app-navbar .nav-link {
    color: var(--dark);
    padding: 0.6rem 0.5rem;
    transition: color 0.2s ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: var(--primary);
}

.app-navbar .navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
}

.app-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.app-navbar__actions .dropdown-menu {
    min-width: 14rem;
}

.app-navbar .mega-menu {
    width: min(520px, 100%);
    max-height: 75vh;
    overflow-y: auto;
}

.container-alert {
    border-left: 4px solid var(--accent);
}

[dir="rtl"] .container-alert {
    border-left: none;
    border-right: 4px solid var(--accent);
}

.container-notifications-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.container-notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.container-notifications-item {
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.container-notifications-item:last-child {
    border-bottom: none;
}

.container-row-china {
    border-left: 4px solid rgba(113, 23, 57, 0.2);
    transition: background-color 0.2s ease;
}

[dir="rtl"] .container-row-china {
    border-left: none;
    border-right: 4px solid rgba(113, 23, 57, 0.2);
}

.container-row-china-new {
    background-color: rgba(22, 163, 74, 0.12);
    border-left-color: #16a34a !important;
}

[dir="rtl"] .container-row-china-new {
    border-right-color: #16a34a !important;
}

.container-row-china-updated {
    background-color: rgba(37, 99, 235, 0.08);
    border-left-color: #2563eb !important;
}

[dir="rtl"] .container-row-china-updated {
    border-right-color: #2563eb !important;
}

.container-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    line-height: 1.2;
}

.container-badge-china {
    background-color: #0d6efd;
    color: #ffffff;
}

.container-badge-new {
    background-color: #16a34a;
    color: #ffffff;
}

.container-badge-updated {
    background-color: #2563eb;
    color: #ffffff;
}

/* Top alert chips — one per event class */
.china-event-alerts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.china-event-alert {
    flex: 1 1 220px;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    border: 1px solid transparent;
}

.china-event-alert .china-event-alert__count {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.china-event-alert .china-event-alert__label {
    font-size: 0.82rem;
    opacity: 0.9;
}

.china-event-alert .btn {
    white-space: nowrap;
}

.china-event-alert--new {
    background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
    border-color: rgba(22, 163, 74, 0.35);
    color: #065f46;
}

.china-event-alert--updated {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    border-color: rgba(37, 99, 235, 0.35);
    color: #1e3a8a;
}

.china-event-alert--empty {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

/* Notification list items — per-type styling */
.container-notifications-item--new_container {
    border-left: 3px solid #16a34a;
    padding-left: 0.65rem;
}
[dir="rtl"] .container-notifications-item--new_container {
    border-left: 0;
    border-right: 3px solid #16a34a;
    padding-left: 0;
    padding-right: 0.65rem;
}

.container-notifications-item--container_updated,
.container-notifications-item--bol_update,
.container-notifications-item--telex_release,
.container-notifications-item--container_arrived {
    border-left: 3px solid #2563eb;
    padding-left: 0.65rem;
}
[dir="rtl"] .container-notifications-item--container_updated,
[dir="rtl"] .container-notifications-item--bol_update,
[dir="rtl"] .container-notifications-item--telex_release,
[dir="rtl"] .container-notifications-item--container_arrived {
    border-left: 0;
    border-right: 3px solid #2563eb;
    padding-left: 0;
    padding-right: 0.65rem;
}

.container-notifications-item--container_deleted {
    border-left: 3px solid #dc2626;
    padding-left: 0.65rem;
    background-color: rgba(220, 38, 38, 0.05);
}
[dir="rtl"] .container-notifications-item--container_deleted {
    border-left: 0;
    border-right: 3px solid #dc2626;
    padding-left: 0;
    padding-right: 0.65rem;
}

.container-notifications-type-pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    margin-inline-end: 0.35rem;
    letter-spacing: 0.02em;
}
.container-notifications-type-pill--new_container { background: #d1fae5; color: #065f46; }
.container-notifications-type-pill--container_updated,
.container-notifications-type-pill--container_arrived { background: #dbeafe; color: #1e3a8a; }
.container-notifications-type-pill--bol_update { background: #fef3c7; color: #92400e; }
.container-notifications-type-pill--telex_release { background: #e0e7ff; color: #3730a3; }
.container-notifications-type-pill--container_deleted { background: #fee2e2; color: #991b1b; }

/* Overdue popup */
.overdue-popup-modal .modal-header {
    background: #fff7ed;
    color: #9a3412;
    border-bottom: 1px solid #fed7aa;
}
.overdue-popup-modal .overdue-days {
    font-weight: 700;
    color: #b91c1c;
}
.overdue-popup-modal .overdue-item {
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    padding: 0.45rem 0;
}
.overdue-popup-modal .overdue-item:last-child { border-bottom: 0; }

.nav-account-toggle {
    background: #f5f7fb;
    border: 1px solid rgba(113, 23, 57, 0.18);
    border-radius: 14px;
    padding: 0.6rem 1rem;
    min-width: 200px;
    text-align: start;
    box-shadow: 0 4px 18px rgba(17, 23, 39, 0.1);
}

[dir="rtl"] .nav-account-toggle {
    text-align: end;
}

.nav-account-toggle:hover,
.nav-account-toggle:focus {
    background: #eef1f8;
    box-shadow: 0 6px 22px rgba(17, 23, 39, 0.14);
}

.nav-account-toggle .account-name {
    font-size: 0.95rem;
}

.nav-account-toggle .account-meta {
    font-size: 0.75rem;
    line-height: 1.2;
}

.account-dropdown .dropdown-item {
    font-size: 0.9rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.account-dropdown .dropdown-item i {
    width: 1.1rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .app-navbar .navbar-nav {
        padding-top: 1rem;
        padding-bottom: 1rem;
        gap: 0.35rem;
    }

    .app-navbar .nav-link {
        padding: 0.5rem 0;
    }

    .app-navbar__actions {
        width: 100%;
    }

    .app-navbar__actions .dropdown-menu {
        min-width: 100%;
    }

    .nav-account-toggle {
        min-width: auto;
        width: 100%;
    }

    .app-navbar__actions > .dropdown,
    .app-navbar__actions > .d-flex {
        width: 100%;
    }

    .app-navbar .mega-menu {
        position: static;
        width: 100%;
        max-height: none;
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

.dashboard-meta .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}

.app-main {
    flex: 1 1 auto;
}

.hero-section {
    min-height: 60vh;
    background: linear-gradient(120deg, rgba(113, 23, 57, 0.85), rgba(138, 28, 71, 0.9)),
                url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.visitors-hero {
    min-height: 75vh;
    background: linear-gradient(120deg, rgba(113, 23, 57, 0.88), rgba(55, 9, 40, 0.9)),
                url('https://images.unsplash.com/photo-1515165562835-c4c24b95b367?auto=format&fit=crop&w=1600&q=80') center/cover;
    position: relative;
}

.visitors-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(53, 3, 34, 0.25), transparent 60%);
}

.visitors-hero > .container {
    position: relative;
    z-index: 1;
}

.visitors-hero-nav {
    display: flex;
    gap: 1rem;
}

.visitors-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.visitors-hero-link:hover,
.visitors-hero-link:focus {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.15);
}

.visitors-hero-badge {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    letter-spacing: 0.06em;
}

.visitors-lang-switch {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 2;
}

[dir="rtl"] .visitors-lang-switch {
    right: auto;
    left: 2rem;
}

.visitors-lang-switch .btn {
    border-radius: 999px;
    font-weight: 600;
}

.visitor-section {
    position: relative;
}

.visitors-hero-pills {
    gap: 0.75rem;
}

.visitors-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.visitors-contact-summary {
    background: #ffffff;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.15);
}

.visitors-contact-summary__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(113, 23, 57, 0.15), transparent 55%);
}

.visitors-contact-entry__icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: rgba(113, 23, 57, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.visitors-hero-card {
    border-radius: 22px;
}

.visitors-hero-meta span,
.visitors-hero-meta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: inherit;
    text-decoration: none;
}

.visitors-hero-meta a:hover,
.visitors-hero-meta a:focus {
    color: #ffffff;
    text-decoration: underline;
}

.visitors-hero-contact-item a:hover {
    text-decoration: underline;
}

.visitors-section {
    position: relative;
}

.visitors-section-header .visitors-section-badge,
.visitors-section-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(113, 23, 57, 0.12);
    border-radius: 999px;
    padding: 0.45rem 1.35rem;
}

.visitors-section-badge--light {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.visitor-about-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(113, 23, 57, 0.08);
    border-radius: 18px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

.visitor-about-highlight i {
    color: var(--accent);
    font-size: 1.1rem;
}

.visitor-about-check {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(113, 23, 57, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.visitor-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.visitor-about-image:hover img {
    transform: scale(1.05);
}

.visitor-service-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem 1.8rem;
    border: 1px solid rgba(113, 23, 57, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.visitor-service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(113, 23, 57, 0.35);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.12);
}

.visitor-service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(113, 23, 57, 0.12);
    color: var(--primary);
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.visitor-service-card:hover .visitor-service-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
}

.visitor-features {
    background: linear-gradient(135deg, rgba(113, 23, 57, 0.95), rgba(138, 28, 71, 0.85));
    color: #ffffff;
}

.visitor-feature-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 2.2rem 1.6rem;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.visitor-feature-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
}

.visitor-feature-icon {
    font-size: 2rem;
    color: var(--accent);
}

.visitors-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(113, 23, 57, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.visitors-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(113, 23, 57, 0.25);
}

.visitors-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: rgba(113, 23, 57, 0.1);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.visitors-contact-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.visitors-contact-number:hover {
    text-decoration: underline;
}

.visitors-contact-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(113, 23, 57, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.visitors-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(113, 23, 57, 0.25);
}

.visitors-contact-card__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 20px;
    background: rgba(113, 23, 57, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.visitor-contact-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(113, 23, 57, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: start;
}

.visitor-contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.1);
    border-color: rgba(113, 23, 57, 0.3);
}

.visitor-contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 16px;
    background: rgba(113, 23, 57, 0.12);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.visitors-office-card {
    border: 1px solid rgba(113, 23, 57, 0.08);
    overflow: hidden;
}

.visitors-office-card:hover {
    box-shadow: 0 22px 38px rgba(0, 0, 0, 0.1);
}

.visitors-office-icon {
    font-size: 1.6rem;
}

.visitors-office-step {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(113, 23, 57, 0.4);
}

[dir="rtl"] .visitors-office-step {
    right: auto;
    left: 1.2rem;
}

.visitors-meta-list a:hover {
    color: var(--primary) !important;
}

.visitors-contact-band {
    background: linear-gradient(135deg, rgba(113, 23, 57, 0.08), rgba(138, 28, 71, 0.08));
}

.visitors-email-card {
    background: rgba(113, 23, 57, 0.06);
    border-radius: 18px;
    padding: 1.5rem;
}

.visitors-email-link {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.visitors-email-link:hover {
    text-decoration: underline;
}

.visitors-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(113, 23, 57, 0.2);
    background: #ffffff;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.visitors-social-link:hover,
.visitors-social-link:focus {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(113, 23, 57, 0.25);
}

.visitors-social-link:hover .visitors-social-icon,
.visitors-social-link:focus .visitors-social-icon {
    color: #ffffff;
}

.visitors-social-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.visitor-footer {
    background: linear-gradient(135deg, rgba(113, 23, 57, 1), rgba(138, 28, 71, 0.95));
    color: #ffffff;
    padding: 3rem 1rem;
}

.visitor-footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.visitor-footer-logo {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1.4rem;
}

.visitor-footer-text {
    line-height: 1.7;
    opacity: 0.85;
}

.visitor-footer-social__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.visitor-footer-social__icon:hover,
.visitor-footer-social__icon:focus {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-4px);
}

.visitor-footer-copy {
    font-size: 0.85rem;
    opacity: 0.75;
}

@media (max-width: 991.98px) {
    .visitors-hero {
        min-height: auto;
    }

    .visitors-hero-meta {
        gap: 1rem !important;
    }

    .visitors-lang-switch {
        top: 1.5rem;
        right: 1.5rem;
    }

    .visitors-hero-nav {
        gap: 0.75rem;
    }

    .visitors-hero-link {
        padding: 0.5rem 1.05rem;
    }

    .visitor-service-card {
        padding: 2rem 1.5rem;
    }

    .visitor-feature-card {
        padding: 1.8rem 1.4rem;
    }

    .visitor-footer {
        padding: 2.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .visitors-hero-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .visitors-hero-link {
        justify-content: center;
        width: 100%;
    }

    .visitor-service-card,
    .visitor-feature-card,
    .visitor-contact-card {
        text-align: center;
    }

    .visitor-contact-icon {
        margin: 0 auto 1rem;
    }
}

.profile-hero {
    background: linear-gradient(130deg, rgba(113, 23, 57, 0.9), rgba(138, 28, 71, 0.85)),
                url('https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80') center/cover;
}

[dir="rtl"] .profile-hero .btn .fa-solid {
    margin-left: 0.5rem;
    margin-right: 0;
}

.info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-card .info-label {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.info-card .info-value {
    font-size: 1.65rem;
    font-weight: 700;
}

.hero-section .btn-warning {
    background-color: var(--accent);
    border: none;
    color: #212529;
}

.feature-card {
    background: #ffffff;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.auth-wrapper {
    min-height: calc(100vh - 180px);
}

.auth-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

.auth-aside {
    background: linear-gradient(160deg, rgba(113, 23, 57, 0.9), rgba(138, 28, 71, 0.85)),
                url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=900&q=80') center/cover;
}

.stat-card {
    padding: 24px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gradient-primary {
    background: linear-gradient(135deg, #711739, #8a1c47);
}

.gradient-info {
    background: linear-gradient(135deg, #007bff, #00a8ff);
}

.gradient-success {
    background: linear-gradient(135deg, #28a745, #5dd39e);
}

.gradient-warning {
    background: linear-gradient(135deg, #ffc107, #ffe08a);
}

.gradient-deep {
    background: linear-gradient(135deg, #2b5876, #4e4376);
}

.gradient-danger {
    background: linear-gradient(135deg, #dc3545, #ff6f6f);
}

.app-footer {
    background: #ffffff;
}

.table thead th {
    font-weight: 600;
}

.table-responsive {
    border-radius: 12px;
}

.resource-hero {
    background-color: #ffffff;
}

.resource-content .card,
.resource-form .card,
.resource-show .card {
    border: none;
    border-radius: 16px;
}

.resource-content .card-body,
.resource-form .card-body,
.resource-show .card-body {
    padding: 2rem;
}

.resource-menu {
    min-width: 280px;
    max-height: 60vh;
    overflow-y: auto;
}

.resource-menu .dropdown-header {
    font-weight: 600;
    color: var(--primary);
}

.resource-menu .dropdown-item:hover {
    background-color: rgba(113, 23, 57, 0.08);
}

.resource-form label {
    color: var(--dark);
}

.resource-form .form-control,
.resource-form .form-select,
.resource-form textarea {
    border-radius: 10px;
    border-color: #dfe3eb;
}

.resource-form .form-control:focus,
.resource-form .form-select:focus,
.resource-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(113, 23, 57, 0.15);
}

.resource-show dt {
    font-size: 0.9rem;
}

.resource-show dd {
    font-size: 1rem;
}

.reports-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.25rem, 3.6vw, 3rem) 0 clamp(3.2rem, 5.6vw, 4rem);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 193, 7, 0.18), transparent 28%),
        radial-gradient(circle at 86% 22%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(135deg, rgba(61, 15, 36, 0.96), rgba(23, 58, 87, 0.92)),
        url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.reports-hero::after {
    content: '';
    position: absolute;
    inset: auto -10% -16rem 28%;
    height: 24rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
    pointer-events: none;
}

.reports-hero--land-shipping {
    padding: 4.5rem 0;
    background:
        linear-gradient(125deg, rgba(15, 34, 53, 0.88) 8%, rgba(22, 62, 93, 0.82) 52%, rgba(23, 88, 111, 0.78) 100%),
        radial-gradient(circle at 18% 30%, rgba(249, 178, 51, 0.22), transparent 45%),
        url('/assets/img/reports-land-shipping-hero.svg') center/cover no-repeat;
    background-color: #183a56;
}

.report-stat {
    border-radius: 18px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    min-height: 140px;
}

.report-stat i {
    opacity: 0.8;
}

.report-card {
    border: none;
    border-radius: 18px;
}

.report-card .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
}

.report-card .table {
    margin-bottom: 0;
}

.report-card .table thead th {
    font-weight: 600;
}

.reports-overview {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(244, 246, 249, 1));
}

.reports-shell {
    max-width: 1360px;
}

.reports-overview-surface {
    position: relative;
    z-index: 2;
    margin-top: -6.1rem;
    padding-bottom: 4rem;
}

.reports-overview-content {
    display: flex;
    flex-direction: column;
    gap: 2.35rem;
}

.reports-hero__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
}

.reports-hero__copy {
    max-width: 62rem;
}

.reports-hero__copy .display-5 {
    font-size: clamp(2.2rem, 3.35vw, 3.2rem);
    line-height: 1.05;
    max-width: 16ch;
}

.reports-hero__copy .lead {
    max-width: 56rem;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.reports-hero__badge {
    letter-spacing: 0.04em;
    font-weight: 700;
}

.reports-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-hero__meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.85rem;
    padding: 0.68rem 0.95rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
    backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.reports-action-panel {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
    padding: 1.05rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(10px);
}

.reports-action-panel--deck {
    width: 100%;
    padding: 1rem;
    border-radius: 1.45rem;
    background: linear-gradient(140deg, rgba(33, 47, 70, 0.96), rgba(113, 23, 57, 0.92));
}

.reports-action-panel__label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.reports-action-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.reports-action-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-filter-form {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(47, 79, 115, 0.18);
    border-radius: 0.75rem;
    padding: 0.85rem 0.95rem;
    box-shadow: 0 2px 8px rgba(33, 47, 70, 0.06);
}

.reports-filter-form__title {
    color: #2f4f73;
    letter-spacing: 0.04em;
}

.reports-filter-form .form-control {
    border-color: #d6deea;
}

.reports-filter-form .form-control:focus {
    border-color: #2f4f73;
    box-shadow: 0 0 0 0.15rem rgba(47, 79, 115, 0.15);
}

.report-section-print-fallback {
    display: none;
}

@media print {
    .reports-filter-form,
    .reports-action-panel,
    .reports-print-note { display: none !important; }

    body.report-section-printing > :not(.report-section-print-fallback) {
        display: none !important;
    }

    body.report-section-printing .report-section-print-fallback {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
    }

    body.report-section-printing .report-section-print-fallback .report-card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        width: 100% !important;
    }

    body.report-section-printing .report-section-print-fallback [data-report-section-print],
    body.report-section-printing .report-section-print-fallback .btn {
        display: none !important;
    }
}

.reports-action-cluster > .btn {
    flex: 1 1 calc(50% - 0.85rem);
    min-height: 2.8rem;
    justify-content: center;
    padding-inline: 0.9rem;
    border-radius: 0.95rem;
    font-weight: 700;
}

.reports-command-deck {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    padding: 1.4rem;
    border-radius: 1.85rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    margin-bottom: 2rem;
}

.reports-command-deck::after {
    content: '';
    position: absolute;
    inset: auto auto 0 0;
    width: 22rem;
    height: 22rem;
    transform: translate(-34%, 32%);
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05), transparent 70%);
    pointer-events: none;
}

.reports-command-sidebar {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.reports-command-sidebar > .reports-switcher {
    grid-template-columns: 1fr;
    gap: 1rem;
    height: 100%;
    margin-bottom: 0;
    padding: 1.2rem;
    border-bottom: none;
    border-radius: 1.45rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.reports-command-sidebar > .reports-switcher .reports-switcher__intro {
    padding: 0;
}

.reports-command-sidebar > .reports-switcher .reports-switcher__group--primary,
.reports-command-sidebar > .reports-switcher .reports-switcher__group--secondary {
    grid-template-columns: 1fr;
    grid-column: auto;
}

.reports-switcher {
    display: grid;
    grid-template-columns: minmax(0, 19rem) minmax(0, 1fr);
    gap: 1.5rem 1.25rem;
    align-items: stretch;
    margin-bottom: 1.65rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.reports-switcher__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.2rem 0.35rem 0 0;
}

.reports-switcher__eyebrow {
    display: inline-flex;
    margin-bottom: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(113, 23, 57, 0.08);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.reports-switcher__title {
    display: block;
    margin-bottom: 0.45rem;
    color: #0f172a;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.reports-switcher__subtitle {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.reports-switcher__group {
    gap: 0.85rem;
}

.reports-switcher__group--primary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: stretch;
}

.reports-switcher__group--secondary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reports-switcher__link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    justify-content: flex-start;
    width: 100%;
    min-height: 4.35rem;
    padding: 1rem 1.1rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(113, 23, 57, 0.12);
    color: var(--dark);
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.reports-switcher__link span {
    line-height: 1.3;
}

.reports-switcher__link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.85rem;
    background: rgba(113, 23, 57, 0.08);
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.reports-switcher__link:hover,
.reports-switcher__link:focus {
    color: var(--primary);
    border-color: rgba(113, 23, 57, 0.22);
    background: rgba(113, 23, 57, 0.05);
    transform: translateY(-1px);
}

.reports-switcher__link.is-active {
    color: #ffffff;
    border-color: var(--primary);
    background: linear-gradient(135deg, #711739, #8a1c47);
    box-shadow: 0 18px 28px rgba(113, 23, 57, 0.2);
}

.reports-switcher__link.is-active i {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.reports-switcher__link--soft {
    background: #f8fafc;
}

.reports-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.reports-section-heading .text-muted {
    max-width: 46rem;
    font-size: 0.98rem;
}

.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.reports-kpi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 14.15rem;
    padding: 1.65rem;
    border-radius: 1.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.reports-kpi-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 0.35rem;
    border-radius: 1.35rem 1.35rem 0 0;
    background: linear-gradient(90deg, rgba(113, 23, 57, 0.95), rgba(43, 88, 118, 0.78));
}

.reports-kpi-card--alert {
    border-color: rgba(220, 53, 69, 0.15);
    background: linear-gradient(180deg, rgba(255, 248, 248, 1), rgba(255, 255, 255, 1));
}

.reports-kpi-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 1.15rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.045);
    font-size: 1.3rem;
}

.reports-kpi-card__label {
    color: var(--bs-secondary-color);
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.reports-kpi-card__value {
    font-size: clamp(2.15rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.08;
    color: #0f172a;
}

.reports-kpi-card__meta {
    margin-top: auto;
    padding-top: 0.95rem;
    border-top: 1px dashed rgba(15, 23, 42, 0.12);
    font-size: 0.9rem;
    line-height: 1.55;
    color: #475569;
}

.reports-mini-stat {
    background: #fff;
    border: 1px solid rgba(13, 110, 253, 0.1);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    height: 100%;
}

.reports-mini-stat__label {
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.reports-mini-stat__value {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.reports-insights-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.925fr) minmax(0, 0.925fr);
    gap: 1.15rem;
}

.reports-insight-card .card-body,
.reports-hub-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.55rem;
}

.reports-insight-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border-radius: 1.35rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.reports-insight-card::before {
    content: '';
    display: block;
    height: 0.35rem;
    background: linear-gradient(90deg, rgba(113, 23, 57, 0.9), rgba(13, 110, 253, 0.7));
}

.reports-insight-card--primary::before {
    background: linear-gradient(90deg, rgba(113, 23, 57, 1), rgba(255, 193, 7, 0.82));
}

.reports-insight-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.reports-insight-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
}

.reports-insight-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reports-insight-item__meta {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.reports-insight-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.9rem;
    color: #475569;
}

.reports-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.reports-hub-card {
    border-radius: 1.35rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 252, 255, 1));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.reports-hub-card--accent {
    background: linear-gradient(180deg, rgba(255, 250, 235, 1), rgba(255, 255, 255, 1));
}

.reports-hub-card__stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reports-hub-card__stats div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
    color: #475569;
}

.reports-hub-card__stats div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.reports-hub-card__stats strong {
    color: #0f172a;
}

.reports-hub-card__actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-hub-card__actions > .btn {
    flex: 1 1 calc(50% - 0.75rem);
    min-height: 3rem;
    border-radius: 0.95rem;
}

.reports-hub-card__actions--stacked {
    flex-direction: column;
    align-items: stretch;
}

.reports-page-header {
    border-radius: 1.25rem;
}

.reports-page-header .card-body {
    padding: 1.75rem;
}

.reports-page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.reports-page-header__actions > .btn {
    min-height: 3rem;
    border-radius: 0.95rem;
    font-weight: 700;
}

.reports-table-compact th,
.reports-table-compact td {
    font-size: 0.9rem;
    white-space: nowrap;
}

.reports-table-compact td.wrap {
    white-space: normal;
}

.reports-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--bs-primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.reports-print-note {
    border-radius: 0.85rem;
    background: rgba(13, 110, 253, 0.05);
    border: 1px dashed rgba(13, 110, 253, 0.2);
    padding: 0.75rem 0.9rem;
}

@media (max-width: 1199.98px) {
    .reports-hero__layout {
        grid-template-columns: 1fr;
    }

    .reports-action-panel {
        justify-self: stretch;
        width: 100%;
    }

    .reports-command-deck {
        grid-template-columns: 1fr;
    }

    .reports-command-sidebar > .reports-switcher {
        padding: 0 0 1.5rem;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .reports-command-sidebar > .reports-switcher .reports-switcher__group--primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-command-sidebar > .reports-switcher .reports-switcher__group--secondary {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .reports-switcher {
        grid-template-columns: 1fr;
    }

    .reports-switcher__group--primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-switcher__group--secondary {
        grid-column: auto;
    }

    .reports-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reports-insights-grid,
    .reports-hub-grid {
        grid-template-columns: 1fr 1fr;
    }

    .reports-insight-card--primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: 70vh;
    }

    .reports-hero--land-shipping {
        background-position: 38% center;
    }

    .reports-hero {
        padding: 3rem 0 4.65rem;
    }

    .reports-overview-surface {
        margin-top: -3.6rem;
        padding-bottom: 2.75rem;
    }

    .reports-action-stack {
        width: 100%;
    }

    .reports-hero__meta {
        gap: 0.6rem;
    }

    .reports-hero__meta-pill {
        min-height: auto;
        padding: 0.72rem 0.9rem;
    }

    .reports-action-cluster {
        width: 100%;
    }

    .reports-action-cluster > * {
        flex: 1 1 100%;
    }

    .reports-section-heading {
        align-items: start;
    }

    .reports-command-deck {
        padding: 1.15rem;
        border-radius: 1.45rem;
    }

    .reports-switcher {
        gap: 1rem;
        margin-bottom: 0;
        padding-bottom: 1rem;
    }

    .reports-switcher__group {
        width: 100%;
    }

    .reports-switcher__group--primary {
        grid-template-columns: 1fr 1fr;
    }

    .reports-switcher__group--secondary {
        grid-template-columns: 1fr;
    }

    .reports-switcher__link {
        min-height: 3.7rem;
    }

    .reports-page-header .card-body {
        padding: 1.25rem;
    }

    .reports-page-header__actions {
        width: 100%;
    }

    .reports-page-header__actions > * {
        flex: 1 1 100%;
    }

    .reports-insight-item {
        flex-direction: column;
        gap: 0.35rem;
    }

    .reports-insights-grid,
    .reports-hub-grid {
        grid-template-columns: 1fr;
    }

    .reports-hub-card__actions > * {
        flex: 1 1 100%;
    }
}

@media (max-width: 575.98px) {
    .reports-hero__copy .display-5 {
        font-size: 2rem;
        max-width: none;
    }

    .reports-hero__meta {
        display: none;
    }

    .reports-hero__meta-pill,
    .reports-switcher__link {
        width: 100%;
        justify-content: flex-start;
    }

    .reports-switcher__group--primary {
        grid-template-columns: 1fr;
    }

    .reports-kpi-grid {
        grid-template-columns: 1fr;
    }

    .reports-kpi-card {
        min-height: 12rem;
    }
}
.settings-card {
    border: none;
    border-radius: 18px;
}

.settings-card .card-body {
    padding: 2rem;
}

.settings-hero {
    background-color: #ffffff;
}

.settings-form .input-group-text {
    background-color: #f6f8fc;
    border-color: #dfe3eb;
    font-weight: 600;
    color: var(--primary);
}

.settings-form .form-control {
    border-radius: 10px;
    border-color: #dfe3eb;
}

.settings-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(113, 23, 57, 0.12);
}

.settings-history .list-group-item {
    padding: 0.9rem 1.1rem;
    border-color: #eef1f6;
}

.settings-history .list-group-item + .list-group-item {
    border-top-width: 1px;
}

.settings-content .alert {
    border-radius: 14px;
}

.client-hero {
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.95), rgba(59, 89, 152, 0.85));
}

.client-card {
    background: linear-gradient(135deg, #1d3557, #274c77);
    border-radius: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.client-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 55%);
    pointer-events: none;
}

.client-dashboard .card {
    border-radius: 16px;
}

.client-dashboard table th {
    font-weight: 600;
    color: #495057;
}

.client-dashboard table td {
    font-size: 0.95rem;
}

.client-dashboard .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
}

.client-dashboard .form-text {
    color: #6c757d;
}

.module-hero {
    background: linear-gradient(135deg, rgba(17, 43, 60, 0.9), rgba(39, 84, 120, 0.85));
}

.gradient-clients {
    background: linear-gradient(135deg, #1d4f7a, #3b82b5);
}

.gradient-operations {
    background: linear-gradient(135deg, #0d3a5c, #155b8a);
}

.gradient-finance {
    background: linear-gradient(135deg, #3a155b, #6d2c92);
}

.gradient-registry {
    background: linear-gradient(135deg, #73481c, #a36329);
}

.gradient-documents {
    background: linear-gradient(135deg, #275c3f, #3f8a63);
}

.gradient-security {
    background: linear-gradient(135deg, #5b1628, #8a2c3d);
}

.mini-stat {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    min-width: 140px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.12);
}

.mini-stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: block;
    opacity: 0.85;
}

.mini-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.module-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}

.module-card .card-header {
    padding: 1.25rem 1.5rem;
}

.module-card .card-body {
    padding: 1.5rem;
}

.module-card .card-footer {
    padding: 1.25rem 1.5rem;
    background-color: #f8f9fa;
}

.permission-card {
    border: 1px solid rgba(113, 23, 57, 0.12);
    border-radius: 1rem;
    background: #ffffff;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.permission-card:hover {
    border-color: rgba(113, 23, 57, 0.35);
    box-shadow: 0 1rem 2rem rgba(113, 23, 57, 0.1);
    transform: translateY(-4px);
}

.permission-card--checked {
    border-color: rgba(113, 23, 57, 0.6);
    box-shadow: 0 1.25rem 2.5rem rgba(113, 23, 57, 0.12);
}

.permission-card .form-check-input {
    cursor: pointer;
}

.permission-card .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.timeline {
    position: relative;
    padding-left: 1rem;
    margin: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(113, 23, 57, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-point {
    position: absolute;
    left: -2px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.document-tile {
    background-color: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(13, 59, 102, 0.08);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.document-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
}
