:root {
    --bg: #f7f7f7;
    --surface: rgba(255, 255, 255, 0.82);
    --card: rgba(255, 255, 255, 0.88);
    --border: rgba(0, 59, 73, 0.12);
    --text: #003b49;
    --muted: #5a6b72;
    --primary: #003b49;
    --primary-hover: #00566a;
    --accent: #c68e65;
    --accent-hover: #b07d58;
    --purple: #7c3aed;
    --purple-dark: #5b21b6;
    --purple-light: #a78bfa;
    --success: #2d7a4f;
    --danger: #b42318;
    --warning: #b45309;
    --radius: 16px;
    --shadow: 0 10px 40px rgba(0, 59, 73, 0.12);
    --glass-blur: blur(14px);
}

* {
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    min-height: 100vh;
    text-align: right;
    color: var(--text);
    background-color: var(--bg);
    background-image:
            linear-gradient(rgba(247, 247, 247, 0.72), rgba(247, 247, 247, 0.72)),
            url("../las-bg.jpeg");
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding-bottom: 2rem;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin: 1rem auto 2rem;
    width: min(1100px, 92%);
    background: #fff;
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(0, 59, 73, 0.1);
    backdrop-filter: var(--glass-blur);
    gap: 1rem;
    position: relative;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.brand-logo {
    width: 56px;
    height: 42px;
    object-fit: contain;
    object-position: center;
    background: #f3f2f0;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 59, 73, 0.1);
}

.brand-text span {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
}

.card {
    background: #fff;
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(0, 59, 73, 0.1);
    padding: 1.5rem;
}

.auth-wrap {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: min(480px, 100%);
    text-align: center;
    position: relative;
    padding-top: 2.75rem;
}

.auth-logo {
    width: min(220px, 70%);
    margin: 0 auto 1rem;
    display: block;
    border-radius: 12px;
}

.auth-card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
}

.auth-card > p {
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.auth-tagline {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(198, 142, 101, 0.15);
    color: var(--accent-hover);
    font-size: 0.85rem;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.tab {
    flex: 1;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text);
    padding: 0.75rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tab:hover {
    border-color: var(--accent);
}

.tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

form {
    display: grid;
    gap: 0.9rem;
    text-align: right;
}

label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.92rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 59, 73, 0.18);
    background: #fff;
    color: var(--text);
    text-align: right;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    transition: background-color 9999s ease-out 0s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 142, 101, 0.2);
}

button,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

button:hover,
.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 59, 73, 0.18);
}

button.secondary,
.btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    color: var(--text);
}

button.secondary:hover,
.btn.secondary:hover {
    background: white;
    border-color: var(--accent);
}

button.success {
    background: var(--success);
}

button.danger {
    background: var(--danger);
}

.alert {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: right;
}

.alert.error {
    background: rgba(180, 35, 24, 0.1);
    border: 1px solid rgba(180, 35, 24, 0.25);
}

.alert.success {
    background: rgba(45, 122, 79, 0.1);
    border: 1px solid rgba(45, 122, 79, 0.25);
}

.alert.info {
    background: rgba(0, 59, 73, 0.08);
    border: 1px solid rgba(0, 59, 73, 0.18);
}

.hero {
    margin-bottom: 1.5rem;
    padding: 1.75rem;
    border-radius: var(--radius);
    background:
            linear-gradient(135deg, rgba(0, 59, 73, 0.92), rgba(0, 86, 106, 0.88)),
            url("../las-bg.jpeg") center / cover no-repeat;
    color: white;
    box-shadow: var(--shadow);
}

.hero h2 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    max-width: 60ch;
}

.hero-with-video {
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    background: #000;
    border: 3px solid var(--purple);
    outline: 1px solid var(--purple-light);
    outline-offset: -4px;
    box-shadow:
            0 0 0 1px rgba(124, 58, 237, 0.15),
            0 16px 40px rgba(91, 33, 182, 0.32);
    aspect-ratio: 16 / 9;
    max-height: 340px;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    background: #000;
    aspect-ratio: unset;
}

.hero-video {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.profile-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 1rem;
}

.profile-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-item-position {
    grid-column: 1;
    grid-row: 2;
}

#profile-position-item {
    display: none !important;
}

.profile-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.profile-head .page-title {
    margin: 0;
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
}

.profile-edit-btn {
    min-width: 7.5rem;
}

.profile-section.is-editing .profile-edit-btn {
    display: none;
}

.profile-form {
    display: none;
    margin-top: 0;
    padding-top: 0;
    border-top: 0 solid transparent;
}

.profile-form[hidden] {
    display: none !important;
}

.profile-section.is-editing .profile-form:not([hidden]) {
    display: grid !important;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 59, 73, 0.1);
}

.profile-form-field-position,
.profile-form-field-other {
    grid-column: 1;
}

.profile-form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

#profile-position-other-wrap[hidden] {
    display: none !important;
}

.profile-item {
    padding: 1.1rem 1.15rem;
    min-height: 92px;
    border-radius: 16px;
    background: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 59, 73, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-item strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #8a9aa3;
    margin-bottom: 0.5rem;
}

.profile-item span {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--primary);
    word-break: break-word;
}

.profile-form label span {
    font-size: 0.88rem;
    color: var(--muted);
}

.profile-form input,
.profile-form select {
    border-radius: 14px;
}

@media (min-width: 961px) {
    .profile-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-item-position {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 960px) {
    .profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-item-position {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.section-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: none !important;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    min-height: 190px;
    background: #fff !important;
    box-shadow: 0 8px 24px rgba(0, 59, 73, 0.08);
}

.section-card::after {
    display: none;
}

.section-card:hover,
.section-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 59, 73, 0.22);
    outline: none;
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0.75rem;
    border-radius: 14px;
    background: rgba(0, 59, 73, 0.08);
    border: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.section-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.section-card h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.section-card p {
    color: var(--muted);
    min-height: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.section-card.color-1 {
    border: none !important;
}

.section-card.color-1 .section-icon {
    border-color: rgba(0, 59, 73, 0.25);
    background: rgba(0, 59, 73, 0.08);
}

.section-card.color-2 {
    border: none !important;
}

.section-card.color-2 .section-icon {
    border-color: rgba(198, 142, 101, 0.35);
    background: rgba(198, 142, 101, 0.12);
}

.section-card.color-3 {
    border: none !important;
}

.section-card.color-3 .section-icon {
    border-color: rgba(74, 133, 116, 0.35);
    background: rgba(74, 133, 116, 0.12);
}

.section-card.color-4 {
    border: none !important;
}

.section-card.color-4 .section-icon {
    border-color: rgba(109, 88, 120, 0.35);
    background: rgba(109, 88, 120, 0.12);
}

.section-card.color-5 {
    border: none !important;
}

.section-card.color-5 .section-icon {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(124, 58, 237, 0.1);
}

.section-card.color-5 .section-icon svg {
    fill: var(--purple);
}

.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: none;
    box-shadow: none;
}

.forms-tables-root {
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.forms-type-section {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.forms-type-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.forms-type-head-text {
    min-width: 0;
}

.forms-section-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.forms-section-stats .stat-pill {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
}

.forms-section-stats .stat-pill strong {
    font-size: 0.92rem;
}

.forms-cards-list {
    display: none;
    gap: 0.85rem;
}

.forms-request-card {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 59, 73, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(0, 59, 73, 0.06);
}

.forms-request-card.is-pending {
    border-color: rgba(198, 142, 101, 0.35);
    background: rgba(255, 248, 240, 0.96);
}

.forms-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.forms-card-field + .forms-card-field {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(0, 59, 73, 0.06);
}

.forms-card-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

.forms-card-value {
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: break-word;
}

.forms-card-note {
    margin: 0.85rem 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.forms-request-card .forms-action-group {
    margin-top: 0.95rem;
}

.forms-request-card .forms-action-group button {
    flex: 1 1 7rem;
}

.forms-review-panel {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.forms-review-panel[hidden] {
    display: none !important;
}

.forms-review-panel-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 29, 36, 0.45);
    backdrop-filter: blur(3px);
}

.forms-review-panel-sheet {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(88vh, 720px);
    overflow: auto;
    margin: 0;
    border-radius: 20px 20px 0 0;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 -18px 50px rgba(0, 59, 73, 0.18);
}

.forms-review-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.forms-review-panel-head .page-title {
    margin: 0 0 0.25rem;
}

.forms-review-panel-head .page-subtitle {
    margin: 0;
}

.forms-review-close {
    min-width: 2.5rem;
    padding-inline: 0.75rem;
}

.forms-review-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

body.forms-review-open {
    overflow: hidden;
}

@media (min-width: 981px) {
    .forms-cards-list {
        display: none !important;
    }

    .forms-desktop-only {
        display: block;
    }

    .forms-review-panel {
        align-items: center;
        padding: 1rem;
    }

    .forms-review-panel-sheet {
        border-radius: 20px;
        box-shadow: 0 24px 60px rgba(0, 59, 73, 0.18);
    }
}

@media (max-width: 980px) {
    .forms-cards-list {
        display: grid;
    }

    .forms-desktop-only {
        display: none !important;
    }

    .forms-type-head {
        flex-direction: column;
    }
}

.forms-type-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.forms-type-count {
    margin: 0;
    font-size: 0.92rem;
}

.forms-tables-empty {
    margin: 0;
    padding: 1rem 0.25rem;
}

.table-wrap.table-scroll {
    overflow-y: auto;
    max-height: min(420px, 60vh);
}

.forms-table-shell.table-wrap.table-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(480px, 62vh);
}

.table-wrap.table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--card);
    box-shadow: 0 1px 0 var(--border);
}

.forms-response-table .forms-table-sticky-actions {
    position: sticky;
    z-index: 2;
    background: var(--card);
    min-width: 9.5rem;
}

html[dir="rtl"] .forms-response-table .forms-table-sticky-actions {
    right: 0;
    box-shadow: -4px 0 10px rgba(0, 59, 73, 0.08);
}

html[dir="ltr"] .forms-response-table .forms-table-sticky-actions {
    left: 0;
    box-shadow: 4px 0 10px rgba(0, 59, 73, 0.08);
}

.forms-response-table thead .forms-table-sticky-actions {
    z-index: 4;
}

.forms-table-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(480px, 62vh);
    overscroll-behavior: contain;
    border: 1px solid rgba(0, 59, 73, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 28px rgba(0, 59, 73, 0.06);
    scrollbar-gutter: stable;
}

.forms-table-scroll-hint {
    margin: 0;
    font-size: 0.82rem;
}

.forms-table-shell .forms-response-table {
    width: max-content;
    min-width: 100%;
}

.forms-response-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

.forms-response-table thead th {
    padding: 0.85rem 0.9rem;
    text-align: start;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--primary);
    background: rgba(248, 247, 245, 0.96);
    border-bottom: 1px solid rgba(0, 59, 73, 0.1);
    white-space: nowrap;
    vertical-align: bottom;
}

.forms-response-table tbody td {
    padding: 0.85rem 0.9rem;
    vertical-align: top;
    border-bottom: 1px solid rgba(0, 59, 73, 0.07);
    background: rgba(255, 255, 255, 0.92);
}

.forms-response-table tbody tr:last-child td {
    border-bottom: none;
}

.forms-response-table tbody tr:hover td {
    background: rgba(248, 247, 245, 0.98);
}

.forms-response-table tbody tr.request-pending td {
    background: rgba(255, 248, 240, 0.92);
}

.forms-field-cell,
.forms-meta-cell {
    max-width: 16rem;
}

.forms-notes-cell {
    max-width: 14rem;
}

.forms-cell-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    word-break: break-word;
}

.forms-cell-empty {
    color: var(--muted);
}

.forms-cell-date {
    white-space: nowrap;
    font-weight: 600;
}

.forms-cell-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.forms-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.forms-action-group button {
    min-width: 4.6rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
}

.forms-meta-head {
    min-width: 7.5rem;
}

.forms-field-head {
    min-width: 8.5rem;
}

.list-scroll {
    overflow-y: auto;
    max-height: min(420px, 60vh);
    padding-inline-end: 0.25rem;
}

.admin-toolbar {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.stat-pill strong {
    color: var(--primary);
    font-size: 1rem;
}

.stat-pill.pending strong {
    color: var(--warning);
}

.stat-pill.approved strong {
    color: var(--success);
}

.stat-pill.rejected strong {
    color: var(--danger);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}

.filter-field {
    display: grid;
    gap: 0.35rem;
    min-width: 160px;
    font-size: 0.88rem;
    font-weight: 600;
}

.filter-field.filter-search {
    flex: 1;
    min-width: 220px;
}

.filter-summary {
    margin: 0;
    font-size: 0.88rem;
}

tr.request-pending {
    background: rgba(180, 83, 9, 0.08);
}

[data-theme="dark"] tr.request-pending {
    background: rgba(240, 180, 76, 0.08);
}

[data-theme="dark"] .stat-pill {
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-field,
    .filter-field.filter-search {
        min-width: 0;
        width: 100%;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
}

th,
td {
    text-align: right;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    background: rgba(0, 59, 73, 0.04);
}

tr:hover td {
    background: rgba(198, 142, 101, 0.06);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.badge.pending {
    background: rgba(180, 83, 9, 0.15);
    color: var(--warning);
}

.badge.approved {
    background: rgba(45, 122, 79, 0.15);
    color: var(--success);
}

.badge.rejected {
    background: rgba(180, 35, 24, 0.15);
    color: var(--danger);
}

.badge.in_progress {
    background: rgba(0, 86, 106, 0.12);
    color: var(--primary-hover);
}

.badge.done {
    background: rgba(45, 122, 79, 0.15);
    color: var(--success);
}

.badge.partially_done {
    background: rgba(139, 115, 85, 0.18);
    color: #8b7355;
}

body.task-modal-open {
    overflow: hidden;
}

.task-submit-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.task-submit-modal[hidden] {
    display: none;
}

.task-submit-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 59, 73, 0.45);
    backdrop-filter: blur(4px);
}

.task-submit-dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(90vh, 720px);
    overflow: auto;
    margin: 0;
}

.task-completion-options {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin: 0 0 1rem;
}

.task-completion-options legend {
    padding: 0 0.35rem;
    font-weight: 600;
}

.task-completion-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.task-completion-option input {
    margin: 0;
}

.task-file-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.88rem;
}

.task-submit-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.task-submission {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px dashed var(--border);
    display: grid;
    gap: 0.35rem;
}

.task-submission-notes {
    margin: 0;
    white-space: pre-wrap;
}

.task-submission-meta {
    margin: 0;
    font-size: 0.88rem;
}

.task-submission-link {
    font-size: 0.92rem;
}

tr.task-overdue {
    background: rgba(180, 83, 9, 0.08);
}

tr.task-overdue td.task-deadline-cell,
tr.task-submitted-late td.task-deadline-cell {
    color: #b45309;
    font-weight: 600;
}

tr.task-submitted-late {
    background: rgba(180, 83, 9, 0.05);
}

.task-deadline-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.task-overdue-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.14);
    color: #b45309;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
}

.task-overdue-badge-done {
    background: rgba(180, 83, 9, 0.1);
}

.task-action-overdue {
    box-shadow: inset 0 0 0 2px rgba(180, 83, 9, 0.45);
}

.task-submit-overdue-notice {
    margin: 0 0 1rem;
    background: rgba(180, 83, 9, 0.12);
    color: #92400e;
    border: 1px solid rgba(180, 83, 9, 0.25);
}

.badge.complaint_new,
.badge.new {
    background: rgba(180, 35, 24, 0.12);
    color: var(--danger);
}

.badge.complaint_reviewed,
.badge.reviewed {
    background: rgba(0, 86, 106, 0.12);
    color: var(--primary-hover);
}

.badge.complaint_resolved,
.badge.resolved {
    background: rgba(45, 122, 79, 0.15);
    color: var(--success);
}

.complaint-message-cell {
    min-width: 240px;
    max-width: 420px;
}

.complaint-message-text {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.6;
}

.complaint-actions {
    min-width: 220px;
}

.complaint-actions textarea {
    width: 100%;
    min-width: 200px;
}

.admin-privacy-note {
    margin: -0.75rem 0 1rem;
}

.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.muted {
    color: var(--muted);
}

.page-title {
    margin: 0 0 0.35rem;
}

.page-subtitle {
    margin: 0 0 1.5rem;
    color: var(--muted);
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.announcement-card {
    display: block;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: none;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 59, 73, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcements-grid .announcement-card.color-1,
.announcements-grid .announcement-card.color-2,
.announcements-grid .announcement-card.color-3,
.announcements-grid .announcement-card.color-4,
.announcements-grid .announcement-card.color-5 {
    border: none;
}

.announcement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 59, 73, 0.14);
}

.announcement-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.announcement-card-body {
    padding: 0.85rem 1.15rem 1rem;
}

.announcement-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.4rem;
}

.announcement-card .announcement-cta {
    display: inline-block;
    margin-top: 0.15rem;
}

.announcement-detail-image-wrap,
.announcement-detail-media-wrap {
    margin: -1.5rem -1.5rem 1.25rem;
}

.announcement-detail-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 14px 14px 0 0;
}

.announcement-detail-video {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    display: block;
    border-radius: 14px 14px 0 0;
    background: #000;
}

.announcement-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(109, 88, 120, 0.14);
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 700;
}

.announcement-date {
    font-size: 0.78rem;
    color: var(--muted);
}

.announcement-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--primary);
}

.announcement-card p {
    margin: 0 0 0.65rem;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.9rem;
}

.announcement-cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
}

.announcement-detail-card {
    padding: 1.5rem;
}

.announcement-detail-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 59, 73, 0.1);
}

.announcement-detail-head .page-title {
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
}

.announcement-detail-body .detail-content p {
    line-height: 1.8;
    margin: 0 0 1rem;
}

.gallery-video {
    background: #000;
}

.detail-content p {
    margin: 0 0 1rem;
    line-height: 1.8;
    color: var(--text);
}

.detail-content p:last-child {
    margin-bottom: 0;
}

.detail-highlights h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.detail-highlights ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.detail-highlights li {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: rgba(198, 142, 101, 0.12);
    border: 1px solid rgba(198, 142, 101, 0.25);
    color: var(--text);
    font-weight: 600;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 59, 73, 0.07);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 59, 73, 0.08);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.contact-item p {
    margin: 0;
    color: var(--muted);
}

.contact-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

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

.branch-item {
    padding: 1.1rem 1rem;
    border: none;
    border-radius: 14px;
    background: #fff;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.5;
    box-shadow: 0 6px 18px rgba(0, 59, 73, 0.07);
}

.branches-grid .branch-item:nth-child(1),
.branches-grid .branch-item:nth-child(2),
.branches-grid .branch-item:nth-child(3) {
    border: none;
}

[data-theme="dark"] .branch-item {
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 720px) {
    .branches-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    margin-top: auto;
    padding: 1rem 0 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer strong {
    color: var(--primary);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 59, 73, 0.45);
    backdrop-filter: blur(4px);
}

.modal[hidden] {
    display: none;
}

.modal-card {
    width: min(520px, 100%);
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.notifications-list {
    display: grid;
    gap: 0.75rem;
}

[data-page-title="page.dashboard"] .container > section.card:nth-child(3),
[data-page-title="page.dashboard"] .container > section.card:nth-child(4),
[data-page-title="page.dashboard"] .container > section.card:nth-child(5),
[data-page-title="page.dashboard"] .container > section.card:nth-child(6),
[data-page-title="page.dashboard"] .container > section.card:nth-child(8),
[data-page-title="page.admin"] .container > section.card:nth-child(2),
[data-page-title="page.admin"] .container > section.card:nth-child(3),
[data-page-title="page.admin"] .container > section.card:nth-child(4) {
    border: none;
}

.notification-item {
    border: 1px solid rgba(0, 59, 73, 0.14);
    border-inline-start: 3px solid var(--accent);
    border-radius: 12px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 59, 73, 0.06);
}

.notification-item.unread {
    border-color: rgba(198, 142, 101, 0.45);
    background: rgba(198, 142, 101, 0.08);
}

.notification-item header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.notification-item h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
}

.notification-item time {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.notification-item p {
    margin: 0.35rem 0 0;
    color: var(--text);
}

.notification-item .notification-meta {
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.notification-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.notification-filter {
    border: 1px solid rgba(0, 59, 73, 0.18);
    background: #fff;
    color: var(--primary);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.notification-filter:hover,
.notification-filter:focus-visible {
    border-color: rgba(198, 142, 101, 0.45);
}

.notification-filter.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.notification-badges,
.lac-nav-notify-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.notification-form-badge,
.notification-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
}

.notification-form-badge {
    background: rgba(0, 59, 73, 0.08);
    color: var(--primary);
}

.notification-status-badge.approved {
    background: rgba(76, 175, 121, 0.16);
    color: #1f7a4d;
}

.notification-status-badge.rejected {
    background: rgba(220, 53, 69, 0.14);
    color: #b42318;
}

.notification-status-badge.pending {
    background: rgba(240, 180, 76, 0.18);
    color: #9a6700;
}

.notification-status-badge.info {
    background: rgba(0, 59, 73, 0.1);
    color: var(--primary);
}

.notification-reviewer,
.lac-nav-notify-reviewer {
    color: var(--primary);
    font-weight: 600;
}

.notification-meta > div + div {
    margin-top: 0.35rem;
}

@media (max-width: 720px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 1.25rem;
    }

    .hero-with-video {
        padding: 0;
        max-height: 220px;
    }
}

html[dir="ltr"] {
    direction: ltr;
}

html[dir="ltr"] body {
    text-align: left;
}

html[dir="ltr"] .topbar,
html[dir="ltr"] .modal-actions,
html[dir="ltr"] .actions {
    flex-direction: row;
}

html[dir="ltr"] .notification-item header {
    flex-direction: row;
}

[data-theme="dark"] {
    --bg: #0d1216;
    --surface: rgba(18, 26, 32, 0.92);
    --card: rgba(22, 30, 38, 0.94);
    --border: rgba(255, 255, 255, 0.1);
    --text: #e7eef2;
    --muted: #9db0ba;
    --primary: #8fd0e8;
    --primary-hover: #b3e0f2;
    --accent: #d4a574;
    --accent-hover: #c89460;
    --purple: #a78bfa;
    --purple-dark: #6d28d9;
    --purple-light: #c4b5fd;
    --success: #4caf79;
    --danger: #ff7b72;
    --warning: #f0b44c;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] body {
    background-color: var(--bg);
    background-image:
            linear-gradient(rgba(13, 18, 22, 0.9), rgba(13, 18, 22, 0.9)),
            url("../las-bg.jpeg");
}

[data-theme="dark"] .card,
[data-theme="dark"] .topbar,
[data-theme="dark"] .auth-card {
    background: var(--card);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .notification-item,
[data-theme="dark"] .section-card {
    background: var(--card) !important;
}

[data-theme="dark"] .notification-filter {
    background: var(--card);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

[data-theme="dark"] .notification-form-badge {
    background: rgba(143, 208, 232, 0.12);
    color: var(--primary);
}

[data-theme="dark"] .branch-item,
[data-theme="dark"] .stat-pill {
    background: var(--card);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .hero-with-video {
    border-color: var(--purple-light);
    box-shadow: 0 16px 40px rgba(109, 40, 217, 0.35);
}

[data-theme="dark"] button.secondary,
[data-theme="dark"] .btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="dark"] button.secondary:hover,
[data-theme="dark"] .btn.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--accent);
    color: var(--text);
}

[data-theme="dark"] .profile-item,
[data-theme="dark"] .contact-item {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .profile-item strong {
    color: #b8c8d0;
}

[data-theme="dark"] .profile-item span {
    color: var(--text);
}

[data-theme="dark"] .actions span {
    color: var(--text);
}

[data-theme="dark"] .brand-text {
    color: var(--text);
}

[data-theme="dark"] .page-title {
    color: var(--text);
}

[data-theme="dark"] .settings-options .secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

[data-theme="dark"] .settings-options .secondary.active {
    background: var(--primary);
    color: #0d1216;
    border-color: var(--primary);
}

[data-theme="dark"] .hero-video-wrap {
    border-color: transparent;
    box-shadow: none;
}

[data-theme="dark"] .gallery-video {
    background: #000;
}

[data-theme="dark"] .modal {
    background: rgba(0, 0, 0, 0.62);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #1a2229 inset;
    -webkit-text-fill-color: var(--text);
}

[data-theme="dark"] th {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] table {
    background: var(--card);
}

[data-theme="dark"] .section-card {
    background: var(--card) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .section-card h3 {
    color: var(--text);
}

[data-theme="dark"] .section-icon {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .section-icon svg {
    fill: var(--primary);
}

[data-theme="dark"] .site-footer strong {
    color: var(--primary);
}

.site-settings {
    position: relative;
    z-index: 110;
}

.site-settings-auth {
    position: fixed;
    top: 1rem;
    inset-inline-end: 1rem;
    inset-inline-start: auto;
    z-index: 250;
}

.auth-card .site-settings-auth {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
}

.site-settings-auth .settings-panel {
    inset-inline-end: 0;
    inset-inline-start: auto;
    right: 0;
    left: auto;
}

html[dir="ltr"] .site-settings-auth .settings-panel {
    right: auto;
    left: 0;
}

.settings-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.settings-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    width: min(280px, calc(100vw - 2rem));
    padding: 1rem;
    z-index: 300;
    margin: 0;
}

.settings-panel-title {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    color: var(--primary);
}

.settings-group + .settings-group {
    margin-top: 0.85rem;
}

.settings-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.settings-options {
    display: flex;
    gap: 0.5rem;
}

.settings-options .secondary.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

@media (max-width: 720px) {
    .site-settings-auth {
        top: 0.75rem;
        inset-inline-end: 0.75rem;
    }

    .auth-wrap {
        padding-top: 1rem;
    }
}

.admin-frame {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    width: 100%;
}

.admin-sidebar {
    position: sticky;
    top: 1rem;
}

.admin-nav {
    background: #fff;
    border: 1px solid rgba(0, 59, 73, 0.14);
    border-top: 4px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 10px 32px rgba(0, 59, 73, 0.1);
    padding: 1rem;
}

.admin-nav-title {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.admin-nav-link {
    display: block;
    padding: 0.72rem 0.85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--text);
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.admin-nav-link:hover {
    background: rgba(0, 59, 73, 0.06);
    border-color: rgba(0, 59, 73, 0.12);
    color: var(--primary);
}

.admin-nav-link.active {
    background: rgba(0, 59, 73, 0.08);
    border-color: rgba(0, 59, 73, 0.18);
    border-inline-start: 3px solid var(--accent);
    color: var(--primary);
}

.admin-nav-home {
    display: block;
    margin-top: 1rem;
    text-align: center;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-weight: 600;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    margin-top: 0;
    margin-bottom: 1rem;
    width: 100%;
}

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.admin-summary-card {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 210px;
    margin: 0;
}

.admin-stats-box {
    margin-top: 1rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.admin-stats-item {
    width: 100%;
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-lg);
    border: none;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
}

.admin-stats-item h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: var(--primary);
}

.admin-stats-item.accent-primary,
.admin-stats-item.accent-accent,
.admin-stats-item.accent-purple {
    border: none;
}

[data-theme="dark"] .admin-stats-item {
    background: rgba(26, 34, 41, 0.55);
    border: none;
}

.admin-summary-chart {
    margin: 0.15rem 0 0.35rem;
}

.admin-chart-empty {
    margin: 0;
    font-size: 0.82rem;
}

.admin-chart-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    flex-wrap: wrap;
}

html[dir="rtl"] .admin-chart-wrap {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.admin-chart-donut {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0, 59, 73, 0.08);
}

.admin-chart-donut::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 0 0 1px rgba(0, 59, 73, 0.06);
}

.admin-chart-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
}

.admin-chart-legend li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    line-height: 1.45;
}

.admin-chart-swatch {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.admin-chart-label {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-chart-value {
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.admin-summary-card h3 {
    margin: 0;
    color: var(--primary);
}

.admin-summary-stat {
    margin: 0;
    font-size: 1.05rem;
}

.admin-summary-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1.1;
    color: var(--primary);
}

.admin-summary-meta {
    margin: 0;
    font-size: 0.92rem;
}

.admin-summary-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

.admin-summary-card.accent-primary,
.admin-summary-card.accent-accent,
.admin-summary-card.accent-purple {
    border: none;
}

[data-theme="dark"] .admin-nav {
    background: var(--card);
    border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .admin-nav-link:hover,
[data-theme="dark"] .admin-nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
    .admin-frame {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .admin-nav-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-nav-list {
        grid-template-columns: 1fr;
    }
}

.page-dashboard {
    background: transparent;
    background-image: none;
}

.page-dashboard .page-content {
    position: relative;
    z-index: 1;
}

.page-dashboard .container > section[id],
.page-dashboard .container > [id="profile"] {
    scroll-margin-top: calc(var(--lac-nav-height, 8.5rem) + 1rem);
}

.page-video-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-video-bg video,
.page-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-video-scrim {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(247, 247, 247, 0.78) 42%, rgba(247, 247, 247, 0.94) 100%);
}

.page-dashboard .card,
.page-dashboard .section-card,
.page-dashboard .topbar-minimal {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(14px);
}

[data-theme="dark"] .page-dashboard .card,
[data-theme="dark"] .page-dashboard .section-card,
[data-theme="dark"] .page-dashboard .topbar-minimal {
    background: rgba(26, 34, 41, 0.55);
}

.nav-drawer-toggle {
    position: fixed;
    top: 1rem;
    inset-inline-end: 1rem;
    z-index: 300;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 59, 73, 0.18);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-drawer-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 59, 73, 0.24);
}

.nav-drawer-bars {
    display: grid;
    gap: 5px;
    width: 22px;
}

.nav-drawer-bars span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
}

.nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 400;
}

.nav-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 28, 0.45);
    backdrop-filter: blur(4px);
}

.nav-drawer-panel {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    width: min(320px, 88vw);
    height: 100%;
    margin: 0;
    padding: 1.25rem;
    border-radius: 0;
    border-inline-start: 4px solid var(--accent);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: drawer-slide-in 0.28s ease;
}

@keyframes drawer-slide-in {
    from {
        transform: translateX(18px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

html[dir="rtl"] .nav-drawer-panel {
    animation-name: drawer-slide-in-rtl;
}

@keyframes drawer-slide-in-rtl {
    from {
        transform: translateX(-18px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.nav-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nav-drawer-user {
    margin: 0.35rem 0 0;
    font-weight: 700;
    color: var(--primary);
}

.nav-drawer-close {
    min-width: 40px;
    padding: 0.45rem 0.65rem;
}

.nav-drawer-links,
.nav-drawer-footer {
    display: grid;
    gap: 0.35rem;
}

.nav-drawer-links {
    margin-bottom: 1rem;
}

.nav-drawer-link {
    display: block;
    padding: 0.72rem 0.85rem;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-drawer-link:hover {
    background: rgba(0, 59, 73, 0.06);
    border-color: rgba(0, 59, 73, 0.12);
    color: var(--primary);
}

.nav-drawer-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.nav-drawer-logout {
    width: 100%;
}

.nav-drawer-link-admin {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.25);
    color: var(--purple-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.admin-portal-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(198, 142, 101, 0.35);
    border-inline-start: 4px solid var(--accent);
    background: rgba(0, 59, 73, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-portal-banner p {
    margin: 0;
    font-weight: 600;
    color: #f2f7f8;
}

.topbar-minimal {
    margin-top: 0;
    margin-bottom: 1.25rem;
    width: 100%;
    padding: 0.85rem 4.5rem 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 32px rgba(0, 59, 73, 0.1);
}

html[dir="rtl"] .topbar-minimal {
    padding: 0.85rem 1rem 0.85rem 4.5rem;
}

.admin-main-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.admin-layout .page-content {
    overflow-x: clip;
}

.admin-main-wrap .table-wrap:not(.forms-table-shell) {
    overflow: visible;
}

.admin-main-wrap .forms-table-shell.table-wrap {
    overflow-x: auto;
    overflow-y: auto;
}

.admin-layout .admin-frame {
    display: block;
}

.admin-layout .admin-sidebar {
    display: none;
}

body.nav-drawer-open {
    overflow: hidden;
}

#drawer-settings-host .site-settings {
    position: relative;
    display: block;
}

#drawer-settings-host .settings-toggle {
    width: 100%;
    justify-content: center;
}

#drawer-settings-host .settings-panel {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 0.5rem;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.page-content.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.admin-branch-leaders {
    margin-bottom: 1.25rem;
}

.admin-branch-leaders .leader-pick-field select,
.admin-main-wrap table select {
    min-width: 10rem;
    width: 100%;
    max-width: 100%;
}

.admin-main-wrap .table-wrap select {
    position: relative;
    z-index: 3;
}

.leader-pick-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.leader-pick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.lac-nav-bar.reveal,
.lac-nav-bar {
    opacity: 1;
    transform: none;
}

.reveal.is-visible,
.no-js .reveal {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .nav-drawer-panel {
        animation: none;
    }
}

@media (max-width: 720px) {
    .topbar-minimal {
        padding-inline: 1rem 4.25rem;
    }
}
