/* =====================================================================
   SwahiliPOS - MUONEKANO WA KISASA (ui.css)
   Ganda (topbar + sidebar) na kurasa za POS, Sales History, Products na
   Dashboard, kufuata picha za muundo ("DUKA LA MFANO"). Faili hili
   linapakiwa MWISHO, juu ya app.css/theme-*.css, na linashinda kwa
   kutumia body.ux kama kiambishi.
   ===================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../vendor/inter/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../vendor/inter/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../vendor/inter/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../vendor/inter/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('../vendor/inter/inter-latin-800-normal.woff2') format('woff2'); }

body.ux {
    --g: #12a05c;          /* kijani kikuu */
    --g-2: #0d8a4d;        /* kijani cheusi (gradient/hover) */
    --g-3: #0a7a43;
    --g-soft: #e9f8f0;     /* mandharinyuma ya kijani hafifu */
    --g-soft-2: #d6f3e3;
    --ga: #17a75e; --gb: #0d8a4d; --gc: #0a7a43; --g-rgb: 18, 160, 92;
    --g-head: #07a062;
    --g-row: #f6fbf8;      /* hover ya mstari */      /* kichwa cha majedwali */
    --ink: #0f172a;        /* maandishi meusi */
    --ink-2: #1e293b;
    --muted: #5b6283;      /* maandishi ya pili */
    --muted-2: #8a91aa;
    --line: #e8ebf2;       /* mipaka */
    --line-2: #eef1f6;
    --page: #f6f8fb;
    --card: #ffffff;
    --blue: #2f6fec; --blue-soft: #e8f0fe;
    --amber: #f08a12; --amber-soft: #fff3e3;
    --red: #e93b42; --red-soft: #fdecec;
    --violet: #7c5cff;
    --r: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .04);
    --accent: var(--g); --accent-dark: var(--g-2); --success: var(--g); --success-dark: var(--g-2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--page); color: var(--ink-2);
    -webkit-font-smoothing: antialiased;
}
body.ux .ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; vertical-align: middle; }
body.ux .ic-sm { width: 16px; height: 16px; }
body.ux .ic-lg { width: 26px; height: 26px; }

/* ----------------------------- TOPBAR ----------------------------- */
body.ux .ux-top {
    position: sticky; top: 0; z-index: 40; flex-shrink: 0;
    display: flex; align-items: center; height: 66px; padding: 0 24px 0 0;
    background: #fff; border-bottom: 1px solid var(--line);
}
body.ux .ux-brand {
    display: flex; align-items: center; gap: 12px; width: 290px; height: 100%; padding: 0 20px 0 22px;
    border-right: 1px solid var(--line); text-decoration: none; flex: 0 0 auto;
}
body.ux .ux-logo {
    width: 43px; height: 43px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
    background: linear-gradient(160deg, var(--ga) 0%, var(--gb) 100%); color: #fff; box-shadow: 0 4px 10px rgba(var(--g-rgb), .28);
}
body.ux .ux-logo .ic { width: 24px; height: 24px; stroke-width: 2; }
body.ux .ux-brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
body.ux .ux-brand-txt b { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; }
body.ux .ux-brand-txt small { font-size: 11px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.ux .ux-burger { margin: 0 18px 0 20px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink-2); display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; }
body.ux .ux-burger:hover { background: var(--line-2); }
body.ux .ux-burger .ic { width: 24px; height: 24px; }

body.ux .ux-search {
    position: relative; display: flex; align-items: center; width: 540px; max-width: 40vw; height: 44px; padding: 0 12px 0 14px;
    background: #fff; border: 1px solid #dfe3ec; border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
body.ux .ux-search:focus-within { border-color: var(--g); box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .ux-search-ic { color: var(--ink-2); width: 19px; height: 19px; }
body.ux .ux-search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 14px; color: var(--ink); padding: 0 12px !important; }
body.ux .ux-search input::placeholder { color: #6b7280; }
body.ux .ux-search-bc { display: flex; align-items: center; height: 26px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--ink-2); cursor: pointer; }
body.ux .ux-search-bc .ic { width: 30px; height: 26px; stroke-width: 1.6; }
body.ux .tb-search-panel { top: calc(100% + 6px); left: 0; right: 0; }

body.ux .ux-top-pos { display: flex; gap: 8px; margin-left: 20px; }
body.ux .ux-chip-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
body.ux .ux-chip-btn:hover { border-color: var(--g); color: var(--g-2); background: var(--g-soft); }
body.ux .ux-chip-btn .ic { width: 17px; height: 17px; }

body.ux .ux-top-right { margin-left: auto; display: flex; align-items: center; gap: 0; }
body.ux .ux-meta { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); margin-right: 36px; white-space: nowrap; }
body.ux .ux-meta .ic { width: 15px; height: 15px; color: var(--ink-2); }
body.ux .ux-dot { width: 9px; height: 9px; border-radius: 50%; background: #1cb35f; box-shadow: 0 0 0 3px rgba(28, 179, 95, .14); display: inline-block; }
body.ux .ux-icon-btn { width: 40px; height: 40px; border: 0; background: none; color: var(--ink-2); border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-right: 26px; }
body.ux .ux-icon-btn:hover { background: var(--line-2); }
body.ux .ux-icon-btn .ic { width: 23px; height: 23px; stroke-width: 1.7; }

body.ux .ux-acct-wrap { position: relative; }
body.ux .ux-acct { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 4px 2px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
body.ux .ux-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: #1d6ff2; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; letter-spacing: .3px; }
body.ux .ux-avatar-badge { position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%; font-size: 0; background: var(--red); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
body.ux .ux-acct-txt { display: flex; flex-direction: column; line-height: 1.2; }
body.ux .ux-acct-txt b { font-size: 13.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
body.ux .ux-acct-txt small { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
body.ux .ux-acct-chev { width: 17px; height: 17px; margin-left: 8px; color: var(--ink-2); }
body.ux .ux-acct-menu { min-width: 240px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
body.ux .ux-acct-menu > a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-size: 14px; text-decoration: none; }
body.ux .ux-acct-menu > a:hover { background: var(--g-soft); color: var(--g-2); }
body.ux .ux-acct-menu > a .ic { width: 18px; height: 18px; color: var(--muted); }
body.ux .ux-acct-menu .ux-logout { color: var(--red); }
body.ux .ux-acct-menu .ux-logout .ic { color: var(--red); }
body.ux .ux-lang { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; margin: 0; }
body.ux .ux-lang-lbl { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
body.ux .ux-lang-lbl .ic { width: 18px; height: 18px; color: var(--muted); }
body.ux .ux-lang-btns { display: flex; gap: 4px; }
body.ux .ux-lang-btns button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 4px 7px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
body.ux .ux-lang-btns button.on { border-color: var(--g); color: var(--g-2); background: var(--g-soft); }
body.ux .ux-lang-btns .flag { width: 18px; height: 12px; border-radius: 2px; }
body.ux .ux-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: auto; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; }
body.ux .ux-count-amber { background: var(--amber); }

/* ----------------------------- SIDEBAR ----------------------------- */
body.ux .app-body { display: flex; flex: 1; min-height: 0; }
body.ux .ux-side { width: 228px; flex: 0 0 228px; background: #fff; border-right: 1px solid var(--line-2); overflow-y: auto; padding: 11px 0 24px; }
body.ux .ux-nav { display: flex; flex-direction: column; gap: 5px; padding: 0 14px 0 15px; }
body.ux .ux-nav-item {
    display: flex; align-items: center; gap: 0; height: 48px; padding: 0 16px 0 18px; border-radius: 9px;
    color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .12s;
}
body.ux .ux-nav-item .ic { width: 23px; height: 23px; stroke-width: 1.6; margin-right: 22px; color: var(--ink-2); }
body.ux .ux-nav-item:hover { background: var(--g-soft); color: var(--g-3); }
body.ux .ux-nav-item:hover .ic { color: var(--g-3); }
body.ux .ux-nav-item.active { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); color: #fff; box-shadow: 0 6px 14px rgba(var(--g-rgb), .30); }
body.ux .ux-nav-item.active .ic { color: #fff; }
body.ux .ux-nav-lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .ux-subnav { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 6px 0; padding-left: 41px; position: relative; }
body.ux .ux-subnav::before { content: ""; position: absolute; left: 29px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--g-soft-2); }
body.ux .ux-sub-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 13.5px; font-weight: 500; text-decoration: none; }
body.ux .ux-sub-item:hover { color: var(--g-3); background: var(--g-soft); }
body.ux .ux-sub-item.active { color: var(--g-3); background: var(--g-soft); font-weight: 600; }
body.ux .ux-side-bk { display: none; }

/* Sidebar iliyobanwa (icons tu) */
body.ux.ux-side-mini .ux-side { width: 80px; flex-basis: 80px; }
body.ux.ux-side-mini .ux-nav { padding: 0 12px; }
body.ux.ux-side-mini .ux-nav-item { justify-content: center; padding: 0; }
body.ux.ux-side-mini .ux-nav-item .ic { margin: 0; }
body.ux.ux-side-mini .ux-nav-lbl, body.ux.ux-side-mini .ux-subnav, body.ux.ux-side-mini .ux-nav-item .ux-count { display: none; }

/* Eneo la kazi */
body.ux .main-content { background: var(--page); padding: 20px 22px 28px 24px; overflow-y: auto; }
body.ux.ux-pos .main-content-full { padding: 0; background: var(--page); }

/* Vipengele vya zamani vya ganda visionekane tena */
body.ux .topbar, body.ux .sidebar, body.ux .mtopbar { display: none !important; }

/* ----------------------------- VIPENGELE VYA PAMOJA ----------------------------- */
body.ux .ux-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
body.ux .ux-page-head h1 { margin: 0; font-size: 31px; line-height: 1.2; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
body.ux .ux-page-head p { margin: 6px 0 0; font-size: 15.5px; color: var(--muted); }
body.ux .ux-head-actions { display: flex; gap: 16px; flex-wrap: wrap; }

body.ux .ux-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 20px;
    border-radius: 9px; border: 1px solid #dfe3ec; background: #fff; color: var(--ink-2);
    font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: background-color .12s, border-color .12s;
}
body.ux .ux-btn:hover { border-color: #c9cfdc; background: #fafbfd; color: var(--ink); }
body.ux .ux-btn .ic { width: 21px; height: 21px; }
body.ux .ux-btn-green { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); border-color: var(--gb); color: #fff; box-shadow: 0 4px 10px rgba(var(--g-rgb), .25); }
body.ux .ux-btn-green:hover { background: linear-gradient(180deg, var(--gc) 0%, var(--gc) 100%); border-color: var(--gc); color: #fff; }
body.ux .ux-btn-red-o { border-color: #f3a5a8; color: var(--red); }
body.ux .ux-btn-red-o:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }
body.ux .ux-btn-sm { height: 40px; padding: 0 14px; font-size: 14px; gap: 8px; }
body.ux .ux-btn-sm .ic { width: 18px; height: 18px; }

body.ux .ux-card { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); }

/* Kadi za takwimu (4 kwa mstari) */
body.ux .ux-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
body.ux .ux-stat { display: flex; gap: 22px; align-items: flex-start; padding: 18px 18px 18px 18px; min-height: 118px; }
body.ux .ux-stat-ic { width: 57px; height: 57px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
body.ux .ux-stat-ic .ic { width: 28px; height: 28px; stroke-width: 2; }
body.ux .ux-stat-ic.g { background: var(--g-soft); color: var(--g); }
body.ux .ux-stat-ic.b { background: var(--blue-soft); color: var(--blue); }
body.ux .ux-stat-ic.o { background: var(--amber-soft); color: var(--amber); }
body.ux .ux-stat-ic.r { background: var(--red-soft); color: var(--red); }
body.ux .ux-stat-body { min-width: 0; flex: 1; padding-top: 6px; }
body.ux .ux-stat-lbl { font-size: 14.5px; color: var(--ink-2); font-weight: 500; }
body.ux .ux-stat-val { font-size: 27px; font-weight: 800; line-height: 1.25; margin: 4px 0 6px; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .ux-stat-val.g { color: var(--g); } body.ux .ux-stat-val.b { color: var(--blue); } body.ux .ux-stat-val.o { color: #e2690a; } body.ux .ux-stat-val.r { color: var(--red); } body.ux .ux-stat-val.k { color: var(--ink); }
body.ux .ux-stat-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
body.ux .ux-trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 14px; color: var(--g); white-space: nowrap; }
body.ux .ux-trend .ic { width: 15px; height: 15px; stroke-width: 2.4; }
body.ux .ux-trend.down { color: var(--red); }
body.ux .ux-trend.flat { color: var(--muted-2); }

/* Mstari wa filters */
body.ux .ux-filters { display: flex; align-items: flex-end; gap: 14px; padding: 13px 14px 13px 13px; margin-bottom: 16px; }
body.ux .ux-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
body.ux .ux-field > label { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; }
body.ux .ux-input, body.ux .ux-select {
    height: 46px; width: 100%; border: 1px solid #dde2eb !important; border-radius: 8px !important; background: #fff !important;
    font: inherit; font-size: 14px !important; color: var(--ink); padding: 0 14px !important; box-shadow: none !important; outline: 0;
}
body.ux .ux-input:focus, body.ux .ux-select:focus { border-color: var(--g) !important; box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12) !important; }
body.ux .ux-input-ic { position: relative; }
body.ux .ux-input-ic > .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-2); width: 20px; height: 20px; pointer-events: none; }
body.ux .ux-input-ic > .ux-input { padding-left: 47px !important; }
body.ux .ux-input-ic > .ic.end { left: auto; right: 14px; width: 17px; height: 17px; }
body.ux .ux-select {
    -webkit-appearance: none; appearance: none; padding-right: 40px !important; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important; background-position: right 14px center !important;
}
body.ux .ux-filters .ux-btn-green { height: 46px; padding: 0 30px; flex: 0 0 auto; }

/* Mpangilio wa jedwali + paneli ya maelezo pembeni */
body.ux .ux-split { display: grid; grid-template-columns: minmax(0, 1fr) 386px; gap: 14px; align-items: start; }
body.ux .ux-split.no-panel { grid-template-columns: minmax(0, 1fr); }
body.ux .ux-tablecard { padding: 6px 6px 0; overflow: hidden; }

body.ux table.ux-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
body.ux table.ux-table thead th {
    background: #f4f6fa; color: #3b4361; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .2px;
    padding: 12px 10px; text-align: left; border: 0 !important; white-space: nowrap; cursor: default;
}
body.ux table.ux-table thead th:first-child { border-radius: 8px 0 0 8px; }
body.ux table.ux-table thead th:last-child { border-radius: 0 8px 8px 0; }
body.ux table.ux-table tbody td { padding: 10px 10px; height: 38px; border-bottom: 1px solid var(--line-2) !important; border-top: 0 !important; color: var(--ink-2); vertical-align: middle; background: #fff; }
body.ux table.ux-table tbody tr:last-child td { border-bottom: 0 !important; }
body.ux table.ux-table tbody tr.ux-row { cursor: pointer; }
body.ux table.ux-table tbody tr.ux-row:hover td { background: var(--g-row); }
body.ux table.ux-table tbody tr.ux-row.sel td { background: var(--g-soft); }
body.ux table.ux-table .num { text-align: right; font-variant-numeric: tabular-nums; }
body.ux table.ux-table .ctr { text-align: center; }
body.ux table.ux-table .mut { color: var(--muted); }
body.ux table.ux-table .code { color: #3b4c79; }
body.ux table.ux-table input[type=checkbox] { width: 17px; height: 17px; border-radius: 4px; accent-color: var(--g); margin: 0; vertical-align: middle; }
body.ux table.ux-table .ux-filter-row { display: none !important; }

body.ux .ux-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 70px; height: 26px; padding: 0 12px; border-radius: 13px; font-size: 13px; font-weight: 700; white-space: nowrap; }
body.ux .ux-badge.g { background: #d8f5e5; color: #0f9150; }
body.ux .ux-badge.o { background: #fdecc8; color: #c96a00; }
body.ux .ux-badge.r { background: #fde2e2; color: #d92d33; }
body.ux .ux-badge.n { background: #edf0f5; color: var(--muted); }
body.ux .ux-badge.lg { height: 30px; min-width: 88px; font-size: 14px; }

body.ux .ux-dots-btn { width: 37px; height: 28px; border: 1px solid #dfe3ec; border-radius: 6px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: pointer; padding: 0; }
body.ux .ux-dots-btn:hover { border-color: var(--g); color: var(--g); }
body.ux .ux-dots-btn .ic { width: 18px; height: 18px; stroke-width: 2.6; }
body.ux .ux-menu { position: fixed; z-index: 70; min-width: 210px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(16, 24, 40, .16); display: none; }
body.ux .ux-menu.open { display: block; }
body.ux .ux-menu a, body.ux .ux-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: none; border-radius: 7px; color: var(--ink-2); font: inherit; font-size: 13.5px; text-align: left; text-decoration: none; cursor: pointer; }
body.ux .ux-menu a:hover, body.ux .ux-menu button:hover { background: var(--g-soft); color: var(--g-3); }
body.ux .ux-menu .ic { width: 17px; height: 17px; color: var(--muted); }
body.ux .ux-menu .danger, body.ux .ux-menu .danger .ic { color: var(--red); }
body.ux .ux-menu .danger:hover { background: var(--red-soft); color: var(--red); }
body.ux .ux-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px 0; }

/* Pagination */
body.ux .ux-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 30px 16px 22px 16px; border-top: 1px solid var(--line-2); }
body.ux .ux-pager-info { font-size: 14px; color: var(--muted); }
body.ux .ux-pager-nav { display: flex; gap: 6px; }
body.ux .ux-pg { min-width: 41px; height: 41px; padding: 0 6px; border: 1px solid #dde2eb; border-radius: 7px; background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; text-decoration: none; }
body.ux .ux-pg:hover { border-color: var(--g); color: var(--g-2); }
body.ux .ux-pg.on { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); border-color: var(--gb); color: #fff; font-weight: 700; }
body.ux .ux-pg.dis { opacity: .45; pointer-events: none; }
body.ux .ux-pg .ic { width: 18px; height: 18px; }
body.ux .ux-pg-gap { min-width: 24px; display: inline-flex; align-items: flex-end; justify-content: center; color: var(--muted-2); }

/* Paneli ya maelezo (Sale Details / Product Details) */
body.ux .ux-panel { position: sticky; top: 10px; padding: 18px 16px 16px; }
body.ux .ux-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
body.ux .ux-panel-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
body.ux .ux-x { width: 30px; height: 30px; border: 0; background: none; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: pointer; }
body.ux .ux-x:hover { background: var(--line-2); }
body.ux .ux-panel-empty { padding: 40px 18px; text-align: center; color: var(--muted); font-size: 14px; }
body.ux .ux-panel-empty .ic { width: 40px; height: 40px; color: #b7bfd0; display: block; margin: 0 auto 10px; stroke-width: 1.4; }
body.ux .ux-kv { display: grid; grid-template-columns: 160px minmax(0, 1fr); row-gap: 7px; font-size: 13.5px; }
body.ux .ux-kv dt { color: var(--muted); font-weight: 400; }
body.ux .ux-kv dd { margin: 0; color: var(--ink-2); font-weight: 500; overflow-wrap: anywhere; }
body.ux .ux-panel-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
body.ux .ux-panel-actions.two { grid-template-columns: 1fr 1fr; }
body.ux .ux-panel-actions .ux-btn { height: 48px; padding: 0 8px; font-size: 13px; font-weight: 500; gap: 8px; }
body.ux .ux-panel-actions .ux-btn .ic { width: 22px; height: 22px; stroke-width: 1.7; }
body.ux .ux-loading { opacity: .5; pointer-events: none; transition: opacity .12s; }
body.ux #liveArea.loading { opacity: .55; }

/* ----------------------------- SIMU / SKRINI NDOGO ----------------------------- */
@media (max-width: 1400px) {
    body.ux .ux-meta-place { display: none; }
    body.ux .ux-split { grid-template-columns: minmax(0, 1fr) 350px; }
}
@media (max-width: 1200px) {
    body.ux .ux-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.ux .ux-split { grid-template-columns: minmax(0, 1fr); }
    body.ux .ux-panel { position: static; }
    body.ux .ux-meta { margin-right: 18px; }
    body.ux .ux-icon-btn { margin-right: 12px; }
}
@media (max-width: 900px) {
    body.ux .ux-top { padding-right: 12px; height: 60px; }
    body.ux .ux-brand { width: auto; border-right: 0; padding: 0 8px 0 12px; }
    body.ux .ux-brand-txt small, body.ux .ux-meta, body.ux .ux-icon-btn, body.ux .ux-acct-txt, body.ux .ux-acct-chev, body.ux .ux-top-pos span { display: none; }
    body.ux .ux-burger { order: -1; margin: 0 0 0 8px; }
    body.ux .ux-search { flex: 1; width: auto; max-width: none; margin: 0 8px; height: 40px; }
    body.ux .ux-search-bc { display: none; }
    body.ux .ux-brand-txt { display: none; }
    body.ux .ux-side { position: fixed; left: 0; top: 60px; bottom: 0; z-index: 60; transform: translateX(-100%); transition: transform .2s; box-shadow: 8px 0 24px rgba(16, 24, 40, .12); display: block; }
    body.ux.ux-side-open .ux-side { transform: none; }
    body.ux.ux-side-open .ux-side-bk { display: block; position: fixed; inset: 60px 0 0 0; background: rgba(15, 23, 42, .35); z-index: 55; }
    body.ux.ux-side-mini .ux-side { width: 228px; }
    body.ux.ux-side-mini .ux-nav-lbl { display: block; }
    body.ux .main-content { padding: 14px 12px calc(78px + env(safe-area-inset-bottom)) !important; }
    body.ux .ux-page-head { flex-direction: column; }
    body.ux .ux-page-head h1 { font-size: 25px; }
    body.ux .ux-head-actions { gap: 8px; }
    body.ux .ux-head-actions .ux-btn { height: 42px; padding: 0 12px; font-size: 14px; }
    body.ux .ux-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    body.ux .ux-stat { gap: 12px; padding: 14px; min-height: 0; }
    body.ux .ux-stat-ic { width: 44px; height: 44px; }
    body.ux .ux-stat-val { font-size: 20px; }
    body.ux .ux-filters { flex-wrap: wrap; }
    body.ux .ux-filters > .ux-field { flex: 1 1 45% !important; }
    body.ux .ux-pager { flex-direction: column; }
}

/* ============================== POS SCREEN ============================== */
body.ux.ux-pos .main-content-full { display: flex; flex-direction: column; padding: 10px 10px 12px; overflow: hidden; }
body.ux .pos-wrapper.ux-posw { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
body.ux .ux-pos-card { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; border-radius: 9px; padding: 12px 13px 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
body.ux .ux-pos-card .pos-top { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: visible; }
body.ux .ux-pos-line { display: flex; gap: 12px; align-items: stretch; margin-bottom: 9px; }
body.ux .ux-pos-field { position: relative; flex: 1; min-width: 0; }
body.ux .ux-pos-input {
    height: 52px !important; width: 100%; border: 1px solid #e2e5ec !important; border-radius: 8px !important; background: #fff !important;
    padding: 0 15px !important; font: inherit; font-size: 16px !important; font-weight: 500; color: var(--ink) !important; box-shadow: none !important; outline: 0;
}
body.ux #customerDisplay { cursor: pointer; }
body.ux .ux-pos-input:focus { border-color: var(--g) !important; box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12) !important; }
body.ux .ux-pos-field-ic > .ic { position: absolute; left: 17px; top: 26px; transform: translateY(-50%); width: 23px; height: 23px; color: var(--ink-2); z-index: 1; pointer-events: none; }
body.ux .ux-pos-field-ic > .ux-pos-input { padding-left: 62px !important; font-weight: 400; }
body.ux .ux-pos-field-ic > .ux-pos-input::placeholder { color: #5f6880; }
body.ux .ux-pos-plus {
    width: 58px; flex: 0 0 58px; height: 52px; border: 0; border-radius: 7px; cursor: pointer;
    background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(var(--g-rgb), .25);
}
body.ux .ux-pos-plus:hover { background: linear-gradient(180deg, var(--gc) 0%, var(--gc) 100%); }
body.ux .ux-pos-plus .ic { width: 27px; height: 27px; stroke-width: 2.4; }
body.ux .ux-pos-line .dropdown-menu { top: calc(100% + 4px); border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(16, 24, 40, .14); z-index: 80; }

body.ux .ux-cart { position: relative; flex: 1; min-height: 160px; margin-top: 10px; border: 1px solid #e5e8ee; border-radius: 9px; overflow-y: auto; background: #fff; }
body.ux table.ux-cart-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; margin: 0; }
body.ux table.ux-cart-table thead th {
    position: sticky; top: 0; z-index: 2; height: 52px; padding: 0 8px !important; text-align: center;
    background: var(--ga) !important; color: #fff !important; font-size: 18px; font-weight: 700; letter-spacing: 0; text-transform: none;
    border: 0 !important; border-left: 1px solid rgba(255, 255, 255, .22) !important;
}
body.ux table.ux-cart-table thead th:first-child { border-left: 0 !important; border-top-left-radius: 8px; }
body.ux table.ux-cart-table thead th:last-child { border-top-right-radius: 8px; }
body.ux table.ux-cart-table thead th .ic { width: 22px; height: 22px; stroke-width: 2.2; }
body.ux table.ux-cart-table tbody td { padding: 8px 10px !important; font-size: 15px !important; text-align: center; color: var(--ink-2); border: 0 !important; border-bottom: 1px solid var(--line-2) !important; background: #fff; vertical-align: middle; }
body.ux table.ux-cart-table tbody tr.pos-cart-row:hover td { background: var(--g-row); }
body.ux table.ux-cart-table .pos-row-num { color: var(--muted); font-weight: 500; }
body.ux table.ux-cart-table td.ux-cart-name { text-align: left; font-weight: 600; color: var(--ink); }
body.ux table.ux-cart-table td.ux-cart-sub { font-weight: 700; color: var(--ink); }
body.ux .ux-cart-edit { border: 0; background: none; padding: 2px 4px; margin-left: 4px; color: var(--muted-2); cursor: pointer; border-radius: 5px; vertical-align: middle; }
body.ux .ux-cart-edit:hover { color: var(--g); background: var(--g-soft); }
body.ux .ux-cart-edit .ic { width: 14px; height: 14px; }
body.ux .ux-qty { width: 92px !important; max-width: 100%; height: 38px !important; text-align: center; border: 1px solid #dde2eb !important; border-radius: 7px !important; font: inherit; font-size: 15px !important; font-weight: 600; padding: 0 6px !important; }
body.ux .ux-qty:focus { border-color: var(--g) !important; outline: 0; box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .ux-cart-del { width: 34px; height: 34px; border: 1px solid #f3c2c4; background: #fff; color: var(--red); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
body.ux .ux-cart-del:hover { background: var(--red); color: #fff; border-color: var(--red); }
body.ux .ux-cart-del .ic { width: 17px; height: 17px; stroke-width: 2.4; }
body.ux table.ux-cart-table .pos-debt-row td, body.ux table.ux-cart-table .pos-wallet-row td, body.ux table.ux-cart-table .pos-hastahili-row td { font-size: 14px !important; }
body.ux table.ux-cart-table .pos-debt-row td { background: #fff8ec; color: #92400e; font-weight: 600; }
body.ux table.ux-cart-table .pos-wallet-row td { background: var(--g-soft); color: var(--g-3); font-weight: 600; }
body.ux table.ux-cart-table .pos-hastahili-row td { background: var(--red-soft); color: #b42318; }

body.ux .ux-cart-empty { position: absolute; left: 0; right: 0; top: 52px; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; text-align: center; pointer-events: none; padding-bottom: 8px; }
body.ux .ux-cart-empty-ic { width: 130px; height: 130px; border-radius: 50%; background: var(--g-soft); display: flex; align-items: center; justify-content: center; color: var(--gc); margin-bottom: 22px; }
body.ux .ux-cart-empty-ic .ic { width: 52px; height: 52px; stroke-width: 2.1; }
body.ux .ux-cart-empty b { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
body.ux .ux-cart-empty span:last-child { font-size: 16px; color: #5f6880; }

body.ux .ux-pos-bottom { flex-shrink: 0; margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 82px 57px 58px; gap: 7px 12px; }
body.ux .ux-pos-bottom > .ux-pos-sum { grid-row: 1; margin-bottom: 0; }
body.ux .ux-pos-sum { display: flex; align-items: center; border-radius: 9px; padding: 0 16px 0 21px; }
body.ux .ux-pos-sum-l { background: #f1f4f7; gap: 0; }
body.ux .ux-pos-items { display: flex; align-items: center; gap: 13px; font-size: 19px; font-weight: 600; color: var(--ink); white-space: nowrap; }
body.ux .ux-pos-items b { font-size: 27px; font-weight: 800; color: var(--g-3); }
body.ux .ux-pos-sep { width: 1px; height: 42px; background: #d8dde6; margin: 0 22px 0 44px; }
body.ux .ux-pos-sum-l .pos-discount-group { margin-left: auto; display: flex; align-items: center; }
body.ux .ux-disc-chip {
    display: inline-flex !important; align-items: center; gap: 10px; height: 48px; padding: 0 24px 0 26px !important;
    background: #fff !important; border: 1px solid #e2e5ec !important; border-radius: 9px !important; color: var(--ink) !important;
    font: inherit !important; font-size: 17px !important; font-weight: 600 !important; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .06) !important;
}
body.ux .ux-disc-chip:hover { border-color: var(--g) !important; }
body.ux .ux-disc-chip .ic { width: 22px; height: 22px; color: #34405a; fill: #34405a; stroke: #fff; stroke-width: 1.4; }
body.ux .ux-disc-input { width: 150px !important; height: 48px !important; border-radius: 9px !important; border: 1px solid var(--g) !important; font-size: 17px !important; text-align: right; padding: 0 14px !important; }
body.ux .ux-pos-sum-r { background: var(--g-soft); justify-content: space-between; padding: 0 22px 0 24px; }
body.ux .ux-pos-sum-r > span:first-child { font-size: 22px; font-weight: 600; color: var(--ink); }
body.ux .ux-pos-sum-r .pos-summary-total-amount { font-size: 35px; font-weight: 800; color: var(--gc); letter-spacing: -.3px; }
body.ux .ux-pos-btn {
    display: flex; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 8px; cursor: pointer;
    color: #fff; font: inherit; font-size: 22px; font-weight: 700; letter-spacing: .1px;
}
body.ux .ux-pos-btn .ic { width: 28px; height: 28px; stroke-width: 2; }
body.ux .ux-pos-bill { grid-column: 1; grid-row: 2; background: linear-gradient(180deg, #f8bc1e 0%, #f08910 100%); box-shadow: 0 2px 6px rgba(240, 138, 18, .22); }
body.ux .ux-pos-bill:hover { filter: brightness(.97); }
body.ux .ux-pos-cancel { grid-column: 1; grid-row: 3; background: #e8333b; box-shadow: 0 2px 6px rgba(232, 51, 59, .22); }
body.ux .ux-pos-cancel:hover { background: #d92a32; }
body.ux .ux-pos-cancel .ic { width: 30px; height: 30px; stroke-width: 2.2; }
body.ux .ux-pos-pay { grid-column: 2; grid-row: 2 / 4; background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); font-size: 30px; gap: 22px; box-shadow: 0 4px 12px rgba(var(--g-rgb), .25); }
body.ux .ux-pos-pay:hover { background: linear-gradient(180deg, var(--gc) 0%, var(--gc) 100%); }
body.ux .ux-pos-pay .ic { width: 42px; height: 42px; stroke-width: 1.8; }

@media (max-width: 900px) {
    body.ux.ux-pos .main-content-full { padding: 6px 6px calc(72px + env(safe-area-inset-bottom)); overflow: auto; }
    body.ux .ux-pos-bottom { grid-template-rows: 64px 48px 48px; gap: 6px 8px; }
    body.ux .ux-pos-items { font-size: 15px; } body.ux .ux-pos-items b { font-size: 20px; }
    body.ux .ux-pos-sep { margin: 0 10px; }
    body.ux .ux-disc-chip { height: 40px; padding: 0 12px !important; font-size: 14px !important; }
    body.ux .ux-pos-sum { padding: 0 10px; }
    body.ux .ux-pos-sum-r > span:first-child { font-size: 14px; }
    body.ux .ux-pos-sum-r .pos-summary-total-amount { font-size: 20px; }
    body.ux .ux-pos-btn { font-size: 16px; gap: 8px; } body.ux .ux-pos-pay { font-size: 20px; }
    body.ux table.ux-cart-table thead th { font-size: 14px; }
}

/* POS: dirisha la Finalize Sale kwenye rangi za muundo mpya */
body.ux .modal-content:has(.fin-head) { border-radius: 16px; overflow: hidden; }
body.ux .fin-head { background: linear-gradient(90deg, var(--ga) 0%, var(--gb) 100%) !important; }
body.ux .fin-head h4, body.ux .fin-head .fin-head-x { color: #fff !important; }
body.ux .fin-head-ico { background: rgba(255, 255, 255, .18) !important; color: #fff !important; }
body.ux .fin-submit-btn { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%) !important; border: 0 !important; }
body.ux .pm-ico-btn.active { border-color: var(--g) !important; background: var(--g-soft) !important; color: var(--g-3) !important; }
body.ux .modal { background: rgba(15, 23, 42, .45); }
body.ux .modal-content { border-radius: 14px; }
body.ux .modal-content:has(.fin-head) { padding-top: 0; }
body.ux .modal-content .fin-head { margin: 0 -22px 18px !important; border-radius: 0 !important; }

/* ============================== SALES HISTORY ============================== */
body.ux .ux-date-btn { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; position: relative; padding-left: 15px !important; padding-right: 38px !important; }
body.ux .ux-date-btn > .ic:first-child { width: 20px; height: 20px; color: var(--ink-2); }
body.ux .ux-date-btn span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .ux-date-btn .ic.end { position: absolute; right: 14px; width: 17px; height: 17px; }
body.ux .ux-date-pop { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 330px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(16, 24, 40, .16); }
body.ux .ux-date-pop.open { display: block; }
body.ux .ux-date-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
body.ux .ux-date-presets button { height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
body.ux .ux-date-presets button:hover { border-color: var(--g); background: var(--g-soft); color: var(--g-3); }
body.ux .ux-date-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; }
body.ux .ux-date-custom label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0; }
body.ux .ux-date-custom .ux-input { height: 38px; padding: 0 8px !important; font-size: 13px !important; }
body.ux .ux-date-custom .ux-btn { grid-column: 1 / -1; }

body.ux #salesTable .ux-dt { color: #3b4c79; border-bottom: 1px dashed #b9c1d6; padding-bottom: 1px; }
body.ux #salesTable td:nth-child(3) { font-weight: 500; color: var(--ink); white-space: nowrap; }
body.ux #salesTable td:nth-child(4) { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .ux-sort { font-size: 10px; color: var(--muted-2); }
body.ux #salesTable tbody td { height: 37.6px; padding-top: 6px; padding-bottom: 6px; }

body.ux .ux-sd-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 0 12px; background: var(--g-soft); border-radius: 9px; }
body.ux .ux-sd-ic { width: 44px; height: 44px; border-radius: 9px; background: var(--g-soft-2); color: var(--g); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
body.ux .ux-sd-ic .ic { width: 23px; height: 23px; }
body.ux .ux-sd-ref { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.ux .ux-sd-ref b { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .ux-sd-ref small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
body.ux .ux-badge-solid { background: linear-gradient(180deg, #17a75e 0%, #0d8a4d 100%); color: #fff; }
body.ux .ux-sd-kv { padding: 0 6px 12px; }
body.ux .ux-sd-items { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 6px; }
body.ux .ux-sd-items thead th { background: #f4f6fa; color: #3b4361; font-size: 11.5px; font-weight: 600; text-transform: uppercase; padding: 8px 6px; text-align: left; }
body.ux .ux-sd-items thead th:first-child { border-radius: 7px 0 0 7px; padding-left: 10px; } body.ux .ux-sd-items thead th:last-child { border-radius: 0 7px 7px 0; padding-right: 8px; }
body.ux .ux-sd-items td { padding: 8px 6px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--ink-2); }
body.ux .ux-sd-items td:first-child { padding-left: 10px; } body.ux .ux-sd-items td:last-child { padding-right: 8px; }
body.ux .ux-sd-items .num { text-align: right; white-space: nowrap; } body.ux .ux-sd-items .ctr { text-align: center; } body.ux .ux-sd-items .mut { color: var(--muted); }
body.ux .ux-sd-pname { font-weight: 500; color: var(--ink); line-height: 1.25; }
body.ux .ux-sd-psub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
body.ux .ux-sd-sums { padding: 6px 6px 8px; }
body.ux .ux-sd-sums > div { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; color: var(--ink-2); }
body.ux .ux-sd-sums > div b { font-weight: 700; color: var(--ink); }
body.ux .ux-sd-sums > div.due b { color: var(--red); }
body.ux .ux-sd-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--g-soft); border-radius: 9px; }
body.ux .ux-sd-total span { font-size: 21px; font-weight: 800; color: var(--ink); }
body.ux .ux-sd-total b { font-size: 24px; font-weight: 800; color: var(--gc); }
body.ux .ux-stat { gap: 18px; }
body.ux .ux-stat-val { font-size: 25px; letter-spacing: -.6px; }
body.ux table.ux-table thead th, body.ux table.ux-table tbody td { padding-left: 7px; padding-right: 7px; }
body.ux table.ux-table thead th:first-child, body.ux table.ux-table tbody td:first-child { padding-left: 12px; }
body.ux #salesTable td:nth-child(2), body.ux #salesTable td:nth-child(3) { white-space: nowrap; }
body.ux #salesTable td:nth-child(3) { font-size: 13.5px; }
body.ux #salesTable td:nth-child(4) { max-width: 150px; }
body.ux #salesTable .ux-badge { min-width: 64px; }
@media (max-width: 1500px) { body.ux #salesTable td:nth-child(3) { font-size: 12.5px; } }
body.ux .ux-card, body.ux .ux-card * { box-sizing: border-box; }
body.ux .ux-stat { min-height: 124px; }
body.ux .ux-panel-actions { gap: 8px; }
body.ux .ux-panel-actions .ux-btn { min-width: 0; padding: 0 6px; font-size: 12.5px; gap: 6px; }
body.ux .ux-panel-actions .ux-btn .ic { width: 20px; height: 20px; }

/* ============================== PRODUCTS ============================== */
body.ux #productsTable tbody td { height: 38.8px; padding-top: 6px; padding-bottom: 6px; }
body.ux #productsTable .ux-pname { color: var(--ink); font-weight: 500; }
body.ux #productsTable td.code { font-size: 13.5px; white-space: nowrap; }
body.ux #productsTable td.num { white-space: nowrap; }
body.ux .ux-chip { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 600; vertical-align: 1px; }
body.ux .ux-bulkbar { display: none; align-items: center; gap: 6px; flex-wrap: wrap; margin: -4px 0 14px; padding: 8px 10px; background: #fff; border: 1px solid var(--g-soft-2); border-left: 4px solid var(--g); border-radius: 10px; box-shadow: var(--shadow); font-size: 13.5px; }
body.ux .ux-bulkbar.show { display: flex; }
body.ux .ux-bulkbar > span { margin-right: 8px; color: var(--ink-2); } body.ux .ux-bulkbar > span b { color: var(--g-3); }
body.ux .ux-bulkbar button, body.ux .ux-bulk-link { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; text-decoration: none; }
body.ux .ux-bulkbar button:hover, body.ux .ux-bulk-link:hover { border-color: var(--g); color: var(--g-3); }
body.ux .ux-bulkbar .ic { width: 15px; height: 15px; }
body.ux .ux-bulkbar .danger { color: var(--red); } body.ux .ux-bulkbar .danger:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
body.ux .ux-bulk-link { margin-left: auto; border-color: transparent; color: var(--muted); }

body.ux .ux-pd-head { display: flex; align-items: center; gap: 14px; margin: 4px 0 18px; }
body.ux .ux-pd-ic { width: 54px; height: 54px; border-radius: 10px; background: var(--g-soft); color: var(--g); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
body.ux .ux-pd-ic .ic { width: 30px; height: 30px; stroke-width: 1.8; }
body.ux .ux-pd-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.ux .ux-pd-name b { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.25; }
body.ux .ux-pd-name small { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
body.ux .ux-pd-head .ux-btn { height: 42px; padding: 0 16px; flex: 0 0 auto; }
body.ux .ux-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -2px 16px; }
body.ux .ux-tabs button { flex: 0 0 auto; border: 0; background: none; padding: 10px 14px 11px; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
body.ux .ux-tabs button:hover { color: var(--ink); }
body.ux .ux-tabs button.on { color: var(--g-3); font-weight: 600; border-bottom-color: var(--g); }
body.ux .ux-pd-kv { grid-template-columns: 156px minmax(0, 1fr); row-gap: 11px; padding: 0 6px 6px; font-size: 14px; }
body.ux .ux-pd-kv dt.ux-pd-st, body.ux .ux-pd-kv dd.ux-pd-st { padding: 3px 0 6px; }
body.ux .ux-pd-kv dt.ux-pd-st { align-self: center; }
body.ux .ux-pd-sec { margin: 14px 0 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .3px; }
body.ux .ux-ok { color: var(--g); }
body.ux .ux-link { display: inline-flex; align-items: center; gap: 6px; color: var(--g-3); font-size: 13.5px; font-weight: 600; text-decoration: none; }
body.ux .ux-hist { list-style: none; margin: 0; padding: 0; max-height: 330px; overflow-y: auto; }
body.ux .ux-hist li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 4px; border-bottom: 1px solid var(--line-2); }
body.ux .ux-hist-q { min-width: 62px; text-align: center; padding: 3px 6px; border-radius: 6px; font-weight: 700; font-size: 13px; }
body.ux .ux-hist-q.pos { background: #d8f5e5; color: #0f9150; } body.ux .ux-hist-q.neg { background: #fde2e2; color: #d92d33; }
body.ux .ux-hist-t { display: flex; flex-direction: column; min-width: 0; }
body.ux .ux-hist-t b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
body.ux .ux-hist-t small { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.ux #prodPanel .ux-panel-actions .ux-btn { font-size: 14px; height: 48px; }
/* Sales History: kadi juu ya vichujio (kama picha) huku kadi zikibadilika pamoja na jedwali (liveArea) */
body.ux .ux-flow { display: flex; flex-direction: column; }
body.ux .ux-flow > #liveArea { display: contents; }
body.ux .ux-flow .ux-stats { order: 1; }
body.ux .ux-flow > form { order: 2; }
body.ux .ux-flow .ux-split { order: 3; }

/* ============================== DASHBOARD ============================== */
body.ux .ux-dash-head { margin-bottom: 20px; }
body.ux .ux-dash-head h1 { font-size: 30px; }
body.ux .ux-datechip { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; background: #fff; border: 1px solid #dfe3ec; border-radius: 9px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); white-space: nowrap; }
body.ux .ux-datechip:hover { border-color: var(--g); }
body.ux .ux-datechip .ic { width: 20px; height: 20px; } body.ux .ux-datechip .ic-sm { width: 16px; height: 16px; margin-left: 12px; }
body.ux .ux-link-card { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
body.ux .ux-link-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
body.ux .ux-muted-ic { color: var(--muted); }
body.ux .ux-dash-stats .ux-stat-val { font-size: 27px; }

body.ux .ux-dcard { padding: 18px 20px; min-width: 0; }
body.ux .ux-dcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
body.ux .ux-dcard-head h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
body.ux .ux-dcard-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
body.ux .ux-va { font-size: 12.5px; font-weight: 700; color: var(--g); text-decoration: none; white-space: nowrap; margin-top: 3px; }
body.ux .ux-va:hover { text-decoration: underline; }
body.ux .ux-mini-select { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 1px solid #dfe3ec; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
body.ux .ux-chart-box { position: relative; height: 196px; }

body.ux .ux-dash-row2 { display: grid; grid-template-columns: 1.68fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }
body.ux .ux-dash-row3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
body.ux .ux-dash-row4 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }

body.ux table.ux-mtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
body.ux table.ux-mtable thead th { background: #f4f6fa; color: #3b4361; font-size: 11.5px; font-weight: 600; text-transform: uppercase; padding: 9px 8px; text-align: left; letter-spacing: .2px; }
body.ux table.ux-mtable thead th:first-child { border-radius: 7px 0 0 7px; padding-left: 10px; } body.ux table.ux-mtable thead th:last-child { border-radius: 0 7px 7px 0; }
body.ux table.ux-mtable td { padding: 9px 8px; color: var(--ink-2); border-bottom: 1px solid transparent; white-space: nowrap; }
body.ux table.ux-mtable td:first-child { padding-left: 10px; }
body.ux table.ux-mtable td:nth-child(2) { white-space: normal; }
body.ux table.ux-mtable .num { text-align: right; } body.ux table.ux-mtable .ctr { text-align: center; } body.ux table.ux-mtable .mut { color: var(--muted); }
body.ux table.ux-mtable .ux-red { color: var(--red); font-weight: 600; }
body.ux .ux-mdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 12px; vertical-align: 1px; }
body.ux .ux-mdot.r { background: var(--red); } body.ux .ux-mdot.o { background: var(--amber); }
body.ux table.ux-recent td { border-bottom: 1px solid var(--line-2); }
body.ux table.ux-recent tr.ux-click { cursor: pointer; } body.ux table.ux-recent tr.ux-click:hover td { background: var(--g-row); }
body.ux .ux-badge.sm { height: 22px; min-width: 66px; font-size: 12px; padding: 0 10px; }

body.ux .ux-mini { display: flex; align-items: flex-start; gap: 14px; padding: 18px; min-height: 150px; position: relative; overflow: hidden; }
body.ux .ux-stat-ic.sm { width: 50px; height: 50px; } body.ux .ux-stat-ic.sm .ic { width: 25px; height: 25px; }
body.ux .ux-mini-body { min-width: 0; flex: 1; position: relative; z-index: 1; }
body.ux .ux-mini-lbl { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
body.ux .ux-mini-val { font-size: 21px; font-weight: 800; color: var(--ink); margin: 6px 0 10px; letter-spacing: -.3px; white-space: nowrap; }
body.ux .ux-mini-chart { position: absolute; right: 16px; bottom: 16px; width: 104px; height: 74px; }
body.ux .ux-mini-chart.wide { left: 20px; width: auto; height: 60px; bottom: 12px; }
body.ux .ux-mini:has(.ux-mini-chart.wide) .ux-mini-body { padding-bottom: 56px; }
body.ux .ux-donut-card { flex-direction: column; gap: 8px; }
body.ux .ux-donut-card h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
body.ux .ux-donut { display: flex; align-items: center; gap: 26px; width: 100%; }
body.ux .ux-donut-c { position: relative; width: 92px; height: 92px; flex: 0 0 auto; }
body.ux .ux-donut-c b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: var(--ink); }
body.ux .ux-donut ul { list-style: none; margin: 0; padding: 0; flex: 1; }
body.ux .ux-donut li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); padding: 7px 0; }
body.ux .ux-donut li i { width: 10px; height: 10px; border-radius: 50%; } body.ux .ux-donut li i.g { background: var(--g); } body.ux .ux-donut li i.r { background: var(--red); }
body.ux .ux-donut li span { margin-left: auto; color: var(--muted); }

body.ux .ux-events { list-style: none; margin: 0; padding: 0; }
body.ux .ux-events li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 13.5px; color: var(--ink-2); }
body.ux .ux-ev-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
body.ux .ux-ev-dot2 { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
body.ux .ux-ev-dot.g, body.ux .ux-ev-dot2.g { background: #1cb35f; } body.ux .ux-ev-dot.o, body.ux .ux-ev-dot2.o { background: var(--amber); } body.ux .ux-ev-dot.r, body.ux .ux-ev-dot2.r { background: var(--red); }
body.ux .ux-ev-time { color: var(--muted); width: 50px; flex: 0 0 auto; padding-left: 10px; }
body.ux .ux-ev-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1300px) {
    body.ux .ux-dash-row2 { grid-template-columns: 1fr 1fr; } body.ux .ux-dash-row2 > :first-child { grid-column: 1 / -1; }
    body.ux .ux-dash-row3 { grid-template-columns: 1fr 1fr; }
    body.ux .ux-dash-row4 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) { body.ux .ux-dash-row2, body.ux .ux-dash-row3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
    body.ux .ux-pos-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    body.ux .ux-pos-sum-r { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
    body.ux .ux-pos-sum-l { padding: 0 8px; } body.ux .ux-pos-sep { display: none; }
    body.ux .ux-pos-items { gap: 6px; }
    body.ux .ux-disc-chip { margin-left: 6px; padding: 0 10px !important; }
    body.ux .ux-pos-pay .ic { width: 28px; height: 28px; } body.ux .ux-pos-pay { gap: 10px; }
    body.ux table.ux-cart-table thead th { font-size: 12.5px; padding: 0 3px !important; }
    body.ux .ux-qty { width: 54px !important; }
    body.ux .mn.on, body.ux .mn.on i { color: var(--g) !important; }
    body.ux .mn-fab { background: linear-gradient(180deg, var(--ga), var(--gb)) !important; box-shadow: 0 6px 14px rgba(var(--g-rgb), .35) !important; }
}
@media (max-width: 1600px) { body.ux #salesTable td:nth-child(3) { font-size: 12.5px; } body.ux #salesTable th:last-child, body.ux #salesTable td:last-child { padding-right: 6px; } }


/* ============================== THEMES (rangi kuu) ============================== */
body.ux[data-ux-theme="bluu"]     { --g: #2f6fec; --ga: #3b82f6; --gb: #1d5fd6; --gc: #1a4fb8; --g-2: #1d5fd6; --g-3: #1a4fb8; --g-soft: #eaf1fe; --g-soft-2: #d4e3fd; --g-rgb: 47, 111, 236; --g-head: #2f6fec; --g-row: #f5f8fe; }
body.ux[data-ux-theme="zambarau"] { --g: #7c4ff0; --ga: #8b5cf6; --gb: #6d3ee0; --gc: #5b2fc7; --g-2: #6d3ee0; --g-3: #5b2fc7; --g-soft: #f1ecfe; --g-soft-2: #e2d8fd; --g-rgb: 124, 79, 240; --g-head: #7c4ff0; --g-row: #f8f6fe; }
body.ux[data-ux-theme="chungwa"]  { --g: #ef6c0e; --ga: #f97316; --gb: #dd5a06; --gc: #c2500a; --g-2: #dd5a06; --g-3: #c2500a; --g-soft: #fff1e6; --g-soft-2: #ffe0c7; --g-rgb: 239, 108, 14; --g-head: #ef6c0e; --g-row: #fff9f4; }
body.ux[data-ux-theme="navy"]     { --g: #24345c; --ga: #2c3f6e; --gb: #16213f; --gc: #121c38; --g-2: #16213f; --g-3: #121c38; --g-soft: #eceff6; --g-soft-2: #d9deea; --g-rgb: 30, 43, 79; --g-head: #24345c; --g-row: #f6f7fa; }
body.ux[data-ux-theme] { --accent: var(--g); --accent-dark: var(--g-2); --accent-light: var(--ga); }

/* ============================== TOPBAR (toleo la 2) ============================== */
body.ux .ux-brand { gap: 10px; padding: 0 18px 0 12px; width: 290px; }
body.ux .ux-brand .ux-burger { margin: 0; flex: 0 0 auto; }
body.ux .ux-brand-link { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
body.ux.ux-pos .ux-brand { padding-left: 22px; }
body.ux .ux-top-right { gap: 0; }
body.ux .ux-pos-pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 13px; margin-right: 26px; border-radius: 10px; background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .4px; text-decoration: none; box-shadow: 0 4px 10px rgba(var(--g-rgb), .28); }
body.ux .ux-pos-pill:hover { filter: brightness(1.06); color: #fff; }
body.ux .ux-pos-pill .ic { width: 19px; height: 19px; stroke-width: 2.1; }
body.ux .ux-pos-pill.on { box-shadow: 0 0 0 3px rgba(var(--g-rgb), .2); }
body.ux .ux-clock { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 14px; margin-right: 18px; border-radius: 10px; background: var(--page); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
body.ux .ux-clock .ic { width: 18px; height: 18px; color: var(--g); }
body.ux .ux-clock b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
body.ux .ux-clock b span { margin-left: 6px; padding-left: 8px; border-left: 1px solid #d5dae4; color: var(--g-3); font-weight: 700; }
body.ux .ux-icon-btn { margin-right: 8px; }
body.ux .ux-lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; margin-right: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink-2); }
body.ux .ux-lang-btn:hover { border-color: var(--g); }
body.ux .ux-lang-btn .flag { width: 22px; height: 15px; border-radius: 3px; }
body.ux .ux-lang-menu, body.ux .ux-theme-menu { min-width: 190px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(16, 24, 40, .14); }
body.ux .ux-lang-menu form { margin: 0; }
body.ux .ux-lang-menu button, body.ux .ux-theme-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: left; }
body.ux .ux-lang-menu button:hover, body.ux .ux-theme-opt:hover { background: var(--g-soft); }
body.ux .ux-lang-menu button.on { color: var(--g-3); font-weight: 700; background: var(--g-soft); }
body.ux .ux-lang-menu .flag { width: 22px; height: 15px; border-radius: 3px; }
body.ux .ux-dd-title { padding: 6px 11px 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
body.ux .ux-theme-opt i { width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
body.ux .ux-theme-opt .ux-th-ok { margin-left: auto; width: 17px; height: 17px; color: var(--g); visibility: hidden; }
body.ux .ux-theme-opt.on { font-weight: 700; } body.ux .ux-theme-opt.on .ux-th-ok { visibility: visible; }
body.ux .ux-avatar { background: var(--g-soft); color: var(--g-3); box-shadow: inset 0 0 0 2px var(--g-soft-2); }
body.ux .ux-avatar .ic { width: 24px; height: 24px; stroke-width: 1.9; }
body.ux .ux-acct-txt b { font-size: 15px; }
body.ux .ux-acct-head { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
body.ux .ux-acct-head b { font-size: 14px; color: var(--ink); } body.ux .ux-acct-head small { font-size: 12px; color: var(--muted); }

/* ============================== SIDEBAR (makundi) ============================== */
body.ux .ux-nav-toggle { width: 100%; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-align: left; }
body.ux .ux-nav-toggle.active { background: none; color: var(--g-3); box-shadow: none; }
body.ux .ux-nav-toggle.active .ic { color: var(--g-3); }
body.ux .ux-nav-chev { width: 16px !important; height: 16px !important; margin: 0 !important; color: var(--muted-2) !important; transition: transform .15s; }
body.ux .ux-nav-group.open > .ux-nav-toggle .ux-nav-chev { transform: rotate(180deg); }
body.ux .ux-nav-group .ux-subnav { display: none; }
body.ux .ux-nav-group.open .ux-subnav { display: flex; }
body.ux .ux-nav-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 10px; }
body.ux .ux-sub-item.active { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); color: #fff; box-shadow: 0 4px 10px rgba(var(--g-rgb), .25); }
body.ux .ux-sub-item.active .ux-count { background: #fff; color: var(--red); }
body.ux.ux-side-hidden .ux-side, body.ux.ux-side-hidden .ux-side-bk { display: none; }
@media (max-width: 1280px) { body.ux .ux-clock b span { display: none; } body.ux .ux-pos-pill { margin-right: 12px; } body.ux .ux-clock { margin-right: 10px; } body.ux .ux-lang-btn { margin-right: 10px; } }
@media (max-width: 900px) {
    body.ux .ux-clock, body.ux .ux-lang-btn span { display: none; }
    body.ux .ux-brand { width: auto; padding: 0 6px 0 8px; }
    body.ux .ux-pos-pill { margin-right: 8px; padding: 0 10px; }
    body.ux.ux-side-hidden .ux-side { display: block; }
}
body.ux .ux-side { width: 244px; flex-basis: 244px; }
body.ux .ux-nav-item .ic { margin-right: 18px; }
body.ux .ux-subnav { padding-left: 39px; } body.ux .ux-subnav::before { left: 27px; }

/* ============================== POS v2: mistari 10 bila scroll ============================== */
body.ux.ux-pos .ux-top { height: 58px; }
body.ux.ux-pos .main-content-full { padding: 8px 10px 10px; }
body.ux .ux-pos-card { padding: 10px 12px 12px; }
body.ux .ux-pos-line { margin-bottom: 8px; gap: 10px; }
body.ux .ux-pos-input { height: 44px !important; font-size: 15px !important; }
body.ux .ux-pos-plus { height: 44px; width: 52px; flex-basis: 52px; }
body.ux .ux-pos-plus .ic { width: 24px; height: 24px; }
/* Search ya bidhaa: muundo wa search ya topbar (icon kushoto + barcode kulia) */
body.ux .ux-pos-search { display: flex; align-items: center; height: 46px; padding: 0 12px 0 14px; background: #fff; border: 1px solid #dfe3ec; border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
body.ux .ux-pos-search:focus-within { border-color: var(--g); box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .ux-pos-search .ux-ps-ic { width: 20px; height: 20px; color: var(--ink-2); }
body.ux .ux-pos-search .ux-pos-input { height: 100% !important; border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 12px !important; flex: 1; min-width: 0; }
body.ux .ux-ps-bc { display: flex; align-items: center; height: 26px; padding-left: 14px; border-left: 1px solid var(--line); color: var(--ink-2); cursor: pointer; }
body.ux .ux-ps-bc .ic { width: 30px; height: 26px; stroke-width: 1.6; }
body.ux .ux-pos-search + .ux-pos-plus, body.ux .ux-pos-line:nth-child(2) .ux-pos-plus { height: 46px; }
body.ux .ux-pos-search .dropdown-menu { left: 0; right: 0; }

body.ux .ux-cart { margin-top: 2px; min-height: 0; }
body.ux table.ux-cart-table thead th { height: 42px; font-size: 16px; }
body.ux table.ux-cart-table tbody td { height: 36px; padding: 0 10px !important; font-size: 14.5px !important; }
body.ux table.ux-cart-table tbody tr.pos-cart-row:nth-child(even) td { background: #fafbfc; }
body.ux .ux-qty { height: 28px !important; width: 84px !important; font-size: 14px !important; }
body.ux .ux-cart-del { width: 28px; height: 28px; } body.ux .ux-cart-del .ic { width: 15px; height: 15px; }
body.ux .ux-cart-empty { top: 42px; }
body.ux .ux-cart-empty-ic { width: 104px; height: 104px; margin-bottom: 16px; } body.ux .ux-cart-empty-ic .ic { width: 44px; height: 44px; }
body.ux .ux-pos-bottom { margin-top: 10px; grid-template-rows: 62px 48px 48px; gap: 6px 10px; }
body.ux .ux-pos-items { font-size: 17px; } body.ux .ux-pos-items b { font-size: 24px; }
body.ux .ux-pos-sep { height: 34px; margin: 0 18px 0 30px; }
body.ux .ux-disc-chip { height: 42px; font-size: 15.5px !important; padding: 0 20px !important; }
body.ux .ux-pos-sum-r > span:first-child { font-size: 19px; }
body.ux .ux-pos-sum-r .pos-summary-total-amount { font-size: 30px; }
body.ux .ux-pos-btn { font-size: 19px; gap: 14px; } body.ux .ux-pos-btn .ic { width: 24px; height: 24px; }
body.ux .ux-pos-pay { font-size: 26px; } body.ux .ux-pos-pay .ic { width: 36px; height: 36px; }

/* Skrini fupi (laptop 1366x768 / 1536x864): bado mistari 10 */
@media (min-width: 901px) and (max-height: 820px) {
    body.ux.ux-pos .ux-top { height: 52px; }
    body.ux.ux-pos .main-content-full { padding: 6px 8px 8px; }
    body.ux .ux-pos-card { padding: 8px 10px 10px; }
    body.ux .ux-pos-line { margin-bottom: 6px; }
    body.ux .ux-pos-input, body.ux .ux-pos-plus { height: 38px !important; }
    body.ux .ux-pos-search { height: 40px; } body.ux .ux-pos-line:nth-child(2) .ux-pos-plus { height: 40px !important; }
    body.ux table.ux-cart-table thead th { height: 36px; font-size: 15px; }
    body.ux .ux-cart-empty { top: 36px; }
    body.ux table.ux-cart-table tbody td { height: 31px; font-size: 14px !important; }
    body.ux .ux-qty, body.ux .ux-cart-del { height: 25px !important; }
    body.ux .ux-pos-bottom { margin-top: 8px; grid-template-rows: 50px 40px 40px; gap: 5px 8px; }
    body.ux .ux-disc-chip { height: 36px; }
    body.ux .ux-pos-items b { font-size: 21px; } body.ux .ux-pos-sum-r .pos-summary-total-amount { font-size: 26px; }
    body.ux .ux-pos-btn { font-size: 17px; } body.ux .ux-pos-pay { font-size: 22px; }
    body.ux .ux-cart-empty-ic { width: 80px; height: 80px; margin-bottom: 10px; } body.ux .ux-cart-empty-ic .ic { width: 34px; height: 34px; }
}
@media (min-width: 901px) and (max-height: 690px) {
    body.ux table.ux-cart-table tbody td { height: 27px; font-size: 13.5px !important; }
    body.ux .ux-qty, body.ux .ux-cart-del { height: 22px !important; }
    body.ux .ux-pos-bottom { grid-template-rows: 44px 34px 34px; }
    body.ux .ux-pos-input, body.ux .ux-pos-plus { height: 34px !important; } body.ux .ux-pos-search { height: 36px; } body.ux .ux-pos-line:nth-child(2) .ux-pos-plus { height: 36px !important; }
    body.ux table.ux-cart-table thead th { height: 32px; font-size: 14px; } body.ux .ux-cart-empty { top: 32px; }
    body.ux .ux-disc-chip { height: 32px; font-size: 14px !important; }
}

/* ============================== FINALIZE SALE: yote ndani ya skrini ============================== */
body.ux #finalizeModal { align-items: center; padding: 12px 0; overflow: hidden; }
body.ux #finalizeModal .modal-dialog { max-height: calc(100vh - 24px); display: flex; }
body.ux #finalizeModal .modal-content { display: flex; flex-direction: column; max-height: calc(100vh - 24px); width: 100%; padding-bottom: 14px; }
body.ux #finalizeModal .finalize-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px; }
body.ux #finalizeModal .fin-head { flex: 0 0 auto; padding: 12px 20px !important; margin-bottom: 12px !important; }
body.ux #finalizeModal .fin-total-banner { flex: 0 0 auto; padding: 8px 14px; margin-bottom: 12px; }
body.ux #finalizeModal .fin-total-banner b { font-size: 30px; }
body.ux #finalizeModal .fin-submit-btn { flex: 0 0 auto; margin-top: 10px !important; }
body.ux #finalizeModal .modal-content > button { flex: 0 0 auto; }
@media (max-height: 760px) {
    body.ux #finalizeModal .qc-btn { padding-top: 6px; padding-bottom: 6px; }
    body.ux #finalizeModal textarea.form-control { min-height: 44px !important; height: 44px; }
    body.ux #finalizeModal .fin-total-banner b { font-size: 24px; }
}
@media (max-height: 820px) {
    body.ux #finalizeModal .pm-ico-btn { padding: 8px 6px; gap: 4px; }
    body.ux #finalizeModal .pay-amount-row .payAmount { height: 48px; font-size: 22px; }
    body.ux #finalizeModal .payAddBtn { height: 48px; }
    body.ux #finalizeModal button.fin-submit-btn { padding-top: 10px; padding-bottom: 10px; }
    body.ux #finalizeModal .modal-content > button.btn-secondary.btn-block { padding-top: 8px; padding-bottom: 8px; }
    body.ux #finalizeModal .qc-btn { padding-top: 7px; padding-bottom: 7px; }
    body.ux #finalizeModal .fin-totals-tbl td { padding-top: 7px !important; padding-bottom: 7px !important; }
}

/* =====================================================================
   LISTS ZOTE ZA MFUMO = MUUNDO WA LIST PRODUCTS
   Kurasa za zamani (Customers, Suppliers, Purchases, Expenses, Users, Stock, Amana, Reports...)
   zinatumia .section-header/.list-toolbar/table.table - hapa zinavaa muundo mmoja na List Products:
   kichwa kikubwa, toolbar ya kadi nyeupe, jedwali la kadi lenye mstari wa kichwa wa KIJANI.
   ===================================================================== */
body.ux .ux-table thead th { background: var(--g-head) !important; color: #fff !important; font-weight: 700; letter-spacing: .3px; }
body.ux .ux-table thead th .ux-sort { color: rgba(255, 255, 255, .7); }
body.ux .ux-table thead input[type=checkbox] { accent-color: #fff; }
body.ux .ux-split.no-panel > .ux-panel { display: none; }

body.ux .main-content .breadcrumb-bar { display: none; }
body.ux .main-content .section-header, body.ux .main-content .page-header {
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    height: auto; margin: 4px 0 14px; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
body.ux .main-content .section-header h4, body.ux .main-content .page-header h2, body.ux .main-content .page-header h3, body.ux .main-content .page-header h4 {
    display: flex; align-items: center; height: auto; margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--ink); letter-spacing: -.3px; text-transform: none;
}
body.ux .main-content .section-header h4 i, body.ux .main-content .page-header h2 i, body.ux .main-content .page-header h3 i { display: none; }
body.ux .main-content .section-header .btn, body.ux .main-content .page-header .btn { height: 42px; padding: 0 16px; border-radius: 9px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
/* Maelezo ya maneno tu = kichwa kidogo; maelezo yenye fomu = kadi nyeupe */
body.ux .main-content .section-desc { border: 1px solid var(--line-2) !important; border-radius: var(--r) !important; background: #fff; box-shadow: var(--shadow); padding: 20px 22px !important; margin-bottom: 16px; color: var(--ink-2) !important; }
body.ux .main-content .section-desc:not(:has(*)) { border: 0 !important; background: none; box-shadow: none; padding: 0 !important; margin: -8px 0 16px; font-size: 15px !important; color: var(--muted) !important; }
body.ux .main-content .section-desc > p.text-muted.small:first-child { margin: -20px -22px 18px; padding: 10px 22px; background: var(--g-soft); border-bottom: 1px solid var(--line-2); border-radius: 12px 12px 0 0; }

body.ux .main-content .list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; background: #fff; border: 1px solid var(--line-2) !important; border-radius: var(--r); box-shadow: var(--shadow); font-size: 14px; color: var(--ink-2); }
body.ux .main-content .list-toolbar input[type=text], body.ux .main-content .list-toolbar input[type=search], body.ux .main-content .list-toolbar input[type=date], body.ux .main-content .list-toolbar select {
    height: 42px; border: 1px solid #dde2eb !important; border-radius: 8px !important; background-color: #fff; padding: 0 12px !important; font: inherit; font-size: 14px; color: var(--ink); box-shadow: none !important; outline: 0; min-width: 0;
}
body.ux .main-content .list-toolbar input[type=text], body.ux .main-content .list-toolbar input[type=search] { min-width: 300px; padding-left: 40px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 13px center; }
body.ux .main-content .list-toolbar input:focus, body.ux .main-content .list-toolbar select:focus { border-color: var(--g) !important; box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12) !important; }
body.ux .main-content .list-toolbar .btn { height: 42px; padding: 0 16px; border-radius: 8px; font-weight: 600; }
body.ux .main-content .live-count { color: var(--muted); font-size: 13.5px; margin: 0 2px 10px; }

body.ux .main-content table.table {
    width: 100%; border-collapse: separate !important; border-spacing: 0; margin-bottom: 14px; background: #fff;
    border: 1px solid var(--line-2) !important; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; font-size: 14px;
}
body.ux .main-content table.table > thead > tr > th, body.ux .main-content table.table > tr > th, body.ux .main-content table.table > tbody > tr > th {
    background: var(--g-head) !important; color: #fff !important; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
    padding: 12px 12px !important; border: 0 !important; white-space: nowrap; vertical-align: middle;
}
body.ux .main-content table.table > thead > tr > th a { color: #fff; }
body.ux .main-content table.table td { padding: 10px 12px !important; border: 0 !important; border-bottom: 1px solid var(--line-2) !important; background: #fff !important; color: var(--ink-2); vertical-align: middle; }
body.ux .main-content table.table tbody tr:last-child td { border-bottom: 0 !important; }
body.ux .main-content table.table tbody tr:hover td { background: var(--g-row) !important; }
body.ux .main-content table.table tfoot td, body.ux .main-content table.table tr.totals-row td { background: var(--g-soft) !important; font-weight: 700; color: var(--ink); }
body.ux .main-content table.table th:first-child { border-top-left-radius: 0 !important; } body.ux .main-content table.table th:last-child { border-top-right-radius: 0 !important; }
body.ux .main-content table.table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--g); }
body.ux .main-content table.table thead input[type=checkbox] { accent-color: #fff; }
body.ux .main-content table.table .smart-filter-row th, body.ux .main-content table.table tr.filter-row th { background: var(--g-soft) !important; padding: 6px 8px !important; }

body.ux .main-content .btn-primary, body.ux .main-content .btn-success { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%) !important; border-color: var(--gb) !important; color: #fff !important; }
body.ux .main-content .btn-secondary { background: #fff; border: 1px solid #dfe3ec; color: var(--ink-2); }
body.ux .main-content .btn-secondary:hover { border-color: var(--g); color: var(--g-3); background: var(--g-soft); }
body.ux .main-content table.table .btn-xs { min-width: 32px; height: 30px; border-radius: 7px !important; }
body.ux .main-content table.table .btn-xs.btn-primary { background: #fff !important; border: 1px solid #dfe3ec !important; color: var(--ink-2) !important; }
body.ux .main-content table.table .btn-xs.btn-primary:hover { border-color: var(--g) !important; color: var(--g-3) !important; }
body.ux .main-content table.table .btn-xs.btn-danger { background: #fff !important; border: 1px solid #f3c2c4 !important; color: var(--red) !important; }
body.ux .main-content table.table .btn-xs.btn-danger:hover { background: var(--red) !important; color: #fff !important; }
body.ux .main-content .badge { border-radius: 13px; padding: 4px 11px; font-size: 12px; font-weight: 700; }
body.ux .main-content .badge-success { background: #d8f5e5; color: #0f9150; }
body.ux .main-content .badge-warning { background: #fdecc8; color: #c96a00; }
body.ux .main-content .badge-danger { background: #fde2e2; color: #d92d33; }
body.ux .main-content .badge-info { background: #e3edff; color: #2456c9; }

body.ux .main-content .pager { display: flex; justify-content: flex-end; gap: 6px; margin: 4px 0 18px; }
body.ux .main-content .pager a, body.ux .main-content .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #dde2eb; border-radius: 7px; background: #fff; color: var(--ink-2); font-size: 14px; text-decoration: none; }
body.ux .main-content .pager a:hover { border-color: var(--g); color: var(--g-3); }
body.ux .main-content .pager span.cur { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); border-color: var(--gb); color: #fff; font-weight: 700; }
body.ux .main-content .pager span.dis { color: var(--muted-2); }
body.ux .main-content .ux-pager.pager { justify-content: space-between; margin: 0; }
body.ux .main-content .ux-pager.pager a, body.ux .main-content .ux-pager.pager span { all: unset; }
body.ux .main-content .ux-pager .ux-pg { min-width: 41px; height: 41px; padding: 0 6px; border: 1px solid #dde2eb; border-radius: 7px; background: #fff; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; box-sizing: border-box; cursor: pointer; }
body.ux .main-content .ux-pager .ux-pg.on { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); border-color: var(--gb); color: #fff; font-weight: 700; }
body.ux .main-content .ux-pager .ux-pg.dis { opacity: .45; pointer-events: none; }
body.ux .main-content .ux-pager .ux-pg-gap { display: inline-flex; min-width: 20px; justify-content: center; align-items: flex-end; color: var(--muted-2); }
body.ux .main-content .ux-pager .ux-pager-info { font-size: 14px; color: var(--muted); }

body.ux .main-content .stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; }
body.ux .main-content .stat-card { background: #fff !important; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; }
body.ux .main-content .stat-card .stat-label { color: var(--ink-2) !important; font-size: 14px; }
body.ux .main-content .stat-card .stat-value { color: var(--ink) !important; font-size: 25px; font-weight: 800; }
body.ux .main-content .form-control:focus { border-color: var(--g) !important; box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12) !important; }

/* Paneli ya maelezo kwenye skrini za kati/ndogo: drawer ya pembeni (haishuki chini ya jedwali) */
@media (max-width: 1200px) {
    body.ux .ux-split { grid-template-columns: minmax(0, 1fr) !important; }
    body.ux .ux-split > .ux-panel { position: fixed !important; top: 66px; right: 0; bottom: 0; width: min(400px, 100vw); z-index: 58; border-radius: 0; overflow-y: auto; box-shadow: -12px 0 30px rgba(16, 24, 40, .16); }
}
body.ux .main-content .list-toolbar > div, body.ux .main-content .list-toolbar > form, body.ux .main-content .list-toolbar label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
body.ux .main-content .list-toolbar select { width: auto; min-width: 76px; }
body.ux .main-content table.table td:last-child { white-space: nowrap; }
body.ux .main-content table.table td .btn-xs { display: inline-flex !important; vertical-align: middle; margin: 1px 2px; }
body.ux .main-content table.table td form { display: inline; }

/* ============================== PRICE GROUPS ============================== */
body.ux .ux-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 2px; font-size: 13.5px; color: var(--muted); }
body.ux .ux-lbl { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0 0 6px; }
body.ux .ux-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin: 0; cursor: pointer; }
body.ux .ux-check input { width: 17px; height: 17px; accent-color: var(--g); }
body.ux .ux-pg-pct { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
body.ux .ux-pg-pct .ux-input { height: 40px; }
body.ux .ux-pg-in { height: 34px !important; text-align: right; font-weight: 700; }
body.ux #pgTable tr.ux-pg-set td { background: var(--g-row); }
body.ux .ux-pg-d.neg { color: var(--g-3); font-weight: 700; } body.ux .ux-pg-d.pos { color: var(--amber); font-weight: 700; }
body.ux .ux-filters { align-items: center; }
body.ux .ux-group-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 3px 10px; border-radius: 12px; background: var(--g-soft); color: var(--g-3); font-size: 12.5px; font-weight: 700; pointer-events: none; }

/* ============================== CHIPS / TABS (Wateja, Madeni) ============================== */
body.ux .ux-chips-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
body.ux .ux-chips { display: flex; gap: 8px; flex-wrap: wrap; }
body.ux .ux-chip-tab { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 6px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); white-space: nowrap; }
body.ux .ux-chip-tab em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 13px; }
body.ux .ux-chip-tab .ux-chip-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--g-soft); color: var(--g-3); display: flex; align-items: center; justify-content: center; }
body.ux .ux-chip-tab .ux-chip-ic .ic { width: 18px; height: 18px; }
body.ux .ux-chip-tab:hover { border-color: var(--g); }
body.ux .ux-chip-tab.on { background: linear-gradient(180deg, var(--ga), var(--gb)); border-color: var(--gb); color: #fff; box-shadow: 0 6px 14px rgba(var(--g-rgb), .28); }
body.ux .ux-chip-tab.on em { color: rgba(255, 255, 255, .85); }
body.ux .ux-chip-tab.on .ux-chip-ic { background: rgba(255, 255, 255, .2); color: #fff; }
body.ux .ux-chip-tab.sm { height: 40px; font-size: 13.5px; padding-left: 5px; } body.ux .ux-chip-tab.sm .ux-chip-ic { width: 30px; height: 30px; }
body.ux .ux-seg { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
body.ux .ux-seg button { height: 38px; padding: 0 18px; border: 0; background: none; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
body.ux .ux-seg button.on { background: linear-gradient(180deg, var(--ga), var(--gb)); color: #fff; }
body.ux .ux-stat-btn { font: inherit; text-align: left; cursor: pointer; width: 100%; color: inherit; }
body.ux .ux-stat-btn:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
body.ux .ux-stat.on { border-color: var(--g); box-shadow: 0 0 0 2px rgba(var(--g-rgb), .25); }
body.ux .ux-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; vertical-align: 1px; }
body.ux .ux-tag.g { background: #d8f5e5; color: #0f9150; } body.ux .ux-tag.o { background: #fdecc8; color: #c96a00; } body.ux .ux-tag.b { background: var(--blue-soft); color: var(--blue); } body.ux .ux-tag.r { background: #fde2e2; color: #d92d33; }
body.ux .ux-tag.n { margin-left: 0; background: var(--g-soft); color: var(--g-3); font-size: 12px; }
body.ux .ux-cname { font-weight: 600; color: var(--ink); } body.ux .ux-csub { font-size: 12px; color: var(--muted); margin-top: 1px; }
body.ux .ux-tel { color: var(--ink-2); text-decoration: none; } body.ux .ux-tel:hover { color: var(--g-3); text-decoration: underline; }
body.ux .ux-red { color: var(--red); } body.ux .ux-greentxt { color: #0f9150; }
body.ux #customersTable tbody td, body.ux #debtsTable tbody td, body.ux #creditTable tbody td { height: 46px; padding-top: 6px; padding-bottom: 6px; }
body.ux .ux-bulkbar.show { position: sticky; bottom: 10px; z-index: 30; }
body.ux .ux-flow .ux-chips-row { order: 2; }
body.ux .ux-flow > form { order: 3; }
body.ux .ux-flow .ux-split, body.ux .ux-flow > #liveArea > .ux-tablecard { order: 4; }

/* ============================== MADENI / CREDIT ============================== */
body.ux .ux-tc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 10px 12px; font-size: 13.5px; color: var(--muted); }
body.ux .ux-tc-head b { color: var(--ink); text-transform: uppercase; letter-spacing: .4px; font-size: 13px; }
body.ux .ux-tc-head span b { text-transform: none; letter-spacing: 0; font-size: 14px; }
body.ux .ux-btn-xs { height: 32px; padding: 0 10px; font-size: 13px; gap: 6px; border-radius: 7px; vertical-align: middle; }
body.ux .ux-btn-xs .ic { width: 16px; height: 16px; }
body.ux .ux-plain { color: inherit; text-decoration: none; } body.ux .ux-plain:hover { color: var(--g-3); text-decoration: underline; }
body.ux a.ux-dots-btn { vertical-align: middle; }
body.ux .ux-dk-stats .ux-stat.on { border-color: var(--g); box-shadow: 0 0 0 2px rgba(var(--g-rgb), .3); }
body.ux .ux-flow > #liveArea > .ux-chips-row { order: 2; }
body.ux .ux-table td .ux-dots-btn { height: 32px; width: 36px; }
body.ux .ux-pos-search .ux-pos-input:focus { border: 0 !important; box-shadow: none !important; }
@media (max-width: 900px) {
    body.ux .ux-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.ux .ux-stat-val { font-size: 18px !important; }
    body.ux .ux-stat-lbl, body.ux .ux-stat-sub { font-size: 12.5px; }
    body.ux .ux-stat-ic { width: 38px; height: 38px; } body.ux .ux-stat-ic .ic { width: 20px; height: 20px; }
    body.ux .ux-stat { padding: 12px; gap: 10px; }
    body.ux.ux-pos .ux-top-pos, body.ux.ux-pos .ux-pos-pill { display: none; }
    body.ux .ux-disc-chip span { display: none; }
    body.ux .ux-chips-row { flex-direction: column; } body.ux .ux-seg { align-self: flex-start; }
}

/* ============================== SIDEBAR v3 (mchoro): kichwa chenye nembo + jina + ☰ ; hali ya icons tu ============================== */
body.ux .ux-brand { width: 244px; padding: 0 12px 0 18px; gap: 8px; justify-content: space-between; transition: width .15s; }
body.ux .ux-brand-link { flex: 1; min-width: 0; }
body.ux .ux-brand .ux-burger { order: 2; flex: 0 0 auto; width: 38px; height: 38px; }
body.ux .ux-brand-txt b { font-size: 17px; }
body.ux .ux-brand-txt small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .2px; }
body.ux.ux-pos .ux-brand { width: 290px; }
body.ux .ux-fly-title { display: none; }
body.ux .ux-side { transition: width .15s, flex-basis .15s; }

body.ux.ux-side-mini .ux-brand { width: 104px; padding: 0 8px 0 12px; }
body.ux.ux-side-mini .ux-brand-txt { display: none; }
body.ux.ux-side-mini .ux-brand-link { flex: 0 0 auto; }
body.ux.ux-side-mini .ux-side { width: 104px; flex-basis: 104px; }
body.ux.ux-side-mini .ux-nav { padding: 0 14px; }
body.ux.ux-side-mini .ux-nav-item { justify-content: center; padding: 0; position: relative; }
body.ux.ux-side-mini .ux-nav-item .ic { margin: 0; }
body.ux.ux-side-mini .ux-nav-lbl, body.ux.ux-side-mini .ux-nav-chev, body.ux.ux-side-mini .ux-nav-item .ux-count { display: none; }
body.ux.ux-side-mini .ux-nav-dot { position: absolute; top: 10px; right: 14px; margin: 0; }
body.ux.ux-side-mini .ux-nav-toggle.active { background: var(--g-soft); }
body.ux.ux-side-mini .ux-nav-group.open .ux-subnav { display: none; }
body.ux.ux-side-mini .ux-nav-group.fly .ux-subnav {
    display: flex; position: fixed; z-index: 90; width: 230px; padding: 8px; margin: 0; gap: 2px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(16, 24, 40, .16);
}
body.ux.ux-side-mini .ux-nav-group.fly .ux-subnav::before { display: none; }
body.ux.ux-side-mini .ux-fly-title { display: block; padding: 6px 12px 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
@media (max-width: 900px) {
    body.ux .ux-brand { width: auto; padding: 0 8px; flex-direction: row-reverse; }
    body.ux .ux-brand .ux-burger { order: 0; }
    body.ux.ux-side-mini .ux-side { width: 244px; }
}
body.ux .ux-bell { position: relative; margin-right: 14px; }
body.ux .ux-bell-n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
body.ux .ux-form-card { max-width: 520px; padding: 22px 24px; }

/* ============================== FINALIZE SALE v3: ndogo, katikati ya skrini ============================== */
body.ux #finalizeModal { align-items: center !important; justify-content: center; padding: 16px !important; }
body.ux #finalizeModal .modal-dialog { width: 100%; max-width: 760px !important; margin: auto; }
body.ux #finalizeModal .modal-content { padding: 0 18px 14px; border-radius: 16px; }
body.ux #finalizeModal .fin-head { margin: 0 -18px 12px !important; padding: 10px 18px !important; }
body.ux #finalizeModal .fin-head h4 { font-size: 17px; }
body.ux #finalizeModal .fin-head-ico { width: 32px; height: 32px; }
body.ux #finalizeModal .fin-total-banner { padding: 6px 12px; margin-bottom: 10px; }
body.ux #finalizeModal .fin-total-banner span { font-size: 11.5px; }
body.ux #finalizeModal .fin-total-banner b { font-size: 26px; }
body.ux #finalizeModal .finalize-grid { grid-template-columns: minmax(0, 1fr) 150px; gap: 16px; }
body.ux #finalizeModal .pm-icons { gap: 8px; }
body.ux #finalizeModal .pm-ico-btn { padding: 9px 4px; gap: 4px; font-size: 12px; border-radius: 10px; }
body.ux #finalizeModal .pm-ico-btn i { font-size: 17px; }
body.ux #finalizeModal .pay-amount-label { margin-top: 10px; font-size: 11.5px; }
body.ux #finalizeModal .pay-amount-row .payAmount { height: 46px; font-size: 21px; }
body.ux #finalizeModal .payAddBtn { height: 46px; font-size: 13px; padding: 0 12px; white-space: nowrap; }
body.ux #finalizeModal .fin-totals-tbl { margin-top: 10px; }
body.ux #finalizeModal .fin-totals-tbl td { padding: 7px 10px !important; font-size: 13.5px; }
body.ux #finalizeModal label { font-size: 13.5px; margin-bottom: 5px; }
body.ux #finalizeModal textarea.form-control { min-height: 46px !important; height: 46px; font-size: 13.5px; }
body.ux #finalizeModal .qc-title { font-size: 11.5px; margin-bottom: 6px; }
body.ux #finalizeModal .qc-col { gap: 6px; }
body.ux #finalizeModal .qc-btn { padding: 7px 4px !important; font-size: 14px; border-radius: 9px; }
body.ux #finalizeModal button.fin-submit-btn { padding: 11px !important; font-size: 16px; border-radius: 11px; }
body.ux #finalizeModal .modal-content > button.btn-secondary.btn-block { padding: 8px !important; font-size: 14px; border-radius: 11px; margin-top: 6px; }
@media (max-width: 700px) { body.ux #finalizeModal .finalize-grid { grid-template-columns: 1fr; } }

/* Jedwali za zamani zilizowekwa kwenye kadi (ux-legacy) */
body.ux .ux-auto { margin-bottom: 16px; padding-bottom: 6px; overflow-x: auto; }
body.ux .ux-wrap-clean { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; margin: 0 !important; }
body.ux table.ux-legacy { margin: 0; }
body.ux table.ux-legacy tbody td { height: 46px; padding: 8px 10px; }
body.ux table.ux-legacy tfoot tr.smart-filters { display: none; }
body.ux table.ux-legacy tfoot td, body.ux table.ux-legacy tr.totals-row td { background: var(--g-soft) !important; font-weight: 700; color: var(--ink); border-bottom: 0 !important; }
body.ux table.ux-legacy thead th.sortable { cursor: pointer; }
body.ux table.ux-legacy thead th.sortable:hover { filter: brightness(1.08); }
body.ux table.ux-legacy thead th a { color: #fff; }
body.ux table.ux-legacy .btn-xs { min-width: 32px; height: 30px; border-radius: 7px !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 5px; vertical-align: middle; margin: 1px 2px; }
body.ux table.ux-legacy .btn-xs.btn-primary, body.ux table.ux-legacy .btn-xs.btn-secondary, body.ux table.ux-legacy .btn-xs.btn-success { background: #fff !important; border: 1px solid #dfe3ec !important; color: var(--ink-2) !important; }
body.ux table.ux-legacy .btn-xs.btn-primary:hover, body.ux table.ux-legacy .btn-xs.btn-secondary:hover, body.ux table.ux-legacy .btn-xs.btn-success:hover { border-color: var(--g) !important; color: var(--g-3) !important; background: var(--g-soft) !important; }
body.ux table.ux-legacy .btn-xs.btn-danger { background: #fff !important; border: 1px solid #f3c2c4 !important; color: var(--red) !important; }
body.ux table.ux-legacy .btn-xs.btn-danger:hover { background: var(--red) !important; color: #fff !important; }
body.ux table.ux-legacy .btn-sm { height: 34px; padding: 0 12px; border-radius: 8px; }
body.ux table.ux-legacy td:last-child { white-space: nowrap; }
body.ux table.ux-legacy input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--g); }
body.ux table.ux-legacy thead input[type=checkbox] { accent-color: #fff; }
body.ux .ux-tablecard .smart-info.ux-pager-info { padding: 14px 12px 10px; font-size: 13.5px; color: var(--muted); }
body.ux .main-content .section-desc table.ux-legacy { margin-top: 6px; }

/* ============================== FOMU ZOTE: muundo laini ============================== */
body.ux .main-content label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
body.ux .main-content .form-group { margin-bottom: 16px; }
body.ux .main-content .form-control, body.ux .modal .form-control,
body.ux .main-content input[type=text]:not(.ux-input):not(.ux-qty):not(.smart-filter):not(.ux-pos-input):not(.ux-pg-in),
body.ux .main-content input[type=number]:not(.ux-input), body.ux .main-content input[type=date]:not(.ux-input),
body.ux .main-content input[type=password], body.ux .main-content input[type=email], body.ux .main-content input[type=tel],
body.ux .main-content select:not(.ux-select), body.ux .main-content textarea {
    min-height: 44px; border: 1px solid #dde2eb !important; border-radius: 10px !important; background-color: #fff;
    font: inherit; font-size: 14px; color: var(--ink); padding: 8px 14px; box-shadow: none !important; outline: 0; transition: border-color .12s, box-shadow .12s;
}
body.ux .main-content textarea, body.ux .modal textarea.form-control { min-height: 90px; }
body.ux .main-content input[type=file].form-control { padding: 9px 12px; }
body.ux .main-content .form-control:focus, body.ux .modal .form-control:focus, body.ux .main-content input:focus, body.ux .main-content select:focus, body.ux .main-content textarea:focus {
    border-color: var(--g) !important; box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12) !important;
}
body.ux .main-content input[readonly], body.ux .main-content .form-control[readonly] { background: #f6f8fb; }
body.ux .main-content input[type=checkbox], body.ux .main-content input[type=radio] { accent-color: var(--g); }
body.ux .select2-container--default .select2-selection--single { height: 44px !important; border: 1px solid #dde2eb !important; border-radius: 10px !important; }
body.ux .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px !important; padding-left: 14px !important; color: var(--ink); }
body.ux .select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px !important; right: 8px !important; }
body.ux .select2-container--default.select2-container--focus .select2-selection--single, body.ux .select2-container--open .select2-selection--single { border-color: var(--g) !important; box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .select2-dropdown { border: 1px solid var(--line) !important; border-radius: 10px !important; box-shadow: 0 12px 30px rgba(16, 24, 40, .14); overflow: hidden; }
body.ux .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--g) !important; }
body.ux .select2-search--dropdown .select2-search__field { border-radius: 8px; border: 1px solid #dde2eb; height: 36px; }
body.ux .main-content .list-toolbar .select2-container { width: 92px !important; }

body.ux .main-content .btn, body.ux .modal .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 18px;
    border-radius: 10px !important; font: inherit; font-size: 14px; font-weight: 600; box-shadow: none; transition: filter .12s, background .12s;
}
body.ux .main-content .btn-sm, body.ux .modal .btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
body.ux .main-content .btn-xs { min-height: 0; }
body.ux .main-content .btn-block, body.ux .modal .btn-block { display: flex; width: 100%; }
body.ux .main-content .btn-primary, body.ux .main-content .btn-success, body.ux .modal .btn-primary, body.ux .modal .btn-success { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%) !important; border: 0 !important; color: #fff !important; box-shadow: 0 4px 10px rgba(var(--g-rgb), .22); }
body.ux .main-content .btn-primary:hover, body.ux .main-content .btn-success:hover, body.ux .modal .btn-primary:hover { filter: brightness(1.05); transform: none; }
body.ux .main-content .btn-secondary, body.ux .modal .btn-secondary, body.ux .main-content .btn-default { background: #fff !important; border: 1px solid #dfe3ec !important; color: var(--ink-2) !important; }
body.ux .main-content .btn-secondary:hover, body.ux .modal .btn-secondary:hover { border-color: var(--g) !important; color: var(--g-3) !important; background: var(--g-soft) !important; }
body.ux .main-content .btn-danger, body.ux .modal .btn-danger { background: #fff !important; border: 1px solid #f3c2c4 !important; color: var(--red) !important; }
body.ux .main-content .btn-danger:hover, body.ux .modal .btn-danger:hover { background: var(--red) !important; color: #fff !important; }
body.ux .main-content .btn-amber, body.ux .main-content .btn-warning { background: linear-gradient(180deg, #f8bc1e, #f08910) !important; border: 0 !important; color: #fff !important; }
body.ux .main-content .alert { border-radius: 10px; border: 0; padding: 12px 16px; font-size: 14px; }
body.ux .main-content .alert-success { background: #e3f7ec; color: #0f7a43; } body.ux .main-content .alert-danger { background: #fdecec; color: #b42318; }
body.ux .main-content .alert-info { background: var(--blue-soft); color: #1e4fb0; } body.ux .main-content .alert-warning { background: #fff4e0; color: #9a5800; }
body.ux .main-content .help-block, body.ux .main-content .text-muted.small { color: var(--muted) !important; font-size: 12.5px; }

/* Settings: tabs laini (vidonge) + sehemu (fieldset) kama kadi */
body.ux .main-content .settings-tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); flex-wrap: wrap; }
body.ux .main-content .settings-tab-btn { height: 40px; padding: 0 16px; border: 0 !important; border-radius: 9px; background: none; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; margin: 0; }
body.ux .main-content .settings-tab-btn:hover { background: var(--g-soft); color: var(--g-3); }
body.ux .main-content .settings-tab-btn.active { background: linear-gradient(180deg, var(--ga), var(--gb)); color: #fff; box-shadow: 0 4px 10px rgba(var(--g-rgb), .25); }
body.ux .main-content .settings-tab-btn i { margin-right: 6px; }
body.ux .main-content fieldset.set-fs, body.ux .main-content fieldset { background: #fff; border: 1px solid var(--line-2) !important; border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px 6px !important; margin: 0 0 16px !important; }
body.ux .main-content fieldset legend { float: left; width: 100%; margin: 0 0 14px; padding: 0 0 10px; border: 0; border-bottom: 1px solid var(--line-2); font-size: 15px; font-weight: 800; color: var(--ink); }
body.ux .main-content fieldset legend + * { clear: both; }
body.ux .main-content .settings-save-bar { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 16px; }
body.ux .main-content .set-logo img { border-radius: 10px; border: 1px solid var(--line); }
body.ux .ux-brand { width: 262px; box-sizing: border-box; } body.ux.ux-pos .ux-brand { width: 290px; } body.ux .ux-side { width: 262px; flex-basis: 262px; }
body.ux .ux-logo { width: 40px; height: 40px; } body.ux .ux-brand-txt b { font-size: 15.5px; letter-spacing: .1px; }
body.ux.ux-side-mini .ux-brand { width: 104px; } body.ux.ux-side-mini .ux-side { width: 104px; flex-basis: 104px; }

/* ============================== TIKI + ALAMA YA MTEJA ============================== */
body.ux .ux-tick { width: 17px; height: 17px; margin-left: 5px; vertical-align: -3px; flex: 0 0 auto; }
body.ux .ux-tick.gold { color: #f2b200; filter: drop-shadow(0 1px 1px rgba(180, 120, 0, .25)); }
body.ux .ux-tick.blue { color: #1d9bf0; }
body.ux .ux-tick.light { color: #8fcdf6; }
body.ux .ux-score { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 4px; border-radius: 13px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: help; }
body.ux .ux-score b { min-width: 26px; height: 20px; padding: 0 5px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11.5px; }
body.ux .ux-score.trusted { background: #e3f7ec; color: #0f7a43; } body.ux .ux-score.trusted b { background: #12a05c; }
body.ux .ux-score.regular { background: #e8f0fe; color: #1e4fb0; } body.ux .ux-score.regular b { background: #2f6fec; }
body.ux .ux-score.occasional { background: #fff3e0; color: #a35a00; } body.ux .ux-score.occasional b { background: #f08a12; }
body.ux .ux-score.risky { background: #fdecec; color: #b42318; } body.ux .ux-score.risky b { background: #e93b42; }
body.ux .ux-tick-legend { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: -4px 4px 10px; font-size: 13px; color: var(--ink-2); }
body.ux .ux-tick-legend span { display: inline-flex; align-items: center; gap: 4px; }
body.ux .ux-tick-legend .ux-tick { margin-left: 0; }
body.ux .ux-flow .ux-tick-legend { order: 4; }
body.ux .ux-flags { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 10px; background: #fafbfd; }
body.ux .ux-flags .ux-check { font-weight: 600; margin: 0; }
body.ux .ux-flags .ux-tick { margin-left: 0; }
body.ux .ux-flags .help-block { flex-basis: 100%; margin: 0; }
body.ux #customersTable td:nth-child(4) { white-space: nowrap; }
body.ux .ux-group-badge { display: none !important; }   /* POS: mteja anaonyeshwa kwa jina na mahali tu */

/* ============================== SALE DETAILS POPUP (katikati, si skrini nzima) ============================== */
body.ux .ux-sd-modal { align-items: center; justify-content: center; padding: 20px; }
body.ux .ux-sd-modal .modal-dialog { width: 100%; max-width: 460px; margin: auto; }
body.ux .ux-sd-modal .modal-content.ux-panel { position: static; padding: 18px 16px 16px; max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 16px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); }
body.ux .ux-sd-modal .ux-panel-actions .ux-btn { font-size: 12.5px; }

/* ============================== TOPBAR v4: vitufe vyote kushoto, nafasi ndogo sawa ============================== */
body.ux .ux-top-pos, body.ux .ux-top-right { margin-left: 0; gap: 8px; }
body.ux .ux-top-pos { margin: 0 8px 0 16px; }
body.ux:not(.ux-pos) .ux-top-right { margin-left: 16px; }
body.ux .ux-top-right > *, body.ux .ux-top-right > .dropdown > button { margin-right: 0 !important; }
body.ux .ux-pos-pill, body.ux .ux-clock, body.ux .ux-lang-btn, body.ux .ux-icon-btn, body.ux .ux-bell { margin-right: 0 !important; }
body.ux .ux-chip-btn, body.ux .ux-pos-pill, body.ux .ux-clock, body.ux .ux-lang-btn, body.ux .ux-icon-btn { height: 40px; }
body.ux .ux-icon-btn { width: 40px; border: 1px solid var(--line); background: #fff; }
body.ux .ux-icon-btn:hover { border-color: var(--g); background: var(--g-soft); }
body.ux .ux-acct-wrap { margin-left: 2px; }
body.ux .ux-acct { padding: 2px 8px 2px 2px; border: 1px solid var(--line); border-radius: 26px; height: 44px; }
body.ux .ux-acct:hover { border-color: var(--g); }
body.ux .ux-avatar { width: 38px; height: 38px; }
body.ux .ux-acct-chev { margin-left: 2px; }
/* POS: hakuna mstari kati ya jina la duka na vitufe */
body.ux.ux-pos .ux-brand { border-right: 0; width: auto; padding-right: 8px; }
/* Menyu za topbar zifunguke kuelekea kulia (vitufe sasa viko kushoto) */
body.ux .ux-top-right .dropdown-menu-right { right: auto; left: 0; }
body.ux .ux-top-right .ux-acct-wrap .dropdown-menu-right { left: auto; right: 0; }

/* ============================== POS v3: mteja bold, herufi kubwa zaidi ============================== */
body.ux #customerDisplay { font-weight: 700 !important; font-size: 16px !important; letter-spacing: .2px; }
body.ux #productDropdown { padding: 6px; max-height: 60vh; overflow-y: auto; }
body.ux #productDropdown .ux-pdd-row { display: flex !important; align-items: center; gap: 14px; width: 100%; box-sizing: border-box; padding: 11px 14px !important; border-radius: 8px; font-size: 16px; color: var(--ink); cursor: pointer; border-bottom: 1px solid var(--line-2); }
body.ux #productDropdown .ux-pdd-row:last-child { border-bottom: 0; }
body.ux #productDropdown .ux-pdd-row:hover, body.ux #productDropdown .ux-pdd-row.kb-active { background: var(--g-soft); }
body.ux .ux-pdd-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .ux-pdd-name em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--g-3); background: var(--g-soft-2); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
body.ux .ux-pdd-stock { flex: 0 0 auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
body.ux .ux-pdd-price { flex: 0 0 auto; min-width: 90px; text-align: right; font-size: 17px; font-weight: 800; color: var(--ink); }
body.ux #customerDropdown { padding: 6px; }
body.ux #customerDropdown .dropdown-row { padding: 11px 14px !important; font-size: 15.5px; font-weight: 600; border-radius: 8px; border-bottom: 1px solid var(--line-2); }
body.ux #customerDropdown .dropdown-row:hover { background: var(--g-soft); }
body.ux table.ux-cart-table tbody td { font-size: 16px !important; }
body.ux table.ux-cart-table td.ux-cart-name { font-size: 16.5px !important; }
body.ux .ux-qty { font-size: 15.5px !important; }
@media (min-width: 901px) and (max-height: 820px) { body.ux table.ux-cart-table tbody td { font-size: 15px !important; } body.ux table.ux-cart-table td.ux-cart-name { font-size: 15.5px !important; } }
body.ux #productDropdown .ux-pdd-name em { display: inline-block !important; width: auto !important; vertical-align: 1px; }
body.ux .main-content .ux-pos-search input.ux-pos-input, body.ux .main-content .ux-pos-search input.ux-pos-input:focus { border: 0 !important; box-shadow: none !important; background: transparent !important; min-height: 0; }
body.ux .main-content .ux-pos-line input.ux-pos-input { min-height: 0; }
/* Topbar: vitufe vyote upande wa KULIA (nafasi ndogo sawa kati yake) */
body.ux .ux-top-right { margin-left: auto !important; }
body.ux.ux-pos .ux-top-pos { margin: 0 8px 0 auto; }
body.ux.ux-pos .ux-top-right { margin-left: 0 !important; }
body.ux .ux-top-right .dropdown-menu-right { left: auto; right: 0; }
/* Sale Details popup: kubwa, katikati, uwiano wa karatasi ya A5 (148 x 210) */
body.ux .ux-sd-modal .modal-dialog { max-width: 660px; }
body.ux .ux-sd-modal .modal-content.ux-panel { min-height: min(900px, calc(100vh - 40px)); padding: 24px 26px 22px; display: flex; flex-direction: column; }
body.ux .ux-sd-modal #salePanelBody { flex: 1; display: flex; flex-direction: column; }
body.ux .ux-sd-modal #salePanelBody .ux-panel-actions { margin-top: auto; padding-top: 16px; }
body.ux .ux-sd-modal .ux-panel-head h3 { font-size: 20px; }
body.ux .ux-sd-modal .ux-sd-ref b { font-size: 17px; }
body.ux .ux-sd-modal .ux-kv { font-size: 15px; row-gap: 9px; grid-template-columns: 200px 1fr; }
body.ux .ux-sd-modal .ux-sd-items { font-size: 14.5px; }
body.ux .ux-sd-modal .ux-sd-items td { padding: 10px 8px; }
body.ux .ux-sd-modal .ux-sd-sums > div { font-size: 15px; }
body.ux .ux-sd-modal .ux-sd-total span { font-size: 22px; } body.ux .ux-sd-modal .ux-sd-total b { font-size: 26px; }
body.ux .ux-sd-modal .ux-panel-actions .ux-btn { font-size: 14px; height: 50px; }
/* Sale Details popup = karatasi: hakuna scrollbar inayoonekana; maudhui yakizidi, karatasi nzima inasogea (overlay) */
body.ux .ux-sd-modal { overflow-y: auto; align-items: flex-start; padding: 20px; scrollbar-width: none; -ms-overflow-style: none; }
body.ux .ux-sd-modal::-webkit-scrollbar { display: none; width: 0; height: 0; }
body.ux .ux-sd-modal .modal-dialog { margin: auto; }
body.ux .ux-sd-modal .modal-content.ux-panel { max-height: none; overflow: visible; }
body.ux .ux-sd-modal *::-webkit-scrollbar { display: none; }
body.ux .ux-sd-modal * { scrollbar-width: none; }
body.ux.ux-modal-open { overflow: hidden; }
/* Madirisha YOTE (View Invoice / risiti, malipo, Sale Details n.k.) = karatasi: hakuna scrollbar inayoonekana.
   Maudhui yakizidi skrini, karatasi nzima inasogea (overlay) kwa gurudumu/kidole; ukurasa wa nyuma hausogei. */
body.ux .modal { scrollbar-width: none; -ms-overflow-style: none; }
body.ux .modal::-webkit-scrollbar, body.ux .modal *::-webkit-scrollbar { display: none; width: 0; height: 0; }
body.ux .modal * { scrollbar-width: none; -ms-overflow-style: none; }
body.ux:has(.modal[style*="flex"]) { overflow: hidden; }
body.ux:has(.modal[style*="flex"]) .main-content { overflow: hidden; }
body.ux #saleModal .modal-dialog { margin: auto; }
@media print { body.ux, body.ux:has(.modal[style*="flex"]) { overflow: visible !important; } body.ux:has(.modal[style*="flex"]) .main-content { overflow: visible !important; } }

/* ============================== POS: ukubwa wa kawaida, herufi +1 tu ============================== */
body.ux #customerDisplay { font-size: 16px !important; font-weight: 700 !important; letter-spacing: 0; }
body.ux #productDropdown, body.ux #customerDropdown { padding: 0; }
body.ux #productDropdown .ux-pdd-row { padding: 9px 14px !important; gap: 12px; font-size: 14px; border-radius: 0; }
body.ux .ux-pdd-name { font-weight: 500; }
body.ux .ux-pdd-name em { font-size: 11px; padding: 0 5px; margin-left: 2px; }
body.ux .ux-pdd-price { min-width: 0; text-align: left; font-size: 14px; font-weight: 700; margin-left: 6px; }
body.ux .ux-pdd-stock { margin-left: auto; font-size: 12px; }
body.ux #customerDropdown .dropdown-row { padding: 9px 14px !important; font-size: 14px; font-weight: 400; border-radius: 0; }
body.ux table.ux-cart-table tbody td { font-size: 15.5px !important; }
body.ux table.ux-cart-table td.ux-cart-name { font-size: 15.5px !important; }
body.ux .ux-qty { font-size: 15px !important; }
@media (min-width: 901px) and (max-height: 820px) { body.ux table.ux-cart-table tbody td, body.ux table.ux-cart-table td.ux-cart-name { font-size: 15px !important; } }

/* ============================== BAADA YA MAUZO (pos/view/ID) ============================== */
body.ux .ux-pv { height: 100%; overflow-y: auto; scrollbar-width: none; padding: 18px 12px 30px; }
body.ux .ux-pv::-webkit-scrollbar { display: none; }
body.ux .ux-pv-grid { display: grid; grid-template-columns: 400px minmax(0, 520px); gap: 26px; justify-content: center; align-items: start; max-width: 1000px; margin: 0 auto; }
body.ux .ux-pv-ok { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(180deg, var(--ga), var(--gb)); color: #fff; box-shadow: 0 10px 24px rgba(var(--g-rgb), .28); }
body.ux .ux-pv-ok.muted { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
body.ux .ux-pv-ok-ic { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
body.ux .ux-pv-ok.muted .ux-pv-ok-ic { background: var(--g-soft); color: var(--g); }
body.ux .ux-pv-ok-ic .ic { width: 28px; height: 28px; }
body.ux .ux-pv-ok b { display: block; font-size: 18px; font-weight: 800; }
body.ux .ux-pv-ok small { display: block; font-size: 13px; opacity: .9; margin-top: 2px; }
body.ux .ux-pv-card { padding: 18px 18px 16px; margin-bottom: 14px; }
body.ux .ux-pv-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; margin-bottom: 14px; border-radius: 10px; background: var(--g-soft); }
body.ux .ux-pv-total span { font-size: 15px; font-weight: 700; color: var(--ink); }
body.ux .ux-pv-total b { font-size: 26px; font-weight: 800; color: var(--g-3); }
body.ux .ux-pv-kv { grid-template-columns: 150px 1fr; row-gap: 8px; font-size: 14px; padding: 0 4px 12px; }
body.ux .ux-pv-actions { display: flex; flex-direction: column; gap: 10px; }
body.ux .ux-pv-big { height: 54px; font-size: 16px; justify-content: center; position: relative; }
body.ux .ux-pv-big kbd { position: absolute; right: 14px; font: inherit; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .12); }
body.ux .ux-btn:not(.ux-btn-green) kbd { background: var(--line-2); color: var(--muted); }
body.ux .ux-pv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.ux .ux-pv-row .ux-btn { height: 46px; font-size: 14px; }
body.ux .ux-pv-paper { background: #fff; border-radius: 4px; padding: 26px 24px 30px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 18px 40px rgba(16, 24, 40, .14); position: relative; }
body.ux .ux-pv-paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 6px, #fff 6.5px) repeat-x; background-size: 12px 8px; }
@media (max-width: 1000px) { body.ux .ux-pv-grid { grid-template-columns: 1fr; max-width: 520px; } }
@media print { body.ux .ux-top, body.ux .ux-pv-side, body.ux .mnav, body.ux .msheet { display: none !important; } body.ux .ux-pv-paper { box-shadow: none; padding: 0; } body.ux .ux-pv-grid { display: block; } body.ux .ux-pv { overflow: visible; height: auto; } }

/* ===================== RIPOTI (reports) ===================== */
body.ux .rp-head-top { align-items: flex-start; gap: 14px; flex-wrap: wrap; }
body.ux .rp-head-top p b { color: var(--ink); font-weight: 600; }
body.ux .rp-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
body.ux .rp-seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
body.ux .rp-seg a { padding: 6px 11px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
body.ux .rp-seg a:hover { color: var(--ink); background: var(--g-soft); }
body.ux .rp-seg a.on { background: var(--g); color: #fff; }
body.ux .rp-range { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 4px 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
body.ux .rp-range.on { border-color: var(--g); box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .rp-range .ic { width: 16px; height: 16px; color: var(--muted); }
body.ux .rp-range input { border: 0; outline: 0; font: inherit; font-size: 13px; color: var(--ink); background: transparent; width: 122px; }
body.ux .rp-range span { color: var(--muted); }
body.ux .rp-range .rp-go { height: 32px; width: 34px; padding: 0; justify-content: center; }
body.ux .rp-range .rp-go .ic { color: #fff; }
body.ux .rp-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
body.ux .rp-stats .ux-stat { padding: 14px; gap: 12px; min-width: 0; }
body.ux .rp-stats .ux-stat-ic { width: 42px; height: 42px; flex: none; }
body.ux .rp-stats .ux-stat-body { min-width: 0; }
body.ux .rp-stats .ux-stat-lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .rp-stats .ux-stat-val { font-size: 19px; white-space: nowrap; }
body.ux .rp-stats .ux-stat-val small { font-size: 12px; font-weight: 600; opacity: .75; margin-right: 3px; }
body.ux .rp-stats .ux-stat-sub { font-size: 12.5px; white-space: nowrap; gap: 8px; }
body.ux .rp-stats .ux-trend { font-size: 12.5px; }
body.ux .rp-tabs { margin: 0 0 16px; flex-wrap: wrap; row-gap: 2px; }
body.ux .rp-tabs::-webkit-scrollbar { display: none; }
body.ux .rp-tabs a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px 11px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
body.ux .rp-tabs a .ic { width: 16px; height: 16px; }
body.ux .rp-tabs a:hover { color: var(--ink); }
body.ux .rp-tabs a.on { color: var(--g-3); font-weight: 600; border-bottom-color: var(--g); }
body.ux .rp-row { display: grid; gap: 16px; margin-bottom: 16px; }
body.ux .rp-r1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
body.ux .rp-r2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body.ux .rp-r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.ux .rp-card { padding: 16px 18px; min-width: 0; }
body.ux .rp-card h3, body.ux .rp-tc-h h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
body.ux .rp-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.ux .rp-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
body.ux .rp-va { font-size: 12.5px; color: var(--g-2); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; white-space: nowrap; }
body.ux .rp-va .ic { width: 14px; height: 14px; }
body.ux .rp-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
body.ux .rp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
body.ux .rp-legend i.s { background: var(--g); } body.ux .rp-legend i.p { background: #2563eb; } body.ux .rp-legend i.d { background: #f59e0b; }
body.ux svg.rp-chart { width: 100%; height: 250px; display: block; overflow: visible; }
body.ux svg.rp-chart text { font-size: 11px; fill: #8a978f; }
body.ux svg.rp-chart line.g { stroke: #eef2ef; }
body.ux svg.rp-chart .hit { fill: transparent; }
body.ux svg.rp-chart .bar { fill: var(--g); opacity: .85; transition: opacity .15s; }
body.ux svg.rp-chart .rp-col[data-drill] { cursor: pointer; }
body.ux svg.rp-chart .rp-col[data-drill]:hover .hit { fill: rgba(var(--g-rgb), .07); }
body.ux svg.rp-chart .rp-col[data-drill]:hover .bar { opacity: 1; }
body.ux svg.rp-chart polyline { fill: none; stroke-width: 2.4; stroke-linejoin: round; pointer-events: none; vector-effect: non-scaling-stroke; }
body.ux svg.rp-chart .lp { stroke: #2563eb; } body.ux svg.rp-chart .ld { stroke: #f59e0b; stroke-dasharray: 5 4; }
body.ux svg.rp-chart .cp { fill: #fff; stroke: #2563eb; stroke-width: 2; pointer-events: none; }
body.ux .rp-donut { display: flex; align-items: center; gap: 16px; color: var(--ink); }
body.ux .rp-donut svg { flex: none; }
body.ux .rp-donut ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; font-size: 13px; }
body.ux .rp-donut li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line-2); }
body.ux .rp-donut li:last-child { border: 0; }
body.ux .rp-donut li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .rp-donut li span i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
body.ux .rp-mini { display: flex; justify-content: space-between; font-size: 13px; padding: 9px 4px 0; margin-top: 6px; border-top: 1px dashed var(--line); }
body.ux .rp-t { width: 100%; border-collapse: collapse; font-size: 13px; }
body.ux .rp-t th { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--line); }
body.ux .rp-t td { padding: 8px 6px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
body.ux .rp-t .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
body.ux .rp-t tr:last-child td { border-bottom: 0; }
body.ux .rp-t .mut, body.ux .mut { color: var(--muted); }
body.ux .rp-u { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--g-2); background: var(--g-soft); border-radius: 5px; padding: 1px 5px; margin-left: 3px; }
body.ux .rp-mb { height: 5px; background: #eef3f0; border-radius: 4px; margin-top: 5px; overflow: hidden; }
body.ux .rp-mb b { display: block; height: 100%; background: var(--g); border-radius: 4px; }
body.ux .rp-mb.o b { background: #f59e0b; }
body.ux .rp-click, body.ux [data-drill] { cursor: pointer; }
body.ux tr.rp-click:hover td, body.ux li.rp-click:hover { background: var(--g-row); }
body.ux .rp-age > .rp-click { border-radius: 8px; padding: 4px 6px; margin: -4px -6px; }
body.ux .rp-age > .rp-click:hover { background: var(--g-row); }
body.ux .rp-age { display: flex; flex-direction: column; gap: 12px; }
body.ux .rp-age .l { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 4px; }
body.ux .rp-age .bar { height: 9px; background: #f1f4f2; border-radius: 6px; overflow: hidden; }
body.ux .rp-age .bar i { display: block; height: 100%; border-radius: 6px; min-width: 2px; }
body.ux .rp-big { display: flex; gap: 10px; margin-bottom: 14px; }
body.ux .rp-big > div { flex: 1; background: var(--g-soft); border-radius: 10px; padding: 9px 12px; }
body.ux .rp-big > div.r { background: #fdecec; }
body.ux .rp-big small { display: block; font-size: 11.5px; color: var(--muted); }
body.ux .rp-big b { font-size: 17px; }
body.ux b.g, body.ux .g > b, body.ux .rp-g, body.ux span.g { color: var(--g-2); }
body.ux b.r, body.ux span.r { color: #dc2626; }
body.ux b.b, body.ux .rp-b { color: #2563eb; }
body.ux b.o, body.ux .rp-o { color: #d97706; }
body.ux .rp-pl { font-size: 13.5px; }
body.ux .rp-pl > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
body.ux .rp-pl > div small { font-weight: 600; color: var(--muted); }
body.ux .rp-pl > div.tot { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 10px; font-weight: 800; font-size: 15px; }
body.ux .rp-note { font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
body.ux .rp-note .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; }
body.ux .rp-note.warn { color: #9a5b00; }
body.ux .rp-note-box { background: #fff7e6; border: 1px solid #fde4b0; border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; }
body.ux .rp-dbadge { min-width: 38px; }
body.ux .rp-tc { margin-bottom: 16px; }
body.ux .rp-tc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 12px; flex-wrap: wrap; }
body.ux .rp-tc-h .mut { font-size: 12.5px; }
body.ux .rp-tc table.ux-table tfoot td { padding: 11px 10px; font-weight: 800; color: var(--ink); border-top: 2px solid var(--line); background: #fafbfa; }
body.ux .rp-tc table.ux-table tfoot td.num { text-align: right; }
body.ux .rp-search .ux-input-ic { width: 260px; }
body.ux .rp-agecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
body.ux .rp-agecard { padding: 14px 16px; border-left: 4px solid var(--c, var(--g)); display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: inherit; }
body.ux .rp-agecard small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
body.ux .rp-agecard > b { font-size: 19px; color: var(--ink); }
body.ux .rp-agecard > span { font-size: 12px; color: var(--muted); }
body.ux .rp-agecard.rp-click:hover, body.ux a.rp-agecard:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .08); }
body.ux .rp-agecard.flow > div { display: flex; justify-content: space-between; font-size: 13px; }
body.ux .rp-agecard.flow em { font-style: normal; font-size: 12px; font-weight: 700; margin-top: 2px; }
body.ux .rp-agecard.flow em.r { color: #dc2626; } body.ux .rp-agecard.flow em.g { color: var(--g-2); }
body.ux .rp-mg { display: inline-block; min-width: 56px; text-align: center; border-radius: 10px; font-size: 12px; font-weight: 700; padding: 2px 8px; }
body.ux .rp-mg.g { background: var(--g-soft); color: var(--g-3); } body.ux .rp-mg.o { background: #fff3dc; color: #b45309; } body.ux .rp-mg.r { background: #fdecec; color: #dc2626; }
body.ux .rp-nc { min-width: 0; height: 20px; font-size: 10.5px; padding: 0 7px; margin-left: 4px; }
body.ux .ux-badge.k { background: #eef0f3; color: #4b5563; }
/* popup ya drill-down */
body.ux .rp-modal .modal-dialog { max-width: 820px; }
body.ux .rp-modal .modal-content.ux-panel { min-height: 0 !important; padding: 20px 22px 18px; }
body.ux .rp-modal .ux-panel-head { display: flex; align-items: center; gap: 8px; }
body.ux .rp-modal .ux-panel-head h3 { flex: 1; margin: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .rp-dsub { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
body.ux .rp-dk { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
body.ux .rp-dk > div { background: #f6f8f7; border-radius: 10px; padding: 9px 12px; }
body.ux .rp-dk small { display: block; font-size: 11.5px; color: var(--muted); }
body.ux .rp-dk b { font-size: 16px; color: var(--ink); }
body.ux .rp-dk b small { display: inline; font-size: 11.5px; }
body.ux table.rp-dt { font-size: 13px; }
body.ux table.rp-dt thead th { padding: 9px 8px; font-size: 11px; }
body.ux table.rp-dt tbody td { padding: 8px 8px; height: 34px; }
body.ux .rp-dh { margin: 18px 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
body.ux .rp-dhint { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
body.ux .rp-dhint .ic { width: 14px; height: 14px; }
body.ux .rp-link { color: var(--g-2); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(var(--g-rgb), .35); text-underline-offset: 3px; }
body.ux .rp-link:hover { text-decoration-color: var(--g); }
body.ux .rp-dprice { display: flex; gap: 20px; font-size: 13px; color: var(--muted); margin: -4px 0 6px; }
body.ux .rp-dprice b { color: var(--ink); }
body.ux .rp-cust { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
body.ux .rp-cust-av { width: 44px; height: 44px; border-radius: 50%; background: var(--g-soft); color: var(--g-3); font-weight: 800; font-size: 18px; display: grid; place-items: center; flex: none; }
body.ux .rp-cust > div b { font-size: 16px; }
body.ux .rp-cust .mut { font-size: 12.5px; }
body.ux .rp-cust-sc { margin-left: auto; }
body.ux .rp-dactions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
body.ux .rp-print-head { display: none; }
@media (max-width: 1400px) { body.ux .rp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1200px) { body.ux .rp-r3 { grid-template-columns: 1fr 1fr; } body.ux .rp-r1 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
    body.ux .rp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    body.ux .rp-r2, body.ux .rp-r3 { grid-template-columns: 1fr; }
    body.ux .rp-bar { justify-content: flex-start; }
    body.ux .rp-search .ux-input-ic { width: 100%; }
    body.ux .rp-tc { overflow-x: auto; }
    body.ux .rp-donut { flex-direction: column; align-items: stretch; } body.ux .rp-donut svg { align-self: center; }
}
@media print {
    body.ux .rp-bar, body.ux .rp-tabs, body.ux .rp-va, body.ux .rp-search, body.ux #rpModal, body.ux .rp-tc-h .ux-btn, body.ux .rp-head-top { display: none !important; }
    body.ux:has(.rp-stats) .ux-top, body.ux:has(.rp-stats) .ux-side, body.ux:has(.rp-stats) .mnav { display: none !important; }
    body.ux:has(.rp-stats) .main-content { padding: 0 !important; margin: 0 !important; overflow: visible !important; background: #fff; }
    body.ux:has(.rp-stats) { display: block !important; background: #fff !important; }
    body.ux .rp-print-head { display: block; margin-bottom: 10px; }
    body.ux .rp-print-head h2 { margin: 0; font-size: 18px; } body.ux .rp-print-head p { margin: 2px 0 0; font-size: 12px; color: #555; }
    body.ux .rp-stats { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    body.ux .rp-stats .ux-stat-ic { display: none; }
    body.ux .ux-card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
    body.ux .rp-r1, body.ux .rp-r3 { grid-template-columns: 1fr 1fr; }
    body.ux .rp-tc { overflow: visible !important; }
    body.ux table.ux-table tbody td { height: auto; padding: 5px 8px; }
}
/* Ripoti: main-content ni flex column - vipengele visibanwe (tabs/jedwali zilikuwa zinakatwa) */
body.ux .main-content:has(.rp-stats) > * { flex-shrink: 0; }
@media (max-width: 900px) {
    body.ux .rp-stats .ux-stat { padding: 12px; }
    body.ux .rp-stats .ux-stat-ic { display: none; }
    body.ux .rp-stats .ux-stat-val { font-size: 17px; }
    body.ux .rp-stats .ux-stat-sub { white-space: normal; flex-wrap: wrap; row-gap: 2px; }
    body.ux .rp-stats > :last-child { grid-column: 1 / -1; }
    body.ux .rp-seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    body.ux .rp-range input { width: 112px; }
}
@media (max-width: 900px) { body.ux svg.rp-chart { min-width: 0; width: 100%; height: auto; } }

/* ===================== DAFTARI LA ODA (modal + karatasi ya A4) ===================== */
body.ux .od-modal { position: fixed; inset: 0; z-index: 1300; background: rgba(15, 23, 42, .55); flex-direction: column; align-items: center; padding: 0; }
body.ux .od-bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); flex: none; }
body.ux .od-bar-t { display: flex; align-items: center; gap: 8px; margin-right: auto; font-size: 15px; color: var(--ink); }
body.ux .od-bar-t .ic { width: 20px; height: 20px; color: var(--g); }
body.ux .od-seg { display: inline-flex; background: #f1f4f2; border-radius: 9px; padding: 3px; }
body.ux .od-seg button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
body.ux .od-seg button.on { background: #fff; color: var(--g-3); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
body.ux .od-stage { flex: 1; width: 100%; overflow-y: auto; padding: 24px 16px 40px; scrollbar-width: none; }
body.ux .od-stage::-webkit-scrollbar { display: none; }
body.ux .od-loading { color: #fff; text-align: center; padding: 60px; font-size: 15px; }
/* karatasi */
.od-paper { width: 794px; max-width: 100%; margin: 0 auto; background: #fff; color: #111; padding: 36px 40px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.35); font-family: Inter, sans-serif; font-size: 11px; line-height: 1.35; page: odbook; }
.od-paper .od-hd { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 2.5px solid #111; padding-bottom: 11px; margin-bottom: 12px; }
.od-paper .od-brand { display: flex; align-items: center; gap: 12px; }
.od-paper .od-brand img { width: 46px; height: 46px; object-fit: contain; }
.od-paper .od-logo { width: 46px; height: 46px; display: grid; place-items: center; }
.od-paper .od-logo .ic { width: 42px; height: 42px; stroke-width: 1.8; }
.od-paper .od-brand b { display: block; font-size: 18px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; }
.od-paper .od-brand span { color: #555; font-size: 11px; }
.od-paper .od-ttl { text-align: right; }
.od-paper .od-ttl h1 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.od-paper .od-ttl span { font-size: 12px; font-weight: 600; color: #333; }
.od-paper .od-cust { border: 1px solid #111; border-radius: 6px; padding: 9px 12px; margin-bottom: 8px; }
.od-paper .od-cust small, .od-paper .od-sum small { display: block; font-size: 9.5px; color: #555; text-transform: uppercase; letter-spacing: .4px; }
.od-paper .od-cust b { font-size: 15px; font-weight: 800; margin-right: 8px; }
.od-paper .od-cust span { color: #444; }
.od-paper .od-filters { font-size: 10.5px; color: #444; margin-bottom: 8px; }
.od-paper .od-sum { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #111; border-radius: 6px; margin-bottom: 7px; }
.od-paper .od-sum > div { padding: 7px 11px; border-right: 1px solid #ccc; }
.od-paper .od-sum > div:last-child { border-right: 0; }
.od-paper .od-sum b { font-size: 14px; font-weight: 800; }
.od-paper .od-sum span { display: block; font-size: 9.5px; color: #555; }
.od-paper .g b { color: #0a7a3c; } .od-paper .r b, .od-paper span.r, .od-paper .r { color: #c81e1e; }
.od-paper .od-meth { display: flex; flex-wrap: wrap; gap: 3px 14px; font-size: 10px; color: #444; margin-bottom: 11px; }
.od-paper .od-warn { background: #fff4e0; border: 1px solid #f3c77a; border-radius: 5px; padding: 6px 10px; margin-bottom: 10px; font-size: 10.5px; color: #8a4b00; }
.od-paper .od { border: 1px solid #bbb; border-radius: 6px; margin-bottom: 9px; break-inside: avoid; page-break-inside: avoid; }
.od-paper .odh { display: flex; align-items: flex-start; gap: 9px; padding: 6px 10px; background: #f3f4f6; border-bottom: 1px solid #ddd; border-radius: 6px 6px 0 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.od-paper .odh-t { flex: 1; min-width: 0; }
.od-paper .odh b { font-size: 12px; }
.od-paper .no { width: 21px; height: 21px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 10px; flex: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.od-paper .mu { color: #555; font-size: 10px; }
.od-paper em { font-style: normal; font-weight: 800; font-size: 9.5px; letter-spacing: .5px; padding: 2px 7px; border: 1.5px solid; border-radius: 4px; white-space: nowrap; }
.od-paper em.paid { color: #0a7a3c; } .od-paper em.debt { color: #c81e1e; } .od-paper em.part { color: #b45309; } .od-paper em.void { color: #6b7280; }
.od-paper .od table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.od-paper .od td { padding: 3px 10px; border-bottom: 1px dotted #ddd; font-size: 11px; color: #111; overflow: hidden; text-overflow: ellipsis; }
.od-paper .od td i { font-style: normal; font-size: 8.5px; color: #555; border: 1px solid #ccc; border-radius: 3px; padding: 0 3px; }
.od-paper .od td.c { width: 130px; } .od-paper .od td.n { width: 84px; text-align: right; white-space: nowrap; }
.od-paper .odf { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 3px 16px; padding: 5px 10px 6px; font-size: 11px; }
.od-paper .odf .pm { margin-right: auto; color: #555; }
.od-paper .od-empty { text-align: center; color: #666; padding: 50px 0; font-size: 13px; }
.od-paper .od-ft { display: flex; justify-content: space-between; border-top: 1px solid #111; padding-top: 7px; margin-top: 12px; font-size: 10px; color: #444; }
/* Kompakt: safu 2 */
.od-paper.compact .od-list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.od-paper.compact .od { margin: 0; }
.od-paper.compact .odh { padding: 5px 8px; gap: 7px; } .od-paper.compact .odh b { font-size: 11px; } .od-paper.compact .mu { font-size: 9px; }
.od-paper.compact .no { width: 18px; height: 18px; font-size: 9px; }
.od-paper.compact em { font-size: 8px; padding: 1px 5px; }
.od-paper.compact .od td { padding: 2px 7px; font-size: 9.5px; } .od-paper.compact .od td.c { width: 78px; } .od-paper.compact .od td.n { width: 54px; }
.od-paper.compact .odf { font-size: 9.5px; gap: 2px 10px; padding: 4px 7px; }
.od-paper.compact .odf .pm { flex-basis: 100%; margin: 0; font-size: 9px; }
@media screen and (max-width: 900px) {
    body.ux .od-bar { flex-wrap: wrap; padding: 8px 10px; } body.ux .od-bar-t { flex-basis: calc(100% - 50px); }
    body.ux .od-stage { padding: 12px 6px 30px; }
    .od-paper { padding: 18px 14px; } .od-paper .od-sum { grid-template-columns: 1fr 1fr; } .od-paper .od-sum > div:nth-child(2) { border-right: 0; }
    .od-paper.compact .od-list { grid-template-columns: 1fr; }
}
@page odbook { size: A4; margin: 11mm 10mm 13mm; @bottom-right { content: counter(page) " / " counter(pages); font: 8pt Inter, sans-serif; color: #555; } }
@media print {
    body.od-printing > *:not(#odModal) { display: none !important; }
    body.od-printing { background: #fff !important; overflow: visible !important; height: auto !important; display: block !important; }
    body.od-printing #odModal { position: static !important; display: block !important; background: none !important; padding: 0 !important; }
    body.od-printing .od-bar { display: none !important; }
    body.od-printing .od-stage { overflow: visible !important; padding: 0 !important; }
    body.od-printing .od-paper { width: auto; max-width: none; box-shadow: none; padding: 0; margin: 0; }
}
/* Ripoti: tab ya Oda + Taarifa ya Akaunti */
body.ux .rp-of { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 14px 16px; margin-bottom: 16px; }
body.ux .rp-of .ux-field { flex: 0 0 190px; display: flex; flex-direction: column; gap: 5px; }
body.ux .rp-of .ux-field.rp-of-c { flex: 1 1 260px; max-width: 360px; }
body.ux .rp-of label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0; }
body.ux .rp-of .rp-of-go { margin-left: auto; height: 44px; padding: 0 20px; }
body.ux .rp-st-h { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
body.ux .rp-st-h .mut { font-size: 12px; }
body.ux .rp-st-sum { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
body.ux .rp-st-sum > div { padding: 8px 12px; border-right: 1px solid var(--line); }
body.ux .rp-st-sum > div:last-child { border-right: 0; }
body.ux .rp-st-sum small { display: block; font-size: 11px; color: var(--muted); }
body.ux .rp-st-sum b { font-size: 15px; color: var(--ink); }
body.ux .rp-st-sum b.g { color: var(--g-2); } body.ux .rp-st-sum b.r { color: #dc2626; }
body.ux table.rp-st tbody tr.pay td { background: #effaf3; }
body.ux table.rp-st tbody tr.op td { color: var(--muted); font-style: italic; }
body.ux table.rp-st tbody td { vertical-align: top; }
body.ux .rp-st-li { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
body.ux table.rp-st tfoot td { padding: 10px 8px; font-weight: 800; border-top: 2px solid var(--line); }
body.ux table.rp-st tfoot td.num { text-align: right; }
@media (max-width: 900px) { body.ux .rp-st-sum { grid-template-columns: 1fr 1fr; } body.ux .rp-of .ux-field { flex: 1 1 140px; } body.ux .rp-of .rp-of-go { width: 100%; } }

/* ===================== POS: mstari wa deni la zamani (lipa lote / kiasi / ondoa) ===================== */
body.ux table.ux-cart-table tr.ux-debt td { background: #fff8ec; color: #92400e; font-weight: 600; vertical-align: middle; padding-top: 6px !important; padding-bottom: 6px !important; }
body.ux table.ux-cart-table tr.ux-debt.part td { background: #fff3dc; }
body.ux .ux-dk { display: flex; align-items: center; gap: 10px; text-align: left; }
body.ux .ux-dk-ic { width: 30px; height: 30px; border-radius: 8px; background: #fde7c2; color: #b45309; display: grid; place-items: center; flex: none; }
body.ux .ux-dk-ic .ic { width: 16px; height: 16px; }
body.ux .ux-dk-t { text-align: left; line-height: 1.25; }
body.ux .ux-dk-t small { display: block; font-weight: 500; font-size: 12px; color: #b45309; margin-top: 2px; }
body.ux td.ux-dk-mid { text-align: center; }
body.ux .ux-dk-btn, body.ux .ux-dk-back { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #f0c27a; background: #fff; color: #92400e; font: inherit; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
body.ux .ux-dk-btn:hover { background: #fff3dc; }
body.ux .ux-dk-btn .ic, body.ux .ux-dk-back .ic { width: 14px; height: 14px; }
body.ux .ux-dk-back { border-color: var(--g); color: var(--g-2); }
body.ux .ux-dk-back:hover { background: var(--g-soft); }
body.ux .ux-dk-x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #f3c4c4; background: #fff; color: #dc2626; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
body.ux .ux-dk-x:hover { background: #fdecec; }
body.ux .ux-dk-x .ic { width: 15px; height: 15px; }
body.ux .ux-dk-edit { display: inline-flex; gap: 6px; align-items: center; }
body.ux .ux-dk-in { height: 32px; width: 120px; border: 2px solid #f59e0b; border-radius: 8px; padding: 0 8px; font: inherit; font-weight: 700; font-size: 14px; text-align: right; color: #92400e; background: #fff; outline: 0; }
body.ux .ux-dk-ok { height: 32px; padding: 0 12px; border-radius: 8px; border: 0; background: #f59e0b; color: #fff; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
body.ux table.ux-cart-table tr.ux-debt.off td { background: #f6f7f9; color: #6b7280; }
body.ux tr.ux-debt.off .ux-dk-ic { background: #e5e7eb; color: #6b7280; }
body.ux tr.ux-debt.off .ux-dk-t small { color: #6b7280; }
body.ux tr.ux-debt.off s { color: #9ca3af; }

/* ===================== POS: Pending Bills (inaning'inia chini ya top bar) ===================== */
body.ux .ux-pb-ov { position: fixed; left: 0; right: 0; bottom: 0; top: 72px; z-index: 1200; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-start; justify-content: center; padding: 0 16px 20px; overflow-y: auto; scrollbar-width: none; }
body.ux .ux-pb-ov::-webkit-scrollbar { display: none; }
body.ux .ux-pb { width: 720px; max-width: 100%; background: #fff; border-radius: 0 0 18px 18px; border-top: 3px solid var(--g); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); padding: 20px 22px 18px; animation: uxPbIn .16s ease-out; }
@keyframes uxPbIn { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
body.ux .ux-pb-h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
body.ux .ux-pb-hi { width: 44px; height: 44px; border-radius: 12px; background: var(--g-soft); color: var(--g-2); display: grid; place-items: center; flex: none; }
body.ux .ux-pb-hi .ic { width: 22px; height: 22px; }
body.ux .ux-pb-h h3 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
body.ux .ux-pb-h h3 span { font-size: 12px; font-weight: 700; background: var(--g); color: #fff; border-radius: 10px; padding: 2px 8px; }
body.ux .ux-pb-h p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
body.ux .ux-pb-x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); cursor: pointer; padding: 0; }
body.ux .ux-pb-x:hover { color: var(--ink); background: #f5f6f8; }
body.ux .ux-pb-x .ic { width: 18px; height: 18px; }
body.ux .ux-pb-list { display: flex; flex-direction: column; gap: 10px; }
body.ux .ux-pb-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
body.ux .ux-pb-row:hover { border-color: var(--g); background: var(--g-row); box-shadow: 0 4px 14px rgba(var(--g-rgb), .12); }
body.ux .ux-pb-row.ask { cursor: default; border-color: #f3c4c4; background: #fff6f6; box-shadow: none; }
body.ux .ux-pb-av { width: 42px; height: 42px; border-radius: 50%; background: #eef2f7; color: #334155; font-weight: 800; display: grid; place-items: center; font-size: 15px; flex: none; }
body.ux .ux-pb-av.c { background: var(--g-soft); color: var(--g-3); }
body.ux .ux-pb-m { flex: 1; min-width: 0; }
body.ux .ux-pb-m b { display: block; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ux .ux-pb-m small { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; }
body.ux .ux-pb-m small span { display: inline-flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; }
body.ux .ux-pb-m small .ic { width: 13px; height: 13px; flex: none; }
body.ux .ux-pb-q { font-size: 12px; font-weight: 700; color: var(--ink-2); background: #f1f4f7; border-radius: 8px; padding: 4px 9px; white-space: nowrap; }
body.ux .ux-pb-t { text-align: right; min-width: 96px; }
body.ux .ux-pb-t b { display: block; font-size: 16px; color: var(--g-2); font-weight: 800; }
body.ux .ux-pb-t small { font-size: 11px; color: var(--muted); }
body.ux .ux-pb-go { height: 38px; padding: 0 14px; border-radius: 10px; background: var(--g); color: #fff; font: inherit; font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; white-space: nowrap; }
body.ux .ux-pb-go .ic { width: 16px; height: 16px; }
body.ux .ux-pb-del { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #f3c4c4; background: #fff; color: #dc2626; display: grid; place-items: center; flex: none; cursor: pointer; padding: 0; }
body.ux .ux-pb-del:hover { background: #fdecec; }
body.ux .ux-pb-del .ic { width: 17px; height: 17px; }
body.ux .ux-pb-ask { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #b91c1c; white-space: nowrap; }
body.ux .ux-pb-ask button { height: 36px; padding: 0 14px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 13px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
body.ux .ux-pb-ask button.y { background: #dc2626; border-color: #dc2626; color: #fff; }
body.ux .ux-pb-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 10px; color: var(--muted); text-align: center; }
body.ux .ux-pb-empty .ic { width: 34px; height: 34px; color: var(--g); background: var(--g-soft); border-radius: 50%; padding: 14px; box-sizing: content-box; }
body.ux .ux-pb-empty b { color: var(--ink); font-size: 15px; }
body.ux .ux-pb-f { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
body.ux .ux-pb-f b { color: var(--ink); font-size: 15px; }
body.ux .ux-pb-close { height: 42px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
@media (max-width: 700px) {
    body.ux .ux-pb-row { flex-wrap: wrap; gap: 10px; }
    body.ux .ux-pb-m { flex-basis: calc(100% - 60px); }
    body.ux .ux-pb-q { margin-left: 56px; } body.ux .ux-pb-t { margin-left: auto; text-align: right; }
    body.ux .ux-pb-ask { flex-basis: 100%; justify-content: flex-end; }
}

/* ===================== SMS za ukumbusho (Madeni -> SMS) ===================== */
body.ux .sm-head-chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body.ux .sm-chip { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13.5px; color: var(--ink-2); }
body.ux .sm-chip b { color: var(--ink); } body.ux .sm-chip .ic { width: 16px; height: 16px; color: var(--g); }
body.ux .sm-warn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f6d58e; margin-bottom: 16px; }
body.ux .sm-warn > .ic { width: 22px; height: 22px; color: #b45309; flex: none; }
body.ux .sm-warn b { display: block; color: #92400e; } body.ux .sm-warn span { font-size: 13px; color: #92400e; }
body.ux .sm-warn .ux-btn { margin-left: auto; }
body.ux .sm-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
body.ux .sm-seg > .ux-card { padding: 14px 16px; border: 2px solid transparent; text-align: left; font: inherit; cursor: pointer; background: #fff; }
body.ux .sm-seg > .ux-card:hover { border-color: rgba(var(--g-rgb), .35); }
body.ux .sm-seg > .ux-card.on { border-color: var(--g); background: var(--g-row); }
body.ux .sm-seg > .sm-seg-info { cursor: default; } body.ux .sm-seg > .sm-seg-info:hover { border-color: transparent; }
body.ux .sm-seg small { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
body.ux .sm-seg b { display: block; font-size: 22px; color: var(--ink); margin-top: 2px; }
body.ux .sm-seg span { font-size: 12px; color: var(--muted); }
body.ux .sm-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
body.ux .sm-dot.r { background: #dc2626; } body.ux .sm-dot.o { background: #f59e0b; } body.ux .sm-dot.g { background: var(--g); } body.ux .sm-dot.k { background: #6b7280; }
body.ux .sm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
body.ux .sm-tc { padding: 6px 6px 0; }
body.ux .sm-tc table.ux-table tbody td { height: 48px; }
body.ux .sm-tc tbody tr[data-id] { cursor: pointer; }
body.ux .sm-tc tbody tr.on td { background: var(--g-row) !important; }
body.ux .sm-tc tbody tr.mutd td { color: #9aa3ad; }
body.ux .sm-ph { font-size: 12px; color: var(--muted); } body.ux .sm-ph.bad { color: #dc2626; }
body.ux .sm-last { font-size: 12.5px; color: #b45309; font-weight: 600; }
body.ux .sm-one { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--g-2); cursor: pointer; padding: 0; }
body.ux .sm-one:hover { border-color: var(--g); background: var(--g-soft); } body.ux .sm-one:disabled { opacity: .35; cursor: not-allowed; }
body.ux .sm-one .ic { width: 15px; height: 15px; }
body.ux .sm-tc-h { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; flex-wrap: wrap; }
body.ux .sm-tc-h h3 { margin: 0; font-size: 15px; } body.ux .sm-tc-h .mut { font-size: 13px; } body.ux .sm-tc-h .mut b { color: var(--ink); }
body.ux .sm-tc-h .ux-input-ic { margin-left: auto; width: 240px; }
body.ux .sm-p { padding: 18px; position: sticky; top: 12px; }
body.ux .sm-p h3 { margin: 0 0 12px; font-size: 15px; }
body.ux .sm-tpl { display: flex; background: #f1f4f2; border-radius: 9px; padding: 3px; margin-bottom: 12px; }
body.ux .sm-tpl button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
body.ux .sm-tpl button.on { background: #fff; color: var(--g-3); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
body.ux .sm-ta { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 13.5px; line-height: 1.5; color: var(--ink); min-height: 100px; resize: vertical; outline: 0; box-sizing: border-box; }
body.ux .sm-ta:focus { border-color: var(--g); box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .sm-vars { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 14px; }
body.ux .sm-vars button { font: inherit; font-size: 12px; border: 1px dashed var(--g); color: var(--g-2); background: #fff; border-radius: 6px; padding: 2px 7px; cursor: pointer; }
body.ux .sm-vars button:hover { background: var(--g-soft); }
body.ux .sm-pv-l { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; gap: 10px; }
body.ux .sm-phone { background: #eef1f4; border-radius: 14px; padding: 14px; }
body.ux .sm-bub { background: #fff; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,.08); word-wrap: break-word; }
body.ux .sm-bub small { display: block; font-size: 11px; color: #6b7280; margin-bottom: 3px; font-weight: 700; }
body.ux .sm-cnt { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 12px 0; gap: 8px; }
body.ux .sm-cnt b { color: var(--ink); }
body.ux .sm-send { width: 100%; height: 52px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #1fb46a, #0f9152); color: #fff; font: inherit; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
body.ux .sm-send .ic { width: 20px; height: 20px; }
body.ux .sm-send.armed { background: linear-gradient(180deg, #f59e0b, #d97706); }
body.ux .sm-send:disabled { opacity: .45; cursor: not-allowed; }
body.ux .sm-note { font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; line-height: 1.45; }
body.ux .sm-note .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
body.ux .sm-res { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; max-height: 260px; overflow-y: auto; }
body.ux .sm-r-ok { font-weight: 700; color: var(--g-2); margin-bottom: 6px; }
body.ux .sm-r-err { font-weight: 700; color: #dc2626; margin-bottom: 6px; }
body.ux .sm-r-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line-2); }
body.ux .sm-r-row.ok span { color: var(--g-2); } body.ux .sm-r-row.bad span { color: #dc2626; } body.ux .sm-r-row small { color: var(--muted); text-align: right; }
body.ux .sm-r-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
body.ux .sm-h-msg { font-size: 13px; max-width: 520px; line-height: 1.45; }
body.ux .sm-h-err { font-size: 12px; color: #dc2626; margin-top: 3px; }
body.ux .sm-resend { margin-top: 5px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--g); background: #fff; color: var(--g-2); font: inherit; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
body.ux .sm-resend .ic { width: 13px; height: 13px; }
body.ux .sm-pager { display: flex; gap: 6px; justify-content: flex-end; padding: 12px; }
body.ux .sm-pager a { min-width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); text-decoration: none; }
body.ux .sm-pager a.on { background: var(--g); color: #fff; border-color: var(--g); }
@media (max-width: 1200px) { body.ux .sm-grid { grid-template-columns: 1fr; } body.ux .sm-p { position: static; } }
@media (max-width: 900px) { body.ux .sm-seg { grid-template-columns: 1fr 1fr; } body.ux .sm-tc { overflow-x: auto; } body.ux .sm-tc-h .ux-input-ic { width: 100%; } }
/* Settings -> SMS */
body.ux .sx-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #f4f6f8; border: 1px solid var(--line); margin-bottom: 14px; }
body.ux .sx-status > .ic { width: 22px; height: 22px; color: var(--muted); flex: none; }
body.ux .sx-status b { display: block; color: var(--ink); } body.ux .sx-status span { font-size: 13px; color: var(--ink-2); }
body.ux .sx-status.ok { background: var(--g-soft); border-color: rgba(var(--g-rgb), .25); } body.ux .sx-status.ok > .ic, body.ux .sx-status.ok b { color: var(--g-2); }
body.ux .sx-status.bad { background: #fdecec; border-color: #f3c4c4; } body.ux .sx-status.bad > .ic, body.ux .sx-status.bad b { color: #b91c1c; }
body.ux .sx-status .sx-bal { margin-left: auto; text-align: right; } body.ux .sx-status .sx-bal b { font-size: 18px; }
body.ux .sx-sw { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); cursor: pointer; }
body.ux .sx-sw input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
body.ux .sx-tg { display: inline-block; width: 42px; height: 24px; border-radius: 12px; background: #cfd5dc; position: relative; flex: none; transition: background .15s; }
body.ux .sx-tg:after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
body.ux .sx-sw input:checked + .sx-tg { background: var(--g); } body.ux .sx-sw input:checked + .sx-tg:after { left: 21px; }
body.ux .sx-key { position: relative; } body.ux .sx-key input { padding-right: 46px; }
body.ux .sx-key button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; }
body.ux .sx-key button .ic { width: 18px; height: 18px; }
body.ux .sx-ta { min-height: 84px; resize: vertical; line-height: 1.5; }
body.ux .sx-cnt { font-size: 12px; color: var(--muted); float: right; font-weight: 500; }
body.ux .sx-vars { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
body.ux .sx-vars span { font-size: 12px; border: 1px dashed var(--g); color: var(--g-2); border-radius: 6px; padding: 2px 7px; cursor: help; }
body.ux .sx-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.ux .sx-test { display: flex; gap: 10px; align-items: flex-end; }
body.ux .sx-test .form-group { flex: 1; margin: 0; } body.ux .sx-test .btn { height: 44px; }
body.ux .sx-res { margin-top: 10px; font-size: 13px; font-weight: 600; min-height: 18px; color: var(--muted); }
body.ux .sx-res.ok { color: var(--g-2); } body.ux .sx-res.bad { color: #dc2626; }
@media (max-width: 900px) { body.ux .sx-rules { grid-template-columns: 1fr; } body.ux .sx-test { flex-direction: column; align-items: stretch; } }
body.ux .main-content:has(.sm-head-chips) > * { flex-shrink: 0; }
/* Fomu ya mteja (sehemu zenye makundi) + jina rasmi */
body.ux .cf-wrap { max-width: 1040px; }
body.ux .cf-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
body.ux .cf-g2 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-items: start; }
body.ux .cf-legend-sub { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 6px; }
body.ux .cf-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); background: #f6f8fa; border-radius: 10px; padding: 9px 12px; margin: -2px 0 14px; }
body.ux .cf-hint .ic { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--g-2); }
body.ux .cf-prev { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--g); background: var(--g-row); border-radius: 12px; padding: 10px 14px; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
body.ux .cf-prev b { color: var(--ink); } body.ux .cf-prev .ic { width: 18px; height: 18px; color: var(--g-2); }
body.ux .cf-flags { padding-top: 24px; }
body.ux .cf-actions { display: flex; gap: 10px; margin: 6px 0 20px; }
body.ux .rp-cust-off { font-size: 12px; font-weight: 700; color: var(--g-3); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
body.ux .rp-cust-off .ic { width: 13px; height: 13px; }
@media (max-width: 900px) { body.ux .cf-g3, body.ux .cf-g2 { grid-template-columns: 1fr; } body.ux .cf-flags { padding-top: 0; } }

/* ===================== SYNC + BACKUP ===================== */
body.ux .ux-sync { position: relative; color: var(--g-2); }
body.ux .ux-sync .ux-sync-dot { position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 2px #fff; }
body.ux .ux-sync.wait .ux-sync-dot { background: #f59e0b; }
body.ux .ux-sync.bad { color: #dc2626; } body.ux .ux-sync.bad .ux-sync-dot { background: #dc2626; }
body.ux .ux-online-bar { display: flex; align-items: center; gap: 8px; padding: 7px 18px; background: #eef4ff; border-bottom: 1px solid #d6e4ff; color: #1e3a8a; font-size: 13px; grid-column: 1 / -1; }
body.ux .ux-online-bar .ic { width: 16px; height: 16px; }
body.ux .ux-online-bar span { color: #3b5bab; }
body.ux .sy-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.ux .sy-role { margin: 0; cursor: pointer; display: block; }
body.ux .sy-role input { position: absolute; opacity: 0; width: 0; height: 0; }
body.ux .sy-role-box { display: flex; flex-direction: column; gap: 4px; border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; height: 100%; box-sizing: border-box; transition: border-color .15s, background .15s; }
body.ux .sy-role-box .ic { width: 22px; height: 22px; color: var(--muted); }
body.ux .sy-role-box b { color: var(--ink); font-size: 14.5px; }
body.ux .sy-role-box small { color: var(--muted); font-size: 12.5px; line-height: 1.4; font-weight: 500; }
body.ux .sy-role input:checked + .sy-role-box { border-color: var(--g); background: var(--g-row); }
body.ux .sy-role input:checked + .sy-role-box .ic { color: var(--g-2); }
body.ux .sy-key-act { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
body.ux .sy-key-act .btn, body.ux .sy-btns .btn { display: inline-flex; align-items: center; gap: 7px; }
body.ux .sy-key-act .ic, body.ux .sy-btns .ic { width: 16px; height: 16px; }
body.ux .sy-btns { display: flex; gap: 10px; flex-wrap: wrap; }
body.ux .sy-h { font-size: 14px; margin: 18px 0 8px; color: var(--ink); }
body.ux .sy-backups table.ux-table tbody td { height: 40px; }
body.ux .sy-guide { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
@media (max-width: 900px) { body.ux .sy-roles { grid-template-columns: 1fr; } }
/* Nakala ya mtandaoni: kadi kwenye Dashboard + alama ndogo kwenye top bar */
body.ux .ux-dash-chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
body.ux .ux-online-card { display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; min-height: 52px; box-sizing: border-box; background: #fff; border: 1px solid #d6e4ff; border-radius: 14px; box-shadow: var(--shadow); }
body.ux .ux-oc-ic { width: 36px; height: 36px; border-radius: 10px; background: #eef4ff; color: #2563eb; display: grid; place-items: center; flex: none; }
body.ux .ux-oc-ic .ic { width: 19px; height: 19px; }
body.ux .ux-online-card b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
body.ux .ux-online-card small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 2px; }
body.ux .ux-oc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g); flex: none; }
body.ux .ux-online-card.stale .ux-oc-dot { background: #f59e0b; }
body.ux .ux-online-ic { color: #2563eb; cursor: help; }
@media (max-width: 900px) { body.ux .ux-dash-chips { justify-content: flex-start; } }
@media (max-width: 700px) {
    body.ux .ux-dash-chips { width: 100%; justify-content: flex-start; }
    body.ux .ux-online-card { flex: 1 1 100%; }
}
body.ux .ux-online-ic { color: #2563eb; cursor: default; }
body.ux a.ux-online-card { text-decoration: none; color: inherit; transition: border-color .15s; }
body.ux a.ux-online-card:hover { border-color: var(--g); }
body.ux .ux-online-card.is-local, body.ux .ux-online-card.is-off { border-color: #dfe3ec; }
body.ux .ux-online-card.bad { border-color: #fecaca; } body.ux .ux-online-card.bad .ux-oc-dot { background: #dc2626; }
body.ux .ux-online-card.bad .ux-oc-ic { background: #fef2f2; color: #dc2626; }
body.ux .ux-online-card.is-off .ux-oc-dot { background: #cbd5e1; } body.ux .ux-online-card.is-off .ux-oc-ic { background: #f1f5f9; color: #64748b; }

/* =====================================================================
 |  SCROLLBAR YA LED - mstari mwembamba unaong'aa kwa rangi ya theme (Chrome/Edge); Firefox: nyembamba
 ===================================================================== */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
    border-radius: 12px; border: 4px solid transparent; background-clip: padding-box;
    background-color: var(--g, #16a34a);
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 100%);
    box-shadow: inset 0 0 6px var(--g, #16a34a);
}
::-webkit-scrollbar-thumb:horizontal { background-image: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.7) 50%, rgba(255,255,255,0) 100%); }
::-webkit-scrollbar-thumb:hover { border-width: 3px; background-color: var(--g-2, #15803d); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports (-moz-appearance: none) { body.ux * { scrollbar-width: thin; scrollbar-color: var(--g) transparent; } }

/* =====================================================================
 |  HAKUNA KUSOGEA KULIA/KUSHOTO
 ===================================================================== */
body.ux .main-content { overflow-x: hidden; }
body.ux .ux-filters > * { min-width: 0; flex-shrink: 1 !important; }
body.ux .ux-filters > .ux-btn, body.ux .ux-filters > button { flex-shrink: 0 !important; }
@media (max-width: 1200px) { body.ux .ux-filters { flex-wrap: wrap; } body.ux .ux-filters > .ux-field { flex: 1 1 200px !important; } }
body.ux .ux-pg-pct { flex-wrap: wrap; min-width: 0; }
body.ux .ux-stat-sub { flex-wrap: wrap; row-gap: 2px; }
body.ux .main-content img, body.ux .main-content svg { max-width: 100%; }
body.ux .main-content pre { white-space: pre-wrap; word-break: break-word; }

/* ---- Jedwali lisilotosha upana (na kila jedwali la safu 4+ kwenye simu) linakuwa kadi: app.js huweka class "mc mc-on" ---- */
body.ux .ux-tablecard:has(table.mc-on) { overflow: visible; padding: 0; background: transparent; box-shadow: none; border: 0; }
body.ux table.mc-on tr { break-inside: avoid; }
body.ux table.mc-on, body.ux table.mc-on > tbody, body.ux table.mc-on > tfoot { display: block; width: 100% !important; min-width: 0 !important; border: 0 !important; background: transparent; }
body.ux table.mc-on > thead, body.ux table.mc-on tr.smart-filters, body.ux table.mc-on td.mc-hide { display: none !important; }
body.ux table.mc-on tr:not([style*="display: none"]):not([style*="display:none"]) { display: block !important; }
body.ux table.mc-on tr { display: block; position: relative; background: #fff; border: 1px solid #e8ecf2; border-radius: 14px; padding: 4px 14px 6px; margin: 0 0 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
body.ux table.mc-on tr:hover { background: #fff; }
body.ux table.mc-on td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0 !important; border: 0 !important; border-bottom: 1px dashed #eef1f5 !important; text-align: right !important; white-space: normal !important; min-width: 0 !important; width: auto !important; max-width: none !important; background: transparent !important; }
body.ux table.mc-on td:last-child { border-bottom: 0 !important; }
body.ux table.mc-on td::before { content: attr(data-label); flex: 0 0 auto; max-width: 48%; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; text-align: left; }
body.ux table.mc-on td[data-label=""]::before, body.ux table.mc-on td:not([data-label])::before { display: none; }
body.ux table.mc-on td[data-label=""] { justify-content: flex-end; }
body.ux table.mc-on td > .mc-v { min-width: 0; overflow-wrap: anywhere; }
body.ux table.mc-on td > .mc-v .ux-input, body.ux table.mc-on td > .mc-v .ux-select, body.ux table.mc-on td > .mc-v input:not([type=checkbox]):not([type=radio]), body.ux table.mc-on td > .mc-v select { max-width: 100%; width: 170px; }
body.ux table.mc-on td.mc-title { display: block; text-align: left !important; padding: 10px 34px 10px 0 !important; border-bottom: 1px solid #eef1f5 !important; font-size: 15px; }
body.ux table.mc-on td.mc-chk { position: absolute; top: 9px; right: 10px; padding: 0 !important; border: 0 !important; display: block; z-index: 1; }
body.ux table.mc-on td.mc-act { justify-content: flex-end; }
body.ux table.mc-on td.mc-act::before { display: none; }
body.ux table.mc-on td.mc-span { display: block; text-align: center !important; }
body.ux table.mc-on > tfoot tr { background: var(--g-soft, #f0fdf4); }
@media (min-width: 701px) { body.ux .ux-tablecard:has(table.mc-on) > table.mc-on > tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; } body.ux table.mc-on tr { margin: 0; } }
body.ux table.mc-on tr:has(> td.mc-span) { grid-column: 1 / -1; }
@media (max-width: 700px) {
    body.ux .main-content table:not(:has(> thead)) > tbody > tr:has(> th + td) > th,
    body.ux .main-content table:not(:has(> thead)) > tbody > tr:has(> th + td) > td { display: block; width: auto !important; border-left: 0; border-right: 0; }
    body.ux .main-content table:not(:has(> thead)) > tbody > tr:has(> th + td) > th { padding-bottom: 2px; border-bottom: 0; color: var(--muted); font-size: 12.5px; }
    body.ux .main-content table:not(:has(> thead)) { max-width: 100% !important; }
}
body.ux table.mc-on tr.on, body.ux table.mc-on tr.sel, body.ux table.mc-on tr.selected { background: var(--g-soft); border-color: var(--g); }
@media (max-width: 700px) {
    body.ux .main-content table:not(:has(> thead)) > tbody > tr:has(> th + td) > th { text-align: left; }
    body.ux .main-content table:not(:has(> thead)) > tbody > tr:has(> th + td) > td { white-space: normal; overflow-wrap: anywhere; }
}
body.ux .main-content table.mc-on tbody tr td, body.ux .main-content table.mc-on tbody tr.on td, body.ux .main-content table.mc-on tbody tr.sel td { background: transparent !important; }
/* Risiti ndani ya modal (iframe ya ukurasa wa risiti) */
.rc-frame-box { width: 100%; }
.rc-frame-box .rc-frame { display: block; width: 100%; border: 0; background: #fff; min-height: 120px; }
.rc-frame-box .rc-frame-wait { padding: 30px 0; text-align: center; color: #64748b; }
/* ---- Modal ya risiti (View Sale) kama SMA: dialog 600px, × juu kulia, vitufe vya mfumo chini ---- */
body.ux .rc-modal { align-items: flex-start; overflow-y: auto; padding: 30px 10px; }
body.ux .rc-modal .rc-dialog { width: 600px; max-width: 100%; margin: 0 auto; }
body.ux .rc-modal .rc-content { position: relative; padding: 15px; border-radius: 6px; background: #fff; box-shadow: 0 5px 15px rgba(0, 0, 0, .5); border: 1px solid rgba(0, 0, 0, .2); }
/* × kama SMA: <button class="close"><i class="fa fa-2x">&times;</i></button> - 42px, uzito wa kawaida (nyembamba), uwazi 20% */
body.ux .rc-modal .rc-x { position: absolute; top: 4px; right: 14px; z-index: 2; border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
    font: normal normal 400 42px/1 'Helvetica Neue', Helvetica, Arial, sans-serif; color: #000; text-shadow: 0 1px 0 #fff; opacity: .2; -webkit-appearance: none; }
body.ux .rc-modal .rc-x:hover, body.ux .rc-modal .rc-x:focus { opacity: .7; outline: 0; }
body.ux .rc-modal .rc-frame-box { width: 100%; }
body.ux .rc-modal .rc-frame { display: none; width: 100%; border: 0; background: #fff; }
body.ux .rc-modal .rc-frame.on { display: block; }
body.ux .rc-modal .rc-actions { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef1f5; }
body.ux .rc-modal .rc-actions .ux-btn { text-decoration: none; }
@media (max-width: 700px) { body.ux .rc-modal { padding: 10px; } body.ux .rc-modal .rc-actions { grid-template-columns: 1fr 1fr 1fr; } }

/* ---- Mistari hafifu sana kutenganisha safu (majedwali yote yenye safu) ---- */
body.ux table.ux-table thead th + th { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .22); }
body.ux table.ux-table tbody td + td { box-shadow: inset 1px 0 0 rgba(15, 23, 42, .05); }
body.ux table.mc-on td, body.ux table.mc-on th { box-shadow: none !important; }

/* ---- List Sales: mstari unaweza kuwa mistari 2 (kama SMA) ili taarifa zijipange vizuri ---- */
body.ux table.ux-sl tbody td { white-space: normal; line-height: 1.35; padding-top: 9px; padding-bottom: 9px; height: 52px; }
body.ux table.ux-sl thead th { white-space: normal; line-height: 1.25; }
body.ux table.ux-sl .ux-sl-chk { width: 40px; text-align: center; padding-left: 10px !important; padding-right: 6px !important; }
body.ux table.ux-sl input.ux-chk { width: 17px; height: 17px; accent-color: var(--g); cursor: pointer; vertical-align: middle; margin: 0; }
body.ux table.ux-sl thead input.ux-chk { accent-color: #fff; }
body.ux table.ux-sl .ux-sl-dt { white-space: nowrap; }
body.ux table.ux-sl .ux-sl-dt small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
body.ux table.ux-sl .ux-sl-ref { word-break: break-word; min-width: 120px; }
body.ux table.ux-sl .ux-sl-due { color: #dc2626; font-weight: 600; }
body.ux table.ux-sl tbody tr.chk td { background: var(--g-soft); }

/* =====================================================================
 |  MAJEDWALI KAMA SMA: vichwa katikati, mistari inayopishana rangi (zebra), mistari ya safu inayoonekana kidogo
 ===================================================================== */
body.ux table.ux-table thead th { text-align: center; }
body.ux table.ux-table tbody tr:nth-child(even) > td { background: #f6f8fb; }
body.ux table.ux-table tbody td + td { box-shadow: inset 1px 0 0 rgba(15, 23, 42, .07); }
body.ux table.ux-table tbody tr.ux-row:hover > td { background: var(--g-row); }
body.ux table.ux-table tbody tr.ux-row.sel > td, body.ux table.ux-table tbody tr.chk > td { background: var(--g-soft); }
body.ux table.mc-on tbody tr > td { background: transparent; }

/* List Sales: tarehe na saa kamili (dd/mm/yyyy, hh:mm:ss) kwa ukubwa mmoja */
body.ux table.ux-sl .ux-sl-dt .ux-dt { border: 0 !important; text-decoration: none; color: var(--ink); }
body.ux table.ux-sl .ux-sl-dt small { font-size: 14px; color: var(--ink); margin-top: 2px; }
body.ux table.ux-sl tbody td { height: 60px; }

/* List Products: jina na Category vinaweza kushuka mstari wa pili (kama SMA) */
body.ux table.ux-pl tbody td { white-space: normal; line-height: 1.35; height: 56px; vertical-align: middle; }
body.ux table.ux-pl thead th { white-space: normal; line-height: 1.25; }
body.ux table.ux-pl .ux-pl-cat { text-transform: uppercase; font-size: 12.5px; color: var(--ink-2); min-width: 64px; max-width: 140px; overflow-wrap: anywhere; }
body.ux table.ux-pl .ux-pname { min-width: 110px; overflow-wrap: anywhere; }
body.ux #productsTable.ux-pl td.code { max-width: 120px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; font-size: 13px; }
body.ux table.ux-pl thead th, body.ux table.ux-pl tbody td { padding-left: 6px; padding-right: 6px; }
body.ux table.ux-pl thead th:first-child, body.ux table.ux-pl tbody td:first-child { padding-left: 10px; }
body.ux table.ux-pl td.num { white-space: nowrap; }
body.ux table.ux-pl .ux-badge { padding-left: 9px; padding-right: 9px; }

/* ---- Pager kama SMA (Bootstrap pagination): vitufe vilivyounganishwa "< Previous | 1 | 2 | 3 | Next >" ---- */
body.ux .main-content .ux-pager.pager .ux-pg-group { display: inline-flex; gap: 0; flex-wrap: wrap; }
body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg,
body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg-gap {
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    min-width: 36px; height: 36px; padding: 0 12px; margin: 0 0 0 -1px;
    border: 1px solid #dde2eb; background: #fff; color: var(--g-2, #0d8a4d);
    font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; border-radius: 0; position: relative;
}
body.ux .main-content .ux-pager.pager .ux-pg-group > :first-child { margin-left: 0; border-radius: 4px 0 0 4px; }
body.ux .main-content .ux-pager.pager .ux-pg-group > :last-child { border-radius: 0 4px 4px 0; }
body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg:hover { background: #f3f5f8; z-index: 1; }
body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg.on { background: var(--g, #12a05c); border-color: var(--g, #12a05c); color: #fff; font-weight: 700; z-index: 2; cursor: default; }
body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg.dis { color: #a0a7b4; background: #fff; pointer-events: none; opacity: 1; }
body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg-gap { color: var(--muted); cursor: default; }
body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg-txt { padding: 0 14px; }
@media (max-width: 700px) { body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg, body.ux .main-content .ux-pager.pager .ux-pg-group > .ux-pg-gap { min-width: 32px; height: 34px; padding: 0 9px; font-size: 13px; } }

/* ---- SMS: tabs Madeni | Taarifa, makundi ya bei ---- */
body.ux .sm-tabs { margin-top: 2px; }
body.ux .sm-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 11px; font-size: 14.5px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
body.ux .sm-tabs a .ic { width: 17px; height: 17px; }
body.ux .sm-tabs a:hover { color: var(--ink); }
body.ux .sm-tabs a.active { color: var(--g-3); font-weight: 600; border-bottom-color: var(--g); }
body.ux .smi-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 16px; font-size: 13.5px; }
body.ux .smi-gchip { border: 1px solid #dde2eb; background: #fff; border-radius: 20px; padding: 6px 12px; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
body.ux .smi-gchip b { margin-left: 4px; color: var(--g-3); }
body.ux .smi-gchip:hover, body.ux .smi-gchip.on { border-color: var(--g); background: var(--g-soft); }
body.ux .smi-save { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 8px 0 4px; cursor: pointer; }
body.ux .smi-save input { accent-color: var(--g); width: 16px; height: 16px; }

/* =====================================================================
 |  RITANI YA VAT (makadirio)
 ===================================================================== */
body.ux .main-content:has(.vt-cards) > * { flex-shrink: 0; }
body.ux .vt-head { align-items: flex-end; }
body.ux .vt-ctrl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.ux .vt-month { display: flex; align-items: center; height: 46px; border: 1px solid #dde2eb; border-radius: 9px; background: #fff; overflow: hidden; }
body.ux .vt-month > a { display: grid; place-items: center; width: 38px; height: 100%; color: var(--ink-2); }
body.ux .vt-month > a:hover { background: var(--g-soft); color: var(--g-3); }
body.ux .vt-month > a .ic { width: 18px; height: 18px; }
body.ux .vt-month label { position: relative; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 12px; margin: 0; font-weight: 600; border-left: 1px solid #eef1f5; border-right: 1px solid #eef1f5; cursor: pointer; }
body.ux .vt-month label .ic { width: 18px; height: 18px; color: var(--g-3); }
body.ux .vt-month input[type=month] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
body.ux .vt-due { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 9px; background: #f2faf5; color: #0d6b35; font-size: 13.5px; border: 1px solid #cdeedd; }
body.ux .vt-due .ic { width: 17px; height: 17px; }
body.ux .vt-due.soon { background: #fff7e6; color: #9a5b00; border-color: #fde3b0; }
body.ux .vt-due.late { background: #fdecec; color: #9b1c1c; border-color: #f6c9c9; }
body.ux .vt-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
body.ux .vt-card { padding: 16px 18px; }
body.ux .vt-card small { display: block; color: var(--muted); font-size: 13px; }
body.ux .vt-card b { display: block; font-size: 24px; margin: 6px 0 2px; color: var(--ink); font-variant-numeric: tabular-nums; }
body.ux .vt-card span { font-size: 12.5px; color: var(--muted); }
body.ux .vt-card.pay { background: linear-gradient(180deg, var(--ga) 0%, var(--gb) 100%); border-color: var(--gb); }
body.ux .vt-card.pay small, body.ux .vt-card.pay span, body.ux .vt-card.pay b { color: #fff; }
body.ux .vt-card.pay small, body.ux .vt-card.pay span { opacity: .85; }
body.ux .vt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
body.ux .vt-box { padding: 0 16px 16px; }
body.ux .vt-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -16px 10px; padding: 0 10px; overflow: hidden; flex-wrap: wrap; }
body.ux .vt-tabs a { display: flex; align-items: center; gap: 8px; padding: 14px 12px 12px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
body.ux .vt-tabs a .ic { width: 17px; height: 17px; }
body.ux .vt-tabs a b { background: #eef2f6; color: #475569; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
body.ux .vt-tabs a:hover { color: var(--ink); }
body.ux .vt-tabs a.on { color: var(--g-3); font-weight: 600; border-bottom-color: var(--g); }
body.ux .vt-tabs a.on b { background: var(--g-soft); color: var(--g-3); }
body.ux .vt-hint { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
body.ux table.vt-t tbody td { height: 44px; white-space: normal; }
body.ux table.vt-t .vt-v { color: var(--g-3); font-weight: 600; }
body.ux table.vt-t tr.vt-new > td { background: #f2faf5 !important; padding-top: 7px; padding-bottom: 7px; }
body.ux table.vt-t tr.vt-empty td { text-align: center; color: var(--muted); padding: 24px 10px; }
body.ux table.vt-t tfoot td { font-weight: 700; border-top: 2px solid var(--ink) !important; padding: 11px 10px; }
body.ux .vt-in { width: 100%; height: 36px; border: 1px solid #d6dce5; border-radius: 7px; padding: 0 9px; font: inherit; font-size: 13px; box-sizing: border-box; background: #fff; }
body.ux .vt-in:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .vt-in.num { text-align: right; } body.ux .vt-in.bad { border-color: #dc2626; }
body.ux .vt-x { border: 0; background: none; color: #dc2626; font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; }
body.ux .vt-ok { width: 34px; height: 34px; border-radius: 8px; border: 0; background: var(--g); color: #fff; display: grid; place-items: center; cursor: pointer; }
body.ux .vt-ok .ic { width: 18px; height: 18px; }
body.ux .vt-add { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
body.ux .vt-add form { margin: 0; }
body.ux .vt-add-btn { border-style: dashed !important; border-color: var(--g) !important; background: #f2faf5 !important; color: var(--g-3) !important; cursor: pointer; margin: 0; }
body.ux .vt-incl { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); font-weight: 500; cursor: pointer; }
body.ux .vt-incl input { accent-color: var(--g); width: 16px; height: 16px; }
body.ux .vt-imp-help { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
body.ux .vt-sum { padding: 18px; position: sticky; top: 12px; }
body.ux .vt-sum h3 { margin: 0 0 12px; font-size: 16px; }
body.ux .vt-rate { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
body.ux .vt-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #e6e9ef; font-size: 14px; gap: 10px; }
body.ux .vt-row b { font-variant-numeric: tabular-nums; }
body.ux .vt-row.min b { color: #dc2626; }
body.ux .vt-row.big { border: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px; font-size: 15px; }
body.ux .vt-row.big b { color: var(--g-3); font-size: 20px; }
body.ux .vt-carry button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 2px; vertical-align: middle; }
body.ux .vt-carry button .ic { width: 14px; height: 14px; }
body.ux .vt-carry-f { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 8px 0; }
body.ux .vt-carry-f small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
body.ux .vt-carry-f .ux-btn { height: 36px; padding: 0 14px; }
body.ux .vt-btn { width: 100%; justify-content: center; margin-top: 10px; text-decoration: none; }
body.ux .vt-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
@media (max-width: 1200px) { body.ux .vt-grid { grid-template-columns: 1fr; } body.ux .vt-sum { position: static; } body.ux .vt-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
    body.ux .vt-head { flex-direction: column; align-items: stretch; }
    body.ux .vt-cards { grid-template-columns: 1fr; }
    body.ux table.vt-t thead { display: none; }
    body.ux table.vt-t, body.ux table.vt-t tbody, body.ux table.vt-t tfoot, body.ux table.vt-t tr { display: block; width: 100%; }
    body.ux table.vt-t td { display: block; height: auto; border: 0 !important; box-shadow: none !important; padding: 4px 8px !important; }
    body.ux table.vt-t tbody tr { border-bottom: 1px solid var(--line-2); padding: 8px 0; position: relative; }
    body.ux table.vt-t tbody tr td:last-child { position: absolute; top: 6px; right: 0; }
    body.ux .vt-incl { margin-left: 0; }
}
body.ux .vt-carry-f[hidden] { display: none; }
body.ux .vt-add .ux-btn, body.ux .vt-add label.ux-btn { height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; font-size: 14px; }

/* =====================================================================
 |  TAARIFA (madeni + audit) · kengele · sync ya kubonyeza
 ===================================================================== */
body.ux .ux-bell-n[hidden], body.ux .ux-side-notif-n[hidden] { display: none; }
body.ux .ux-side-notif-n { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red, #dc2626); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
body.ux.ux-side-mini .ux-side-notif-n { position: absolute; top: 4px; right: 6px; min-width: 16px; height: 16px; font-size: 9.5px; padding: 0 4px; margin: 0; }
body.ux .ux-nav-item { position: relative; }
body.ux .ux-sync.spin .ic { animation: uxSpin .9s linear infinite; }
@keyframes uxSpin { to { transform: rotate(-360deg); } }
.g-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: .25s; z-index: 99999; max-width: calc(100vw - 32px); }
.g-toast.show { opacity: 1; transform: translate(-50%, 0); }
.g-toast.error { background: #991b1b; }
body.ux .nt-top { display: flex; gap: 10px; flex-wrap: wrap; }
body.ux .nt-top .ux-btn { display: inline-flex; align-items: center; gap: 8px; }
body.ux .nt-top .nt-clear { color: #dc2626; border-color: #fecaca; }
body.ux .nt-top .nt-clear:hover { background: #fef2f2; }
body.ux .nt-tabs .nt-n { font-weight: 700; font-size: 12px; background: #eef2f6; color: #475569; border-radius: 10px; padding: 1px 8px; margin-left: 6px; }
body.ux .nt-tabs .nt-n.on { background: #fee2e2; color: #b91c1c; }
body.ux .nt-bar { display: flex; gap: 12px; align-items: center; margin: 4px 0 14px; flex-wrap: wrap; }
body.ux .nt-chips { display: flex; gap: 8px; flex-wrap: wrap; }
body.ux .nt-chips a { font-size: 13px; border: 1px solid #e2e8f0; border-radius: 20px; padding: 6px 14px; color: #475569; background: #fff; text-decoration: none; }
body.ux .nt-chips a:hover { border-color: var(--g); }
body.ux .nt-chips a.on { background: var(--g-soft); border-color: var(--g); color: var(--g-3); font-weight: 600; }
body.ux .nt-search { margin-left: auto; position: relative; width: 300px; max-width: 100%; }
body.ux .nt-search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
body.ux .nt-search input { width: 100%; height: 42px; border: 1px solid #dde2eb; border-radius: 9px; padding: 0 12px 0 38px; font: inherit; font-size: 13.5px; box-sizing: border-box; background: #fff; }
body.ux .nt-search input:focus { outline: 0; border-color: var(--g); }
body.ux .nt-list { padding: 0; overflow: hidden; }
body.ux .nt-day { font-size: 11.5px; font-weight: 700; color: #94a3b8; letter-spacing: .06em; text-transform: uppercase; padding: 12px 20px 6px; background: #fafbfc; border-bottom: 1px solid #f1f4f8; }
body.ux .nt-day[hidden], body.ux .nt-it[hidden] { display: none; }
body.ux .nt-it { display: flex; gap: 14px; align-items: center; padding: 13px 16px 13px 20px; border-bottom: 1px solid #f1f4f8; cursor: default; }
body.ux .nt-it:last-child { border-bottom: 0; }
body.ux .nt-it.unread { background: #f4fbf7; cursor: pointer; }
body.ux .nt-it:hover { background: #f8fafc; } body.ux .nt-it.unread:hover { background: #ecf8f1; }
body.ux .nt-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; }
body.ux .nt-ic .ic { width: 19px; height: 19px; }
body.ux .nt-ic.t-r { background: #fee2e2; color: #b91c1c; } body.ux .nt-ic.t-g { background: #dcfce7; color: #15803d; }
body.ux .nt-ic.t-o { background: #ffedd5; color: #c2410c; } body.ux .nt-ic.t-b { background: #dbeafe; color: #1d4ed8; }
body.ux .nt-ic.t-p { background: #ede9fe; color: #6d28d9; }
body.ux .nt-body { flex: 1; min-width: 0; }
body.ux .nt-text { font-size: 14.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
body.ux .nt-text b { font-weight: 600; }
body.ux .nt-meta { font-size: 12.5px; color: #94a3b8; margin-top: 3px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
body.ux .nt-tag { font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 7px; background: #fee2e2; color: #b91c1c; }
body.ux .nt-tag.a { background: #ede9fe; color: #6d28d9; }
body.ux .nt-act { font-size: 13px; color: var(--g-3); font-weight: 600; border: 1px solid #bbf7d0; border-radius: 8px; padding: 6px 12px; background: #fff; white-space: nowrap; text-decoration: none; flex: none; }
body.ux .nt-act:hover { background: var(--g-soft); }
body.ux .nt-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: transparent; }
body.ux .nt-it.unread .nt-dot { background: var(--g); }
body.ux .nt-x { width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: none; color: #94a3b8; display: grid; place-items: center; cursor: pointer; flex: none; }
body.ux .nt-x .ic { width: 17px; height: 17px; }
body.ux .nt-x:hover { color: #dc2626; background: #fef2f2; border-color: #fecaca; }
body.ux .nt-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; color: var(--muted); text-align: center; }
body.ux .nt-empty .ic { width: 34px; height: 34px; color: #cbd5e1; margin-bottom: 4px; }
body.ux .nt-empty b { color: var(--ink); font-size: 15px; }
body.ux .nt-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: #0f172a; color: #fff; border-radius: 10px; padding: 11px 12px 11px 18px; font-size: 14px; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 9999; }
body.ux .nt-toast[hidden] { display: none; }
body.ux .nt-toast button { border: 0; background: rgba(255,255,255,.08); color: #4ade80; font-weight: 600; padding: 6px 12px; border-radius: 7px; cursor: pointer; font: inherit; font-weight: 600; }
@media (max-width: 700px) {
    body.ux .nt-search { margin-left: 0; width: 100%; }
    body.ux .nt-it { flex-wrap: wrap; padding: 12px 12px 12px 14px; gap: 10px; position: relative; }
    body.ux .nt-body { flex-basis: calc(100% - 100px); }
    body.ux .nt-act { margin-left: 50px; }
    body.ux .nt-dot { position: absolute; top: 18px; right: 46px; }
    body.ux .nt-x { position: absolute; top: 8px; right: 6px; }
    body.ux .nt-it .nt-body { padding-right: 40px; }
}
body.ux .ux-sync.off { color: #94a3b8; } body.ux .ux-sync.off .ux-sync-dot { background: #cbd5e1; }
/* Barcode Symbology (Settings -> POS) */
body.ux .bc-help { margin: 0 0 12px; font-size: 13px; }
body.ux .bc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.ux .bc-o { position: relative; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 14px; cursor: pointer; margin: 0; font-weight: 400; background: #fff; }
body.ux .bc-o.on { border-color: var(--g); background: #f6fcf8; box-shadow: 0 0 0 3px rgba(var(--g-rgb), .1); }
body.ux .bc-t { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
body.ux .bc-t input { accent-color: var(--g); width: 17px; height: 17px; margin: 0; }
body.ux .bc-d { font-size: 12.5px; color: var(--muted); line-height: 1.45; min-height: 36px; }
body.ux .bc-img { display: grid; place-items: center; background: #fff; border: 1px solid #eef1f5; border-radius: 8px; height: 96px; overflow: hidden; }
body.ux .bc-img svg { max-width: 100%; height: 84px; }
body.ux .bc-ex { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); gap: 8px; }
body.ux .bc-ex b { font-family: ui-monospace, monospace; color: var(--ink); }
body.ux .bc-tag { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 700; background: #dcfce7; color: #15803d; border-radius: 5px; padding: 2px 7px; }
@media (max-width: 900px) { body.ux .bc-opts { grid-template-columns: 1fr; } }
body.ux .bc-o { text-align: left; align-items: stretch; } body.ux .bc-t { justify-content: flex-start; } body.ux .bc-img { width: 100%; box-sizing: border-box; }
body.ux .bc-fs .form-group small { display: block; margin-top: 6px; }
body.ux .rv-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
body.ux .rv-opts .bc-img { height: 110px; }
body.ux .rv-opts .rv-bc { width: 70%; height: auto; }
body.ux .rv-opts .rv-qr svg { width: 92px !important; height: 92px !important; }
@media (max-width: 900px) { body.ux .rv-opts { grid-template-columns: 1fr; } }
body.ux .nt-mode { display: inline-flex; border: 1px solid #dde2eb; border-radius: 9px; overflow: hidden; margin: 2px 0 12px; background: #fff; }
body.ux .nt-mode a { padding: 9px 16px; font-size: 13.5px; color: var(--ink-2); text-decoration: none; }
body.ux .nt-mode a + a { border-left: 1px solid #eef1f5; }
body.ux .nt-mode a.on { background: var(--g); color: #fff; font-weight: 600; }
body.ux .nt-full-info { font-size: 13px; color: var(--muted); }
body.ux .nt-full .nt-code { font-size: 12px; background: #f1f5f9; padding: 2px 6px; border-radius: 5px; color: #334155; white-space: normal; word-break: break-all; }
body.ux .nt-full .nt-det { font-size: 11.5px; word-break: break-all; margin-top: 3px; }
body.ux .nt-full td { white-space: normal; vertical-align: top; }
/* Stock Adjustment kwa wingi */
body.ux .sa-card { padding: 16px; overflow: visible; }
body.ux .sa-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
body.ux .sa-mode { display: inline-flex; border: 1px solid #dde2eb; border-radius: 9px; overflow: hidden; flex-wrap: wrap; }
body.ux .sa-mode button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: #fff; padding: 10px 14px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
body.ux .sa-mode button + button { border-left: 1px solid #eef1f5; }
body.ux .sa-mode button .ic { width: 16px; height: 16px; }
body.ux .sa-mode button.on { background: var(--g); color: #fff; font-weight: 600; }
body.ux .sa-csv { cursor: pointer; margin: 0; display: inline-flex; align-items: center; gap: 8px; }
body.ux .sa-hint { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
body.ux table.sa-t td { white-space: normal; vertical-align: middle; }
body.ux table.sa-t .sa-code { font-size: 11.5px; }
body.ux table.sa-t .sa-no { text-align: center; color: var(--muted); }
body.ux .sa-in { width: 110px; height: 36px; border: 1px solid #d6dce5; border-radius: 7px; padding: 0 9px; text-align: right; font: inherit; box-sizing: border-box; }
body.ux .sa-in:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .sa-diff { font-weight: 600; } body.ux .sa-diff.up { color: #15803d; } body.ux .sa-diff.down { color: #dc2626; }
body.ux .sa-os { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 8px; white-space: nowrap; }
body.ux .sa-os.ok { background: #dcfce7; color: #15803d; } body.ux .sa-os.no { background: #fee2e2; color: #b91c1c; }
body.ux .sa-x { border: 0; background: none; color: #dc2626; font-size: 20px; cursor: pointer; }
body.ux tr.sa-new > td { background: #f2faf5 !important; }
body.ux .sa-find { position: relative; max-width: 520px; }
body.ux .sa-find > .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
body.ux .sa-find input { width: 100%; height: 40px; border: 1px solid #d6dce5; border-radius: 8px; padding: 0 12px 0 36px; font: inherit; font-size: 13.5px; box-sizing: border-box; background: #fff; }
body.ux .sa-find input:focus { outline: 0; border-color: var(--g); }
body.ux .sa-dd { position: absolute; left: 0; right: 0; top: 44px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; box-shadow: 0 12px 30px rgba(15,23,42,.15); z-index: 50; max-height: 320px; overflow: auto; }
body.ux .sa-dd[hidden] { display: none; }
body.ux .sa-dd a { display: flex; gap: 8px; align-items: center; padding: 10px 12px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #f1f4f8; font-size: 13.5px; }
body.ux .sa-dd a:hover { background: var(--g-soft); }
body.ux .sa-dd .sa-u { font-size: 11px; font-weight: 700; background: var(--g-soft); color: var(--g-3); border-radius: 5px; padding: 1px 6px; }
body.ux .sa-dd .mut { margin-left: auto; }
body.ux .sa-none { padding: 12px; }
body.ux .sa-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
body.ux .sa-notes { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 240px; max-width: 520px; font-size: 13px; color: var(--muted); }
body.ux .sa-notes input { flex: 1; height: 40px; }
body.ux .sa-csv-help { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 700px) {
    body.ux table.sa-t thead { display: none; }
    body.ux table.sa-t, body.ux table.sa-t tbody, body.ux table.sa-t tr { display: block; width: 100%; }
    body.ux table.sa-t tbody#saBody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 6px; border-bottom: 1px solid var(--line-2); position: relative; }
    body.ux table.sa-t td { display: block; border: 0 !important; box-shadow: none !important; padding: 2px 4px !important; text-align: left !important; }
    body.ux table.sa-t td.sa-no { display: none; }
    body.ux table.sa-t td:last-child { position: absolute; top: 4px; right: 0; }
}
/* Overselling */
body.ux .ux-os-lock { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #fee2e2; color: #b91c1c; vertical-align: middle; margin-left: 4px; }
body.ux .ux-os-lock .ic { width: 12px; height: 12px; }
body.ux .ux-pdd-out { font-style: normal; font-size: 11px; font-weight: 700; background: #fee2e2; color: #b91c1c; border-radius: 5px; padding: 1px 7px; margin-left: 6px; }
/* VAT: Z-Report / aina nyingine */
body.ux .vt-tabs a[hidden], body.ux .vt-more[hidden], body.ux .vt-zmode[hidden] { display: none; }
body.ux .vt-more { margin-left: auto; align-self: center; border: 1px dashed #cbd5e1; background: #fff; color: var(--muted); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 12.5px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
body.ux .vt-more .ic { width: 14px; height: 14px; }
body.ux .vt-zmode { display: flex; align-items: center; gap: 0; margin: 0 0 8px; font-size: 13px; color: var(--muted); }
body.ux .vt-zmode span { margin-right: 8px; }
body.ux .vt-zmode button { border: 1px solid #dde2eb; background: #fff; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink-2); }
body.ux .vt-zmode button:first-of-type { border-radius: 8px 0 0 8px; } body.ux .vt-zmode button:last-of-type { border-radius: 0 8px 8px 0; border-left: 0; }
body.ux .vt-zmode button.on { background: var(--g); border-color: var(--g); color: #fff; font-weight: 600; }
body.ux table.vt-t.vt-z th:nth-child(4), body.ux table.vt-t.vt-z td:nth-child(4) { display: none; }
body.ux table.vt-t.vt-z tfoot td:first-child { }
body.ux .vt-in.vt-v { color: var(--g-3); font-weight: 600; }
body.ux .nt-mode { flex-shrink: 0; align-self: flex-start; }
body.ux .nt-full th:nth-child(3), body.ux .nt-full td:nth-child(3) { min-width: 160px; }
body.ux .nt-full td:nth-child(1), body.ux .nt-full td:nth-child(2) { white-space: nowrap; }

/* =====================================================================
 |  RITANI YA VAT (v2): kadi 3 + banner + tabs 2 + jedwali la mtindo wa Excel
 ===================================================================== */
body.ux .main-content:has(.vr-cards) > * { flex-shrink: 0; }
body.ux .vr-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 12px; }
body.ux .vr-card { padding: 16px 18px; border-left: 4px solid #cbd5e1; }
body.ux .vr-card small { display: block; color: #475569; font-size: 13px; font-weight: 600; }
body.ux .vr-card b { display: block; font-size: 26px; margin: 6px 0 2px; color: #1f2937; font-variant-numeric: tabular-nums; }
body.ux .vr-card span { font-size: 12.5px; color: var(--muted); }
body.ux .vr-net.pay { border-left-color: #dc2626; } body.ux .vr-net.pay b { color: #b91c1c; }
body.ux .vr-net.credit { border-left-color: #2563eb; } body.ux .vr-net.credit b { color: #1d4ed8; }
body.ux .vr-banner { border-radius: 12px; padding: 13px 16px; font-size: 14.5px; font-weight: 600; margin-bottom: 16px; border: 1px solid; letter-spacing: .01em; }
body.ux .vr-banner.pay { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
body.ux .vr-banner.credit { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
body.ux .vr-banner.zero { background: #f0fdf4; border-color: #bbf7d0; color: #166534; font-weight: 500; }
body.ux .vr-banner b { font-weight: 800; }
body.ux .vr-box { padding: 0 16px 16px; }
body.ux .vr-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -16px 14px; padding: 0 10px; flex-wrap: wrap; }
body.ux .vr-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; padding: 15px 14px 12px; font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
body.ux .vr-tabs button .ic { width: 17px; height: 17px; }
body.ux .vr-tabs button b { background: #eef2f6; color: #475569; border-radius: 10px; padding: 1px 8px; font-size: 12px; }
body.ux .vr-tabs button.on { color: var(--g-3); border-bottom-color: var(--g); }
body.ux .vr-tabs button.on b { background: var(--g-soft); color: var(--g-3); }
body.ux .vr-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; background: #f8fafc; border: 1px solid #e8edf3; border-radius: 12px; padding: 14px; margin-bottom: 14px; }
body.ux .vr-form.is-sales { grid-template-columns: 150px repeat(3, minmax(0, 1fr)) 130px auto; }
body.ux .vr-form.is-sales .vr-p { display: none; }
body.ux .vr-f { display: flex; flex-direction: column; gap: 5px; margin: 0; font-weight: 400; }
body.ux .vr-f > span { font-size: 12.5px; font-weight: 600; color: #475569; }
body.ux .vr-f input { height: 40px; border: 1px solid #d6dce5; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; box-sizing: border-box; width: 100%; }
body.ux .vr-f input:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px rgba(var(--g-rgb), .12); }
body.ux .vr-f input.bad { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
body.ux .vr-f #fA, body.ux .vr-f #fE { text-align: right; }
body.ux .vr-prev b { height: 40px; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; border: 1px dashed #bbf7d0; border-radius: 8px; background: #f0fdf4; color: var(--g-3); font-size: 15px; font-variant-numeric: tabular-nums; }
body.ux .vr-save { height: 40px; white-space: nowrap; justify-content: center; }
/* Jedwali la Excel: mistari ya pande zote, kichwa kijivu, namba za mistari */
body.ux .vr-xl-wrap { border: 1px solid #cfd6df; border-radius: 8px; overflow: hidden; }
body.ux table.vr-xl { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
body.ux table.vr-xl th, body.ux table.vr-xl td { border: 1px solid #dfe4ea; padding: 8px 10px; text-align: left; white-space: normal; }
body.ux table.vr-xl tr > :first-child { border-left: 0; } body.ux table.vr-xl tr > :last-child { border-right: 0; }
body.ux table.vr-xl thead th { background: #eef2f6; color: #334155; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border-top: 0; }
body.ux table.vr-xl .num { text-align: right; font-variant-numeric: tabular-nums; }
body.ux table.vr-xl .vr-no { width: 38px; text-align: center; background: #f6f8fa; color: #94a3b8; font-size: 12px; }
body.ux table.vr-xl tbody tr:nth-child(even) td:not(.vr-no) { background: #fafbfc; }
body.ux table.vr-xl tbody tr:hover td:not(.vr-no) { background: #f2faf5; }
body.ux table.vr-xl .vr-v { color: var(--g-3); font-weight: 700; }
body.ux table.vr-xl tfoot td { background: #f1f5f9; font-weight: 800; border-top: 2px solid #94a3b8; border-bottom: 0; }
body.ux table.vr-xl .vr-empty td { text-align: center; color: var(--muted); padding: 26px 10px; background: #fff !important; }
body.ux table.vr-xl .vr-act { width: 84px; text-align: center; }
body.ux .vr-del { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #fecaca; background: #fff; color: #dc2626; border-radius: 7px; padding: 5px 10px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
body.ux .vr-del .ic { width: 14px; height: 14px; }
body.ux .vr-del:hover { background: #fef2f2; }
body.ux .vr-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
body.ux .vr-tools .ux-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin: 0; cursor: pointer; }
body.ux .vr-imp { margin: 0; }
body.ux .vr-imp-help { font-size: 12px; color: var(--muted); }
@media (max-width: 1200px) { body.ux .vr-form, body.ux .vr-form.is-sales { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { body.ux .vr-cards { grid-template-columns: 1fr; } body.ux .vr-xl-wrap { overflow-x: auto; } }
@media (max-width: 700px) {
    body.ux .vr-form, body.ux .vr-form.is-sales { grid-template-columns: 1fr 1fr; }
    body.ux .vr-save { grid-column: 1 / -1; }
    body.ux .vr-xl-wrap { overflow-x: visible; border: 0; }
    body.ux table.vr-xl thead, body.ux table.vr-xl .vr-no { display: none; }
    body.ux table.vr-xl, body.ux table.vr-xl tbody, body.ux table.vr-xl tfoot, body.ux table.vr-xl tr { display: block; width: 100%; }
    body.ux table.vr-xl tbody tr { border: 1px solid #dfe4ea; border-radius: 10px; margin-bottom: 8px; padding: 6px 4px; position: relative; }
    body.ux table.vr-xl td { display: block; border: 0; padding: 3px 8px; text-align: left !important; }
    body.ux table.vr-xl td.vr-act { position: absolute; top: 4px; right: 4px; width: auto; }
    body.ux table.vr-xl tfoot tr { border-top: 2px solid #94a3b8; }
}

/* =====================================================================
 |  TOAST (popup ya "Imehifadhiwa") + LOADING (kiduara kidogo)
 ===================================================================== */
.g-toasts { position: fixed; top: 76px; right: 18px; z-index: 100000; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 32px); pointer-events: none; }
.g-toast2 { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 11px; background: #fff; color: #0f172a; border-radius: 12px; padding: 13px 38px 13px 13px; box-shadow: 0 14px 34px rgba(15, 23, 42, .18), 0 0 0 1px rgba(15, 23, 42, .06); font: 500 14px/1.45 Inter, system-ui, sans-serif; opacity: 0; transform: translateX(24px); transition: opacity .22s, transform .22s; }
.g-toast2.in { opacity: 1; transform: none; }
.g-toast2.out { opacity: 0; transform: translateX(24px); }
.g-t-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.g-t-ic svg { width: 15px; height: 15px; }
.g-toast2.success .g-t-ic { background: #16a34a; } .g-toast2.error .g-t-ic { background: #dc2626; }
.g-toast2.warning .g-t-ic { background: #f59e0b; } .g-toast2.info .g-t-ic { background: #2563eb; }
.g-t-msg { flex: 1; padding-top: 2px; word-break: break-word; white-space: pre-line; }
.g-t-x { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; background: none; color: #94a3b8; font-size: 20px; line-height: 1; cursor: pointer; border-radius: 6px; }
.g-t-x:hover { background: #f1f5f9; color: #334155; }
.g-t-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: gTbar linear forwards; }
.g-toast2.success .g-t-bar { background: #16a34a; } .g-toast2.error .g-t-bar { background: #dc2626; }
.g-toast2.warning .g-t-bar { background: #f59e0b; } .g-toast2.info .g-t-bar { background: #2563eb; }
.g-toast2.hold .g-t-bar { animation-play-state: paused; }
@keyframes gTbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 700px) { .g-toasts { top: auto; bottom: 86px; right: 16px; left: 16px; width: auto; } }

/* Kiduara cha loading (kama NMB direct): pete nyembamba yenye mng'ao wa neon kwa rangi za theme, katikati ya skrini */
.g-load { position: fixed; top: 50%; left: 50%; z-index: 100001; width: 52px; height: 52px; margin: -26px 0 0 -26px; pointer-events: none; opacity: 0; transform: scale(.7); transition: opacity .18s, transform .18s; }
.g-load.on { opacity: 1; transform: none; }
.g-load i { position: absolute; inset: 0; display: block; border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(var(--g-rgb, 18, 160, 92), .12), var(--gc, #0a7a43) 25%, var(--g, #12a05c) 55%, color-mix(in srgb, var(--g, #12a05c) 30%, #ffffff) 85%, var(--ga, #17a75e));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    animation: gSpin .9s linear infinite; }
/* mng'ao (neon) uko kwenye mzazi - mask ya pete ingeukata ukiwa kwenye pete yenyewe */
.g-load { filter: drop-shadow(0 0 3px rgba(var(--g-rgb, 18, 160, 92), .8)) drop-shadow(0 0 9px rgba(var(--g-rgb, 18, 160, 92), .45)); }
.is-loading::before { content: ''; display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(22, 163, 74, .22); border-top-color: #16a34a; animation: gSpin .7s linear infinite; box-sizing: border-box; }
.is-loading { pointer-events: none; opacity: .9; }
.is-loading::before { width: 15px; height: 15px; border-width: 2px; border-color: rgba(255, 255, 255, .35); border-top-color: currentColor; margin-right: 7px; vertical-align: -2px; }
.is-loading > .ic { display: none; }
@keyframes gSpin { to { transform: rotate(360deg); } }
/* POS: rasimu ya kikapu (oda ambayo haikukamilika) */
.pd-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 9000; align-items: center; justify-content: center; padding: 16px; }
.pd-box { width: 440px; max-width: 100%; background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); text-align: center; font-family: Inter, system-ui, sans-serif; }
.pd-ic { width: 54px; height: 54px; border-radius: 50%; background: #fff7e6; color: #b45309; display: grid; place-items: center; margin: 0 auto 10px; }
.pd-ic .ic { width: 26px; height: 26px; }
.pd-box h3 { margin: 0 0 6px; font-size: 19px; color: #0f172a; }
.pd-meta { margin: 0 0 14px; color: #475569; font-size: 14px; }
.pd-items { list-style: none; margin: 0 0 18px; padding: 0; border: 1px solid #e5e9f0; border-radius: 10px; text-align: left; max-height: 220px; overflow: auto; }
.pd-items li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; font-size: 13.5px; border-bottom: 1px solid #f1f4f8; }
.pd-items li:last-child { border-bottom: 0; }
.pd-items li em { font-style: normal; font-size: 11px; font-weight: 700; background: #e8f7ee; color: #15803d; border-radius: 5px; padding: 1px 6px; margin-left: 4px; }
.pd-items li b { white-space: nowrap; font-weight: 600; color: #334155; }
.pd-items .pd-more { justify-content: center; color: #94a3b8; }
.pd-actions { display: flex; gap: 10px; }
.pd-actions .ux-btn { flex: 1; justify-content: center; height: 46px; display: inline-flex; align-items: center; gap: 8px; }
.pd-actions .ux-btn.pd-danger { background: #fef2f2; border-color: #fecaca; color: #b91c1c; font-weight: 600; }
/* Variants: SKU + Zalisha */
.v-sku { display: flex; gap: 6px; } .v-sku input { flex: 1; min-width: 0; } .v-sku .btn { white-space: nowrap; }
/* Lebo za barcode */
body.ux .main-content:has(.lb-grid) > * { flex-shrink: 0; }
body.ux .lb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
body.ux .lb-card { padding: 16px; overflow: visible; }
body.ux .lb-find { max-width: none; margin-bottom: 12px; }
body.ux .lb-empty { text-align: center; color: var(--muted); padding: 22px 10px; margin: 0; }
body.ux .lb-empty[hidden] { display: none; }
body.ux .lb-t .sa-u { font-size: 11px; font-weight: 700; background: var(--g-soft); color: var(--g-3); border-radius: 5px; padding: 1px 6px; }
body.ux .lb-opts { padding: 18px; position: sticky; top: 12px; display: flex; flex-direction: column; gap: 6px; }
body.ux .lb-opts h3 { margin: 8px 0 4px; font-size: 14px; }
body.ux .lb-radio, body.ux .lb-check { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 400; font-size: 13.5px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 9px; cursor: pointer; }
body.ux .lb-check { border: 0; padding: 4px 2px; }
body.ux .lb-radio.on { border-color: var(--g); background: var(--g-soft); font-weight: 600; }
body.ux .lb-radio input, body.ux .lb-check input { accent-color: var(--g); width: 16px; height: 16px; margin: 0; }
body.ux .lb-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-size: 14px; }
body.ux .lb-total b { font-size: 18px; color: var(--g-3); }
body.ux .lb-print { justify-content: center; height: 46px; margin-top: 6px; }
body.ux .lb-help { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
@media (max-width: 1000px) { body.ux .lb-grid { grid-template-columns: 1fr; } body.ux .lb-opts { position: static; } }
body.ux .sa-find input { padding-left: 38px !important; }
/* Backup za kompyuta hii */
body.ux .lbk-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
body.ux .lbk-sw, body.ux .lbk-keep { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: 13.5px; }
body.ux .lbk-sw input { accent-color: var(--g); width: 17px; height: 17px; }
body.ux .lbk-keep input { width: 80px; height: 38px; }
body.ux .lbk-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
body.ux .lbk-list { border: 1px solid #e5e9f0; border-radius: 10px; max-height: 360px; overflow: auto; }
body.ux .lbk-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid #f1f4f8; flex-wrap: wrap; }
body.ux .lbk-item:last-child { border-bottom: 0; }
body.ux .lbk-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--g-soft); color: var(--g-3); display: grid; place-items: center; flex: none; }
body.ux .lbk-meta { flex: 1; min-width: 180px; display: flex; flex-direction: column; font-size: 14px; }
body.ux .lbk-meta small { color: var(--muted); font-size: 12px; word-break: break-all; }
body.ux .lbk-tag { font-style: normal; font-size: 11px; font-weight: 700; background: #eef2f6; color: #475569; border-radius: 5px; padding: 1px 7px; margin-left: 6px; }

/* ===== LESENI ===== */
body.ux .lic-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { body.ux .lic-grid { grid-template-columns: 1fr; } }
body.ux .lic-card, body.ux .lic-side { padding: 22px; }
body.ux .lic-state { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; border: 1px solid; margin-bottom: 18px; }
body.ux .lic-state b { display: block; font-size: 17px; }
body.ux .lic-state small { color: #475569; font-size: 13px; line-height: 1.45; display: block; margin-top: 3px; }
body.ux .lic-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
body.ux .lic-ic svg { width: 22px; height: 22px; }
body.ux .lic-active { background: #f0fdf4; border-color: #bbf7d0; } body.ux .lic-active .lic-ic { background: #16a34a; color: #fff; } body.ux .lic-active b { color: #166534; }
body.ux .lic-trial { background: rgba(var(--g-rgb), .07); border-color: rgba(var(--g-rgb), .25); } body.ux .lic-trial .lic-ic { background: var(--g); color: #fff; }
body.ux .lic-expired { background: #fef2f2; border-color: #fecaca; } body.ux .lic-expired .lic-ic { background: #dc2626; color: #fff; } body.ux .lic-expired b { color: #991b1b; }
body.ux .lic-exempt { background: #f8fafc; border-color: #e2e8f0; } body.ux .lic-exempt .lic-ic { background: #64748b; color: #fff; }
body.ux .lic-warn { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; padding: 10px 12px; border-radius: 10px; font-size: 13px; display: flex; gap: 8px; align-items: center; margin: -6px 0 16px; }
body.ux .lic-warn svg { width: 16px; height: 16px; flex-shrink: 0; }
body.ux .lic-mid { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #0f172a; color: #fff; border-radius: 12px; }
body.ux .lic-mid small { display: block; font-size: 11px; letter-spacing: .6px; color: #94a3b8; font-weight: 600; }
body.ux .lic-mid b { font-family: Consolas, 'Ubuntu Mono', monospace; font-size: 22px; letter-spacing: 1.5px; }
body.ux .lic-mid .ux-btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
body.ux .lic-help { font-size: 13px; color: #475569; margin: 12px 0 18px; line-height: 1.5; }
body.ux .lic-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
body.ux .lic-form textarea { width: 100%; box-sizing: border-box; font-family: Consolas, 'Ubuntu Mono', monospace; font-size: 14px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; resize: vertical; letter-spacing: .5px; }
body.ux .lic-form textarea:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(var(--g-rgb), .15); }
body.ux .lic-form .ux-btn { margin-top: 12px; }
body.ux .lic-side h3 { font-size: 15px; margin: 0 0 10px; } body.ux .lic-side h3 + p, body.ux .lic-side ol { font-size: 13.5px; color: #475569; line-height: 1.55; }
body.ux .lic-side ol { padding-left: 20px; margin: 0 0 20px; } body.ux .lic-side li { margin-bottom: 6px; }
body.ux .lic-bar { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 13.5px; font-weight: 500; flex-wrap: wrap; }
body.ux .lic-bar svg { width: 16px; height: 16px; flex-shrink: 0; }
body.ux .lic-bar a { margin-left: auto; font-weight: 700; text-decoration: none; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; }
body.ux .lic-bar-trial { background: rgba(var(--g-rgb), .1); color: var(--gc, #1e3a8a); }
body.ux .lic-bar-trial a { background: var(--g); color: #fff; }
body.ux .lic-bar-expired { background: #dc2626; color: #fff; }
body.ux .lic-bar-expired a { background: #fff; color: #dc2626; }

/* ===== IMPORT PURCHASE ===== */
body.ux .pi-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { body.ux .pi-grid { grid-template-columns: 1fr; } }
body.ux .pi-card, body.ux .pi-side { padding: 20px; }
body.ux .pi-steps { display: flex; gap: 10px; margin-bottom: 18px; }
body.ux .pi-steps span { flex: 1; padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 13px; font-weight: 600; color: #64748b; }
body.ux .pi-steps span.on { background: rgba(var(--g-rgb), .08); border-color: rgba(var(--g-rgb), .4); color: var(--gc, var(--g)); }
body.ux .pi-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { body.ux .pi-f { grid-template-columns: 1fr 1fr; } body.ux .pi-steps span { font-size: 11.5px; padding: 8px; } }
body.ux .pi-f .ux-field > label { font-size: 13px; }
body.ux .pi-dz { margin-top: 16px; border: 2px dashed rgba(var(--g-rgb), .45); background: rgba(var(--g-rgb), .04); border-radius: 12px; padding: 20px; text-align: center; font-size: 14px; color: #334155; cursor: pointer; display: flex; gap: 10px; align-items: center; justify-content: center; }
body.ux .pi-dz svg { width: 20px; height: 20px; color: var(--g); }
body.ux .pi-dz.on { background: rgba(var(--g-rgb), .1); border-style: solid; }
body.ux .pi-tw { overflow-x: auto; margin-top: 16px; }
body.ux .pi-t { width: 100%; font-size: 13.5px; }
body.ux .pi-t td, body.ux .pi-t th { padding: 9px 10px; white-space: nowrap; }
body.ux .pi-t tr.pi-er td { background: #fef2f2; color: #b91c1c; }
body.ux .pi-ok { color: #16a34a; font-weight: 800; } body.ux .pi-x { color: #dc2626; font-weight: 800; }
body.ux .pi-tot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 2px; border-top: 2px solid #e2e8f0; font-size: 14.5px; }
body.ux .pi-act { display: flex; gap: 10px; flex-wrap: wrap; }
body.ux .pi-side h3 { margin: 0 0 10px; font-size: 15px; }
body.ux .pi-side pre { background: #0f172a; color: #e2e8f0; border-radius: 10px; padding: 12px; font-size: 12.5px; overflow-x: auto; margin: 0 0 12px; }
body.ux .pi-side ul { padding-left: 18px; font-size: 13.5px; color: #475569; line-height: 1.6; margin: 0 0 14px; }
body.ux .pi-side .pi-note { margin-top: 16px; }

/* ===== MALIPO: View / Add / Edit / Delete (modal) ===== */
body.ux .pm-ov { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1200; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px 12px; overflow-y: auto; }
body.ux .pm-ov[hidden] { display: none; }
body.ux .pm-md { width: 100%; max-width: 640px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.25); overflow: hidden; }
body.ux .pm-h { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #e2e8f0; }
body.ux .pm-hi { width: 38px; height: 38px; border-radius: 10px; background: rgba(var(--g-rgb), .1); color: var(--g); display: grid; place-items: center; flex-shrink: 0; }
body.ux .pm-ht { flex: 1; min-width: 0; } body.ux .pm-ht b { display: block; font-size: 16px; } body.ux .pm-ht small { color: #64748b; font-size: 12.5px; }
body.ux .pm-x { border: 0; background: none; color: #64748b; cursor: pointer; padding: 6px; }
body.ux .pm-load { padding: 40px; text-align: center; color: #64748b; }
body.ux .pm-spin { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(var(--g-rgb), .2); border-top-color: var(--g); animation: pmspin .8s linear infinite; }
@keyframes pmspin { to { transform: rotate(360deg); } }
body.ux .pm-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px 18px; }
body.ux .pm-sum div { background: #f8fafc; border-radius: 10px; padding: 10px 12px; }
body.ux .pm-sum small { display: block; font-size: 11.5px; color: #64748b; font-weight: 600; } body.ux .pm-sum b { font-size: 16px; }
body.ux .pm-sum .g { color: #15803d; } body.ux .pm-sum .r { color: #dc2626; }
body.ux .pm-warn { margin: 0 18px 12px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: 13px; display: flex; gap: 8px; align-items: center; }
body.ux .pm-tw { overflow-x: auto; }
body.ux .pm-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
body.ux .pm-t th { text-align: left; font-size: 11px; letter-spacing: .4px; text-transform: uppercase; color: #64748b; padding: 8px 18px; background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
body.ux .pm-t td { padding: 10px 18px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
body.ux .pm-t .num { text-align: right; } body.ux .pm-none { text-align: center; color: #94a3b8; padding: 22px !important; }
body.ux .pm-tag { font-size: 10px; font-weight: 800; border-radius: 6px; padding: 2px 6px; margin-left: 4px; white-space: nowrap; }
body.ux .pm-sale { background: #eff6ff; color: #1d4ed8; } body.ux .pm-debt { background: #fef3c7; color: #92400e; } body.ux .pm-amana { background: #f3e8ff; color: #7e22ce; }
body.ux .pm-acts { display: inline-flex; gap: 6px; }
body.ux .pm-acts button, body.ux .pm-ro { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; display: grid; place-items: center; color: #334155; cursor: pointer; }
body.ux .pm-acts button.d { color: #dc2626; border-color: #fecaca; background: #fef2f2; } body.ux .pm-ro { color: #94a3b8; cursor: default; }
body.ux .pm-acts .ic, body.ux .pm-ro .ic { width: 16px; height: 16px; }
body.ux .pm-ed td { background: #fffbeb; }
body.ux .pm-ef { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
body.ux .pm-ef .ux-input, body.ux .pm-ef .ux-select { height: 38px !important; width: auto; min-width: 0; font-size: 13.5px; padding: 0 10px !important; }
body.ux .pm-ef .pm-amt { width: 110px; text-align: right; }
body.ux .pm-ef .ux-btn { height: 38px; padding: 0 14px; }
body.ux .pm-cfr td { padding-top: 0; }
body.ux .pm-cf { border: 1px solid #fecaca; background: #fef2f2; border-radius: 10px; padding: 10px 12px; font-size: 13px; color: #991b1b; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
body.ux .pm-cf > span { flex: 1; min-width: 180px; } body.ux .pm-cf .ux-btn { height: 34px; padding: 0 12px; }
body.ux .pm-red { background: #dc2626 !important; border-color: #dc2626 !important; color: #fff !important; }
body.ux .pm-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
body.ux .pm-f small { color: #64748b; font-size: 12px; }
body.ux .pm-add { padding: 4px 18px 14px; }
body.ux .pm-g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
body.ux .pm-add label span { display: block; font-size: 12.5px; font-weight: 600; color: #475569; margin-bottom: 5px; }
body.ux .pm-add .ux-input, body.ux .pm-add .ux-select { width: 100%; }
body.ux .pm-add .pm-amt { font-weight: 700; font-size: 16px; }
body.ux .pm-provw:not(:empty) { margin-top: 10px; } body.ux .pm-provw .ux-select { width: 100%; }
body.ux .pm-note { display: block; margin-top: 10px; } body.ux .pm-hint { font-size: 12px; color: #64748b; margin: 10px 0 0; }
@media (max-width: 600px) {
    body.ux .pm-ov { padding: 0; align-items: flex-end; }
    body.ux .pm-md { border-radius: 18px 18px 0 0; max-height: 92vh; overflow-y: auto; }
    body.ux .pm-g3 { grid-template-columns: 1fr 1fr; } body.ux .pm-g3 label:first-child { grid-column: 1 / -1; }
    body.ux .pm-by { display: none; } body.ux .pm-t td, body.ux .pm-t th { padding-left: 12px; padding-right: 12px; }
    body.ux .pm-sum { padding: 12px; gap: 8px; } body.ux .pm-sum b { font-size: 14.5px; }
}
