/* InApp 1.0.0 shell — NCA Engineering Reporting */

:root {
    --inapp-primary: #0000FF;
    --inapp-primary-rgb: 0, 0, 255;
    --inapp-dark: #302c4d;
    --inapp-muted: #a3b2be;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --sidebar-w: 240px;
    --sidebar-collapsed: 60px;
    --topbar-h: 60px;

    --bs-primary: #0000FF;
    --bs-primary-rgb: 0, 0, 255;
    --bs-link-color: #404040;
    --bs-link-hover-color: #0000FF;
    --bs-font-sans-serif: 'Poppins', system-ui, sans-serif;
    --bs-body-font-size: .875rem;
    --bs-heading-font-weight: 400;
    --bs-border-color: #e5e5e5;
    --bs-body-bg: #fafafa;
    --bs-body-color: #262626;
}

html, body { height: 100%; }
body {
    font-family: var(--bs-font-sans-serif);
    font-size: .875rem;
    background: var(--gray-50);
    color: var(--gray-800);
}

h1, h2, h3, h4, h5, h6 { font-weight: 400; }

a { color: var(--gray-700); text-decoration: none; }
a:hover { color: var(--inapp-primary); }

.btn-primary {
    --bs-btn-bg: #0000FF;
    --bs-btn-border-color: #0000FF;
    --bs-btn-hover-bg: #3333FF;
    --bs-btn-hover-border-color: #3333FF;
    --bs-btn-active-bg: #0000CC;
    --bs-btn-active-border-color: #0000CC;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}
.btn-outline-primary {
    --bs-btn-color: #0000FF;
    --bs-btn-border-color: #0000FF;
    --bs-btn-hover-bg: #0000FF;
    --bs-btn-hover-border-color: #0000FF;
    --bs-btn-hover-color: #fff;
}
.text-primary, .link-primary { color: #0000FF !important; }
.bg-primary { background-color: #0000FF !important; }
.border-primary { border-color: #0000FF !important; }
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #0000FF;
    box-shadow: 0 0 0 .25rem rgba(0, 0, 255, .2);
}
.form-check-input:checked { background-color: #0000FF; border-color: #0000FF; }
.page-link { color: #0000FF; }
.page-item.active .page-link { background-color: #0000FF; border-color: #0000FF; }

.py-10 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
.mb-6 { margin-bottom: 2.5rem !important; }
.pb-5 { padding-bottom: 2rem !important; }

.btn-icon {
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}
.btn-icon.btn-sm { width: 2.1875rem; height: 2.1875rem; font-size: .875rem; }

.icon-shape {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
}
.icon-md { width: 2.5rem; height: 2.5rem; }

.avatar {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 3rem;
}
.avatar-sm { width: 2rem; height: 2rem; }
.avatar-md { width: 2.5rem; height: 2.5rem; }
.avatar img, .avatar .avatar-initials {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-initials {
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    background: var(--inapp-primary);
}
.border-dashed { border-style: dashed !important; }
.dropdown-menu-md { min-width: 320px; max-width: calc(100vw - 24px); }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(1px);
    display: none;
    z-index: 1030;
}
.overlay.show { display: block; }

.sidebar {
    width: var(--sidebar-w);
    background: #fff;
    transition: width .3s, left .3s;
    border-right: 1px solid var(--gray-200);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding-top: var(--topbar-h);
    z-index: 1030;
    overflow-y: auto;
}
.sidebar .nav-link {
    color: var(--gray-800);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    gap: 12px;
    white-space: nowrap;
    margin: 1px 12px;
    border-radius: 8px;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: var(--inapp-primary);
    background-color: rgba(0, 0, 255, .095);
}
.sidebar .nav-link .ti { font-size: 18px; }
.sidebar .nav-text { transition: opacity .2s; }
.sidebar .nav-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--inapp-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}
.sidebar .logo-area {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--topbar-h);
    width: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-200);
}
.logo-full {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.logo-mark-img {
    display: none;
    height: 32px;
    width: 32px;
    object-fit: contain;
}
.auth-logo {
    height: 52px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(1200px 420px at 50% -80px, rgba(0, 0, 255, .12), transparent 60%),
        var(--gray-50);
}
.auth-card .page-title { font-size: 1.25rem; font-weight: 600; }

.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .nav-link {
    margin: 0;
    background-color: transparent;
    padding: 8px 18px;
}
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge { display: none; }
.sidebar.collapsed .logo-full { display: none; }
.sidebar.collapsed .logo-mark-img { display: block; }
.sidebar.collapsed .logo-area {
    padding: 0;
    justify-content: center;
}

.topbar {
    height: var(--topbar-h);
    margin-left: var(--sidebar-w);
    min-height: var(--topbar-h);
    justify-content: space-between;
}
.topbar.full { margin-left: var(--sidebar-collapsed); }

.content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}
.content.full { margin-left: var(--sidebar-collapsed); }

@media (max-width: 991.98px) {
    .sidebar { left: calc(var(--sidebar-w) * -1); }
    .sidebar.mobile-show { left: 0; }
    .topbar { margin-left: 0 !important; width: 100% !important; }
    .content { margin-left: 0 !important; }
}

.tb-clock {
    font-size: .75rem;
    color: var(--gray-600);
    line-height: 1.15;
    padding-right: .5rem;
}
.tb-clock-time {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    font-variant-numeric: tabular-nums;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem 1rem;
}
.btn-sm { padding: .32rem .7rem; font-size: .8rem; }
.btn-outline-secondary {
    --bs-btn-color: var(--gray-700);
    --bs-btn-border-color: var(--gray-200);
    --bs-btn-hover-bg: var(--gray-100);
    --bs-btn-hover-border-color: #0000FF;
    --bs-btn-hover-color: #0000FF;
}

.form-label { font-weight: 500; font-size: .8rem; color: var(--gray-700); margin-bottom: .35rem; }
.form-control, .form-select {
    border-radius: 8px;
    border-color: var(--gray-200);
    min-height: 42px;
    font-size: .875rem;
    padding: .5rem .85rem;
}
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230000FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-size: 16px;
    background-position: right .75rem center;
    padding-right: 2.4rem;
    cursor: pointer;
}
.form-control.date-input,
.form-control.flatpickr-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230000FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 17px;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-control.date-input:disabled,
.form-select:disabled {
    cursor: not-allowed;
    background-color: var(--gray-50);
    opacity: .75;
}
.form-control:hover, .form-select:hover { border-color: #c4c4c4; }
.form-select-sm { min-height: 34px; padding: .3rem .7rem; }
.input-group .btn { min-height: 40px; }
.form-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--gray-200);
}
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.form-section-title {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0000FF;
    margin-bottom: .9rem;
}
.alert { border-radius: 10px; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 1.15rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}
.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 2.75rem;
    height: 2px;
    background: #0000FF;
    border-radius: 2px;
}
.page-header-copy { min-width: min(100%, 16rem); flex: 1 1 16rem; }
.page-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.page-kicker {
    display: inline-flex;
    align-items: center;
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #0000FF;
    background: #e8e8ff;
    border: 1px solid rgba(0, 0, 255, .12);
    padding: .22rem .55rem;
    border-radius: 999px;
    margin-bottom: .55rem;
    line-height: 1.2;
}
.page-title {
    font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.15;
    color: var(--gray-800);
    margin: 0;
}
.page-sub {
    color: var(--gray-600);
    margin: .45rem 0 0;
    font-size: .9rem;
    line-height: 1.5;
    max-width: 40rem;
}
.page-sub strong { color: var(--gray-800); font-weight: 600; }
.auth-card .page-kicker { margin-bottom: .5rem; }

.card {
    border-color: var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 500;
    padding: .9rem 1.25rem;
}
.card-header h3, .card-header h4, .card-header h5 { font-weight: 500; }
.dropdown-menu {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    padding: .4rem 0;
}
.dropdown-item {
    border-radius: 8px;
    margin: 0 .4rem;
    padding: .5rem .75rem;
    font-size: .84rem;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: #e8e8ff;
    color: #0000FF;
}

.kpi-card {
    border-radius: 12px;
    height: 100%;
    transition: box-shadow .15s ease;
}
.kpi-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 255, .08); }
.kpi-label {
    font-size: .75rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: .35rem;
}
.kpi-value {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.03em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.kpi-foot { font-size: .75rem; margin: .4rem 0 0; }
.icon-shape { border-radius: 10px; }

.area-row { min-width: 0; }
.area-row-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: .4rem;
}
.area-row-label { font-size: .82rem; font-weight: 500; min-width: 0; }
.area-row-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.area-meter {
    flex: 1;
    min-width: 48px;
    height: 6px;
    background: var(--gray-100);
    border-radius: 999px;
    overflow: hidden;
}
.area-meter > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #0000FF;
    transition: width .45s ease;
}
.area-meter.is-red > span { background: #b91c1c; }
.area-meter.is-green > span { background: #15803d; }
.area-meter.is-gold > span { background: #b45309; }

.form-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 1.25rem;
    margin-top: .5rem;
    border-top: 1px solid var(--gray-200);
}
.tips-list { list-style: none; margin: 0; padding: 0; counter-reset: tips; }
.tips-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    margin-bottom: 14px;
    font-size: .82rem;
    color: var(--gray-600);
    line-height: 1.45;
    counter-increment: tips;
}
.tips-list li:last-child { margin-bottom: 0; }
.tips-list li::before {
    content: counter(tips);
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #e8e8ff;
    color: #0000FF;
    font-size: 11px;
    font-weight: 600;
    display: grid;
    place-items: center;
}
.filter-title {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #0000FF;
    margin-bottom: 1rem;
}
.btn-ghost {
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border-radius: 8px;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    background: #fff;
}
.btn-ghost:hover {
    color: #0000FF;
    border-color: #0000FF;
    background: #e8e8ff;
}
.table tbody a { font-weight: 500; }
.pagination { gap: 6px; }
.page-link { border-radius: 8px !important; }
.table > thead th {
    font-weight: 400;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--gray-600);
    white-space: nowrap;
}
.table.text-nowrap td { white-space: nowrap; }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-600);
}
.empty-state i { font-size: 1.75rem; display: block; margin-bottom: 8px; opacity: .55; }

.chart-card .chart-body {
    position: relative;
    height: 280px;
}
.chart-card .chart-body-donut { height: 300px; }
.chart-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}

.asteriskField { color: #fb2c36; font-weight: 600; margin-left: .15rem; }

.bg-spectrum-planning, .bg-SPECTRUM_PLANNING {
    background-color: #e8e8ff !important;
    color: #0000FF !important;
}
.bg-monitoring-enforcement, .bg-MONITORING_ENFORCEMENT {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}
.bg-licensing-freq-assignment, .bg-licensing-freq, .bg-LICENSING_FREQ_ASSIGNMENT {
    background-color: #dcfce7 !important;
    color: #15803d !important;
}
.bg-stakeholder-engagement, .bg-stakeholder, .bg-STAKEHOLDER_ENGAGEMENT {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(0, 0, 255, .1);
    color: #0000CC;
    border: 1px solid rgba(0, 0, 255, .2);
    border-radius: 999px;
    padding: .28rem .4rem .28rem .75rem;
    margin: .15rem;
    font-size: .82rem;
    font-weight: 500;
}
.chip button {
    border: none;
    background: rgba(0, 0, 255, .15);
    color: #0000CC;
    line-height: 1;
    cursor: pointer;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.chip button:hover { background: #fb2c36; color: #fff; }

.evidence-dropzone {
    position: relative;
    border: 1.5px dashed var(--gray-200);
    border-radius: 12px;
    background: var(--gray-50);
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.evidence-dropzone:hover,
.evidence-dropzone:focus,
.evidence-dropzone.is-dragover {
    border-color: var(--inapp-primary);
    background: rgba(0, 0, 255, .06);
    outline: none;
}
.evidence-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}
.evidence-dropzone-inner .ti,
.evidence-dropzone-inner .bi {
    font-size: 1.75rem;
    color: var(--inapp-primary);
    display: block;
    margin-bottom: 8px;
}
.evidence-dropzone-title { font-weight: 500; }
.evidence-dropzone-sub { color: var(--gray-600); font-size: .85rem; }
.evidence-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin-bottom: 4px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: .375rem;
}
.evidence-preview-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-preview-remove {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--gray-600);
    cursor: pointer;
}

.detail-list { margin: 0; }
.detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}
.detail-row:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-row:first-child { padding-top: 0; }
.detail-row dt {
    margin: 0;
    color: var(--gray-600);
    font-weight: 500;
    font-size: .75rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.detail-row dd { margin: 0; }
.evidence-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}
.evidence-item:last-child { margin-bottom: 0; }
.evidence-item-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.evidence-item-main > .ti,
.evidence-item-main > .bi {
    font-size: 1.25rem;
    color: var(--inapp-primary);
    margin-top: 2px;
}
.evidence-item-name { font-weight: 500; word-break: break-word; }
.evidence-item-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.evidence-preview-dialog {
    width: min(1280px, 96vw);
    max-width: 96vw;
    height: 92vh;
    margin: 4vh auto;
}
.evidence-preview-dialog .modal-content { height: 100%; display: flex; flex-direction: column; }
.evidence-preview-body { flex: 1 1 auto; min-height: 0; background: #f5f5f5; }
.evidence-preview-body iframe { display: block; width: 100%; height: 100%; border: 0; }
.evidence-preview-office { height: 100%; overflow: auto; padding: 20px; }

.matrix-table td { vertical-align: top !important; }
.matrix-table td.col-sn { width: 48px; color: var(--gray-600); }
.narrative-block + .narrative-block {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}
.nb-title { font-weight: 500; margin-bottom: 8px; }
.bg-narrative-entry {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 10px 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-200);
}
.bg-narrative-entry:last-child { border-bottom: 0; }
.bg-narrative-date { font-size: .78rem; color: var(--gray-600); }
.filter-group-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.report-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
    align-items: start;
}
.filter-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}
.filter-generate-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    padding: 16px;
}
.filter-generate-card .btn { width: 100%; }
.stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.card-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-stack { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.section-label {
    font-size: .85rem;
    font-weight: 500;
    color: #737373;
    margin: 4px 0 12px;
}
.table-scroll { max-height: 480px; overflow: auto; }
.filter-bar {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ai-engine-select { max-width: 180px; }
@media (max-width: 991.98px) {
    .report-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
    .report-filters, .filter-fields, .card-grid-2, .card-grid-3, .stat-row { grid-template-columns: 1fr; }
}
.report-identity {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.ri-kicker {
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--inapp-primary);
    font-weight: 600;
}

.notif-bell-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    border: 2px solid #fff;
}
.notif-panel {
    width: 380px;
    max-width: calc(100vw - 24px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}
.notif-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
}
.notif-panel-title { font-weight: 600; font-size: .95rem; }
.notif-panel-sub { font-size: .75rem; color: var(--gray-600); margin-top: 2px; }
.notif-panel-list {
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: 0;
    border-bottom: 1px solid var(--gray-200);
    border-left: 3px solid transparent;
    background: #fff;
    padding: 12px 16px;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.is-unread { background: rgba(0, 0, 255, .05); }
.notif-item.is-unread:hover { background: rgba(0, 0, 255, .08); }
.notif-item.is-overdue,
.notif-item.is-due-today { border-left-color: #f0b100; }
.notif-item.is-upcoming { border-left-color: #0000FF; }
.notif-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #e8e8ff;
    color: #0000FF;
    flex-shrink: 0;
    font-size: 1.05rem;
}
.notif-item.is-overdue .notif-item-icon,
.notif-item.is-due-today .notif-item-icon {
    background: #fef3c7;
    color: #b45309;
}
.notif-item-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.notif-item-title-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.notif-item-title {
    font-weight: 500;
    font-size: .82rem;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-item-status { font-size: .75rem; color: var(--gray-600); }
.notif-item-meta { font-size: .72rem; color: #737373; }
.notif-panel-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    font-size: .82rem;
    font-weight: 500;
    color: #0000FF;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}
.notif-panel-foot:hover { background: #e8e8ff; color: #0000CC; }
.notif-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--gray-600);
}
.notif-empty i {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 8px;
    color: #0000FF;
    opacity: .55;
}

.notif-chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.notif-chip {
    border: 1px solid var(--gray-200);
    background: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
}
.notif-chip:hover, .notif-chip.is-active {
    background: rgba(0, 0, 255, .1);
    color: var(--inapp-primary);
    border-color: transparent;
}
.stat-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.stat-chip:hover { border-color: #0000FF; color: inherit; }
.stat-chip.is-active {
    border-color: #0000FF;
    box-shadow: 0 0 0 1px #0000FF inset;
}
.stat-chip-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.stat-chip-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.stat-chip-label {
    font-size: .82rem;
    font-weight: 500;
    color: var(--gray-700);
}
.stat-chip-meta {
    font-size: .72rem;
    color: var(--gray-600);
}
.stat-chip-value {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.stat-chip.is-overdue .stat-chip-icon { background: #fef3c7; color: #b45309; }
.stat-chip.is-today .stat-chip-icon { background: #fee2e2; color: #b91c1c; }
.stat-chip.is-upcoming .stat-chip-icon { background: #e8e8ff; color: #0000FF; }
.stat-chip.is-week .stat-chip-icon { background: #e8e8ff; color: #0000FF; }
.stat-chip.is-month .stat-chip-icon { background: #dcfce7; color: #15803d; }
.stat-chip.is-areas .stat-chip-icon { background: #e0f2fe; color: #0369a1; }
.stat-chip.is-reminders .stat-chip-icon { background: #fef3c7; color: #b45309; }
.notif-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.notif-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    border-left: 3px solid transparent;
}
.notif-list-item:last-child { border-bottom: 0; }
.notif-list-item.is-unread { background: rgba(0, 0, 255, .05); }
.notif-list-item.is-overdue,
.notif-list-item.is-due-today { border-left-color: #f0b100; }
.notif-list-item.is-upcoming { border-left-color: #0000FF; }
.notif-list-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    background: #e8e8ff;
    color: #0000FF;
}
.notif-list-body { min-width: 0; flex: 1 1 auto; }
.notif-list-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.notif-list-title { font-weight: 500; }
.notif-dot { width: 8px; height: 8px; border-radius: 999px; background: #0000FF; display: inline-block; }
.notif-list-message { color: var(--gray-600); font-size: .87rem; margin-bottom: 6px; }
.notif-list-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: #737373; }
.notif-list-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 767.98px) {
    .notif-list-item { flex-direction: column; }
    .notif-list-actions { flex-direction: row; width: 100%; }
    .notif-list-actions .btn { width: 100%; }
}

@media (max-width: 720px) {
    .detail-row { grid-template-columns: 1fr; gap: 4px; }
    .evidence-item { flex-direction: column; align-items: stretch; }
    .tb-clock { display: none; }
}

.profile-trigger {
    display: flex;
    border-radius: 50%;
    box-shadow: 0 0 0 2px transparent;
    transition: box-shadow .15s ease;
}
.profile-trigger:hover,
.profile-trigger[aria-expanded="true"] {
    box-shadow: 0 0 0 2px rgba(0, 0, 255, .28);
}
.profile-panel {
    width: 280px;
    max-width: calc(100vw - 24px);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
}
.profile-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #e8e8ff 0%, #fff 72%);
    border-bottom: 1px solid var(--gray-200);
}
.profile-panel-id { min-width: 0; }
.profile-panel-name {
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile-panel-meta {
    font-size: .75rem;
    color: var(--gray-600);
    margin-top: 1px;
}
.profile-panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.profile-panel-role,
.profile-panel-unit {
    font-size: .68rem;
    font-weight: 500;
    border-radius: 999px;
    padding: 2px 8px;
}
.profile-panel-role {
    color: #0000FF;
    background: #e8e8ff;
}
.profile-panel-unit {
    color: var(--gray-700);
    background: var(--gray-100);
}
.profile-panel-signout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--gray-200);
    background: #fff;
    padding: 12px 16px;
    font-size: .84rem;
    font-weight: 500;
    color: #dc2626;
}
.profile-panel-signout:hover { background: #fef2f2; }

.activity-combo { position: relative; width: 100%; }
.activity-combo-toggle.form-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: none;
    padding-right: .85rem;
    text-align: left;
}
.activity-combo-toggle .combo-label,
.activity-combo-toggle > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    text-align: left;
}
.activity-combo-toggle .ti {
    color: #0000FF;
    transition: transform .15s ease;
}
.activity-combo-toggle.is-placeholder { color: #737373; }
.activity-combo.is-open .activity-combo-toggle {
    border-color: #0000FF;
    box-shadow: 0 0 0 .25rem rgba(0, 0, 255, .2);
}
.activity-combo.is-open .activity-combo-toggle .ti { transform: rotate(180deg); }
.activity-combo-panel {
    position: absolute;
    z-index: 1080;
    top: calc(100% + .4rem);
    left: 0;
    right: 0;
    min-width: 100%;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow: hidden;
}
.activity-combo-search {
    padding: 10px 12px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}
.activity-combo-search .form-control {
    min-height: 36px;
    border-radius: 8px;
}
.activity-combo-search .input-group-text {
    background: #fff;
    color: #0000FF;
    border-color: var(--gray-200);
    border-radius: 8px 0 0 8px;
}
.activity-combo-list { overflow-y: auto; padding: .35rem; }
.activity-combo-group-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #0000FF;
    padding: .45rem .65rem .2rem;
    font-weight: 600;
}
.activity-combo-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: none;
    border-radius: 8px;
    padding: .5rem .7rem;
    font-size: .84rem;
    cursor: pointer;
    color: var(--gray-800);
    line-height: 1.35;
}
.activity-combo-item:hover { background: #e8e8ff; color: #0000FF; }
.activity-combo-item.active {
    background: #0000FF;
    color: #fff;
}
.activity-combo-item .combo-item-name { display: block; font-weight: 500; }
.activity-combo-item .combo-item-meta {
    display: block;
    font-size: .75rem;
    color: var(--gray-600);
    margin-top: .1rem;
}
.activity-combo-item:hover .combo-item-meta { color: #0000CC; }
.activity-combo-item.active .combo-item-meta { color: rgba(255,255,255,.85); }
.activity-combo-empty { padding: .85rem; text-align: center; }

.flatpickr-calendar {
    font-family: 'Poppins', system-ui, sans-serif;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
    padding: 12px 14px 14px;
    width: 340px;
}
.flatpickr-months {
    align-items: center;
    margin-bottom: 4px;
}
.flatpickr-months .flatpickr-month { height: 40px; }
.flatpickr-current-month {
    font-size: .9rem;
    font-weight: 600;
    padding-top: 6px;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #0000FF;
    color: #0000FF;
    padding: 8px 10px;
    border-radius: 8px;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: #e8e8ff;
}
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
    width: 312px !important;
    min-width: 312px !important;
    max-width: 312px !important;
}
.flatpickr-weekdays { height: 28px; }
.flatpickr-weekdaycontainer { display: flex; width: 100%; }
span.flatpickr-weekday {
    flex: 1 1 0;
    width: auto;
    float: none;
    font-size: .7rem;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0;
    overflow: visible;
}
.flatpickr-day {
    border-radius: 8px;
    font-weight: 500;
    max-width: none;
    height: 40px;
    line-height: 40px;
}
.flatpickr-day:hover {
    background: #e8e8ff;
    border-color: #e8e8ff;
    color: #0000FF;
}
.flatpickr-day.today {
    border-color: #0000FF;
    color: #0000FF;
    font-weight: 600;
}
.flatpickr-day.today:hover { background: #e8e8ff; }
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: #0000FF;
    border-color: #0000FF;
    color: #fff;
}
.flatpickr-day.flatpickr-disabled { color: #c4c4c4; }
