/* =========================================================
   TISPL Scanning Report — "Indigo boxes" theme (B + F mix)
   White sidebar · indigo accent · soft grey ground · Manrope
   ========================================================= */
:root {
    --indigo: #3b46a0;
    --indigo-dark: #2b3480;
    --indigo-soft: #eceefb;
    --indigo-mid: #a4abe0;
    --green: #23744a;
    --green-soft: #e7f5ec;
    --green-line: #c3e5cf;
    --amber: #9a5b13;
    --amber-soft: #fbf0e2;
    --red-soft: #fdeceb;
    --page-bg: #f5f6fa;
    --card: #ffffff;
    --line: #dcdfea;
    --line-soft: #f0f1f6;
    --ink: #1d2033;
    --body: #343954;
    --muted: #4b5069;
    --radius: 16px;

    --bs-body-font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: #1d2033;
    --bs-body-bg: #f5f6fa;
    --bs-primary: #3b46a0;
    --bs-primary-rgb: 59, 70, 160;
    --bs-success: #23744a;
    --bs-success-rgb: 35, 116, 74;
    --bs-link-color: #3b46a0;
    --bs-link-color-rgb: 59, 70, 160;
    --bs-link-hover-color: #2b3480;
    --bs-link-hover-color-rgb: 43, 52, 128;
    --bs-border-color: #dcdfea;
    --bs-border-radius: .6rem;
    --bs-border-radius-sm: .5rem;
}

body { background: var(--page-bg); font-size: .925rem; color: var(--ink); }
.app { display: flex; min-height: 100vh; }

/* ---------- sidebar ---------- */
.sidebar {
    width: 250px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line);
    position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 1040;
}
.brand { display: flex; align-items: center; gap: .7rem; padding: 1.25rem 1.25rem 1.1rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px; background: var(--indigo); color: #fff;
    font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: .98rem; }
.brand-text small { color: var(--muted); font-size: .76rem; }

.side-nav { flex: 1; overflow-y: auto; padding: 0 .85rem 1rem; display: flex; flex-direction: column; gap: 2px; }
.side-nav .nav-label { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 1rem .75rem .35rem; }
.side-nav a {
    color: var(--body); text-decoration: none; padding: .62rem .75rem; border-radius: 10px;
    display: flex; gap: .75rem; align-items: center; font-size: .9rem; font-weight: 500;
}
.side-nav a i { font-size: 1.05rem; }
.side-nav a:hover { background: #f3f4fa; color: var(--ink); }
.side-nav a.active { background: var(--indigo); color: #fff; font-weight: 700; }

.side-foot { border-top: 1px solid var(--line); padding: .9rem 1rem; text-align: center; font-size: .72rem; color: var(--muted); display: flex; flex-direction: column; gap: .4rem; align-items: center; }
.side-foot img { max-width: 100%; max-height: 56px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    background: #fff; border-bottom: 1px solid var(--line); padding: .7rem 2rem; min-height: 70px;
    display: flex; align-items: center; gap: .9rem; position: sticky; top: 0; z-index: 1020;
}
.topbar-title { font-size: 1.25rem; font-weight: 700; margin: 0; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-search {
    align-items: center; gap: .5rem; height: 44px; padding: 0 .9rem; border: 1px solid #e1e4ee; border-radius: 10px;
    background: #f7f8fc; width: 300px; color: var(--muted);
}
.top-search:focus-within { border-color: var(--indigo-mid); box-shadow: 0 0 0 .2rem rgba(59,70,160,.12); background: #fff; }
.top-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .88rem; width: 100%; color: var(--ink); }
.btn-new { align-items: center; gap: .35rem; height: 44px; padding: 0 1.1rem; font-weight: 700; }
.icon-btn { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 1.3rem; }
.user-btn { display: flex; align-items: center; gap: .6rem; background: transparent; border: 0; padding: .2rem; border-radius: 99px; }
.user-meta { flex-direction: column; align-items: flex-end; line-height: 1.15; }
.user-meta b { font-size: .84rem; color: var(--ink); }
.user-meta small { font-size: .74rem; color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .8rem; }
.content { padding: 1.6rem 2rem 2.5rem; }

.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
    .sidebar { position: fixed; left: -270px; transition: left .2s; }
    .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.2); }
    .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(29,32,51,.3); z-index: 1035; }
    .content { padding: 1rem; }
    .topbar { padding: .6rem 1rem; }
}

/* ---------- Bootstrap look ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary {
    --bs-btn-bg: #3b46a0; --bs-btn-border-color: #3b46a0;
    --bs-btn-hover-bg: #323c8c; --bs-btn-hover-border-color: #323c8c;
    --bs-btn-active-bg: #2b3480; --bs-btn-active-border-color: #2b3480;
    --bs-btn-disabled-bg: #9aa1d8; --bs-btn-disabled-border-color: #9aa1d8;
    --bs-btn-focus-shadow-rgb: 59, 70, 160;
}
.btn-outline-primary {
    --bs-btn-color: #3b46a0; --bs-btn-border-color: #c4c8ec;
    --bs-btn-hover-bg: #3b46a0; --bs-btn-hover-border-color: #3b46a0; --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #2b3480; --bs-btn-active-border-color: #2b3480;
}
.btn-success { --bs-btn-bg: #23744a; --bs-btn-border-color: #23744a; --bs-btn-hover-bg: #1c603d; --bs-btn-hover-border-color: #1c603d; }
.btn-outline-success { --bs-btn-color: #23744a; --bs-btn-border-color: #a9d8bb; --bs-btn-hover-bg: #23744a; --bs-btn-hover-border-color: #23744a; }
.btn-light { --bs-btn-bg: #f3f4fa; --bs-btn-border-color: #e6e8f0; --bs-btn-hover-bg: #e9ebf5; --bs-btn-hover-border-color: #dde0ee; }
.btn-dark { --bs-btn-bg: #1d2033; --bs-btn-border-color: #1d2033; }

.form-control, .form-select { border-color: #c6cadb; border-radius: 10px; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--indigo-mid); box-shadow: 0 0 0 .2rem rgba(59,70,160,.12); }
.form-check-input:checked { background-color: var(--indigo); border-color: var(--indigo); }
.form-label { color: var(--body); font-weight: 500; }

.progress { --bs-progress-bar-bg: #3b46a0; --bs-progress-bg: #eceef5; border-radius: 99px; }
.progress-bar.bg-success { background-color: var(--green) !important; }

.badge { font-weight: 700; border-radius: 99px; padding: .38em .8em; }
.text-bg-primary { background: var(--indigo-soft) !important; color: var(--indigo-dark) !important; }
.text-bg-success { background: var(--green-soft) !important; color: var(--green) !important; }
.text-bg-warning { background: var(--amber-soft) !important; color: var(--amber) !important; }
.text-bg-secondary { background: #f1f2f6 !important; color: var(--muted) !important; }
.text-bg-light { background: rgba(0,0,0,.06) !important; color: inherit !important; }
.text-bg-dark { background: #1d2033 !important; color: #fff !important; }

.alert { border-radius: 12px; }
.alert-success { background: var(--green-soft); border-color: var(--green-line); color: #1b5c3a; }
.alert-danger { background: var(--red-soft); border-color: #f4c7c4; color: #8f2a25; }

.nav-tabs { border-bottom-color: var(--line); }
.nav-tabs .nav-link { color: var(--muted); border: 0; border-bottom: 2px solid transparent; padding: .65rem 1rem; font-weight: 500; }
.nav-tabs .nav-link:hover { color: var(--ink); border-bottom-color: #dde0ee; }
.nav-tabs .nav-link.active { color: var(--indigo); background: transparent; border-bottom-color: var(--indigo); font-weight: 700; }

.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; padding: .35rem; box-shadow: 0 12px 32px rgba(29,32,51,.10); }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; display: flex; gap: .6rem; align-items: center; }
.dropdown-item:hover { background: var(--indigo-soft); color: var(--indigo-dark); }
.dropdown-item:active { background: var(--indigo); color: #fff; }

.list-group-item.active { background: var(--indigo); border-color: var(--indigo); }

/* ---------- page parts ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h4 { margin: 0; font-weight: 700; }
.page-sub { color: var(--muted); font-size: .88rem; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.card-header { background: #fff; font-weight: 700; border-bottom-color: var(--line-soft); padding: 1rem 1.3rem; }
.card-body { padding: 1.2rem 1.3rem; }
.card-tab { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }

/* Icon boxes (dashboard and project page) */
.box-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1199.98px) { .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .box-grid { grid-template-columns: minmax(0, 1fr); } }
.icon-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; gap: 1rem; align-items: center; min-width: 0; }
.icon-tile { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.45rem; flex-shrink: 0; }
.tile-indigo { background: #eceefb; color: #3b46a0; }
.tile-teal { background: #e6f4f1; color: #1f7a66; }
.tile-blue { background: #e8f1fb; color: #2b63a6; }
.tile-amber { background: #fbf0e2; color: #9a5b13; }
.tile-green { background: #e7f5ec; color: #23744a; }
.tile-violet { background: #f1ecfa; color: #5b3f9a; }
.box-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.box-value { font-size: 1.65rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.box-sub { font-size: .76rem; color: var(--muted); }

/* Project boxes */
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 991.98px) { .project-grid { grid-template-columns: minmax(0, 1fr); } }
.project-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem; }
.project-box-head { display: flex; gap: .9rem; align-items: flex-start; }
.project-box-head .icon-tile { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }
.project-box-title { font-weight: 700; font-size: 1rem; text-decoration: none; }
.size-pill { display: inline-flex; gap: .35rem; padding: .32rem .75rem; border-radius: 99px; background: #f3f4fa; font-size: .8rem; color: var(--body); }
.size-pill b { color: var(--ink); }
.project-box-foot { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line-soft); padding-top: .8rem; }
.status-pill { display: inline-block; padding: .28rem .75rem; border-radius: 99px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.status-pill.done { background: var(--green-soft); color: var(--green); }
.status-pill.going { background: var(--indigo-soft); color: var(--indigo-dark); }
.status-pill.idle { background: #f1f2f6; color: var(--muted); }

/* Older stat cards (project page) */
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; height: 100%; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1.2; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: .8rem; color: var(--muted); }

.add-box { background: #fafbfe; border: 1px dashed #d9dcea; border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1rem; }
.add-box > summary { cursor: pointer; font-weight: 700; color: var(--indigo); }

.inactive-row td { opacity: .55; }
.locked-row td { background: #f6fbf8 !important; }

.table { --bs-table-hover-bg: #f8f9fd; }
.table thead th { font-size: .76rem; color: var(--muted); background: #fafbfd; font-weight: 600; white-space: nowrap; border-bottom-color: var(--line); }
.table td { border-color: var(--line-soft); }
.num, .text-end { font-variant-numeric: tabular-nums; }

.entry-table .cat-row td { background: var(--indigo); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #fff; padding-top: .45rem; padding-bottom: .45rem; }
.entry-table input { max-width: 140px; }

.report-wrap { max-height: 70vh; }
.report-table thead th { position: sticky; top: 0; z-index: 1; }
.report-table td { white-space: nowrap; }
.state-list { max-height: 60vh; overflow-y: auto; }

/* dashboard chart */
.daybars { display: flex; align-items: flex-end; gap: 8px; height: 200px; }
.daybar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.daybar-fill { width: 100%; max-width: 26px; background: var(--indigo-mid); border-radius: 8px; }
.daybar.is-today .daybar-fill { background: var(--indigo); }
.daybar-val { font-size: .65rem; color: var(--muted); white-space: nowrap; margin-bottom: 3px; }
.daybar-lbl { font-size: .68rem; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.sizebar { margin-bottom: .75rem; }

/* login */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--page-bg); font-family: Manrope, system-ui, sans-serif; }
.login-card { width: 100%; max-width: 400px; margin: 1rem; border-radius: 18px; }
.login-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--indigo); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: .5rem; }

/* ---------- project: add sections panel ---------- */
.add-units-head {
    width: 100%; border: 0; text-align: left; display: flex; justify-content: space-between; align-items: center;
    padding: .9rem 1.3rem; font-weight: 700; background: #fff; border-radius: inherit;
}
.add-units-head .bi-plus-circle-fill { color: var(--indigo) !important; }
.add-units-head[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.add-units-head .bi-chevron-down { transition: transform .2s; color: var(--muted); }
.step { display: flex; gap: .9rem; margin-bottom: 1.25rem; }
.step-no { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.step-title { display: block; font-weight: 700; margin-bottom: .35rem; }
.step-help { font-size: .82rem; color: var(--muted); margin-top: .35rem; }
.min-w-0 { min-width: 0; }
.add-units #locationId { max-width: 560px; }

.chip-list { display: flex; flex-wrap: wrap; gap: .45rem; max-height: 260px; overflow-y: auto; padding: 2px; }
.sec-chip { margin: 0; cursor: pointer; }
.sec-chip input { position: absolute; opacity: 0; pointer-events: none; }
.sec-chip span { display: inline-block; padding: .38rem .85rem; border: 1px solid #dde0ee; border-radius: 999px; background: #fff; font-size: .85rem; user-select: none; transition: all .12s; }
.sec-chip:hover span { border-color: var(--indigo); }
.sec-chip input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.sec-chip input:focus-visible + span { outline: 2px solid var(--indigo-mid); outline-offset: 1px; }
.sec-chip.is-added { cursor: default; }
.sec-chip.is-added span { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.sec-chip small { opacity: .8; }

@media print {
    .sidebar, .topbar, .no-print, .alert { display: none !important; }
    .content { padding: 0; }
    .report-wrap { max-height: none; overflow: visible; }
    body { background: #fff; font-size: 11px; }
}

/* ---------- project page: drill-down boxes ---------- */
.drill-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; }
.drill-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; }
.drill-crumbs a { text-decoration: none; font-weight: 600; padding: .25rem .6rem; border-radius: 8px; background: var(--indigo-soft); }
.drill-crumbs a:hover { background: #dfe2f7; }
.crumb-sep { font-size: .7rem; color: var(--muted); }
.crumb-current { font-weight: 700; padding: .25rem .2rem; }
.drill-title { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
.drill-title span { display: inline-block; min-width: 1.6rem; text-align: center; font-size: .75rem; padding: .1rem .45rem; border-radius: 99px; background: #eceef5; color: var(--muted); margin-left: .35rem; vertical-align: middle; }

.unit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 1399.98px) { .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .unit-grid { grid-template-columns: minmax(0, 1fr); } }
.unit-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .85rem; color: var(--ink); text-decoration: none; min-width: 0; }
.unit-box.is-link { transition: border-color .15s, box-shadow .15s, transform .15s; }
.unit-box.is-link:hover { border-color: #c4c8ec; box-shadow: 0 8px 24px rgba(59,70,160,.10); transform: translateY(-1px); color: var(--ink); }
.unit-box.is-locked { background: #fbfdfc; border-color: #d4ecdd; }
.unit-head { display: flex; gap: .85rem; align-items: flex-start; }
.unit-head .icon-tile { width: 44px; height: 44px; border-radius: 12px; font-size: 1.2rem; }
.unit-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.unit-caption { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; background: #f8f9fc; border-radius: 12px; padding: .6rem .75rem; }
.unit-facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.unit-facts span { display: block; font-size: .7rem; color: var(--muted); }
.unit-facts b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.unit-foot { display: flex; align-items: center; gap: 1rem; border-top: 1px solid var(--line-soft); padding-top: .75rem; }
.unit-total { font-size: 1.25rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.unit-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; border-top: 1px solid var(--line-soft); padding-top: .75rem; }
.status-pill.pending { background: var(--amber-soft); color: var(--amber); }


/* ---------- darker, clearer text + number boxes without up/down arrows ---------- */
.text-muted { color: var(--muted) !important; }
.table thead th { color: #343954; }
.table td { color: var(--ink); }
.form-control::placeholder { color: #8a8fa8; }

/* remove the increase / decrease arrows from every number box */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* date-wise entry table */
.entry-table td { vertical-align: middle; }
.entry-table td.fw-semibold { font-weight: 700 !important; color: var(--ink); font-size: .95rem; }
.entry-table td.text-muted { color: #4b5069 !important; font-size: .85rem; }
.entry-table input {
    max-width: 150px; height: 40px; font-size: 1rem; font-weight: 700; text-align: right;
    border: 1px solid #b9bed3; background: #fff; color: var(--ink);
}
.entry-table input:focus { border-color: var(--indigo); box-shadow: 0 0 0 .2rem rgba(59,70,160,.18); }
.entry-table tbody tr:not(.cat-row):hover td { background: #f6f7fc; }
.entry-table tfoot th { font-size: 1rem; color: var(--ink); border-top: 2px solid var(--indigo); }

/* ---------- highlighted drill-down boxes ---------- */
.unit-box {
    border: 1px solid #cfd3e6; box-shadow: 0 2px 6px rgba(29,32,51,.05), 0 10px 24px rgba(29,32,51,.05);
    position: relative; overflow: hidden;
}
.unit-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--indigo); }
.unit-box.is-link:hover { border-color: var(--indigo); box-shadow: 0 12px 30px rgba(59,70,160,.18); }
.unit-box .unit-name { font-size: 1.08rem; }
.unit-facts { background: #eef0f8; }
.unit-facts b { white-space: nowrap; font-size: .92rem; }
.unit-facts > div { min-width: 0; }

/* ---------- e-Office status: Live = orange, Not-Live = red, Live Uploading = green ---------- */
:root {
    --eo-live: #e8702a;      --eo-live-soft: #fdeee3;      --eo-live-ink: #a9480f;
    --eo-notlive: #d0362f;   --eo-notlive-soft: #fdeaea;   --eo-notlive-ink: #a1211b;
    --eo-up: #1f8a4c;        --eo-up-soft: #e5f5eb;        --eo-up-ink: #17683a;
}
.eo-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9aa0b8; flex-shrink: 0; }
.eo-live .eo-dot { background: var(--eo-live); }
.eo-notlive .eo-dot { background: var(--eo-notlive); }
.eo-uploading .eo-dot { background: var(--eo-up); }
.eo-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: .15rem; }

.eo-summary, .eo-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.eo-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.eo-chip b { font-variant-numeric: tabular-nums; }
.eo-chip.eo-live { background: var(--eo-live-soft); color: var(--eo-live-ink); }
.eo-chip.eo-notlive { background: var(--eo-notlive-soft); color: var(--eo-notlive-ink); }
.eo-chip.eo-uploading { background: var(--eo-up-soft); color: var(--eo-up-ink); }
.eo-chip.eo-none { background: #f1f2f6; color: var(--muted); }

.eo-btn {
    display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: 99px;
    font-size: .8rem; font-weight: 700; border: 1.5px solid; background: #fff; cursor: pointer; line-height: 1.2;
}
.eo-btn.eo-live { border-color: #f3b58c; color: var(--eo-live-ink); }
.eo-btn.eo-notlive { border-color: #eea6a2; color: var(--eo-notlive-ink); }
.eo-btn.eo-uploading { border-color: #9fd3b3; color: var(--eo-up-ink); }
.eo-btn:hover { filter: brightness(.97); }
.eo-btn.is-on { color: #fff; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.eo-btn.is-on .eo-dot { background: #fff; }
.eo-btn.eo-live.is-on { background: var(--eo-live); border-color: var(--eo-live); }
.eo-btn.eo-notlive.is-on { background: var(--eo-notlive); border-color: var(--eo-notlive); }
.eo-btn.eo-uploading.is-on { background: var(--eo-up); border-color: var(--eo-up); }
.eo-btn:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
.eo-warn { font-size: .78rem; font-weight: 600; color: var(--eo-notlive-ink); }

/* section boxes take the colour of their e-Office status on the top stripe */
.section-box.eo-live::before { background: var(--eo-live); }
.section-box.eo-notlive::before { background: var(--eo-notlive); }
.section-box.eo-uploading::before { background: var(--eo-up); }
.section-box.eo-none::before { background: #c3c7d9; }

/* report: highlighted project total rows */
.report-table tr.subtotal-row td {
    background: var(--indigo-soft) !important; color: var(--indigo-dark); font-weight: 700;
    border-top: 2px solid var(--indigo); border-bottom: 2px solid #c4c8ec;
}
.report-table tfoot tr td { background: var(--indigo) !important; color: #fff; font-weight: 700; }

/* section box: one e-Office status */
.eo-single { display: flex; align-items: center; gap: .5rem; }
.eo-chip.eo-big { font-size: .85rem; padding: .38rem .9rem; color: #fff; }
.eo-chip.eo-big .eo-dot { background: #fff; }
.eo-chip.eo-big.eo-live { background: var(--eo-live); }
.eo-chip.eo-big.eo-notlive { background: var(--eo-notlive); }
.eo-chip.eo-big.eo-uploading { background: var(--eo-up); }
a.eo-chip.eo-none:hover { background: #e6e8f1; }

/* entry page: e-Office picker panel */
.eo-picker-panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .5rem .75rem; display: inline-flex; }

/* sections of the master not yet in the project */
.unit-box.add-box-dashed { border: 1.5px dashed #b9bed8; background: #fafbfe; box-shadow: none; }
.unit-box.add-box-dashed::before { display: none; }
.unit-box.add-box-dashed .unit-name { color: var(--body); }
