:root {
    --ink-900: #122231;
    --ink-800: #1f3345;
    --ink-700: #2d4559;
    --muted: #5f7285;
    --sand-050: #fcfaf5;
    --sand-100: #f7f2e8;
    --sand-200: #ece3d2;
    --line: #d8deea;
    --line-strong: #c5cfde;
    --accent-700: #0d5f66;
    --accent-600: #0f766e;
    --accent-500: #14b8a6;
    --info-600: #0369a1;
    --warn-600: #b45309;
    --danger-600: #b42318;
    --ok-600: #0f766e;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
    color: var(--ink-900);
    background:
        radial-gradient(circle at 8% 10%, rgba(15, 118, 110, 0.12), transparent 38%),
        radial-gradient(circle at 92% 0%, rgba(14, 116, 144, 0.12), transparent 34%),
        linear-gradient(180deg, #f8f5ef 0%, #f1f4f8 46%, #eef5f3 100%);
    letter-spacing: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-title {
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    letter-spacing: 0;
}

a {
    color: var(--info-600);
}

a:hover {
    color: #075985;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background:
        linear-gradient(95deg, rgba(15, 36, 50, 0.96) 0%, rgba(16, 51, 68, 0.96) 58%, rgba(14, 96, 102, 0.93) 100%);
    border-bottom: 1px solid rgba(173, 192, 211, 0.22);
    box-shadow: 0 16px 30px rgba(9, 20, 32, 0.22);
    backdrop-filter: blur(8px);
}

.app-navbar .navbar-brand {
    color: #f8fbff;
    font-weight: 700;
}

.brand-title {
    font-weight: 700;
    letter-spacing: -0.015em;
}

.app-navbar .nav-link {
    color: rgba(233, 243, 254, 0.82);
    border-radius: 10px;
    padding: 0.42rem 0.72rem;
    font-weight: 600;
    transition: color 160ms ease, background-color 160ms ease;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.app-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.24);
}

.app-nav-dropdown {
    border: 1px solid rgba(173, 192, 211, 0.36);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(19, 40, 55, 0.98) 0%, rgba(18, 53, 70, 0.98) 100%);
    box-shadow: 0 16px 26px rgba(9, 20, 32, 0.25);
    min-width: 12rem;
}

.app-nav-dropdown .dropdown-item {
    color: rgba(233, 243, 254, 0.9);
    font-weight: 600;
    border-radius: 8px;
    margin: 0.15rem 0.35rem;
    padding: 0.45rem 0.6rem;
}

.app-nav-dropdown .dropdown-item:hover,
.app-nav-dropdown .dropdown-item:focus {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.24);
}

.app-nav-dropdown .dropdown-item.active {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.35);
}

.app-nav-dropdown .dropdown-divider {
    border-top-color: rgba(173, 192, 211, 0.28);
}

.app-navbar .badge {
    border: 1px solid rgba(189, 204, 224, 0.8);
    font-weight: 600;
}

.app-nav-collapse {
    gap: 0.75rem;
}

.app-nav-links {
    row-gap: 0.14rem;
}

.app-nav-utilities {
    margin-left: auto;
    flex-wrap: wrap;
}

.app-user-pill {
    max-width: min(44vw, 340px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-logout-form .btn {
    min-width: 88px;
}

.app-page {
    width: min(1700px, 100%);
    margin-inline: auto;
    padding: 1.5rem clamp(0.85rem, 2vw, 1.6rem) 2rem;
    flex: 1 0 auto;
}

.hero-block {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7dfeb;
    border-radius: 20px;
    padding: clamp(1.1rem, 1.8vw, 1.6rem);
    background:
        linear-gradient(132deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 251, 250, 0.96) 56%, rgba(239, 247, 252, 0.97) 100%);
    box-shadow: 0 14px 30px rgba(18, 34, 49, 0.08);
}

.hero-block::before {
    content: "";
    position: absolute;
    inset: auto -55px -55px auto;
    width: 170px;
    height: 170px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.17) 0%, rgba(20, 184, 166, 0) 70%);
    pointer-events: none;
}

.hero-block h1,
.hero-block h2,
.hero-block h3,
.hero-block h4 {
    color: #113147;
}

.subtle-label {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.app-card {
    border: 1px solid #d6ddea;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(18, 34, 49, 0.08);
    background: var(--surface-strong);
    overflow: hidden;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.app-card:hover {
    box-shadow: 0 16px 30px rgba(18, 34, 49, 0.1);
}

.app-card .card-header {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-bottom: 1px solid #dde4ef;
    color: #17324a;
    font-weight: 700;
    font-size: 0.95rem;
    padding-block: 0.8rem;
}

.deceased-details-page .details-action-toolbar {
    display: grid;
    gap: 0.62rem;
    min-width: min(100%, 860px);
}

.deceased-details-page .details-action-group {
    border: 1px solid #d8e1ee;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 0.62rem 0.72rem 0.72rem;
}

.deceased-details-page .details-action-group-title {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5a6f84;
    font-weight: 700;
    margin-bottom: 0.42rem;
}

.deceased-details-page .details-anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    border: 1px solid #d9e1ec;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.68rem 0.78rem;
}

.deceased-details-page .details-anchor-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #cfdae8;
    color: #1f3c55;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.32rem 0.62rem;
    text-decoration: none;
}

.deceased-details-page .details-anchor-link:hover,
.deceased-details-page .details-anchor-link:focus {
    color: #f8fbff;
    background: #2a445a;
    border-color: #2a445a;
}

.deceased-details-page .ops-pane {
    border: 1px solid #d8e2ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.92rem;
}

.deceased-details-page .ops-pane h6 {
    color: #17324a;
    font-weight: 700;
}

.deceased-details-page .movement-trail-summary {
    border: 1px dashed #c6d5e8;
    border-radius: 12px;
    background: linear-gradient(90deg, #f6fbff 0%, #f8fdfc 100%);
    color: #17324a;
    font-weight: 700;
    line-height: 1.55;
    padding: 0.78rem 0.92rem;
    word-break: break-word;
}

.deceased-details-page section[id] {
    scroll-margin-top: 92px;
}

.card-body {
    position: relative;
}

.metric-card {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    color: #f8fbff;
    min-height: 132px;
    box-shadow: 0 16px 26px rgba(16, 32, 48, 0.2);
}

.metric-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
}

.metric-card p {
    opacity: 0.94;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.metric-card h2 {
    margin: 0;
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.metric-admin {
    background: linear-gradient(140deg, #0f766e 0%, #14b8a6 62%, #0ea5a3 100%);
}

.metric-month {
    background: linear-gradient(140deg, #0369a1 0%, #0ea5e9 62%, #38bdf8 100%);
}

.metric-released {
    background: linear-gradient(140deg, #0f766e 0%, #14b8a6 58%, #22c55e 100%);
}

.metric-pending {
    background: linear-gradient(140deg, #92400e 0%, #d97706 58%, #f59e0b 100%);
}

.metric-unidentified {
    background: linear-gradient(140deg, #475569 0%, #334155 60%, #1e293b 100%);
}

.metric-capacity {
    background: linear-gradient(140deg, #1f2937 0%, #334155 60%, #4b5563 100%);
}

.metric-income-month {
    background: linear-gradient(140deg, #0f766e 0%, #0ea5a3 58%, #14b8a6 100%);
}

.metric-income-six-months {
    background: linear-gradient(140deg, #075985 0%, #0284c7 56%, #0ea5e9 100%);
}

.metric-overdue {
    background: linear-gradient(140deg, #991b1b 0%, #dc2626 58%, #f97316 100%);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.78;
}

.dashboard-page .hero-block {
    border-color: #d2dce9;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.25rem;
    align-items: center;
}

.dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c7d7e8;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    color: #1f4b64;
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard-title {
    font-size: clamp(1.52rem, 2.2vw, 2rem);
}

.dashboard-lead {
    max-width: 72ch;
}

.dashboard-action-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 0.5rem;
}

.dashboard-action-grid .btn {
    min-height: 40px;
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    margin-top: 0.35rem;
}

.dashboard-hero-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid #ced9e7;
    border-radius: 999px;
    padding: 0.32rem 0.72rem;
    background: rgba(255, 255, 255, 0.84);
    color: #24435c;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-hero-meta i {
    color: #0f766e;
}

.dashboard-capacity-wrap {
    border: 1px solid #d6e0ed;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
    padding: 0.8rem 0.9rem;
}

.dashboard-capacity-meter {
    height: 0.75rem;
    border-radius: 999px;
    background: #e8f0f8;
    overflow: hidden;
}

.dashboard-capacity-meter .progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 55%, #0ea5e9 100%);
}

.dashboard-signal-grid {
    align-items: stretch;
}

.dashboard-signal-card {
    border: 1px solid #d8e2ee;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px rgba(17, 35, 53, 0.07);
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.58rem;
}

.dashboard-signal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.dashboard-signal-label {
    color: #17364f;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
}

.dashboard-signal-head i {
    color: #0f766e;
}

.dashboard-signal-card h3 {
    color: #12344c;
    font-size: 1.3rem;
    margin: 0;
}

.dashboard-signal-card p {
    min-height: 2.6rem;
}

.dashboard-signal-card.is-critical {
    border-color: #f0c3bf;
    background: linear-gradient(180deg, #fff9f8 0%, #fff3f2 100%);
}

.dashboard-signal-card.is-critical .dashboard-signal-head i {
    color: #b42318;
}

.dashboard-signal-card.is-warning {
    border-color: #ead29f;
    background: linear-gradient(180deg, #fffdf7 0%, #fff8eb 100%);
}

.dashboard-signal-card.is-warning .dashboard-signal-head i {
    color: #b45309;
}

.dashboard-signal-card.is-ok {
    border-color: #bfe2d7;
    background: linear-gradient(180deg, #f8fffc 0%, #effaf6 100%);
}

.dashboard-signal-card.is-info {
    border-color: #bfd7ef;
    background: linear-gradient(180deg, #f8fcff 0%, #eff6fd 100%);
}

.dashboard-metric-grid .metric-card,
.dashboard-metric-grid .dashboard-mini-card {
    height: 100%;
}

.dashboard-mini-card .card-body {
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
    padding: 1rem 1.05rem;
}

.dashboard-mini-card h4 {
    color: #16344d;
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    line-height: 1.4;
}

.dashboard-table-card .card-body {
    padding-top: 0.88rem;
}

.dashboard-data-table tbody td {
    font-size: 0.9rem;
}

.dashboard-side-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dashboard-case-item {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    padding: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.dashboard-priority-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.dashboard-priority-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    padding: 0.72rem 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-priority-item strong {
    color: #14334c;
    text-align: right;
}

.dashboard-priority-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f3d56;
    font-weight: 600;
}

.dashboard-priority-label i {
    color: #0f766e;
    width: 1rem;
    text-align: center;
}

.dashboard-priority-actions {
    margin-top: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #d0dceb;
    display: grid;
    gap: 0.5rem;
}

.dashboard-focus-card {
    border: 1px solid #dbe5f0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 0.85rem;
    box-shadow: 0 10px 22px rgba(17, 35, 53, 0.06);
}

.dashboard-focus-card h6 {
    color: #17354e;
    font-weight: 700;
}

.dashboard-focus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #dee7f2;
    border-radius: 11px;
    background: #ffffff;
    padding: 0.58rem 0.66rem;
    color: #24435c;
    margin-bottom: 0.48rem;
}

.dashboard-focus-row strong {
    color: #12334c;
    text-align: right;
}

.staff-command-page {
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.9) 0%, rgba(244, 248, 250, 0.82) 100%);
}

.staff-command-hero {
    border: 1px solid #cbd8e6;
    border-radius: 18px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(17, 39, 56, 0.98) 0%, rgba(25, 73, 84, 0.96) 54%, rgba(244, 248, 250, 0.98) 54.3%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 18px 34px rgba(15, 31, 46, 0.16);
}

.staff-command-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
    gap: 1rem;
    align-items: stretch;
    padding: clamp(1rem, 2vw, 1.35rem);
}

.staff-command-copy {
    color: #f8fbff;
    padding: clamp(0.25rem, 1vw, 0.6rem);
}

.staff-command-copy .dashboard-eyebrow {
    border-color: rgba(196, 220, 235, 0.35);
    color: #dff8f3;
    background: rgba(255, 255, 255, 0.08);
}

.staff-command-copy .dashboard-title {
    color: #ffffff;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.staff-command-copy .dashboard-lead {
    color: rgba(239, 247, 252, 0.86);
    max-width: 78ch;
    font-size: 1rem;
}

.staff-command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    align-content: center;
    border: 1px solid rgba(203, 216, 230, 0.88);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    padding: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.staff-command-actions .btn {
    min-height: 44px;
    font-weight: 700;
    white-space: normal;
}

.staff-command-strip {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #cdd9e7;
    border-top: 1px solid #cdd9e7;
}

.staff-capacity-panel,
.staff-hero-stat {
    background: rgba(255, 255, 255, 0.94);
    padding: 0.95rem 1rem;
}

.staff-capacity-panel {
    display: flex;
    align-items: center;
    gap: 0.82rem;
}

.staff-capacity-panel strong,
.staff-hero-stat strong {
    display: block;
    color: #102f45;
    font-weight: 800;
}

.staff-capacity-panel span,
.staff-hero-stat span {
    color: #5c7082;
    font-size: 0.86rem;
    font-weight: 600;
}

.staff-capacity-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 68px;
    background:
        radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
        conic-gradient(#0f766e var(--capacity), #e3ebf3 0);
    box-shadow: inset 0 0 0 1px #d7e1ec;
}

.staff-capacity-ring.is-warning {
    background:
        radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
        conic-gradient(#b45309 var(--capacity), #e3ebf3 0);
}

.staff-capacity-ring.is-critical {
    background:
        radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
        conic-gradient(#b42318 var(--capacity), #e3ebf3 0);
}

.staff-capacity-ring span {
    color: #12344c;
    font-size: 0.95rem;
    font-weight: 800;
}

.staff-hero-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-hero-stat strong {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.1;
}

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

.staff-alert-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    border: 1px solid #d6e1ee;
    border-radius: 16px;
    background: #ffffff;
    padding: 0.95rem;
    box-shadow: 0 12px 24px rgba(17, 35, 53, 0.08);
}

.staff-alert-card.is-critical {
    border-color: #edb9b3;
    background: linear-gradient(180deg, #fff8f7 0%, #ffffff 100%);
}

.staff-alert-card.is-warning {
    border-color: #e7cf9d;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.staff-alert-card.is-ok {
    border-color: #b8ddcf;
    background: linear-gradient(180deg, #f6fffb 0%, #ffffff 100%);
}

.staff-alert-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #0f766e;
    background: #e8f7f3;
}

.staff-alert-card.is-warning .staff-alert-icon {
    color: #b45309;
    background: #fff1d8;
}

.staff-alert-card.is-critical .staff-alert-icon {
    color: #b42318;
    background: #ffe4e0;
}

.staff-alert-kicker,
.staff-card-kicker {
    display: block;
    color: #607488;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
}

.staff-alert-card h2 {
    margin: 0.12rem 0 0.2rem;
    color: #12344c;
    font-size: 1.35rem;
}

.staff-alert-card p {
    min-height: 2.5rem;
    margin: 0 0 0.5rem;
    color: #607488;
    font-size: 0.88rem;
    line-height: 1.45;
}

.staff-alert-card a {
    color: #0d5f66;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.staff-alert-card a:hover {
    color: #083f44;
}

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

.staff-kpi-card {
    border: 1px solid #d5e0ed;
    border-radius: 14px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 0.9rem 0.95rem;
    box-shadow: 0 10px 20px rgba(17, 35, 53, 0.06);
    min-height: 116px;
}

.staff-kpi-card span,
.staff-kpi-card small {
    display: block;
    color: #607488;
    font-size: 0.78rem;
    font-weight: 700;
}

.staff-kpi-card strong {
    display: block;
    color: #12344c;
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    line-height: 1.08;
    margin: 0.28rem 0;
}

.staff-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.staff-card-header strong {
    display: block;
    color: #16344d;
}

.staff-intake-table {
    margin-bottom: 0;
}

.staff-intake-table thead th {
    border-bottom: 1px solid #d9e4ef;
    color: #607488;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.staff-intake-table tbody td {
    border-color: #edf2f7;
    color: #263f55;
    font-size: 0.9rem;
    padding-block: 0.78rem;
}

.staff-intake-table tbody tr:hover {
    background: #f7fbff;
}

.staff-record-name {
    color: #12344c;
    font-weight: 800;
}

.staff-handover-panel {
    border: 1px solid #cddae8;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(17, 35, 53, 0.08);
    padding: 1rem;
}

.staff-handover-head {
    border-bottom: 1px dashed #d3dfeb;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.staff-handover-head h2 {
    color: #12344c;
    font-size: 1.2rem;
    margin: 0.15rem 0 0.28rem;
}

.staff-handover-head p {
    color: #607488;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.staff-handover-list {
    display: grid;
    gap: 0.52rem;
}

.staff-handover-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #d9e4ef;
    border-radius: 12px;
    background: #ffffff;
    color: #1e3b52;
    padding: 0.68rem 0.72rem;
    text-decoration: none;
}

.staff-handover-item:hover {
    color: #0d5f66;
    border-color: #bcd4df;
    background: #f7fcfb;
}

.staff-handover-item span {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    min-width: 0;
    font-weight: 700;
}

.staff-handover-item i {
    color: #0f766e;
    width: 1rem;
    text-align: center;
}

.staff-handover-item strong {
    color: #12344c;
    text-align: right;
    white-space: nowrap;
}

.staff-handover-actions {
    display: grid;
    gap: 0.52rem;
    border-top: 1px dashed #d3dfeb;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
}

.staff-workspace-page {
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.88) 0%, rgba(242, 247, 249, 0.78) 100%);
}

.staff-workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #cbd8e6;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(18, 40, 58, 0.98) 0%, rgba(27, 78, 87, 0.96) 62%, rgba(246, 250, 252, 0.96) 62.2%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 18px 34px rgba(15, 31, 46, 0.15);
    padding: clamp(1rem, 2vw, 1.35rem);
    overflow: hidden;
}

.staff-workspace-copy {
    color: #f8fbff;
    padding: 0.25rem;
}

.staff-workspace-eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(200, 222, 236, 0.36);
    border-radius: 999px;
    color: #dff8f3;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.72rem;
    margin-bottom: 0.58rem;
}

.staff-workspace-copy h1 {
    color: #ffffff;
    font-size: clamp(1.62rem, 2.6vw, 2.35rem);
    margin: 0 0 0.45rem;
}

.staff-workspace-copy p {
    max-width: 82ch;
    color: rgba(239, 247, 252, 0.86);
    line-height: 1.58;
    margin: 0;
}

.staff-workspace-actions {
    display: grid;
    gap: 0.58rem;
    align-content: center;
    border: 1px solid rgba(203, 216, 230, 0.86);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staff-workspace-actions .btn {
    min-height: 42px;
    font-weight: 800;
    white-space: normal;
}

.staff-filter-panel {
    border: 1px solid #d2deeb;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(17, 35, 53, 0.07);
    overflow: hidden;
}

.staff-filter-panel .card-body {
    padding: 1rem;
}

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

.staff-workspace-summary article {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    border: 1px solid #d3dfeb;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 20px rgba(17, 35, 53, 0.06);
    padding: 0.86rem 0.95rem;
    min-height: 92px;
}

.staff-workspace-summary i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #0f766e;
    background: #e8f7f3;
    flex: 0 0 42px;
}

.staff-workspace-summary span {
    display: block;
    color: #607488;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.staff-workspace-summary strong {
    display: block;
    color: #12344c;
    font-size: 1.35rem;
    line-height: 1.15;
}

.staff-count-row .app-card {
    border-radius: 14px;
}

.staff-count-row .app-card .card-body {
    min-height: 104px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.staff-count-row h4 {
    color: #12344c;
    font-size: 1.9rem;
    font-weight: 800;
}

.staff-list-card {
    border-radius: 16px;
}

.staff-list-card .card-body {
    padding: 0.85rem;
}

.staff-list-card .list-table thead th {
    color: #607488;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #f8fbff;
}

.staff-list-card .list-table tbody td {
    border-color: #edf2f7;
    color: #253e55;
}

.staff-list-card .list-table tbody tr:hover {
    background: #f7fbff;
}

.staff-legacy-hero {
    display: block;
}

.staff-legacy-hero > .d-flex {
    position: relative;
    z-index: 1;
}

.staff-legacy-hero h2 {
    color: #ffffff;
    font-size: clamp(1.48rem, 2.35vw, 2.15rem);
}

.staff-legacy-hero .subtle-label {
    color: rgba(239, 247, 252, 0.84);
    max-width: 82ch;
}

.staff-legacy-hero .badge,
.staff-legacy-hero .status-pill {
    box-shadow: 0 8px 18px rgba(15, 31, 46, 0.14);
}

.staff-log-page .page-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid #cbd8e6;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(18, 40, 58, 0.98) 0%, rgba(27, 78, 87, 0.96) 100%);
    color: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 31, 46, 0.14);
    padding: 1.05rem 1.15rem;
    margin-bottom: 1rem;
}

.staff-log-page .page-title i {
    color: #7ddfd3;
}

.staff-log-page > .d-flex:first-child {
    border: 1px solid #cbd8e6;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(18, 40, 58, 0.98) 0%, rgba(27, 78, 87, 0.96) 62%, #ffffff 62.2%, #ffffff 100%);
    box-shadow: 0 18px 34px rgba(15, 31, 46, 0.14);
    padding: 1rem;
}

.staff-log-page > .d-flex:first-child .page-title {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.staff-log-page .card.border-0.shadow-sm {
    border: 1px solid #d3dfeb !important;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(17, 35, 53, 0.07) !important;
    overflow: hidden;
}

.staff-log-page .card.border-0.shadow-sm .card-title,
.staff-log-page .card.border-0.shadow-sm h5 {
    color: #12344c;
    font-weight: 800;
}

.staff-log-page .table {
    margin-bottom: 0;
}

.staff-log-page .table thead th {
    color: #607488;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #f8fbff;
    border-bottom-color: #d9e4ef;
}

.staff-log-page .table tbody td {
    border-color: #edf2f7;
    color: #253e55;
    vertical-align: middle;
}

.staff-log-page .table tbody tr:hover {
    background: #f7fbff;
}

.staff-log-hero {
    margin-bottom: 1rem;
}

.ops-form-page {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.9) 0%, rgba(242, 247, 249, 0.8) 100%);
}

.ops-form-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #c4d3e2;
    border-radius: 18px;
    padding: clamp(1rem, 2vw, 1.35rem);
    background:
        linear-gradient(135deg, rgba(18, 40, 58, 0.98) 0%, rgba(27, 78, 87, 0.96) 60%, rgba(246, 250, 252, 0.96) 60.2%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 18px 34px rgba(15, 31, 46, 0.14);
}

.ops-form-page > .hero-block,
.deceased-details-page > .hero-block,
.release-report-page > .hero-block {
    border: 1px solid #c4d3e2;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(18, 40, 58, 0.98) 0%, rgba(27, 78, 87, 0.96) 62%, rgba(246, 250, 252, 0.96) 62.2%, rgba(255, 255, 255, 0.98) 100%);
    box-shadow: 0 18px 34px rgba(15, 31, 46, 0.14);
}

.ops-form-page > .hero-block h1,
.ops-form-page > .hero-block h2,
.deceased-details-page > .hero-block h1,
.deceased-details-page > .hero-block h2,
.release-report-page > .hero-block h1,
.release-report-page > .hero-block h2 {
    color: #ffffff;
}

.ops-form-page > .hero-block .subtle-label,
.deceased-details-page > .hero-block .subtle-label,
.release-report-page > .hero-block .subtle-label {
    color: rgba(239, 247, 252, 0.86);
}

.ops-form-page > .app-card,
.ops-form-page .app-card,
.deceased-details-page .app-card,
.release-report-page .app-card {
    border-color: #cbd8e6;
}

.ops-form-hero h1 {
    color: #ffffff;
    font-size: clamp(1.65rem, 2.9vw, 2.55rem);
    margin: 0.45rem 0;
}

.ops-form-hero p {
    max-width: 74ch;
    margin: 0;
    color: rgba(239, 247, 252, 0.86);
    line-height: 1.58;
}

.ops-form-actions {
    display: grid;
    gap: 0.58rem;
    align-content: center;
    border: 1px solid rgba(203, 216, 230, 0.86);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.85rem;
}

.ops-form-card {
    border-color: #cbd8e6;
    border-radius: 16px;
}

.ops-form-card .card-body {
    padding: 1rem;
}

.ops-form-card .form-control,
.ops-form-card .form-select {
    border-color: #cfdbe8;
    background-color: #fbfdff;
}

.ops-form-card .form-control:focus,
.ops-form-card .form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.14);
}

.admin-command-page,
.admin-workspace-page {
    background:
        linear-gradient(180deg, rgba(247, 250, 252, 0.92) 0%, rgba(241, 246, 248, 0.84) 100%);
}

.admin-command-hero,
.admin-workspace-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #c6d5e4;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(13, 30, 45, 0.98) 0%, rgba(25, 67, 80, 0.97) 58%, rgba(255, 255, 255, 0.98) 58.2%, rgba(248, 251, 255, 0.98) 100%);
    box-shadow: 0 20px 38px rgba(12, 25, 39, 0.17);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.admin-command-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
    gap: 1rem;
}

.admin-workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
    gap: 1rem;
    align-items: stretch;
}

.admin-command-copy,
.admin-workspace-hero > div:first-child,
.reports-hero > .d-flex > div:first-child {
    color: #f8fbff;
}

.admin-command-eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(204, 226, 240, 0.34);
    border-radius: 999px;
    color: #dff8f3;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.72rem;
    margin-bottom: 0.58rem;
}

.admin-command-copy h1,
.admin-workspace-hero h1,
.reports-hero h1 {
    color: #ffffff;
    font-size: clamp(1.72rem, 3vw, 2.65rem);
    margin: 0 0 0.45rem;
}

.admin-command-copy p,
.admin-workspace-hero p,
.reports-hero p {
    max-width: 86ch;
    color: rgba(239, 247, 252, 0.86);
    line-height: 1.58;
    margin: 0;
}

.admin-command-actions,
.admin-workspace-actions {
    display: grid;
    gap: 0.58rem;
    align-content: center;
    border: 1px solid rgba(203, 216, 230, 0.86);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.admin-command-actions .btn,
.admin-workspace-actions .btn {
    min-height: 42px;
    font-weight: 800;
    white-space: normal;
}

.admin-command-strip {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #cdd9e7;
    border-radius: 14px;
    background: #cdd9e7;
}

.admin-capacity-panel,
.admin-strip-stat {
    background: rgba(255, 255, 255, 0.94);
    padding: 0.92rem 1rem;
}

.admin-capacity-panel {
    display: flex;
    align-items: center;
    gap: 0.82rem;
}

.admin-capacity-panel strong,
.admin-strip-stat strong {
    display: block;
    color: #102f45;
    font-weight: 800;
}

.admin-capacity-panel span,
.admin-strip-stat span {
    color: #5c7082;
    font-size: 0.84rem;
    font-weight: 700;
}

.admin-strip-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.admin-strip-stat strong {
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.1;
}

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

.admin-risk-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    border: 1px solid #d4e0ec;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(17, 35, 53, 0.08);
    padding: 0.92rem;
}

.admin-risk-card > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #0f766e;
    background: #e8f7f3;
}

.admin-risk-card.is-warning {
    border-color: #e6cf9c;
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.admin-risk-card.is-warning > i {
    color: #b45309;
    background: #fff1d8;
}

.admin-risk-card.is-critical {
    border-color: #edb9b3;
    background: linear-gradient(180deg, #fff8f7 0%, #ffffff 100%);
}

.admin-risk-card.is-critical > i {
    color: #b42318;
    background: #ffe4e0;
}

.admin-risk-card span,
.admin-card-header span {
    display: block;
    color: #607488;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
}

.admin-risk-card h2 {
    margin: 0.12rem 0 0.2rem;
    color: #12344c;
    font-size: 1.3rem;
}

.admin-risk-card p {
    min-height: 3rem;
    margin: 0 0 0.5rem;
    color: #607488;
    font-size: 0.86rem;
    line-height: 1.45;
}

.admin-risk-card a {
    color: #0d5f66;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.admin-intel-grid,
.admin-count-row {
    align-items: stretch;
}

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

.admin-intel-card,
.admin-count-row .app-card {
    border: 1px solid #d4e0ec;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 20px rgba(17, 35, 53, 0.06);
}

.admin-intel-card {
    min-height: 116px;
    padding: 0.9rem 0.95rem;
}

.admin-intel-card span,
.admin-intel-card small {
    display: block;
    color: #607488;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-intel-card strong,
.admin-count-row h2,
.admin-count-row h3,
.admin-count-row h4 {
    display: block;
    color: #12344c;
    font-weight: 800;
}

.admin-intel-card strong {
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
    line-height: 1.08;
    margin: 0.28rem 0;
}

.admin-board-card,
.admin-list-card,
.admin-governance-panel {
    border: 1px solid #d0ddea;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 24px rgba(17, 35, 53, 0.08);
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.admin-card-header strong {
    display: block;
    color: #16344d;
}

.admin-data-table,
.admin-list-card .table {
    margin-bottom: 0;
}

.admin-data-table thead th,
.admin-list-card .table thead th {
    color: #607488;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #f8fbff;
    border-bottom-color: #d9e4ef;
}

.admin-data-table tbody td,
.admin-list-card .table tbody td {
    border-color: #edf2f7;
    color: #253e55;
    vertical-align: middle;
}

.admin-data-table tbody tr:hover,
.admin-list-card .table tbody tr:hover {
    background: #f7fbff;
}

.admin-governance-panel {
    padding: 1rem;
}

.admin-governance-head {
    border-bottom: 1px dashed #d3dfeb;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-governance-head span {
    display: block;
    color: #607488;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 800;
}

.admin-governance-head h2 {
    color: #12344c;
    font-size: 1.2rem;
    margin: 0.15rem 0 0.28rem;
}

.admin-governance-head p {
    color: #607488;
    font-size: 0.88rem;
    line-height: 1.45;
    margin: 0;
}

.admin-governance-switcher {
    border-color: #c7d6e5;
    box-shadow: 0 16px 30px rgba(17, 35, 53, 0.1);
}

.reports-page {
    background: radial-gradient(circle at 7% -14%, rgba(14, 165, 233, 0.08) 0, rgba(14, 165, 233, 0) 40%),
                radial-gradient(circle at 92% 4%, rgba(15, 118, 110, 0.08) 0, rgba(15, 118, 110, 0) 34%);
}

.reports-hero {
    position: relative;
    overflow: hidden;
    border-color: #cfdced;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 250, 255, 0.96) 62%, rgba(239, 250, 247, 0.96) 100%);
}

.reports-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    right: -90px;
    top: -120px;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.2) 0%, rgba(15, 118, 110, 0) 70%);
    pointer-events: none;
}

.reports-eyebrow {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bfd3e8;
    border-radius: 999px;
    padding: 0.3rem 0.76rem;
    color: #1b4360;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.reports-hero-actions .btn {
    min-height: 41px;
}

.reports-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.reports-hero-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    border: 1px solid #cbdaea;
    padding: 0.35rem 0.74rem;
    background: rgba(255, 255, 255, 0.92);
    color: #1f405a;
    font-size: 0.8rem;
    font-weight: 600;
}

.reports-hero-meta > span i {
    color: #0f766e;
}

.reports-metric-grid .metric-card,
.reports-threshold-grid .metric-card {
    height: 100%;
}

.reports-page .app-card {
    border-color: #cfdced;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 14px 26px rgba(16, 32, 48, 0.1);
}

.reports-page .app-card .card-header {
    background: linear-gradient(180deg, #fbfeff 0%, #eef6ff 100%);
}

.reports-summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4faff 62%, #f1f9f7 100%) !important;
}

.reports-summary-list {
    display: grid;
    gap: 0.5rem;
}

.reports-summary-item {
    margin: 0 !important;
    border-color: #d4dfec !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    align-items: center;
    gap: 0.78rem;
}

.reports-summary-item span {
    color: #27445d;
}

.reports-summary-item strong {
    color: #123750;
    font-size: 0.96rem;
}

.reports-export-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
}

.reports-export-note {
    border: 1px dashed #bdd6ea;
    border-radius: 12px;
    background: linear-gradient(90deg, #f4fbff 0%, #f2faf7 100%);
    color: #20455f;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem 0.7rem;
}

.reports-summary-card .d-flex.justify-content-between.border.rounded {
    border-color: #d4dfec !important;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.reports-export-card {
    background: linear-gradient(145deg, #ffffff 0%, #f2f9ff 58%, #edf8f5 100%) !important;
}

.reports-aging-card {
    background: linear-gradient(145deg, #ffffff 0%, #f4f9ff 100%) !important;
}

.reports-occupancy-card {
    background: linear-gradient(145deg, #ffffff 0%, #f6fbff 100%) !important;
}

.reports-unclaimed-card {
    background: linear-gradient(145deg, #fffefd 0%, #fef7ee 100%) !important;
}

.reports-disposal-card {
    background: linear-gradient(145deg, #ffffff 0%, #f7fbff 68%, #f3f8fe 100%) !important;
}

.reports-mass-card {
    background: linear-gradient(145deg, #ffffff 0%, #f5f9ff 100%) !important;
}

.reports-audit-card {
    background: linear-gradient(145deg, #ffffff 0%, #f6fbff 100%) !important;
}

.reports-page .table-responsive {
    border: 1px solid #d8e4f1;
    border-radius: 12px;
    background: #ffffff;
}

.reports-page .table thead th {
    background: linear-gradient(180deg, #223a50 0%, #1b3449 100%);
}

.reports-page .table tbody tr:nth-child(2n) {
    background: rgba(243, 248, 255, 0.48);
}

.reports-page .table tbody tr:hover {
    background: linear-gradient(90deg, #eef7ff 0%, #f2fbff 100%);
}

.reports-page .empty-state {
    padding: 2rem 1rem;
}

.reports-page .empty-state i {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #0f766e;
}

.reports-page details summary {
    cursor: pointer;
}

.dashboard-mobile-list {
    display: grid;
    gap: 0.6rem;
}

.dashboard-mobile-item {
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    padding: 0.78rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.dashboard-mobile-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.38rem;
}

.dashboard-mobile-name {
    color: #16344d;
    display: block;
    line-height: 1.35;
}

.dashboard-mobile-meta {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.45rem;
}

.dashboard-mobile-meta > span {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #3f586f;
    font-size: 0.85rem;
}

.dashboard-mobile-meta i {
    color: #0f766e;
    width: 0.95rem;
    text-align: center;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 0;
    background: #1d3449;
    color: #f8fbff;
    font-size: 0.79rem;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    font-weight: 700;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    white-space: nowrap;
}

.table tbody td {
    color: #1d3347;
    border-color: #e8edf5;
    padding-top: 0.74rem;
    padding-bottom: 0.74rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f4f9ff;
}

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

.list-card {
    border: 1px solid #d7e1ee;
    box-shadow: 0 14px 26px rgba(18, 34, 49, 0.08);
}

.list-card .card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border-bottom: 1px solid #dfe7f2;
}

.list-table-wrap {
    border: 1px solid #dce5f1;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.list-table-wrap::-webkit-scrollbar {
    height: 10px;
}

.list-table-wrap::-webkit-scrollbar-thumb {
    background: #becbdd;
    border-radius: 999px;
}

.list-table-wrap::-webkit-scrollbar-track {
    background: #edf2f8;
}

.list-table {
    min-width: 980px;
}

.list-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: linear-gradient(180deg, #223a50 0%, #1a3146 100%);
    border-bottom: 1px solid #304b65;
}

.list-table tbody tr:nth-child(2n) {
    background: rgba(243, 248, 255, 0.55);
}

.list-table tbody tr:hover {
    background: linear-gradient(90deg, #eef8ff 0%, #f2fbff 100%);
}

.list-table tbody td {
    font-size: 0.9rem;
}

.list-table tbody td .subtle-label {
    line-height: 1.35;
}

.list-table tbody td .subtle-label + .subtle-label {
    margin-top: 0.2rem;
}

.list-table .status-pill,
.list-table .badge {
    margin-top: 0.1rem;
}

.list-table .btn.btn-sm {
    border-radius: 10px;
    font-weight: 600;
}

.list-table .empty-state {
    padding: 2.4rem 1rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.36rem 0.66rem;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
}

.status-storage {
    background: #fff0db;
    color: #9a3412;
}

.status-released {
    background: #dcfce7;
    color: #166534;
}

.status-unidentified {
    background: #e8eef9;
    color: #1e40af;
}

.status-na {
    background: #e9edf3;
    color: #334155;
}

.status-missing {
    background: #fee2e2;
    color: #991b1b;
}

.status-overdue {
    background: #fee2e2;
    color: #b42318;
}

.status-today {
    background: #fef3c7;
    color: #92400e;
}

.status-upcoming {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn {
    border-radius: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding-inline: 0.92rem;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-700) 0%, var(--accent-600) 48%, var(--accent-500) 100%);
    color: #fff;
    border: 0;
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.24);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    filter: brightness(0.97);
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.3);
}

.btn-outline-dark {
    border-color: #2e4a60;
    color: #1f3c55;
    background: rgba(255, 255, 255, 0.9);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    color: #f8fbff;
    background: #2a445a;
    border-color: #2a445a;
}

.btn-outline-secondary {
    border-color: #9ba8bb;
    color: #3f556e;
}

.form-label {
    color: #243f57;
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.38rem;
}

.form-control,
.form-select,
.input-group-text {
    border-color: #ced8e5;
    border-radius: 11px;
    background: #fff;
    color: #17324a;
}

.form-control::placeholder {
    color: #8191a4;
}

.form-control:focus,
.form-select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 0.22rem rgba(20, 184, 166, 0.18);
}

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

.form-check-input:checked {
    background-color: #0f766e;
    border-color: #0f766e;
}

.signature-pad-wrap {
    border: 1px dashed #aebdd1;
    border-radius: 12px;
    background: #f8fbff;
    padding: 0.35rem;
}

.signature-pad {
    width: 100%;
    height: 170px;
    display: block;
    border-radius: 9px;
    background: #fff;
    cursor: crosshair;
    touch-action: none;
}

.modal-content {
    border: 1px solid #d7dfeb;
    border-radius: 16px;
    box-shadow: 0 24px 38px rgba(15, 26, 39, 0.24);
    overflow: hidden;
}

.modal {
    z-index: 2000;
}

.modal-backdrop {
    z-index: 1990;
}

.modal-header {
    border-bottom: 1px solid #e0e7f0;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.modal-footer {
    border-top: 1px solid #e3e9f2;
    background: #fcfdff;
}


.alert {
    border-radius: 12px;
    border-width: 1px;
}

.alert-success {
    border-color: #b7e4ce;
    background: #ecfdf3;
    color: #166534;
}

.alert-danger {
    border-color: #f5c2c7;
    background: #fff1f2;
    color: #9f1239;
}

.alert-info {
    border-color: #cfe6fb;
    background: #f0f8ff;
    color: #0f3f69;
}

.badge {
    font-weight: 700;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 2.1rem 0;
    font-size: 0.95rem;
}

.empty-state i {
    font-size: 1.95rem;
    margin-bottom: 0.5rem;
    color: #9dafc3;
}

.notifications-page {
    background: radial-gradient(circle at 8% -10%, rgba(15, 118, 110, 0.1) 0, rgba(15, 118, 110, 0) 38%),
                radial-gradient(circle at 96% 0%, rgba(24, 70, 97, 0.12) 0, rgba(24, 70, 97, 0) 36%);
}

.notifications-command-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.3fr);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #bed0df;
    border-radius: 22px;
    padding: 1.25rem;
    background: linear-gradient(135deg, #10283c 0%, #164b5f 58%, #f6fbff 58.2%, #ffffff 100%);
    box-shadow: 0 18px 36px rgba(16, 40, 60, 0.12);
}

.notifications-command-hero h1 {
    margin: 0.45rem 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    font-weight: 800;
}

.notifications-command-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(235, 247, 249, 0.86);
    line-height: 1.65;
}

.notifications-command-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.58rem;
    border: 1px solid rgba(198, 217, 227, 0.9);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(16, 40, 60, 0.1);
}

.notifications-command-panel span {
    color: #61798f;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.notifications-command-panel strong {
    color: #13344c;
    font-size: 2rem;
    line-height: 1;
}

.notifications-board {
    border-color: #c9d8e9;
}

.notifications-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-bottom-color: #d9e4f1;
}

.notifications-board-header strong {
    display: block;
    color: #143047;
    font-size: 1rem;
}

.notifications-filter-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.notifications-filter-row .btn {
    border-radius: 999px;
    min-width: 72px;
}

.notification-list {
    display: grid;
    gap: 0.82rem;
}

.notification-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: start;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 0.88rem 0.95rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.notification-item:hover {
    border-color: #b8cadb;
    box-shadow: 0 10px 22px rgba(16, 44, 65, 0.08);
}

.notification-item.is-unread {
    border-left: 4px solid var(--accent-600);
    background: linear-gradient(180deg, #fcfffe 0%, #f2fbf9 100%);
}

.notification-item.is-read {
    opacity: 0.88;
}

.notification-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.42rem;
}

.notification-main p {
    color: #223a51;
    margin-bottom: 0.42rem;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.notification-severity {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border: 1px solid transparent;
}

.notification-severity.sev-info {
    color: #0c4a6e;
    background: #e0f2fe;
    border-color: #bae6fd;
}

.notification-severity.sev-success {
    color: #166534;
    background: #dcfce7;
    border-color: #bbf7d0;
}

.notification-severity.sev-warning {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.notification-severity.sev-critical {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fecaca;
}

code {
    color: #0f4f6f;
    background: #eef6fc;
    border-radius: 6px;
    padding: 0.12rem 0.36rem;
}

.landing-page section[id] {
    scroll-margin-top: 100px;
}

.landing-page {
    max-width: 1560px;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    min-height: min(760px, calc(100vh - 2.5rem));
    border: 1px solid rgba(194, 209, 224, 0.72);
    border-radius: 18px;
    background: #102536;
    box-shadow: 0 24px 42px rgba(15, 28, 42, 0.18);
}

.landing-hero-media,
.landing-hero-shade {
    position: absolute;
    inset: 0;
}

.landing-hero-media {
    background-image: url("/img/landing-hospital-ops.png");
    background-position: 64% center;
    background-size: cover;
    transform: scale(1.01);
}

.landing-hero-shade {
    background:
        linear-gradient(90deg, rgba(11, 27, 41, 0.96) 0%, rgba(11, 27, 41, 0.86) 40%, rgba(11, 27, 41, 0.25) 70%, rgba(11, 27, 41, 0.08) 100%),
        linear-gradient(180deg, rgba(11, 27, 41, 0.18) 0%, rgba(11, 27, 41, 0.58) 100%);
}

.landing-hero-content {
    position: relative;
    z-index: 1;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    padding: clamp(1.1rem, 2.3vw, 2.2rem);
}

.landing-trust-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.landing-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(210, 225, 239, 0.46);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(246, 250, 254, 0.94);
    backdrop-filter: blur(10px);
}

.landing-badge.is-soft {
    border-color: rgba(119, 210, 203, 0.48);
    color: #dffdf9;
    background: rgba(15, 118, 110, 0.22);
}

.landing-login-top {
    border: 1px solid rgba(255, 255, 255, 0.48);
    color: #102536;
    box-shadow: 0 10px 20px rgba(8, 18, 29, 0.22);
}

.landing-hero-copy {
    width: min(720px, 100%);
    margin-block: auto;
    padding-block: clamp(2.5rem, 8vw, 6.6rem);
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.55rem;
    color: #0f6b75;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-hero .landing-eyebrow {
    color: #7ee4dc;
}

.landing-title {
    color: #ffffff;
    font-size: clamp(2.25rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    max-width: 760px;
}

.landing-lead {
    font-size: clamp(1rem, 1.45vw, 1.22rem);
    line-height: 1.65;
    color: rgba(240, 247, 253, 0.9);
    max-width: 64ch;
}

.landing-hero-actions,
.landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.landing-hero-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: auto;
}

.landing-stat-card {
    min-height: 116px;
    border: 1px solid rgba(215, 229, 241, 0.46);
    border-radius: 10px;
    background: rgba(9, 24, 38, 0.58);
    padding: 0.9rem;
    backdrop-filter: blur(12px);
}

.landing-stat-value {
    display: block;
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
}

.landing-stat-label {
    display: block;
    margin-top: 0.32rem;
    color: rgba(236, 246, 253, 0.78);
    font-size: 0.83rem;
    line-height: 1.45;
}

.landing-assurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #d3deeb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(18, 34, 49, 0.07);
    overflow: hidden;
}

.landing-assurance-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
    border-right: 1px solid #e0e7ef;
}

.landing-assurance-item:last-child {
    border-right: 0;
}

.landing-assurance-item i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #cbdde7;
    border-radius: 10px;
    color: #0f6b75;
    background: #f2faf9;
}

.landing-assurance-item strong {
    display: block;
    color: #122f46;
    margin-bottom: 0.18rem;
}

.landing-assurance-item span {
    display: block;
    color: #5f7285;
    font-size: 0.88rem;
    line-height: 1.45;
}

.landing-section {
    border: 1px solid #d6e0ec;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    padding: clamp(1.1rem, 2vw, 1.7rem);
    box-shadow: 0 12px 26px rgba(18, 34, 49, 0.06);
}

.landing-section-head {
    max-width: 820px;
    margin-bottom: 1.1rem;
}

.landing-section h2 {
    color: #122f46;
    font-weight: 800;
    font-size: clamp(1.45rem, 2.2vw, 2.25rem);
    line-height: 1.1;
}

.landing-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #d8e2ec;
    border-radius: 12px;
    overflow: hidden;
}

.landing-flow-step {
    min-height: 230px;
    padding: 1rem;
    background: #ffffff;
    border-right: 1px solid #d8e2ec;
}

.landing-flow-step:last-child {
    border-right: 0;
}

.landing-flow-step h3,
.landing-grid-card h3,
.landing-highlight-panel h3 {
    color: #12324b;
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.landing-flow-step p,
.landing-grid-card p,
.landing-fit p,
.landing-cta-strip p {
    color: #5c7083;
    line-height: 1.55;
    margin-bottom: 0;
    font-size: 0.92rem;
}

.landing-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 32px;
    border-radius: 999px;
    margin-bottom: 2.5rem;
    color: #0f6b75;
    background: #e9f7f5;
    font-weight: 800;
    font-size: 0.82rem;
}

.landing-grid-card {
    border: 1px solid #d9e2ed;
    border-radius: 10px;
    background: #ffffff;
    padding: 1rem;
    min-height: 192px;
    transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.landing-grid-card i {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    margin-bottom: 0.85rem;
    color: #0f6b75;
    background: #eef8f7;
    border: 1px solid #cddfe6;
}

.landing-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(18, 34, 49, 0.09);
    border-color: #c5d4e6;
}

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

.landing-fit {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 1rem;
    align-items: stretch;
}

.landing-highlight-panel {
    border: 1px solid #cbdde6;
    border-radius: 12px;
    padding: 1rem;
    background: #f4faf9;
}

.landing-highlight-panel ul {
    display: grid;
    gap: 0.65rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.landing-highlight-panel li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #25445d;
    font-size: 0.9rem;
    line-height: 1.45;
}

.landing-highlight-panel li i {
    margin-top: 0.18rem;
    color: #0f766e;
}

.landing-cta-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    border: 1px solid #cbdde6;
    border-radius: 14px;
    padding: 1.25rem;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(18, 34, 49, 0.07);
}

.landing-cta-strip h2 {
    color: #122f46;
    font-size: clamp(1.25rem, 1.8vw, 1.8rem);
    font-weight: 800;
    line-height: 1.15;
}

.landing-cta-actions {
    justify-content: flex-end;
}

.landing-footer {
    border-top: 1px solid #d5deea;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(239, 247, 249, 0.78) 100%);
}

.landing-footer h5,
.landing-footer h6 {
    font-weight: 700;
}

.landing-footer a {
    color: #0f5f75;
    text-decoration: none;
}

.landing-footer a:hover {
    text-decoration: underline;
}

.login-modal-dialog {
    max-width: 1040px;
}

.login-modal-shell {
    overflow: hidden;
    border: 1px solid rgba(198, 215, 230, 0.9);
    border-radius: 18px;
    box-shadow: 0 30px 56px rgba(10, 24, 38, 0.32);
}

.login-modal-header {
    padding: 1rem 1.2rem;
    background: #102536;
    border-bottom: 1px solid rgba(194, 212, 230, 0.28);
}

.login-modal-kicker {
    display: block;
    color: #7ee4dc;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.login-modal-header .modal-title {
    color: #f3f9ff;
    font-weight: 700;
}

.login-modal-header .subtle-label {
    color: rgba(231, 244, 253, 0.84);
}

.login-modal-header .btn-close {
    filter: invert(1) grayscale(1);
    opacity: 0.9;
}

.login-brand-panel {
    background:
        linear-gradient(180deg, rgba(16, 37, 54, 0.94) 0%, rgba(18, 55, 72, 0.94) 100%),
        url("/img/landing-hospital-ops.png");
    background-position: center;
    background-size: cover;
    border-right: 1px solid #d6e5ef;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.78rem;
}

.login-brand-title {
    color: #ffffff;
    line-height: 1.15;
}

.login-brand-panel .subtle-label {
    color: rgba(234, 244, 251, 0.8);
}

.login-trust-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(126, 228, 220, 0.4);
    background: rgba(15, 118, 110, 0.2);
    color: #e3fffc;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.login-security-stack {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.login-panel-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    border: 1px solid rgba(217, 230, 242, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.72rem;
    backdrop-filter: blur(10px);
}

.login-panel-card > i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: #102536;
    background: #7ee4dc;
}

.login-panel-card strong {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 0.12rem;
}

.login-panel-card span {
    display: block;
    color: rgba(234, 244, 251, 0.74);
    font-size: 0.82rem;
    line-height: 1.42;
}

.login-auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    background: #ffffff;
}

.login-form-eyebrow {
    display: block;
    color: #0f6b75;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.login-form-meta h6 {
    color: #18364f;
    font-size: 1.28rem;
    font-weight: 800;
}

.login-form-shell .form-control {
    border-color: #c7d7e7;
    min-height: 48px;
}

.login-form-shell .form-control:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.2);
}

.login-input-group .input-group-text {
    border-color: #c7d7e7;
    background: #f4f9fb;
    color: #44627c;
    min-width: 48px;
    justify-content: center;
}

.login-input-group .form-control {
    border-left: 0;
}

.login-input-group .btn {
    border-color: #c7d7e7;
    min-width: 48px;
}

.login-policy-list {
    margin-top: auto;
    border-top: 1px solid rgba(205, 225, 238, 0.2);
    padding-top: 0.78rem;
    display: grid;
    gap: 0.42rem;
}

.login-policy-item {
    display: flex;
    align-items: flex-start;
    gap: 0.46rem;
    color: rgba(234, 244, 251, 0.82);
    font-size: 0.84rem;
}

.login-policy-item i {
    color: #7ee4dc;
    margin-top: 0.12rem;
}

.login-link-btn {
    font-weight: 600;
    text-decoration: none;
}

.login-link-btn:hover {
    text-decoration: underline;
}

.login-access-note {
    border-top: 1px dashed #ced7e2;
    padding-top: 0.75rem;
}

.auth-view-shell .card {
    border: 1px solid #d5e0ec !important;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f9fc 100%) !important;
    border-radius: 14px;
}

.auth-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.auth-view-header h6 {
    color: #19374d;
    font-weight: 700;
}

.auth-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border: 1px solid #c7d8ea;
    border-radius: 999px;
    padding: 0.22rem 0.62rem !important;
    color: #0d5f66;
    text-decoration: none;
    background: #ffffff;
}

.auth-back-btn:hover {
    text-decoration: none;
    background: #eef8fb;
}

.picker-wrap {
    position: relative;
}

.picker-suggestions {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    right: 0;
    max-height: 224px;
    overflow-y: auto;
    border: 1px solid #cad5e5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 24px rgba(18, 34, 49, 0.16);
    z-index: 1080;
}

.picker-option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.62rem 0.78rem;
    color: #163149;
    font-size: 0.93rem;
}

.picker-option:hover {
    background: #ebf7f9;
}

.billing-quote-card {
    border: 1px dashed #cdd8e7;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffdf8 0%, #f2f9fd 100%);
    padding: 0.9rem;
}

.adjustment-impact-card strong {
    font-size: 1.05rem;
    color: #113147;
}

.settings-page {
    --settings-ink: #143047;
    --settings-muted: #5e758c;
    --settings-border: #d6e0ec;
    --settings-soft-bg: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
    background: radial-gradient(circle at 8% -12%, rgba(20, 164, 199, 0.1) 0, rgba(20, 164, 199, 0) 42%),
                radial-gradient(circle at 92% 6%, rgba(15, 118, 110, 0.1) 0, rgba(15, 118, 110, 0) 36%);
}

.settings-command-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
    gap: 1rem;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #bbcedd;
    border-radius: 22px;
    padding: 1.35rem;
    background: linear-gradient(135deg, #10283c 0%, #15465a 54%, #eef7f5 54.2%, #ffffff 100%);
    box-shadow: 0 18px 38px rgba(16, 40, 60, 0.13);
}

.settings-command-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    opacity: 0.28;
    pointer-events: none;
}

.settings-command-copy,
.settings-command-panel,
.settings-command-actions {
    position: relative;
    z-index: 1;
}

.settings-command-copy h1 {
    max-width: 820px;
    margin: 0.45rem 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.9rem);
    line-height: 1;
    font-weight: 800;
}

.settings-command-copy p {
    max-width: 740px;
    margin: 0;
    color: rgba(235, 247, 249, 0.86);
    font-size: 1rem;
    line-height: 1.65;
}

.settings-command-panel {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.82rem;
    align-self: start;
    border: 1px solid rgba(198, 217, 227, 0.9);
    border-radius: 18px;
    padding: 0.92rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 30px rgba(16, 40, 60, 0.1);
}

.settings-command-avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e 0%, #184661 100%);
}

.settings-command-panel span,
.settings-command-panel small {
    display: block;
    color: #66798a;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.settings-command-panel strong {
    display: block;
    color: #13344c;
    font-size: 1rem;
    line-height: 1.25;
    word-break: break-word;
}

.settings-command-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.settings-control-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(220px, 0.85fr);
    gap: 0.78rem;
}

.settings-control-link,
.settings-control-status {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.72rem;
    align-items: center;
    border: 1px solid #c8d8e8;
    border-radius: 16px;
    padding: 0.82rem;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
    color: #17364f;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(16, 44, 65, 0.06);
}

.settings-control-link:hover {
    color: #102f45;
    border-color: #9fb8cf;
    transform: translateY(-1px);
}

.settings-control-link.is-active {
    border-color: #0f766e;
    background: linear-gradient(135deg, #effaf7 0%, #ffffff 100%);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.settings-control-link i,
.settings-control-status::before {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, #184661 0%, #0f766e 100%);
}

.settings-control-status::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.settings-control-link span,
.settings-control-status span {
    display: block;
    color: #5d7288;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.settings-control-link strong,
.settings-control-status strong {
    display: block;
    color: #143047;
    font-size: 0.95rem;
}

.settings-hero {
    border: 1px solid #cbd9e8;
    background: linear-gradient(140deg, #ffffff 0%, #eef7ff 54%, #e8f8f5 100%);
}

.settings-hero h2 {
    color: #102c41;
    font-weight: 800;
}

.settings-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
}

.settings-hero-tag {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cad9e8;
    border-radius: 999px;
    padding: 0.24rem 0.64rem;
    background: rgba(255, 255, 255, 0.78);
    color: #184661;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.settings-panel-title {
    display: inline-flex;
    align-items: center;
    gap: 0.52rem;
    font-weight: 700;
    color: var(--settings-ink);
}

.settings-panel-icon {
    display: inline-grid;
    place-items: center;
    width: 1.68rem;
    height: 1.68rem;
    border-radius: 10px;
    border: 1px solid #c8d7e8;
    color: #0f5f68;
    background: linear-gradient(145deg, #ffffff 0%, #eaf7fb 100%);
    font-size: 0.78rem;
}

.settings-personal-layout {
    align-items: start;
}

.settings-journey-strip {
    border-color: #c8d8e8;
    background: linear-gradient(120deg, #fbfdff 0%, #f2f9ff 56%, #f0fbf8 100%);
}

.settings-journey-strip .card-body {
    padding: 1rem 1.08rem;
}

.settings-journey-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem 1rem;
    align-items: center;
}

.settings-journey-inner h5 {
    color: #15354d;
    font-weight: 800;
}

.settings-journey-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.46rem;
}

.settings-journey-btn {
    border-radius: 999px;
    min-height: 36px;
    padding-inline: 0.88rem;
    border-color: #bed3e7;
    background: rgba(255, 255, 255, 0.75);
}

.settings-summary-card {
    position: sticky;
    top: 92px;
}

.settings-summary-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.78rem;
}

.settings-summary-split {
    display: grid;
    gap: 0.82rem;
}

.settings-section-block {
    border: 1px solid var(--settings-border);
    border-radius: 15px;
    padding: 0.82rem;
    background: var(--settings-soft-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.settings-section-block h6 {
    color: #16334b;
    font-weight: 800;
}

.settings-snapshot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #dbe6f2;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
}

.settings-snapshot-row strong {
    color: #16334b;
    text-align: right;
    word-break: break-word;
}

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

.settings-metric-grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-metric-item {
    border: 1px solid var(--settings-border);
    border-radius: 13px;
    padding: 0.62rem 0.72rem;
    background: linear-gradient(155deg, #ffffff 0%, #f2f9ff 100%);
}

.settings-metric-item strong {
    color: var(--settings-ink);
    font-size: 0.97rem;
}

.settings-user-workspace,
.settings-admin-workbench,
.settings-backup-card,
.settings-users-card,
.settings-maintenance-card,
.settings-billing-strip,
.settings-admin-switcher {
    border-color: #c9d8e9;
}

.settings-user-workspace .card-header,
.settings-admin-workbench .card-header,
.settings-backup-card .card-header,
.settings-users-card .card-header,
.settings-maintenance-card .card-header,
.settings-billing-strip .card-header,
.settings-summary-card .card-header {
    border-bottom-color: #d9e4f1;
}

.settings-user-workspace .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.settings-user-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.settings-user-tab {
    border-radius: 999px;
    min-height: 36px;
    padding-inline: 0.88rem;
    border-width: 1px;
}

.settings-user-panel {
    border: 1px solid var(--settings-border);
    border-radius: 15px;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 6px 14px rgba(16, 44, 65, 0.05);
}

.settings-user-panel.is-hidden {
    display: none !important;
}

.settings-notification-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(260px, 1.05fr);
    gap: 0.82rem;
    margin-bottom: 0.95rem;
}

.settings-notification-block {
    border: 1px solid var(--settings-border);
    border-radius: 13px;
    padding: 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.settings-notification-block h6 {
    color: #17354e;
    font-weight: 700;
}

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

.settings-category-item {
    display: flex;
    align-items: center;
    gap: 0.46rem;
    margin: 0;
    border: 1px solid #dce6f2;
    border-radius: 10px;
    padding: 0.44rem 0.56rem;
    background: #fff;
}

.settings-category-item .form-check-input {
    margin-top: 0;
}

.settings-users-card .card-header small {
    font-weight: 500;
}

.settings-users-card .card-body {
    overflow-x: hidden;
}

.settings-user-list {
    display: grid;
    gap: 0.92rem;
}

.settings-user-item {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(300px, 1fr);
    gap: 0.95rem 1.2rem;
    border: 1px solid var(--settings-border);
    border-radius: 15px;
    padding: 0.95rem;
    background: linear-gradient(160deg, #ffffff 0%, #f8fcff 100%);
    overflow: hidden;
}

.settings-user-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.settings-user-name-row strong {
    color: var(--settings-ink);
    margin-right: 0.2rem;
}

.settings-user-actions {
    display: grid;
    gap: 0.72rem;
    align-content: start;
}

.settings-user-status-action {
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.settings-reset-form {
    margin: 0;
}

.settings-reset-form .form-label {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #5d7288;
}

.settings-reset-form .input-group .form-control {
    min-width: 180px;
}

.settings-admin-switcher .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.56rem;
}

.settings-admin-switcher-head h5 {
    color: #123249;
    font-weight: 800;
}

.settings-admin-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.58rem;
}

.settings-admin-kpi {
    border: 1px solid var(--settings-border);
    border-radius: 13px;
    padding: 0.56rem 0.68rem;
    background: linear-gradient(180deg, #ffffff 0%, #f4faff 100%);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.settings-admin-kpi strong {
    color: var(--settings-ink);
    font-size: 1.02rem;
}

.settings-admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.46rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
}

.settings-admin-tab {
    border-radius: 999px;
    min-height: 36px;
    padding-inline: 0.84rem;
    white-space: nowrap;
    flex: 0 0 auto;
}

.settings-admin-panel.is-hidden {
    display: none !important;
}

.settings-admin-workbench .card-body {
    padding-top: 1rem;
}

.settings-workbench-grid {
    align-items: start;
}

.settings-workbench-panel {
    border: 1px solid var(--settings-border);
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcff 100%);
    padding: 0.95rem;
    height: 100%;
}

.settings-workbench-panel h6 {
    color: #17354e;
    font-weight: 700;
}

.settings-billing-strip .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
}

.backup-history-table td {
    font-size: 0.88rem;
}

.backup-history-table {
    min-width: 980px;
}

.backup-history-table .badge {
    letter-spacing: 0.04em;
}

.backup-history-table .btn {
    min-width: 76px;
}

.settings-backup-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.settings-backup-card .table-responsive {
    border: 1px solid var(--settings-border);
    border-radius: 12px;
    background: #fff;
}

.messaging-page {
    background: radial-gradient(circle at 8% -10%, rgba(15, 118, 110, 0.1) 0, rgba(15, 118, 110, 0) 38%),
                radial-gradient(circle at 96% 0%, rgba(24, 70, 97, 0.12) 0, rgba(24, 70, 97, 0) 36%);
}

.messaging-command-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid #bed0df;
    border-radius: 22px;
    padding: 1.25rem;
    background: linear-gradient(135deg, #10283c 0%, #164b5f 58%, #f6fbff 58.2%, #ffffff 100%);
    box-shadow: 0 18px 36px rgba(16, 40, 60, 0.12);
}

.messaging-command-hero h1 {
    margin: 0.45rem 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    font-weight: 800;
}

.messaging-command-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(235, 247, 249, 0.86);
    line-height: 1.65;
}

.messaging-command-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    border: 1px solid rgba(198, 217, 227, 0.9);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(16, 40, 60, 0.1);
}

.messaging-command-panel article {
    border: 1px solid #d7e3ef;
    border-radius: 13px;
    padding: 0.65rem 0.72rem;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.messaging-command-panel span {
    display: block;
    color: #61798f;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.messaging-command-panel strong {
    color: #13344c;
    font-size: 1.55rem;
    line-height: 1;
}

.messaging-presence-key {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
    align-items: center;
}

.messaging-presence-key span {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d7e3ef;
    border-radius: 999px;
    padding: 0.28rem 0.55rem;
    background: #fff;
}

.messaging-compose-card,
.messaging-conversation-card,
.messaging-thread-card,
.messaging-register-card {
    border-color: #c9d8e9;
    border-radius: 16px;
}

.messaging-filter-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.messaging-filter-row .btn {
    border-radius: 999px;
    min-width: 78px;
}

.message-conversation-list {
    display: grid;
    gap: 0.6rem;
}

.message-conversation-item {
    display: block;
    border: 1px solid #dbe5f1;
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    text-decoration: none;
    color: #17354e;
}

.message-conversation-item:hover {
    border-color: #bfcede;
    background: linear-gradient(180deg, #ffffff 0%, #f3fbff 100%);
}

.message-conversation-item.active {
    border-color: #0f766e;
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.18);
}

.messaging-thread-card .card-body {
    min-height: 340px;
}

.message-thread-list {
    display: grid;
    gap: 0.65rem;
}

.message-bubble {
    border: 1px solid #dce5f1;
    border-radius: 13px;
    padding: 0.72rem;
    background: #fff;
}

.message-bubble.message-in {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
}

.message-bubble.message-out {
    background: linear-gradient(180deg, #f3fffa 0%, #e8f8f4 100%);
    border-color: #b7ddd2;
}

.message-bubble-head {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.35rem;
}

.message-bubble-head strong {
    color: #17354e;
}

.message-subject {
    color: #102f45;
    margin-bottom: 0.3rem;
}

.message-bubble-actions {
    margin-top: 0.45rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.messaging-due-date-row.is-hidden {
    display: none;
}

.presence-dot {
    display: inline-block;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    vertical-align: middle;
    border: 1px solid rgba(18, 34, 49, 0.18);
}

.presence-online {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.16);
}

.messaging-users-card {
    border-color: #c9d8e9;
    border-radius: 16px;
}

.messaging-users-list {
    scrollbar-width: thin;
}

.messaging-users-list::-webkit-scrollbar {
    width: 8px;
}

.messaging-users-list::-webkit-scrollbar-thumb {
    background: #b8cadb;
    border-radius: 999px;
}

.messaging-users-list::-webkit-scrollbar-track {
    background: #edf2f8;
}

.messaging-section-header {
    position: sticky;
    top: 0;
    z-index: 2;
}

.messaging-users-items {
    display: grid;
    gap: 0;
}

.message-user-item {
    transition: background-color 160ms ease, border-color 160ms ease;
}

.message-user-item:hover {
    background: #f7fbff;
    border-bottom-color: #d9e4ef;
}

.message-user-item.active {
    background: linear-gradient(90deg, #f0f8ff 0%, #f2fbff 100%);
    border-left: 3px solid #0f766e;
    border-bottom-color: #0f766e;
}

.spinner-border {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.settings-maintenance-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.settings-danger-alert {
    border: 1px solid #f1c0b8;
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(135deg, #fff6f4 0%, #fffefe 100%);
    color: #7a1b1b;
}

.settings-danger-panel {
    border-color: #f0d4cd;
    background: linear-gradient(180deg, #fffefe 0%, #fff8f5 100%);
}

.settings-danger-panel h6 {
    color: #7c2323;
}

.settings-danger-panel-strong {
    border-color: #eeb9b0;
    background: linear-gradient(180deg, #fff9f8 0%, #fff2ee 100%);
}

.staff-report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.staff-report-panel {
    border: 1px solid #dce5f1;
    border-radius: 14px;
    padding: 0.9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
}

.staff-report-panel.is-hidden {
    display: none !important;
}

.app-footer {
    width: min(1700px, 100%);
    margin-top: auto;
    margin-inline: auto;
    margin-bottom: 0.75rem;
    border: 1px solid #d6deeb;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
    box-shadow: 0 8px 18px rgba(18, 34, 49, 0.06);
    padding: 0.95rem 1rem;
}

.app-footer .app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.app-footer .app-footer-meta {
    color: #5b6f84;
    font-size: 0.85rem;
}

.app-footer .app-footer-meta strong {
    color: #1a334a;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main > section,
main > div {
    animation: riseIn 260ms ease both;
}

@media (max-width: 991.98px) {
    .login-brand-panel {
        border-right: 0;
        border-bottom: 1px solid #d6e5ef;
        gap: 0.6rem;
    }

    .login-modal-dialog {
        max-width: 92vw;
    }

    .app-page {
        padding-inline: 0.75rem;
    }

    .hero-block {
        border-radius: 16px;
    }

    .landing-trust-row {
        align-items: flex-start;
    }

    .landing-hero {
        min-height: auto;
    }

    .landing-hero-shade {
        background:
            linear-gradient(180deg, rgba(11, 27, 41, 0.86) 0%, rgba(11, 27, 41, 0.74) 58%, rgba(11, 27, 41, 0.7) 100%);
    }

    .landing-hero-media {
        background-position: center;
    }

    .landing-hero-copy {
        padding-block: 3rem;
    }

    .landing-hero-bottom,
    .landing-assurance,
    .landing-flow,
    .landing-module-grid,
    .landing-fit,
    .landing-cta-strip {
        grid-template-columns: 1fr;
    }

    .landing-assurance-item,
    .landing-flow-step {
        border-right: 0;
        border-bottom: 1px solid #d8e2ec;
    }

    .landing-assurance-item:last-child,
    .landing-flow-step:last-child {
        border-bottom: 0;
    }

    .landing-flow-step {
        min-height: 0;
    }

    .landing-step-number {
        margin-bottom: 0.85rem;
    }

    .landing-cta-actions {
        justify-content: flex-start;
    }

    .dashboard-hero-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-action-grid {
        justify-content: flex-start;
    }

    .reports-hero-actions {
        justify-content: flex-start;
    }

    .reports-hero-meta {
        width: 100%;
    }

    .dashboard-hero-meta {
        width: 100%;
    }

    .dashboard-signal-card {
        min-height: 100%;
    }

    .dashboard-signal-card p {
        min-height: 0;
    }

    .dashboard-mini-card .card-body {
        min-height: 118px;
    }

    .dashboard-priority-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-priority-item strong {
        text-align: left;
    }

    .staff-command-hero {
        background: linear-gradient(180deg, rgba(17, 39, 56, 0.98) 0%, rgba(25, 73, 84, 0.96) 48%, #ffffff 48.2%, #ffffff 100%);
    }

    .staff-command-hero-main {
        grid-template-columns: 1fr;
    }

    .staff-command-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-capacity-panel {
        grid-column: 1 / -1;
    }

    .staff-alert-grid {
        grid-template-columns: 1fr;
    }

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

    .staff-workspace-hero {
        grid-template-columns: 1fr;
        background: linear-gradient(180deg, rgba(18, 40, 58, 0.98) 0%, rgba(27, 78, 87, 0.96) 52%, #ffffff 52.2%, #ffffff 100%);
    }

    .staff-workspace-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-workspace-summary {
        grid-template-columns: 1fr;
    }

    .admin-command-hero,
    .admin-workspace-hero {
        grid-template-columns: 1fr;
        background: linear-gradient(180deg, rgba(13, 30, 45, 0.98) 0%, rgba(25, 67, 80, 0.97) 52%, #ffffff 52.2%, #ffffff 100%);
    }

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

    .admin-capacity-panel {
        grid-column: 1 / -1;
    }

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

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

    .landing-trust-badges {
        width: 100%;
    }

    .landing-cta-actions {
        justify-content: flex-start;
    }

    .auth-view-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .settings-user-item {
        grid-template-columns: 1fr;
    }

    .settings-metric-grid {
        grid-template-columns: 1fr;
    }

    .settings-metric-grid-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .settings-summary-split {
        grid-template-columns: 1fr;
    }

    .settings-notification-grid {
        grid-template-columns: 1fr;
    }

    .settings-command-hero,
    .settings-control-strip,
    .notifications-command-hero,
    .messaging-command-hero,
    .ops-form-hero {
        grid-template-columns: 1fr;
    }

    .settings-summary-card {
        position: static;
    }

    .settings-journey-inner {
        grid-template-columns: 1fr;
    }

    .settings-journey-actions {
        justify-content: flex-start;
    }

    .settings-admin-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .settings-admin-tab {
        white-space: normal;
    }

    .settings-hero-tags {
        width: 100%;
    }

    .reports-summary-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .list-table {
        min-width: 860px;
    }
}

@media (max-width: 1199.98px) {
    .app-navbar .navbar-toggler {
        border-color: rgba(203, 220, 238, 0.55);
    }

    .app-navbar .navbar-collapse {
        margin-top: 0.55rem;
        padding-top: 0.68rem;
        padding-bottom: 0.35rem;
        border-top: 1px solid rgba(180, 199, 219, 0.34);
    }

    .app-nav-links {
        width: 100%;
    }

    .app-nav-utilities {
        width: 100%;
        margin-top: 0.55rem;
        padding-top: 0.6rem;
        border-top: 1px dashed rgba(194, 213, 232, 0.35);
        justify-content: flex-start;
        gap: 0.45rem;
    }

    .app-user-pill {
        max-width: 100%;
        white-space: normal;
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.28rem;
    }
}

/* Button Loading State */
button[disabled] {
    cursor: not-allowed;
}

button[disabled]:hover {
    filter: none;
}

@media (max-width: 575.98px) {
    .app-navbar .navbar-brand {
        font-size: 0.95rem;
    }

    .metric-card {
        min-height: 116px;
    }

    .metric-card .card-body {
        padding: 0.85rem 0.9rem;
    }

    .dashboard-title {
        font-size: 1.5rem;
    }

    .dashboard-eyebrow {
        font-size: 0.67rem;
    }

    .dashboard-hero-meta > span {
        width: 100%;
        justify-content: flex-start;
    }

    .reports-hero-meta > span {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-action-grid {
        width: 100%;
    }

    .dashboard-action-grid .btn {
        width: 100%;
    }

    .dashboard-capacity-wrap {
        padding: 0.66rem 0.72rem;
    }

    .dashboard-signal-card {
        border-radius: 14px;
        padding: 0.78rem;
    }

    .dashboard-focus-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-focus-row strong {
        text-align: left;
    }

    .staff-command-hero {
        background: linear-gradient(180deg, rgba(17, 39, 56, 0.98) 0%, rgba(25, 73, 84, 0.96) 48%, #ffffff 48.2%, #ffffff 100%);
    }

    .staff-command-hero-main,
    .staff-command-strip,
    .staff-alert-grid,
    .staff-kpi-grid {
        grid-template-columns: 1fr;
    }

    .staff-command-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-alert-card p {
        min-height: 0;
    }

    .staff-workspace-hero,
    .staff-workspace-summary {
        grid-template-columns: 1fr;
    }

    .staff-workspace-actions {
        grid-template-columns: 1fr;
    }

    .admin-command-hero,
    .admin-workspace-hero,
    .admin-command-strip,
    .admin-risk-grid,
    .admin-intel-grid {
        grid-template-columns: 1fr;
    }

    .admin-command-actions,
    .admin-workspace-actions {
        grid-template-columns: 1fr;
    }

    .admin-risk-card p {
        min-height: 0;
    }

    .app-nav-utilities {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .app-nav-utilities > a.btn,
    .app-nav-utilities .app-user-pill,
    .app-nav-utilities .app-logout-form {
        width: 100%;
    }

    .app-nav-utilities .app-user-pill,
    .app-nav-utilities .app-logout-form {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .app-nav-utilities .btn {
        min-height: 38px;
    }

    .app-logout-form .btn {
        width: 100%;
    }

    .dashboard-mobile-item-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-card,
    .landing-grid-card {
        border-radius: 14px;
    }

    .landing-hero {
        border-radius: 14px;
    }

    .landing-hero-content {
        padding: 0.9rem;
    }

    .landing-hero-copy {
        padding-block: 2.2rem;
    }

    .landing-title {
        font-size: clamp(2rem, 14vw, 3.1rem);
        line-height: 1.02;
    }

    .landing-lead {
        font-size: 0.96rem;
    }

    .landing-badge,
    .landing-login-top,
    .landing-hero-actions .btn,
    .landing-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .landing-stat-card {
        min-height: 0;
    }

    .landing-assurance-item {
        grid-template-columns: 36px minmax(0, 1fr);
    }

    .landing-assurance-item i {
        width: 36px;
        height: 36px;
    }

    .landing-section,
    .landing-cta-strip {
        border-radius: 12px;
        padding: 0.95rem;
    }

    .modal-content {
        border-radius: 14px;
    }

    .login-modal-header .subtle-label {
        display: none;
    }

    .landing-stat-card {
        padding: 0.72rem 0.78rem;
    }

    .login-policy-item {
        font-size: 0.81rem;
    }

    .landing-cta-actions {
        width: 100%;
    }

    .landing-cta-actions .btn {
        width: 100%;
    }

    .reports-hero-actions {
        width: 100%;
    }

    .reports-hero-actions .btn {
        width: 100%;
    }

    .settings-user-status-action .btn {
        width: 100%;
    }

    .settings-user-tabs .btn {
        width: 100%;
    }

    .settings-panel-title {
        align-items: flex-start;
    }

    .settings-panel-icon {
        width: 1.52rem;
        height: 1.52rem;
    }

    .settings-admin-kpi-row {
        grid-template-columns: 1fr;
    }

    .settings-journey-actions .btn {
        width: 100%;
    }

    .settings-metric-grid-wide {
        grid-template-columns: 1fr;
    }

    .settings-notification-categories {
        grid-template-columns: 1fr;
    }

    .settings-reset-form .input-group {
        flex-direction: column;
        gap: 0.45rem;
    }

    .settings-reset-form .input-group .form-control,
    .settings-reset-form .input-group .btn {
        width: 100%;
        border-radius: 11px !important;
    }

    .settings-admin-tabs .btn {
        width: 100%;
    }

    .settings-hero-tag {
        width: 100%;
        justify-content: flex-start;
    }

    .settings-command-hero {
        border-radius: 14px;
        padding: 0.95rem;
        background: linear-gradient(180deg, #10283c 0%, #15465a 54%, #ffffff 54.2%, #ffffff 100%);
    }

    .settings-command-panel,
    .settings-control-link,
    .settings-control-status {
        border-radius: 12px;
    }

    .settings-command-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .notification-item {
        grid-template-columns: 1fr;
    }

    .notifications-command-hero {
        border-radius: 14px;
        padding: 0.95rem;
        background: linear-gradient(180deg, #10283c 0%, #164b5f 56%, #ffffff 56.2%, #ffffff 100%);
    }

    .messaging-command-hero,
    .ops-form-hero {
        border-radius: 14px;
        padding: 0.95rem;
        background: linear-gradient(180deg, #10283c 0%, #164b5f 56%, #ffffff 56.2%, #ffffff 100%);
    }

    .messaging-command-panel {
        grid-template-columns: 1fr;
    }

    .ops-form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .notifications-board-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .notifications-filter-row,
    .notifications-filter-row .btn {
        width: 100%;
    }

    .notification-actions {
        justify-content: flex-start;
    }

    .list-table {
        min-width: 760px;
    }

    .list-table thead th {
        font-size: 0.73rem;
    }

    .list-table tbody td {
        font-size: 0.85rem;
    }
}
