/* =====================================================================
   HABITAT FOR HUMANITY THEME - shared by every dashboard
   ---------------------------------------------------------------------
   Change the colours below ONCE and every dashboard follows.
   The blue/green are approximations of the Habitat logo colours - replace
   them with the exact codes from your official brand guide if you have it.
   ===================================================================== */
:root {
    --hfh-blue:        #045E9C;
    --hfh-blue-dark:   #034676;
    --hfh-green:       #5CBA54;
    --hfh-green-dark:  #3A8A35;   /* darker green: readable behind white text */
    --hfh-amber:       #F2A93B;
    --hfh-red:         #D9534F;
    --hfh-bg:          #F3F6F9;
    --hfh-ink:         #1E2B37;
    --hfh-muted:       #6B7B8A;
    --hfh-line:        #E3E9EF;
    --hfh-shadow:      0 2px 10px rgba(16, 40, 64, .06);
    --hfh-shadow-lg:   0 10px 24px rgba(16, 40, 64, .12);
}

/* ---------- page + sidebar ---------- */
body {
    background: var(--hfh-bg);
    color: var(--hfh-ink);
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
body .content {
    background: var(--hfh-bg) !important;
    background-image: none !important;
}
body .sidebar {
    background: linear-gradient(180deg, var(--hfh-blue-dark), var(--hfh-blue)) !important;
    color: #fff;
    box-shadow: 2px 0 14px rgba(0, 0, 0, .14);
}
body .sidebar .nav-link {
    color: rgba(255, 255, 255, .84);
    border-radius: 10px;
    margin-bottom: 4px;
    transition: background .15s ease, color .15s ease;
}
body .sidebar .nav-link:hover {
    background: rgba(255, 255, 255, .13);
    color: #fff;
}
body .sidebar .nav-link.active {
    background: var(--hfh-green-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
body .sidebar hr { border-color: rgba(255, 255, 255, .28); opacity: 1; }

/* ---------- hero banner ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--hfh-blue-dark), var(--hfh-blue) 62%, #2f86c0);
    color: #fff;
    border-radius: 18px;
    padding: 26px 30px;
    box-shadow: var(--hfh-shadow-lg);
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(92, 186, 84, .35);
}
.page-hero::before {
    content: "";
    position: absolute;
    right: 90px;
    bottom: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
}
.page-hero h2 { font-weight: 700; margin: 0 0 4px; position: relative; z-index: 1; }
.page-hero p  { margin: 0; opacity: .92; position: relative; z-index: 1; }

/* ---------- summary (stat) cards ---------- */
.stat-card {
    --accent: var(--hfh-blue);
    height: 100%;
    background: #fff;
    border: 1px solid var(--hfh-line);
    border-top: 4px solid var(--accent);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: var(--hfh-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--hfh-shadow-lg); }
.stat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: var(--accent);
    background: #EEF4FA;
    background: color-mix(in srgb, var(--accent) 14%, #fff);
}
.stat-role  { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--hfh-muted); font-weight: 600; line-height: 1.2; }
.stat-title { font-weight: 700; line-height: 1.2; }
.stat-main  { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 12px; }
.stat-number { font-size: 2.3rem; font-weight: 800; line-height: 1; color: var(--accent); }
.stat-label  { color: var(--hfh-muted); font-size: .85rem; }
.stat-list   { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--hfh-line); }
.stat-list li { display: flex; align-items: center; gap: 8px; font-size: .9rem; padding: 3px 0; }
.stat-list li strong { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.dot-green { background: var(--hfh-green); }
.dot-amber { background: var(--hfh-amber); }
.dot-red   { background: var(--hfh-red); }

/* arrows between the four approval stages (wide screens only) */
@media (min-width: 1200px) {
    .flow-col { position: relative; }
    .flow-col:not(:last-child)::after {
        content: "\f061";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        position: absolute;
        right: -13px;
        top: 50%;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid var(--hfh-line);
        color: var(--hfh-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .65rem;
        z-index: 2;
        box-shadow: var(--hfh-shadow);
    }
}

/* ---------- charts (pure CSS, no libraries) ---------- */
.chart-card {
    height: 100%;
    background: #fff;
    border: 1px solid var(--hfh-line);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--hfh-shadow);
}
.chart-title { font-weight: 700; margin-bottom: 16px; color: var(--hfh-blue-dark); }
.donut-wrap  { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut       { width: 140px; height: 140px; border-radius: 50%; position: relative; flex: 0 0 auto; }
.donut-hole  {
    position: absolute;
    inset: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.donut-hole strong { font-size: 1.7rem; line-height: 1; }
.donut-hole span   { font-size: .7rem; color: var(--hfh-muted); }
.legend { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.legend li strong { margin-left: 6px; }

.stage-row { margin-bottom: 16px; }
.stage-row:last-child { margin-bottom: 0; }
.stage-top { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; margin-bottom: 6px; }
.stage-top .stage-name { font-weight: 600; }
.stage-top .stage-nums { color: var(--hfh-muted); white-space: nowrap; }
.stack-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: #E9EEF3; }
.stack-bar span { display: block; height: 100%; }
.seg-green { background: var(--hfh-green); }
.seg-amber { background: var(--hfh-amber); }
.seg-red   { background: var(--hfh-red); }

/* ---------- section titles ---------- */
.section-title {
    position: relative;
    padding-left: 14px;
    font-weight: 700;
    color: var(--hfh-blue-dark);
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 3px;
    background: var(--hfh-green);
}

/* ---------- tables ---------- */
.hfh-table-card {
    background: #fff;
    border: 1px solid var(--hfh-line);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--hfh-shadow);
}
.hfh-table-card table.table { border-collapse: separate; border-spacing: 0; border: 0; }
.hfh-table-card table.table thead th {
    background: var(--hfh-blue);
    color: #fff;
    border: 0;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 12px 14px;
}
.hfh-table-card table.table thead th:first-child { border-top-left-radius: 10px; }
.hfh-table-card table.table thead th:last-child  { border-top-right-radius: 10px; }
.hfh-table-card table.table tbody td {
    border: 0;
    border-bottom: 1px solid var(--hfh-line);
    padding: 12px 14px;
    vertical-align: middle;
}
.hfh-table-card table.table tbody tr:hover td { background: #F2F8FD; }

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--hfh-line);
    border-radius: 10px;
    padding: 6px 10px;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--hfh-blue);
    box-shadow: 0 0 0 3px rgba(4, 94, 156, .15);
}
.page-link { color: var(--hfh-blue); }
.page-item.active .page-link { background: var(--hfh-blue); border-color: var(--hfh-blue); color: #fff; }

/* ---------- badges ---------- */
.badge { font-weight: 600; border-radius: 999px; padding: .45em .8em; }
.badge.bg-success   { background-color: var(--hfh-green-dark) !important; }
.badge.bg-primary   { background-color: var(--hfh-blue) !important; }
.badge.bg-dark      { background-color: var(--hfh-blue-dark) !important; }
.badge.bg-warning   { background-color: #FCEBCB !important; color: #8A5A00 !important; }
.badge.bg-danger    { background-color: #FBE1E0 !important; color: #A12622 !important; }
.badge.bg-info      { background-color: #DCEBF6 !important; color: var(--hfh-blue-dark) !important; }
.badge.bg-secondary { background-color: #E6EBF0 !important; color: #44525F !important; }

/* ---------- buttons + alerts ---------- */
.btn { border-radius: 10px; font-weight: 600; }
.btn-primary { background-color: var(--hfh-blue); border-color: var(--hfh-blue); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--hfh-blue-dark); border-color: var(--hfh-blue-dark); }
.btn-success { background-color: var(--hfh-green-dark); border-color: var(--hfh-green-dark); }
.btn-success:hover, .btn-success:focus { background-color: #2F7330; border-color: #2F7330; }
.btn-info { background-color: #fff; border: 1px solid var(--hfh-green-dark); color: var(--hfh-green-dark); }
.btn-info:hover, .btn-info:focus { background-color: var(--hfh-green-dark); border-color: var(--hfh-green-dark); color: #fff; }
.alert { border-radius: 12px; border: 0; box-shadow: var(--hfh-shadow); }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
    .page-hero { padding: 20px; }
    .donut-wrap { justify-content: center; }
}


/* =====================================================================
   REQUESTER DASHBOARD ADDITIONS
   ===================================================================== */

/* ---------- budget hero ---------- */
.budget-hero { padding: 30px 34px; }
.budget-hero .row { position: relative; z-index: 1; }
.hero-eyebrow { position: relative; z-index: 1; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; opacity: .85; margin-bottom: 16px; }
.hero-label   { font-size: .95rem; opacity: .92; }
.hero-amount  { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.1; }
.hero-amount small { font-size: .45em; font-weight: 600; opacity: .85; margin-right: 4px; }
.hero-sub     { opacity: .92; margin: 6px 0 16px; }
.hero-chips   { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip    { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.hero-chip i  { margin-right: 6px; opacity: .9; }
.hero-chip strong { margin-left: 4px; }
.ring       { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.ring-svg   { width: 150px; height: 150px; display: block; }
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label strong { font-size: 1.9rem; line-height: 1; }
.ring-label span   { font-size: .75rem; opacity: .85; }
.ring-caption { margin-top: 8px; font-size: .85rem; opacity: .92; }

/* ---------- panels (card with a coloured header) ---------- */
.panel-card { background: #fff; border: 1px solid var(--hfh-line); border-radius: 16px; box-shadow: var(--hfh-shadow); overflow: hidden; }
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 14px 20px; color: #fff;
    background: linear-gradient(120deg, var(--hfh-blue-dark), var(--hfh-blue));
}
.panel-head h5 { margin: 0; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-head--navy  { background: linear-gradient(120deg, #02304F, var(--hfh-blue-dark)); }
.panel-head--green { background: linear-gradient(120deg, #2F7330, var(--hfh-green-dark)); }
.panel-head .btn-light { color: var(--hfh-blue-dark); }
.panel-body { padding: 20px; }
.count-pill { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 600; }

/* ---------- money cards ---------- */
.money-card {
    --accent: var(--hfh-blue);
    height: 100%;
    background: #fff;
    border: 1px solid var(--hfh-line);
    border-left: 5px solid var(--accent);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--hfh-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.money-card:hover { transform: translateY(-3px); box-shadow: var(--hfh-shadow-lg); }
.money-top  { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.money-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    background: #EEF4FA;
    background: color-mix(in srgb, var(--accent) 15%, #fff);
}
.money-label  { font-weight: 600; color: var(--hfh-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.money-amount { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.money-amount small { font-size: .55em; font-weight: 600; color: var(--hfh-muted); margin-right: 3px; }
.money-share  { font-size: .8rem; color: var(--hfh-muted); margin-top: 2px; }
.seg-blue { background: var(--hfh-blue); }
.dot-blue { background: var(--hfh-blue); }
.legend-inline { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; color: var(--hfh-muted); margin-top: 10px; }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- table inside a panel ---------- */
.hfh-table-card.flat { border: 0; box-shadow: none; padding: 0; background: transparent; }

/* ---------- accordion, tabs, progress ---------- */
.accordion-item { border: 1px solid var(--hfh-line) !important; border-radius: 14px !important; margin-bottom: 12px; overflow: hidden; }
.accordion-button { background: #fff; color: var(--hfh-ink); box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: #F2F8FD; color: var(--hfh-blue-dark); }
.progress { background: #E9EEF3; border-radius: 999px; overflow: hidden; }
.progress-bar.bg-success { background-color: var(--hfh-green) !important; }
.progress-bar.bg-warning { background-color: var(--hfh-amber) !important; color: #5A3B00; }
.progress-bar.bg-danger  { background-color: var(--hfh-red) !important; }
.nav-tabs { border-bottom: 2px solid var(--hfh-line); }
.nav-tabs .nav-link { border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--hfh-muted); font-weight: 600; }
.nav-tabs .nav-link:hover { color: var(--hfh-blue); }
.nav-tabs .nav-link.active { color: var(--hfh-blue-dark); background: transparent; border-bottom-color: var(--hfh-green); }
.activity-box { border: 1px solid var(--hfh-line) !important; border-radius: 12px !important; background: #FBFDFF; }
.small-muted  { color: var(--hfh-muted); font-size: .85em; }

@media (max-width: 767px) {
    .budget-hero { padding: 22px; }
}


/* =====================================================================
   ADMIN DASHBOARD ADDITIONS
   ===================================================================== */
.seg-sky   { background: #2F86C0; }
.seg-navy  { background: var(--hfh-blue-dark); }
.dot-sky   { background: #2F86C0; }
.dot-navy  { background: var(--hfh-blue-dark); }

.mini-title { font-weight: 700; color: var(--hfh-blue-dark); margin: 0 0 10px; font-size: .95rem; letter-spacing: .02em; }

/* quick action tiles */
.action-tile {
    display: flex; align-items: center; gap: 14px; height: 100%;
    background: #fff; border: 1px solid var(--hfh-line); border-radius: 14px;
    padding: 14px 16px; text-decoration: none; color: var(--hfh-ink);
    box-shadow: var(--hfh-shadow);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.action-tile:hover { transform: translateY(-3px); box-shadow: var(--hfh-shadow-lg); border-color: var(--hfh-blue); color: var(--hfh-ink); }
.action-icon {
    --accent: var(--hfh-blue);
    width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); background: #EEF4FA;
    background: color-mix(in srgb, var(--accent) 14%, #fff);
    font-size: 1.05rem;
}
.action-title { font-weight: 700; line-height: 1.2; }
.action-sub   { font-size: .8rem; color: var(--hfh-muted); }

/* "needs attention" tiles */
.attention-tile {
    --accent: var(--hfh-amber);
    display: flex; align-items: center; gap: 14px; height: 100%;
    background: #fff; border: 1px solid var(--hfh-line); border-left: 5px solid var(--accent);
    border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--hfh-ink);
    box-shadow: var(--hfh-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.attention-tile:hover { transform: translateY(-3px); box-shadow: var(--hfh-shadow-lg); color: var(--hfh-ink); }
.attention-tile.is-zero { opacity: .7; }
.attention-num  { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--accent); }
.attention-text { font-size: .85rem; color: var(--hfh-muted); }
.attention-go   { margin-left: auto; color: var(--hfh-muted); }

/* toolbar: search + filter chips */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1 1 260px; max-width: 360px; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hfh-muted); pointer-events: none; }
.search-box .form-control { padding-left: 38px; border-radius: 12px; border: 1px solid var(--hfh-line); background: #F8FAFC; }
.search-box .form-control:focus { border-color: var(--hfh-blue); background: #fff; box-shadow: 0 0 0 3px rgba(4, 94, 156, .15); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip {
    border: 1px solid var(--hfh-line); background: #fff; color: var(--hfh-muted);
    border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 600;
    transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--hfh-blue); color: var(--hfh-blue); }
.filter-chip.active { background: var(--hfh-blue); border-color: var(--hfh-blue); color: #fff; }

/* project header details */
.proj-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: .82rem; color: var(--hfh-muted); }
.proj-meta strong { color: var(--hfh-ink); }
.usage-tag { margin-left: auto; font-weight: 700; font-size: .75rem; padding: 2px 10px; border-radius: 999px; }
.usage-healthy  { background: #E3F4E1; color: #2F7330; }
.usage-watch    { background: #FCEBCB; color: #8A5A00; }
.usage-critical { background: #FBE1E0; color: #A12622; }

/* friendly empty state */
.empty-state { text-align: center; color: var(--hfh-muted); padding: 34px 16px; }
.empty-state i { font-size: 2rem; color: var(--hfh-blue); opacity: .45; margin-bottom: 10px; display: block; }


/* =====================================================================
   USER MANAGEMENT ADDITIONS
   ===================================================================== */
.avatar {
    width: 36px; height: 36px; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hfh-blue); color: #fff; font-weight: 700; font-size: .85rem;
    margin-right: 10px;
}
.avatar-supplier { background: var(--hfh-amber); color: #5A3B00; }
.user-cell { display: flex; align-items: center; }
.user-name { font-weight: 600; }

.role-badge { display: inline-block; padding: .35em .8em; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.role-admin              { background: #DCEBF6; color: #034676; }
.role-manager            { background: #D6E8F7; color: #045E9C; }
.role-requester          { background: #E3F4E1; color: #2F7330; }
.role-accountant,
.role-accountant_manager { background: #E6F0FA; color: #2F6D9E; }
.role-finance_director   { background: var(--hfh-blue-dark); color: #fff; }
.role-procurement        { background: #E0F4F1; color: #157A6E; }
.role-supplier           { background: #FCEBCB; color: #8A5A00; }

.proj-pill { display: inline-block; background: #EEF4FA; color: var(--hfh-blue-dark); border-radius: 999px; padding: 2px 10px; font-size: .75rem; margin: 2px 4px 2px 0; }
.pay-ok      { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--hfh-green-dark); }
.pay-missing { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: #8A5A00; background: #FCEBCB; border-radius: 999px; padding: 2px 10px; }
.pay-na      { color: var(--hfh-muted); }

.dropdown-menu { border: 1px solid var(--hfh-line); border-radius: 12px; box-shadow: var(--hfh-shadow-lg); padding: 6px; }
.dropdown-item { border-radius: 8px; font-size: .9rem; }
.dropdown-item:hover { background: #EEF4FA; }
.dropdown-item.text-danger:hover { background: #FBE1E0; }


/* =====================================================================
   ACTIVITY LOG ADDITIONS
   ===================================================================== */
.hfh-table-card td.act::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 8px;
    background: var(--dot, #B8C4CF);
}
.hfh-table-card td.act-login { --dot: var(--hfh-green); }
.hfh-table-card td.act-fail  { --dot: var(--hfh-red); color: #A12622; font-weight: 600; }
.hfh-table-card td.act-pay   { --dot: var(--hfh-blue); }
.hfh-table-card td.act-user  { --dot: var(--hfh-amber); }


/* =====================================================================
   UPLOAD PAGES ADDITIONS
   ===================================================================== */
.panel-head--amber { background: linear-gradient(120deg, #9A6A12, #C58A1E); }

.col-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.col-chip { background: #EEF4FA; color: var(--hfh-blue-dark); border-radius: 8px; padding: 3px 10px; font-size: .78rem; font-weight: 600; font-family: Consolas, "Courier New", monospace; }
.col-chip.optional { background: #F3F5F7; color: var(--hfh-muted); font-weight: 500; }

.dropzone {
    display: block; text-align: center; cursor: pointer;
    border: 2px dashed #B9CCDD; border-radius: 16px; background: #F8FBFE;
    padding: 30px 16px;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--hfh-blue); background: #EEF6FC; }
.dropzone.dragover { transform: scale(1.01); }
.dz-icon  { font-size: 2.4rem; color: var(--hfh-blue); display: block; margin-bottom: 8px; }
.dz-title { font-weight: 700; color: var(--hfh-blue-dark); }
.dz-sub   { font-size: .85rem; color: var(--hfh-muted); }
.dz-sub span { color: var(--hfh-blue); font-weight: 600; text-decoration: underline; }

.file-preview {
    display: flex; align-items: center; gap: 14px;
    border: 1px solid var(--hfh-line); border-left: 5px solid var(--hfh-green);
    border-radius: 14px; background: #fff; padding: 14px 16px;
    box-shadow: var(--hfh-shadow);
}
.fp-icon { width: 44px; height: 44px; border-radius: 12px; background: #E3F4E1; color: var(--hfh-green-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: 0 0 auto; }
.fp-name { font-weight: 700; word-break: break-all; line-height: 1.2; }
.fp-size { font-size: .8rem; color: var(--hfh-muted); }
.fp-remove { margin-left: auto; border: 0; background: none; color: var(--hfh-muted); padding: 6px 10px; border-radius: 8px; }
.fp-remove:hover { background: #FBE1E0; color: #A12622; }


/* ---------- stages that are not tracked yet ---------- */
.stat-card.is-soon { opacity: .62; border-top-style: dashed; box-shadow: none; }
.stat-card.is-soon:hover { transform: none; box-shadow: none; }
.soon-note { font-size: .85rem; color: var(--hfh-muted); margin: 6px 0 0; }


/* =====================================================================
   ACCOUNTANT PAGES ADDITIONS
   ===================================================================== */

/* ---------- live search box with a suggestions dropdown ---------- */
.live-search { position: relative; }
.live-search > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--hfh-muted); pointer-events: none;
}
.live-search .form-control { padding-left: 38px; border-radius: 12px; border: 1px solid var(--hfh-line); background: #F8FAFC; }
.live-search .form-control:focus { border-color: var(--hfh-blue); background: #fff; box-shadow: 0 0 0 3px rgba(4, 94, 156, .15); }
.suggest-panel {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1055;
    min-width: min(480px, 92vw); max-width: min(640px, 92vw);
    background: #fff; border: 1px solid var(--hfh-line); border-radius: 14px;
    box-shadow: var(--hfh-shadow-lg);
    max-height: 420px; overflow-y: auto; padding: 6px;
}
.suggest-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 9px 10px; border-radius: 10px; cursor: pointer;
    color: var(--hfh-ink); text-decoration: none;
}
.suggest-item:hover, .suggest-item.is-active { background: #EEF4FA; color: var(--hfh-ink); }
.suggest-id    { flex: 0 0 auto; min-width: 42px; font-weight: 700; color: var(--hfh-blue-dark); }
.suggest-main  { flex: 1 1 auto; min-width: 0; }
.suggest-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-sub   { font-size: .8rem; color: var(--hfh-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest-side  { flex: 0 0 auto; text-align: right; }
.suggest-amount { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.suggest-state  { display: inline-block; margin-top: 2px; font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; background: #E6EBF0; color: #44525F; }
.suggest-state.is-ready { background: #DCEBF6; color: var(--hfh-blue-dark); }
.suggest-state.is-paid  { background: #E3F4E1; color: #2F7330; }
.suggest-foot  { margin-top: 4px; padding: 8px 10px 4px; border-top: 1px solid var(--hfh-line); font-size: .78rem; color: var(--hfh-muted); }
.suggest-empty { padding: 14px 10px; text-align: center; color: var(--hfh-muted); font-size: .88rem; }
.suggest-panel mark { background: #FFF1C2; color: inherit; padding: 0 1px; border-radius: 3px; }

/* ---------- request list cells ---------- */
.cell-sub    { display: block; font-size: .78rem; color: var(--hfh-muted); }
.cell-amount { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.req-id      { font-weight: 700; color: var(--hfh-blue-dark); white-space: nowrap; }
.attention-tile.is-active { border-color: var(--accent); box-shadow: var(--hfh-shadow-lg); }

/* ---------- key / value table on the request details page ---------- */
.detail-table { margin-bottom: 0; }
.detail-table th[scope="row"] {
    width: 220px; background: #F3F6F9; color: var(--hfh-muted);
    font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    border: 0; border-bottom: 1px solid var(--hfh-line); padding: 12px 14px; vertical-align: top;
}
.detail-table td { border: 0; border-bottom: 1px solid var(--hfh-line); padding: 12px 14px; vertical-align: middle; }
@media (max-width: 767px) { .detail-table th[scope="row"] { width: 120px; } }

/* accountant pages: readable amber header, and highlight that does not clip */
.panel-head--amber, .panel-head--amber .panel-title, .panel-head--amber h5, .panel-head--amber h6, .panel-head--amber span { color: #fff; }
.panel-head--amber { background: linear-gradient(120deg, #7A520B, #A8710F); }
.panel-head--amber .count-pill { background: rgba(255,255,255,.25); color: #fff; }
.suggest-title mark, .suggest-sub mark { display: inline; background: #FFE08A; color: inherit; padding: 0; line-height: inherit; }
.suggest-title { line-height: 1.35; }
@media (max-width: 640px) { .suggest-panel { min-width: 0; max-width: none; } .suggest-side { max-width: 38%; } }
.panel-head--green, .panel-head--green *:not(.count-pill):not(.btn) { color: #fff; }
