/* =====================================================================
   Procure-to-Pay ERP design system (navy icon sidebar, indigo accent)
   ===================================================================== */
:root {
    --brand: #5b5bd6;
    --brand-dark: #4646c2;
    --brand-soft: #eeedfc;
    --brand-line: #c9c7f3;
    --navy: #1f2537;
    --ink: #1f2433;
    --muted: #6b7280;
    --line: #e4e6ee;
    --bg: #eef0f6;
    --card: #ffffff;
    --locked: #f3f4f8;
    --fill: #f5f4ff;
    --ok: #15803d;   --ok-soft: #dcfce7;
    --bad: #dc2626;  --bad-soft: #fee2e2;
    --warn: #a15c07; --warn-soft: #fdf1c7;
    --info: #1d64c8; --info-soft: #dbeafe;
    --orange: #b45309;
    --sidebar-w: 104px;
    --radius: 10px;
}
html { font-size: var(--fs, 100%); }
body { background: var(--bg); color: var(--ink); font-family: 'Lato', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: .9rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
.text-muted, .form-text { color: var(--muted) !important; }
.text-brand { color: var(--brand) !important; }
.fw-800 { font-weight: 800; }

/* ---------- buttons ---------- */
.btn { font-weight: 600; border-radius: 8px; padding: .5rem 1rem; font-size: .875rem; }
.btn-sm { padding: .3rem .7rem; font-size: .8rem; }
.btn-lg { padding: .7rem 1.4rem; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-success { background: var(--ok); border-color: var(--ok); }
.btn-outline-secondary, .btn-light { background: #fff; border: 1px solid #cfd3de; color: var(--ink); }
.btn-outline-secondary:hover, .btn-light:hover { background: #f6f7fb; color: var(--ink); border-color: #b9bfcd; }
.btn-outline-danger { border-color: var(--bad); color: var(--bad); background: #fff; }
.btn-outline-primary { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-outline-primary:hover { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand); }

/* ---------- forms ---------- */
.form-label { font-weight: 500; font-size: .78rem; color: var(--muted); margin-bottom: .3rem; }
.required::after { content: ' *'; color: var(--bad); }
.form-control, .form-select { border-radius: 8px; border-color: #d7dae3; font-size: .875rem; padding: .5rem .75rem; color: var(--ink); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 91, 214, .15); }
.form-control[readonly], .form-control:disabled, .form-select:disabled, .input-locked { background: var(--locked); color: #4b5263; }
.input-fill, .input-fill:focus { background: var(--fill); border-color: var(--brand-line); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- shell: sidebar ---------- */
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--navy); color: #aab0c0; overflow-y: auto; z-index: 1040; transition: transform .2s; padding-bottom: 1rem; scrollbar-width: thin; }
.app-sidebar .brand { display: grid; place-items: center; height: 72px; color: #fff; }
.app-sidebar .brand img { max-width: 72px; max-height: 44px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.app-sidebar .brand .mark { font-size: 2rem; font-weight: 800; color: #22c3ee; line-height: 1; }
.app-sidebar .nav-link { display: flex; flex-direction: column; align-items: center; gap: .3rem; color: #aab0c0; padding: .6rem .3rem; margin: 3px 8px; border-radius: var(--radius); font-size: .68rem; text-align: center; line-height: 1.15; position: relative; }
.app-sidebar .nav-link i { font-size: 1.3rem; }
.app-sidebar .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.app-sidebar .nav-link.active { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(91,91,214,.35); }
.app-sidebar .nav-link .count { position: absolute; top: 4px; right: 10px; background: #ef4444; color: #fff; border-radius: 99px; font-size: .6rem; padding: 0 .35rem; font-weight: 700; }
.app-sidebar .nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: .6rem 14px; }
.app-sidebar .nav-text { display: flex; flex-direction: column; min-width: 0; }
/* collapsed: section headings become thin dividers */
.app-sidebar .nav-section { height: 1px; background: rgba(255,255,255,.08); margin: .55rem 14px; }
.app-sidebar .nav-section span { display: none; }

/* collapse / expand toggle on the sidebar edge */
.nav-toggle { position: fixed; top: 22px; left: calc(var(--sidebar-w) - 14px); z-index: 1045; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; font-size: .8rem; box-shadow: 0 2px 6px rgba(16,24,40,.12); transition: left .2s; }
.nav-toggle:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle i { transition: transform .2s; }

/* expanded menu: wide sidebar with label + explanation for each item */
html.nav-expanded { --sidebar-w: 272px; }
.app-sidebar, .app-main { transition: width .2s, margin-left .2s; }
html.nav-expanded .nav-toggle i { transform: rotate(180deg); }
html.nav-expanded .app-sidebar .brand { justify-content: start; padding: 0 1.1rem; }
html.nav-expanded .app-sidebar .brand img { max-width: 160px; }
.app-sidebar .brand-name { display: none; }
html.nav-expanded .app-sidebar .brand { grid-auto-flow: column; gap: .6rem; }
html.nav-expanded .app-sidebar .brand-name { display: block; font-weight: 900; font-size: 1.1rem; letter-spacing: .02em; }
html.nav-expanded .app-sidebar .brand:has(img) .brand-name { display: none; } /* a logo already identifies the app */
html.nav-expanded .app-sidebar .nav-link { flex-direction: row; align-items: center; gap: .75rem; text-align: left; padding: .6rem .75rem; margin: 2px 10px; }
html.nav-expanded .app-sidebar .nav-link i { font-size: 1.15rem; flex: none; }
html.nav-expanded .app-sidebar .nav-text .lbl { font-size: .86rem; font-weight: 700; color: inherit; }
html.nav-expanded .app-sidebar .nav-link .count { position: static; margin-left: auto; align-self: center; }
html.nav-expanded .app-sidebar .nav-section { height: auto; background: none; margin: .9rem 20px .25rem; }
html.nav-expanded .app-sidebar .nav-section span { display: block; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: #6c7488; font-weight: 700; }

/* ---------- shell: main + topbar ---------- */
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); min-height: 68px; display: flex; align-items: center; padding: .5rem 1.5rem; gap: 1rem; }
.app-topbar .module-title { font-size: 1.15rem; font-weight: 700; margin: 0; line-height: 1.2; }
.app-topbar .module-sub { font-size: .78rem; color: var(--muted); }
.app-topbar .portal-pill { background: #fdf1c7; color: #a15c07; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: .2rem .7rem; }
.font-ctl { display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .35rem .8rem; font-size: .8rem; }
.font-ctl button { border: 0; background: none; color: var(--muted); font-weight: 600; padding: 0 .15rem; }
.font-ctl button:last-child { color: var(--brand); }
.font-ctl b { min-width: 2.6rem; text-align: center; }
.company-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--brand-line); background: var(--fill); color: var(--brand-dark); border-radius: 10px; padding: .4rem .8rem; font-size: .82rem; font-weight: 700; max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.company-chip:hover { border-color: var(--brand); }
.icon-btn { border: 0; background: none; font-size: 1.25rem; color: var(--ink); position: relative; padding: .25rem .4rem; }
.icon-btn .dot { position: absolute; top: -2px; right: -6px; background: #ef4444; color: #fff; border-radius: 99px; font-size: .6rem; font-weight: 700; padding: .05rem .35rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); border: 1px solid var(--brand-line); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.user-chip { display: flex; align-items: center; gap: .6rem; border: 0; background: none; text-align: left; padding: 0; }
.user-chip .nm { font-weight: 700; font-size: .88rem; display: block; line-height: 1.2; }
.user-chip .rl { font-size: .72rem; color: var(--muted); }
.app-content { padding: 1.5rem; flex: 1; }

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.show { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
    .nav-toggle { display: none; }
    /* on phones the slide-out menu always shows labels and explanations */
    .app-sidebar { width: 272px; }
    .app-sidebar .nav-link { flex-direction: row; align-items: center; gap: .75rem; text-align: left; padding: .6rem .75rem; }
    .app-sidebar .nav-text .lbl { font-size: .86rem; font-weight: 700; }
    .app-sidebar .nav-link .count { position: static; margin-left: auto; }
    .app-main { margin-left: 0; }
    .app-content { padding: 1rem; }
    .font-ctl { display: none; }
}

/* ---------- page header (document title + status + actions) ---------- */
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1.25rem; }
.page-header h1 { font-size: 1.45rem; font-weight: 800; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.page-header .crumbs { font-size: .76rem; color: var(--muted); margin-bottom: .2rem; }
.page-header .actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.page-header .actions form { margin: 0; }
.section-title { font-size: 1rem; font-weight: 800; margin: 0 0 .6rem; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; color: var(--muted); }
.chip { background: var(--locked); border: 1px solid var(--line); border-radius: 99px; padding: .25rem .85rem; color: var(--ink); font-weight: 600; font-size: .78rem; }
a.chip:hover { background: var(--brand-soft); text-decoration: none; }
.chip-ok { background: var(--ok-soft); border-color: #bbf7d0; color: var(--ok); }

/* ---------- cards / tables ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); padding: .85rem 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-body { padding: 1.1rem; }
.panel { background: #f7f8fb; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.table { margin: 0; font-size: .85rem; --bs-table-hover-bg: #f8f8ff; }
.table > thead th { background: #f7f8fb; color: #6b7280; font-weight: 700; font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); white-space: nowrap; padding: .7rem .75rem; vertical-align: middle; }
.table > tbody td { padding: .65rem .75rem; vertical-align: middle; border-color: #eef0f5; }
.table tfoot td, .table tfoot th { font-weight: 700; background: #f7f8fb; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }
.col-locked { background: var(--locked) !important; }
.col-fill { background: var(--fill) !important; }
.legend { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted); }
.legend i { display: inline-block; width: 16px; height: 14px; border-radius: 3px; border: 1px solid var(--line); }

.badge-status { display: inline-block; padding: .28rem .8rem; border-radius: 99px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.page-header h1 .badge-status { font-size: .78rem; padding: .35rem .95rem; }
.bs-success { background: var(--ok-soft); color: var(--ok); }
.bs-warning { background: var(--warn-soft); color: var(--warn); }
.bs-danger { background: var(--bad-soft); color: #b42318; }
.bs-info { background: var(--info-soft); color: var(--info); }
.bs-primary { background: var(--brand-soft); color: var(--brand); }
.bs-secondary { background: #eceef3; color: #4a5468; }
.bs-dark { background: #2a3245; color: #fff; }

.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: .45rem 1rem; font-size: .85rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; }

/* field grid (label above read-only value boxes, like the ERP forms) */
.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem 1rem; }
.field-grid .f label { display: block; font-size: .76rem; color: var(--muted); margin-bottom: .3rem; }
.field-grid .f .v { background: var(--locked); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; min-height: 38px; font-size: .875rem; }
@media (max-width: 991.98px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- KPI / stat cards ---------- */
.stat, .kpi { padding: 1rem 1.1rem; display: flex; gap: .9rem; align-items: center; height: 100%; }
.stat .icon, .kpi .icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.stat .label, .kpi .label { color: var(--muted); font-size: .78rem; font-weight: 500; }
.stat .value, .kpi .value { font-size: 1.35rem; font-weight: 800; line-height: 1.25; }
.kpi.highlight { border: 2px solid #86efac; }
.kpi.active { background: var(--fill); border-color: var(--brand-line); }
a.stat-link { color: inherit; display: block; height: 100%; }
a.stat-link:hover { text-decoration: none; }
a.stat-link:hover .card { border-color: var(--brand-line); }
.ic-blue { background: var(--info-soft); color: var(--info); } .ic-green { background: var(--ok-soft); color: var(--ok); }
.ic-amber { background: var(--warn-soft); color: var(--warn); } .ic-red { background: var(--bad-soft); color: var(--bad); }
.ic-violet { background: var(--brand-soft); color: var(--brand); } .ic-teal { background: #e0f6f4; color: #0c7a70; }
.ic-grey { background: #e7e9f0; color: #3b4458; }

/* ---------- approval trail ---------- */
.trail { list-style: none; margin: 0; padding: 0; }
.trail li { display: flex; gap: .8rem; position: relative; padding-bottom: 1.1rem; }
.trail li:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.trail .c { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; border: 2px solid #d1d5db; background: #fff; color: var(--muted); }
.trail .done .c { background: var(--ok); border-color: var(--ok); color: #fff; }
.trail .now .c { background: var(--orange); border-color: var(--orange); color: #fff; }
.trail .now.indigo .c { background: var(--brand); border-color: var(--brand); }
.trail .bad .c { background: var(--bad); border-color: var(--bad); color: #fff; }
.trail .t { font-weight: 700; font-size: .86rem; }
.trail .s { font-size: .76rem; color: var(--muted); }
.trail .done .s { color: var(--ok); }
.trail .now .s { color: var(--orange); }

/* legacy timeline (activity history) */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.4rem; font-size: .83rem; }
.timeline li::before { content: ''; position: absolute; left: .3rem; top: .35rem; width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ''; position: absolute; left: .53rem; top: 1rem; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--muted); font-size: .74rem; }

/* ---------- workflow stepper (10 steps) ---------- */
.stepper { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: .25rem; }
.stepper .step { flex: 1; min-width: 84px; text-align: center; font-size: .7rem; color: var(--muted); position: relative; padding-top: 2.1rem; }
.stepper .step::before { content: ''; position: absolute; top: .85rem; left: 0; right: 0; height: 2px; background: var(--line); }
.stepper .step .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff; border: 2px solid #d1d5db; z-index: 1; display: grid; place-items: center; font-weight: 700; font-size: .72rem; color: var(--muted); }
.stepper .step.done::before { background: var(--brand); }
.stepper .step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.stepper .step.done { color: var(--ink); }
.stepper .step.current .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.stepper .step.current { color: var(--brand); font-weight: 700; }

/* ---------- comparison ---------- */
.cell-low, .compare-table td.lowest { background: var(--ok-soft) !important; color: var(--ok); font-weight: 700; }
.cell-high { background: var(--bad-soft) !important; color: var(--bad); font-weight: 700; }
.col-pick { background: #e9fbef !important; }
.compare-table .lowest-tag { font-size: .62rem; background: var(--ok); color: #fff; border-radius: 4px; padding: 0 .3rem; margin-left: .25rem; }
.compare-table th.sup { min-width: 150px; text-align: right; }

/* ---------- totals box ---------- */
.totals-box { max-width: 380px; margin-left: auto; background: #f7f8fb; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 1rem; }
.totals-box .row-t { display: flex; justify-content: space-between; padding: .45rem 0; color: var(--muted); }
.totals-box .row-t span:last-child { color: var(--ink); }
.totals-box .grand { font-weight: 800; font-size: 1.05rem; color: var(--ink) !important; border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .7rem; }
.totals-box .grand span:last-child { color: var(--brand); }

/* ---------- photos ---------- */
.thumb { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.photo-tile { aspect-ratio: 4 / 3; border-radius: 8px; background: #c9d1cc; display: grid; place-items: center; text-align: center; font-size: .75rem; color: #374151; overflow: hidden; position: relative; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; padding: .2rem .4rem; font-size: .68rem; }
.photo-add { border: 2px dashed var(--brand-line); background: #fff; color: var(--brand); font-weight: 700; cursor: pointer; }

/* ---------- alerts ---------- */
.alert { border-radius: var(--radius); }
.alert-soft-danger { background: var(--bad-soft); color: #b42318; border: 1px solid #fecaca; }
.alert-soft-ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #bbf7d0; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .5; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.filters .form-control, .filters .form-select { width: auto; min-width: 150px; padding: .35rem .6rem; }
.notif-dropdown { width: 360px; max-width: 92vw; padding: 0; }
.notif-dropdown .item { display: block; padding: .65rem .9rem; border-bottom: 1px solid var(--line); color: var(--ink); font-size: .82rem; }
.notif-dropdown .item.unread { background: var(--fill); }
.notif-dropdown .item:hover { background: var(--brand-soft); text-decoration: none; }
.items-table input.form-control, .items-table select.form-select { min-width: 80px; padding: .35rem .5rem; font-size: .82rem; }
.mismatch { background: #fff5f5 !important; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: radial-gradient(1000px 500px at 10% -10%, #e3e2fb 0, transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.portal-top { background: var(--navy); color: #fff; padding: .8rem 0; }
.portal-top a { color: #c6cbd6; }
.portal-top .logo-img { max-height: 34px; background: #fff; border-radius: 5px; padding: 2px 4px; }
@media print { .app-sidebar, .app-topbar, .no-print { display: none !important; } .app-main { margin: 0; } }

/* ---------- standard table alignment ----------
   Text left · amounts right · counts / ratings centred · actions in a tight last column.
   A text column after a right-aligned amount gets extra space so the two never touch. */
.table th.text-center, .table td.text-center { text-align: center; }
.table > thead th.num, .table > tbody td.num, .table tfoot td.num { padding-right: 1rem; }
.table > thead th.num + th:not(.num), .table > tbody td.num + td:not(.num), .table tfoot td.num + td:not(.num) { padding-left: 1.5rem; }
.table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.table .col-actions > * + * { margin-left: .25rem; }
.table-report > tbody td, .table-report > thead th, .table-report tfoot td { white-space: nowrap; }

/* ---------- KPI / stat cards: icon left, text left (Bootstrap .card is a column flexbox) ---------- */
.card.kpi, .card.stat { flex-direction: row; text-align: left; }
.kpi > div, .stat > div { min-width: 0; }
.kpi .value, .stat .value { word-break: break-word; }
.kpi .sub { color: var(--muted); font-size: .76rem; margin-top: .1rem; }

/* ---------- supplier rating ---------- */
.rating { display: inline-block; font-size: .72rem; font-weight: 700; border-radius: 99px; padding: .15rem .55rem; white-space: nowrap; }
.rating-good { background: var(--ok-soft); color: var(--ok); }
.rating-ok { background: var(--warn-soft); color: var(--warn); }
.rating-low { background: var(--bad-soft); color: #b42318; }
.rating-none { background: #eceef3; color: #4a5468; font-weight: 600; }

/* ---------- PR item-code dropdown ---------- */
.code-menu { position: absolute; z-index: 1080; max-height: 320px; overflow-y: auto; background: #1f2537; color: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.25); padding: .35rem; max-width: 440px; }
.code-menu .code-opt { padding: .5rem .7rem; border-radius: 7px; cursor: pointer; }
.code-menu .code-opt strong { display: block; font-size: .85rem; }
.code-menu .code-opt span { display: block; font-size: .76rem; color: #c6cbd6; }
.code-menu .code-opt:hover, .code-menu .code-opt.active { background: rgba(255,255,255,.12); }
.code-menu-warn { padding: .6rem .75rem; color: #fde68a; font-weight: 600; font-size: .85rem; }
.code-menu-empty { padding: .6rem .75rem; color: #c6cbd6; font-size: .8rem; }

/* ---------- searchable select ---------- */
.ss-wrap { position: relative; display: inline-block; }
.filters .ss-wrap { min-width: 150px; }
.ss-native { position: absolute !important; opacity: 0; pointer-events: none; width: 1px !important; height: 1px; min-width: 0 !important; }
.ss-btn { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 2rem !important; }
.ss-pop { position: absolute; z-index: 1070; top: calc(100% + 4px); left: 0; min-width: 100%; width: max-content; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,24,40,.15); padding: .4rem; }
.ss-list { max-height: 280px; overflow-y: auto; margin-top: .35rem; }
.ss-opt { padding: .4rem .6rem; border-radius: 6px; cursor: pointer; font-size: .84rem; }
.ss-opt:hover, .ss-opt.active { background: var(--brand-soft); }
.ss-opt.selected { font-weight: 700; color: var(--brand); }
.ss-empty { padding: .5rem .6rem; color: var(--muted); font-size: .82rem; }

/* ---------- app logo (sidebar) ---------- */
.app-sidebar .brand img.app-logo { background: none; padding: 0; border-radius: 0; max-width: 64px; max-height: 28px; }
html.nav-expanded .app-sidebar .brand img.app-logo { max-width: 110px; max-height: 36px; }
