/* DIGIHRM Pro — A Concern of 10SoftBD. Built on Bootstrap 5. */
:root {
    --dh-primary: #0e7c86;
    --dh-primary-600: #0b646c;
    --dh-primary-50: #e6f5f6;
    --dh-accent: #f5a524;
    --dh-sidebar: #ffffff;
    --dh-sidebar-2: #ffffff;
    --dh-sidebar-text: #4b5675;
    --dh-sidebar-active: #0e7c86;
    --dh-bg: #f7f8fc;
    --dh-surface: #ffffff;
    --dh-border: #e8ebf3;
    --dh-text: #1c2434;
    --dh-muted: #6b7489;
    --dh-radius: .65rem;
    --dh-sidebar-w: 260px;
    --dh-topbar-h: 62px;
    --bs-primary: #0e7c86;
    --bs-primary-rgb: 14, 124, 134;
    --bs-link-color: #0e7c86;
    --bs-link-color-rgb: 14, 124, 134;
    --bs-link-hover-color: #0b646c;
    --bs-body-font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans Bengali", "Hind Siliguri", Roboto, Arial, sans-serif;
    --bs-body-color: #1c2434;
    --bs-border-color: #e3e7f0;
}
.btn-primary { --bs-btn-bg: var(--dh-primary); --bs-btn-border-color: var(--dh-primary); --bs-btn-hover-bg: var(--dh-primary-600); --bs-btn-hover-border-color: var(--dh-primary-600); --bs-btn-active-bg: var(--dh-primary-600); --bs-btn-disabled-bg: var(--dh-primary); --bs-btn-disabled-border-color: var(--dh-primary); }
.btn-outline-primary { --bs-btn-color: var(--dh-primary); --bs-btn-border-color: var(--dh-primary); --bs-btn-hover-bg: var(--dh-primary); --bs-btn-hover-border-color: var(--dh-primary); --bs-btn-active-bg: var(--dh-primary-600); }
.text-bg-primary { background-color: var(--dh-primary) !important; }
.pagination { --bs-pagination-active-bg: var(--dh-primary); --bs-pagination-active-border-color: var(--dh-primary); --bs-pagination-color: var(--dh-primary); }
.form-control:focus, .form-select:focus { border-color: #8aa2ea; box-shadow: 0 0 0 .2rem rgba(14, 124, 134, .15); }
.form-check-input:checked { background-color: var(--dh-primary); border-color: var(--dh-primary); }

html, body { height: 100%; }
body.app-body { background: var(--dh-bg); color: var(--dh-text); font-size: .925rem; }
.xsmall { font-size: .74rem; }
.min-w-0 { min-width: 0; }
.fw-medium { font-weight: 500; }

/* ---------------------------------------------------------------- shell */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar {
    width: var(--dh-sidebar-w); flex: 0 0 var(--dh-sidebar-w);
    background: linear-gradient(180deg, var(--dh-sidebar) 0%, var(--dh-sidebar-2) 100%);
    color: var(--dh-sidebar-text); position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--dh-border);
    display: flex; flex-direction: column; z-index: 1040; transition: margin-left .2s ease, transform .2s ease;
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem .75rem; }
.brand-link { display: flex; align-items: center; gap: .7rem; color: var(--dh-text); text-decoration: none; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    background: none; color: #fff; font-weight: 800; font-size: 1.2rem; padding: 0; overflow: hidden;
    
}
.brand-mark-lg { width: 56px; height: 56px; font-size: 1.7rem; border-radius: 14px; }
.brand-text strong { display: block; letter-spacing: .06em; font-size: 1.05rem; }
.brand-text small { display: block; font-size: .7rem; color: var(--dh-muted); letter-spacing: .04em; }
.sidebar-close { color: var(--dh-text); }
.sidebar-company { margin: 0 1rem .5rem; padding: .45rem .7rem; border-radius: .5rem; background: var(--dh-primary-50); font-size: .78rem; display: flex; gap: .5rem; align-items: center; color: var(--dh-primary); white-space: nowrap; overflow: hidden; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: .25rem .6rem 1rem; scrollbar-width: thin; scrollbar-color: rgba(15,27,61,.15) transparent; }
.sidebar-nav .nav-link {
    color: var(--dh-sidebar-text); display: flex; align-items: center; gap: .7rem; padding: .52rem .75rem; border-radius: .5rem;
    font-size: .88rem; font-weight: 500; transition: background .15s, color .15s;
}
.sidebar-nav .nav-link > .bi:first-child { font-size: 1.05rem; width: 1.2rem; text-align: center; opacity: .9; }
.sidebar-nav .nav-link:hover { color: var(--dh-primary); background: #f1f4fc; }
.sidebar-nav .nav-link.active { color: var(--dh-sidebar-active); background: var(--dh-primary-50); box-shadow: inset 3px 0 0 var(--dh-primary); font-weight: 600; }
.sidebar-nav .nav-group-toggle .caret { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.sidebar-nav .nav-group-toggle.collapsed .caret { transform: rotate(-90deg); }
.sidebar-nav .nav-group-toggle:not(.collapsed) { color: var(--dh-text); }
.sub-nav { margin: .15rem 0 .35rem 1.35rem; border-left: 1px solid var(--dh-border); padding-left: .35rem; }
.sub-nav .nav-link { font-size: .83rem; padding: .38rem .7rem; font-weight: 400; }
.sub-nav .nav-link.active { box-shadow: none; background: var(--dh-primary-50); }
.sidebar-footer { padding: .75rem 1.1rem; border-top: 1px solid var(--dh-border); display: flex; justify-content: space-between; font-size: .72rem; }
.sidebar-backdrop { display: none; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar {
    height: var(--dh-topbar-h); background: var(--dh-surface); border-bottom: 1px solid var(--dh-border);
    display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 1030;
}
.btn-icon { border: 0; background: transparent; color: var(--dh-muted); padding: .35rem .5rem; border-radius: .5rem; display: inline-flex; align-items: center; }
.btn-icon:hover { background: var(--dh-bg); color: var(--dh-text); }
.topbar-search { position: relative; align-items: center; width: min(440px, 40vw); }
.topbar-search .bi { position: absolute; left: .8rem; color: var(--dh-muted); }
.topbar-search .form-control { padding-left: 2.2rem; background: var(--dh-bg); border-color: transparent; border-radius: 2rem; }
.topbar-search .form-control:focus { background: #fff; }
.company-switch { max-width: 220px; }
.notif-dot { position: absolute; top: 2px; right: 0; background: #e11d48; color: #fff; font-size: .62rem; line-height: 1; padding: .2rem .32rem; border-radius: 1rem; font-weight: 700; }
.notif-menu { width: 340px; max-width: 92vw; padding: 0; max-height: 70vh; overflow-y: auto; }
.notif-item { white-space: normal; border-bottom: 1px solid var(--dh-border); padding: .6rem 1rem; }
.notif-item.unread { background: var(--dh-primary-50); }
.user-chip { display: flex; align-items: center; gap: .55rem; border: 0; padding: .25rem .4rem; border-radius: 2rem; }
.user-chip:hover { background: var(--dh-bg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--dh-primary), #14b8a6); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 34px; }
.avatar-lg { width: 88px; height: 88px; flex-basis: 88px; font-size: 2rem; }
.avatar-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

.app-content { padding: 1.25rem 1.5rem 2rem; flex: 1; }
.app-footer { padding: .9rem 1.5rem; font-size: .78rem; color: var(--dh-muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--dh-border); background: var(--dh-surface); }

body.sidebar-collapsed .app-sidebar { margin-left: calc(-1 * var(--dh-sidebar-w)); }

@media (max-width: 991.98px) {
    .app-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); box-shadow: 0 0 40px rgba(15, 27, 61, .15); }
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1035; }
    body.sidebar-collapsed .app-sidebar { margin-left: 0; }
    .app-content { padding: 1rem .85rem 1.5rem; }
    .app-topbar { padding: 0 .75rem; }
}

/* ---------------------------------------------------------------- page chrome */
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .75rem; margin-bottom: 1.1rem; }
.page-title { font-size: 1.4rem; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.breadcrumb { font-size: .78rem; margin-bottom: .2rem; --bs-breadcrumb-divider-color: #a0a8bb; }
.breadcrumb a { color: var(--dh-muted); text-decoration: none; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.card { border: 1px solid var(--dh-border); border-radius: var(--dh-radius); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.card-header { background: var(--dh-surface); border-bottom: 1px solid var(--dh-border); font-weight: 600; padding: .75rem 1rem; border-radius: var(--dh-radius) var(--dh-radius) 0 0 !important; }
.card-title { font-weight: 600; font-size: 1rem; }
.section-title { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dh-muted); font-weight: 700; margin: 1rem 0 .6rem; }
.section-title:first-child { margin-top: 0; }

/* stat cards */
.stat-card { position: relative; padding: 1rem 1.1rem; display: flex; flex-direction: row; gap: .9rem; align-items: center; height: 100%; }
.stat-card .stat-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; flex: 0 0 46px; }
.stat-card .stat-value { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { color: var(--dh-muted); font-size: .8rem; font-weight: 500; }
.stat-card a.stretched-link { text-decoration: none; }
.tone-blue { background: #e8efff; color: #0e7c86; }
.tone-green { background: #e3f7ef; color: #0d8a5f; }
.tone-red { background: #fde8ec; color: #c2173d; }
.tone-amber { background: #fff4de; color: #b86a00; }
.tone-teal { background: #dff6f3; color: #0e8c7e; }
.tone-purple { background: #f0e9ff; color: #6d3fd6; }
.tone-slate { background: #edf0f5; color: #475569; }
.tone-pink { background: #fde9f5; color: #b3237b; }

/* tables */
.table-card .card-body { padding: 0; }
.table { --bs-table-hover-bg: #f7f9fe; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .62rem .8rem; vertical-align: middle; }
.table thead th { background: #f7f8fc; color: #4b5470; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; border-bottom-width: 1px; white-space: nowrap; }
.table-sm > :not(caption) > * > * { padding: .4rem .6rem; }
.table .actions { white-space: nowrap; text-align: right; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sort-link { color: inherit; text-decoration: none; }
.table-responsive { border-radius: 0 0 var(--dh-radius) var(--dh-radius); }
.pagination-bar { padding: .75rem 1rem; border-top: 1px solid var(--dh-border); }
.badge-status { font-weight: 600; font-size: .72rem; letter-spacing: .01em; }
.emp-cell { display: flex; align-items: center; gap: .6rem; min-width: 180px; }
.emp-cell .meta { line-height: 1.15; }
.emp-cell .meta small { color: var(--dh-muted); display: block; font-size: .75rem; }

/* filters */
.filter-bar { padding: .8rem 1rem; border-bottom: 1px solid var(--dh-border); background: #fbfcfe; border-radius: var(--dh-radius) var(--dh-radius) 0 0; }
.filter-bar .form-control, .filter-bar .form-select { font-size: .85rem; }
.filter-bar .form-label { font-size: .72rem; color: var(--dh-muted); margin-bottom: .15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* forms */
.form-label { font-weight: 500; font-size: .85rem; margin-bottom: .3rem; }
.form-card .card-body { padding: 1.25rem; }
.form-actions { padding-top: .5rem; }
fieldset.form-section { border: 1px solid var(--dh-border); border-radius: var(--dh-radius); padding: 1rem 1rem .25rem; margin-bottom: 1rem; background: #fff; }
fieldset.form-section > legend { float: none; width: auto; padding: 0 .4rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--dh-primary); margin-bottom: 0; }

/* tabs for 360 profile */
.nav-tabs-scroll { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.nav-tabs-scroll .nav-link { white-space: nowrap; font-size: .85rem; }
.nav-tabs .nav-link.active { font-weight: 600; color: var(--dh-primary); }

.profile-header { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.profile-photo { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
dl.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: .35rem .75rem; margin: 0; font-size: .88rem; }
dl.kv dt { color: var(--dh-muted); font-weight: 500; }
dl.kv dd { margin: 0; word-break: break-word; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { display: flex; gap: .65rem; padding: 0 0 .8rem; position: relative; }
.timeline li > .bi { font-size: 1rem; margin-top: .05rem; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: .48rem; top: 1.35rem; bottom: .1rem; border-left: 1px dashed #cbd2e1; }

.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--dh-muted); }
.empty-state > .bi { font-size: 2.4rem; display: block; margin-bottom: .5rem; color: #b6bfd4; }

.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 220px; }
.legend-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; }

/* attendance calendar grid */
.att-grid { font-size: .75rem; }
.att-grid th, .att-grid td { text-align: center; padding: .3rem .25rem !important; min-width: 30px; }
.att-grid td:first-child, .att-grid th:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 190px; }
/* Attendance codes: solid, easy to read at a glance (monthly grid, legends, badges). */
.att-P   { background: #16a34a; color: #fff; font-weight: 700; }
.att-WFH { background: #0d9488; color: #fff; font-weight: 700; }
.att-A   { background: #dc2626; color: #fff; font-weight: 700; }
.att-L   { background: #f59e0b; color: #1f1300; font-weight: 700; }
.att-EE  { background: #fb923c; color: #1f0d00; font-weight: 700; }
.att-HD  { background: #facc15; color: #2b2200; font-weight: 700; }
.att-LV  { background: #2563eb; color: #fff; font-weight: 700; }
.att-OD  { background: #0891b2; color: #fff; font-weight: 700; }
.att-M   { background: #7c3aed; color: #fff; font-weight: 700; }
.att-H   { background: #94a3b8; color: #fff; font-weight: 600; }
.att-W   { background: #e2e8f0; color: #475569; font-weight: 600; }
.att-cell { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* calendar (leave/roster) */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--dh-border); border: 1px solid var(--dh-border); border-radius: var(--dh-radius); overflow: hidden; }
.cal-grid .cal-head { background: #f7f8fc; font-size: .72rem; font-weight: 700; text-transform: uppercase; padding: .45rem; text-align: center; color: #4b5470; }
.cal-grid .cal-day { background: #fff; min-height: 96px; padding: .35rem .4rem; font-size: .75rem; }
.cal-grid .cal-day.muted { background: #fafbfd; color: #b0b7c7; }
.cal-grid .cal-day.today { box-shadow: inset 0 0 0 2px var(--dh-primary); }
.cal-grid .cal-num { font-weight: 700; font-size: .8rem; }
.cal-pill { display: block; border-radius: .3rem; padding: .05rem .35rem; margin-top: .2rem; font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* auth */
body.auth-body { background: var(--dh-bg); min-height: 100vh; }
.auth-wrap { display: flex; min-height: 100vh; }
.auth-hero { flex: 1 1 50%; background: linear-gradient(160deg, #e6f5f6 0%, #ffffff 70%); border-right: 1px solid var(--dh-border); color: var(--dh-text); padding: 3.5rem; flex-direction: column; justify-content: space-between; }
.auth-points li { display: flex; gap: .7rem; align-items: center; margin-bottom: .8rem; font-size: 1rem; opacity: .92; }
.auth-points .bi { background: var(--dh-primary-50); color: var(--dh-primary); width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.auth-panel { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 1rem; padding: 2rem; box-shadow: 0 10px 40px rgba(15, 27, 61, .08); border: 1px solid var(--dh-border); }
.auth-card.wide { max-width: 720px; }
.error-page { max-width: 520px; margin: 10vh auto; text-align: center; padding: 1rem; }
.error-code { font-size: 5rem; font-weight: 800; background: linear-gradient(135deg, var(--dh-primary), #14b8a6); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* installer steps */
.steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.steps .step { font-size: .72rem; padding: .25rem .6rem; border-radius: 1rem; background: #eef1f7; color: var(--dh-muted); font-weight: 600; }
.steps .step.done { background: #e3f7ef; color: #0d8a5f; }
.steps .step.current { background: var(--dh-primary); color: #fff; }

/* misc */
.payslip-box { border: 1px solid var(--dh-border); border-radius: var(--dh-radius); }
.money { font-variant-numeric: tabular-nums; }
.text-pre { white-space: pre-line; }
.list-kv { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--dh-border); font-size: .88rem; }
.list-kv:last-child { border-bottom: 0; }
.perm-matrix th, .perm-matrix td { text-align: center; }
.perm-matrix td:first-child, .perm-matrix th:first-child { text-align: left; }
.js-employee-search-results { position: absolute; z-index: 1060; width: 100%; max-height: 280px; overflow-y: auto; }
.emp-picker { position: relative; }
@media (max-width: 575.98px) {
    .page-title { font-size: 1.2rem; }
    .stat-card .stat-value { font-size: 1.2rem; }
    dl.kv { grid-template-columns: 1fr; }
    .auth-card { padding: 1.4rem; }
}
@media print {
    .app-sidebar, .app-topbar, .app-footer, .page-actions, .no-print, .filter-bar, .pagination-bar { display: none !important; }
    .app-content { padding: 0; }
    body.app-body { background: #fff; }
}
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table td, .table th { white-space: nowrap; }
.table td.wrap, .table th.wrap { white-space: normal; min-width: 220px; }

/* 10SoftBD text logo (footer / auth) */
.vendor-logo { display: inline-flex; align-items: center; gap: .45rem; line-height: 1; white-space: nowrap; }
.vendor-logo-concern { font-size: .72rem; color: var(--dh-muted); margin-right: .15rem; }
.vendor-logo-badge { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: .5rem; background: linear-gradient(135deg, #0f2a6d, #1e3a8a); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: -.02em; }
.vendor-logo-text { display: inline-flex; flex-direction: column; gap: .12rem; }
.vendor-logo-word { font-weight: 800; font-size: 1rem; color: #0f2a6d; letter-spacing: -.01em; }
.vendor-logo-bd { color: #ff6b1a; }
.vendor-logo-sub { font-size: .5rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #64708f; }
.vendor-logo-dark .vendor-logo-concern, .vendor-logo-dark .vendor-logo-sub { color: rgba(255, 255, 255, .7); }
.vendor-logo-dark .vendor-logo-word { color: #fff; }
.vendor-logo-dark .vendor-logo-badge { background: #fff; color: #0f2a6d; }
:root[data-theme="dark"] .vendor-logo-word { color: #e6ebf8; }
:root[data-theme="dark"] .vendor-logo-sub { color: #9aa6c4; }
@media print { .vendor-logo-concern { color: #555; } }

/* ---------------------------------------------------------------- white HRM theme */
body.app-body, body.auth-body { background: var(--dh-bg); }
.app-topbar { box-shadow: 0 1px 0 var(--dh-border); }
.card { border-color: var(--dh-border); box-shadow: 0 1px 3px rgba(16, 24, 40, .05), 0 1px 2px rgba(16, 24, 40, .03); border-radius: .85rem; }
.card-header { border-radius: .85rem .85rem 0 0 !important; }
.table thead th { background: #fafbfe; color: #5a6483; }
.filter-bar { background: #fff; }
.btn { border-radius: .55rem; font-weight: 500; }
.btn-primary { box-shadow: 0 1px 2px rgba(14, 124, 134, .25); }
.form-control, .form-select { border-radius: .55rem; border-color: #dfe3ee; }
.badge { font-weight: 600; }
.stat-card { transition: box-shadow .15s, transform .15s; }
.stat-card:hover { box-shadow: 0 6px 18px rgba(14, 124, 134, .09); transform: translateY(-1px); }
.stat-card .stat-icon { border-radius: 14px; }
.auth-card { border-radius: 1.1rem; box-shadow: 0 12px 40px rgba(14, 124, 134, .08); }
.brand-mark { box-shadow: 0 4px 14px rgba(14, 124, 134, .25); }

/* leaderboard */
.lb-card { border-top: 4px solid #cbd2e1; }
.lb-card.lb-gold { border-top-color: #f5b301; background: linear-gradient(180deg, #fffaf0, #fff 60%); }
.lb-card.lb-silver { border-top-color: #94a3b8; }
.lb-card.lb-bronze { border-top-color: #c2763a; }
.lb-medal { font-size: 2rem; line-height: 1; }
.lb-gold .lb-medal { color: #f5b301; } .lb-silver .lb-medal { color: #94a3b8; } .lb-bronze .lb-medal { color: #c2763a; }
.lb-rank { font-weight: 800; color: var(--dh-muted); }
.lb-score { font-size: 1.9rem; font-weight: 800; color: var(--dh-primary); margin: .35rem 0; }
.lb-score small { font-size: .9rem; font-weight: 600; }
.lb-bar { display: inline-block; vertical-align: middle; width: 70px; height: 6px; border-radius: 3px; background: #edf0f7; margin-right: .5rem; overflow: hidden; }
.lb-bar span { display: block; height: 100%; background: linear-gradient(90deg, #0e7c86, #0e9f8e); }

/* ---------------------------------------------------------------- HRM design v2 (clean, airy, easy) */
:root { --dh-radius: 1rem; --dh-bg: #f8f9fc; --dh-sidebar-w: 248px; --dh-topbar-h: 64px; }
body.app-body { font-size: .94rem; line-height: 1.5; }
.app-sidebar { border-right: 0; box-shadow: 1px 0 0 var(--dh-border); }
.sidebar-nav { padding: .5rem .85rem 1rem; }
.sidebar-nav .nav-link { border-radius: .75rem; padding: .6rem .85rem; margin-bottom: 2px; font-weight: 500; }
.sidebar-nav .nav-link > .bi:first-child { font-size: 1.15rem; opacity: .75; }
.sidebar-nav .nav-link.active { box-shadow: none; background: var(--dh-primary); color: #fff; }
.sidebar-nav .nav-link.active > .bi:first-child { opacity: 1; }
.sidebar-nav .nav-group-toggle:not(.collapsed) { background: #f4f5fb; }
.sub-nav { border-left: 0; margin-left: 1.1rem; }
.sub-nav .nav-link { font-size: .84rem; color: #5b6482; }
.sub-nav .nav-link.active { background: var(--dh-primary-50); color: var(--dh-primary); font-weight: 600; }
.brand-mark { background: none; padding: 0; box-shadow: none; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.app-topbar { border-bottom: 0; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--dh-border); }
.topbar-search .form-control { background: #f3f4fa; height: 40px; }
.app-content { padding: 1.5rem 1.75rem 2.5rem; max-width: 1600px; }
.page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.card { border: 1px solid #eceef6; border-radius: 1rem; box-shadow: 0 2px 8px rgba(30, 41, 90, .04); }
.card-header { background: transparent; border-bottom: 1px solid #f0f1f8; padding: .95rem 1.15rem; font-weight: 650; }
.card-body { padding: 1.15rem; }
.table > :not(caption) > * > * { padding: .8rem 1rem; border-bottom-color: #f0f1f8; }
.table thead th { background: #fafbff; border-bottom: 1px solid #eceef6; font-size: .72rem; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8f9ff; }
.filter-bar { padding: 1rem 1.15rem; }
.btn { padding: .45rem 1rem; border-radius: .7rem; }
.btn-sm { padding: .3rem .75rem; border-radius: .6rem; }
.btn-primary { background: var(--dh-primary); box-shadow: 0 4px 12px rgba(14, 124, 134, .25); }
.btn-light, .btn-outline-secondary { border-color: #e4e7f2; }
.form-control, .form-select { padding: .5rem .8rem; border-radius: .7rem; }
.form-control-sm, .form-select-sm { padding: .32rem .65rem; border-radius: .6rem; }
.badge { border-radius: 2rem; padding: .38em .7em; }
.stat-card { padding: 1.15rem 1.25rem; }
.stat-card .stat-icon { width: 50px; height: 50px; border-radius: 16px; }
.stat-card .stat-value { font-size: 1.6rem; letter-spacing: -.02em; }
.tone-blue { background: #e6f5f6; color: #0e7c86; }
.nav-tabs { border-bottom-color: #eceef6; }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: #5b6482; padding: .6rem 1rem; }
.nav-tabs .nav-link.active { border-bottom-color: var(--dh-primary); background: transparent; color: var(--dh-primary); }
.nav-pills .nav-link { border-radius: 2rem; }
.nav-pills .nav-link.active { background: var(--dh-primary); }
.dropdown-menu { border: 1px solid #eceef6; border-radius: .9rem; box-shadow: 0 12px 32px rgba(30, 41, 90, .12); padding: .4rem; }
.dropdown-item { border-radius: .55rem; }
.empty-state { padding: 3rem 1rem; }
.auth-card { border-radius: 1.4rem; padding: 2.4rem; }
.auth-hero { background: linear-gradient(160deg, #e6f5f6 0%, #ffffff 75%); }
.lb-bar span { background: linear-gradient(90deg, #0e7c86, #f5a524); }
.lb-score { color: var(--dh-primary); }
@media (max-width: 991.98px) { .app-content { padding: 1rem .9rem 2rem; } }
.stat-card .stat-value { white-space: nowrap; }
.stat-card .stat-label { line-height: 1.25; }
.pagination-bar .form-select, .form-select[name="per_page"] { min-width: 108px; padding-right: 2rem; }
.table td { font-size: .9rem; }
.table td .xsmall, .table td small { font-size: .74rem; }
@media (max-width: 575.98px) {
    .stat-card { padding: .85rem; gap: .6rem; }
    .stat-card .stat-icon { width: 40px; height: 40px; flex-basis: 40px; font-size: 1.1rem; border-radius: 12px; }
    .stat-card .stat-value { font-size: 1.3rem; }
    .stat-card .stat-label { font-size: .74rem; overflow-wrap: normal; word-break: normal; hyphens: auto; }
}
.form-select-sm { padding-right: 2rem; }

/* ================================================================ v5: hand-crafted, restrained enterprise look
   One accent colour, flat surfaces, thin borders, no gradients/glass/glow, tighter type scale. */
:root { --dh-radius: .5rem; --dh-bg: #f6f7f8; --dh-border: #e3e6ea; --dh-text: #1f2933; --dh-muted: #68737f; --dh-sidebar-w: 236px; --dh-topbar-h: 56px; --bs-body-font-size: .875rem; }
body.app-body { font-size: .875rem; color: var(--dh-text); background: var(--dh-bg); -webkit-font-smoothing: antialiased; }
.app-content { padding: 1.25rem 1.5rem 2rem; }

/* sidebar: quiet list, accent bar for the current page */
.app-sidebar { background: #fff; box-shadow: none; border-right: 1px solid var(--dh-border); }
.sidebar-brand { padding: .9rem 1rem .6rem; }
.brand-text strong { font-size: .98rem; letter-spacing: 0; font-weight: 700; }
.brand-text small { font-size: .68rem; letter-spacing: 0; }
.sidebar-company { border-radius: .4rem; background: #f3f5f6; color: var(--dh-text); font-weight: 500; }
.sidebar-nav { padding: .35rem .6rem 1rem; }
.sidebar-nav .nav-link { border-radius: .4rem; padding: .45rem .65rem; font-size: .85rem; font-weight: 500; color: #3d4852; margin-bottom: 1px; }
.sidebar-nav .nav-link > .bi:first-child { font-size: 1rem; opacity: .7; }
.sidebar-nav .nav-link:hover { background: #f3f5f6; color: var(--dh-text); }
.sidebar-nav .nav-link.active { background: #e8f3f4; color: #0b646c; box-shadow: inset 3px 0 0 #0e7c86; font-weight: 600; }
.sidebar-nav .nav-group-toggle:not(.collapsed) { background: transparent; }
.sub-nav { margin: 0 0 .25rem 1.55rem; border-left: 1px solid var(--dh-border); padding-left: 0; }
.sub-nav .nav-link { border-radius: 0 .4rem .4rem 0; font-size: .82rem; font-weight: 400; color: #55616c; padding: .32rem .75rem; }
.sub-nav .nav-link.active { background: #e8f3f4; box-shadow: inset 2px 0 0 #0e7c86; color: #0b646c; font-weight: 600; }

/* top bar */
.app-topbar { background: #fff; backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--dh-border); }
.topbar-search .form-control { background: #f3f5f6; border: 1px solid transparent; border-radius: .4rem; height: 36px; font-size: .85rem; }
.topbar-search .form-control:focus { background: #fff; border-color: #0e7c86; }
.avatar, .avatar-img { background: #0e7c86; }

/* page header */
.page-title { font-size: 1.25rem; font-weight: 600; letter-spacing: 0; }
.breadcrumb { font-size: .75rem; }
.page-header { margin-bottom: 1rem; }

/* surfaces */
.card { border: 1px solid var(--dh-border); border-radius: .5rem; box-shadow: none; }
.card-header { background: #fff; border-bottom: 1px solid var(--dh-border); padding: .7rem 1rem; font-weight: 600; font-size: .875rem; border-radius: .5rem .5rem 0 0 !important; }
.card-body { padding: 1rem; }
.stat-card { padding: .9rem 1rem; box-shadow: none; transform: none !important; }
.stat-card:hover { box-shadow: none; border-color: #c9d1d8; }
.stat-card .stat-icon, .tone-blue, .tone-green, .tone-teal, .tone-purple, .tone-slate, .tone-pink, .tone-amber { background: #eef3f4; color: #0e7c86; }
.tone-red { background: #fbeceb; color: #b42318; }
.stat-card .stat-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: .5rem; font-size: 1.15rem; }
.stat-card .stat-value { font-size: 1.35rem; font-weight: 700; letter-spacing: 0; }
.stat-card .stat-label { font-size: .78rem; color: var(--dh-muted); }

/* tables: plain, readable, sentence-case headers */
.table > :not(caption) > * > * { padding: .6rem .85rem; border-bottom-color: #edf0f2; }
.table thead th { background: #f6f7f8; color: #55616c; font-size: .74rem; font-weight: 600; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--dh-border); }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f6fafa; }
.table td { font-size: .85rem; }
.filter-bar { background: #fff; padding: .75rem 1rem; }
.filter-bar .form-label { font-size: .7rem; text-transform: none; letter-spacing: 0; font-weight: 600; color: #55616c; }
.sort-link { color: inherit; }

/* controls */
.btn { border-radius: .4rem; padding: .38rem .85rem; font-weight: 500; box-shadow: none !important; }
.btn-sm { padding: .25rem .6rem; border-radius: .35rem; font-size: .8rem; }
.btn-primary { background: #0e7c86; border-color: #0e7c86; }
.btn-primary:hover { background: #0b646c; border-color: #0b646c; }
.btn-light, .btn-outline-secondary { background: #fff; border-color: #d5dae0; color: #3d4852; }
.btn-light:hover, .btn-outline-secondary:hover { background: #f3f5f6; color: var(--dh-text); border-color: #c4cbd3; }
.form-control, .form-select { border-radius: .4rem; border-color: #d5dae0; padding: .4rem .65rem; font-size: .875rem; }
.form-control-sm, .form-select-sm { padding: .26rem .55rem; padding-right: 2rem; font-size: .82rem; border-radius: .35rem; }
.form-control:focus, .form-select:focus { border-color: #0e7c86; box-shadow: 0 0 0 .15rem rgba(14, 124, 134, .15); }
.form-label { font-size: .8rem; font-weight: 600; color: #3d4852; }
.badge { border-radius: .3rem; font-weight: 600; font-size: .7rem; padding: .3em .55em; }
.badge.rounded-pill { border-radius: 2rem; }
.nav-tabs .nav-link { color: #55616c; font-size: .85rem; padding: .5rem .9rem; }
.nav-tabs .nav-link.active { color: #0b646c; border-bottom-color: #0e7c86; font-weight: 600; }
.nav-pills .nav-link { border-radius: .4rem; font-size: .82rem; }
.nav-pills .nav-link.active { background: #0e7c86; }
.dropdown-menu { border-radius: .5rem; box-shadow: 0 6px 18px rgba(16, 24, 32, .1); padding: .3rem; }
.dropdown-item { border-radius: .3rem; font-size: .85rem; }
.empty-state > .bi { color: #aab4bd; }

/* leaderboard: no gradients, plain podium cards */
.lb-card.lb-gold { background: #fff; }
.lb-bar span { background: #0e7c86; }
.lb-score { font-size: 1.6rem; }

/* login: flat */
.auth-hero { background: #0e7c86; color: #fff; border-right: 0; }
.auth-hero .brand-mark { background: none; }
.auth-points .bi { background: rgba(255, 255, 255, .14); color: #fff; border-radius: .4rem; }
.auth-hero .vendor-logo-concern { color: rgba(255, 255, 255, .8); }
.auth-card { border-radius: .6rem; box-shadow: 0 1px 3px rgba(16, 24, 32, .08); padding: 2rem; }
.error-code { background: none; color: #0e7c86; -webkit-background-clip: initial; }
.auth-hero .brand-mark img { border-radius: 15px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }

/* ================================================================ v6: "Paper & Teal" — warm canvas, serif display numerals, amber tick marks */
:root {
    --dh-bg: #f7f4ee; --dh-surface: #fffdf9; --dh-border: #e6e0d4; --dh-text: #1d2b2c; --dh-muted: #77716a;
    --dh-ink: #0c4a50; --dh-amber: #e8a317;
    --dh-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif Bengali", serif;
}
body.app-body, body.auth-body { background: var(--dh-bg); color: var(--dh-text); }
.app-topbar, .app-footer { background: var(--dh-surface); border-color: var(--dh-border); }
.card, .filter-bar, .auth-card { background: var(--dh-surface); border-color: var(--dh-border); }
.card-header { background: transparent; border-bottom: 1px dashed var(--dh-border); }
.card-header:not(.d-flex)::before, .card-header.d-flex > :first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--dh-amber); margin-right: .55rem; vertical-align: middle; position: relative; top: -1px; }
.card-header .bi { display: none; }

/* headings and big numerals use the serif */
.page-title, .brand-text strong, .auth-card h1, .auth-card h2, .auth-hero h1 { font-family: var(--dh-display); letter-spacing: -.01em; }
.page-title { font-size: 1.65rem; font-weight: 600; color: var(--dh-ink); }
.stat-card .stat-value, .lb-score, .error-code { font-family: var(--dh-display); font-variant-numeric: lining-nums; color: var(--dh-ink); }
.stat-card .stat-value { font-size: 1.7rem; font-weight: 600; }
.section-title, .app-content h5.section { font-family: var(--dh-display); }

/* sidebar: paper rail, ink-teal active item with amber marker */
.app-sidebar { background: #fbf8f2; border-right: 1px solid var(--dh-border); }
.sidebar-company { background: #efe9dc; color: var(--dh-ink); }
.sidebar-nav .nav-link { color: #3b4a4b; }
.sidebar-nav .nav-link:hover { background: #f1ebdf; }
.sidebar-nav .nav-link.active { background: var(--dh-ink); color: #fff; box-shadow: none; position: relative; }
.sidebar-nav .nav-link.active::after { content: ""; position: absolute; right: .7rem; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--dh-amber); }
.sidebar-nav .nav-link.active > .bi:first-child { opacity: 1; }
.sub-nav { border-left: 1px dashed #d6cfbf; }
.sub-nav .nav-link.active { background: transparent; color: var(--dh-ink); font-weight: 700; box-shadow: none; }
.sub-nav .nav-link.active::before { content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--dh-amber); }
.sub-nav .nav-link.active::after { display: none; }
.sub-nav .nav-link { position: relative; }

/* stat cards: tick-mark top rule, quiet icon */
.stat-card { position: relative; background: var(--dh-surface); }
.stat-card::before { content: ""; position: absolute; left: 1rem; top: 0; width: 28px; height: 3px; background: var(--dh-amber); border-radius: 0 0 3px 3px; }
.stat-card .stat-icon, .tone-blue, .tone-green, .tone-teal, .tone-purple, .tone-slate, .tone-pink, .tone-amber { background: #efe9dc; color: var(--dh-ink); }
.tone-red { background: #f6e1dc; color: #a8321f; }

/* tables */
.table { --bs-table-bg: transparent; }
.table thead th { background: #f3eee3; color: #6a645b; border-bottom: 1px solid var(--dh-border); }
.table > :not(caption) > * > * { border-bottom-color: #eee8dc; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8f4ea; }
.table a { color: var(--dh-ink); font-weight: 500; }

/* controls */
.btn-primary { background: var(--dh-ink); border-color: var(--dh-ink); color: #fff; }
.btn-primary:hover { background: #083a3f; border-color: #083a3f; }
.btn-light, .btn-outline-secondary { background: var(--dh-surface); border-color: #d9d2c3; }
.form-control, .form-select { background-color: #fff; border-color: #d9d2c3; }
.form-control:focus, .form-select:focus { border-color: var(--dh-ink); box-shadow: 0 0 0 .15rem rgba(12, 74, 80, .15); }
.nav-tabs { border-bottom-color: var(--dh-border); }
.nav-tabs .nav-link.active { color: var(--dh-ink); border-bottom-color: var(--dh-amber); border-bottom-width: 3px; background: transparent; }
.nav-pills .nav-link.active { background: var(--dh-ink); }
.topbar-search .form-control { background: #f1ebdf; }
.avatar, .avatar-img { background: var(--dh-ink); }
.badge.text-bg-success, .badge.bg-success { background-color: #1f7a5a !important; }
.lb-bar span { background: var(--dh-ink); }
.lb-card.lb-gold { border-top-color: var(--dh-amber); background: var(--dh-surface); }

/* login */
.auth-hero { background: var(--dh-ink); }
.auth-hero h1 { font-weight: 600; }
.auth-hero::after { content: ""; position: absolute; }
.auth-points .bi { background: rgba(232, 163, 23, .18); color: #f4c04e; }

/* ================================================================ v7: clean SaaS look (white canvas, navy ink, 16px radius, Bangla-first type)
   Overrides v5/v6. Accent stays DIGIHRM teal. */
:root {
    --dh-bg: #f8fafc; --dh-surface: #ffffff; --dh-border: #e2e8f0; --dh-text: #0f172b; --dh-muted: #62748e;
    --dh-ink: #0e7c86; --dh-amber: #0e7c86; --dh-radius: 1rem;
    --bs-body-font-family: "Anek Bangla", "Hind Siliguri", "Noto Sans Bengali", "Inter", "Segoe UI", system-ui, sans-serif;
}
body.app-body, body.auth-body { background: var(--dh-bg); color: var(--dh-text); font-family: var(--bs-body-font-family); font-size: .95rem; }
.page-title, .brand-text strong, .auth-card h1, .auth-card h2, .auth-hero h1, .stat-card .stat-value, .lb-score, .error-code { font-family: var(--bs-body-font-family); color: var(--dh-text); letter-spacing: -.01em; }
.page-title { font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.app-topbar, .app-footer, .app-sidebar { background: #fff; border-color: var(--dh-border); }
.card-header::before, .stat-card::before, .sidebar-nav .nav-link.active::after, .sub-nav .nav-link.active::before { display: none !important; content: none; }
.card, .filter-bar, .auth-card { background: #fff; border-color: var(--dh-border); border-radius: 1rem; box-shadow: 0 1px 2px rgba(15, 23, 43, .04); }
.card-header { border-bottom: 1px solid #eef2f6; border-radius: 1rem 1rem 0 0 !important; font-weight: 600; }
.card-header .bi { display: inline; }
.filter-bar { border-radius: 1rem 1rem 0 0; }

/* sidebar: soft rounded items */
.sidebar-company { background: #f1f5f9; color: var(--dh-text); border-radius: .75rem; }
.sidebar-nav .nav-link { border-radius: .75rem; color: #45556c; font-weight: 500; padding: .55rem .8rem; }
.sidebar-nav .nav-link:hover { background: #f1f5f9; color: var(--dh-text); }
.sidebar-nav .nav-link.active { background: #e6f5f6; color: #0b646c; box-shadow: none; font-weight: 600; }
.sub-nav { border-left: 2px solid #eef2f6; }
.sub-nav .nav-link { border-radius: .6rem; color: #62748e; }
.sub-nav .nav-link.active { background: #e6f5f6; color: #0b646c; font-weight: 600; }

/* KPI cards */
.stat-card { padding: 1.1rem 1.2rem; border-radius: 1rem; }
.stat-card .stat-icon, .tone-blue, .tone-green, .tone-teal, .tone-purple, .tone-slate, .tone-pink, .tone-amber { background: #e6f5f6; color: #0e7c86; }
.stat-card .stat-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: .9rem; }
.tone-red { background: #fee9ea; color: #c4121f; }
.stat-card .stat-label { color: var(--dh-muted); font-size: .82rem; }

/* tables */
.table thead th { background: #f8fafc; color: #62748e; border-bottom: 1px solid var(--dh-border); font-weight: 600; }
.table > :not(caption) > * > * { border-bottom-color: #eef2f6; padding: .75rem 1rem; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8fafc; }
.table a { color: var(--dh-ink); font-weight: 600; }

/* controls: large radius like modern SaaS */
.btn { border-radius: .85rem; padding: .5rem 1.1rem; font-weight: 600; }
.btn-sm { border-radius: .7rem; padding: .32rem .8rem; }
.btn-primary { background: var(--dh-ink); border-color: var(--dh-ink); box-shadow: 0 2px 8px rgba(14, 124, 134, .22) !important; }
.btn-primary:hover { background: #0b646c; border-color: #0b646c; }
.form-control, .form-select { border-radius: .85rem; border-color: var(--dh-border); background-color: #fff; padding: .55rem .85rem; }
.form-control-sm, .form-select-sm { border-radius: .7rem; padding: .3rem .65rem; padding-right: 2rem; }
.form-control:focus, .form-select:focus { border-color: var(--dh-ink); box-shadow: 0 0 0 .2rem rgba(14, 124, 134, .14); }
.topbar-search .form-control { background: #f1f5f9; border-radius: 2rem; }
.badge { border-radius: 2rem; padding: .35em .75em; }
.nav-tabs .nav-link.active { color: #0b646c; border-bottom: 3px solid var(--dh-ink); }
.nav-pills .nav-link { border-radius: 2rem; }
.nav-pills .nav-link.active { background: var(--dh-ink); }
.avatar, .avatar-img { background: var(--dh-ink); }
.lb-card.lb-gold { border-top-color: #f5b301; }
.lb-bar span { background: var(--dh-ink); }

/* login: white split with navy hero */
.auth-hero { background: #0f172b; }
.auth-points .bi { background: rgba(255, 255, 255, .1); color: #7fd6dc; }
.auth-card { border-radius: 1.25rem; box-shadow: 0 10px 30px rgba(15, 23, 43, .08); }

/* ================================================================ v7: black text — no grey body copy */
:root {
    --dh-text: #000; --dh-muted: #111827; --dh-sidebar-text: #000;
    --bs-body-color: #000; --bs-body-color-rgb: 0, 0, 0; --bs-secondary-color: #111827; --bs-secondary-color-rgb: 17, 24, 39;
    --bs-emphasis-color: #000; --bs-heading-color: #000; --bs-tertiary-color: #1f2937;
}
body, body.app-body, body.auth-body { color: #000; }
.text-muted, .text-body-secondary, .text-secondary, .text-black-50, .form-text, .help-block, .xsmall.text-muted, small.text-muted { color: #111827 !important; }
.breadcrumb a, .breadcrumb-item.active, .breadcrumb-item + .breadcrumb-item::before { color: #111827; }
.sidebar-nav .nav-link, .sidebar-nav .nav-link:hover, .sub-nav .nav-link, .sidebar-nav .nav-group-toggle:not(.collapsed) { color: #000; }
.sidebar-nav .nav-link.active, .sub-nav .nav-link.active { color: #063c42; }
.brand-text small, .sidebar-footer, .sidebar-footer small, .sidebar-company, .app-footer, .app-footer a { color: #111827; }
.table, .table td, .table th, .table thead th, .table > :not(caption) > * > * { color: #000; }
.form-label, .filter-bar .form-label, label, legend, .card-header, .card-title, .page-title, .section-title, .stat-card .stat-label, .stat-card .stat-value { color: #000; }
.form-control, .form-select, .input-group-text { color: #000; }
.form-control::placeholder { color: #4b5563; opacity: 1; }
.nav-tabs .nav-link, .nav-pills .nav-link:not(.active), .dropdown-item, .btn-light, .btn-outline-secondary, .btn-link.text-decoration-none { color: #000; }
.btn-light:hover, .btn-outline-secondary:hover { color: #000; }
.topbar-search .bi, .btn-icon, .user-chip, .notif-item .text-muted { color: #111827; }
.empty-state, .empty-state p, .empty-state .text-muted { color: #111827 !important; }
.auth-card, .auth-card label, .auth-card .text-muted { color: #000; }
.badge.text-bg-light, .badge.text-bg-secondary { color: #000; }

/* auth hero title must stay readable on the dark panel */
.auth-hero h1, .auth-hero .display-6 { color: #fff !important; }

/* sidebar find box, tidy filter bars and stat cards on small screens */
.sidebar-search { position: relative; padding: .35rem .85rem .15rem; }
.sidebar-search .bi { position: absolute; left: 1.5rem; top: 50%; transform: translateY(-35%); color: #94a3b8; font-size: .85rem; pointer-events: none; }
.sidebar-search input { width: 100%; border: 1px solid var(--dh-border, #e2e8f0); border-radius: .7rem; padding: .45rem .7rem .45rem 2.1rem; font-size: .85rem; background: #f8fafc; }
.sidebar-search input:focus { outline: 2px solid rgba(14,124,134,.25); border-color: var(--dh-primary, #0e7c86); background: #fff; }
.filter-bar .row > .col-md-1.d-flex { flex: 0 0 auto; width: auto; }
.filter-bar .btn { white-space: nowrap; }
.stat-card .card-body > div { min-width: 0; }
.app-content { min-width: 0; }
.stat-card .stat-value { white-space: normal; overflow-wrap: normal; font-size: clamp(1.05rem, .8vw + .75rem, 1.55rem); }
.filter-bar .row > [class*="col-"].d-flex.gap-1 { flex: 0 0 auto; width: auto; }

/* Reports hub: everyday-report tiles */
.quick-report{transition:transform .12s,box-shadow .12s;color:inherit}
.quick-report:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(14,124,134,.15);border-color:#0e7c86}
.quick-report strong{font-size:.95rem}

/* Employee self-service home */
.ess-hero{background:linear-gradient(135deg,#f0fdfa,#fff);border-color:#cfe9e6}
.ess-today{min-width:240px}
.ess-home{display:flex;flex-direction:column;gap:.9rem}
.ess-hero{background:linear-gradient(135deg,#0e7c86 0%,#14a3a0 55%,#e7fbf8 160%);border:0;color:#fff;box-shadow:0 8px 22px rgba(14,124,134,.22)}
.ess-hero .text-muted{color:rgba(255,255,255,.82)!important}
.ess-hero h2{color:#fff}
.ess-hero a.badge{color:#fff}
.ess-hero .badge.text-bg-light{color:#0f172a}
.ess-avatar{width:58px;height:58px;border-radius:50%;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:700;flex:none}
.ess-kpis{display:grid;grid-template-columns:repeat(4,64px);gap:.5rem}
.ess-kpis div{border-radius:12px;padding:.4rem .2rem;text-align:center;line-height:1.1}
.ess-kpis b{display:block;font-size:1.35rem}
.ess-kpis span{font-size:.68rem;opacity:.95}
.ess-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:.9rem;align-items:start}
.ess-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:.7rem}
.ess-tile .card-body{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem}
.ess-tile .stat-icon{width:44px;height:44px;flex:0 0 44px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:1.25rem}
.ess-side{display:flex;flex-direction:column;gap:.7rem}
.ess-side .card-header{font-weight:600;font-size:.85rem}
@media (max-width:991px){.ess-grid{grid-template-columns:1fr}.ess-kpis{grid-template-columns:repeat(4,1fr);width:100%}}
@media (min-width:992px) and (min-height:700px){.ess-home{min-height:calc(100vh - 190px)}}
.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#16a34a;margin-right:4px;animation:livepulse 1.4s infinite}
@keyframes livepulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.5)}100%{box-shadow:0 0 0 8px rgba(22,163,74,0)}}
.ess-tile{transition:transform .12s,box-shadow .12s;color:inherit}
.ess-tile:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(14,124,134,.15);border-color:#0e7c86}

/* HR GPS map */
.gps-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;border:2px solid #fff;box-shadow:0 0 0 1px #cfdde2}
.gps-avatar-ini{display:inline-flex;align-items:center;justify-content:center;background:#0e7c86;color:#fff;font-weight:700}
.gps-pick.active .text-muted{color:rgba(255,255,255,.8)!important}

/* =====================================================================================================
   Refinement layer: calmer type, tighter rhythm, quieter chrome. Kept last so it overrides the base rules.
   ===================================================================================================== */
:root { --dh-radius: .6rem; --dh-border: #e4e9ee; --dh-bg: #f5f7f9; --dh-muted: #66727f; --dh-text: #17212b;
        --bs-body-font-family: "Segoe UI", system-ui, -apple-system, "Anek Bangla", "Noto Sans Bengali", "Hind Siliguri", Roboto, Arial, sans-serif; }
body.app-body { font-size: .9rem; line-height: 1.5; color: var(--dh-text); -webkit-font-smoothing: antialiased; }
:lang(bn), [lang="bn"] { font-family: "Anek Bangla", "Noto Sans Bengali", "Hind Siliguri", sans-serif; }

/* page heading */
.app-content h1, .page-title { font-size: 1.3rem; font-weight: 650; letter-spacing: -.01em; margin-bottom: .15rem; }
.breadcrumb { --bs-breadcrumb-divider-color: #9aa5b1; font-size: .78rem; margin-bottom: .35rem; }
.breadcrumb a { color: var(--dh-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--dh-primary); }

/* cards: flat, hairline border, no heavy shadow */
.card { border: 1px solid var(--dh-border); border-radius: var(--dh-radius); box-shadow: none; background: #fff; }
.card-header { background: transparent; border-bottom: 1px solid var(--dh-border); font-weight: 600; font-size: .88rem; padding: .7rem 1rem; }
.card-footer { background: transparent; border-top: 1px solid var(--dh-border); }
.stat-card { box-shadow: none; }

/* tables: quiet header, comfortable rows, no zebra noise */
.table { --bs-table-hover-bg: #f6fafb; margin-bottom: 0; }
.table > thead > tr > th { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--dh-muted);
    background: #fafbfc; border-bottom: 1px solid var(--dh-border); padding: .6rem .75rem; white-space: nowrap; }
.table > tbody > tr > td { padding: .6rem .75rem; border-color: #edf0f3; vertical-align: middle; }
.table-card .table > tbody > tr:last-child > td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* buttons & inputs */
.btn { border-radius: .5rem; font-weight: 500; letter-spacing: .005em; }
.btn-sm { padding: .28rem .65rem; font-size: .8rem; }
.btn-primary { box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.btn-outline-secondary, .btn-light { border-color: var(--dh-border); }
.form-control, .form-select { border-radius: .5rem; border-color: #d9e0e6; font-size: .88rem; }
.form-label { font-size: .78rem; font-weight: 600; color: #3a4754; margin-bottom: .25rem; }
.form-control::placeholder { color: #a3adb7; }

/* badges: soft pills */
.badge { font-weight: 600; letter-spacing: .01em; border-radius: 99px; padding: .32em .65em; }
.badge.text-bg-success { background: #e3f6ec !important; color: #17794a !important; }
.badge.text-bg-danger { background: #fde8e8 !important; color: #b42318 !important; }
.badge.text-bg-warning { background: #fff3d6 !important; color: #8a5a00 !important; }
.badge.text-bg-secondary { background: #eceff2 !important; color: #4c5966 !important; }
.badge.text-bg-info { background: #e1f1fb !important; color: #0b5d8a !important; }
.badge.text-bg-primary { background: var(--dh-primary-50) !important; color: var(--dh-primary-600) !important; }
.badge.text-bg-light { background: #f1f4f6 !important; color: #3a4754 !important; }

/* sidebar: quiet, with a left marker for the active item */
.app-sidebar .nav-link, .sidebar-nav a { border-radius: .5rem; }
.app-sidebar .active > a, .app-sidebar a.active { background: var(--dh-primary-50); color: var(--dh-primary-600); font-weight: 600; }

/* alerts & empty states */
.alert { border-radius: var(--dh-radius); border-width: 1px; font-size: .86rem; }
.empty-state, .text-center.text-muted.py-5 { padding-block: 2.5rem !important; }

/* keyboard focus is visible everywhere */
:focus-visible { outline: 2px solid var(--dh-primary); outline-offset: 2px; }
a { text-underline-offset: 2px; }
.gps-pin{background:none;border:0}
.gps-pin img,.gps-pin span{width:44px;height:44px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;background:#0e7c86;color:#fff;font-weight:700}


/* ===== Employee home v2: dark hero, month strip, colourful squircle tiles ===== */
.ess2{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"hero hero" "tiles info" "month info";align-items:start}
.ess2>.ess2-hero{grid-area:hero}.ess2>.ess2-month{grid-area:month}.ess2>.ess2-tilesec{grid-area:tiles}.ess2>.ess2-info{grid-area:info}
.ess2-hero{position:relative;display:flex;align-items:center;gap:1.2rem;flex-wrap:wrap;padding:1.3rem 1.5rem;border-radius:22px;color:#fff;background:radial-gradient(120% 140% at 0% 0%,#14b8a6 0%,#0f766e 35%,#0b1f3a 100%);box-shadow:0 14px 34px rgba(11,31,58,.28);overflow:hidden}
.ess2-hero:after{content:"";position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.07)}
.ess2-ring{width:76px;height:76px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;flex:none;background:rgba(255,255,255,.14);border:3px solid rgba(255,255,255,.55)}
.ess2-ring.ess2-work{border-color:#4ade80;box-shadow:0 0 0 6px rgba(74,222,128,.22);animation:essPulse 2s infinite}
.ess2-ring.ess2-done{border-color:#fde047}
@keyframes essPulse{50%{box-shadow:0 0 0 12px rgba(74,222,128,.06)}}
.ess2-who{flex:1 1 220px;min-width:0}
.ess2-greet{font-size:.8rem;opacity:.85}
.ess2-who h1{font-size:1.55rem;font-weight:800;margin:.1rem 0;color:#fff;letter-spacing:-.01em}
.ess2-sub{font-size:.85rem;opacity:.95}
.ess2-bell{margin-left:.5rem;background:rgba(255,255,255,.2);padding:.1rem .5rem;border-radius:99px;color:#fff;text-decoration:none;font-size:.75rem}
.ess2-times{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;z-index:1}
.ess2-times>div:not(.ess2-punches){background:rgba(255,255,255,.14);border-radius:14px;padding:.45rem 1rem;text-align:center;min-width:92px}
.ess2-times span{display:block;font-size:.65rem;letter-spacing:.12em;opacity:.8}
.ess2-times b{font-size:1.45rem;font-variant-numeric:tabular-nums}
.ess2-punches{flex-basis:100%;font-size:.78rem;opacity:.9}
.ess2-live{position:absolute;right:1rem;top:.7rem;font-size:.7rem;opacity:.85}
.ess2-card{background:#fff;border:1px solid #e6ebf2;border-radius:18px;padding:1rem 1.1rem;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.ess2-title{font-weight:700;font-size:.95rem;margin-bottom:.6rem;color:#0f172a}
.ess2-title small{font-weight:500;color:#94a3b8;margin-left:.3rem;font-size:.72rem}
.ess2-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(30px,1fr));gap:4px}
.ess2-pad{display:none}.ess2-day{height:30px;display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:.72rem}
.ess2-none{background:#f1f5f9;color:#94a3b8}
.ess2-now{outline:3px solid #0b1f3a;outline-offset:1px}
.ess2-kpis{display:flex;gap:.6rem;margin-top:.7rem;flex-wrap:wrap}
.ess2-kpis div{flex:1 1 70px;text-align:center;background:#f8fafc;border-radius:14px;padding:.5rem .2rem}
.ess2-kpis b{display:block;font-size:1.35rem;line-height:1.1}
.ess2-kpis span{font-size:.72rem;color:#64748b}
.k-p{color:#16a34a}.k-a{color:#dc2626}.k-l{color:#d97706}.k-lv{color:#2563eb}
.ess2-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.65rem}
.ess2-tile{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.1rem;padding:.7rem .3rem .6rem;border-radius:20px;color:#fff;text-decoration:none;transition:transform .15s,box-shadow .15s;box-shadow:0 6px 14px rgba(15,23,42,.14)}
.ess2-tile:hover{transform:translateY(-4px) scale(1.02);color:#fff;box-shadow:0 12px 24px rgba(15,23,42,.22)}
.ess2-tile .ico{font-size:1.6rem;line-height:1;margin-bottom:.2rem}
.ess2-tile b{font-size:.86rem;line-height:1.2}
.ess2-tile small{font-size:.66rem;opacity:.85}
.t-blue{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.t-amber{background:linear-gradient(135deg,#fbbf24,#d97706)}.t-teal{background:linear-gradient(135deg,#2dd4bf,#0f766e)}
.t-purple{background:linear-gradient(135deg,#a78bfa,#6d28d9)}.t-pink{background:linear-gradient(135deg,#f472b6,#be185d)}.t-slate{background:linear-gradient(135deg,#64748b,#334155)}
.t-red{background:linear-gradient(135deg,#fb7185,#be123c)}.t-green{background:linear-gradient(135deg,#4ade80,#15803d)}
.ess2-info{display:grid;gap:.8rem}
.ess2-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.ess2-chip{flex:1 1 90px;background:#eff6ff;border-radius:14px;padding:.5rem .6rem;text-align:center}
.ess2-chip b{display:block;font-size:1.4rem;color:#1d4ed8}.ess2-chip span{font-size:.7rem;color:#475569}
.ess2-list{list-style:none;margin:0;padding:0}
.ess2-list li{display:flex;justify-content:space-between;align-items:center;padding:.35rem 0;border-bottom:1px dashed #e2e8f0}.ess2-list li:last-child{border:0}
.ess2-pay{display:flex;justify-content:space-between;align-items:center;text-decoration:none;background:#ecfdf5;border-radius:14px;padding:.7rem .9rem}
.ess2-pay b{color:#15803d;font-size:1.2rem}
@media (max-width:1200px){.ess2-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:991px){.ess2-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.ess2{grid-template-columns:1fr;grid-template-areas:"hero" "tiles" "month" "info"}.ess2-live{display:none}}

/* ===== ESS inner pages: tab bar + cards matched to the My Portal (ess2) look ===== */
.ess-tabs{margin-bottom:1rem}
.ess-tabs-scroll{display:flex;gap:.4rem;overflow-x:auto;padding:.4rem;background:#fff;border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 2px 10px rgba(15,23,42,.04);scrollbar-width:thin}
.ess-tabs-scroll::-webkit-scrollbar{height:5px}
.ess-tabs-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:9px}
.ess-tab{flex:0 0 auto;display:flex;flex-direction:column;align-items:center;gap:.15rem;min-width:74px;padding:.55rem .6rem;border-radius:13px;color:#64748b;text-decoration:none;font-size:.74rem;font-weight:600;line-height:1.1;transition:background .15s,color .15s,transform .15s}
.ess-tab i{font-size:1.2rem}
.ess-tab:hover{background:#f1f5f9;color:#0f766e}
.ess-tab.active{background:linear-gradient(135deg,#14b8a6,#0f766e);color:#fff;box-shadow:0 6px 14px rgba(15,118,110,.28)}
.ess-tab.active:hover{color:#fff;transform:translateY(-1px)}
/* Give every card on an ESS page the soft rounded dashboard style */
.app-content:has(.ess-tabs) .card{border:1px solid #e6ebf2;border-radius:18px;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.app-content:has(.ess-tabs) .card .card-header{background:transparent;border-bottom:1px solid #eef2f7;font-weight:700;font-size:.9rem;color:#0f172a;padding:.75rem 1.1rem}
.app-content:has(.ess-tabs) .card-header:first-child{border-top-left-radius:18px;border-top-right-radius:18px}
@media (max-width:575px){.ess-tab{min-width:64px;font-size:.68rem}.ess-tab i{font-size:1.05rem}}

/* ===================================================================== */
/* UI fixes (build-20261201)                                             */
/* A filled button rendered as a link <a> was inheriting the dark/teal   */
/* link colour (.table a { color: var(--dh-ink) }) over its teal bg,     */
/* making the label invisible. Force the proper button text colour.      */
a.btn-primary, a.btn-success, a.btn-danger, a.btn-dark, a.btn-secondary,
.table a.btn-primary, .table a.btn-success, .table a.btn-danger, .table a.btn-dark, .table a.btn-secondary { color: #fff; }
a.btn-primary:hover, a.btn-success:hover, a.btn-danger:hover, a.btn-dark:hover, a.btn-secondary:hover,
.table a.btn-primary:hover, .table a.btn-success:hover, .table a.btn-danger:hover { color: #fff; }
a.btn-warning, a.btn-light, a.btn-info, .table a.btn-warning, .table a.btn-light, .table a.btn-info { color: var(--bs-btn-color, #1c2434); }
.table a.btn-outline-primary { color: var(--dh-primary); }
.table a.btn-outline-secondary { color: var(--bs-btn-color, #6b7489); }
.table a.btn-outline-success { color: var(--bs-btn-color, #198754); }
.table a.btn-outline-danger { color: var(--bs-btn-color, #dc3545); }

/* An open row menu (<details>) must not be clipped by the table's        */
/* horizontal-scroll wrapper (that caused stray scrollbars + cramped UI). */
.table-responsive:has(details[open]) { overflow: visible; }

/* Never let any single element force the whole page to scroll sideways.  */
.app-content { overflow-x: clip; }

/* Smooth, not jarring, when the page jumps to an in-page target.         */
html { scroll-behavior: smooth; }

/* Error page icon */
.error-icon { font-size: 2.6rem; color: var(--dh-primary); line-height: 1; }

/* Toast popups (DIGIHRM.toast) */
.toast-stack { position: fixed; top: 1rem; right: 1rem; z-index: 1090; display: flex; flex-direction: column; gap: .5rem; max-width: min(380px, 92vw); }
.dh-toast { display: flex; align-items: flex-start; gap: .55rem; background: #fff; border: 1px solid var(--dh-border); border-left: 4px solid var(--dh-primary); border-radius: .6rem; box-shadow: 0 8px 24px rgba(15,23,42,.14); padding: .7rem .85rem; font-size: .88rem; opacity: 0; transform: translateX(12px); transition: opacity .2s, transform .2s; }
.dh-toast.in { opacity: 1; transform: none; }
.dh-toast.out { opacity: 0; transform: translateX(12px); }
.dh-toast i { font-size: 1.05rem; margin-top: .05rem; }
.dh-toast span { flex: 1 1 auto; }
.dh-toast .dh-toast-x { border: 0; background: transparent; font-size: 1.1rem; line-height: 1; color: var(--dh-muted); cursor: pointer; padding: 0 .1rem; }
.dh-toast-success { border-left-color: #16a34a; } .dh-toast-success i { color: #16a34a; }
.dh-toast-danger { border-left-color: #dc3545; } .dh-toast-danger i { color: #dc3545; }
.dh-toast-warning { border-left-color: #f59e0b; } .dh-toast-warning i { color: #f59e0b; }
.dh-toast-info { border-left-color: var(--dh-primary); } .dh-toast-info i { color: var(--dh-primary); }

/* Company Settings — sticky, searchable sidebar */
.settings-side { position: sticky; top: calc(var(--dh-topbar-h) + .75rem); }
.settings-search { position: relative; }
.settings-search > i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); color: var(--dh-muted); font-size: .85rem; pointer-events: none; }
.settings-search input { padding-left: 1.9rem; }
.settings-nav { max-height: calc(100vh - var(--dh-topbar-h) - 5.5rem); overflow: auto; }
.settings-nav .list-group-item.active { background: var(--dh-primary-50); color: var(--dh-primary); border-color: transparent; font-weight: 600; }
@media (max-width: 991.98px) { .settings-side { position: static; } .settings-nav { max-height: none; } }

/* CEO Portal — executive styling */
.ceo-hero { border: 0; color: #fff; background: linear-gradient(135deg, var(--dh-primary) 0%, #0b4f57 100%); padding: 1.25rem 1.4rem; border-radius: var(--dh-radius); box-shadow: 0 8px 24px rgba(14,124,134,.22); }
.ceo-hero-eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.ceo-hero-title { font-size: 1.55rem; font-weight: 700; color: #fff; }
.ceo-hero-date { color: rgba(255,255,255,.8); font-size: .9rem; }
.ceo-ring { --pct: 0; --ring: #16a34a; width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--ring) calc(var(--pct) * 1%), rgba(255,255,255,.22) 0); display: grid; place-items: center; flex: 0 0 112px; }
.ceo-ring-inner { width: 82px; height: 82px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; line-height: 1; }
.ceo-ring-val { font-size: 1.5rem; font-weight: 800; color: var(--dh-text); }
.ceo-ring-cap { font-size: .68rem; color: var(--dh-muted); text-transform: uppercase; letter-spacing: .05em; }
.ceo-bar { height: 8px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.ceo-bar > span { display: block; height: 100%; border-radius: 6px; }
.ceo-stack { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #eef1f6; }
.ceo-stack > span { display: block; height: 100%; }
.ceo-legend { font-size: .76rem; color: var(--dh-muted); display: inline-flex; align-items: center; gap: .3rem; }
.ceo-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
@media print { .ceo-hero { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Sidebar license/support code (client reads it to support) */
.sidebar-code { margin: 0 1rem .5rem; padding: .3rem .6rem; border-radius: .5rem; background: #fff6e6; color: #8a5a00; font-size: .72rem; display: flex; gap: .4rem; align-items: center; white-space: nowrap; overflow: hidden; border: 1px solid #ffe3ad; }
.sidebar-code b { letter-spacing: .06em; }
