/* =====================================================================
   Hive Data Center - client area theme (child of WHMCS Twenty-One)
   Brand: honey #FDCB30 on ink/charcoal, flat colours, no gradients.
   ===================================================================== */

:root {
    --hive-honey: #FDCB30;
    --hive-honey-d: #FCB900;
    --hive-honey-l: #FFF6D6;
    --hive-amber: #FD8D17;
    --hive-amber-l: #FFEBD6;
    --hive-ink: #111111;
    --hive-char: #212121;
    --hive-char2: #2A2A2A;
    --hive-side: #141414;
    --hive-wg: #514D4D;
    --hive-grey: #7A7A7A;
    --hive-line: #E8E8E8;
    --hive-surf: #F5F5F5;
    --hive-white: #FFFFFF;
    --hive-green: #2E9D5B;
    --hive-green-l: #E3F4EA;
    --hive-red: #D64545;
    --hive-red-l: #FBE5E5;
    --hive-radius: 10px;
    --hive-side-w: 248px;
}

/* ---------- Base ---------- */
body.hive {
    background: var(--hive-surf);
    color: var(--hive-ink);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body.hive a { color: var(--hive-ink); text-decoration: underline; text-decoration-color: var(--hive-honey); text-underline-offset: 3px; }
body.hive a:hover { color: var(--hive-ink); text-decoration-color: var(--hive-honey-d); text-decoration-thickness: 2px; }
body.hive a.btn, body.hive .hive-nav a, body.hive .hive-quick a, body.hive .dropdown-item, body.hive .list-group-item,
body.hive .hive-kpi, body.hive .hive-action, body.hive .hive-dept, body.hive .page-link, body.hive .nav-link,
body.hive .hive-brand, body.hive .hive-account-toggle, body.hive .hive-noc a, body.hive .hive-guest-top a,
body.hive .hive-footer a, body.hive .breadcrumb a, body.hive .card-title a, body.hive table a { text-decoration: none; }
body.hive h1, body.hive h2, body.hive h3, body.hive h4, body.hive h5, body.hive h6,
body.hive .h1, body.hive .h2, body.hive .h3, body.hive .h4, body.hive .h5, body.hive .h6 { color: var(--hive-ink); font-weight: 600; }
body.hive .text-muted { color: var(--hive-grey) !important; }
body.hive ::selection { background: var(--hive-honey); color: var(--hive-ink); }

/* ---------- App shell ---------- */
.hive-shell { display: flex; min-height: 100vh; }
.hive-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: var(--hive-side-w);
    background: var(--hive-side); color: #D8D8D8; overflow-y: auto; z-index: 1040;
    padding: 14px 16px 16px; display: flex; flex-direction: column;
}
.hive-brand { display: block; padding: 4px 4px 18px; }
.hive-brand img { height: 46px; width: auto; }
.hive-nav-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6A6A6A; margin: 14px 12px 8px; }
.hive-nav, .hive-quick, .hive-subnav { list-style: none; margin: 0; padding: 0; }
.hive-nav-link {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px;
    color: #D8D8D8 !important; font-size: 14px; margin-bottom: 4px; transition: background .15s;
}
.hive-nav-link i.fa-fw { font-size: 15px; color: #BDBDBD; }
.hive-nav-link:hover { background: var(--hive-char2); color: #fff !important; }
.hive-nav-item.active > .hive-nav-link { background: var(--hive-honey); color: var(--hive-ink) !important; font-weight: 600; }
.hive-nav-item.active > .hive-nav-link i { color: var(--hive-ink); }
.hive-caret { margin-left: auto; font-size: 11px; transition: transform .2s; }
.hive-nav-link.collapsed .hive-caret { transform: rotate(-90deg); }
.hive-subnav { margin: 2px 0 8px 26px; border-left: 1px solid #2E2E2E; }
.hive-subnav a { display: block; padding: 6px 14px; color: #BDBDBD !important; font-size: 13px; border-radius: 6px; }
.hive-subnav a:hover { color: #fff !important; background: var(--hive-char2); }
.hive-subnav-divider { height: 1px; background: #2E2E2E; margin: 6px 14px; }
.hive-badge { margin-left: auto; background: var(--hive-honey); color: var(--hive-ink); font-size: 10px; font-weight: 700; border-radius: 9px; padding: 1px 7px; }
.hive-nav-item.active .hive-badge { background: var(--hive-ink); color: var(--hive-honey); }
.hive-quick a { display: flex; align-items: center; gap: 10px; padding: 7px 14px; color: #CFCFCF !important; font-size: 13px; border-radius: 6px; }
.hive-quick a i { color: var(--hive-honey); }
.hive-quick a:hover { background: var(--hive-char2); color: #fff !important; }
.hive-noc { margin-top: auto; background: var(--hive-char2); border-radius: var(--hive-radius); padding: 14px; font-size: 12px; }
.hive-noc-title { color: #fff; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.hive-noc-title i { color: var(--hive-honey); margin-right: 6px; }
.hive-noc-line { display: block; color: var(--hive-honey) !important; font-weight: 600; margin-bottom: 2px; }
.hive-noc-help { color: #8A8A8A; margin-top: 6px; line-height: 1.4; }

.hive-main { flex: 1; min-width: 0; margin-left: var(--hive-side-w); display: flex; flex-direction: column; min-height: 100vh; }
.hive-topbar {
    position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 16px;
    background: var(--hive-white); border-bottom: 1px solid var(--hive-line); padding: 10px 32px; min-height: 66px;
}
.hive-title { min-width: 0; margin-right: auto; }
.hive-title h1 { font-size: 19px; margin: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hive-crumbs .breadcrumb { background: none; padding: 0; margin: 0; font-size: 11px; }
.hive-crumbs .breadcrumb-item, .hive-crumbs .breadcrumb-item a { color: var(--hive-grey); }
.hive-crumbs .breadcrumb-item + .breadcrumb-item::before { color: #C4C4C4; }
.hive-search { align-items: center; gap: 8px; background: var(--hive-surf); border-radius: 20px; padding: 0 14px; height: 38px; width: 320px; border: 1px solid transparent; }
.hive-search:focus-within { border-color: var(--hive-honey); background: #fff; }
.hive-search i { color: var(--hive-grey); }
.hive-search input { border: 0; background: transparent; outline: 0; flex: 1; font-size: 13px; color: var(--hive-ink); }
.hive-icon-btn { position: relative; background: none; border: 0; width: 40px; height: 40px; border-radius: 50%; color: var(--hive-wg); font-size: 18px; display: inline-flex; align-items: center; justify-content: center; }
.hive-icon-btn:hover { background: var(--hive-surf); color: var(--hive-ink); }
.hive-dot { position: absolute; top: 3px; right: 1px; background: var(--hive-amber); color: #fff; font-size: 10px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px; line-height: 17px; text-align: center; padding: 0 4px; }
.hive-account-toggle { display: flex; align-items: center; gap: 10px; color: var(--hive-ink) !important; }
.hive-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--hive-honey); color: var(--hive-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hive-account-text { flex-direction: column; line-height: 1.2; }
.hive-account-text strong { font-size: 13px; }
.hive-account-text small { font-size: 11px; color: var(--hive-grey); }
.hive-account .dropdown-menu { min-width: 230px; }
.hive-menu-btn { display: none; background: none; border: 0; font-size: 20px; color: var(--hive-ink); padding: 4px 8px; }
.hive-backdrop { display: none; }

body.hive #main-body.hive-content { flex: 1; padding: 28px 17px 8px; background: transparent; }
body.hive #main-body.hive-content > .container-fluid { padding-left: 15px; padding-right: 15px; }
body.hive #main-body .primary-content > .card:first-child, body.hive #main-body .sidebar .card:first-child { margin-top: 0; }
body.hive .hive-main { overflow-x: hidden; }
.hive-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 18px 32px 24px; font-size: 12px; color: var(--hive-grey); }
.hive-footer-links a, .hive-footer-links .btn-link { color: var(--hive-wg) !important; margin-left: 16px; font-size: 12px; }

/* ---------- Guest layout (login, password reset, contact) ---------- */
.hive-guest-shell { display: flex; min-height: 100vh; }
.hive-guest-brand {
    position: relative; overflow: hidden; flex: 0 0 46%; max-width: 46%;
    background: var(--hive-ink); color: #fff; padding: 48px 64px; display: flex; flex-direction: column;
}
.hive-guest-brand .hive-brand img { height: 72px; }
.hive-bars { position: absolute; top: 150px; right: 56px; display: flex; flex-direction: column; align-items: flex-end; gap: 22px; }
.hive-bars span { display: block; height: 18px; border-radius: 9px; background: #2A2508; }
.hive-bars span:nth-child(1), .hive-bars span:nth-child(7) { width: 150px; }
.hive-bars span:nth-child(2), .hive-bars span:nth-child(6) { width: 220px; }
.hive-bars span:nth-child(3), .hive-bars span:nth-child(5) { width: 250px; }
.hive-bars span:nth-child(4) { width: 270px; }
.hive-guest-copy { position: relative; margin-top: auto; margin-bottom: auto; padding-top: 220px; }
.hive-guest-copy h2 { color: #fff !important; font-size: 38px; line-height: 1.2; font-weight: 600; margin-bottom: 18px; }
.hive-guest-copy h2 em { color: var(--hive-honey); font-style: normal; }
.hive-guest-copy p { color: #BDBDBD; font-size: 15px; max-width: 440px; }
.hive-guest-copy ul { list-style: none; padding: 0; margin: 26px 0 0; }
.hive-guest-copy li { color: #E0E0E0; font-size: 14px; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.hive-guest-copy li i { width: 32px; height: 32px; border-radius: 8px; background: var(--hive-char2); color: var(--hive-honey); display: inline-flex; align-items: center; justify-content: center; }
.hive-guest-foot { color: #6A6A6A; font-size: 12px; position: relative; }
.hive-guest-main { flex: 1; min-width: 0; background: #fff; display: flex; flex-direction: column; }
.hive-guest-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 40px; }
.hive-guest-logo-sm { visibility: hidden; }
.hive-guest-logo-sm img { height: 40px; }
.hive-guest-links { display: flex; gap: 22px; align-items: center; font-size: 13px; }
.hive-guest-links a, .hive-guest-links .btn-link { color: var(--hive-wg) !important; font-size: 13px; }
.hive-guest-content { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 40px 60px; }
.hive-guest-content > div { width: 100%; max-width: 560px; }
.hive-guest .card { border: 1px solid var(--hive-line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .05); margin-top: 0 !important; }
.hive-guest .card .card-body { padding: 40px 44px !important; }
.hive-guest .card-footer { background: var(--hive-surf); border-top: 1px solid var(--hive-line); padding: 18px 44px !important; border-radius: 0 0 12px 12px; }
.hive-guest .card .card-body .card-title, .hive-guest .card .card-body h1, .hive-guest .card .card-body .h3 { margin-bottom: 6px; }
.hive-guest .login-form .h3 { font-size: 28px; }
.hive-guest .login-form .btn-primary { min-width: 160px; height: 46px; }

/* ---------- Cards / panels ---------- */
body.hive .card { border: 1px solid var(--hive-line); border-radius: var(--hive-radius); box-shadow: none; }
body.hive .card-header { background: #fff; border-bottom: 1px solid var(--hive-line); border-radius: var(--hive-radius) var(--hive-radius) 0 0 !important; }
body.hive .card-footer { background: #fff; border-top: 1px solid var(--hive-line); }
body.hive .card-footer:empty { display: none; }
body.hive .card-title { font-weight: 600; color: var(--hive-ink); }
body.hive .client-home-cards .card-header .card-title { font-size: 15px; }
body.hive .client-home-cards .card-header .card-title > i { color: var(--hive-honey-d); }
body.hive .client-home-cards .card-header .btn { background: var(--hive-surf) !important; border: 0; color: var(--hive-ink) !important; border-radius: 6px; font-weight: 600; }
body.hive [class*="card-accent-"] { border-top: 3px solid var(--hive-honey) !important; }
body.hive .card-accent-red, body.hive .card-accent-pomegranate { border-top-color: var(--hive-red) !important; }
body.hive .card-accent-gold, body.hive .card-accent-amber, body.hive .card-accent-orange { border-top-color: var(--hive-amber) !important; }

/* Contextual WHMCS sidebars (service actions, ticket info...) */
body.hive .card-sidebar .card-header { background: #fff; }
body.hive .card-sidebar .card-title { font-size: 14px; }
body.hive .list-group-item { border-color: var(--hive-line); color: var(--hive-ink); }
body.hive .list-group-item-action:hover { background: var(--hive-surf); }
body.hive .list-group-item.active, body.hive .list-group-item.active:hover {
    background: var(--hive-honey-l); border-color: var(--hive-line); color: var(--hive-ink);
    box-shadow: inset 4px 0 0 var(--hive-honey); font-weight: 600;
}

/* ---------- Dashboard ---------- */
.hive-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.hive-kpi {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hive-line); border-radius: var(--hive-radius);
    padding: 20px 22px; color: var(--hive-ink) !important; min-height: 140px; transition: border-color .15s, transform .15s;
}
.hive-kpi:hover { border-color: var(--hive-honey); transform: translateY(-1px); }
.hive-kpi-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--hive-honey-l); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 12px; }
.hive-kpi-label { font-size: 13px; font-weight: 600; color: var(--hive-wg); }
.hive-kpi-value { font-size: 30px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.hive-kpi-sub { font-size: 12px; color: var(--hive-grey); margin-top: 4px; }
.hive-kpi-accent { background: var(--hive-honey); border-color: var(--hive-honey); }
.hive-kpi-accent .hive-kpi-icon { background: var(--hive-ink); color: var(--hive-honey); }
.hive-kpi-accent .hive-kpi-label { color: var(--hive-ink); }
.hive-kpi-warn { border-color: var(--hive-amber); box-shadow: inset 4px 0 0 var(--hive-amber); }
.hive-kpi-warn .hive-kpi-icon { background: var(--hive-amber-l); color: #B35A00; }
.hive-kpi-warn .hive-kpi-sub { color: #B35A00; font-weight: 600; }

.hive-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.hive-action {
    display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--hive-line); border-radius: var(--hive-radius);
    padding: 14px 16px; color: var(--hive-ink) !important;
}
.hive-action:hover { border-color: var(--hive-honey); }
.hive-action-icon { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--hive-honey); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.hive-action strong { display: block; font-size: 14px; }
.hive-action small { display: block; color: var(--hive-grey); font-size: 12px; }
.hive-action > .fa-chevron-right { margin-left: auto; color: var(--hive-grey); }

/* ---------- Open ticket: departments ---------- */
.hive-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.hive-dept {
    position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--hive-line);
    border-radius: var(--hive-radius); background: #fff; color: var(--hive-ink) !important; min-height: 130px;
}
.hive-dept:hover { border-color: var(--hive-honey); background: var(--hive-honey-l); box-shadow: inset 0 3px 0 var(--hive-honey); }
.hive-dept-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--hive-honey-l); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 8px; }
.hive-dept:hover .hive-dept-icon { background: var(--hive-honey); }
.hive-dept strong { font-size: 15px; }
.hive-dept small { color: var(--hive-grey); font-size: 12px; }
.hive-dept-go { position: absolute; right: 16px; top: 22px; color: var(--hive-grey); }

/* ---------- Buttons ---------- */
body.hive .btn { border-radius: 8px; font-weight: 600; }
body.hive .btn-primary, body.hive .btn-primary.disabled, body.hive .btn-primary:disabled,
body.hive .btn-success, body.hive .btn-info {
    background-color: var(--hive-honey); border-color: var(--hive-honey); color: var(--hive-ink);
}
body.hive .btn-primary:hover, body.hive .btn-primary:focus, body.hive .btn-primary:not(:disabled):not(.disabled):active,
body.hive .btn-success:hover, body.hive .btn-success:focus, body.hive .btn-info:hover, body.hive .btn-info:focus {
    background-color: var(--hive-honey-d); border-color: var(--hive-honey-d); color: var(--hive-ink);
    box-shadow: 0 0 0 3px rgba(253, 203, 48, .35);
}
body.hive .btn-default, body.hive .btn-secondary, body.hive .btn-light {
    background: #fff; border: 1px solid #D6D6D6; color: var(--hive-ink);
}
body.hive .btn-default:hover, body.hive .btn-secondary:hover, body.hive .btn-light:hover { border-color: var(--hive-ink); background: #fff; color: var(--hive-ink); }
body.hive .btn-dark { background: var(--hive-ink); border-color: var(--hive-ink); color: #fff; }
body.hive .btn-outline-primary { color: var(--hive-ink); border-color: var(--hive-ink); }
body.hive .btn-outline-primary:hover, body.hive .btn-outline-primary:not(:disabled):not(.disabled):active,
body.hive .btn-outline-primary:not(:disabled):not(.disabled).active { background: var(--hive-ink); border-color: var(--hive-ink); color: #fff; }
body.hive .btn-link { color: var(--hive-ink); }
body.hive .input-group .btn-reveal-pw:hover, body.hive .input-group .btn-reveal-pw:active { color: var(--hive-ink); }

/* ---------- Forms ---------- */
body.hive .form-control, body.hive .custom-select { border-color: #D6D6D6; border-radius: 8px; color: var(--hive-ink); }
body.hive .form-control:focus, body.hive .custom-select:focus { border-color: var(--hive-honey); box-shadow: 0 0 0 3px rgba(253, 203, 48, .3); }
body.hive .input-group-text { background: var(--hive-surf); border-color: #D6D6D6; color: var(--hive-wg); }
body.hive label, body.hive .form-control-label { font-weight: 600; font-size: 13px; color: var(--hive-wg); }
body.hive .custom-control-input:checked ~ .custom-control-label::before,
body.hive .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { background-color: var(--hive-honey); border-color: var(--hive-honey-d); }
body.hive input[type=checkbox], body.hive input[type=radio] { accent-color: var(--hive-honey-d); }
body.hive .custom-range::-webkit-slider-thumb { background-color: var(--hive-honey); }
body.hive .custom-range::-moz-range-thumb { background-color: var(--hive-honey); }

/* ---------- Navs, tabs, pills, pagination, dropdowns ---------- */
body.hive .nav-tabs { border-bottom-color: var(--hive-line); }
body.hive .nav-tabs .nav-link { color: var(--hive-grey); border: 0; border-bottom: 3px solid transparent; }
body.hive .nav-tabs .nav-link:hover { color: var(--hive-ink); }
body.hive .nav-tabs .nav-link.active, body.hive .nav-tabs .nav-item.show .nav-link { color: var(--hive-ink); font-weight: 600; background: none; border-bottom-color: var(--hive-honey); }
body.hive .nav-pills .nav-link.active, body.hive .nav-pills .show > .nav-link { background: var(--hive-ink); color: #fff; }
body.hive .page-link { color: var(--hive-ink); border-color: var(--hive-line); }
body.hive .page-item.active .page-link { background: var(--hive-honey); border-color: var(--hive-honey); color: var(--hive-ink); }
body.hive .dropdown-menu { border: 1px solid var(--hive-line); border-radius: var(--hive-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); padding: 6px; }
body.hive .dropdown-item { border-radius: 6px; color: var(--hive-ink); font-size: 13px; padding: 7px 12px; }
body.hive .dropdown-item:hover { background: var(--hive-surf); }
body.hive .dropdown-item.active, body.hive .dropdown-item:active { background: var(--hive-honey); color: var(--hive-ink); }

/* ---------- Badges, progress, utilities ---------- */
body.hive .badge-primary, body.hive .badge-info, body.hive .bg-primary { background-color: var(--hive-honey) !important; color: var(--hive-ink); }
body.hive .badge-secondary { background: var(--hive-char); color: #fff; }
body.hive .text-primary { color: var(--hive-honey-d) !important; }
body.hive .border-primary { border-color: var(--hive-honey) !important; }
body.hive .progress { background: var(--hive-surf); border-radius: 4px; }
body.hive .progress-bar { background-color: var(--hive-honey); color: var(--hive-ink); }

/* ---------- Tables ---------- */
body.hive .table { color: var(--hive-ink); }
body.hive .table thead th, body.hive table.table-list thead th {
    background: #fff; color: var(--hive-grey); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
    border-top: 0; border-bottom: 3px solid var(--hive-honey) !important;
}
body.hive .table td { border-top-color: var(--hive-line); vertical-align: middle; }
body.hive .table-list tbody tr:hover td { background: #FFFBEA; }
body.hive .dataTables_wrapper .dataTables_filter input { border-radius: 18px; }

/* ---------- Status labels ---------- */
body.hive .label.status, body.hive span.status {
    display: inline-block; border-radius: 11px; padding: 3px 10px; font-size: 11px; font-weight: 600; line-height: 1.4; border: 0;
}
body.hive .status-active, body.hive .status-paid, body.hive .status-completed, body.hive .status-accepted, body.hive .status-delivered { background: var(--hive-green-l) !important; color: var(--hive-green) !important; }
body.hive .status-open, body.hive .status-inprogress, body.hive .status-pending, body.hive .status-payment-pending, body.hive .status-pending-registration, body.hive .status-pending-transfer { background: var(--hive-honey) !important; color: var(--hive-ink) !important; }
body.hive .status-answered { background: var(--hive-char) !important; color: #fff !important; }
body.hive .status-customer-reply, body.hive .status-onhold, body.hive .status-grace { background: var(--hive-honey-l) !important; color: var(--hive-wg) !important; }
body.hive .status-unpaid, body.hive .status-collections, body.hive .status-redemption { background: var(--hive-amber-l) !important; color: #B35A00 !important; }
body.hive .status-suspended, body.hive .status-terminated, body.hive .status-fraud, body.hive .status-dead, body.hive .status-expired { background: var(--hive-red-l) !important; color: var(--hive-red) !important; }
body.hive .status-closed, body.hive .status-cancelled, body.hive .status-refunded, body.hive .status-lost, body.hive .status-transferred-away { background: var(--hive-surf) !important; color: var(--hive-grey) !important; }

/* ---------- Alerts ---------- */
body.hive .alert { border: 0; border-left: 4px solid; border-radius: 8px; color: var(--hive-ink); }
body.hive .alert-info { background: var(--hive-honey-l); border-left-color: var(--hive-honey); }
body.hive .alert-warning { background: var(--hive-amber-l); border-left-color: var(--hive-amber); }
body.hive .alert-success { background: var(--hive-green-l); border-left-color: var(--hive-green); }
body.hive .alert-danger { background: var(--hive-red-l); border-left-color: var(--hive-red); }
body.hive .alert a:not(.btn) { color: var(--hive-ink); font-weight: 600; }

/* ---------- Tickets ---------- */
body.hive .ticket-reply { border-radius: var(--hive-radius); }
body.hive .ticket-reply.staff, body.hive .ticket-reply .staff { border-left: 4px solid var(--hive-honey); }

/* ---------- Popover (notifications) ---------- */
body.hive .popover { border: 1px solid var(--hive-line); border-radius: var(--hive-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
body.hive .client-alerts li a { color: var(--hive-ink); }
body.hive .client-alerts .fa-exclamation-triangle { color: var(--hive-amber); }

/* ---------- Language modal ---------- */
body.hive .modal-localisation .modal-content { background: var(--hive-ink); }
body.hive .modal-localisation .item-selector .item.active { background: var(--hive-honey); color: var(--hive-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1399.98px) {
    .hive-kpis, .hive-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .hive-sidebar { transform: translateX(-100%); transition: transform .25s; }
    .hive-main { margin-left: 0; }
    .hive-menu-btn { display: inline-block; }
    body.hive-nav-open .hive-sidebar { transform: none; }
    body.hive-nav-open .hive-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 1035; }
    .hive-topbar { padding: 10px 16px; gap: 8px; }
    body.hive #main-body.hive-content { padding: 20px 1px 8px; }
    .hive-footer { padding: 16px; }

    .hive-guest-brand { display: none; }
    .hive-guest-logo-sm { visibility: visible; }
    .hive-guest-top { padding: 18px 20px; }
    .hive-guest-content { padding: 16px 20px 40px; align-items: flex-start; }
}
@media (max-width: 575.98px) {
    .hive-kpis, .hive-actions { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .hive-title h1 { font-size: 16px; }
    .hive-crumbs { display: none; }
}
@media print {
    .hive-sidebar, .hive-topbar, .hive-footer { display: none !important; }
    .hive-main { margin-left: 0; }
}

/* ---------- Guest homepage ---------- */
.hive-home-links { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--hive-line); padding-top: 20px; }
.hive-home-links a { color: var(--hive-wg) !important; font-size: 14px; }
.hive-home-links a i { color: var(--hive-honey-d); margin-right: 6px; }

/* ---------- Page loading overlay: hidden until WHMCS calls showOverlay() ---------- */
#fullpage-overlay.w-hidden { display: none; }

/* ---------- Language dropdown ---------- */
.hive-lang .btn-link { color: var(--hive-wg) !important; font-size: 13px; font-weight: 600; padding: 0; text-decoration: none; box-shadow: none !important; }
.hive-lang .btn-link i { color: var(--hive-honey-d); margin-right: 4px; }
.hive-lang .dropdown-menu { min-width: 160px; max-height: 320px; overflow-y: auto; }
.hive-footer-links { display: inline-flex; align-items: center; gap: 16px; }
.hive-footer-links a { margin-left: 0; }

@media (max-width: 575.98px) {
    .hive-guest .card .card-body { padding: 28px 22px !important; }
    .hive-guest .card-footer { padding: 16px 22px !important; }
}

/* ---------- Users vs contacts explainer ---------- */
.hive-uc-note { display: flex; gap: 14px; background: var(--hive-honey-l); border-left: 4px solid var(--hive-honey); border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; font-size: 13px; color: var(--hive-ink); }
.hive-uc-icon { font-size: 20px; color: var(--hive-honey-d); line-height: 1; padding-top: 2px; }
.hive-uc-title { display: block; font-size: 14px; margin-bottom: 6px; }
.hive-uc-body p { margin: 0 0 4px; }
.hive-uc-body p i { color: var(--hive-wg); }
.hive-uc-tip { color: var(--hive-wg); margin-top: 6px !important; }
.hive-uc-links { display: flex; gap: 18px; margin-top: 8px; }
.hive-uc-links a { font-weight: 600; font-size: 13px; }

/* =====================================================================
   Service (product) details page - clientareaproductdetails.tpl
   ===================================================================== */
.hive-svc { display: flex; flex-direction: column; gap: 20px; }
.hive-svc-alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Hero */
.hive-svc-hero {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
    background: var(--hive-ink); color: #fff; border-radius: 12px; padding: 24px 28px; position: relative; overflow: hidden;
}
.hive-svc-hero::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%;
    border: 28px solid rgba(253, 203, 48, .07); pointer-events: none;
}
.hive-svc-id { display: flex; align-items: center; gap: 18px; min-width: 0; position: relative; z-index: 1; }
.hive-svc-icon {
    flex: none; width: 60px; height: 60px; border-radius: 14px; background: var(--hive-honey); color: var(--hive-ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
}
.hive-svc-titles { min-width: 0; }
.hive-svc-group { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hive-honey); }
body.hive .hive-svc-name { color: #fff; font-size: 24px; margin: 2px 0 8px; line-height: 1.25; word-break: break-word; }
.hive-svc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hive-chip {
    display: inline-flex; align-items: center; gap: 6px; background: var(--hive-char2); color: #E6E6E6;
    border-radius: 11px; padding: 3px 10px; font-size: 12px; font-weight: 600;
}
.hive-chip i { color: var(--hive-honey); }
.hive-chip-muted { color: #9A9A9A; background: transparent; border: 1px solid #333; }
.hive-svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; position: relative; z-index: 1; }
body.hive .hive-svc-actions .btn-default { background: transparent; border-color: #4A4A4A; color: #fff; }
body.hive .hive-svc-actions .btn-default:hover { border-color: var(--hive-honey); color: var(--hive-honey); background: transparent; }
body.hive .hive-svc-cancel { color: #B5B5B5 !important; font-size: 13px; font-weight: 600; padding: 6px 4px; text-decoration: none; }
body.hive .hive-svc-cancel:hover { color: #FF8A8A !important; }
.hive-svc-cancel.disabled { opacity: .6; cursor: default; }

/* Billing facts */
.hive-svc-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hive-fact {
    display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--hive-line);
    border-radius: var(--hive-radius); padding: 16px 18px; min-width: 0;
}
.hive-fact-label { font-size: 12px; font-weight: 600; color: var(--hive-grey); }
.hive-fact-label i { color: var(--hive-honey-d); margin-right: 4px; }
.hive-fact-value { font-size: 20px; font-weight: 600; color: var(--hive-ink); line-height: 1.3; word-break: break-word; }
.hive-fact-value-sm { font-size: 15px; }
.hive-fact-sub { font-size: 12px; color: var(--hive-grey); }
.hive-fact-accent { border-color: var(--hive-honey); box-shadow: inset 4px 0 0 var(--hive-honey); }

/* Detail panels */
.hive-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.hive-panel { background: #fff; border: 1px solid var(--hive-line); border-radius: var(--hive-radius); overflow: hidden; min-width: 0; }
.hive-panel-wide { grid-column: 1 / -1; }
.hive-panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--hive-line); font-weight: 600; font-size: 15px; }
.hive-panel-head > i { color: var(--hive-honey-d); }
.hive-panel-body { padding: 20px; }
.hive-panel-foot { padding: 12px 20px; border-top: 1px solid var(--hive-line); display: flex; gap: 8px; flex-wrap: wrap; }
.hive-dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; margin: 0; }
.hive-dl dt, .hive-dl dd { margin: 0; padding: 11px 20px; border-bottom: 1px solid #F1F1F1; font-size: 13px; }
.hive-dl dt { color: var(--hive-grey); font-weight: 600; }
.hive-dl dd { color: var(--hive-ink); word-break: break-word; }
.hive-dl dt:nth-last-child(2), .hive-dl dd:last-child { border-bottom: 0; }
.hive-usage { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.hive-usage-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.hive-usage-top span { color: var(--hive-grey); }
.hive-list-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #F1F1F1; }
.hive-list-row:last-child { border-bottom: 0; }

/* ---------- Hook output (Bootstrap 3 style panels from addon modules) ---------- */
.hive-hook > .alert { font-size: 12px; margin-bottom: 12px; }
.hive-hook .panel {
    background: #fff; border: 1px solid var(--hive-line); border-radius: var(--hive-radius);
    overflow: hidden; margin: 0 0 20px !important;
}
.hive-hook .panel:last-of-type { margin-bottom: 0 !important; }
.hive-hook .panel-heading { padding: 14px 20px; border-bottom: 1px solid var(--hive-line); background: #fff; }
.hive-hook .panel-heading[data-toggle="collapse"]:hover { background: #FFFBEA; }
.hive-hook .panel-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px !important; font-weight: 600; color: var(--hive-ink); }
.hive-hook .panel-title > i:first-child { color: var(--hive-honey-d); }
.hive-hook .panel-title .pull-right { margin-left: auto; font-size: 12px; color: var(--hive-grey); transition: transform .2s; }
.hive-hook .panel-heading[aria-expanded="true"] .pull-right { transform: rotate(180deg); }
.hive-hook .panel-body { padding: 20px; }
.hive-hook .well { background: var(--hive-surf); border-radius: 8px; padding: 16px 18px; margin-top: 16px; }
.hive-hook .well .form-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hive-hook .well .form-group { margin: 0 !important; }
.hive-hook h4 { font-size: 15px; margin-top: 8px; }
.hive-hook h5 { font-size: 13px; color: var(--hive-wg); }
.hive-hook .table-bordered, .hive-hook .table-bordered td, .hive-hook .table-bordered th { border-color: var(--hive-line); }
.hive-hook .table-striped tbody tr:nth-of-type(odd) { background: #FAFAFA; }
.hive-hook .table td .btn { padding: 4px 10px; font-size: 12px; }
.hive-hook .btn-warning { background: #fff; border: 1px solid #D6D6D6; color: var(--hive-ink); }
.hive-hook .btn-warning:hover { border-color: var(--hive-amber); color: #B35A00; background: #fff; }

/* Bandwidth graph */
.hive-hook .panel-billing-graph .panel-body { padding: 18px 20px 22px; }
.hive-hook .panel-billing-graph .btn-group {
    background: var(--hive-surf); border-radius: 20px; padding: 3px; gap: 2px; margin-bottom: 18px !important;
}
body.hive .hive-hook .obs-time-btn {
    border: 0 !important; border-radius: 17px !important; background: transparent; color: var(--hive-wg);
    font-size: 12px; padding: 5px 14px; box-shadow: none !important;
}
body.hive .hive-hook .obs-time-btn:hover { color: var(--hive-ink); background: #fff; }
body.hive .hive-hook .obs-time-btn.active { background: var(--hive-ink) !important; color: var(--hive-honey) !important; }
.hive-hook .panel-billing-graph .panel-body > div[style] {
    min-height: 0 !important; background: #FBFBFB; border: 1px solid var(--hive-line); border-radius: 8px; padding: 16px;
    display: flex; justify-content: center; overflow-x: auto;
}
.hive-hook #obsBandwidthGraph { border: 0 !important; padding: 0 !important; background: transparent; display: block; }

/* Circuit / port status */
.hive-hook .panel-port-status .panel-body { padding: 0; }
.hive-hook .panel-port-status .table td { padding: 12px 20px; border-top: 1px solid #F1F1F1; font-size: 13px; }
.hive-hook .panel-port-status .table tr:first-child td { border-top: 0; }
.hive-hook .panel-port-status .table td:first-child strong { color: var(--hive-grey); font-weight: 600; }
.hive-hook .panel-port-status details { padding: 0 20px 14px; }
.hive-hook .panel-port-status .alert { margin: 16px 20px; }

/* Related support tickets (product_tickets addon, inline-styled) */
.hive-hook > div[style]:not(.alert):not(.panel) {
    margin-top: 0 !important; border: 1px solid var(--hive-line) !important; border-radius: var(--hive-radius) !important; background: #fff;
}
.hive-hook > div[style]:not(.alert):not(.panel) > div:first-child {
    background: #fff !important; padding: 14px 20px !important; font-size: 15px !important; border-bottom: 1px solid var(--hive-line) !important;
}
.hive-hook > div[style]:not(.alert):not(.panel) > div:first-child::before {
    content: "\f1cd"; font-family: "Font Awesome 5 Pro"; font-weight: 300; color: var(--hive-honey-d); margin-right: 10px;
}
.hive-hook > div[style]:not(.alert):not(.panel) > div + div { padding: 4px 20px 8px !important; }
.hive-hook > div[style]:not(.alert):not(.panel) th { border-bottom: 3px solid var(--hive-honey) !important; color: var(--hive-grey); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.hive-hook > div[style]:not(.alert):not(.panel) td { border-bottom-color: #F1F1F1 !important; }

@media (max-width: 1399.98px) {
    .hive-svc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .hive-svc-grid { grid-template-columns: minmax(0, 1fr); }
    .hive-svc-hero { padding: 20px; }
}
@media (max-width: 575.98px) {
    .hive-svc-facts { grid-template-columns: minmax(0, 1fr); }
    .hive-svc-actions { width: 100%; }
    .hive-dl { grid-template-columns: minmax(0, 1fr); }
    .hive-dl dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- Sidebar cards (Overview / Actions / contextual menus) ---------- */
body.hive .sidebar .card-sidebar {
    border: 1px solid var(--hive-line); border-radius: 12px; overflow: hidden; margin-bottom: 16px !important;
    background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
body.hive .sidebar .card-sidebar .card-header { padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--hive-line); border-radius: 0 !important; }
body.hive .sidebar .card-sidebar .card-header:has(.card-minimise.minimised) { border-bottom: 0; }
body.hive .sidebar .card-sidebar .card-title {
    display: flex; align-items: center; gap: 10px; font-size: 11px !important; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--hive-grey);
}
body.hive .sidebar .card-sidebar .card-title > i:first-child {
    width: 26px; height: 26px; border-radius: 7px; background: var(--hive-honey-l); color: var(--hive-ink);
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
body.hive .sidebar .card-sidebar .card-minimise {
    margin-left: auto; float: none !important; font-size: 11px; color: #B5B5B5; cursor: pointer; transition: transform .2s, color .15s;
}
body.hive .sidebar .card-sidebar .card-minimise:hover { color: var(--hive-ink); }
body.hive .sidebar .card-sidebar .card-minimise.minimised { transform: rotate(180deg); }
body.hive .sidebar .card-sidebar .list-group { padding: 6px; }
body.hive .sidebar .card-sidebar .list-group-item {
    border: 0 !important; border-radius: 8px !important; padding: 9px 12px; margin: 1px 0; font-size: 14px; color: var(--hive-ink);
}
body.hive .sidebar .card-sidebar .list-group-item:hover { background: #FFFBEA; }
body.hive .sidebar .card-sidebar .list-group-item.active, body.hive .sidebar .card-sidebar .list-group-item.active:hover {
    background: var(--hive-honey-l); box-shadow: inset 3px 0 0 var(--hive-honey); font-weight: 600;
}
body.hive .sidebar .card-sidebar .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 10px; }
body.hive .sidebar .card-sidebar .sidebar-menu-item-icon-wrapper { width: 18px; text-align: center; color: var(--hive-wg); }
body.hive .sidebar .card-sidebar .list-group-item.active .sidebar-menu-item-icon-wrapper { color: var(--hive-ink); }
body.hive .sidebar .card-sidebar .sidebar-menu-item-badge { margin-left: auto; }
body.hive .sidebar .card-sidebar .list-group-item.disabled { color: #B5B5B5; }
/* Destructive action (Request Cancellation) reads as such */
body.hive .sidebar .card-sidebar .list-group-item[menuItemName="Cancel"],
body.hive .sidebar .card-sidebar .list-group-item[menuitemname="Cancel"] { color: var(--hive-red); }
body.hive .sidebar .card-sidebar .list-group-item[menuItemName="Cancel"] .sidebar-menu-item-icon-wrapper,
body.hive .sidebar .card-sidebar .list-group-item[menuitemname="Cancel"] .sidebar-menu-item-icon-wrapper { color: var(--hive-red); }
body.hive .sidebar .card-sidebar .list-group-item[menuItemName="Cancel"]:hover,
body.hive .sidebar .card-sidebar .list-group-item[menuitemname="Cancel"]:hover { background: var(--hive-red-l); }
body.hive .sidebar .card-sidebar .card-body { padding: 14px 16px; font-size: 13px; }
body.hive .sidebar .card-sidebar .card-footer { padding: 10px 16px; background: var(--hive-surf); }

/* ---------- View ticket: separate each message ---------- */
body.hive .ticket-reply {
    margin: 20px 20px 0; border: 1px solid var(--hive-line); border-radius: var(--hive-radius);
    overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}
body.hive .card-body:has(> .ticket-reply) { padding: 0; }
body.hive .card-body:has(> .ticket-reply):not(:has(~ .card-body > .ticket-reply)) { padding-bottom: 20px; }
body.hive .ticket-reply .posted-by { padding: 10px 16px; background: var(--hive-surf); border-bottom: 1px solid var(--hive-line); }
body.hive .ticket-reply .message { padding: 16px 18px !important; }
body.hive .ticket-reply .message > *:last-child { margin-bottom: 0; }
body.hive .ticket-reply.staff { border-left: 4px solid var(--hive-honey); }
body.hive .ticket-reply.staff .posted-by { background: #FFFBEA; }
@media (max-width: 575.98px) { body.hive .ticket-reply { margin-left: 12px; margin-right: 12px; } }

/* ---------- Sidebar items with two-line labels (Your Recent Tickets, etc.) ---------- */
body.hive .sidebar .card-sidebar .sidebar-menu-item-label { flex: 1; min-width: 0; }
body.hive .sidebar .card-sidebar .sidebar-menu-item-label .truncate,
body.hive .sidebar .card-sidebar .recent-ticket > div:first-child {
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 600;
}
body.hive .sidebar .card-sidebar .sidebar-menu-item-label small {
    display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 8px;
    margin-top: 3px; font-size: 11px; color: var(--hive-grey);
}
body.hive .sidebar .card-sidebar .sidebar-menu-item-label small .float-right,
body.hive .sidebar .card-sidebar .sidebar-menu-item-label small .pull-right { float: none !important; white-space: nowrap; }
body.hive .sidebar .card-sidebar .sidebar-menu-item-label small > span:not(.float-right):not(.pull-right) { font-weight: 600; }

/* Service details grid: a lone card (or the odd one out at the end) uses the full width,
   and cards only take the height of their own content. */
.hive-svc-grid { align-items: start; }
.hive-svc-grid > .hive-panel:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- File inputs (ticket attachments: Choose file / Browse / + Add More) ---------- */
body.hive .custom-file, body.hive .custom-file-input { height: 40px; }
body.hive .custom-file-label {
    height: 40px; display: flex; align-items: center; padding: 0 96px 0 14px;
    font-size: 14px; font-weight: 400; color: var(--hive-grey); border-color: #D6D6D6; border-radius: 8px;
}
body.hive .custom-file-label::after {
    height: auto; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 16px;
    background: var(--hive-surf); color: var(--hive-ink); font-weight: 600; font-size: 13px;
    border-left: 1px solid #D6D6D6; border-radius: 0 8px 8px 0;
}
body.hive .custom-file-input:focus ~ .custom-file-label { border-color: var(--hive-honey); box-shadow: 0 0 0 3px rgba(253, 203, 48, .3); }
body.hive .attachment-group .custom-file-label, body.hive .attachment-group .custom-file-label::after { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.hive .attachment-group .input-group-append .btn {
    height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; white-space: nowrap;
    font-size: 13px; border-color: #D6D6D6; border-radius: 0 8px 8px 0; margin-left: -1px;
}
body.hive .attachment-group .input-group-append .btn i { font-size: 11px; color: var(--hive-honey-d); }
body.hive .attachment-group .input-group-append .btn:hover { border-color: var(--hive-ink); position: relative; z-index: 2; }

/* NOC card: phone number under "Outage or emergency? Call, don't ticket." */
.hive-noc-phone { margin-top: 8px; color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .02em; user-select: all; }
.hive-noc-phone i { color: var(--hive-honey); font-size: 12px; margin-right: 6px; }

/* ---------- Guest pages with real forms (open ticket, contact, KB...) get more room than login ---------- */
.hive-guest-content.hive-guest-wide { align-items: flex-start; padding-top: 40px; }
.hive-guest-content.hive-guest-wide > div { max-width: 920px; }
@media (min-width: 768px) {
    /* Fields on the same row share the width evenly instead of Bootstrap's narrow col-md-3/4/5 */
    body.hive .hive-guest-wide form .row > .form-group[class*="col-md-"] { flex: 1 1 0; max-width: none; }
}
body.hive .hive-guest-wide .custom-select, body.hive .hive-guest-wide select.form-control { min-width: 0; width: 100%; }

/* Guest pages: "Back" link above the content */
body.hive .hive-guest-back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px 6px 10px;
    border-radius: 8px; color: var(--hive-wg) !important; font-size: 13px; font-weight: 600; text-decoration: none;
}
body.hive .hive-guest-back i { color: var(--hive-honey-d); }
body.hive .hive-guest-back:hover { background: var(--hive-surf); color: var(--hive-ink) !important; }

/* NOC card: "Escalation" label above the phone number (issue #3) */
.hive-noc-escalation { margin-top: 10px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8A8A8A; }
.hive-noc-escalation + .hive-noc-phone { margin-top: 2px; }

/* ---------- Ticket statuses: custom WHMCS statuses ("On Hold - Waiting on customer reply", "In Progress") ---------- */
/* Fallback: a status label coloured from WHMCS (inline background) always gets readable white text */
body.hive .label[style*="background"], body.hive span.status[style*="background"], body.hive .badge[style*="background"] { color: #fff !important; }
/* Map the custom statuses onto the Hive palette, like the built-in ones */
body.hive .label[class*="status-on-hold"], body.hive span[class*="status-on-hold"], body.hive .badge[class*="status-on-hold"] {
    background: var(--hive-honey-l) !important; color: var(--hive-wg) !important;
}
body.hive .label[class*="status-in-progress"], body.hive span[class*="status-in-progress"], body.hive .badge[class*="status-in-progress"] {
    background: var(--hive-honey) !important; color: var(--hive-ink) !important;
}
