:root {
    --sidebar-w: 240px;
    --header-h: 54px;
    --footer-h: 38px;
    --primary: #0e9edc;
    --primary-light: #ebf0fe;
    --sidebar-bg: #25233c;
    --sidebar-text: #94a3b8;
    --sidebar-active: #1a56db;
    --sidebar-active-bg: rgba(26, 86, 219, 0.15);
    --sidebar-hover: rgba(255, 255, 255, 0.05);
    --header-bg: #ffffff;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
@font-face {
    font-family: "DM Sans";
    src: url("/assets/fonts/DMSans-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "DM Sans";
    src: url("/assets/fonts/DMSans-Bold.ttf") format("truetype");
    font-weight: 700;
}

@font-face {
    font-family: "Space Mono";
    src: url("/assets/fonts/SpaceMono-Regular.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "Space Mono";
    src: url("/assets/fonts/SpaceMono-Bold.ttf") format("truetype");
    font-weight: 700;
}
body {
   font-family: 'DM Sans', sans-serif;
    background: var(--body-bg);
    color: var(--text-main);
    font-size: 13.5px;
}
/* SIDEBAR */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.sidebar-brand {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

#pageLoader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 55px;
    height: 55px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #0e9edc;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.brand-name {
    font-family: "Space Mono", monospace;
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.brand-name span {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: var(--sidebar-text);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.sidebar-section {
    padding: 14px 12px 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.5);
}
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0 10px;
}
.sidebar-nav::-webkit-scrollbar {
    width: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.nav-item-wrap {
    padding: 1px 10px;
}
.nav-link-s {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition:
        background 0.15s,
        color 0.15s;
    cursor: pointer;
    user-select: none;
}
.nav-link-s:hover {
    background-color: #f6fcff !important;
    color: #0e9edc;
    border-left: 5px solid #0e9edc !important;
}
.nav-link-s.active {
    background-color: #f6fcff !important;
    color: #0e9edc;
    border-left: 5px solid #0e9edc !important;
}

table thead th {
  color: #0e9edc !important;
}
.nav-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
}
.chevron {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s;
}
.nav-link-s.open .chevron {
    transform: rotate(90deg);
}
.sub-menu {
    display: none;
    padding: 2px 0 4px 28px;
}
.sub-menu.show {
    display: block;
}
.sub-menu a:first-child {
    margin-top: 10px;
}
.sub-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    color: #64748b;
    text-decoration: none;
    font-size: 12.5px;
    transition:
        background 0.15s,
        color 0.15s;
}

.sub-menu a.active-submenu {
    /* background-color: #f6fcff !important; */
    color: #fff !important;

    font-weight: 600;
}
.sub-menu a:hover {
    background: var(--sidebar-hover);
    color: #cbd5e1;
}

.sub-menu a.active-submenu::before {
    background: #fff;
}
.sub-menu a::before {
    content: "";
    width: 5px;
    height: 5px;
    background: #334155;
    border-radius: 50%;

    flex-shrink: 0;
}
/* TOPBAR */
#topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--header-h);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    z-index: 99;
}
.topbar-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}
.topbar-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
}
.breadcrumb-s {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}
.breadcrumb-s span {
    color: var(--text-main);
    font-weight: 500;
}
.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 15px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition:
        border-color 0.15s,
        color 0.15s;
}
.topbar-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.topbar-btn .dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 7px;
    height: 7px;
    background: var(--danger);
    border-radius: 50%;
    border: 1.5px solid #fff;
}
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s;
}
.user-pill:hover {
    border-color: var(--primary);
}
.user-avatar {
    width: 26px;
    height: 26px;
    background: var(--primary);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}
.user-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
}
/* MAIN */
#main {
    margin-left: var(--sidebar-w);
    margin-top: var(--header-h);
    margin-bottom: var(--footer-h);
    padding: 18px 20px;
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
}
.page-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.page-hd h1 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.page-hd p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 2px 0 0;
}
/* STAT CARDS */
.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}
.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.stat-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    font-family: "Space Mono", monospace;
}
.stat-trend {
    font-size: 11px;
    font-weight: 600;
}
.stat-trend.up {
    color: var(--success);
}
.stat-trend.down {
    color: var(--danger);
}
/* PANEL */
.panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.panel-header {
    padding: 18px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    display: block;
}

.custom-filter-select {
    min-width: 190px;
    height: 42px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none !important;
}

.custom-filter-select:focus {
    border-color: #0ea5e9;
}

.filter-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    margin-bottom: 1px;
}

.export-btn {
    background: #16a34a;
}

.export-btn:hover {
    background: #15803d;
}

.search-btn {
    background: #0ea5e9;
}

.search-btn:hover {
    background: #0284c7;
}

.reset-btn {
    background: #06b6d4;
}

.reset-btn:hover {
    background: #0891b2;
}

.filter-btn i {
    font-size: 16px;
}
.panel-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
}
.panel-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 1px;
}
.panel-body {
    padding: 14px 16px;
}
/* DATATABLE */
#reportTable_wrapper .dataTables_filter input,
#reportTable_wrapper .dataTables_length select {
    border: 1px solid var(--border) !important;
    border-radius: 7px !important;
    padding: 4px 10px !important;
    font-size: 12.5px !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-main) !important;
    background: #fff !important;
}
#reportTable_wrapper .dataTables_filter input:focus,
#reportTable_wrapper .dataTables_length select:focus {
    border-color: var(--primary) !important;
}
#reportTable {
    font-size: 13px;
    border-collapse: collapse;
    width: 100% !important;
}
#reportTable thead th {
    background: #f8fafc !important;
    color: #0e9edc !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    border-bottom: 1px solid var(--border) !important;
    border-top: none !important;
    padding: 9px 12px !important;
    white-space: nowrap;
}
#reportTable tbody tr {
    border-bottom: 1px solid #f1f5f9 !important;
}
#reportTable tbody td {
    padding: 9px 12px !important;
    vertical-align: middle !important;
    border-top: none !important;
}
#reportTable tbody tr:hover td {
    background: #f8fafc !important;
}
.paginate_button {
    border-radius: 6px !important;
    border: 1px solid var(--border) !important;
    font-size: 12px !important;
    padding: 3px 9px !important;
    margin: 0 2px !important;
}
.paginate_button.current {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.paginate_button:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.dataTables_info {
    font-size: 12px !important;
    color: var(--text-muted) !important;
}
.badge-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    display: inline-block;
}
.badge-active {
    background: #dcfce7;
    color: #16a34a;
}
.badge-pending {
    background: #fef9c3;
    color: #a16207;
}
.badge-inactive {
    background: #fee2e2;
    color: #dc2626;
}
.badge-review {
    background: #e0f2fe;
    color: #0369a1;
}
.tbl-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.15s;
    text-decoration: none;
}
.tbl-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
/* FOOTER */
#footer {
    position: fixed;
    bottom: 0;
    left: var(--sidebar-w);
    right: 0;
    height: var(--footer-h);
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    z-index: 99;
}
.footer-text {
    font-size: 11.5px;
    color: var(--text-muted);
}
.footer-text strong {
    color: var(--text-main);
}
.footer-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
}
.footer-link {
    font-size: 11.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-link:hover {
    color: var(--primary);
}
/* BTNS */
.btn-primary-s {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
}
.btn-primary-s:hover {
    opacity: 0.88;
}
.btn-outline-s {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 13px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition:
        border-color 0.15s,
        color 0.15s;
}
.btn-outline-s:hover {
    border-color: var(--primary);
    color: var(--primary);
}
/* MINI STATS */
.mini-stat {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
}
.mini-stat .ms-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mini-stat .ms-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    font-family: "Space Mono", monospace;
}
.prog-wrap {
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}
.prog-bar {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
}
.error {
    color: red !important;
}

/* Remove default datatable arrows */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc:after {
    display: none !important;
}

/* Small caret icons */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    position: relative;
    padding-right: 18px !important;
}

table.dataTable thead th.sorting::after {
    content: "⌄";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.4;
}

table.dataTable thead th.sorting_asc::after {
    content: "⌃";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #000;
}

table.dataTable thead th.sorting_desc::after {
    content: "⌄";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #000;
}

/* div.dataTables_processing {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 220px !important;
    padding: 20px !important;

    border-radius: 12px !important;
 
    z-index: 9999 !important;
    border: 0 !important;
    text-align: center !important;
    font-size: 0 !important;
} */

/* div.dataTables_processing::before {
    content: "" !important;
    width: 45px !important;
    height: 45px !important;
    border: 4px solid #e5e7eb !important;
    border-top: 4px solid #0ea5e9 !important;
    border-radius: 50% !important;
    display: inline-block !important;
    animation: datatableLoader 0.8s linear infinite !important;
    margin-bottom: 12px !important;
} */

@keyframes datatableLoader {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.active > .page-link,
.page-link.active {
    z-index: 3;

    background-color: #0e9edc;
    border-color: #0e9edc;
}

#invoiceTable thead th {
    color: #0e9edc;
}

/* ── Period chip ── */
.period-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 0.5px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 6px 5px 13px;
    flex-shrink: 0;
}

.period-chip-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.chip-vals {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip-val {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.chip-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #cbd5e1;
}

.edit-period-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0.5px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
    flex-shrink: 0;
}

.edit-period-btn:hover {
    background: #e6f1fb;
    color: #185fa5;
    border-color: #85b7eb;
}

/* ── User pill ── */
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: 999px;
    border: 0.5px solid #e8edf2;
    background: #f8fafc;
    transition: background 0.15s;
}

.user-pill:hover {
    background: #fff;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e6f1fb;
    color: #185fa5;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}

.user-chevron {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 2px;
}

/* ── Period overlay + popup ── */
.period-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    z-index: 1055;
}

.period-overlay.open {
    display: block;
}

.period-popup {
    position: absolute;
    top: 6%;
    right: 6%;
    background: #fff;
    border: 0.5px solid #e2e8f0;
    border-radius: 14px;
    width: 290px;
    overflow: hidden;
}

.period-popup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px 11px;
    border-bottom: 0.5px solid #f1f5f9;
}

.period-popup-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.period-close-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.period-close-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.period-popup-body {
    padding: 15px;
}

.period-fields-row {
    display: flex;
    gap: 10px;
}

.pfield {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pfield label {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

.pfield select {
    height: 38px;
    width: 100%;
    border: 0.5px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    padding: 0 28px 0 10px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
}

.pfield select:focus {
    border-color: #378add;
    box-shadow: 0 0 0 2.5px rgba(55, 138, 221, 0.13);
}

.period-popup-footer {
    padding: 0 15px 15px;
    display: flex;
    gap: 8px;
}

.period-btn-cancel {
    flex: 1;
    height: 36px;
    border: 0.5px solid #e2e8f0;
    background: transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s;
}

.period-btn-cancel:hover {
    background: #f8fafc;
}

.period-btn-save {
    flex: 1;
    height: 36px;
    border: none;
    background: #378add;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.15s;
}

.period-btn-save:hover {
    background: #185fa5;
}

.summary-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #edf2f7;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: 0.2s ease;
    min-height: 100px;
}

.summary-card:hover {
    transform: translateY(-2px);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.summary-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.summary-value {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.summary-blue .summary-icon {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.summary-green .summary-icon {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.summary-orange .summary-icon {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.mini-summary-card {
    min-width: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.mini-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.mini-summary-icon.blue {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.mini-summary-icon.green {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.mini-summary-icon.orange {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.mini-summary-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
}

.mini-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.hcp-wrapper {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.hcp-header {
    padding: 18px 22px;
    border-bottom: 1px solid #edf2f7;
    background: #fbfcfe;
}

.hcp-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.hcp-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hcp-tab-btn {
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hcp-tab-btn:hover {
    border-color: #0e9edc;
    color: #0e9edc;
    transform: translateY(-1px);
}

.hcp-tab-btn.active {
    background: linear-gradient(135deg, #0e9edc, #758aa0);
    border-color: #0e9edc;
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
}

.hcp-tab-count {
    background: rgba(255, 255, 255, 0.18);
    padding: 3px 9px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.hcp-tab-btn:not(.active) .hcp-tab-count {
    background: #eff6ff;
    color: #0e9edc;
}

div.dataTables_processing {
    display: none !important;
}

select {
    cursor: pointer;
}