:root {
    --app-ink: #172b3a;
    --app-ink-soft: #4d6370;
    --app-primary: #1d5b75;
    --app-primary-dark: #123b50;
    --app-accent: #c28643;
    --app-accent-dark: #9a612c;
    --app-success: #247a68;
    --app-danger: #b54b4b;
    --app-surface: #ffffff;
    --app-surface-soft: #f6f8f8;
    --app-line: #dce5e7;
    --app-page: #eef3f3;
    --app-radius: 12px;
    --app-shadow: 0 3px 16px rgba(23, 43, 58, .045);
    --app-shadow-hover: 0 16px 36px rgba(23, 43, 58, .13);
}

* {
    scrollbar-color: #aec2c7 transparent;
    scrollbar-width: thin;
}

body {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    color: var(--app-ink);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% -8%, rgba(194, 134, 67, .12), transparent 30rem),
        radial-gradient(circle at 100% 15%, rgba(29, 91, 117, .12), transparent 34rem),
        var(--app-page);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: .28;
    background-image: linear-gradient(rgba(255, 255, 255, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .4) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.app-navbar {
    position: relative;
    z-index: 1030;
    min-height: 72px;
    border-bottom: 1px solid rgba(220, 229, 231, .9);
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 5px 24px rgba(23, 43, 58, .07);
    backdrop-filter: blur(16px);
}

.app-navbar .container-fluid {
    width: min(100%, 1680px);
    padding-right: clamp(1rem, 3vw, 3rem);
    padding-left: clamp(1rem, 3vw, 3rem);
}

.navbar-brand {
    color: var(--app-ink) !important;
    font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
    font-weight: 800;
    letter-spacing: -.03em;
}

.navbar-brand img {
    width: 42px;
    height: 42px;
    padding: 2px;
    border: 2px solid rgba(194, 134, 67, .55);
    box-shadow: 0 4px 12px rgba(23, 43, 58, .12);
}

.navbar-nav {
    gap: .2rem;
}

.navbar-nav .nav-link {
    border-radius: 10px;
    color: var(--app-ink-soft) !important;
    font-size: .88rem;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link[aria-expanded="true"] {
    color: var(--app-primary) !important;
    background: #edf4f4;
    transform: translateY(-1px);
}

.dropdown-menu {
    min-width: 220px;
    padding: .5rem;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(23, 43, 58, .14);
}

.dropdown-item {
    padding: .6rem .75rem;
    border-radius: 9px;
    color: var(--app-ink-soft);
    font-size: .9rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: var(--app-primary-dark);
    background: #edf4f4;
}

.btn-user {
    color: var(--app-primary) !important;
    border-color: rgba(29, 91, 117, .25) !important;
    background: #f6faf9 !important;
}

.page-shell {
    width: min(100%, 1680px);
    min-height: calc(100vh - 72px);
    padding: clamp(1.5rem, 3vw, 2.8rem) clamp(1rem, 3vw, 3rem) 4rem;
}

.page-shell h1,
.page-shell h2,
.page-shell h3,
.page-shell h4,
.page-shell h5,
.page-shell h6 {
    color: var(--app-ink);
    font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
    letter-spacing: -.025em;
}

.page-shell h1 {
    font-weight: 800;
}

.page-shell h2,
.page-shell h3,
.page-shell h4,
.page-shell h5,
.page-shell h6 {
    font-weight: 700;
}

.page-shell > .d-flex:first-child,
.page-shell > .row:first-child {
    margin-bottom: 1.75rem !important;
}

.page-shell > .d-flex:first-child h1,
.page-shell > .row:first-child h1,
.page-shell > h1 {
    margin-bottom: .35rem;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.2;
}

.page-shell .text-uppercase {
    color: var(--app-accent-dark) !important;
    font-size: .68rem;
    letter-spacing: .14em;
}

.page-shell .text-muted {
    color: var(--app-ink-soft) !important;
}

.card {
    overflow: hidden;
    border: 1px solid var(--app-line) !important;
    border-radius: var(--app-radius) !important;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--app-shadow) !important;
}

.card:hover {
    box-shadow: var(--app-shadow) !important;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--app-line);
    color: var(--app-ink);
    font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
    font-weight: 700;
    background: var(--app-surface-soft) !important;
}

.card-header.bg-primary {
    color: #fff !important;
    border-bottom-color: transparent;
    background: linear-gradient(115deg, var(--app-primary-dark), var(--app-primary)) !important;
}

.card-header.bg-white {
    background: transparent !important;
}

.card-body {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.card-footer {
    border-top: 1px solid var(--app-line) !important;
    background: var(--app-surface-soft) !important;
}

.border-bottom {
    border-color: var(--app-line) !important;
}

.table-responsive {
    border-radius: inherit;
}

.table {
    --bs-table-color: var(--app-ink);
    --bs-table-bg: transparent;
    margin-bottom: 0;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    padding: .9rem 1rem;
    border-bottom-color: var(--app-line);
}

.table thead th,
.table-light th {
    color: var(--app-primary-dark) !important;
    border-bottom: 2px solid #cbdadd !important;
    background: #edf4f4 !important;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table tbody tr {
    transition: background-color .18s ease;
}

.table tbody tr:hover {
    --bs-table-accent-bg: #f4f9f8;
    background: #f4f9f8;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: rgba(237, 244, 244, .38);
}

.table td {
    color: #2a414d;
}

.table td:first-child {
    font-weight: 600;
}

.form-label {
    margin-bottom: .45rem;
    color: var(--app-ink);
    font-size: .85rem;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 43px;
    border: 1px solid #cbdadd;
    border-radius: 10px;
    color: var(--app-ink);
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(23, 43, 58, .03);
}

textarea.form-control {
    min-height: 90px;
}

.form-control::placeholder {
    color: #91a2a8;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(29, 91, 117, .75);
    box-shadow: 0 0 0 4px rgba(29, 91, 117, .12);
}

.form-check-input {
    border-color: #b6c9cd;
}

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

.form-text {
    color: var(--app-ink-soft);
}

.btn {
    min-height: 40px;
    padding: .58rem .9rem;
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(23, 43, 58, .12);
}

.btn-sm {
    min-height: 36px;
    padding: .4rem .65rem;
    border-radius: 8px;
    font-size: .8rem;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-primary-dark);
    --bs-btn-hover-border-color: var(--app-primary-dark);
    --bs-btn-active-bg: var(--app-primary-dark);
    --bs-btn-active-border-color: var(--app-primary-dark);
}

.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #64777e;
    --bs-btn-border-color: #64777e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #4b5d64;
    --bs-btn-hover-border-color: #4b5d64;
}

.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-success);
    --bs-btn-border-color: var(--app-success);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1b6254;
    --bs-btn-hover-border-color: #1b6254;
}

.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-accent-dark);
    --bs-btn-border-color: var(--app-accent-dark);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #7e4d26;
    --bs-btn-hover-border-color: #7e4d26;
}

.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--app-danger);
    --bs-btn-border-color: var(--app-danger);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #903c3c;
    --bs-btn-hover-border-color: #903c3c;
}

.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #347d8e;
    --bs-btn-border-color: #347d8e;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #286775;
    --bs-btn-hover-border-color: #286775;
}

.btn-outline-primary {
    --bs-btn-color: var(--app-primary);
    --bs-btn-border-color: rgba(29, 91, 117, .5);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-primary);
    --bs-btn-hover-border-color: var(--app-primary);
}

.btn-outline-secondary {
    --bs-btn-color: #536970;
    --bs-btn-border-color: #adbec2;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #64777e;
    --bs-btn-hover-border-color: #64777e;
}

.btn-outline-danger {
    --bs-btn-color: var(--app-danger);
    --bs-btn-border-color: rgba(181, 75, 75, .5);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--app-danger);
    --bs-btn-hover-border-color: var(--app-danger);
}

.notification-toggle {
    width: 42px;
    height: 42px;
    padding: .35rem;
    border: 1px solid transparent;
    border-radius: 50%;
    color: var(--app-primary);
}

.notification-toggle:hover,
.notification-toggle:focus,
.notification-toggle[aria-expanded="true"] {
    color: var(--app-primary-dark);
    border-color: rgba(29, 91, 117, .16);
    background: #edf4f4;
    box-shadow: none;
}

.notification-badge {
    top: 1px;
    right: -2px;
    min-width: 19px;
    padding: .25em .42em;
    border: 2px solid #fff;
    font-size: .64rem;
}

.notification-dropdown {
    width: min(370px, calc(100vw - 2rem));
    max-height: 430px;
    overflow-y: auto;
}

.notification-header,
.notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .85rem;
}

.notification-header {
    border-bottom: 1px solid var(--app-line);
    color: var(--app-ink);
    font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
    font-size: .78rem;
}

.notification-item {
    padding: .75rem .85rem;
    border-bottom: 1px solid var(--app-line);
    color: var(--app-ink-soft);
    transition: background-color .18s ease;
}

.notification-item:hover,
.notification-item:focus {
    color: var(--app-primary-dark);
    background: #f1f7f6;
}

.notification-title {
    color: var(--app-ink);
    font-size: .83rem;
    font-weight: 700;
}

.notification-meta {
    font-size: .74rem;
}

.notification-expired {
    color: var(--app-danger);
    font-weight: 700;
    white-space: nowrap;
}

.notification-upcoming {
    color: var(--app-accent-dark);
    font-weight: 700;
    white-space: nowrap;
}

.notification-empty {
    padding: 1.4rem .85rem;
    color: var(--app-ink-soft);
    font-size: .82rem;
    text-align: center;
}

.notification-footer {
    color: var(--app-ink-soft);
    font-size: .7rem;
}

.alert {
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(23, 43, 58, .04);
}

.alert-success {
    color: #185447;
    border-color: #b8ddd3;
    background: #eaf7f3;
}

.alert-danger {
    color: #7a3030;
    border-color: #e8bcbc;
    background: #fff0f0;
}

.alert-warning {
    color: #70451f;
    border-color: #ecd2ae;
    background: #fff7e9;
}

.badge {
    padding: .45em .7em;
    border-radius: 999px;
    font-weight: 700;
}

.badge.text-bg-success {
    background: #d9f0e9 !important;
    color: #185447 !important;
}

.badge.text-bg-secondary {
    background: #e8edef !important;
    color: #536970 !important;
}

.badge.text-bg-danger {
    background: #f9dddd !important;
    color: #7a3030 !important;
}

.badge.text-bg-warning {
    background: #f9e8cc !important;
    color: #70451f !important;
}

.list-group {
    overflow: hidden;
    border-radius: inherit;
}

.list-group-item {
    padding: 1rem 1.25rem;
    border-color: var(--app-line);
    color: var(--app-ink);
    background: transparent;
}

.list-group-item-action:hover,
.list-group-item-action:focus {
    color: var(--app-primary-dark);
    background: #f1f7f6;
}

.pagination {
    gap: .35rem;
}

.list-toolbar {
    display: flex;
    align-items: end;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--app-line);
    background: #fbfdfd;
}

.list-search-field {
    flex: 1 1 24rem;
    max-width: 42rem;
}

.list-search-field .form-label {
    margin-bottom: .4rem;
    color: var(--app-ink-soft);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.list-toolbar .input-group-text {
    border-color: var(--app-line);
    color: var(--app-primary);
    background: #fff;
}

.list-clear-button {
    white-space: nowrap;
}

.list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1.25rem;
    border-top: 1px solid var(--app-line);
    background: #fff;
}

.list-status {
    color: var(--app-ink-soft);
    font-size: .82rem;
}

.list-footer nav {
    margin: 0;
}

.branch-selector {
    overflow: hidden;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    background: #fbfdfd;
}

.branch-selector-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem;
    border-bottom: 1px solid var(--app-line);
    background: #fff;
}

.branch-selector-toolbar .input-group {
    flex: 1 1 20rem;
}

.branch-selector-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.branch-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    max-height: 20rem;
    overflow-y: auto;
    padding: .75rem;
}

.branch-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    padding: .65rem .75rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--app-ink);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.branch-option:hover,
.branch-option:focus-within {
    border-color: rgba(29, 91, 117, .25);
    background: #eef7f5;
}

.branch-option .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}

.branch-option-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-selection-empty {
    grid-column: 1 / -1;
    padding: 1rem;
    color: var(--app-ink-soft);
    text-align: center;
}

.dashboard-stat-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.dashboard-stat-link .card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.dashboard-stat-link:hover .card,
.dashboard-stat-link:focus-visible .card {
    transform: translateY(-3px);
    box-shadow: 0 1rem 2rem rgba(18, 59, 80, .14) !important;
}

.page-link {
    min-width: 38px;
    padding: .5rem .72rem;
    border: 1px solid var(--app-line);
    border-radius: 9px !important;
    color: var(--app-primary);
    text-align: center;
    background: #fff;
}

.page-link:hover {
    color: var(--app-primary-dark);
    border-color: #b4c9cd;
    background: #edf4f4;
}

.page-item.active .page-link {
    border-color: var(--app-primary);
    background: var(--app-primary);
}

dl dt {
    color: var(--app-ink-soft);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

dl dd {
    color: var(--app-ink);
}

pre {
    padding: 1rem;
    border: 1px solid var(--app-line);
    border-radius: 12px;
    color: #29434f;
    background: #f5f8f8;
}

.img-thumbnail {
    border-color: var(--app-line);
    border-radius: 12px;
}

td .btn + .btn,
td .btn + form,
td form + .btn,
td form + form {
    margin-left: .3rem;
}

@media (max-width: 575.98px) {
    .page-shell {
        padding-top: 1.25rem;
    }

    .page-shell h1.h2,
    .page-shell h1.h3 {
        font-size: 1.35rem;
    }

    .card-body {
        padding: 1rem;
    }

    .list-toolbar,
    .list-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .list-search-field {
        max-width: none;
    }

    .branch-selector-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .branch-selector-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .branch-selector-actions .btn {
        width: 100%;
    }

    .branch-options {
        grid-template-columns: 1fr;
    }

    .table > :not(caption) > * > * {
        padding: .75rem .8rem;
    }

    td .btn,
    td form {
        margin-top: .2rem;
    }
}



/* Shared page structure and interaction states. */
.map-shell { display: grid; grid-template-columns: 360px minmax(0, 1fr); }
.map-directory { min-width: 0; max-height: 640px; overflow-y: auto; border-right: 1px solid var(--app-line); }
.map-directory .list-toolbar { align-items: stretch; flex-direction: column; gap: .5rem; }
.map-directory .list-search-field { flex-basis: auto; min-width: 0; }
.map-directory .list-footer { gap: .6rem; }
.map-canvas { height: 640px; min-width: 0; z-index: 0; }
.map-location { width: 100%; text-align: left; }
.map-location.active { color: var(--app-primary-dark); background: #e5f0f0; border-color: var(--app-line); }
@media (max-width: 767.98px) {
    .map-shell { grid-template-columns: minmax(0, 1fr); }
    .map-directory { max-height: 360px; border-right: 0; border-bottom: 1px solid var(--app-line); }
    .map-canvas { height: 400px; }
}
body { font-size: .9375rem; }
[hidden] { display: none !important; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible {
    outline: 3px solid var(--app-primary);
    outline-offset: 3px;
}
.skip-link {
    position: fixed; top: -100px; left: 1rem; z-index: 1100;
    padding: .75rem 1rem; border-radius: 8px; color: #fff; background: var(--app-primary-dark);
}
.skip-link:focus { top: 1rem; }
.app-navbar { padding: 0; }
.app-navbar .app-header-inner { display: block; }
.app-navbar,
.app-navbar .app-header-inner,
.app-navbar .navbar-collapse,
.app-navbar .app-navigation { overflow: visible; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.app-account { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.navbar-brand { display: flex; align-items: center; gap: .8rem; margin: 0; font-size: 1.13rem; }
.navbar-brand img { flex: 0 0 42px; border-radius: 50%; object-fit: contain; }
.account-name { display: inline-block; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.app-navigation { width: 100%; gap: .2rem; padding: .45rem 0 .65rem; border-top: 1px solid var(--app-line); }
.app-navigation .nav-link { padding: .6rem .7rem !important; white-space: nowrap; }
.app-navigation .nav-link.active, .app-navigation .dropdown-item.active {
    color: var(--app-primary-dark) !important; background: #e5f0f0; font-weight: 700;
}
.app-navigation .dropdown-item { white-space: normal; }
.notification-toggle { flex-shrink: 0; }
.notification-meta > :first-child { min-width: 0; }
.notification-dropdown { max-height: min(430px, 70vh); }
.notification-item:focus-visible { outline-offset: -3px; }
.page-shell { min-height: calc(100vh - 136px); }
.page-heading {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 1.5rem;
}
.page-heading > div { min-width: 0; }
.page-heading > .d-flex { flex-wrap: wrap; }
.page-shell .page-title {
    display: flex; align-items: center; gap: .85rem; margin: 0;
    color: var(--app-primary-dark); font-size: clamp(1.4rem, 2vw, 1.85rem);
    font-weight: 800; letter-spacing: -.035em; line-height: 1.25;
}
.page-title > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.page-title-icon {
    display: inline-flex; flex: 0 0 46px; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid #d2e4e5; border-radius: 12px;
    color: var(--app-primary); background: #e9f3f3; font-size: 1.35rem;
}
.page-heading p { margin-top: .6rem; font-size: .875rem; }
.page-heading .text-uppercase { margin-bottom: .5rem; }
.card-header { font-size: .95rem; }
.card-body > form.row { align-items: end; }
.form-control, .form-select { font-size: .9375rem; }
.form-control::placeholder { color: #73838b; }
.form-control[type="file"] { padding: .45rem .75rem; }
.form-control[type="file"]::file-selector-button { color: var(--app-primary-dark); background: #eaf2f2; }
.field-required::after { content: " *"; color: var(--app-danger); }
.required-note { margin-bottom: 1.25rem; }
.form-text { font-size: .83rem; }
form .row > div { min-width: 0; }
form .table-responsive { margin-top: 1.25rem; border: 1px solid var(--app-line); border-radius: 10px; }
form table .form-control, form table .form-select { min-width: 140px; }
form table input[type="date"] { min-width: 165px; }
form select[multiple] { min-height: 120px; padding: .5rem; }
form select[multiple] option { padding: .5rem .65rem; border-radius: 5px; }
.repeat-toolbar { display: flex; justify-content: flex-end; padding: .6rem 0; margin-bottom: 1rem; }
.report-section td:has(.report-lookup), .report-section td:has(.report-place) { min-width: 240px; }
.searchable-select { position: relative; }
.searchable-value { position: absolute !important; opacity: 0; width: 1px !important; height: 1px !important; padding: 0 !important; pointer-events: none; }
.searchable-options { position: absolute; top: 100%; left: 0; right: 0; z-index: 1050; max-height: 18rem; overflow-y: auto; background: white; box-shadow: 0 .5rem 1rem #0002; }
.searchable-options button { text-align: left; white-space: normal; overflow-wrap: anywhere; }
.searchable-options[hidden], .searchable-select .form-text:empty { display: none; }
.report-results { max-height: 16rem; overflow-y: auto; }
.report-popup { position: fixed; inset: auto; margin: 0; padding: 0; border: 1px solid var(--app-line); border-radius: 8px; background: white; color: var(--app-text); overflow-y: auto; box-shadow: 0 .5rem 1.5rem #0003; }
.report-popup .report-results { margin: 0 !important; max-height: none; overflow: visible; }
.report-popup .report-search-status { margin: 0; padding: .5rem .75rem; }
.report-popup .report-search-status:empty { display: none; }
.report-combo { position: relative; }
.report-combo-value { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.report-combo > input { padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23566c78' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
.report-combo .report-results:empty, .report-combo .report-search-status:empty { display: none; }
.report-results button, .report-selected button { white-space: normal; overflow-wrap: anywhere; text-align: left; }
[data-worker-report] fieldset:disabled .report-search,
[data-worker-report] fieldset:disabled [data-report-add],
[data-worker-report] fieldset:disabled .report-section th:last-child,
[data-worker-report] fieldset:disabled .report-section td:last-child { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .1rem; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn:hover:not(:disabled) { transform: none; box-shadow: none; }
.table-responsive { max-width: 100%; overscroll-behavior-x: contain; }
.table { font-size: .875rem; }
.table thead th { letter-spacing: .035em; }
.table-actions { white-space: nowrap; }
.table-actions .btn { margin: .15rem .2rem .15rem 0; }
.table-actions form { display: inline-block; margin: 0; }
.table-actions form .btn { margin-left: 0; }
.table td:empty::after { content: "Sin datos"; color: var(--app-ink-soft); font-size: .82rem; font-weight: 400; }
.table td[colspan] { padding: 2.5rem 1rem; text-align: center; color: var(--app-ink-soft); }
.table td { max-width: 34rem; overflow-wrap: break-word; }
.table td.table-actions { max-width: none; overflow-wrap: normal; }
.list-toolbar { flex-wrap: wrap; border-radius: 12px 12px 0 0; }
.list-toolbar > .btn { flex: 0 0 auto; }
.list-search-field { min-width: min(240px, 100%); }
.list-footer { flex-wrap: wrap; border-radius: 0 0 12px 12px; }
.list-footer nav { max-width: 100%; }
.pagination { flex-wrap: wrap; }
.page-link { font-size: .82rem; min-height: 38px; }
.page-item.disabled .page-link { color: #6a7d85; background: #f2f5f5; }
dl dd { overflow-wrap: anywhere; }
.detail-section { margin-bottom: 1.25rem; }
.detail-section:last-child { margin-bottom: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.5rem; }
.detail-grid > div { padding: .8rem 0; border-bottom: 1px solid var(--app-line); }
.detail-grid dt { margin-bottom: .4rem; }
.detail-grid dd { margin: 0; }
.dashboard-stat-link .card { border-top: 3px solid var(--app-primary) !important; }
.dashboard-stat-link .display-6 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.3rem; letter-spacing: -.04em; }
.chart-empty { display: grid; place-items: center; height: 100%; text-align: center; color: var(--app-ink-soft); }
.select2-container { max-width: 100%; }
.select2-container--default .select2-selection--single {
    min-height: 43px; border: 1px solid #cbdadd; border-radius: 10px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: .4rem .75rem; line-height: 28px; color: var(--app-ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 43px; }
.select2-container--default .select2-selection--multiple { border: 1px solid #cbdadd; border-radius: 10px; min-height: 43px; }
.select2-dropdown { border-color: #cbdadd; border-radius: 10px; box-shadow: var(--app-shadow); }
.select2-results__option { font-size: .9rem; padding: .6rem .75rem; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--app-primary); }
.select2-container--default.select2-container--focus .select2-selection--multiple { border-color: var(--app-primary); }
@media (max-width: 1199.98px) {
    .app-topbar { min-height: 72px; }
    .app-navbar .navbar-collapse { padding-bottom: .75rem; max-height: calc(100dvh - 80px); overflow-y: auto; }
    .app-navigation .nav-link { padding: .75rem !important; }
    .app-navigation .dropdown-menu { box-shadow: none; margin: .3rem .4rem; }
    .page-shell { min-height: calc(100vh - 72px); }
}
@media (max-width: 575.98px) {
    .app-topbar { gap: .5rem; }
    .navbar-brand { gap: .5rem; font-size: .85rem; }
    .navbar-brand img { width: 34px; height: 34px; flex-basis: 34px; }
    .navbar-brand > span { max-width: 8rem; white-space: normal; }
    .app-account { gap: .25rem; }
    .account-name { display: none; }
    .btn-user { width: 38px; padding: .4rem; }
    .btn-user .bi { margin: 0 !important; }
    .btn-user::after { display: none; }
    .navbar-toggler { padding: .3rem; font-size: 1rem; }
    .notification-menu { position: static; }
    .notification-dropdown { position: absolute; right: 1rem !important; left: 1rem !important; width: auto; min-width: 0; }
    .page-title-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 1.2rem; }
    .page-heading { align-items: start; gap: 1rem; }
    .page-heading > .d-flex { width: 100%; }
    .page-heading > .d-flex .btn { flex: 1 1 auto; }
    .page-title { gap: .65rem; }
    .form-control, .form-select { font-size: 1rem; }
    .list-toolbar { padding: 1rem; }
    .list-search-field { flex: 1 1 auto; width: 100%; min-width: 0; }
    .list-footer { padding: 1rem; }
    .page-link { min-width: 34px; min-height: 38px; padding: .4rem .55rem; }
    .detail-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Keep report actions visible while completing long reports. */
.report-sticky-heading {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: var(--app-bg, #fff);
    padding: .8rem 0;
    border-bottom: 1px solid var(--app-line);
    box-shadow: 0 5px 12px #00000008;
}
@media (min-width: 1200px) {
    .app-navbar .app-header-inner { display: flex; flex-wrap: nowrap; align-items: center; gap: .65rem; min-height: 78px; }
    .app-topbar { display: contents; }
    .app-navbar .navbar-brand { order: 0; flex-shrink: 0; gap: .45rem; font-size: 1rem; }
    .app-navbar .navbar-brand img { width: 36px; height: 36px; flex-basis: 36px; }
    .app-navbar .navbar-collapse { order: 1; flex: 1 1 auto; min-width: 0; }
    .app-navbar .app-account { order: 2; flex-shrink: 0; gap: .25rem; }
    .app-navbar .app-navigation { flex-wrap: nowrap; border-top: 0; gap: 0; padding: 0; justify-content: center; }
    .app-navbar .app-navigation .nav-link { padding: .65rem .38rem !important; font-size: .85rem; }
    .app-navbar .account-name { max-width: 6rem; }
}
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .app-navbar .navbar-brand { font-size: .85rem; }
    .app-navbar .app-navigation .nav-link { padding-inline: .3rem !important; font-size: .8rem; }
    .app-navigation > .nav-item > .nav-link > i { display: none; }
}
@media (max-width: 575.98px) {
    .report-sticky-heading .page-title { font-size: 1.1rem; }
    .report-sticky-heading .page-title-icon { display: none; }
    .report-sticky-heading { gap: .5rem !important; }
}

@media (min-width: 1200px) {
    .app-navbar .app-navigation { justify-content: flex-start; }
}
