/* =========================================================================
   SK Sauda - Professional theme
   Palette: deep navy (trust/finance) + muted gold accent (commodity trade)
   Font: Inter (loaded via Google Fonts in includes/header.php)
   ========================================================================= */

:root {
    --sk-navy-900: #1c3a5e;
    --sk-navy-800: #234875;
    --sk-navy-700: #2d5890;
    --sk-navy-600: #3a6bab;
    --sk-navy-500: #4a80c4;

    --sk-gold: #c8a24b;
    --sk-gold-dark: #a9822f;
    --sk-gold-light: #e8d9ae;

    --sk-bg: #f3f5f8;
    --sk-surface: #ffffff;
    --sk-border: #e4e8ee;
    --sk-text: #1f2a3c;
    --sk-text-muted: #6b7690;

    --sk-success: #1a7f5a;
    --sk-danger: #c0392b;

    --sk-radius: .65rem;
    --sk-shadow-sm: 0 1px 3px rgba(15, 30, 55, .06), 0 1px 2px rgba(15, 30, 55, .08);
    --sk-shadow-md: 0 6px 18px rgba(15, 30, 55, .10);
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    background-color: var(--sk-bg);
    color: var(--sk-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: .93rem;
    /* -webkit-font-smoothing: antialiased removed (2026-09-20, user reported bold titles looking
       "blurry") - that property forces grayscale anti-aliasing, which is meant for WebKit/macOS
       rendering; on Windows Chrome (this app's users) it overrides the OS's own sharper ClearType-style
       text rendering and makes semibold/bold headings look soft/washed out instead of crisp. Leaving
       font smoothing unset lets each OS use its own best (and usually sharper) default. */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--sk-navy-900);
    letter-spacing: -.01em;
    text-rendering: optimizeLegibility; /* crisper glyph shapes/kerning, helps avoid the "blurry" look on bold headings */
}

a {
    color: var(--sk-navy-600);
}

/* ---------------------------------------------------------------------
   Topbar
   --------------------------------------------------------------------- */
.sk-topbar {
    background: linear-gradient(135deg, var(--sk-navy-900) 0%, var(--sk-navy-800) 100%);
    box-shadow: 0 2px 10px rgba(28, 58, 94, .25);
    height: 60px;
    border-bottom: 2px solid var(--sk-gold);
}

.sk-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
}

.sk-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: .5rem;
    background: linear-gradient(135deg, var(--sk-gold) 0%, var(--sk-gold-dark) 100%);
    color: var(--sk-navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: -.02em;
    box-shadow: var(--sk-shadow-sm);
    flex-shrink: 0;
}

.sk-brand-text {
    color: #fff;
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.1;
}

.sk-brand-tagline {
    color: rgba(255, 255, 255, .55);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.1;
}

.sk-topbar-right {
    color: rgba(255, 255, 255, .7);
    font-size: .78rem;
}

.sk-user-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .8rem;
}

.sk-user-chip i {
    color: var(--sk-gold-light);
}

/* ---------------------------------------------------------------------
   Sidebar
   --------------------------------------------------------------------- */
.sk-sidebar {
    width: 248px;
    min-height: calc(100vh - 60px);
    background: var(--sk-navy-900);
    padding: 18px 0 24px;
    flex-shrink: 0;
}

.sk-sidebar .sidebar-heading {
    color: rgba(255, 255, 255, .38);
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 18px 22px 8px;
}

.sk-sidebar .sidebar-heading:first-child {
    padding-top: 4px;
}

.sk-sidebar .sidebar-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 9px 20px;
    margin: 1px 10px;
    border-radius: .5rem;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    font-size: .87rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: background-color .12s ease, color .12s ease;
}

.sk-sidebar .sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: .95rem;
    color: rgba(255, 255, 255, .45);
    transition: color .12s ease;
}

.sk-sidebar .sidebar-link:hover {
    background-color: rgba(255, 255, 255, .06);
    color: #fff;
}

.sk-sidebar .sidebar-link:hover i {
    color: var(--sk-gold-light);
}

.sk-sidebar .sidebar-link.active {
    background: linear-gradient(90deg, rgba(200, 162, 75, .18) 0%, rgba(200, 162, 75, .05) 100%);
    color: #fff;
    font-weight: 600;
    border-left-color: var(--sk-gold);
}

.sk-sidebar .sidebar-link.active i {
    color: var(--sk-gold);
}

/* ---------------------------------------------------------------------
   Content area / cards
   --------------------------------------------------------------------- */
.sk-content {
    min-height: calc(100vh - 60px);
}

.card {
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    box-shadow: var(--sk-shadow-sm);
}

.card-body {
    padding: 1.25rem;
}

/* ---------------------------------------------------------------------
   Dashboard summary cards
   --------------------------------------------------------------------- */
.dash-card {
    border: 1px solid var(--sk-border);
    border-radius: var(--sk-radius);
    box-shadow: var(--sk-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    position: relative;
}

.dash-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--sk-gold);
    opacity: 0;
    transition: opacity .15s ease;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sk-shadow-md);
    border-color: var(--sk-navy-500);
    color: inherit;
}

.dash-card:hover::before {
    opacity: 1;
}

.dash-card .dash-icon {
    width: 48px;
    height: 48px;
    border-radius: .55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: linear-gradient(135deg, var(--sk-navy-700), var(--sk-navy-900));
    color: #fff;
    box-shadow: var(--sk-shadow-sm);
    flex-shrink: 0;
}

.dash-icon.icon-blue   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.dash-icon.icon-violet { background: linear-gradient(135deg, #7c3aed, #6626c9); }
.dash-icon.icon-teal   { background: linear-gradient(135deg, #0f9b7e, #0a7561); }
.dash-icon.icon-orange { background: linear-gradient(135deg, #e0862c, #c26a13); }
.dash-icon.icon-gold   { background: linear-gradient(135deg, var(--sk-gold), var(--sk-gold-dark)); color: var(--sk-navy-900); }
.dash-icon.icon-navy   { background: linear-gradient(135deg, var(--sk-navy-700), var(--sk-navy-900)); }
.dash-icon.icon-cyan   { background: linear-gradient(135deg, #0891b2, #0e7490); }
.dash-icon.icon-rose   { background: linear-gradient(135deg, #e11d48, #be123c); }
.dash-icon.icon-emerald { background: linear-gradient(135deg, #059669, #047857); }
.dash-icon.icon-amber   { background: linear-gradient(135deg, #d97706, #b45309); }
.dash-icon.icon-crimson { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.dash-icon.icon-indigo  { background: linear-gradient(135deg, #4f46e5, #4338ca); }
.dash-icon.icon-sky     { background: linear-gradient(135deg, #0284c7, #0369a1); }

.dash-card .dash-count {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--sk-navy-900);
    line-height: 1.15;
}

.dash-card .text-muted.small {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    color: var(--sk-text-muted) !important;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
    border-radius: .5rem;
    font-weight: 500;
    font-size: .87rem;
}

/* Extra-compact button, smaller than Bootstrap's own .btn-sm - used for the Documents card's
   "Extract & Auto-fill" buttons (2026-09-20) so a slot's label + file input + button can all share
   one line without the button eating too much width. */
.btn-xs {
    padding: .18rem .45rem;
    font-size: .74rem;
    border-radius: .35rem;
}

.btn-primary {
    background-color: var(--sk-navy-700);
    border-color: var(--sk-navy-700);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--sk-navy-800);
    border-color: var(--sk-navy-800);
}

.btn-success {
    background-color: var(--sk-success);
    border-color: var(--sk-success);
}

.btn-success:hover {
    background-color: #14664a;
    border-color: #14664a;
}

.btn-outline-primary {
    color: var(--sk-navy-700);
    border-color: var(--sk-navy-500);
}

.btn-outline-primary:hover {
    background-color: var(--sk-navy-700);
    border-color: var(--sk-navy-700);
}

.btn-outline-secondary {
    color: var(--sk-text-muted);
    border-color: var(--sk-border);
}

.btn-outline-secondary:hover {
    background-color: var(--sk-navy-900);
    border-color: var(--sk-navy-900);
}

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.form-label {
    font-weight: 600;
    font-size: .8rem;
    color: var(--sk-navy-800);
    margin-bottom: .3rem;
}

.form-control,
.form-select {
    border-color: var(--sk-border);
    border-radius: .5rem;
    font-size: .88rem;
    padding: .5rem .75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sk-navy-500);
    box-shadow: 0 0 0 .2rem rgba(27, 58, 99, .12);
}

/* 2026-10-01: darker text-box borders + darker entered values everywhere - same look Purchase / Sales
   Entry already had (their own #entryForm block). Applies to every screen: masters, vouchers, reports, popups. */
.form-control,
.form-select {
    border-color: #8d96a7;
    color: #111827;
    font-weight: 500;
}
.form-control:focus,
.form-select:focus {
    border-color: #2f5ea8;
    box-shadow: 0 0 0 .2rem rgba(47, 94, 168, .2);
}
.form-control[readonly],
.form-control:disabled,
.form-select:disabled {
    color: #1f2937;
}
.form-control::placeholder {
    color: #8a8f98;
    font-weight: 400;
}
.form-check-input {
    border-color: #8d96a7;
}

.form-control-sm,
.form-select-sm {
    border-radius: .4rem;
}

/* ---------------------------------------------------------------------
   Tables
   --------------------------------------------------------------------- */
.table {
    font-size: .87rem;
}

.table thead.table-light th {
    background-color: var(--sk-navy-900);
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: none;
    vertical-align: middle;
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--sk-border);
}

.table-hover > tbody > tr:hover > * {
    background-color: #eef2f8;
}

.table-bordered {
    border-color: var(--sk-border);
}

/* 2026-10-01: clear horizontal line under every row of every report / list table. */
.table > tbody > tr > *,
.table > tfoot > tr > * {
    border-bottom: 1px solid #9aa3b2 !important;
}
.table > tbody > tr:first-child > * {
    border-top: 1px solid #9aa3b2;
}

/* ---------------------------------------------------------------------
   Badges / alerts
   --------------------------------------------------------------------- */
.badge.text-bg-light {
    background-color: #eef1f6 !important;
    color: var(--sk-navy-800) !important;
    font-weight: 600;
    font-size: .74rem;
    padding: .4em .65em;
}

.alert {
    border-radius: .55rem;
    border: 1px solid transparent;
    border-left-width: 4px;
    font-size: .88rem;
}

.alert-success {
    background-color: #eaf6f1;
    border-left-color: var(--sk-success);
    color: #14563e;
}

.alert-danger {
    background-color: #fbeeec;
    border-left-color: var(--sk-danger);
    color: #8f2e22;
}

.alert-light {
    background-color: #f8f9fb;
    border-left-color: var(--sk-gold);
    color: var(--sk-text-muted);
}

/* ---------------------------------------------------------------------
   Misc
   --------------------------------------------------------------------- */
.fs-6.badge {
    font-size: .85rem !important;
}

/* ---------------------------------------------------------------------
   Report "not updated yet" cell highlight (Tracking Report - Claim Amount /
   Freight Amount / Unload Status, both the Purchase side and the Direct
   Sale Details side: a soft red tint so a still-blank value stands out at
   a glance. !important beats table-hover's own background on row hover so
   the highlight never disappears while scanning the table.
   --------------------------------------------------------------------- */
/* 2026-10-01: the soft red (pink) tint is replaced by a small red rectangle, centred at the top of the cell. */
.sk-pending-cell {
    position: relative;
}
td.sk-pending-cell {
    padding-top: 20px !important;   /* room for the circle above the value */
}
.sk-pending-cell::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);   /* centred at the top of the cell (2026-10-01) */
    width: 24px;    /* small red rectangle (2026-10-01) */
    height: 10px;
    border-radius: 2px;
    background: #dc3545;
    box-shadow: 0 0 0 1px #fff;
}
span.sk-pending-cell::before {
    position: static;
    transform: none;
    display: inline-block;
    margin-right: 3px;
    vertical-align: middle;
}

/* 2026-10-01: Addition (+) in green, Deduction (-) in red - small solid tags, readable on light or dark headers. */
.sk-plus, .sk-minus {
    display: inline-block;
    padding: 0 .3em;
    border-radius: .25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff !important;
}
.sk-plus  { background: #198754 !important; }
.sk-minus { background: #dc3545 !important; }
/* 2026-10-02: in a table header the (+)/(-) tag goes on its own line BELOW the column name, centred, and
   pinned to the bottom of the cell - so every sign of a header row sits on the same single line, however
   many lines the column names take (Tracking / Freight Report, Sales / Purchase Entry). */
thead tr:has(> th > .sk-plus, > th > .sk-minus) > th {
    position: relative;
    text-align: center !important;
    vertical-align: top !important;
    padding-bottom: 1.9em !important;
}
th > .sk-plus, th > .sk-minus {
    position: absolute;
    left: 50%;
    bottom: .35em;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* 2026-10-02: Tracking Report - taller red "pending" marker. */
.sk-tracking-table td.sk-pending-cell { padding-top: 26px !important; }
.sk-tracking-table td.sk-pending-cell::before { height: 16px; width: 28px; }

/* ---------------------------------------------------------------------
   Print (used by Reports - hide chrome/filters, keep just the table)
   --------------------------------------------------------------------- */
@media print {
    .sk-topbar, .sk-sidebar, .no-print {
        display: none !important;
    }
    .sk-content {
        padding: 0 !important;
        min-height: 0 !important;
    }
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* ---------------------------------------------------------------------
   Mobile navigation (2026-09-20, "is project ko mobile responsive bhi hona
   chahiye") - below Bootstrap's md breakpoint (767.98px) the always-visible
   248px sidebar becomes a hidden off-canvas drawer, opened by the hamburger
   button in the topbar (#skSidebarToggle, wired up in includes/footer.php)
   and closed by tapping the backdrop or a nav link. Above md, nothing here
   applies and the layout is exactly what it was before this change.
   --------------------------------------------------------------------- */
.sk-sidebar-toggle {
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
    padding: .25rem .5rem;
    border: none;
    background: transparent;
}

.sk-sidebar-toggle:hover,
.sk-sidebar-toggle:focus {
    color: var(--sk-gold-light);
}

/* Mobile-only user name / Admin badge / Logout block shown at the top of the
   drawer itself, since the topbar's own user chip + Logout link (top right)
   are hidden below md - without this, a phone user would have no way to
   log out at all. */
.sk-sidebar-userinfo {
    display: none;
}

.sk-sidebar-userinfo .sk-user-chip {
    margin: 0 10px 10px;
    width: fit-content;
}

@media (max-width: 767.98px) {
    .sk-sidebar-backdrop {
        display: none;
    }

    .sk-sidebar-backdrop.sk-sidebar-open {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 30, 55, .4);
        z-index: 1040;
    }

    .sk-sidebar {
        position: fixed;
        top: 60px;
        left: 0;
        bottom: 0;
        min-height: 0;
        width: 260px;
        max-width: 82vw;
        transform: translateX(-100%);
        transition: transform .2s ease;
        overflow-y: auto;
        z-index: 1045;
        box-shadow: var(--sk-shadow-md);
    }

    .sk-sidebar.sk-sidebar-open {
        transform: translateX(0);
    }

    .sk-sidebar-userinfo {
        display: block;
        padding-top: 10px;
        margin-bottom: 6px;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .sk-content {
        padding: 1rem !important;
    }
}

/* ---------------------------------------------------------------------------
   WhatsApp buttons - dark WhatsApp green, highlighted (2026-09-26).
   Used by the voucher toolbar, report toolbar, list-row icons and the
   WhatsApp popups (Open WhatsApp / Share PDF).
   --------------------------------------------------------------------------- */
.btn-wa {
    --bs-btn-color: #fff;
    --bs-btn-bg: #075E54;
    --bs-btn-border-color: #25D366;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #128C7E;
    --bs-btn-hover-border-color: #25D366;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #054d44;
    --bs-btn-active-border-color: #25D366;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #5f8f89;
    --bs-btn-disabled-border-color: #5f8f89;
    --bs-btn-focus-shadow-rgb: 37, 211, 102;
    font-weight: 600;
    box-shadow: 0 0 0 2px rgba(37, 211, 102, .35), 0 2px 6px rgba(7, 94, 84, .35);
    transition: box-shadow .15s ease, background-color .15s ease, transform .1s ease;
}
.btn-wa:hover, .btn-wa:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .55), 0 3px 10px rgba(7, 94, 84, .45);
    transform: translateY(-1px);
}
.btn-wa .bi-whatsapp { color: #25D366; font-size: 1.05em; }
.btn-wa:hover .bi-whatsapp { color: #fff; }
/* inside a btn-group the glow must not be clipped by neighbours */
.btn-group > .btn-wa { position: relative; z-index: 2; }
/* list-row icon: same height as the other small action buttons */
.btn-wa.sk-list-wa { padding: .25rem .5rem; margin: 0 1px; }

/* ---------------------------------------------------------------------------
   Tracking Report / Freight Report (2026-09-26):
   - bigger in-cell action icons (Unload Status pencil, Kata Parcha clip / eye,
     Claim / Freight pencils, Kata Parchi upload) - easier to see and click;
   - the red "not updated yet" fill sits INSIDE the cell with a small white
     margin, instead of filling the whole box edge to edge.
   --------------------------------------------------------------------------- */
.sk-report-icons td .btn-link.btn-sm.p-0 {
    font-size: 1.3rem;
    line-height: 1;
    padding: .1rem .2rem !important;
    vertical-align: middle;
}
.sk-report-icons td .btn-link.btn-sm.p-0:hover { transform: scale(1.12); }


/* 2026-10-01: shortcut key hint next to the voucher links in the sidebar (F5 / F8 / Alt+F6 ...). */
.sk-kbd {
    margin-left: auto;
    padding: 0 .35em;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: .25rem;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.5;
    color: rgba(255, 255, 255, .75);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Sidebar - quick find + collapsible sections (2026-10-09)
   Desktop: the top bar and the sidebar stay in place while the page scrolls; the sidebar scrolls on
   its own. Search box on top (shortcut "/" or Ctrl+K), each section heading folds / unfolds (remembered).
   --------------------------------------------------------------------- */
@media (min-width: 768px) {
    .sk-topbar { position: sticky; top: 0; z-index: 1030; }
    .sk-sidebar {
        position: sticky;
        top: 60px;
        align-self: flex-start;
        height: calc(100vh - 60px);
        min-height: 0;
        overflow-y: auto;
        padding-top: 0;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, .18) transparent;
    }
}
.sk-side-find {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--sk-navy-900);
    padding: 12px 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.sk-side-find .sk-sf-box { position: relative; }
.sk-side-find input {
    width: 100%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .5rem;
    color: #fff;
    font-size: .84rem;
    padding: 7px 30px 7px 30px;
    outline: none;
}
.sk-side-find input::placeholder { color: rgba(255, 255, 255, .45); }
.sk-side-find input:focus { border-color: var(--sk-gold); background: rgba(255, 255, 255, .12); }
.sk-side-find .bi-search { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .45); font-size: .8rem; }
.sk-side-find kbd {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .55); font-size: .65rem; padding: 1px 5px; border-radius: 3px;
}
.sk-side-find .sk-sf-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: .7rem; }
.sk-side-find .sk-sf-tools button {
    background: none; border: 0; color: rgba(255, 255, 255, .5); padding: 0 2px; font-size: .7rem; cursor: pointer;
}
.sk-side-find .sk-sf-tools button:hover { color: var(--sk-gold-light); }
.sk-sidebar .sidebar-heading.sk-fold {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 18px;
}
.sk-sidebar .sidebar-heading.sk-fold:hover { color: rgba(255, 255, 255, .7); }
.sk-sidebar .sidebar-heading.sk-fold .bi { font-size: .7rem; transition: transform .15s ease; }
.sk-sidebar .sidebar-heading.sk-fold.sk-closed .bi { transform: rotate(-90deg); }
.sk-sidebar .sidebar-heading .sk-fold-n { font-weight: 500; margin-left: auto; margin-right: 8px; opacity: .7; }
.sk-sidebar .sk-side-group.sk-closed { display: none; }
.sk-sidebar .sidebar-link.sk-sf-hit { background-color: rgba(200, 162, 75, .16); color: #fff; }
.sk-sidebar .sk-sf-none { color: rgba(255, 255, 255, .5); font-size: .8rem; padding: 10px 22px; }

/* ---------------------------------------------------------------------
   Top menu bar (2026-10-09) - Masters / Transactions / Reports / Accounts / Settings drop-downs under the
   top bar (desktop only). Built by includes/header.php from the sidebar sections.
   --------------------------------------------------------------------- */
.sk-menubar {
    background: #fff;
    border-bottom: 1px solid #dfe5ee;
    box-shadow: 0 1px 4px rgba(28, 58, 94, .06);
    height: 42px;
    align-items: stretch;
    gap: 2px;
    padding: 0 12px;
}
.sk-menubar .sk-mb-dd { position: relative; display: flex; }
.sk-menubar .sk-mb-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--sk-navy-800, #1c3a5e);
    font-size: .86rem;
    font-weight: 600;
    padding: 0 14px;
    text-decoration: none;
    cursor: pointer;
}
.sk-menubar .sk-mb-btn i { font-size: .7rem; opacity: .6; transition: transform .15s ease; }
.sk-menubar .sk-mb-link i { font-size: .9rem; }
.sk-menubar .sk-mb-btn:hover, .sk-menubar .sk-mb-dd.open .sk-mb-btn { background: #f2f5fa; }
.sk-menubar .sk-mb-dd.open .sk-mb-btn i { transform: rotate(180deg); }
.sk-menubar .sk-mb-dd.has-active .sk-mb-btn, .sk-menubar .sk-mb-link.active { border-bottom-color: var(--sk-gold); }
.sk-menubar .sk-mb-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: 0 0 .6rem .6rem;
    box-shadow: 0 10px 28px rgba(28, 58, 94, .18);
    padding: 6px;
    z-index: 1050;
}
.sk-menubar .sk-mb-menu.sk-mb-2col { min-width: 480px; grid-template-columns: 1fr 1fr; column-gap: 4px; }
.sk-menubar .sk-mb-dd.open .sk-mb-menu { display: block; }
.sk-menubar .sk-mb-dd.open .sk-mb-menu.sk-mb-2col { display: grid; }
.sk-menubar .sk-mb-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 8px 12px;
    border-radius: .45rem;
    color: #24364d;
    text-decoration: none;
    font-size: .86rem;
    white-space: nowrap;
}
.sk-menubar .sk-mb-item i { width: 18px; text-align: center; color: #6b7f99; }
.sk-menubar .sk-mb-item:hover, .sk-menubar .sk-mb-item:focus { background: #f2f5fa; color: #0f2440; outline: none; }
.sk-menubar .sk-mb-item.active { background: rgba(200, 162, 75, .15); font-weight: 600; }
.sk-menubar .sk-mb-item kbd, .sk-menubar .sk-mb-item .badge { margin-left: auto; }
@media (min-width: 768px) {
    .sk-menubar { position: sticky; top: 60px; z-index: 1029; }
    .sk-sidebar { top: 102px; height: calc(100vh - 102px); }
}
.sk-menubar .sk-mb-item .sk-kbd { border-color: #c9d3e0; color: #6b7f99; margin-left: auto; }
.sk-menubar .sk-mb-item > span:not(.sk-kbd):not(.badge) { opacity: .75; }

/* 2026-10-09: menus easier to read - stronger, brighter text (user: "font bahut dhundle"). */
.sk-sidebar .sidebar-heading { color: rgba(255, 255, 255, .78); font-weight: 700; font-size: .72rem; }
.sk-sidebar .sidebar-heading.sk-fold:hover { color: #fff; }
.sk-sidebar .sidebar-heading .sk-fold-n { opacity: .9; }
.sk-sidebar .sidebar-link { color: #fff; font-weight: 600; font-size: .9rem; }
.sk-sidebar .sidebar-link i { color: rgba(255, 255, 255, .85); }
.sk-sidebar .sidebar-link.active { font-weight: 700; }
.sk-sidebar .sk-kbd { color: #fff; border-color: rgba(255, 255, 255, .6); }
.sk-side-find input { color: #fff; font-weight: 600; }
.sk-side-find input::placeholder { color: rgba(255, 255, 255, .7); }
.sk-side-find .sk-sf-tools button { color: rgba(255, 255, 255, .8); font-weight: 600; }
.sk-menubar .sk-mb-btn { color: #0f2440; font-weight: 700; font-size: .9rem; }
.sk-menubar .sk-mb-btn i { opacity: .85; }
.sk-menubar .sk-mb-item { color: #0f2440; font-weight: 600; font-size: .9rem; }
.sk-menubar .sk-mb-item i { color: #2b5689; }
.sk-menubar .sk-mb-item .sk-kbd { color: #2b5689; border-color: #8ea3bf; }
.sk-menubar .sk-mb-item > span:not(.sk-kbd):not(.badge) { opacity: 1; }

/* ---------------------------------------------------------------------
   Top bar "Search anything" (2026-10-09): menus + parties / items / vouchers (api/global_search.php).
   --------------------------------------------------------------------- */
.sk-gsearch { position: relative; flex: 1 1 auto; max-width: 560px; margin: 0 24px; }
.sk-gsearch > .bi-search { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .75); font-size: .9rem; }
.sk-gsearch input {
    width: 100%;
    height: 38px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 2rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    padding: 0 70px 0 38px;
    outline: none;
}
.sk-gsearch input::placeholder { color: rgba(255, 255, 255, .78); font-weight: 500; }
.sk-gsearch input:focus { background: #fff; color: #0f2440; border-color: var(--sk-gold); }
.sk-gsearch input:focus::placeholder { color: #7a8aa0; }
.sk-gsearch:focus-within > .bi-search { color: #2b5689; }
.sk-gsearch kbd {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, .16); color: #fff; font-size: .68rem; padding: 2px 6px; border-radius: 4px;
}
.sk-gsearch:focus-within kbd { background: #e9eef5; color: #2b5689; }
.sk-gs-drop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 420px;
    max-height: min(70vh, 560px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: .7rem;
    box-shadow: 0 14px 34px rgba(15, 36, 64, .25);
    padding: 6px;
    z-index: 1060;
}
.sk-gs-drop.open { display: block; }
.sk-gs-head { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #5a6f8c; padding: 8px 10px 4px; }
.sk-gs-item {
    display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: .45rem; text-decoration: none; color: #0f2440;
}
.sk-gs-item .sk-gs-t { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.sk-gs-item .sk-gs-s { font-size: .78rem; color: #5a6f8c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.sk-gs-item mark { background: #fbe9b5; padding: 0; color: inherit; }
.sk-gs-item.sel, .sk-gs-item:hover { background: #eef3fa; color: #0f2440; }
.sk-gs-item .sk-gs-x {
    margin-left: auto; flex: 0 0 auto; font-size: .72rem; font-weight: 700; color: #2b5689; border: 1px solid #b9c7da; border-radius: 1rem; padding: 1px 9px;
}
.sk-gs-item .sk-gs-x:hover { background: #2b5689; color: #fff; }
.sk-gs-more { padding: 10px; font-size: .82rem; color: #5a6f8c; }

/* ---------------------------------------------------------------------
   2026-10-13: Accounts -> Voucher Register sub-menu (top menu fly-out + sidebar sub-list) and Alt+letter hint.
   --------------------------------------------------------------------- */
.sk-menubar .sk-mb-btn u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sk-menubar .sk-mb-sub { position: relative; }
.sk-menubar .sk-mb-subbtn { cursor: pointer; }
.sk-menubar .sk-mb-sub.open > .sk-mb-subbtn { background: #f2f5fa; }
.sk-menubar .sk-mb-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -6px;
    min-width: 250px;
    background: #fff;
    border: 1px solid #dfe5ee;
    border-radius: .6rem;
    box-shadow: 0 10px 28px rgba(28, 58, 94, .18);
    padding: 6px;
    z-index: 1060;
}
.sk-menubar .sk-mb-sub.open > .sk-mb-submenu { display: block; }
.sk-menubar .sk-mb-sub.sk-flip > .sk-mb-submenu { left: auto; right: 100%; }
.sk-menubar .sk-mb-menu.sk-mb-hassub { overflow: visible; max-height: none; }
.sk-sidebar .sidebar-subheading { color: rgba(255, 255, 255, .72); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 10px 22px 4px 26px; }
.sk-sidebar .sidebar-subheading i { margin-right: 4px; }
.sk-sidebar .sidebar-link.sk-sub { padding-left: 2.4rem; font-size: .84rem; }

/* ---------------------------------------------------------------------
   2026-10-14: side menu bar removed on computer screens - the top menu bar (Dashboard / Masters /
   Transactions / Reports / Accounts / Settings, Alt+letter) and "Search anything" do the job. The sidebar
   stays in the page (hidden) because the top menu bar and the search are built from it. On a phone it is
   still the drawer behind the menu button (the top menu bar is not shown there).
   --------------------------------------------------------------------- */
@media (min-width: 768px) {
    .sk-sidebar { display: none !important; }
}
