:root{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --text:#182230;
  --muted:#667085;
  --line:#d9e0e7;
  --border:#d9e0e7;
  --primary:#0f3d36;
  --accent:#16a34a;
  --app-font-family:Aptos,Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --blue:#2563eb;
  --amber:#b54708;
  --danger:#b42318;
  --nav:#111827;
  --nav-soft:#1f2937;
  --shadow:0 14px 34px rgba(16,24,40,.08);
  --focus:rgba(37,99,235,.22);
}
*{box-sizing:border-box}
[hidden]{display:none!important}

.document-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(135deg,#ffffff,#f5fbf8);border:1px solid var(--border);border-radius:8px;padding:22px 24px;margin-bottom:16px;box-shadow:var(--shadow)}
.document-hero h2{font-size:30px;margin:0 0 6px;color:var(--primary)}
.document-total{text-align:right;display:flex;flex-direction:column;gap:6px}
.document-total span{text-transform:uppercase;font-size:12px;font-weight:800;color:var(--muted)}
.document-total strong{font-size:28px;color:var(--primary)}
.sticky-actions{position:sticky;top:0;z-index:15;display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:rgba(246,248,250,.96);backdrop-filter:blur(10px);border:1px solid var(--border);border-radius:8px;padding:10px;margin-bottom:16px}
.sticky-actions form{margin:0}
.line-editor{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(220px,2fr) repeat(4,minmax(90px,.8fr)) auto;gap:10px;align-items:end}
.line-editor input,.line-editor select{min-width:0}
.tiny-input{max-width:96px}
.money-input{max-width:130px}
.document-lines input,.document-lines select{width:100%;min-width:72px}
.document-lines td{vertical-align:middle}
.invoice-brand-left{display:flex;align-items:center;gap:18px}
.invoice-logo{width:86px;height:86px;object-fit:contain;border:1px solid var(--border);border-radius:8px;background:transparent;padding:8px}
@media (max-width: 900px){.document-hero{align-items:flex-start;flex-direction:column}.document-total{text-align:left}.line-editor{grid-template-columns:1fr}.tiny-input,.money-input{max-width:none}}
.bank-row-form input{display:block;margin-bottom:6px;min-width:120px}
.cash-workbench{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.8fr);gap:16px;align-items:start}
.cash-primary{display:grid;gap:16px}
.cash-side{position:sticky;top:74px}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.account-card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:16px;box-shadow:0 5px 14px rgba(16,24,40,.04)}
.account-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.account-card h3{margin:4px 0 0;color:var(--primary)}
.account-code{font-size:12px;font-weight:850;color:var(--muted);text-transform:uppercase}
.account-balance{font-size:22px;color:var(--primary);white-space:nowrap}
.account-meta{display:grid;grid-template-columns:110px 1fr;gap:6px 12px;margin:14px 0;color:#344054}
.account-meta dt{font-weight:850;color:var(--muted);font-size:12px;text-transform:uppercase}
.account-meta dd{margin:0;word-break:break-word}
.account-edit{border-top:1px solid var(--line);padding-top:12px}
.account-edit summary{width:max-content;margin-bottom:10px}
.captcha-box{margin:10px 0 14px}
.print-body{background:#eef2f0;margin:0;color:#17201b}
.invoice-print{max-width:980px;margin:24px auto;background:#fff;padding:42px;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.12)}
.print-invoice-head{position:relative;display:flex;justify-content:space-between;gap:32px;border-bottom:3px solid var(--primary);padding:0 0 22px 132px;margin-bottom:24px;min-height:116px}
.print-company{display:flex;gap:18px;align-items:flex-start}
.print-company img{position:absolute;left:0;top:0;width:110px;height:110px;object-fit:contain;background:transparent}
.print-company h1{margin:0 0 8px;color:var(--primary)}
.print-company p{margin:4px 0;color:#46534c}
.print-doc-title{text-align:right}
.print-doc-title h2{font-size:34px;margin:0;color:var(--primary)}
.print-doc-title strong{display:block;font-size:20px;margin:8px 0}
.print-doc-title span{text-transform:uppercase;font-weight:800;color:var(--accent)}
.print-meta{display:grid;grid-template-columns:1.4fr .8fr;gap:24px;margin-bottom:24px}
.print-notes{border:1px solid #d9e1dd;background:#f8faf7;padding:12px 14px;margin-bottom:18px}
.print-notes h3{margin:0 0 6px}
.print-notes p{margin:0;white-space:pre-wrap}
.print-lines{width:100%;border-collapse:collapse;margin-bottom:24px}
.print-lines th{background:var(--primary);color:#fff;text-align:left}
.print-lines th,.print-lines td{border:1px solid #d9e1dd;padding:10px}
.print-totals{display:grid;grid-template-columns:1fr 320px;gap:24px}
.print-totals p{display:flex;justify-content:space-between;margin:7px 0}
.print-totals .grand{font-size:20px;border-top:2px solid var(--primary);padding-top:10px}
.print-bank-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px;margin:8px 0 18px;font-size:12px}
.print-bank-details span{display:block}
@media print{.print-body{background:#fff}.invoice-print{box-shadow:none;margin:0;max-width:none;border-radius:0}.print-invoice-head{break-inside:avoid}}
html{font-size:16px}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--app-font-family,Aptos,Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif);letter-spacing:0}
a{color:var(--primary)}
code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em;word-break:break-word}
.sidebar{position:fixed;inset:0 auto 0 0;width:268px;background:linear-gradient(180deg,var(--nav),var(--nav-deep,#0b1220));color:#fff;padding:18px 12px;overflow:auto;border-right:1px solid rgba(255,255,255,.08)}
.brand{display:flex;gap:10px;align-items:center;margin-bottom:18px;padding:0 6px}
.brand.center{justify-content:center;color:var(--text);margin-bottom:22px}
.brand-mark{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:8px;background:rgba(var(--accent-rgb,22,163,74),.16);color:var(--accent);font-size:25px;font-weight:900}
.brand-logo{width:40px;height:40px;object-fit:contain;border-radius:8px;background:#fff;padding:3px}
.brand strong{display:block;line-height:1.15}
.brand small{display:block;color:#98a2b3;font-size:12px;margin-top:2px}
.nav-list{display:grid;gap:3px}
.nav-list a{display:flex;align-items:center;gap:10px;color:#d0d5dd;text-decoration:none;padding:10px;border-radius:8px;font-weight:700;font-size:14px}
.nav-group{display:block;margin:16px 8px 5px;color:#8ea0b8;text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:0}
.nav-list a:hover,.nav-list a.active{background:var(--nav-active,var(--nav-soft));color:#fff}
.nav-icon{display:inline-grid;place-items:center;min-width:28px;height:28px;border:1px solid rgba(255,255,255,.14);border-radius:8px;font-size:11px;color:var(--nav-icon-color,#b6f0cc)}
.main{margin-left:268px;padding:24px;min-height:100vh}
.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.topbar h1{font-size:28px;line-height:1.15;margin:2px 0 4px}
.eyebrow{margin:0;color:var(--primary);font-size:12px;text-transform:uppercase;font-weight:800;letter-spacing:0}
.muted{color:var(--muted)}
.topbar p{margin:0}
.top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.user-pill{display:inline-flex;align-items:center;min-height:36px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:7px 10px;font-weight:800}
.card,.auth-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:18px;box-shadow:var(--shadow);margin-bottom:18px}
.card h2,.auth-card h1{margin-top:0}
.auth-screen{min-height:100vh;display:grid;place-items:center;background:#101828;background-size:cover;background-position:center;padding:20px}
.auth-card{width:min(760px,94vw)}
.auth-logo{width:52px;height:52px;object-fit:contain;background:transparent}
.auth-welcome{margin:-8px 0 18px;text-align:center;color:var(--muted);line-height:1.55}
.grid{display:grid;gap:16px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.span{grid-column:1/-1}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.metric{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:16px;box-shadow:0 5px 14px rgba(16,24,40,.04)}
.metric-link{display:block;text-decoration:none;color:var(--text);transition:border-color .15s ease,transform .15s ease}
.metric-link:hover{border-color:var(--primary);transform:translateY(-1px)}
.metric span{display:block;color:var(--muted);font-size:13px}
.metric strong{font-size:30px}
label{display:block;font-weight:750;font-size:13px;color:#344054;margin-bottom:12px}
input,select,textarea{width:100%;margin-top:6px;border:1px solid #cbd5e1;border-radius:8px;padding:10px 11px;background:#fff;color:var(--text);font:inherit}
input:focus,select:focus,textarea:focus{outline:2px solid var(--focus);border-color:var(--blue)}
textarea{min-height:88px;resize:vertical}
.check{display:flex;align-items:center;gap:8px}
.check input{width:auto}
button,.button{border:1px solid var(--line);border-radius:8px;padding:9px 12px;background:#eef2f6;color:#111827;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:800;min-height:36px}
button:hover,.button:hover{filter:brightness(.98)}
.primary,.button.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.danger,.button.danger{background:var(--danger);border-color:var(--danger);color:#fff}
.actions,.actions-inline{display:flex;gap:8px;flex-wrap:wrap}
.actions-inline form{display:inline-flex;gap:6px;align-items:center}
table{width:100%;border-collapse:collapse;font-size:14px;background:var(--panel)}
th,td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
th{color:#475467;font-size:12px;text-transform:uppercase;letter-spacing:0}
tbody tr:hover{background:rgba(37,99,235,.035)}
tbody tr:nth-child(even){background:rgba(15,23,42,.018)}
tbody tr:nth-child(even):hover{background:rgba(37,99,235,.055)}
td input,td select{min-width:120px}
.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.list-toolbar h2{margin:0}
.search-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.search-form input{width:min(320px,70vw);margin-top:0}
.record-title{font-weight:850}
.record-sub{display:block;color:var(--muted);font-size:12px;margin-top:2px}
.row-actions{display:flex;gap:6px;align-items:flex-start;flex-wrap:wrap}
.action-panel{min-width:260px}
.action-panel summary{list-style:none}
.action-panel summary::-webkit-details-marker{display:none}
.action-panel[open] summary{margin-bottom:8px}
.edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.edit-grid label{margin-bottom:0}
.edit-grid .span{grid-column:1/-1}
.pagination{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:12px}
.page-link{min-width:36px}
.page-link.active{background:var(--primary);border-color:var(--primary);color:#fff}
.page-link.disabled{opacity:.55;cursor:not-allowed}
.pagination-summary{color:var(--muted);font-size:13px;margin-left:6px}
.tag{background:#eef2ff;color:#3730a3;border-radius:8px;padding:4px 8px;font-size:12px;font-weight:800}
.tag.ok{background:#ecfdf3;color:#027a48}
.tag.bad{background:#fff1f3;color:#b42318}
.alert{padding:12px 14px;border-radius:8px;margin-bottom:18px;border:1px solid transparent}
.alert.success{background:#ecfdf3;color:#027a48;border-color:#abefc6}
.alert.error{background:#fef3f2;color:#b42318;border-color:#fecdca}
.alert.warning{background:#fffbeb;color:#92400e;border-color:#fedf89}
.terms-head{margin-bottom:16px}.terms-panel{display:grid;gap:12px;max-height:min(48vh,430px);overflow:auto;border:1px solid var(--line);border-radius:14px;background:#f8fafc;padding:14px;margin-bottom:16px}.terms-version{font-size:12px;color:var(--muted);font-weight:850}.terms-section{border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:12px}.terms-section h2{margin:0 0 6px;font-size:15px;line-height:1.25;color:#0f172a}.terms-section p{margin:0;color:#344054;line-height:1.55;font-size:13px}.terms-form{gap:12px}.terms-check{align-items:flex-start;line-height:1.45;font-weight:850;color:#344054}
html[data-theme="dark"] .terms-panel{background:#0b1220;border-color:#334155}html[data-theme="dark"] .terms-section{background:#111827;border-color:#263244}html[data-theme="dark"] .terms-section h2{color:#f8fafc}html[data-theme="dark"] .terms-section p,html[data-theme="dark"] .terms-check{color:#cbd5e1}
.big{font-size:28px;font-weight:850;margin:.2em 0}
.warn{color:var(--amber)}
tr.due{background:#fffbeb}
.pill-row{display:flex;gap:8px;flex-wrap:wrap}
.dashboard-banner{min-height:190px;border-radius:8px;background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:24px;margin-bottom:18px;color:#fff;box-shadow:var(--shadow)}
.dashboard-banner h2{font-size:34px;line-height:1.1;margin:4px 0}
.dashboard-banner p{max-width:680px;margin:0}
.insight-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.insight-card{border:1px solid var(--line);border-radius:8px;padding:14px;background:linear-gradient(180deg,var(--panel),rgba(37,99,235,.035))}
.insight-card span{display:block;color:var(--muted);font-size:12px;font-weight:850;text-transform:uppercase}
.insight-card strong{display:block;font-size:24px;margin:4px 0;color:var(--primary)}
.insight-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.branding-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.branding-grid > label{grid-column:span 1}
.branding-grid .span{grid-column:1/-1}
.asset-card{border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--panel)}
.asset-card small{display:block;color:var(--muted);margin-top:3px;word-break:break-word}
.asset-card img{display:block;width:100%;height:110px;object-fit:contain;background:linear-gradient(45deg,#eef2f6 25%,transparent 25%),linear-gradient(-45deg,#eef2f6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef2f6 75%),linear-gradient(-45deg,transparent 75%,#eef2f6 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;margin:10px 0;border:1px solid var(--line);border-radius:8px}
.file-drop{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;min-height:64px;border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line));border-radius:14px;padding:12px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,250,252,.94));cursor:pointer;box-shadow:0 8px 20px rgba(15,23,42,.05);transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.file-drop:hover,.file-drop.is-dragging{border-color:color-mix(in srgb,var(--primary) 72%,var(--accent));box-shadow:0 14px 32px rgba(15,61,54,.13);background:#fff;transform:translateY(-1px)}
.file-drop-copy{min-width:0}
.file-drop strong{display:block;color:var(--text);font-size:13px;line-height:1.25}
.file-drop small{display:block;max-width:100%;color:var(--muted);font-size:12px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-drop-icon{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;box-shadow:0 10px 18px rgba(15,61,54,.18)}
.file-drop-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.file-drop-cta{display:inline-flex;align-items:center;justify-content:center;min-height:34px;border:1px solid color-mix(in srgb,var(--primary) 28%,var(--line));border-radius:999px;padding:7px 12px;background:#fff;color:var(--primary);font-size:12px;font-weight:900;white-space:nowrap;box-shadow:0 6px 14px rgba(15,23,42,.05)}
.file-drop:hover .file-drop-cta,.file-drop.is-dragging .file-drop-cta{background:var(--primary);border-color:var(--primary);color:#fff}
.file-drop-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.email-template-form{display:grid;gap:14px}.rich-email-editor{position:relative;display:grid;gap:8px;margin-bottom:10px}.rich-email-label{font-size:13px;font-weight:850;color:#344054}.rich-email-toolbar{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.rich-email-toolbar button,.rich-email-toolbar select{min-height:30px;padding:5px 9px;border-radius:8px;font-size:12px}.rich-email-toolbar select{width:auto;margin-top:0;border:1px solid #cbd5e1;background:#fff;color:var(--text);font-weight:800}.rich-color-swatches{display:inline-flex;align-items:center;gap:5px;min-height:30px}.rich-color-swatch{width:28px;min-width:28px;height:28px;min-height:28px;border:1px solid #cbd5e1;border-radius:8px;padding:3px;background:#fff}.rich-color-swatch::before{content:"";display:block;width:100%;height:100%;border-radius:5px;background:var(--swatch);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}.rich-color-swatch:hover,.rich-color-swatch:focus-visible{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,61,54,.12)}.rich-color-control{display:inline-flex;align-items:center;gap:6px;min-height:30px;margin:0;border:1px solid #cbd5e1;border-radius:8px;padding:4px 8px;background:#fff;color:var(--text);font-size:12px;font-weight:800}.rich-color-control input{width:24px;height:22px;min-height:22px;margin:0;border:0;border-radius:6px;padding:0;background:transparent}.rich-email-surface{min-height:132px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;color:var(--text);padding:12px;line-height:1.55;overflow:auto}.rich-email-surface:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 4px rgba(15,61,54,.12)}.rich-email-surface:empty::before{content:"Write email text...";color:#98a2b3}.rich-email-surface img{display:inline-block;max-width:100%;height:auto;vertical-align:middle;border-radius:6px}.rich-email-surface img.is-selected{outline:2px solid var(--primary);outline-offset:2px}.rich-email-source{min-height:74px;margin-top:0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px}.rich-image-resize-handle{position:absolute;width:14px;height:14px;border:2px solid #fff;border-radius:999px;background:var(--primary);box-shadow:0 4px 12px rgba(15,23,42,.28);cursor:nwse-resize;z-index:3}
.patch-progress{margin-top:14px;border:1px solid var(--line);border-radius:8px;padding:12px;background:rgba(248,250,252,.82)}
.progress-track{height:9px;border-radius:999px;background:#e5e7eb;overflow:hidden}
.progress-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--primary),var(--accent));transition:width .32s ease}
.patch-progress p{margin:8px 0;color:var(--muted);font-weight:700}
.patch-progress ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.patch-progress li{border:1px solid var(--line);border-radius:999px;padding:5px 9px;color:var(--muted);font-size:12px;font-weight:800;background:var(--panel)}
.patch-progress li.active{border-color:var(--primary);color:var(--primary);background:rgba(22,163,74,.08)}
.patch-progress li.done{border-color:rgba(22,163,74,.35);color:#027a48;background:#ecfdf3}
.clone-party-form{display:inline-flex;align-items:center;gap:8px;flex-wrap:nowrap}
.clone-party-form select{min-width:190px;max-width:280px}
@media (max-width: 760px){.clone-party-form{width:100%;flex-wrap:wrap}.clone-party-form select{flex:1 1 190px;max-width:none}}
.migration-clear-actions{align-items:end;margin-top:12px}
.migration-clear-actions label{margin-bottom:0}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.setup-key{border:1px dashed #98a2b3;background:#f8fafc;border-radius:8px;padding:14px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:18px;font-weight:800;word-break:break-word}
.qr-setup{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;margin:8px 0 12px;box-shadow:0 6px 16px rgba(16,24,40,.06)}
.qr-setup img{display:block;width:min(240px,70vw);height:auto;image-rendering:pixelated}
.locked-card{max-width:760px}
.two-factor-unlock-alert{position:fixed;right:18px;bottom:18px;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:12px;max-width:440px;z-index:20}
.two-factor-unlock-alert strong,.two-factor-unlock-alert span{display:block}
.two-factor-unlock-alert span{color:var(--muted);font-size:13px}
.kb-float{position:fixed;right:18px;bottom:18px;z-index:30}
.kb-float-toggle{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:var(--shadow)}
.kb-float-toggle span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(255,255,255,.16)}
.kb-float-panel{position:absolute;right:0;bottom:52px;width:min(420px,calc(100vw - 32px));max-height:min(680px,calc(100vh - 90px));display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);overflow:hidden}
.kb-float-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px;border-bottom:1px solid var(--line);background:#f8fafc}
.kb-float-head h2{margin:0;font-size:16px}
.kb-float-mode{font-size:12px;color:var(--muted);font-weight:800}
.kb-float-close{width:32px;height:32px;padding:0}
.kb-float-messages{padding:12px;overflow:auto;min-height:170px;max-height:320px;background:#fff}
.kb-float-empty{color:var(--muted);font-size:14px;padding:12px}
.kb-float-msg{display:flex;margin-bottom:10px}
.kb-float-msg.is-user{justify-content:flex-end}
.kb-float-msg-text{max-width:88%;border:1px solid var(--line);border-radius:8px;padding:9px 10px;white-space:pre-wrap;line-height:1.45}
.kb-float-msg.is-user .kb-float-msg-text{background:#eef2ff;border-color:#c7d2fe}
.kb-float-msg.is-assistant .kb-float-msg-text{background:#f8fafc}
.kb-float-quick{display:flex;gap:6px;flex-wrap:wrap;padding:0 12px 12px}
.kb-float-chip{min-height:30px;padding:6px 8px;font-size:12px;background:#f8fafc}
.kb-float-form{border-top:1px solid var(--line);padding:12px;background:#fff}
.kb-float-form textarea{min-height:76px;margin-top:0}
.kb-float-actions{display:flex;gap:8px;align-items:center;margin-top:8px}
.kb-float-status{font-size:12px;color:var(--muted);min-height:18px;margin-top:6px}
@media(max-width:980px){
  .sidebar{position:static;width:auto;border-right:0}
  .nav-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .main{margin-left:0;padding:18px}
  .topbar{display:block}
  .list-toolbar{display:block}
  .search-form{margin-top:10px}
  .edit-grid{grid-template-columns:1fr}
  .top-actions{justify-content:flex-start;margin-top:12px}
  .grid.two,.grid.three,.metrics,.cash-workbench,.account-grid,.insight-grid,.branding-grid{grid-template-columns:1fr}
  .cash-side{position:static}
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b1220;
    --panel:#101827;
    --text:#e5e7eb;
    --muted:#9ca3af;
    --line:#263244;
    --border:#263244;
    --nav:#070d18;
    --nav-soft:#172033;
    --shadow:0 18px 44px rgba(0,0,0,.32);
    --focus:rgba(96,165,250,.35);
  }
  input,select,textarea{background:#0b1220;color:var(--text);border-color:#334155}
  button,.button{background:#1f2937;color:#e5e7eb;border-color:#334155}
  .metric,.card,.auth-card,.account-card,.asset-card,.kb-float-panel,.kb-float-form,.kb-float-messages{background:var(--panel)}
  .edit-grid,.kb-float-head,.kb-float-msg.is-assistant .kb-float-msg-text{background:#0f172a}
  .tag{background:#172554;color:#bfdbfe}
  .tag.ok{background:#052e1a;color:#86efac}
  .tag.bad{background:#3f1111;color:#fecaca}
  th{color:#cbd5e1}
  tbody tr:hover{background:rgba(96,165,250,.08)}
}
@media(max-width:560px){
  .nav-list{grid-template-columns:1fr}
  .main{padding:14px}
  th,td{padding:8px;font-size:13px}
  .card,.auth-card{padding:14px}
  .two-factor-unlock-alert{left:12px;right:12px;bottom:12px;align-items:flex-start;flex-direction:column}
}
.nav-icon svg{width:16px;height:16px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.theme-switch select{min-height:36px;border-radius:8px;padding:7px 30px 7px 10px;font-weight:800}
.theme-light{
  --bg:#f5f7fb;
  --panel:#ffffff;
  --text:#182230;
  --muted:#667085;
  --line:#d9e2ec;
  --border:#d9e2ec;
  --soft:#eef5f1;
  --nav:#101828;
  --nav-soft:rgba(255,255,255,.08);
  --danger:#b42318;
  --warning:#b54708;
  --success:#027a48;
  --shadow:0 14px 34px rgba(16,24,40,.08);
}
.theme-dark{
  --bg:#0b1220;
  --panel:#101827;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --line:#263244;
  --border:#334155;
  --soft:#13231d;
  --nav:#050816;
  --nav-soft:rgba(148,163,184,.14);
  --danger:#fca5a5;
  --warning:#fbbf24;
  --success:#86efac;
  --shadow:0 18px 42px rgba(0,0,0,.28);
}
.theme-dark .card,.theme-dark .auth-card,.theme-dark .user-pill,.theme-dark input,.theme-dark select,.theme-dark textarea,.theme-dark table,.theme-dark .kb-float-panel,.theme-dark .account-card{background:#111827;color:var(--text);border-color:var(--line)}
.theme-dark th{color:#cbd5e1}
.theme-dark tbody tr:hover{background:rgba(96,165,250,.08)}
.theme-dark .button,.theme-dark button{background:#172033;color:var(--text);border-color:#334155}
.theme-dark .button.primary,.theme-dark button.primary{background:var(--primary);color:#fff;border-color:var(--primary)}

html[data-theme="light"]{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --text:#172033;
  --muted:#64748b;
  --line:#dbe3ef;
  --border:#dbe3ef;
  --nav:#101828;
  --nav-soft:#1f2937;
  --shadow:0 18px 42px rgba(15,23,42,.08);
}
html[data-theme="dark"]{
  --bg:#09111f;
  --panel:#101827;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --line:#263244;
  --border:#334155;
  --nav:#050816;
  --nav-soft:#172033;
  --shadow:0 18px 42px rgba(0,0,0,.32);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] table,
html[data-theme="dark"] .card,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .metric,
html[data-theme="dark"] .account-card,
html[data-theme="dark"] .asset-card,
html[data-theme="dark"] .kb-float-panel,
html[data-theme="dark"] .kb-float-form,
html[data-theme="dark"] .kb-float-messages,
html[data-theme="dark"] .user-pill{background:#101827;color:var(--text);border-color:var(--line)}
html[data-theme="dark"] button,
html[data-theme="dark"] .button{background:#172033;color:var(--text);border-color:#334155}
html[data-theme="dark"] .primary,
html[data-theme="dark"] .button.primary{background:var(--primary);border-color:var(--primary);color:#fff}

.app-shell{background:var(--bg)}
.sidebar{box-shadow:8px 0 28px rgba(15,23,42,.12)}
.brand{padding:8px;border-radius:8px;background:rgba(255,255,255,.05)}
.nav-list a{position:relative}
.nav-list a.active::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:var(--accent)}
.topbar{position:sticky;top:0;z-index:18;background:rgba(245,247,251,.88);backdrop-filter:blur(14px);padding:12px 0 14px;border-bottom:1px solid rgba(217,224,231,.72)}
html[data-theme="dark"] .topbar{background:rgba(9,17,31,.86);border-bottom-color:rgba(38,50,68,.78)}
.topbar h1{font-size:26px}

.page-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.page-toolbar h2{margin:0;font-size:20px;line-height:1.2}
.page-toolbar p{margin:4px 0 0}
.toolbar-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.list-controls{padding:10px;border:1px solid var(--line);border-radius:8px;background:rgba(248,250,252,.72);margin-bottom:12px}
html[data-theme="dark"] .list-controls{background:#0f172a}
html[data-theme="dark"] .file-drop{background:linear-gradient(180deg,#111827,#0f172a);border-color:#334155;box-shadow:none}
html[data-theme="dark"] .file-drop:hover,html[data-theme="dark"] .file-drop.is-dragging{background:#111827;border-color:var(--accent);box-shadow:0 14px 32px rgba(0,0,0,.22)}
html[data-theme="dark"] .file-drop-cta{background:#172033;border-color:#334155;color:#d1fae5}
html[data-theme="dark"] .file-drop:hover .file-drop-cta,html[data-theme="dark"] .file-drop.is-dragging .file-drop-cta{background:var(--accent);border-color:var(--accent);color:#052e16}
html[data-theme="dark"] .rich-email-label{color:#e5e7eb}html[data-theme="dark"] .rich-email-toolbar select,html[data-theme="dark"] .rich-color-control,html[data-theme="dark"] .rich-color-swatch{background:#111827;border-color:#334155;color:#f8fafc}html[data-theme="dark"] .rich-email-surface{background:#111827;border-color:#334155;color:#f8fafc}html[data-theme="dark"] .rich-email-surface:empty::before{color:#64748b}html[data-theme="dark"] .rich-email-source{background:#111827;border-color:#334155;color:#f8fafc}html[data-theme="dark"] .rich-image-resize-handle{border-color:#0f172a}
html[data-theme="dark"] .patch-progress{background:#0f172a}
html[data-theme="dark"] .progress-track{background:#1f2937}
.list-controls input,
.list-controls select{width:auto;min-width:170px;margin-top:0}
.list-controls input[type="search"],
.list-controls input[name="q"]{min-width:260px}
.export-btn::before{content:"";width:14px;height:14px;display:inline-block;background:currentColor;mask:linear-gradient(#000 0 0) center/10px 12px no-repeat,linear-gradient(#000 0 0) bottom/14px 2px no-repeat;-webkit-mask:linear-gradient(#000 0 0) center/10px 12px no-repeat,linear-gradient(#000 0 0) bottom/14px 2px no-repeat}
.table-empty-state{text-align:center;color:var(--muted);padding:28px!important;background:rgba(248,250,252,.76)}
html[data-theme="dark"] .table-empty-state{background:#0f172a}
.report-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}
.report-tabs .button.active{background:var(--primary);border-color:var(--primary);color:#fff}
table{border:1px solid var(--line);border-radius:8px;overflow:hidden}
thead th{background:#f8fafc}
html[data-theme="dark"] thead th{background:#0f172a}
.sort-link{color:inherit;text-decoration:none;display:inline-flex;align-items:center;gap:5px}
.sort-link::after{content:"sort";font-size:10px;color:var(--muted)}
.sort-link.up::after{content:"asc";color:var(--primary)}
.sort-link.down::after{content:"desc";color:var(--primary)}
.bulk-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 12px;padding:10px;border:1px solid var(--line);border-radius:8px;background:rgba(248,250,252,.74)}
.bulk-actions select{width:auto;min-width:210px;margin-top:0}
.suggestion-strip{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

.auth-screen{display:flex;align-items:center;justify-content:center;background-size:cover;background-position:center;padding:24px}
.auth-shell{width:min(1120px,96vw);min-height:650px;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(360px,1fr);background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.58);border-radius:8px;box-shadow:0 28px 70px rgba(0,0,0,.28);overflow:hidden}
html[data-theme="dark"] .auth-shell{background:rgba(15,23,42,.92);border-color:rgba(148,163,184,.16)}
.auth-brand-panel{display:flex;flex-direction:column;justify-content:space-between;gap:28px;padding:38px;background:linear-gradient(160deg,var(--primary),#123a63);color:#fff}
.auth-brand-panel h1{font-size:38px;line-height:1.05;margin:14px 0 0}
.auth-brand-panel p{font-size:16px;line-height:1.6;margin:0;color:rgba(255,255,255,.86)}
.auth-panel-logo{width:70px;height:70px;object-fit:contain;background:rgba(255,255,255,.14);border-radius:8px;padding:8px}
.auth-brand-points{display:grid;gap:10px}
.auth-brand-points span{display:flex;align-items:center;gap:8px;font-weight:850;color:#e7f8ef}
.auth-brand-points span::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--accent)}
.auth-shell .auth-card{width:auto;max-width:none;box-shadow:none;border:0;border-radius:0;margin:0;display:flex;flex-direction:column;justify-content:center;padding:38px}
.auth-shell .auth-card h1{font-size:28px;margin-bottom:6px}

@media(max-width:980px){
  .topbar{position:static}
  .page-toolbar{display:block}
  .toolbar-actions{justify-content:flex-start;margin-top:10px}
  .list-controls input,.list-controls select,.list-controls input[type="search"],.list-controls input[name="q"]{width:100%;min-width:0}
  .auth-shell{grid-template-columns:1fr;min-height:auto}
  .auth-brand-panel{padding:28px}
  .auth-shell .auth-card{padding:26px}
}

html[data-theme="light"] body,
html[data-theme="light"] .app-shell{background:var(--bg);color:var(--text)}
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] table,
html[data-theme="light"] .card,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .metric,
html[data-theme="light"] .account-card,
html[data-theme="light"] .asset-card,
html[data-theme="light"] .kb-float-panel,
html[data-theme="light"] .kb-float-form,
html[data-theme="light"] .kb-float-messages,
html[data-theme="light"] .user-pill,
html[data-theme="light"] .two-factor-unlock-alert{background:#fff;color:var(--text);border-color:var(--line)}
html[data-theme="light"] button,
html[data-theme="light"] .button{background:#eef2f6;color:#111827;border-color:var(--line)}
html[data-theme="light"] .primary,
html[data-theme="light"] .button.primary{background:var(--primary);border-color:var(--primary);color:#fff}
html[data-theme="light"] .danger,
html[data-theme="light"] .button.danger{background:#b42318;border-color:#b42318;color:#fff}
html[data-theme="light"] .muted,
html[data-theme="light"] .record-sub,
html[data-theme="light"] .pagination-summary,
html[data-theme="light"] .kb-float-empty,
html[data-theme="light"] .kb-float-mode,
html[data-theme="light"] .kb-float-status{color:#64748b}
html[data-theme="light"] thead th{background:#f8fafc;color:#475467}
html[data-theme="light"] .list-controls,
html[data-theme="light"] .edit-grid,
html[data-theme="light"] .kb-float-head,
html[data-theme="light"] .kb-float-msg.is-assistant .kb-float-msg-text{background:#f8fafc;color:var(--text)}
html[data-theme="light"] .kb-float-msg.is-user .kb-float-msg-text{background:#eef2ff;color:#172033}
html[data-theme="light"] .tag{background:#eef2ff;color:#3730a3}
html[data-theme="light"] .tag.ok{background:#ecfdf3;color:#027a48}
html[data-theme="light"] .tag.bad{background:#fff1f3;color:#b42318}

.card > table,
.card .document-lines,
.report-print-table table{min-width:760px}
.ai-command-center{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}
.ai-provider-stack,.provider-health,.ai-health-strip{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.ai-ask-card textarea{min-height:150px}
.ai-health-card{position:sticky;top:14px}
.kb-list{display:grid;gap:12px}
.kb-list article{border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--surface)}
.kb-list h3{margin:6px 0 5px}
.portal-hero{background:linear-gradient(135deg,rgba(15,61,54,.10),rgba(22,163,74,.08))}
.ticket-status{border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:12px;background:var(--surface)}
@media (max-width: 900px){.ai-command-center{grid-template-columns:1fr}.ai-health-card{position:static}}
.card{overflow-x:auto}
.import-panel .list-controls{align-items:end}

.report-print{max-width:1120px;margin:24px auto;background:#fff;color:#17201b;padding:38px;border-radius:8px;box-shadow:0 12px 40px rgba(0,0,0,.12)}
.report-print-head{display:flex;justify-content:space-between;gap:28px;border-bottom:3px solid var(--primary);padding-bottom:18px;margin-bottom:18px}
.report-print-brand{display:flex;gap:16px;align-items:flex-start}
.report-print-brand img{width:86px;height:86px;object-fit:contain}
.report-print-brand h1,.report-print-title h2{margin:0 0 6px;color:var(--primary)}
.report-print-brand p{margin:3px 0;color:#46534c}
.report-print-title{text-align:right}
.report-print-title strong,.report-print-title span{display:block}
.report-print-title span{text-transform:uppercase;color:var(--accent);font-weight:850;margin-top:5px}
.report-print-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.report-print-metrics div{border:1px solid #d9e1dd;border-radius:8px;padding:10px}
.report-print-metrics span{display:block;color:#667085;font-size:11px;text-transform:uppercase;font-weight:850}
.report-print-metrics strong{display:block;margin-top:3px;color:#17201b}
.report-print-table{overflow-x:auto}
.report-print-table h3{margin-bottom:4px}
.report-print-table p{color:#667085;margin-top:0}
.report-print-foot{border-top:1px solid #d9e1dd;color:#667085;margin-top:18px;padding-top:12px;font-size:12px}
@media print{
  body.print-body{background:#fff}
  .report-print{box-shadow:none;margin:0;max-width:none;border-radius:0;padding:20px}
  .report-print-head,.report-print-metrics div{break-inside:avoid}
}

/* uERP Build 0.6.11 - World-class ERP UX refresh and live AI Copilot polish */
:root{
  --surface:rgba(255,255,255,.86);
  --surface-strong:rgba(255,255,255,.96);
  --surface-soft:rgba(248,250,252,.78);
  --glass-border:rgba(148,163,184,.22);
  --hero-ink:#061522;
  --lux-shadow:0 26px 70px rgba(15,23,42,.12);
  --lux-shadow-soft:0 14px 34px rgba(15,23,42,.08);
  --ring-primary:rgba(15,61,54,.24);
  --ring-accent:rgba(22,163,74,.28);
  --ai-violet:#7c3aed;
  --ai-cyan:#06b6d4;
  --ai-rose:#f43f5e;
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
}
html{scroll-behavior:smooth;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body.app-shell{
  background:
    radial-gradient(circle at 12% -10%,rgba(22,163,74,.16),transparent 34rem),
    radial-gradient(circle at 86% 8%,rgba(37,99,235,.13),transparent 32rem),
    linear-gradient(135deg,#f7fafc 0%,#eef4f8 45%,#f9fbf8 100%);
  color:var(--text);
}
.shell-aurora{position:fixed;inset:0;pointer-events:none;z-index:-1;overflow:hidden}
.shell-aurora::before,.shell-aurora::after{content:"";position:absolute;width:34rem;height:34rem;border-radius:999px;filter:blur(44px);opacity:.36;animation:uerpFloatOrb 16s ease-in-out infinite alternate}
.shell-aurora::before{left:19rem;top:-14rem;background:radial-gradient(circle,rgba(22,163,74,.46),transparent 67%)}
.shell-aurora::after{right:-10rem;bottom:-12rem;background:radial-gradient(circle,rgba(37,99,235,.38),transparent 68%);animation-delay:-5s}
@keyframes uerpFloatOrb{from{transform:translate3d(-18px,8px,0) scale(.95)}to{transform:translate3d(22px,28px,0) scale(1.08)}}
.sidebar{
  width:292px;
  padding:20px 14px;
  background:
    radial-gradient(circle at 20% 0%,rgba(22,163,74,.18),transparent 20rem),
    linear-gradient(180deg,#07111f 0%,#0a1322 52%,#07101d 100%);
  border-right:1px solid rgba(255,255,255,.09);
  box-shadow:18px 0 60px rgba(2,8,23,.18);
}
.main{margin-left:292px;padding:26px clamp(20px,2.5vw,38px) 38px}
.brand{position:sticky;top:0;z-index:2;margin:-2px 0 18px;padding:12px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));backdrop-filter:blur(18px);box-shadow:0 18px 42px rgba(0,0,0,.16)}
.brand-mark,.brand-logo{width:46px;height:46px;border-radius:16px;box-shadow:0 14px 30px rgba(22,163,74,.22)}
.brand-mark{background:linear-gradient(135deg,#e9fff2,#a7f3d0);font-size:27px;color:#06351f}
.brand strong{font-size:16px;letter-spacing:-.01em}.brand small{color:#a7b4c8;font-weight:700}
.nav-list{gap:4px;padding-bottom:18px}.nav-group{margin:18px 12px 7px;color:#7f91ab;letter-spacing:.11em;font-size:10px}.nav-list a{position:relative;min-height:46px;padding:10px 12px;border-radius:16px;color:#cbd5e1;transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease}.nav-list a::before{content:"";position:absolute;inset:7px auto 7px 0;width:3px;border-radius:999px;background:linear-gradient(180deg,var(--accent),rgba(var(--accent-rgb,22,163,74),.55));opacity:0;transform:scaleY(.35);transition:.18s ease}.nav-list a:hover{transform:translateX(3px);background:rgba(255,255,255,.07);color:#fff}.nav-list a.active{background:var(--nav-active,linear-gradient(90deg,rgba(22,163,74,.20),rgba(37,99,235,.09)));color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 16px 32px rgba(2,8,23,.18)}.nav-list a.active::before{opacity:1;transform:scaleY(1)}
.nav-icon{min-width:32px;height:32px;border-radius:13px;border-color:rgba(255,255,255,.14);background:rgba(255,255,255,.065);color:var(--nav-icon-color,#b8f8d0)}.nav-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.nav-list a.active .nav-icon{background:linear-gradient(135deg,var(--accent),rgba(var(--accent-rgb,22,163,74),.72));color:#04111f;border-color:transparent;box-shadow:0 10px 24px rgba(var(--accent-rgb,22,163,74),.25)}.nav-list a{padding-right:38px}.nav-list a.active::after{content:"";position:absolute;right:13px;top:50%;width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:9px solid var(--accent);transform:translateY(-50%);filter:drop-shadow(0 2px 5px rgba(0,0,0,.28))}
.topbar{position:sticky;top:18px;z-index:18;align-items:center;margin-bottom:24px;padding:16px 18px;border:1px solid var(--glass-border);border-radius:24px;background:rgba(255,255,255,.74);backdrop-filter:blur(22px);box-shadow:var(--lux-shadow-soft)}
.topbar h1{font-size:clamp(28px,3vw,42px);letter-spacing:-.045em;margin:2px 0;color:#0f172a}.eyebrow{letter-spacing:.13em}.top-actions{gap:10px}.theme-switch select{width:auto;min-width:118px;margin:0;border-radius:999px;background:rgba(255,255,255,.74);font-weight:850}.user-pill{border-radius:999px;padding:9px 13px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 8px 20px rgba(15,23,42,.06)}
button,.button{border-radius:13px;transition:transform .15s ease,box-shadow .15s ease,filter .15s ease;background:linear-gradient(180deg,#fff,#eef2f6);box-shadow:0 8px 18px rgba(15,23,42,.05)}button:hover,.button:hover{transform:translateY(-1px);filter:none;box-shadow:0 12px 24px rgba(15,23,42,.09)}.primary,.button.primary{background:linear-gradient(135deg,var(--primary),color-mix(in srgb,var(--primary) 74%,var(--accent)));box-shadow:0 14px 28px rgba(15,61,54,.22)}
.card,.auth-card,.metric,.account-card,.asset-card{border-radius:var(--radius-lg);border-color:var(--glass-border);background:var(--surface-strong);box-shadow:var(--lux-shadow-soft)}.card{padding:22px;margin-bottom:22px;animation:uerpRise .45s ease both}.card:nth-of-type(2){animation-delay:.03s}.card:nth-of-type(3){animation-delay:.06s}@keyframes uerpRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric{position:relative;overflow:hidden;min-height:122px;padding:18px 18px 16px}.metric::after{content:"";position:absolute;right:-36px;top:-36px;width:110px;height:110px;border-radius:999px;background:radial-gradient(circle,rgba(22,163,74,.17),transparent 64%);transition:transform .2s ease}.metric:hover::after{transform:scale(1.2)}.metric span{font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.metric strong{display:block;margin-top:8px;font-size:clamp(28px,3vw,40px);letter-spacing:-.045em;color:#0f172a}.metric-link:hover{border-color:rgba(22,163,74,.38);transform:translateY(-3px);box-shadow:var(--lux-shadow)}
input,select,textarea{border-radius:14px;border-color:#d6dee9;background:rgba(255,255,255,.9);transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}input:focus,select:focus,textarea:focus{outline:0;border-color:color-mix(in srgb,var(--primary) 56%,#60a5fa);box-shadow:0 0 0 4px var(--ring-primary),0 12px 26px rgba(15,23,42,.08);background:#fff}textarea{line-height:1.55}
table{border:1px solid var(--glass-border);border-radius:18px;overflow:hidden;background:#fff}th{background:linear-gradient(180deg,#f8fafc,#eef4f8);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#475569}td,th{padding:13px 14px}tr:hover td{background:rgba(22,163,74,.035)}.tag{border-radius:999px;padding:5px 10px}.alert{border-radius:16px;box-shadow:0 12px 26px rgba(15,23,42,.06)}
.dashboard-banner{border-radius:26px;min-height:238px;padding:30px;overflow:hidden;box-shadow:var(--lux-shadow)}.dashboard-banner h2{font-size:clamp(36px,5vw,62px);letter-spacing:-.06em}.dashboard-banner .eyebrow{color:#bcf7d1}
.executive-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:22px;align-items:stretch;margin-bottom:22px;border-radius:30px;overflow:hidden;color:#fff;background:linear-gradient(135deg,#07111f 0%,#0f3d36 44%,#0f766e 100%);box-shadow:var(--lux-shadow)}.executive-hero::before{content:"";position:absolute;inset:-40%;background:radial-gradient(circle at 20% 20%,rgba(255,255,255,.22),transparent 24%),radial-gradient(circle at 78% 10%,rgba(34,211,238,.24),transparent 24%),radial-gradient(circle at 58% 88%,rgba(22,163,74,.24),transparent 20%);animation:uerpHeroGlow 18s ease-in-out infinite alternate}.executive-hero > *{position:relative}.executive-hero-main{padding:34px}.executive-hero .eyebrow{color:#a7f3d0}.executive-hero h2{font-size:clamp(38px,5.3vw,68px);letter-spacing:-.065em;line-height:.96;margin:8px 0 14px}.executive-hero p{max-width:760px;color:#dbeafe;font-size:16px;line-height:1.6}.executive-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.executive-actions .button{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.22);backdrop-filter:blur(12px)}.executive-actions .button.primary{background:linear-gradient(135deg,#22c55e,#14b8a6);color:#04111f}.executive-hero-side{display:grid;gap:12px;padding:26px;border-left:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);backdrop-filter:blur(10px)}.command-tile{border:1px solid rgba(255,255,255,.16);border-radius:22px;padding:16px;background:rgba(255,255,255,.09)}.command-tile span{display:block;color:#b7f7ce;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.11em}.command-tile strong{display:block;margin-top:6px;font-size:28px;letter-spacing:-.04em}.command-tile p{margin:6px 0 0;color:#dbeafe;font-size:13px}.command-pulse{display:inline-flex;width:10px;height:10px;margin-right:7px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.75);animation:uerpPulse 1.9s infinite}.dashboard-command-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}.command-card{position:relative;overflow:hidden;border:1px solid var(--glass-border);border-radius:22px;background:rgba(255,255,255,.84);box-shadow:var(--lux-shadow-soft);padding:18px}.command-card::after{content:"";position:absolute;right:-45px;bottom:-45px;width:120px;height:120px;border-radius:999px;background:radial-gradient(circle,rgba(37,99,235,.13),transparent 64%)}.command-card span{font-size:11px;text-transform:uppercase;letter-spacing:.09em;font-weight:900;color:var(--primary)}.command-card strong{display:block;margin:7px 0;font-size:20px;letter-spacing:-.02em}.command-card p{margin:0;color:var(--muted);line-height:1.48}@keyframes uerpHeroGlow{from{transform:translate3d(-2%,0,0) rotate(0deg)}to{transform:translate3d(2%,1%,0) rotate(4deg)}}
.insight-grid{gap:14px}.insight-card{position:relative;overflow:hidden;border-radius:20px;background:linear-gradient(180deg,#fff,rgba(248,250,252,.9));transition:transform .18s ease,box-shadow .18s ease}.insight-card:hover{transform:translateY(-3px);box-shadow:var(--lux-shadow-soft)}.insight-card strong{font-size:28px;letter-spacing:-.04em}.insight-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--primary),var(--accent),#38bdf8)}
.ai-command-center{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;align-items:start}.ai-ask-card{position:relative;overflow:hidden;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,250,252,.92))}.ai-ask-card::before{content:"";position:absolute;inset:-1px -1px auto;height:6px;background:linear-gradient(90deg,var(--ai-violet),var(--ai-cyan),var(--accent));}.ai-provider-stack,.provider-health{display:flex;gap:8px;flex-wrap:wrap}.ai-quick-actions button{border-radius:999px;background:#f8fafc;border-color:#dbeafe}.ai-page-hero{position:relative;overflow:hidden;margin-bottom:18px;border-radius:30px;padding:28px;background:linear-gradient(135deg,#111827,#312e81 50%,#0f766e);color:#fff;box-shadow:var(--lux-shadow)}.ai-page-hero::before{content:"";position:absolute;inset:-30%;background:radial-gradient(circle at 18% 25%,rgba(255,255,255,.23),transparent 23%),radial-gradient(circle at 78% 20%,rgba(6,182,212,.25),transparent 20%);animation:uerpHeroGlow 16s ease-in-out infinite alternate}.ai-page-hero > *{position:relative}.ai-page-hero h2{font-size:clamp(34px,4.3vw,56px);letter-spacing:-.055em;line-height:1;margin:8px 0}.ai-page-hero p{max-width:800px;color:#dbeafe}.ai-composer-shell{position:relative}.ai-composer-shell textarea{position:relative;z-index:1;min-height:142px;padding:16px 16px 42px;border-color:rgba(124,58,237,.26);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}.ai-composer-glow{position:absolute;inset:10px;border-radius:18px;pointer-events:none;background:linear-gradient(135deg,rgba(124,58,237,.12),rgba(6,182,212,.10),rgba(34,197,94,.10));filter:blur(18px);opacity:.65}.ai-composer-meta{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;font-weight:800;margin-top:8px}.ai-submit{position:relative;overflow:hidden}.ai-submit::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 0%,rgba(255,255,255,.32) 45%,transparent 64%);transform:translateX(-120%)}.ai-submit:hover::after{animation:uerpSheen .9s ease}.ai-health-card{background:linear-gradient(180deg,#fff,#f8fafc)}.ai-health-orb{display:grid;place-items:center;width:88px;height:88px;border-radius:28px;margin-bottom:14px;background:radial-gradient(circle at 35% 25%,#fff,rgba(6,182,212,.3) 34%,rgba(124,58,237,.28));box-shadow:0 20px 45px rgba(79,70,229,.18);font-weight:950;color:#312e81}.kb-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.kb-list article{border:1px solid var(--glass-border);border-radius:20px;padding:16px;background:linear-gradient(180deg,#fff,#f8fafc)}
.kb-float{right:24px;bottom:24px;z-index:40}.ai-copilot-toggle,.kb-float-toggle{position:relative;gap:12px;min-height:62px;padding:10px 15px 10px 10px;border-radius:999px;background:linear-gradient(135deg,#07111f,#0f3d36 55%,#0ea5e9);border:1px solid rgba(255,255,255,.22);color:#fff;box-shadow:0 22px 54px rgba(2,8,23,.28),0 0 0 8px rgba(22,163,74,.08);overflow:visible}.ai-copilot-toggle::before,.kb-float-toggle::before{content:"";position:absolute;inset:-7px;border-radius:999px;background:linear-gradient(120deg,var(--ai-violet),var(--ai-cyan),var(--accent),var(--ai-violet));opacity:.44;filter:blur(12px);z-index:-1;animation:uerpAura 3.7s linear infinite}.ai-copilot-toggle::after{content:"Ask AI";position:absolute;right:10px;bottom:calc(100% + 10px);padding:7px 11px;border:1px solid rgba(15,23,42,.08);border-radius:999px;background:rgba(255,255,255,.92);color:#0f172a;font-size:12px;font-weight:900;box-shadow:0 14px 28px rgba(15,23,42,.12);animation:uerpPromptNudge 4.4s ease-in-out infinite}.ai-orb{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:conic-gradient(from 90deg,var(--ai-violet),var(--ai-cyan),var(--accent),var(--ai-violet));box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}.ai-orb-core{display:grid!important;place-items:center;width:34px!important;height:34px!important;border-radius:50%!important;background:#fff!important;color:#07111f!important;font-size:12px!important;font-weight:950!important}.ai-toggle-copy{display:grid;text-align:left;line-height:1.12}.ai-toggle-copy strong{font-size:14px}.ai-toggle-copy em{font-style:normal;font-size:11px;color:#cffafe;font-weight:800}.ai-sparkline{display:flex;align-items:flex-end;gap:3px;height:22px}.ai-sparkline i{display:block;width:3px;border-radius:999px;background:#a7f3d0;animation:uerpBars 1.15s ease-in-out infinite}.ai-sparkline i:nth-child(1){height:10px}.ai-sparkline i:nth-child(2){height:18px;animation-delay:.16s}.ai-sparkline i:nth-child(3){height:13px;animation-delay:.31s}.kb-float.open .ai-copilot-toggle{box-shadow:0 20px 52px rgba(2,8,23,.35),0 0 0 10px rgba(6,182,212,.10)}
.kb-float-panel,.ai-copilot-panel{bottom:78px;width:min(520px,calc(100vw - 36px));border-radius:28px;border:1px solid rgba(148,163,184,.26);background:rgba(255,255,255,.88);backdrop-filter:blur(24px);box-shadow:0 32px 90px rgba(2,8,23,.28);animation:uerpPanelIn .22s ease both}.kb-float-head{padding:18px;background:linear-gradient(135deg,#07111f,#0f3d36);color:#fff;border-bottom:0}.kb-float-head h2{font-size:18px}.kb-float-mode{color:#a7f3d0}.kb-float-close{border-radius:999px;background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.18)}.ai-float-hero{padding:14px 16px 0;background:linear-gradient(180deg,rgba(15,61,54,.06),transparent)}.ai-float-hero p{margin:0;color:#475569;font-size:13px;line-height:1.5}.kb-float-messages{min-height:220px;max-height:390px;padding:16px;background:linear-gradient(180deg,#f8fafc,#fff)}.kb-float-empty{border:1px dashed rgba(15,61,54,.22);border-radius:20px;background:rgba(255,255,255,.75);text-align:center}.kb-float-msg{animation:uerpBubble .2s ease both}.kb-float-msg-text{border-radius:20px;padding:11px 13px;border-color:rgba(148,163,184,.24);box-shadow:0 10px 24px rgba(15,23,42,.05)}.kb-float-msg.is-user .kb-float-msg-text{background:linear-gradient(135deg,#e0f2fe,#ecfeff);border-color:#bae6fd}.kb-float-msg.is-assistant .kb-float-msg-text{background:linear-gradient(180deg,#fff,#f8fafc);border-color:#dbeafe}.kb-float-msg.is-thinking .kb-float-msg-text{min-width:172px}.typing-dots{display:inline-flex;gap:5px;vertical-align:middle}.typing-dots i{display:block;width:7px;height:7px;border-radius:999px;background:var(--primary);animation:uerpDot 1s ease-in-out infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}.kb-float-quick{padding:0 16px 14px}.kb-float-chip{border-radius:999px;border-color:rgba(15,61,54,.13);background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.05)}.kb-float-form{padding:15px 16px 16px;border-top:1px solid rgba(148,163,184,.18);background:rgba(255,255,255,.9)}.kb-float-form textarea{min-height:92px;border-radius:20px;background:#fff;padding:13px 14px 34px}.kb-float-actions{align-items:center}.kb-float-status{display:flex;align-items:center;gap:8px;font-weight:850}.ai-generation-rail{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.ai-generation-rail span{border:1px solid rgba(15,61,54,.12);background:#ecfdf3;color:#065f46;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;animation:uerpRail 1.35s ease-in-out infinite}.ai-generation-rail span:nth-child(2){animation-delay:.16s}.ai-generation-rail span:nth-child(3){animation-delay:.32s}.ai-char-meter{position:absolute;right:12px;bottom:10px;z-index:2;font-size:11px;font-weight:850;color:#64748b}.generating .ai-submit,.generating button[type=submit]{pointer-events:none;opacity:.82}.generating .ai-orb{animation:uerpSpin 1.6s linear infinite}
.two-factor-unlock-alert{border-radius:22px;box-shadow:var(--lux-shadow);background:rgba(255,255,255,.9);backdrop-filter:blur(20px)}
.auth-screen{background:radial-gradient(circle at 12% 15%,rgba(22,163,74,.23),transparent 28rem),linear-gradient(135deg,#07111f,#0f172a)}.auth-shell{display:grid;grid-template-columns:minmax(300px,.9fr) minmax(360px,520px);gap:22px;width:min(1050px,96vw);align-items:stretch}.auth-brand-panel{display:flex;flex-direction:column;justify-content:flex-end;min-height:560px;border:1px solid rgba(255,255,255,.12);border-radius:32px;padding:34px;color:#fff;background:linear-gradient(135deg,rgba(15,61,54,.92),rgba(15,23,42,.86));box-shadow:var(--lux-shadow);overflow:hidden;position:relative}.auth-brand-panel::before{content:"";position:absolute;inset:-30%;background:radial-gradient(circle at 22% 20%,rgba(255,255,255,.28),transparent 19%),radial-gradient(circle at 70% 10%,rgba(34,211,238,.22),transparent 22%);animation:uerpHeroGlow 16s ease-in-out infinite alternate}.auth-brand-panel > *{position:relative}.auth-brand-panel h1{font-size:clamp(42px,6vw,74px);line-height:.95;letter-spacing:-.065em;margin:18px 0 12px}.auth-brand-panel p{font-size:17px;line-height:1.6;color:#dcfce7}.auth-panel-logo{width:72px;height:72px;object-fit:contain;border-radius:20px;background:rgba(255,255,255,.92);padding:7px}.auth-brand-points{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.auth-brand-points span{border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.1);font-weight:850;font-size:12px}.auth-card{border-radius:32px;padding:30px;box-shadow:var(--lux-shadow)}
@keyframes uerpPulse{70%{box-shadow:0 0 0 12px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}@keyframes uerpAura{to{filter:hue-rotate(360deg) blur(12px)}}@keyframes uerpPromptNudge{0%,72%,100%{opacity:0;transform:translateY(8px) scale(.96)}10%,56%{opacity:1;transform:translateY(0) scale(1)}}@keyframes uerpBars{0%,100%{transform:scaleY(.55);opacity:.62}50%{transform:scaleY(1.15);opacity:1}}@keyframes uerpPanelIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}@keyframes uerpBubble{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes uerpDot{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-5px);opacity:1}}@keyframes uerpRail{0%,100%{opacity:.58;transform:translateY(0)}50%{opacity:1;transform:translateY(-1px)}}@keyframes uerpSpin{to{transform:rotate(360deg)}}@keyframes uerpSheen{to{transform:translateX(120%)}}
html[data-theme="dark"] body.app-shell,.theme-dark{--surface:rgba(15,23,42,.78);--surface-strong:rgba(15,23,42,.92);--surface-soft:rgba(2,8,23,.66);--glass-border:rgba(148,163,184,.16);--hero-ink:#f8fafc;background:radial-gradient(circle at 15% -10%,rgba(22,163,74,.12),transparent 34rem),radial-gradient(circle at 85% 0%,rgba(59,130,246,.13),transparent 30rem),linear-gradient(135deg,#050b14,#0b1220 48%,#08111d)}html[data-theme="dark"] .topbar,html[data-theme="dark"] .card,html[data-theme="dark"] .metric,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .account-card,html[data-theme="dark"] .asset-card{background:var(--surface-strong);border-color:var(--glass-border)}html[data-theme="dark"] .topbar h1,html[data-theme="dark"] .metric strong{color:#f8fafc}html[data-theme="dark"] table{background:#0f172a}html[data-theme="dark"] th{background:#111827;color:#cbd5e1}html[data-theme="dark"] tr:hover td{background:rgba(34,197,94,.08)}html[data-theme="dark"] .kb-float-panel{background:rgba(15,23,42,.9)}html[data-theme="dark"] .kb-float-messages,html[data-theme="dark"] .kb-float-form{background:#0f172a}html[data-theme="dark"] .kb-float-msg.is-assistant .kb-float-msg-text,html[data-theme="dark"] .kb-float-chip,html[data-theme="dark"] .kb-list article,html[data-theme="dark"] .command-card,html[data-theme="dark"] .insight-card{background:#111827}html[data-theme="dark"] .ai-float-hero p{color:#cbd5e1}html[data-theme="dark"] .ai-copilot-toggle::after{background:#111827;color:#f8fafc;border-color:rgba(255,255,255,.14)}
@media(max-width:1180px){.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.executive-hero{grid-template-columns:1fr}.executive-hero-side{grid-template-columns:repeat(3,minmax(0,1fr));border-left:0;border-top:1px solid rgba(255,255,255,.14)}.dashboard-command-strip{grid-template-columns:1fr}.ai-command-center{grid-template-columns:1fr}.kb-list{grid-template-columns:1fr}}
@media(max-width:980px){.sidebar{position:relative;width:auto;padding:14px;border-radius:0 0 24px 24px}.main{margin-left:0;padding:18px}.topbar{position:relative;top:0;display:block}.nav-list{grid-template-columns:repeat(2,minmax(0,1fr))}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.executive-hero-side{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr}.auth-brand-panel{min-height:320px}.kb-float{right:16px;bottom:16px}.ai-copilot-toggle::after{display:none}}
@media(max-width:640px){.metrics,.nav-list{grid-template-columns:1fr}.executive-hero-main{padding:24px}.executive-hero h2{font-size:38px}.topbar h1{font-size:30px}.kb-float-panel{width:calc(100vw - 24px);right:-4px;bottom:74px}.ai-toggle-copy,.ai-sparkline{display:none}.ai-copilot-toggle,.kb-float-toggle{padding:10px;min-height:60px}.auth-card{padding:22px}.auth-brand-panel{padding:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}}
.auth-card .brand,.brand.center{position:static;top:auto;background:transparent;border:0;box-shadow:none;backdrop-filter:none;padding:0}

/* uERP Build 0.6.12 - standard light, dense ERP interface, dashboard analytics */
html[data-theme="light"],
html[data-theme="light"] body,
body.app-shell.theme-light{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --surface:#ffffff;
  --surface-strong:#ffffff;
  --surface-soft:#f8fafc;
  --text:#172033;
  --muted:#667085;
  --line:#d8e0ea;
  color:var(--text);
  background:#f4f7fb;
}
.shell-aurora{opacity:.22}
body.app-shell{background:#f4f7fb;color:var(--text)}
.topbar{background:rgba(255,255,255,.92);border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.sidebar{box-shadow:8px 0 30px rgba(15,23,42,.08)}
.card,.metric,.account-card,.asset-card{border-radius:12px;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.card{padding:14px 15px;margin-bottom:14px}
.card h2{font-size:17px;margin-bottom:8px;letter-spacing:-.01em}
.grid{gap:12px}.metrics{gap:10px;margin-bottom:14px}.compact-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
.metric{padding:11px 12px;min-height:82px}.metric span{font-size:11px;text-transform:uppercase;letter-spacing:.06em}.metric strong{font-size:22px;line-height:1.15;word-break:break-word}.metric-link:hover{transform:none;background:#f8fafc}
button,.button{border-radius:9px;min-height:32px;padding:7px 10px;font-size:13px;box-shadow:none;background:#f8fafc;font-weight:800;transform:none}.button:hover,button:hover{transform:none;box-shadow:none}.primary,.button.primary{background:var(--primary);color:#fff;border-color:var(--primary)}
input,select,textarea{border-radius:8px;padding:8px 9px;min-height:34px;font-size:13px}textarea{min-height:74px}
.table-wrap,.card:has(> table){overflow-x:auto}table{font-size:12.5px;border-radius:10px;overflow:hidden}th,td{padding:5px 7px;line-height:1.22;vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}tr:hover td{background:#f9fbfd}td p,td small{margin:.15rem 0}td form{margin:0}td input,td select,td textarea{margin-top:0;min-height:28px;padding:4px 6px;font-size:12px;border-radius:6px}td textarea{min-height:32px;max-height:56px}.dense-table th,.dense-table td{padding:5px 7px}.dense-card{padding:12px}.actions,.actions-inline{gap:4px}.actions-inline{align-items:center}.actions-inline form{gap:4px;align-items:center}td.actions-inline,.actions-cell{white-space:nowrap}td button,td .button,td input[type="submit"],.actions-inline button,.actions-inline .button,table button,table .button{min-height:24px;padding:3px 6px;border-radius:6px;font-size:11px;line-height:1.1;gap:4px;font-weight:800}td .danger,table .danger{padding-inline:6px}td .tag,table .tag{font-size:10px;padding:2px 5px}.list-toolbar{gap:10px;margin-bottom:10px}.list-toolbar h2{margin-bottom:2px}.search-form{gap:8px}.search-form input,.search-form select{max-width:220px}.pagination{margin-top:10px}
.standard-hero,.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(135deg,#ffffff,#f7fbff);box-shadow:0 8px 22px rgba(15,23,42,.05);color:var(--text)}.standard-hero h2{font-size:28px;line-height:1.1;margin:3px 0 5px;letter-spacing:-.035em}.standard-hero p{margin:0;color:var(--muted);max-width:760px}.standard-hero .eyebrow{color:var(--primary)}.standard-hero .executive-actions,.executive-actions{margin-top:0}.standard-hero .button,.executive-actions .button{background:#fff;color:var(--text);border-color:var(--line);backdrop-filter:none}.standard-hero .button.primary,.executive-actions .button.primary{background:var(--primary);border-color:var(--primary);color:#fff}
.dashboard-analytics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.chart-card{min-height:250px}.chart-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.chart-head h2{margin:0}.chart-head p{margin:3px 0 0;font-size:12px}.histogram{display:flex;align-items:end;gap:8px;height:178px;padding-top:18px}.histogram-item{flex:1;min-width:34px;display:grid;grid-template-rows:auto 1fr auto;gap:6px;align-items:end;text-align:center}.histogram-value{font-size:10px;color:#475467;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.histogram-track{height:112px;border-radius:8px;background:#eef2f7;display:flex;align-items:end;overflow:hidden}.histogram-bar{display:block;width:100%;height:var(--bar-height);min-height:5px;border-radius:8px 8px 0 0;background:linear-gradient(180deg,var(--primary),var(--accent));transition:height .28s ease}.histogram-label{font-size:10px;color:#667085;white-space:nowrap}.pie-layout{display:grid;grid-template-columns:132px 1fr;gap:16px;align-items:center;min-height:178px}.pie-chart{width:132px;height:132px;border-radius:50%;display:grid;place-items:center;box-shadow:inset 0 0 0 12px #fff,0 10px 22px rgba(15,23,42,.08)}.pie-chart span{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;background:#fff;border:1px solid var(--line);font-weight:900;font-size:13px}.pie-legend{list-style:none;margin:0;padding:0;display:grid;gap:7px}.pie-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:7px;align-items:center;font-size:12px}.pie-legend strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pie-legend em{font-style:normal;color:var(--muted);font-size:11px}.legend-dot{width:9px;height:9px;border-radius:50%;background:var(--dot)}.compact-insights{gap:10px}.compact-insights .insight-card{padding:12px;border-radius:12px}.compact-insights .insight-card strong{font-size:20px}
.kb-float{right:18px;bottom:18px;z-index:45}.kb-float-toggle{min-height:42px;padding:7px 12px 7px 8px;border-radius:999px;background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 12px 30px rgba(15,61,54,.22);gap:8px;overflow:visible}.kb-float-toggle::before,.kb-float-toggle::after,.ai-copilot-toggle::before,.ai-copilot-toggle::after{display:none!important}.kb-float-toggle .button-icon,.ai-mini-icon{display:grid;place-items:center;width:26px!important;height:26px!important;border-radius:50%!important;background:#fff!important;color:var(--primary)!important;font-size:11px!important;font-weight:950!important}.kb-float.open .kb-float-toggle,.kb-float.is-thinking .kb-float-toggle{box-shadow:0 14px 32px rgba(15,61,54,.28)}.kb-float.is-thinking .kb-float-toggle .button-icon{animation:uerpSpin 1.2s linear infinite}.kb-float-panel{bottom:54px;width:min(430px,calc(100vw - 28px));border-radius:16px;border:1px solid var(--line);background:#fff;backdrop-filter:none;box-shadow:0 22px 55px rgba(15,23,42,.20);overflow:hidden}.kb-float-head{padding:12px 14px;background:#f8fafc;color:var(--text);border-bottom:1px solid var(--line)}.kb-float-head h2{font-size:15px}.kb-float-head-actions{display:flex;gap:6px;align-items:center}.kb-float-clear,.kb-float-close{min-height:26px;padding:3px 7px;border-radius:7px;background:#fff;color:var(--text);border-color:var(--line)}.kb-float-messages{min-height:170px;max-height:320px;padding:12px;background:#fff}.kb-float-empty{font-size:13px;border:1px dashed var(--line);border-radius:10px;padding:12px;background:#f8fafc;text-align:left}.kb-float-quick{padding:0 12px 10px;gap:6px}.kb-float-chip{min-height:26px;padding:4px 8px;font-size:11px;border-radius:999px;background:#f8fafc;border-color:var(--line);box-shadow:none}.kb-float-form{padding:10px 12px 12px;background:#fff;border-top:1px solid var(--line)}.kb-float-form textarea{min-height:70px;border-radius:10px;padding:9px}.kb-float-actions{margin-top:7px}.kb-float-status{font-size:12px;color:var(--muted);min-height:16px}.kb-float-status.is-thinking::after{content:"";display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;background:var(--accent);box-shadow:10px 0 0 var(--accent),20px 0 0 var(--accent);animation:uerpPromptNudge 1s ease-in-out infinite}.kb-float-msg{display:block;margin-bottom:8px}.kb-float-msg.is-user{text-align:right}.kb-float-msg-text{display:inline-block;max-width:88%;border-radius:12px;padding:8px 10px;font-size:13px;line-height:1.4;box-shadow:none}.kb-float-msg.is-user .kb-float-msg-text{background:#eef2ff;border-color:#dbe4ff}.kb-float-msg.is-assistant .kb-float-msg-text{background:#f8fafc;border-color:var(--line)}.kb-float-msg-meta{max-width:88%;margin:3px 0 0;font-size:10px;color:var(--muted)}.kb-float-msg.is-user .kb-float-msg-meta{margin-left:auto;text-align:right}.kb-float-msg-text p{margin:.25rem 0}.kb-float-msg-text ul,.kb-float-msg-text ol{margin:.25rem 0 .25rem 1rem;padding:0}.kb-thinking-dots{display:inline-flex;gap:3px;margin-left:6px}.kb-thinking-dots span{width:5px;height:5px;border-radius:50%;background:var(--primary);animation:uerpDot 1s ease-in-out infinite}.kb-thinking-dots span:nth-child(2){animation-delay:.15s}.kb-thinking-dots span:nth-child(3){animation-delay:.3s}.ai-page-hero{border-radius:14px;padding:18px 20px;background:#fff;color:var(--text);border:1px solid var(--line);box-shadow:0 8px 22px rgba(15,23,42,.05)}.ai-page-hero h2{font-size:28px}.ai-command-center{gap:12px}.ai-ask-card textarea{min-height:112px}.ai-health-orb{width:58px;height:58px;border-radius:16px}.ai-composer-shell textarea{padding-right:10px}.ai-composer-glow,.ai-generation-rail,.ai-char-meter{display:none!important}
.auth-screen{background:radial-gradient(circle at 16% 10%,rgba(22,163,74,.12),transparent 32rem),linear-gradient(135deg,#f4f7fb,#eaf0f7);color:var(--text)}.auth-shell{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.16);gap:0;overflow:hidden}.auth-brand-panel{border-radius:0;min-height:520px;background:linear-gradient(135deg,#ffffff,#edf7f2);color:var(--text);border:0;border-right:1px solid var(--line);box-shadow:none}.auth-brand-panel::before{display:none}.auth-brand-panel h1{font-size:46px;color:var(--primary);letter-spacing:-.045em}.auth-brand-panel p{color:#475467}.auth-brand-points span{background:#fff;color:#344054;border-color:var(--line)}.auth-card{border-radius:0;box-shadow:none;border:0;background:#fff}
@media(max-width:1320px){.compact-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.compact-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-analytics-grid{grid-template-columns:1fr}.standard-hero{align-items:flex-start;flex-direction:column}.pie-layout{grid-template-columns:120px 1fr}.pie-chart{width:120px;height:120px}.auth-brand-panel{min-height:260px}.kb-float-panel{right:-4px}}
@media(max-width:640px){.compact-metrics{grid-template-columns:1fr}.histogram{overflow-x:auto}.histogram-item{min-width:54px}.pie-layout{grid-template-columns:1fr}.pie-chart{margin:auto}.kb-float-toggle span:not(.button-icon){display:none}.kb-float-toggle{padding:8px}.kb-float-panel{width:calc(100vw - 24px);bottom:56px}.standard-hero h2,.ai-page-hero h2{font-size:24px}}


/* uERP Build 0.6.13 - readability, mobile, theme toggle, and branding image corrections */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.theme-switch-icon{display:inline-flex;margin:0}.theme-icon-button{display:grid!important;place-items:center!important;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;border-radius:999px!important;background:#fff!important;color:#0f172a!important;border:1px solid var(--line)!important;box-shadow:0 6px 16px rgba(15,23,42,.07)!important;font-size:22px!important;line-height:1!important}.theme-icon-button:hover{background:#f8fafc!important;transform:none!important}.theme-icon-button span{display:block;transform:translateY(-1px)}
html[data-theme="dark"] .theme-icon-button{background:#111827!important;color:#f8fafc!important;border-color:#334155!important;box-shadow:none!important}
.ai-page-hero p,.ai-command-center p,.ai-command-center .muted,.ai-composer-meta,.ai-health-card .muted,.ai-ask-card .muted,.kb-list p{color:#344054!important}.ai-page-hero h2,.ai-command-center h2,.ai-health-card h2{color:#111827}.ai-provider-stack .tag,.provider-health .tag{color:inherit}.ai-quick-actions button{color:#172033}.ai-composer-shell textarea::placeholder,.kb-float-form textarea::placeholder{color:#667085}
.dashboard-hero.has-bg,.standard-hero.has-bg{background-size:cover!important;background-position:center!important;color:#fff!important;border-color:rgba(255,255,255,.18)!important;box-shadow:0 18px 42px rgba(15,23,42,.18)!important}.dashboard-hero.has-bg h2,.dashboard-hero.has-bg p,.dashboard-hero.has-bg .eyebrow{color:#fff!important;text-shadow:0 2px 14px rgba(2,8,23,.42)}.dashboard-hero.has-bg .button{background:rgba(255,255,255,.92)!important;color:#0f172a!important;border-color:rgba(255,255,255,.34)!important}.dashboard-hero.has-bg .button.primary{background:#fff!important;color:var(--primary)!important;border-color:#fff!important}
.auth-screen{background-size:cover!important;background-position:center!important;background-attachment:fixed}.auth-brand-panel{background-size:cover!important;background-position:center!important}.auth-brand-panel[style] h1,.auth-brand-panel[style] p,.auth-brand-panel[style] .auth-brand-points span{color:#fff!important;text-shadow:0 2px 16px rgba(2,8,23,.38)}.auth-brand-panel[style] .auth-brand-points span{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.20)}
.ai-icon-toggle.kb-float-toggle{width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;border-radius:999px!important;display:grid!important;place-items:center!important;gap:0!important}.ai-icon-toggle .ai-mini-icon{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:999px!important;background:#fff!important;color:var(--primary)!important;font-size:12px!important;font-weight:950!important;letter-spacing:-.04em!important;box-shadow:inset 0 0 0 1px rgba(15,61,54,.08)!important;animation:uerpAiIconBreath 2.4s ease-in-out infinite}.ai-icon-toggle .sr-only{display:block!important}.kb-float.is-thinking .ai-icon-toggle .ai-mini-icon{animation:uerpAiIconBreath .8s ease-in-out infinite,uerpSpin 1.8s linear infinite}.ai-icon-toggle::before{content:""!important;display:block!important;position:absolute!important;inset:-5px!important;border-radius:999px!important;background:conic-gradient(from 0deg,var(--primary),var(--accent),#38bdf8,var(--primary))!important;opacity:.36!important;filter:blur(10px)!important;z-index:-1!important;animation:uerpAura 4s linear infinite!important}.ai-icon-toggle::after{display:none!important}@keyframes uerpAiIconBreath{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(22,163,74,.20)}50%{transform:scale(1.06);box-shadow:0 0 0 8px rgba(22,163,74,.08)}}
@media(max-width:980px){.top-actions{gap:7px;align-items:center}.theme-icon-button{width:38px!important;height:38px!important;min-height:38px!important;font-size:20px!important}.dashboard-hero,.standard-hero{padding:16px!important}.ai-command-center{grid-template-columns:1fr!important}.ai-page-hero{padding:16px!important}.kb-float-panel{max-height:calc(100vh - 88px);overflow:auto}.auth-shell{width:min(96vw,760px)}}
@media(max-width:640px){.top-actions{display:flex;flex-wrap:wrap}.user-pill{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-icon-toggle.kb-float-toggle{width:46px!important;height:46px!important;min-height:46px!important;padding:0!important}.kb-float-toggle span.ai-mini-icon{display:grid!important}.kb-float-panel{right:-6px!important;width:calc(100vw - 20px)!important;bottom:58px!important}.kb-float-messages{max-height:42vh}.dashboard-hero.has-bg,.standard-hero.has-bg{min-height:180px}.auth-screen{padding:12px}.auth-brand-panel{min-height:210px!important}.auth-brand-panel h1{font-size:34px!important}.auth-card{padding:20px!important}}
html[data-theme="dark"] .ai-page-hero{background:#0f172a!important;color:#f8fafc!important;border-color:#263244!important}html[data-theme="dark"] .ai-page-hero h2,html[data-theme="dark"] .ai-command-center h2,html[data-theme="dark"] .ai-health-card h2{color:#f8fafc!important}html[data-theme="dark"] .ai-page-hero p,html[data-theme="dark"] .ai-command-center p,html[data-theme="dark"] .ai-command-center .muted,html[data-theme="dark"] .ai-composer-meta,html[data-theme="dark"] .ai-health-card .muted,html[data-theme="dark"] .ai-ask-card .muted,html[data-theme="dark"] .kb-list p{color:#cbd5e1!important}html[data-theme="dark"] .ai-quick-actions button{background:#172033!important;color:#e5e7eb!important;border-color:#334155!important}html[data-theme="dark"] .ai-health-card,html[data-theme="dark"] .ai-ask-card{background:#101827!important}html[data-theme="dark"] .ai-composer-shell textarea::placeholder,html[data-theme="dark"] .kb-float-form textarea::placeholder{color:#94a3b8}
.ai-history-table td{vertical-align:top}.ai-history-table td:nth-child(3){min-width:min(520px,55vw)}.ai-response-card{position:relative;display:grid;gap:8px;min-width:260px}.ai-response-actions{display:flex;justify-content:flex-end}.ai-copy-response{min-height:26px;padding:4px 8px;border-radius:7px;font-size:11px;font-weight:850;background:#fff;border:1px solid var(--line);color:var(--primary)}.ai-copy-response:hover,.ai-copy-response:focus-visible{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,61,54,.10)}.ai-response-body{display:grid;gap:7px;max-width:760px;line-height:1.55;color:var(--text)}.ai-response-body p{margin:0}.ai-response-body ul,.ai-response-body ol{margin:0 0 0 1.15rem;padding:0}.ai-response-body li{margin:3px 0}.kb-copy-response{display:block;width:max-content;margin:4px 0 0 4px}.kb-float-msg.is-assistant .kb-copy-response{margin-left:0}.kb-float-msg.is-user .kb-copy-response{margin-left:auto}html[data-theme="dark"] .ai-copy-response{background:#111827;border-color:#334155;color:#a7f3d0}html[data-theme="dark"] .ai-response-body{color:#f8fafc}
html[data-theme="dark"] .standard-hero:not(.has-bg),html[data-theme="dark"] .dashboard-hero:not(.has-bg){background:linear-gradient(135deg,#0f172a,#102134)!important;color:#f8fafc!important;border-color:#263244!important}html[data-theme="dark"] .standard-hero h2,html[data-theme="dark"] .dashboard-hero h2{color:#f8fafc!important}html[data-theme="dark"] .standard-hero p,html[data-theme="dark"] .dashboard-hero p{color:#cbd5e1!important}html[data-theme="dark"] .standard-hero .eyebrow,html[data-theme="dark"] .dashboard-hero .eyebrow{color:#86efac!important}html[data-theme="dark"] .standard-hero .button,html[data-theme="dark"] .dashboard-hero .button{background:#172033!important;color:#e5e7eb!important;border-color:#334155!important}html[data-theme="dark"] .standard-hero .button.primary,html[data-theme="dark"] .dashboard-hero .button.primary{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}html[data-theme="dark"] .dashboard-hero.has-bg,html[data-theme="dark"] .standard-hero.has-bg{color:#fff!important;background-size:cover!important;background-position:center!important}html[data-theme="dark"] .dashboard-hero.has-bg p,html[data-theme="dark"] .standard-hero.has-bg p,html[data-theme="dark"] .dashboard-hero.has-bg h2,html[data-theme="dark"] .standard-hero.has-bg h2{color:#fff!important}


/* uERP Build 0.6.14 - authentication polish and 2FA readability */
.auth-screen{background-color:#eef4f1!important;color:#111827!important}.auth-shell{border-radius:24px!important;background:rgba(255,255,255,.96)!important;border:1px solid rgba(203,213,225,.9)!important;box-shadow:0 28px 80px rgba(15,23,42,.16)!important}.auth-shell .auth-card{background:#fff!important;color:#111827!important;border-left:1px solid #e5e7eb!important;padding:clamp(24px,4vw,44px)!important}.auth-card,.auth-card *{text-shadow:none}.auth-card .brand strong,.auth-card h1,.auth-form-head h1{color:#0f172a!important}.auth-card .brand small,.auth-form-head p,.auth-footnote{color:#475467!important}.auth-form-head{margin:16px 0 24px}.auth-form-head h1{font-size:clamp(30px,4vw,42px)!important;line-height:1.02!important;letter-spacing:-.045em!important;margin:8px 0 8px!important}.auth-form-head p{font-size:15px;line-height:1.6;margin:0;max-width:34rem}.auth-kicker{display:inline-flex;align-items:center;gap:8px;width:max-content;border:1px solid #bbf7d0;border-radius:999px;background:#f0fdf4;color:#166534!important;font-size:11px;font-weight:950;letter-spacing:.12em;text-transform:uppercase;padding:7px 10px}.auth-kicker::before{content:"";width:7px;height:7px;border-radius:999px;background:#16a34a;box-shadow:0 0 0 5px rgba(22,163,74,.12)}.modern-auth-form{display:grid;gap:15px;margin:0}.auth-field{display:grid!important;gap:7px!important;margin:0!important;color:#344054!important;font-size:13px!important;font-weight:850!important}.auth-field span{color:#344054!important}.auth-field input{width:100%!important;min-height:46px!important;border-radius:14px!important;background:#f8fafc!important;border:1px solid #d0d5dd!important;color:#101828!important;box-shadow:0 1px 2px rgba(16,24,40,.04)!important;font-size:15px!important;padding:12px 14px!important}.auth-field input::placeholder{color:#98a2b3!important}.auth-field input:focus{background:#fff!important;border-color:var(--primary)!important;box-shadow:0 0 0 4px rgba(15,61,54,.13)!important;outline:none!important}.auth-submit{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-height:48px!important;border-radius:14px!important;margin-top:2px!important;padding:12px 15px!important;font-size:15px!important;font-weight:900!important;letter-spacing:-.01em!important;box-shadow:0 12px 24px rgba(15,61,54,.18)!important}.auth-submit strong{display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:rgba(255,255,255,.18);color:#fff}.auth-footnote{margin:16px 0 0;font-size:12px;line-height:1.55}.auth-card .captcha-box,.auth-card .g-recaptcha{max-width:100%;overflow:hidden}.two-factor-form .auth-code-input{text-align:center!important;letter-spacing:.36em!important;font-size:26px!important;font-weight:950!important;font-variant-numeric:tabular-nums!important;padding-left:calc(14px + .36em)!important}.auth-brand-panel{position:relative}.auth-brand-panel::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,0));pointer-events:none}.auth-brand-panel > *{position:relative;z-index:1}
html[data-theme="dark"] .auth-screen{background-color:#020617!important;color:#f8fafc!important}html[data-theme="dark"] .auth-shell{background:rgba(15,23,42,.95)!important;border-color:#263244!important;box-shadow:0 28px 80px rgba(0,0,0,.35)!important}html[data-theme="dark"] .auth-shell .auth-card{background:#0f172a!important;color:#f8fafc!important;border-left-color:#263244!important}html[data-theme="dark"] .auth-card .brand strong,html[data-theme="dark"] .auth-card h1,html[data-theme="dark"] .auth-form-head h1{color:#f8fafc!important}html[data-theme="dark"] .auth-card .brand small,html[data-theme="dark"] .auth-form-head p,html[data-theme="dark"] .auth-footnote{color:#cbd5e1!important}html[data-theme="dark"] .auth-kicker{background:rgba(22,163,74,.14)!important;border-color:rgba(134,239,172,.26)!important;color:#bbf7d0!important}html[data-theme="dark"] .auth-field,html[data-theme="dark"] .auth-field span{color:#e5e7eb!important}html[data-theme="dark"] .auth-field input{background:#111827!important;border-color:#334155!important;color:#f8fafc!important;box-shadow:none!important}html[data-theme="dark"] .auth-field input::placeholder{color:#64748b!important}html[data-theme="dark"] .auth-field input:focus{background:#0b1220!important;border-color:#86efac!important;box-shadow:0 0 0 4px rgba(134,239,172,.13)!important}html[data-theme="dark"] .auth-submit strong{background:rgba(255,255,255,.16)}
@media(max-width:980px){.auth-shell{grid-template-columns:1fr!important;width:min(96vw,780px)!important}.auth-shell .auth-card{border-left:0!important;border-top:1px solid #e5e7eb!important}.auth-brand-panel{min-height:230px!important}.auth-form-head{margin-top:8px}.auth-form-head h1{font-size:34px!important}html[data-theme="dark"] .auth-shell .auth-card{border-top-color:#263244!important}}
@media(max-width:640px){.auth-screen{padding:10px!important;background-attachment:scroll!important}.auth-shell{border-radius:18px!important;width:100%!important}.auth-shell .auth-card{padding:20px!important}.auth-brand-panel{min-height:180px!important;padding:22px!important}.auth-brand-panel h1{font-size:32px!important}.auth-brand-points{display:none!important}.auth-form-head h1{font-size:30px!important}.auth-field input{min-height:44px!important;border-radius:12px!important}.auth-submit{min-height:46px!important;border-radius:12px!important}.two-factor-form .auth-code-input{font-size:23px!important;letter-spacing:.28em!important}}

/* uERP Build 0.6.17 - sidebar navigation search and scroll restoration */
.nav-search{position:sticky;top:84px;z-index:3;margin:-6px 0 12px;padding:0 2px 10px;background:linear-gradient(180deg,rgba(15,23,42,.96),rgba(15,23,42,.88) 78%,rgba(15,23,42,0))}
.nav-search input{width:100%;min-height:40px;margin:0;border-radius:13px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);color:#fff;padding:9px 12px;font-size:13px;font-weight:800;box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.nav-search input::placeholder{color:#94a3b8}.nav-search input:focus{outline:none;border-color:rgba(var(--accent-rgb,22,163,74),.55);background:rgba(15,23,42,.96);box-shadow:0 0 0 3px rgba(var(--accent-rgb,22,163,74),.18)}
.nav-list a[hidden],.nav-group[hidden]{display:none!important}
html[data-theme="dark"] .nav-search{background:linear-gradient(180deg,rgba(5,8,22,.97),rgba(5,8,22,.9) 78%,rgba(5,8,22,0))}
@media(max-width:980px){.nav-search{position:relative;top:auto;margin:0 0 12px;padding-bottom:0;background:transparent}.nav-search input{min-height:42px}}

/* uERP Build 0.6.18 - global content search */
.topbar{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(220px,340px) auto!important;gap:14px!important}
.topbar-title{min-width:0}.global-search{display:flex;align-items:center;gap:7px;width:min(100%,340px);justify-self:end;margin:0}.global-search input{width:100%;min-width:0;min-height:40px;margin:0;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--text);padding:9px 14px;font-size:13px;font-weight:750;box-shadow:0 8px 18px rgba(15,23,42,.05)}.global-search input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 4px rgba(15,61,54,.12)}.global-search button{min-height:40px;border-radius:999px;padding:9px 13px}.global-search-large{display:flex;gap:8px;align-items:center;max-width:760px}.global-search-large input{flex:1;min-width:220px}.global-search-page{display:grid;gap:10px}
html[data-theme="dark"] .global-search input{background:#111827;border-color:#334155;color:#f8fafc;box-shadow:none}
@media(max-width:1180px){.topbar{grid-template-columns:1fr!important}.global-search{order:2;width:100%;max-width:none;justify-self:stretch}.top-actions{order:3}.topbar-title{order:1}.global-search input{max-width:none}.global-search-large{align-items:stretch;flex-direction:column}.global-search-large input{min-width:0;width:100%}}

/* uERP Build 0.6.19 - compact topbar titles beside global search */
.topbar h1{font-size:clamp(20px,1.7vw,28px)!important;line-height:1.08!important;letter-spacing:-.025em!important;overflow-wrap:anywhere}
@media(max-width:640px){.topbar h1{font-size:24px!important;line-height:1.12!important}}

/* uERP Build 0.6.20 - compact global search width */
@media(min-width:1181px){.global-search{max-width:340px}.global-search input{max-width:240px}}

/* uERP Build 0.6.21 - typography setting and refreshed upload controls */
@media(max-width:560px){.file-drop{grid-template-columns:auto minmax(0,1fr);align-items:start}.file-drop-cta{grid-column:1 / -1;width:100%}}

/* uERP Build 0.6.15 - compact table checkbox polish */
table input[type="checkbox"],
table input[type="radio"],
.table-wrap input[type="checkbox"],
.table-wrap input[type="radio"]{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  min-height:14px!important;
  max-width:14px!important;
  max-height:14px!important;
  flex:0 0 14px!important;
  margin:0!important;
  padding:0!important;
  border-radius:3px!important;
  vertical-align:middle!important;
  accent-color:var(--primary);
  box-shadow:none!important;
}
table input[type="checkbox"]:focus,
table input[type="radio"]:focus,
.table-wrap input[type="checkbox"]:focus,
.table-wrap input[type="radio"]:focus{
  outline:2px solid var(--focus)!important;
  outline-offset:1px!important;
}
table input[type="checkbox"]:disabled,
table input[type="radio"]:disabled{
  opacity:.45;
  cursor:not-allowed;
}
th:has(> input[type="checkbox"]),
th:has(> input[type="radio"]),
td:has(> input[type="checkbox"]),
td:has(> input[type="radio"]){
  width:32px!important;
  min-width:32px!important;
  max-width:38px!important;
  text-align:center!important;
  padding:4px 5px!important;
  vertical-align:middle!important;
}
td .check,
table .check{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  margin:0!important;
  min-height:0!important;
  line-height:1.15!important;
  font-size:11.5px!important;
  font-weight:750!important;
  white-space:nowrap;
}
td .check input[type="checkbox"],
td .check input[type="radio"],
table .check input[type="checkbox"],
table .check input[type="radio"]{
  margin-top:0!important;
}
@media(max-width:640px){
  table input[type="checkbox"],
  table input[type="radio"],
  .table-wrap input[type="checkbox"],
  .table-wrap input[type="radio"]{
    width:13px!important;
    height:13px!important;
    min-width:13px!important;
    min-height:13px!important;
    max-width:13px!important;
    max-height:13px!important;
    flex-basis:13px!important;
  }
  th:has(> input[type="checkbox"]),
  th:has(> input[type="radio"]),
  td:has(> input[type="checkbox"]),
  td:has(> input[type="radio"]){
    width:28px!important;
    min-width:28px!important;
    max-width:32px!important;
    padding:4px!important;
  }
}

/* uERP 0.6.26 go-live UX fixes */
.nav-search input,
.nav-search input[type="search"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(var(--primary-rgb,15,61,54), 0.22);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  color: #17201b;
  caret-color: var(--primary);
  outline: none;
  box-shadow: none;
}
.nav-search input::placeholder { color: rgba(23,32,27,0.58); }
.nav-search input:focus {
  background: #fff;
  color: #17201b;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb,22,163,74),0.16);
}
html[data-theme="dark"] .nav-search input,
body.theme-dark .nav-search input,
html[data-theme="dark"] .nav-search input[type="search"],
body.theme-dark .nav-search input[type="search"] {
  background: rgba(255,255,255,0.08);
  color: #f7faf8;
  border-color: rgba(255,255,255,0.24);
  caret-color: #f7faf8;
}
html[data-theme="dark"] .nav-search input::placeholder,
body.theme-dark .nav-search input::placeholder { color: rgba(247,250,248,0.66); }
html[data-theme="dark"] .nav-search input:focus,
body.theme-dark .nav-search input:focus {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.row-actions,
.actions-inline,
.sticky-actions,
.bulk-actions,
.search-form,
.list-controls { gap: .45rem; flex-wrap: wrap; align-items: center; }
.row-actions .button,
.row-actions button,
.actions-inline .button,
.actions-inline button,
.sticky-actions .button,
.sticky-actions button { width: auto; max-width: 240px; min-height: 36px; }
.action-panel summary.button { display: inline-flex; width: auto; }
.system-footer {
  margin: 2rem 0 0;
  padding: .95rem 1.15rem;
  border: 1px solid rgba(15, 61, 54, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(248,250,252,.74));
  color: rgba(23,32,27,0.78);
  font-size: .86rem;
  line-height: 1.55;
  text-align: center;
  box-shadow: 0 8px 22px rgba(15,23,42,.04);
}
.system-footer p { margin: 0; display: inline; }
.system-footer strong { color: var(--primary); font-weight: 950; }
.system-footer span { margin: 0 .55rem; color: rgba(15,61,54,.42); }
.system-footer a { color: inherit; font-weight: 850; text-decoration: underline; text-underline-offset: 2px; }
html[data-theme="dark"] .system-footer,
body.theme-dark .system-footer { border-color: rgba(255,255,255,0.16); background: rgba(15,23,42,.72); color: rgba(247,250,248,0.78); }
html[data-theme="dark"] .system-footer span,
body.theme-dark .system-footer span { color: rgba(247,250,248,.42); }
.table-action-stack{display:flex;gap:.45rem;flex-wrap:wrap;align-items:center}.table-action-stack form{margin:0}.table-action-stack input[type=password]{max-width:190px}.table-action-stack button{white-space:nowrap}.button.compact,button.compact{padding-inline:10px;min-height:34px;max-width:max-content}

/* uERP Build 0.6.35 - Activity log email details table */
.activity-detail-table{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;margin:0}
.activity-detail-table th,.activity-detail-table td{padding:6px 8px!important;border-bottom:1px solid var(--line);font-size:12px;line-height:1.35;vertical-align:top;background:transparent}
.activity-detail-table th{width:110px;text-align:left;color:var(--muted);background:#f8fafc;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.activity-detail-table tr:last-child th,.activity-detail-table tr:last-child td{border-bottom:0}
.activity-detail-table tr:hover th,.activity-detail-table tr:hover td{background:inherit}
.activity-detail-table .activity-error{display:block;max-width:520px;white-space:pre-wrap;word-break:break-word;color:#b42318;font-weight:700}
html[data-theme="dark"] .activity-detail-table{background:#111827;border-color:#334155}
html[data-theme="dark"] .activity-detail-table th{background:#0f172a;color:#94a3b8}
html[data-theme="dark"] .activity-detail-table .activity-error{color:#fecaca}

/* uERP Build 0.6.35 - redesigned Activity Logs dashboard */
.activity-page{display:grid;gap:16px}
.activity-hero{display:grid;gap:18px}
.activity-hero h2{margin:0 0 6px;color:var(--primary);font-size:30px}
.activity-hero-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.activity-metric{border:1px solid var(--line);border-radius:14px;padding:14px;background:linear-gradient(180deg,#fff,#f8fafc)}
.activity-metric span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;font-weight:900;letter-spacing:.06em}
.activity-metric strong{display:block;font-size:26px;line-height:1.1;color:var(--primary);margin:5px 0}
.activity-metric small{display:block;color:var(--muted);font-weight:700}
.activity-filter-form{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(2,minmax(140px,.6fr)) minmax(180px,.8fr) minmax(100px,.45fr) auto;gap:10px;align-items:end;border-top:1px solid var(--line);padding-top:14px}
.activity-filter-form label{margin:0}
.activity-filter-form input,.activity-filter-form select{margin-top:6px;width:100%}
.activity-filter-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding-bottom:0}
.activity-scope-bar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.activity-scope-link{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none;color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px 14px;box-shadow:0 8px 18px rgba(16,24,40,.05);font-weight:900}
.activity-scope-link span{font-size:13px;color:var(--muted)}
.activity-scope-link strong{display:inline-grid;place-items:center;min-width:36px;height:28px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:13px}
.activity-scope-link.active{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,61,54,.10)}
.activity-scope-link.active span{color:var(--primary)}
.activity-section .list-toolbar{align-items:flex-start}
.activity-section .list-toolbar h2{margin:0 0 3px}
.activity-email-table th,.activity-general-table th{white-space:nowrap}
.activity-email-table td,.activity-general-table td{vertical-align:top}
.activity-email-table .activity-subject{min-width:220px;max-width:360px;word-break:break-word}
.activity-error-cell{max-width:260px;word-break:break-word}
.activity-email-row.bad td{background:rgba(180,35,24,.025)}
.activity-email-row.ok td{background:rgba(2,122,72,.018)}
.activity-when{font-weight:850;white-space:nowrap;color:#344054}
.activity-action{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:850;color:var(--primary);word-break:break-word}
.activity-details{min-width:148px}
.activity-details summary{cursor:pointer;color:var(--primary);font-weight:900;list-style:none;white-space:nowrap}
.activity-details summary::-webkit-details-marker{display:none}
.activity-details summary::after{content:'+';display:inline-grid;place-items:center;width:18px;height:18px;margin-left:6px;border-radius:999px;border:1px solid currentColor;font-size:12px;line-height:1}
.activity-details[open] summary{margin-bottom:8px}
.activity-details[open] summary::after{content:'-'}
.activity-raw-details{display:block;max-width:580px;white-space:pre-wrap;background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:8px;color:#344054}
.activity-maintenance{margin-top:0}
.activity-maintenance details>summary{cursor:pointer;color:var(--primary)}
.activity-clear-form{margin-top:12px}
@media (max-width: 1180px){.activity-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-filter-actions{grid-column:1/-1}.activity-scope-bar,.activity-hero-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 720px){.activity-filter-form,.activity-scope-bar,.activity-hero-stats{grid-template-columns:1fr}.activity-scope-link{align-items:flex-start}.activity-when{white-space:normal}.activity-email-table .activity-subject{min-width:180px}}
html[data-theme="dark"] .activity-metric{background:linear-gradient(180deg,#111827,#0f172a);border-color:#334155}
html[data-theme="dark"] .activity-scope-link{background:#111827;border-color:#334155;color:#f8fafc}
html[data-theme="dark"] .activity-scope-link strong{background:#172554;color:#bfdbfe}
html[data-theme="dark"] .activity-email-row.bad td{background:rgba(248,113,113,.06)}
html[data-theme="dark"] .activity-email-row.ok td{background:rgba(52,211,153,.05)}
html[data-theme="dark"] .activity-when{color:#cbd5e1}
html[data-theme="dark"] .activity-action{color:#a7f3d0}
html[data-theme="dark"] .activity-raw-details{background:#0f172a;border-color:#334155;color:#cbd5e1}

/* uERP Build 0.6.35 - system-wide table and action consistency pass */
table{border:1px solid var(--line)!important;border-radius:8px!important;overflow:hidden!important;background:var(--panel)!important;border-collapse:collapse!important;font-size:14px!important;box-shadow:none!important}
thead th,th{background:#f8fafc!important;color:#475467!important;font-size:12px!important;letter-spacing:0!important;text-transform:uppercase!important;font-weight:700!important;padding:8px 10px!important}
td,th{padding:8px 10px!important;border-bottom:1px solid var(--line)!important;vertical-align:top!important;text-align:left!important}
tr:hover td{background:rgba(16,24,40,.02)!important}
table td strong,table td b,table td .record-title,table td .activity-action,table td code{font-weight:400!important}
table td .record-sub{font-weight:400!important}
button,.button{border-radius:8px!important;min-height:36px!important;padding:8px 12px!important;font-size:13px!important;font-weight:700!important;box-shadow:none!important;background:#eef2f6!important;transform:none!important;width:auto!important;max-width:max-content!important;white-space:nowrap!important}
button:hover,.button:hover{transform:none!important;box-shadow:none!important;filter:brightness(.98)!important}
button.primary,.button.primary,.primary{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}
button.danger,.button.danger,.danger{background:var(--danger)!important;color:#fff!important;border-color:var(--danger)!important}
.actions,.actions-inline,.row-actions,.top-actions,.sticky-actions,.search-form,.list-controls,.bulk-actions,.executive-actions{display:flex!important;flex-direction:row!important;gap:8px!important;align-items:center!important;flex-wrap:wrap!important}
.actions form,.actions-inline form,.row-actions form,.table-action-stack form{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important;margin:0!important}
.card form.grid button:not(.auth-submit),.card form.grid .button{justify-self:start!important;width:auto!important;max-width:max-content!important}
.action-panel summary.button{display:inline-flex!important;width:auto!important;max-width:max-content!important}
.activity-detail-table{border:1px solid var(--line)!important;border-radius:8px!important;background:#fff!important;box-shadow:none!important}
.activity-detail-table th,.activity-detail-table td{padding:6px 8px!important;font-size:12px!important;line-height:1.35!important;background:transparent!important}
.activity-detail-table th{width:110px!important;color:var(--muted)!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;background:#f8fafc!important}
.activity-details summary,.ticket-notes summary{font-weight:600!important}
.ticket-note-list article strong{font-weight:400!important;text-transform:none!important;letter-spacing:0!important;color:var(--text)!important;font-size:12px!important}
html[data-theme="dark"] table{background:#111827!important;border-color:#334155!important}
html[data-theme="dark"] thead th,html[data-theme="dark"] th{background:#0f172a!important;color:#cbd5e1!important}
html[data-theme="dark"] tr:hover td{background:rgba(255,255,255,.03)!important}
html[data-theme="dark"] button,html[data-theme="dark"] .button{background:#1f2937!important;color:#e5e7eb!important;border-color:#334155!important}
html[data-theme="dark"] button.primary,html[data-theme="dark"] .button.primary,html[data-theme="dark"] .primary{background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important}

/* uERP Build 0.6.35 - consistency pass for table actions, reports tabs, and compact login */
.table-wrap, .card > table { overflow-x:auto; }
table { border:1px solid var(--line)!important; border-radius:8px; border-collapse:collapse!important; box-shadow:none!important; }
thead th { background:#f8fafc!important; color:#475467!important; font-weight:750!important; }
th, td { padding:8px 10px!important; vertical-align:top!important; }
table .record-title, table strong { font-weight:400!important; }
.record-title { font-weight:400!important; }
.row-actions { display:flex!important; align-items:center!important; gap:6px!important; flex-wrap:nowrap!important; white-space:nowrap!important; }
.row-actions form { display:inline-flex!important; margin:0!important; }
button, .button { width:auto!important; max-width:max-content; min-height:34px!important; padding:7px 10px!important; border-radius:7px!important; font-weight:750!important; line-height:1.15!important; white-space:nowrap!important; box-shadow:none!important; }
.search-form button, .search-form .button, .bulk-actions button, .bulk-actions .button, .toolbar-actions .button { min-height:34px!important; }
.auth-submit { max-width:none!important; }
.actions { display:flex!important; align-items:center!important; gap:8px!important; flex-wrap:wrap!important; }
.inline-management-card { border:1px solid var(--line)!important; background:var(--panel)!important; box-shadow:0 5px 14px rgba(16,24,40,.04)!important; }
.inline-management-card h2, .inline-management-card h3 { margin:0 0 6px!important; }
.inline-management-card .list-toolbar { border-bottom:1px solid var(--line); padding-bottom:12px; margin-bottom:14px; }
.spacious-edit { grid-template-columns:repeat(3,minmax(170px,1fr))!important; align-items:end; background:#f8fafc!important; }
.spacious-edit textarea { min-height:96px; }
.flat-card { box-shadow:none!important; margin-bottom:12px!important; }
.compact-form { display:grid; gap:10px; }
.compact-form label { margin-bottom:0; }
.recent-note-list { margin-top:14px; }
.report-tabs { display:flex!important; gap:6px!important; flex-wrap:wrap!important; margin:0 0 14px!important; }
.report-tabs .button { background:#eef2f6!important; border-color:var(--line)!important; color:#111827!important; }
.report-tabs .button.active, html[data-theme="light"] .report-tabs .button.active, html[data-theme="dark"] .report-tabs .button.active { background:var(--primary)!important; border-color:var(--primary)!important; color:#fff!important; }
html[data-theme="dark"] thead th { background:#111827!important; color:#cbd5e1!important; }
html[data-theme="dark"] .inline-management-card, html[data-theme="dark"] .flat-card { background:#111827!important; border-color:#334155!important; }
html[data-theme="dark"] .spacious-edit { background:#0f172a!important; border-color:#334155!important; }
html[data-theme="dark"] .report-tabs .button { background:#111827!important; border-color:#334155!important; color:#f8fafc!important; }
.auth-screen { min-height:100vh!important; display:flex!important; align-items:center!important; justify-content:center!important; padding:clamp(16px,3vw,32px)!important; background-size:cover!important; background-position:center!important; }
.auth-shell { width:min(920px,94vw)!important; min-height:auto!important; grid-template-columns:minmax(280px,.85fr) minmax(320px,420px)!important; border-radius:18px!important; background:rgba(255,255,255,.88)!important; backdrop-filter:blur(10px)!important; box-shadow:0 18px 54px rgba(15,23,42,.18)!important; }
.auth-brand-panel { min-height:430px!important; padding:26px!important; justify-content:flex-end!important; }
.auth-brand-panel h1 { font-size:clamp(30px,4vw,46px)!important; line-height:1.02!important; }
.auth-brand-panel p { font-size:14px!important; line-height:1.5!important; }
.auth-brand-points { gap:6px!important; margin-top:12px!important; }
.auth-brand-points span { padding:6px 9px!important; font-size:11px!important; }
.auth-shell .auth-card { padding:26px!important; }
.auth-form-head { margin:8px 0 16px!important; }
.auth-form-head h1 { font-size:28px!important; line-height:1.1!important; margin:6px 0!important; }
.auth-form-head p { font-size:13px!important; line-height:1.45!important; }
.auth-field input { min-height:42px!important; border-radius:10px!important; padding:10px 12px!important; }
.auth-submit { min-height:42px!important; border-radius:10px!important; padding:10px 12px!important; }
.auth-footnote { margin-top:12px!important; }
.auth-panel-logo { width:54px!important; height:54px!important; border-radius:12px!important; }
.auth-logo { width:42px!important; height:42px!important; }
html[data-theme="dark"] .auth-shell { background:rgba(15,23,42,.88)!important; border-color:#334155!important; }
@media(max-width:900px){ .spacious-edit{grid-template-columns:1fr!important}.row-actions{flex-wrap:wrap!important}.auth-shell{grid-template-columns:1fr!important;width:min(520px,96vw)!important}.auth-brand-panel{min-height:180px!important}.auth-brand-points{display:none!important}.auth-shell .auth-card{border-left:0!important;border-top:1px solid var(--line)!important} }
@media(max-width:640px){ button,.button{min-height:32px!important;padding:7px 9px!important}.auth-screen{padding:10px!important}.auth-brand-panel{min-height:180px!important}.auth-shell{width:min(420px,96vw)!important}.auth-shell .auth-card{padding:20px!important}.auth-form-head h1{font-size:25px!important} }

/* uPharma Cloud 1.1.0 - Rosipac pharmacy gap closure */
.print-body{background:#fff!important;color:#111827!important;margin:0!important;padding:0!important}
.label-sheet{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px;max-width:960px;margin:0 auto}
.stock-label{border:1px dashed #111827;border-radius:8px;padding:10px;min-height:112px;display:flex;flex-direction:column;gap:3px;font-size:12px;break-inside:avoid;background:#fff;color:#111827}
.stock-label strong{font-size:14px;font-weight:800!important}.stock-label span,.stock-label small{display:block}.cash-drawer-kick{max-width:360px;margin:24px auto;border:1px solid #111827;padding:16px;text-align:center;background:#fff;color:#111827}.cash-drawer-kick p:last-child{font-family:monospace;font-size:9px;color:#fff}
.pos-search{margin-bottom:6px}.compact-metrics .metric{min-width:160px}.table-action-stack{display:flex;gap:6px;flex-wrap:wrap;align-items:flex-start}.table-action-stack form{margin:0}.actions-inline{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.actions-inline input,.actions-inline select{max-width:160px}.inline-form{display:inline-flex;margin:0}

/* uPharma Cloud 1.1.19 - standard professional full-screen POS workspace */
.pos-fullscreen-body{--pos-bg:#f3f4f6;--pos-card:#ffffff;--pos-soft:#f8fafc;--pos-ink:#111827;--pos-muted:#667085;--pos-line:#d7dde5;--pos-accent:#2563eb;--pos-accent-dark:#1d4ed8;--pos-success:#059669;--pos-danger:#b42318;margin:0;min-height:100vh;overflow-x:hidden;background:var(--pos-bg);color:var(--pos-ink);font-family:var(--app-font-family)}
.pos-ambient{display:none!important}.pos-fullscreen-shell{min-height:100vh;padding:16px;display:grid;grid-template-rows:auto 1fr;gap:14px}.pos-fullscreen-header{display:grid;grid-template-columns:minmax(250px,.8fr) minmax(460px,1.15fr) auto;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--pos-line);border-radius:10px;background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.06)}
.pos-brand{display:flex;align-items:center;gap:12px;min-width:0}.pos-brand-logo{width:124px;height:58px;object-fit:contain;object-position:left center;border:1px solid #e5e7eb;border-radius:8px;background:#fff;padding:6px}.pos-brand-mark{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:8px;background:#eef2ff;color:var(--pos-accent);font-weight:900;font-size:25px}.pos-title-lockup{min-width:0}.pos-title-lockup p{margin:0 0 2px;color:#475467;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.pos-title-lockup h1{margin:0;color:#101828;font-size:22px;line-height:1.12;letter-spacing:-.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-title-lockup small{display:block;margin-top:3px;color:var(--pos-muted);font-size:12px}
.pos-operator-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pos-operator-strip article{min-width:0;padding:9px 10px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb}.pos-operator-strip span{display:block;color:#667085;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.pos-operator-strip strong{display:block;margin-top:3px;color:#101828;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-fullscreen-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pos-fullscreen-body .button,.pos-fullscreen-body button{border-radius:8px!important;box-shadow:none!important;transition:background-color .12s ease,border-color .12s ease}.pos-fullscreen-body .button:hover,.pos-fullscreen-body button:hover{filter:brightness(.98)}.pos-fullscreen-actions .button{border-color:#d0d5dd!important;background:#fff!important;color:#344054!important;padding:9px 12px!important}.pos-fullscreen-actions .button.primary{border-color:var(--pos-accent)!important;background:var(--pos-accent)!important;color:#fff!important}
.pos-fullscreen-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}.pos-checkout-panel,.pos-side-panel{border:1px solid var(--pos-line);border-radius:10px;background:#fff;color:var(--pos-ink);box-shadow:0 8px 24px rgba(16,24,40,.05)}.pos-checkout-panel{padding:16px}.pos-side-panel{padding:14px;display:grid;gap:14px;align-content:start}
.pos-command-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #e5e7eb}.pos-command-bar h2{margin:2px 0 5px;color:#101828;font-size:28px;letter-spacing:-.03em;line-height:1.1}.pos-command-bar p{margin:0;color:var(--pos-muted);max-width:760px;line-height:1.45}.pos-command-bar .eyebrow,.pos-card-head .eyebrow,.pos-shift-card .eyebrow{color:#475467}.pos-command-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pos-command-actions .button{border:1px solid #d0d5dd!important;background:#fff!important;color:#344054!important}.pos-command-actions .button.primary,.pos-command-actions .button:last-child{border-color:var(--pos-accent)!important;background:var(--pos-accent)!important;color:#fff!important}
.pos-kpi-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 14px}.pos-kpi-row article{padding:10px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb}.pos-kpi-row span{display:block;color:#667085;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.pos-kpi-row strong{display:block;margin:4px 0 2px;color:#101828;font-size:15px}.pos-kpi-row small{color:#667085;font-size:12px}
.pos-scan-zone{display:grid!important;grid-template-columns:60px minmax(0,1fr);gap:12px;margin:0 0 14px!important;padding:12px;border:1px solid #cbd5e1;border-left:4px solid var(--pos-accent);border-radius:10px;background:#fff;box-shadow:0 4px 12px rgba(16,24,40,.04)}.pos-scan-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:8px;background:#eef4ff;color:var(--pos-accent-dark);font-size:12px;font-weight:900;text-transform:uppercase}.pos-scan-zone label{margin:0;color:#344054}.pos-scan-zone span{display:block;color:#475467;font-size:11px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.pos-scan-zone strong{display:block;margin:1px 0 7px;color:#101828;font-size:17px}.pos-scan-zone small{display:block;color:#667085;font-size:12px}.pos-fullscreen-body #posBarcode{min-height:52px;border:1px solid #98a2b3;border-radius:8px;background:#fff;color:#101828;font-size:18px;font-weight:750;letter-spacing:.01em;padding:12px 14px;margin:0 0 6px;box-shadow:none}.pos-fullscreen-body #posBarcode:focus{outline:3px solid rgba(37,99,235,.18);border-color:var(--pos-accent)}
.pos-sale-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,410px);gap:14px;align-items:start}.pos-sale-card,.pos-payment-card{border:1px solid var(--pos-line);border-radius:10px;background:#fff;box-shadow:none}.pos-sale-card{padding:12px}.pos-payment-card{position:sticky;top:14px;padding:14px;display:grid;gap:12px;background:#fff}.pos-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #e5e7eb}.pos-card-head h3{margin:0;color:#101828;font-size:21px;letter-spacing:-.02em}.pos-card-head span{align-self:center;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-size:12px;font-weight:850}
.pos-sale-lines{display:grid;gap:8px;max-height:calc(100vh - 470px);min-height:310px;overflow:auto;padding-right:3px;scrollbar-width:thin}.pos-line-card{display:grid;grid-template-columns:54px minmax(260px,1fr) 88px 96px 36px;align-items:end;gap:9px;padding:10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff}.pos-line-card:hover{border-color:#cbd5e1;background:#f9fafb}.pos-line-card.is-filled{border-color:#93c5fd;background:#f8fbff}.pos-line-index{display:grid;justify-items:center;gap:3px;align-self:stretch;align-content:center}.pos-line-no{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;background:#f2f4f7;color:#344054;font-weight:900}.pos-line-index small{color:#667085;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.pos-line-main{display:grid;grid-template-columns:minmax(160px,.72fr) minmax(200px,1fr);align-items:end;gap:9px;min-width:0}.pos-line-card label{margin:0;min-width:0;color:#344054;font-size:12px;font-weight:750}.pos-line-card .pos-search,.pos-line-card .pos-medicine,.pos-line-card input{width:100%;min-height:40px;border-radius:8px}.pos-line-card .pos-search{background:#f9fafb}.pos-line-card .pos-medicine{font-weight:750;color:#111827}.pos-qty input,.pos-discount input{text-align:center;font-weight:800}.pos-remove-line{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border-radius:8px!important;border:1px solid #f4b7b2!important;background:#fff!important;color:var(--pos-danger)!important;font-size:20px!important;line-height:1!important;box-shadow:none!important}.pos-basket-hint{margin:10px 2px 0;color:#667085;font-size:12px}.pos-basket-hint strong{color:#344054}
.pos-total-display{padding:14px;border-radius:10px;background:#111827;color:#fff;box-shadow:none}.pos-total-display span{display:block;color:#cbd5e1;font-size:11px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.pos-total-display strong{display:block;margin:5px 0;font-size:clamp(31px,3.2vw,46px);letter-spacing:-.045em;line-height:1}.pos-total-display small{color:#d0d5dd}.pos-payment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.pos-payment-grid .span{grid-column:1/-1}.pos-payment-card label{margin:0;color:#344054;font-weight:750}.pos-payment-card input,.pos-payment-card select{min-height:40px;border-radius:8px}.pos-offline-note{margin:0;padding:10px 11px;border:1px solid #e5e7eb;border-radius:8px;background:#f9fafb;color:#667085;font-size:12px;line-height:1.45}.is-offline-pos .pos-offline-note{border-color:rgba(181,71,8,.35);background:#fffbeb;color:#92400e}.pos-fullscreen-body .pos-complete-sale{width:100%!important;max-width:none!important;min-height:58px!important;margin-top:0!important;border:0!important;border-radius:8px!important;background:var(--pos-accent)!important;color:#fff!important;font-size:17px!important;letter-spacing:0;box-shadow:none!important}
.pos-fullscreen-body input,.pos-fullscreen-body select,.pos-fullscreen-body textarea{border-color:#cbd5e1;background:#fff;color:#111827}.pos-fullscreen-body input:focus,.pos-fullscreen-body select:focus,.pos-fullscreen-body textarea:focus{outline:3px solid rgba(37,99,235,.16);border-color:var(--pos-accent)}.pos-fullscreen-body .muted{color:#667085}.pos-help-card{padding:14px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#101828;box-shadow:none}.pos-shift-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.pos-live-dot{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#ecfdf3;color:#047857;font-size:11px;font-weight:850;text-transform:uppercase}.pos-live-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--pos-success)}.pos-help-card h2{margin:0 0 12px;color:#101828;font-size:20px;letter-spacing:-.02em}.pos-help-card dl{margin:0;display:grid;grid-template-columns:82px 1fr;gap:8px 10px}.pos-help-card dt{color:#667085;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.pos-help-card dd{margin:0;color:#101828;font-weight:750;min-width:0;overflow:hidden;text-overflow:ellipsis}.pos-guide-list{display:grid;gap:8px;margin-top:14px}.pos-guide-list p{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;margin:0;color:#475467;font-size:13px;line-height:1.42}.pos-guide-list span{width:24px;height:24px;display:grid;place-items:center;border-radius:999px;background:#eef2ff;color:#1d4ed8;font-weight:900;font-size:12px}.pos-fullscreen-body .pos-return-card{margin:0;box-shadow:none;border:1px solid #e5e7eb;background:#fff;border-radius:10px;padding:14px}.pos-fullscreen-body .pos-return-card h2{margin:0 0 8px;color:#101828;letter-spacing:-.02em;font-size:20px}.pos-fullscreen-body .pos-return-card p{color:#667085}.pos-fullscreen-body .pos-return-card .danger{width:100%;border-radius:8px!important;background:var(--pos-danger)!important;color:#fff!important;border-color:var(--pos-danger)!important}
@media(max-width:1380px){.pos-fullscreen-header{grid-template-columns:1fr}.pos-fullscreen-actions{justify-content:flex-start}.pos-operator-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.pos-sale-layout{grid-template-columns:1fr}.pos-payment-card{position:static}.pos-sale-lines{max-height:none}.pos-fullscreen-grid{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1120px){.pos-fullscreen-grid{grid-template-columns:1fr}.pos-side-panel{grid-template-columns:1fr 1fr}.pos-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-line-card{grid-template-columns:50px minmax(0,1fr) 84px 92px 36px}.pos-line-main{grid-template-columns:1fr}}
@media(max-width:780px){.pos-fullscreen-shell{padding:10px}.pos-fullscreen-header,.pos-checkout-panel,.pos-side-panel{border-radius:8px}.pos-operator-strip{grid-template-columns:1fr 1fr}.pos-side-panel{grid-template-columns:1fr}.pos-command-bar{grid-template-columns:1fr}.pos-command-actions{justify-content:flex-start}.pos-command-actions .button,.pos-fullscreen-actions .button{flex:1;max-width:none!important;text-align:center}.pos-kpi-row{grid-template-columns:1fr}.pos-scan-zone{grid-template-columns:1fr}.pos-scan-icon{width:auto;height:36px;justify-content:start;padding:0 10px}.pos-line-card{grid-template-columns:1fr 1fr}.pos-line-index{grid-column:1/-1;display:flex;justify-content:flex-start}.pos-line-main{grid-column:1/-1}.pos-remove-line{justify-self:end}.pos-payment-grid{grid-template-columns:1fr}.pos-title-lockup h1{white-space:normal}.pos-brand-logo{width:108px;height:54px}.pos-total-display strong{font-size:34px}}
@media(max-width:520px){.pos-line-card{grid-template-columns:1fr}.pos-remove-line{justify-self:stretch;width:100%!important}.pos-fullscreen-body #posBarcode{font-size:16px;min-height:50px}.pos-command-bar h2{font-size:26px}.pos-payment-card,.pos-sale-card,.pos-scan-zone{border-radius:8px}.pos-operator-strip{grid-template-columns:1fr}}



/* uPharma Cloud 1.1.10 - rectangular logo support */
.brand-logo{width:104px!important;height:46px!important;max-width:48%;object-fit:contain;object-position:left center;padding:5px 7px!important;border-radius:12px!important;background:rgba(255,255,255,.96)}
.brand:has(.brand-logo){gap:12px}.brand:has(.brand-logo) > div{min-width:0}
.auth-panel-logo{width:min(220px,70%)!important;height:74px!important;max-width:100%;object-fit:contain;object-position:left center;padding:8px 10px!important;border-radius:14px!important}
.auth-logo{width:min(160px,48vw)!important;height:54px!important;max-width:100%;object-fit:contain;object-position:center;padding:4px 8px}
.invoice-logo{width:150px!important;height:74px!important;max-width:38vw;object-fit:contain;object-position:left center;padding:6px 8px!important;border-radius:10px!important}
.print-invoice-head{padding-left:168px!important;min-height:96px}.print-company img{width:146px!important;height:72px!important;top:8px!important;object-fit:contain;object-position:left center}
.report-print-brand img{width:150px!important;height:72px!important;max-width:38vw;object-fit:contain;object-position:left center}
.asset-card img{object-position:center!important}
@media(max-width:900px){.brand-logo{width:94px!important;height:42px!important}.auth-panel-logo{width:min(190px,72%)!important;height:64px!important}.invoice-logo,.report-print-brand img{width:128px!important;height:64px!important}.print-invoice-head{padding-left:146px!important}.print-company img{width:124px!important;height:62px!important}}
@media(max-width:600px){.brand-logo{width:86px!important;height:40px!important;max-width:42%}.auth-logo{width:min(140px,54vw)!important;height:48px!important}.invoice-logo,.report-print-brand img{width:110px!important;height:54px!important}.print-invoice-head{padding-left:0!important;padding-top:72px!important}.print-company img{left:0!important;top:0!important;width:110px!important;height:54px!important}}
@media print{.label-sheet{padding:6mm;gap:4mm}.stock-label{page-break-inside:avoid}.sidebar,.topbar,.system-footer,.two-factor-unlock-alert{display:none!important}.main{margin:0!important;padding:0!important}.cash-drawer-kick{border:0;margin:0;color:#000}}

/* uPharma Cloud 1.1.58 - Epson M267E POS receipt printing */
.thermal-receipt-body{background:#eef2f0!important;color:#111827!important;margin:0!important;padding:14px!important;font-family:Arial,Helvetica,sans-serif!important}
.thermal-receipt{width:80mm;max-width:100%;margin:0 auto;background:#fff;color:#111827;padding:4mm 4mm 6mm;border:1px solid #d1d5db;box-shadow:0 12px 28px rgba(15,23,42,.16);font-family:"Courier New",monospace;font-size:12px;line-height:1.28}
.thermal-receipt h1,.thermal-receipt h2,.thermal-receipt p{margin:0 0 5px}
.thermal-receipt-head{text-align:center}
.thermal-receipt-head h1{font-size:15px;line-height:1.2;text-transform:uppercase}
.thermal-receipt-head h2{font-size:13px;letter-spacing:0;font-weight:900}
.thermal-receipt-rule{font-size:12px;overflow:hidden;white-space:nowrap}
.thermal-receipt-meta{border-top:1px dashed #111827;border-bottom:1px dashed #111827;padding:6px 0;margin:6px 0}
.thermal-receipt-meta p,.thermal-receipt-totals p{display:flex;justify-content:space-between;gap:8px;margin:0 0 4px}
.thermal-receipt-meta span,.thermal-receipt-totals span{font-weight:700}
.thermal-receipt-meta strong,.thermal-receipt-totals strong{text-align:right;font-weight:900}
.thermal-receipt-lines{width:100%;border-collapse:collapse;margin:7px 0;font-size:12px}
.thermal-receipt-lines th{border-bottom:1px dashed #111827;text-align:left;padding:0 0 4px}
.thermal-receipt-lines th:nth-child(2),.thermal-receipt-lines td:nth-child(2){text-align:center;width:13mm}
.thermal-receipt-lines th:last-child,.thermal-receipt-lines td:last-child{text-align:right;width:21mm}
.thermal-receipt-lines td{vertical-align:top;padding:4px 0;border-bottom:1px dotted #d1d5db;overflow-wrap:anywhere}
.thermal-receipt-totals{border-top:1px dashed #111827;padding-top:6px;margin-top:6px}
.thermal-receipt-totals .thermal-total{font-size:14px;border-top:1px solid #111827;border-bottom:1px solid #111827;padding:5px 0;margin:5px 0;font-weight:900}
.thermal-receipt-foot{text-align:center;border-top:1px dashed #111827;margin-top:8px;padding-top:8px}
.thermal-receipt-foot p:last-child{font-size:10px;color:#4b5563}
.thermal-print-actions{position:sticky;bottom:12px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:12px auto 0;width:80mm;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.12)}
@page thermalReceipt{size:80mm auto;margin:0}
@media print{
    body.thermal-receipt-body{background:#fff!important;padding:0!important}
    body.thermal-receipt-body .thermal-print-actions{display:none!important}
    body.thermal-receipt-body .thermal-receipt{width:72mm;max-width:72mm;border:0!important;box-shadow:none!important;margin:0!important;padding:3mm 4mm!important}
}

/* uPharma Cloud 1.1.20 - refined professional POS register */
.pos-refined-body{--pos-bg:#eef2f7;--pos-surface:#ffffff;--pos-surface-2:#f8fafc;--pos-ink:#101828;--pos-muted:#667085;--pos-line:#d6dde8;--pos-soft-line:#e8edf4;--pos-accent:#2563eb;--pos-accent-dark:#1e3a8a;--pos-teal:#0f766e;--pos-navy:#0f172a;--pos-danger:#b42318;--pos-shadow:0 18px 48px rgba(15,23,42,.10);background:linear-gradient(180deg,#e8eef7 0,#f7f9fc 260px,#f4f6f9 100%)!important;color:var(--pos-ink)!important;font-family:var(--app-font-family)}
.pos-refined-body .pos-terminal-shell{max-width:1840px;margin:0 auto;padding:14px;gap:12px}
.pos-refined-body .pos-terminal-header{position:relative;overflow:hidden;grid-template-columns:minmax(260px,.78fr) minmax(520px,1.15fr) auto;gap:16px;padding:16px 18px 14px!important;border:1px solid #d7dfeb!important;border-radius:18px!important;background:linear-gradient(135deg,#fff 0%,#fbfdff 56%,#eef4ff 100%)!important;box-shadow:var(--pos-shadow)!important}
.pos-refined-body .pos-header-accent{position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--pos-navy),var(--pos-accent),var(--pos-teal));opacity:.96}
.pos-refined-body .pos-terminal-brand{gap:14px}.pos-refined-body .pos-brand-logo{width:126px!important;height:60px!important;border:1px solid #d9e2ef!important;border-radius:14px!important;background:#fff!important;padding:7px!important;box-shadow:0 8px 20px rgba(15,23,42,.06)}.pos-refined-body .pos-brand-mark{width:54px!important;height:54px!important;border-radius:14px!important;background:linear-gradient(135deg,var(--pos-navy),var(--pos-accent))!important;color:#fff!important;box-shadow:0 10px 22px rgba(37,99,235,.22)}
.pos-refined-body .pos-title-lockup p,.pos-refined-body .eyebrow{color:#475467!important;font-size:11px!important;font-weight:900!important;letter-spacing:.095em!important;text-transform:uppercase!important}.pos-refined-body .pos-title-lockup h1{font-size:23px!important;color:#111827!important}.pos-refined-body .pos-title-lockup small{color:#667085!important;font-weight:650!important}
.pos-refined-body .pos-terminal-status{gap:10px}.pos-refined-body .pos-terminal-status article{padding:10px 12px!important;border:1px solid #dee6f1!important;border-radius:13px!important;background:rgba(255,255,255,.78)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}.pos-refined-body .pos-terminal-status span{color:#667085!important}.pos-refined-body .pos-terminal-status strong{font-size:14px!important;color:#111827!important;font-weight:850!important}
.pos-refined-body .pos-terminal-actions .button{min-height:40px!important;border-radius:12px!important;font-weight:800!important}.pos-refined-body .pos-terminal-actions .button.primary{background:var(--pos-navy)!important;border-color:var(--pos-navy)!important;color:#fff!important}.pos-refined-body .pos-terminal-actions .button:not(.primary){background:#fff!important;border-color:#d0d8e5!important;color:#344054!important}
.pos-refined-body .pos-terminal-grid{grid-template-columns:minmax(0,1fr) 350px;gap:12px}.pos-refined-body .pos-terminal-workspace,.pos-refined-body .pos-terminal-side{border:1px solid #d8e0ea!important;border-radius:18px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 14px 38px rgba(15,23,42,.08)!important}.pos-refined-body .pos-terminal-workspace{padding:16px!important}.pos-refined-body .pos-terminal-side{padding:12px!important;gap:12px!important;background:rgba(248,250,252,.94)!important}
.pos-refined-body .pos-terminal-command{margin-bottom:12px!important;padding:0 0 12px!important;border-bottom:1px solid #e3e9f2!important}.pos-refined-body .pos-terminal-command h2{font-size:30px!important;letter-spacing:-.035em!important;color:#0f172a!important}.pos-refined-body .pos-terminal-command p:not(.eyebrow){max-width:820px;color:#5b6678!important}.pos-refined-body .pos-command-actions{align-items:center}.pos-refined-body .pos-command-actions .button{border-radius:12px!important;min-height:42px!important;font-weight:850!important}.pos-refined-body .pos-command-actions .button.primary,.pos-refined-body .pos-command-actions .button:last-child{background:var(--pos-accent)!important;border-color:var(--pos-accent)!important;color:#fff!important;box-shadow:0 10px 22px rgba(37,99,235,.18)!important}.pos-refined-body .pos-command-actions .button span{display:inline-flex;margin-left:6px;padding:2px 6px;border-radius:7px;background:rgba(255,255,255,.18);font-size:11px;letter-spacing:.04em}
.pos-refined-body .pos-terminal-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px!important}.pos-refined-body .pos-terminal-kpis article{position:relative;padding:12px 13px!important;border:1px solid #dde5ef!important;border-radius:14px!important;background:#fff!important;box-shadow:0 6px 18px rgba(15,23,42,.04)!important}.pos-refined-body .pos-terminal-kpis article:before{content:"";position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:999px;background:var(--pos-accent)}.pos-refined-body .pos-terminal-kpis article:nth-child(3):before{background:var(--pos-teal)}.pos-refined-body .pos-terminal-kpis article:nth-child(4):before{background:#f59e0b}.pos-refined-body .pos-terminal-kpis strong{font-size:16px!important;color:#0f172a!important}.pos-refined-body .pos-terminal-kpis small{color:#697586!important}
.pos-refined-body .pos-primary-scan{grid-template-columns:68px minmax(0,1fr)!important;gap:14px!important;margin-bottom:12px!important;padding:14px!important;border:1px solid #bdd3f6!important;border-left:0!important;border-radius:18px!important;background:linear-gradient(135deg,#fff 0,#f7fbff 100%)!important;box-shadow:0 12px 30px rgba(37,99,235,.10)!important}.pos-refined-body .pos-primary-scan:focus-within{border-color:#7da7ee!important;box-shadow:0 0 0 4px rgba(37,99,235,.12),0 16px 34px rgba(37,99,235,.11)!important}.pos-refined-body .pos-scan-icon{width:52px!important;height:52px!important;border-radius:15px!important;background:linear-gradient(135deg,var(--pos-accent-dark),var(--pos-accent))!important;color:#fff!important;box-shadow:0 10px 22px rgba(37,99,235,.24)}.pos-refined-body .pos-primary-scan strong{font-size:18px!important;color:#0f172a!important}.pos-refined-body #posBarcode{min-height:56px!important;border:1px solid #a8b8cc!important;border-radius:14px!important;background:#fff!important;color:#0f172a!important;font-size:19px!important;font-weight:800!important;padding:13px 15px!important;box-shadow:inset 0 1px 0 rgba(15,23,42,.02)!important}.pos-refined-body #posBarcode:focus{outline:4px solid rgba(37,99,235,.13)!important;border-color:var(--pos-accent)!important}
.pos-refined-body .pos-terminal-sale{grid-template-columns:minmax(0,1fr) minmax(350px,410px);gap:12px}.pos-refined-body .pos-sale-card,.pos-refined-body .pos-checkout-summary{border:1px solid #d9e1ec!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,23,42,.06)!important}.pos-refined-body .pos-sale-card{padding:13px!important}.pos-refined-body .pos-checkout-summary{position:sticky;top:14px;padding:14px!important;gap:12px!important;background:linear-gradient(180deg,#fff,#f8fafc)!important}
.pos-refined-body .pos-card-head{margin-bottom:10px!important;padding-bottom:10px!important;border-bottom:1px solid #e4eaf2!important;align-items:center}.pos-refined-body .pos-card-head h3{font-size:22px!important;color:#0f172a!important}.pos-refined-body .pos-card-head>span#posLineCounter{background:#eff6ff!important;color:#1d4ed8!important;border:1px solid #cfe0ff!important;border-radius:999px!important}.pos-refined-body .pos-card-tabs{display:flex;gap:4px;padding:4px;border:1px solid #e0e7f0;border-radius:999px;background:#f8fafc}.pos-refined-body .pos-card-tabs span{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;color:#667085;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}.pos-refined-body .pos-card-tabs .active{background:#fff;color:#1d4ed8;box-shadow:0 2px 8px rgba(15,23,42,.06)}
.pos-refined-body .pos-line-toolbar{display:grid;grid-template-columns:calc(54px + minmax(260px,1fr));grid-template-columns:54px minmax(260px,1fr) 88px 92px 116px 36px;gap:10px;align-items:center;margin:0 0 7px;padding:0 10px;color:#667085;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.pos-refined-body .pos-line-toolbar span:nth-child(1){grid-column:2}.pos-refined-body .pos-line-toolbar span:nth-child(2){display:none}.pos-refined-body .pos-line-toolbar span:nth-child(3){grid-column:3;text-align:center}.pos-refined-body .pos-line-toolbar span:nth-child(4){grid-column:4;text-align:center}.pos-refined-body .pos-line-toolbar span:nth-child(5){grid-column:5;text-align:right}
.pos-refined-body .pos-sale-lines{gap:9px!important;max-height:calc(100vh - 520px)!important;min-height:330px!important;padding:2px 3px 2px 0!important}.pos-refined-body .pos-line-card{grid-template-columns:54px minmax(300px,1fr) 88px 92px 116px 36px!important;gap:10px!important;align-items:end!important;padding:12px!important;border:1px solid #e1e7f0!important;border-radius:15px!important;background:#fff!important;box-shadow:0 3px 12px rgba(15,23,42,.035)!important;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease,background-color .12s ease}.pos-refined-body .pos-line-card:hover{transform:translateY(-1px);border-color:#cbd8e8!important;box-shadow:0 8px 20px rgba(15,23,42,.06)!important;background:#fbfdff!important}.pos-refined-body .pos-line-card.is-filled{border-color:#9fc1f5!important;background:#f8fbff!important}.pos-refined-body .pos-line-card.pos-line-pulse{border-color:var(--pos-accent)!important;box-shadow:0 0 0 4px rgba(37,99,235,.12),0 10px 24px rgba(37,99,235,.12)!important}.pos-refined-body .pos-line-no{width:38px!important;height:38px!important;border-radius:12px!important;background:#eef2f7!important;color:#344054!important}.pos-refined-body .pos-line-main{grid-template-columns:minmax(170px,.68fr) minmax(230px,1fr)!important;gap:10px!important}.pos-refined-body .pos-line-card label{font-size:11px!important;color:#475467!important;font-weight:850!important;letter-spacing:.02em}.pos-refined-body .pos-line-card .pos-search,.pos-refined-body .pos-line-card .pos-medicine,.pos-refined-body .pos-line-card input{min-height:43px!important;border:1px solid #c9d3e1!important;border-radius:12px!important}.pos-refined-body .pos-line-card .pos-search{background:#f8fafc!important}.pos-refined-body .pos-line-card .pos-medicine{font-weight:800!important;color:#111827!important}.pos-refined-body .pos-line-card input:focus,.pos-refined-body .pos-line-card select:focus{outline:3px solid rgba(37,99,235,.12)!important;border-color:#548be6!important}.pos-refined-body .pos-line-amount{display:grid;gap:4px;align-content:end;min-height:43px;padding:7px 9px;border:1px solid #e0e7f0;border-radius:12px;background:#f8fafc;text-align:right}.pos-refined-body .pos-line-amount span{color:#697586;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.pos-refined-body .pos-line-amount strong{color:#0f172a;font-size:14px;font-weight:950}.pos-refined-body .pos-remove-line{border-radius:12px!important;background:#fff7f6!important;border-color:#f4b7b2!important;color:var(--pos-danger)!important}
.pos-refined-body .pos-basket-hint{margin:11px 4px 0!important;color:#667085!important}.pos-refined-body .pos-total-display{padding:16px!important;border-radius:18px!important;background:linear-gradient(135deg,#101828,#16213d 62%,#1d4ed8)!important;color:#fff!important;box-shadow:0 14px 34px rgba(15,23,42,.22)!important}.pos-refined-body .pos-total-display span{color:#dbeafe!important}.pos-refined-body .pos-total-display strong{font-size:clamp(36px,3.4vw,52px)!important;letter-spacing:-.055em!important}.pos-refined-body .pos-total-display small{color:#d7e3f5!important}.pos-refined-body .pos-total-breakdown{display:grid;gap:7px;padding:10px;border:1px solid #e0e7f0;border-radius:14px;background:#fff}.pos-refined-body .pos-total-breakdown span{display:flex;justify-content:space-between;gap:12px;color:#667085;font-size:13px}.pos-refined-body .pos-total-breakdown strong{color:#0f172a;font-weight:900}.pos-refined-body .pos-payment-grid{gap:10px!important}.pos-refined-body .pos-payment-card label{font-size:12px!important;color:#475467!important;font-weight:850!important}.pos-refined-body .pos-payment-card input,.pos-refined-body .pos-payment-card select{min-height:43px!important;border:1px solid #c9d3e1!important;border-radius:12px!important}.pos-refined-body .pos-offline-note{border-radius:14px!important;background:#f8fafc!important;border-color:#e0e7f0!important;color:#667085!important}.pos-refined-body.is-offline-pos .pos-offline-note{border-color:#fed7aa!important;background:#fff7ed!important;color:#9a3412!important}.pos-refined-body .pos-complete-sale{min-height:62px!important;border-radius:15px!important;background:linear-gradient(135deg,var(--pos-accent),#1d4ed8)!important;color:#fff!important;font-size:18px!important;font-weight:900!important;box-shadow:0 14px 28px rgba(37,99,235,.24)!important}.pos-refined-body .pos-complete-sale:hover{filter:none!important;transform:translateY(-1px)}
.pos-refined-body .pos-help-card{border:1px solid #dfe7f1!important;border-radius:17px!important;background:#fff!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important}.pos-refined-body .pos-live-dot{background:#eefbf7!important;color:#0f766e!important}.pos-refined-body .pos-live-dot:before{background:#0f766e!important}.pos-refined-body .pos-help-card h2{font-size:19px!important;color:#0f172a!important}.pos-refined-body .pos-shift-summary{display:grid;gap:8px}.pos-refined-body .pos-shift-summary article{padding:9px 10px;border:1px solid #e4eaf2;border-radius:12px;background:#f8fafc}.pos-refined-body .pos-shift-summary span{display:block;color:#667085;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.pos-refined-body .pos-shift-summary strong{display:block;margin-top:3px;color:#0f172a;font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pos-refined-body .pos-guide-list span{background:#eff6ff!important;color:#1d4ed8!important}.pos-refined-body .pos-shortcuts{display:grid;grid-template-columns:auto 1fr;gap:7px 9px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid #e4eaf2}.pos-refined-body .pos-shortcuts kbd{display:inline-grid;place-items:center;min-width:38px;padding:5px 8px;border:1px solid #cfd8e6;border-bottom-width:2px;border-radius:9px;background:#fff;color:#344054;font-size:12px;font-weight:900}.pos-refined-body .pos-shortcuts small{color:#667085;font-weight:700}.pos-refined-body .pos-return-card{border-radius:17px!important;border-color:#dfe7f1!important;box-shadow:0 8px 22px rgba(15,23,42,.05)!important}.pos-refined-body .pos-return-card h2{font-size:19px!important}.pos-refined-body .pos-return-card .danger{border-radius:13px!important}
@media(max-width:1480px){.pos-refined-body .pos-terminal-header{grid-template-columns:1fr}.pos-refined-body .pos-terminal-actions{justify-content:flex-start}.pos-refined-body .pos-terminal-grid{grid-template-columns:1fr}.pos-refined-body .pos-terminal-side{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.pos-refined-body .pos-terminal-sale{grid-template-columns:minmax(0,1fr) 380px}.pos-refined-body .pos-sale-lines{max-height:none!important}}
@media(max-width:1180px){.pos-refined-body .pos-terminal-sale{grid-template-columns:1fr}.pos-refined-body .pos-checkout-summary{position:static}.pos-refined-body .pos-terminal-side{grid-template-columns:1fr 1fr}.pos-refined-body .pos-line-toolbar{display:none}.pos-refined-body .pos-line-card{grid-template-columns:52px minmax(0,1fr) 84px 88px 116px 36px!important}.pos-refined-body .pos-line-main{grid-template-columns:1fr!important}}
@media(max-width:820px){.pos-refined-body .pos-terminal-shell{padding:10px}.pos-refined-body .pos-terminal-status{grid-template-columns:1fr 1fr}.pos-refined-body .pos-terminal-side{grid-template-columns:1fr}.pos-refined-body .pos-terminal-kpis{grid-template-columns:1fr 1fr}.pos-refined-body .pos-primary-scan{grid-template-columns:1fr!important}.pos-refined-body .pos-scan-icon{width:auto!important;height:40px!important;justify-content:start!important;padding:0 12px!important}.pos-refined-body .pos-line-card{grid-template-columns:1fr 1fr!important}.pos-refined-body .pos-line-index,.pos-refined-body .pos-line-main,.pos-refined-body .pos-line-amount{grid-column:1/-1}.pos-refined-body .pos-line-index{display:flex!important;justify-content:flex-start!important}.pos-refined-body .pos-line-amount{text-align:left}.pos-refined-body .pos-remove-line{justify-self:end}.pos-refined-body .pos-card-tabs{display:none}.pos-refined-body .pos-payment-grid{grid-template-columns:1fr!important}}
@media(max-width:540px){.pos-refined-body .pos-terminal-kpis,.pos-refined-body .pos-terminal-status{grid-template-columns:1fr}.pos-refined-body .pos-line-card{grid-template-columns:1fr!important}.pos-refined-body .pos-remove-line{width:100%!important;justify-self:stretch}.pos-refined-body .pos-total-display strong{font-size:36px!important}.pos-refined-body #posBarcode{font-size:16px!important}.pos-refined-body .pos-terminal-command h2{font-size:26px!important}}

/* uPharma Cloud 1.1.21 - final requirements closure utilities */
.settings-jump-menu{display:grid;gap:14px;scroll-margin-top:18px}.settings-jump-menu .report-tabs{margin-top:4px;gap:8px}.settings-section{scroll-margin-top:22px}.settings-section .card h2{display:flex;align-items:center;gap:8px}.stacked-form{display:grid;gap:12px;max-width:560px;margin-top:16px}.kb-search-panel{display:grid;gap:14px;margin-bottom:18px}.kb-category-nav{display:flex;gap:8px;flex-wrap:wrap}.kb-article-list{display:grid;gap:16px}.kb-category-group{scroll-margin-top:20px}.kb-category-group h2{margin:0 0 10px}.kb-article{padding:14px 0;border-top:1px solid var(--line)}.kb-article:first-of-type{border-top:0}.kb-article h3{margin:0 0 8px;font-size:18px}.kb-article p{margin:0;color:var(--muted);line-height:1.55}.kb-article-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.kb-article-meta span{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px;padding:3px 8px;background:var(--soft);color:var(--muted);font-size:12px;font-weight:700}.backup-safety-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:12px}.backup-safety-grid article{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--soft)}.backup-safety-grid strong{display:block;margin-bottom:4px}@media(max-width:720px){.settings-jump-menu .report-tabs,.kb-category-nav{display:grid;grid-template-columns:1fr 1fr}.settings-jump-menu .report-tabs .button,.kb-category-nav .button{justify-content:center}}


/* uPharma Cloud 1.1.22 - usability navigation polish */
.settings-jump-menu{gap:18px!important;padding:18px!important;overflow:hidden!important;background:linear-gradient(180deg,#ffffff,#f8fafc)!important;border-color:#d9e2ee!important;box-shadow:0 10px 26px rgba(15,23,42,.05)!important}.settings-jump-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:16px!important}.settings-jump-head h2{margin:2px 0 6px!important;font-size:24px!important;letter-spacing:-.025em!important}.settings-jump-tools{display:flex!important;gap:10px!important;flex-wrap:wrap!important;justify-content:flex-end!important}.settings-section-menu{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;gap:12px!important;margin-top:2px!important}.settings-section-button{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"num title" "num text"!important;gap:3px 11px!important;align-items:start!important;text-decoration:none!important;padding:14px!important;border:1px solid #d7e0ec!important;border-radius:14px!important;background:#fff!important;color:var(--text)!important;box-shadow:0 5px 14px rgba(15,23,42,.035)!important;transition:transform .14s ease,border-color .14s ease,box-shadow .14s ease,background-color .14s ease!important}.settings-section-button:hover,.settings-section-button:focus-visible{transform:translateY(-1px)!important;border-color:color-mix(in srgb,var(--primary) 35%,#d7e0ec)!important;box-shadow:0 12px 24px rgba(15,23,42,.08)!important;background:#fbfdff!important;outline:none!important}.settings-section-number{grid-area:num;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eef4ff;color:#1d4ed8;font-size:12px;font-weight:950}.settings-section-button strong{grid-area:title;font-size:15px;line-height:1.2;color:#101828}.settings-section-button small{grid-area:text;color:var(--muted);font-size:12px;line-height:1.4}.settings-section{scroll-margin-top:110px!important;margin-top:18px!important}.settings-section .card,.settings-section.card{border-color:#dce4ef!important}.settings-section .card h2,.settings-section.card h2{margin-bottom:12px!important}.settings-section form{gap:14px!important}.settings-section form button,.settings-section form .button{margin-top:2px!important}.actions,.actions-inline,.row-actions,.toolbar-actions,.top-actions,.report-tabs,.bulk-actions,.pos-command-actions,.pos-fullscreen-actions,.kb-float-actions{gap:10px!important}.card > .actions,.list-toolbar .actions{margin-top:4px!important}.search-form,.list-controls{gap:10px!important}.back-to-top{position:fixed;right:18px;bottom:86px;z-index:29;display:inline-flex;align-items:center;gap:7px;min-height:42px!important;padding:9px 12px!important;border:1px solid #cfd8e6!important;border-radius:999px!important;background:#ffffff!important;color:#1f2937!important;box-shadow:0 14px 32px rgba(15,23,42,.18)!important;opacity:0;visibility:hidden;transform:translateY(12px);pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s ease!important}.back-to-top span{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#eef4ff;color:#1d4ed8;font-weight:950}.back-to-top strong{font-size:12px;font-weight:900;letter-spacing:.02em}.back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}.back-to-top:hover,.back-to-top:focus-visible{transform:translateY(-2px)!important;border-color:#9db7df!important;outline:none!important}html[data-theme="dark"] .settings-jump-menu{background:linear-gradient(180deg,#111827,#0f172a)!important;border-color:#334155!important}html[data-theme="dark"] .settings-section-button{background:#111827!important;border-color:#334155!important;color:#f8fafc!important}html[data-theme="dark"] .settings-section-button:hover,html[data-theme="dark"] .settings-section-button:focus-visible{background:#172033!important;border-color:#475569!important}html[data-theme="dark"] .settings-section-button strong{color:#f8fafc!important}html[data-theme="dark"] .settings-section-number{background:#172554!important;color:#bfdbfe!important}html[data-theme="dark"] .back-to-top{background:#111827!important;border-color:#334155!important;color:#f8fafc!important}.pos-fullscreen-body .back-to-top{display:none!important}@media(max-width:780px){.settings-jump-head{display:grid!important}.settings-jump-tools{justify-content:flex-start!important}.settings-section-menu{grid-template-columns:1fr!important}.back-to-top{right:12px;bottom:76px}.back-to-top strong{display:none}}

/* uPharma Cloud 1.1.23 - backup/navigation stability repair */
.settings-jump-menu{gap:20px!important;padding:22px!important;border-radius:18px!important}
.settings-jump-head{gap:18px!important;padding-bottom:4px!important;border-bottom:1px solid rgba(148,163,184,.22)!important}
.settings-jump-tools{gap:12px!important}
.settings-jump-tools .button{min-height:42px!important;padding:10px 14px!important;border-radius:12px!important}
.settings-section-menu{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;gap:16px!important;margin-top:4px!important}
.settings-section-button{min-height:102px!important;padding:17px!important;gap:5px 13px!important;border-radius:16px!important}
.settings-section-number{width:42px!important;height:42px!important;border-radius:13px!important}
.settings-section-button strong{font-size:16px!important}
.settings-section-button small{font-size:12.5px!important;line-height:1.45!important}
.settings-section{scroll-margin-top:118px!important}
.settings-section:focus{outline:0!important}
.settings-section .card,.settings-section.card{scroll-margin-top:118px!important}
.actions,.actions-inline,.row-actions,.toolbar-actions,.top-actions,.report-tabs,.bulk-actions,.search-form,.list-controls,.settings-jump-tools{gap:12px!important}
.actions .button,.actions button,.actions-inline .button,.actions-inline button,.toolbar-actions .button,.toolbar-actions button,.report-tabs .button,.report-tabs button,.search-form button,.search-form .button,.bulk-actions button,.bulk-actions .button{margin:2px!important}
.back-to-top{left:50%!important;right:auto!important;bottom:18px!important;z-index:55!important;min-height:44px!important;padding:10px 15px!important;transform:translate(-50%,14px)!important}
.back-to-top.is-visible{transform:translate(-50%,0)!important}
.back-to-top:hover,.back-to-top:focus-visible{transform:translate(-50%,-3px)!important}
@media(max-width:780px){.settings-jump-menu{padding:16px!important}.settings-section-menu{grid-template-columns:1fr!important;gap:12px!important}.settings-section-button{min-height:auto!important}.back-to-top{bottom:14px!important;padding:10px 12px!important}.back-to-top strong{display:inline!important}}
@media(max-width:520px){.back-to-top strong{display:none!important}.back-to-top{min-width:48px!important;justify-content:center!important}.settings-jump-tools{display:grid!important;grid-template-columns:1fr!important;width:100%!important}.settings-jump-tools .button{justify-content:center!important}}
.pos-fullscreen-body .back-to-top{display:inline-flex!important}

/* App settings center-right flyout navigation */
.settings-flyout-nav{position:fixed;right:18px;top:50%;z-index:54;display:flex;align-items:center;gap:10px;transform:translateY(-50%);pointer-events:none}
.settings-flyout-tab{pointer-events:auto;display:grid;place-items:center;gap:2px;width:76px;min-height:76px!important;padding:10px!important;border:1px solid color-mix(in srgb,var(--primary) 28%,#cbd5e1)!important;border-radius:18px 0 0 18px!important;background:linear-gradient(145deg,#ffffff,#f5f9fc)!important;color:#0f172a!important;box-shadow:0 18px 44px rgba(15,23,42,.18)!important;cursor:pointer!important}
.settings-flyout-tab span{font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.settings-flyout-tab strong{font-size:14px;font-weight:950;color:#0f172a}
.settings-flyout-tab:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 42%,transparent)!important;outline-offset:3px}
.settings-flyout-panel{pointer-events:auto;width:min(330px,calc(100vw - 116px));max-height:min(74vh,660px);overflow:auto;padding:12px;border:1px solid color-mix(in srgb,var(--primary) 22%,#d8e1ed);border-radius:18px;background:rgba(255,255,255,.96);box-shadow:0 24px 60px rgba(15,23,42,.20);backdrop-filter:blur(14px);opacity:0;visibility:hidden;transform:translateX(18px) scale(.98);transition:opacity .16s ease,visibility .16s ease,transform .16s ease}
.settings-flyout-nav:hover .settings-flyout-panel,.settings-flyout-nav:focus-within .settings-flyout-panel,.settings-flyout-nav.is-open .settings-flyout-panel{opacity:1;visibility:visible;transform:translateX(0) scale(1)}
.settings-flyout-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;padding:10px 11px;border:1px solid #dbe6f3;border-radius:14px;background:linear-gradient(135deg,#f8fbff,#eef7f4)}
.settings-flyout-head span{font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.settings-flyout-head strong{min-width:0;color:#0f172a;font-size:14px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.settings-flyout-links{display:grid;gap:7px}
.settings-flyout-link{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-areas:"num title" "num hint";gap:1px 10px;align-items:center;min-height:58px;padding:9px 10px;border:1px solid transparent;border-radius:13px;color:#1f2937;text-decoration:none;background:#fff;transition:transform .14s ease,border-color .14s ease,background-color .14s ease,box-shadow .14s ease}
.settings-flyout-link:hover,.settings-flyout-link:focus-visible{transform:translateX(-3px);border-color:#c8d8eb;background:#fbfdff;box-shadow:0 10px 22px rgba(15,23,42,.08);outline:none}
.settings-flyout-link.is-active{border-color:color-mix(in srgb,var(--accent) 45%,#c8d8eb);background:linear-gradient(135deg,#ffffff,#f3faf7);box-shadow:inset 4px 0 0 var(--accent),0 10px 22px rgba(15,23,42,.06)}
.settings-flyout-link span{grid-area:num;display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eef4ff;color:#1d4ed8;font-size:11px;font-weight:950}
.settings-flyout-link strong{grid-area:title;min-width:0;font-size:13.5px;font-weight:950;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.settings-flyout-link small{grid-area:hint;min-width:0;color:#64748b;font-size:11.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme="dark"] .settings-flyout-tab{background:linear-gradient(145deg,#111827,#0b1220)!important;border-color:#334155!important;color:#f8fafc!important}
html[data-theme="dark"] .settings-flyout-tab strong,html[data-theme="dark"] .settings-flyout-head strong,html[data-theme="dark"] .settings-flyout-link strong{color:#f8fafc}
html[data-theme="dark"] .settings-flyout-panel{background:rgba(15,23,42,.96);border-color:#334155;box-shadow:0 24px 60px rgba(0,0,0,.36)}
html[data-theme="dark"] .settings-flyout-head{background:linear-gradient(135deg,#111827,#0f172a);border-color:#334155}
html[data-theme="dark"] .settings-flyout-link{background:#111827;color:#e5e7eb}
html[data-theme="dark"] .settings-flyout-link:hover,html[data-theme="dark"] .settings-flyout-link:focus-visible{background:#172033;border-color:#475569}
html[data-theme="dark"] .settings-flyout-link.is-active{background:linear-gradient(135deg,#111827,#13231e);border-color:#2dd4bf}
@media(max-width:1180px){
  .settings-flyout-nav{right:12px;top:auto;bottom:84px;transform:none;z-index:76}
  .settings-flyout-tab{width:64px;min-height:58px!important;border-radius:16px!important}
  .settings-flyout-panel{position:absolute;right:76px;bottom:0;width:min(320px,calc(100vw - 100px));max-height:min(70vh,560px)}
}
@media(max-width:640px){
  .settings-flyout-nav{right:10px;bottom:72px}
  .settings-flyout-tab{width:52px;min-height:52px!important;padding:8px!important}
  .settings-flyout-tab span{display:none}
  .settings-flyout-panel{right:0;bottom:62px;width:calc(100vw - 20px);max-height:calc(100vh - 132px)}
}

/* In-app PDF preview popup */
.pdf-preview-shell[hidden]{display:none!important}
.pdf-preview-open{overflow:hidden}
.pdf-preview-shell{position:fixed;inset:0;z-index:88;display:grid;place-items:center;padding:22px;background:rgba(15,23,42,.58);backdrop-filter:blur(10px)}
.pdf-preview-window{display:grid;grid-template-rows:auto minmax(0,1fr);width:min(1120px,96vw);height:min(860px,94vh);border:1px solid rgba(203,213,225,.9);border-radius:18px;background:#fff;box-shadow:0 30px 80px rgba(15,23,42,.34);overflow:hidden}
.pdf-preview-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #dbe4ee;background:linear-gradient(135deg,#ffffff,#f3faf7)}
.pdf-preview-head h2{margin:2px 0 0;font-size:20px;color:#0f172a}
.pdf-preview-kicker{font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
.pdf-preview-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pdf-preview-window iframe{width:100%;height:100%;border:0;background:#eef2f7}
html[data-theme="dark"] .pdf-preview-window{background:#111827;border-color:#334155}
html[data-theme="dark"] .pdf-preview-head{background:linear-gradient(135deg,#111827,#0f172a);border-color:#334155}
html[data-theme="dark"] .pdf-preview-head h2{color:#f8fafc}
@media(max-width:720px){.pdf-preview-shell{padding:8px}.pdf-preview-window{width:100vw;height:100dvh;border-radius:0}.pdf-preview-head{display:grid;align-items:flex-start}.pdf-preview-actions{justify-content:flex-start}.pdf-preview-actions .button,.pdf-preview-actions button{min-height:38px!important}}

/* uPharma Cloud 1.1.25 - dark theme contrast and fullscreen POS repair */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
    background:#0b1220!important;
    color:#f8fafc!important;
    border-color:#475569!important;
}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"])::placeholder,
html[data-theme="dark"] textarea::placeholder{
    color:#94a3b8!important;
    opacity:1!important;
}
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{
    background:#111827!important;
    color:#fff!important;
    border-color:#60a5fa!important;
    box-shadow:0 0 0 3px rgba(96,165,250,.25)!important;
    outline:none!important;
}
html[data-theme="dark"] option{
    background:#0f172a!important;
    color:#f8fafc!important;
}
html[data-theme="dark"] label,
html[data-theme="dark"] .record-title,
html[data-theme="dark"] .page-toolbar h2,
html[data-theme="dark"] .list-toolbar h2,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3{
    color:#f8fafc!important;
}
html[data-theme="dark"] .muted,
html[data-theme="dark"] .record-sub,
html[data-theme="dark"] .pagination-summary,
html[data-theme="dark"] .help-text,
html[data-theme="dark"] .form-help,
html[data-theme="dark"] small{
    color:#cbd5e1!important;
}
html[data-theme="dark"] .list-controls,
html[data-theme="dark"] .bulk-actions,
html[data-theme="dark"] .spacious-edit,
html[data-theme="dark"] .edit-grid,
html[data-theme="dark"] .setup-key,
html[data-theme="dark"] .activity-detail-table,
html[data-theme="dark"] .activity-detail-table th{
    background:#0f172a!important;
    border-color:#334155!important;
    color:#e5e7eb!important;
}
html[data-theme="dark"] tbody tr:nth-child(even) td{
    background:#101827!important;
}

html[data-theme="dark"] body.pos-fullscreen-body.pos-refined-body,
body.pos-fullscreen-body.pos-refined-body.theme-dark{
    --pos-bg:#050b14;
    --pos-card:#0f172a;
    --pos-soft:#111827;
    --pos-ink:#f8fafc;
    --pos-muted:#cbd5e1;
    --pos-line:#334155;
    --pos-accent:#60a5fa;
    --pos-accent-dark:#2563eb;
    --pos-success:#34d399;
    --pos-danger:#f87171;
    --pos-teal:#5eead4;
    background:
        radial-gradient(circle at top left,rgba(96,165,250,.18),transparent 34%),
        linear-gradient(180deg,#050b14,#08111f 54%,#0b1220)!important;
    color:var(--pos-ink)!important;
}
html[data-theme="dark"] .pos-refined-body .pos-terminal-header,
html[data-theme="dark"] .pos-refined-body .pos-terminal-workspace,
html[data-theme="dark"] .pos-refined-body .pos-terminal-side,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-header,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-workspace,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-side{
    background:rgba(15,23,42,.96)!important;
    border-color:#334155!important;
    color:#f8fafc!important;
    box-shadow:0 14px 36px rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] .pos-refined-body .pos-brand-logo,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-brand-logo{
    background:#f8fafc!important;
    border-color:#475569!important;
}
html[data-theme="dark"] .pos-refined-body .pos-brand-mark,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-brand-mark{
    background:#172554!important;
    color:#bfdbfe!important;
}
html[data-theme="dark"] .pos-refined-body .pos-title-lockup h1,
html[data-theme="dark"] .pos-refined-body .pos-terminal-command h2,
html[data-theme="dark"] .pos-refined-body .pos-card-head h3,
html[data-theme="dark"] .pos-refined-body .pos-help-card h2,
html[data-theme="dark"] .pos-refined-body .pos-return-card h2,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-title-lockup h1,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-command h2,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-card-head h3,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-help-card h2,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-return-card h2{
    color:#f8fafc!important;
}
html[data-theme="dark"] .pos-refined-body .pos-title-lockup p,
html[data-theme="dark"] .pos-refined-body .pos-title-lockup small,
html[data-theme="dark"] .pos-refined-body .pos-terminal-command p,
html[data-theme="dark"] .pos-refined-body .pos-basket-hint,
html[data-theme="dark"] .pos-refined-body .pos-card-tabs span,
html[data-theme="dark"] .pos-refined-body .pos-line-toolbar,
html[data-theme="dark"] .pos-refined-body .pos-shortcuts small,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-title-lockup p,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-title-lockup small,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-command p,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-basket-hint,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-card-tabs span,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-toolbar,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-shortcuts small{
    color:#cbd5e1!important;
}
html[data-theme="dark"] .pos-refined-body .pos-terminal-status article,
html[data-theme="dark"] .pos-refined-body .pos-terminal-kpis article,
html[data-theme="dark"] .pos-refined-body .pos-sale-card,
html[data-theme="dark"] .pos-refined-body .pos-checkout-summary,
html[data-theme="dark"] .pos-refined-body .pos-line-card,
html[data-theme="dark"] .pos-refined-body .pos-help-card,
html[data-theme="dark"] .pos-refined-body .pos-return-card,
html[data-theme="dark"] .pos-refined-body .pos-shift-summary article,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-status article,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-kpis article,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-sale-card,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-checkout-summary,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-help-card,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-return-card,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-shift-summary article{
    background:#0f172a!important;
    border-color:#334155!important;
    color:#f8fafc!important;
    box-shadow:0 10px 28px rgba(0,0,0,.22)!important;
}
html[data-theme="dark"] .pos-refined-body .pos-line-card:hover,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card:hover{
    background:#111827!important;
    border-color:#475569!important;
}
html[data-theme="dark"] .pos-refined-body .pos-line-card.is-filled,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card.is-filled{
    background:#0b1b32!important;
    border-color:#60a5fa!important;
}
html[data-theme="dark"] .pos-refined-body .pos-primary-scan,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-primary-scan{
    background:linear-gradient(135deg,#0f172a,#0b1b32)!important;
    border-color:#2563eb!important;
    color:#f8fafc!important;
}
html[data-theme="dark"] .pos-refined-body .pos-terminal-status strong,
html[data-theme="dark"] .pos-refined-body .pos-terminal-kpis strong,
html[data-theme="dark"] .pos-refined-body .pos-primary-scan strong,
html[data-theme="dark"] .pos-refined-body .pos-line-card .pos-medicine,
html[data-theme="dark"] .pos-refined-body .pos-line-amount strong,
html[data-theme="dark"] .pos-refined-body .pos-total-breakdown strong,
html[data-theme="dark"] .pos-refined-body .pos-shift-summary strong,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-status strong,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-kpis strong,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-primary-scan strong,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card .pos-medicine,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-amount strong,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-total-breakdown strong,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-shift-summary strong{
    color:#f8fafc!important;
}
html[data-theme="dark"] .pos-refined-body .pos-terminal-status span,
html[data-theme="dark"] .pos-refined-body .pos-terminal-kpis small,
html[data-theme="dark"] .pos-refined-body .pos-line-card label,
html[data-theme="dark"] .pos-refined-body .pos-line-amount span,
html[data-theme="dark"] .pos-refined-body .pos-total-breakdown span,
html[data-theme="dark"] .pos-refined-body .pos-payment-card label,
html[data-theme="dark"] .pos-refined-body .pos-shift-summary span,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-status span,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-kpis small,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card label,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-amount span,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-total-breakdown span,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-payment-card label,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-shift-summary span{
    color:#cbd5e1!important;
}
html[data-theme="dark"] .pos-refined-body #posBarcode,
html[data-theme="dark"] .pos-refined-body .pos-line-card .pos-search,
html[data-theme="dark"] .pos-refined-body .pos-line-card .pos-medicine,
html[data-theme="dark"] .pos-refined-body .pos-line-card input,
html[data-theme="dark"] .pos-refined-body .pos-payment-card input,
html[data-theme="dark"] .pos-refined-body .pos-payment-card select,
body.pos-fullscreen-body.pos-refined-body.theme-dark #posBarcode,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card .pos-search,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card .pos-medicine,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card input,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-payment-card input,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-payment-card select{
    background:#08111f!important;
    border-color:#475569!important;
    color:#f8fafc!important;
}
html[data-theme="dark"] .pos-refined-body #posBarcode:focus,
html[data-theme="dark"] .pos-refined-body .pos-line-card input:focus,
html[data-theme="dark"] .pos-refined-body .pos-line-card select:focus,
html[data-theme="dark"] .pos-refined-body .pos-payment-card input:focus,
html[data-theme="dark"] .pos-refined-body .pos-payment-card select:focus,
body.pos-fullscreen-body.pos-refined-body.theme-dark #posBarcode:focus,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card input:focus,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-card select:focus,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-payment-card input:focus,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-payment-card select:focus{
    border-color:#60a5fa!important;
    outline:3px solid rgba(96,165,250,.24)!important;
}
html[data-theme="dark"] .pos-refined-body .pos-line-no,
html[data-theme="dark"] .pos-refined-body .pos-line-amount,
html[data-theme="dark"] .pos-refined-body .pos-total-breakdown,
html[data-theme="dark"] .pos-refined-body .pos-card-tabs,
html[data-theme="dark"] .pos-refined-body .pos-offline-note,
html[data-theme="dark"] .pos-refined-body .pos-shortcuts kbd,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-no,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-line-amount,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-total-breakdown,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-card-tabs,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-offline-note,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-shortcuts kbd{
    background:#111827!important;
    border-color:#334155!important;
    color:#f8fafc!important;
}
html[data-theme="dark"] .pos-refined-body .pos-card-tabs .active,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-card-tabs .active{
    background:#172554!important;
    color:#bfdbfe!important;
}
html[data-theme="dark"] .pos-refined-body .pos-card-head,
html[data-theme="dark"] .pos-refined-body .pos-shortcuts,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-card-head,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-shortcuts{
    border-color:#334155!important;
}
html[data-theme="dark"] .pos-refined-body .pos-remove-line,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-remove-line{
    background:#3b1114!important;
    border-color:#7f1d1d!important;
    color:#fecaca!important;
}
html[data-theme="dark"] .pos-refined-body .pos-live-dot,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-live-dot{
    background:#064e3b!important;
    color:#bbf7d0!important;
}
html[data-theme="dark"] .pos-refined-body .pos-guide-list span,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-guide-list span{
    background:#172554!important;
    color:#bfdbfe!important;
}
html[data-theme="dark"] .pos-refined-body.is-offline-pos .pos-offline-note,
body.pos-fullscreen-body.pos-refined-body.theme-dark.is-offline-pos .pos-offline-note{
    background:#451a03!important;
    border-color:#92400e!important;
    color:#fed7aa!important;
}
html[data-theme="dark"] .pos-refined-body .pos-terminal-actions .button,
html[data-theme="dark"] .pos-refined-body .pos-command-actions .button,
html[data-theme="dark"] .pos-refined-body .pos-theme-switch button,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-actions .button,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-command-actions .button,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-theme-switch button{
    background:#111827!important;
    border-color:#475569!important;
    color:#f8fafc!important;
}
html[data-theme="dark"] .pos-refined-body .pos-terminal-actions .button.primary,
html[data-theme="dark"] .pos-refined-body .pos-command-actions .button.primary,
html[data-theme="dark"] .pos-refined-body .pos-complete-sale,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-terminal-actions .button.primary,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-command-actions .button.primary,
body.pos-fullscreen-body.pos-refined-body.theme-dark .pos-complete-sale{
    background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;
    border-color:#60a5fa!important;
    color:#fff!important;
}

/* uPharma Cloud 1.1.25 - fullscreen POS compact basket and visible AI assist */
.pos-refined-body .pos-line-toolbar{
    grid-template-columns:34px minmax(90px,.74fr) minmax(150px,1.55fr) 82px 66px 62px 92px 30px!important;
    gap:6px!important;
    padding:0 6px!important;
    margin-bottom:5px!important;
    font-size:9px!important;
    letter-spacing:.05em!important;
}
.pos-refined-body .pos-line-toolbar span{
    display:block!important;
    grid-column:auto!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    text-align:left!important;
}
.pos-refined-body .pos-line-toolbar span:nth-child(4),
.pos-refined-body .pos-line-toolbar span:nth-child(5),
.pos-refined-body .pos-line-toolbar span:nth-child(6){
    text-align:center!important;
}
.pos-refined-body .pos-line-toolbar span:nth-child(7){
    text-align:right!important;
}
.pos-refined-body .pos-sale-lines{
    gap:5px!important;
    min-height:260px!important;
    max-height:calc(100vh - 475px)!important;
}
.pos-refined-body .pos-line-card{
    grid-template-columns:34px minmax(90px,.74fr) minmax(150px,1.55fr) 82px 66px 62px 92px 30px!important;
    gap:6px!important;
    align-items:center!important;
    min-width:0!important;
    min-height:42px!important;
    padding:5px 6px!important;
    border-radius:7px!important;
    box-shadow:none!important;
}
.pos-refined-body .pos-line-card:hover{
    transform:none!important;
    box-shadow:none!important;
}
.pos-refined-body .pos-line-index{
    align-self:center!important;
}
.pos-refined-body .pos-line-index small,
.pos-refined-body .pos-line-amount span{
    display:none!important;
}
.pos-refined-body .pos-line-no{
    width:26px!important;
    height:26px!important;
    border-radius:6px!important;
    font-size:11px!important;
}
.pos-refined-body .pos-line-main{
    display:contents!important;
    min-width:0!important;
}
.pos-refined-body .pos-line-card label{
    min-width:0!important;
    font-size:0!important;
    line-height:1!important;
}
.pos-refined-body .pos-line-card .pos-search,
.pos-refined-body .pos-line-card .pos-medicine,
.pos-refined-body .pos-line-card .pos-unit-select,
.pos-refined-body .pos-line-card input{
    min-width:0!important;
    width:100%!important;
    min-height:32px!important;
    height:32px!important;
    padding:4px 6px!important;
    border-radius:6px!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:750!important;
    box-shadow:none!important;
}
.pos-refined-body .pos-line-card .pos-search{
    font-weight:650!important;
}
.pos-refined-body .pos-line-card .pos-qty input,
.pos-refined-body .pos-line-card .pos-discount input{
    padding-inline:3px!important;
}
.pos-refined-body .pos-line-amount{
    min-width:0!important;
    min-height:32px!important;
    padding:5px 6px!important;
    border-radius:6px!important;
    align-content:center!important;
    text-align:right!important;
}
.pos-refined-body .pos-line-amount strong{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:12px!important;
    line-height:1.15!important;
}
.pos-refined-body .pos-remove-line{
    width:28px!important;
    height:28px!important;
    min-height:28px!important;
    border-radius:6px!important;
    font-size:17px!important;
}
.ai-icon-toggle.kb-float-toggle{
    width:64px!important;
    height:64px!important;
    min-height:64px!important;
    box-shadow:0 18px 42px rgba(2,8,23,.28),0 0 0 8px rgba(6,182,212,.10)!important;
}
.ai-icon-toggle.kb-float-toggle::after{
    content:"Ask AI"!important;
    display:block!important;
    position:absolute!important;
    right:0!important;
    bottom:calc(100% + 8px)!important;
    padding:6px 10px!important;
    border-radius:999px!important;
    background:#fff!important;
    color:#0f172a!important;
    border:1px solid rgba(15,23,42,.12)!important;
    box-shadow:0 12px 26px rgba(15,23,42,.16)!important;
    font-size:12px!important;
    font-weight:950!important;
    line-height:1!important;
    white-space:nowrap!important;
    animation:uerpAiPromptPop 3.8s ease-in-out infinite!important;
}
.ai-icon-toggle .ai-mini-icon{
    width:44px!important;
    height:44px!important;
    font-size:23px!important;
    background:linear-gradient(180deg,#fff,#e0f2fe)!important;
    box-shadow:inset 0 0 0 1px rgba(15,61,54,.08),0 8px 18px rgba(6,182,212,.18)!important;
}
.ai-icon-toggle .ai-emoji{
    display:block!important;
    transform-origin:50% 85%;
    animation:uerpAiEmojiBounce 1.65s ease-in-out infinite,uerpAiEmojiGlow 2.6s ease-in-out infinite!important;
}
.kb-float-msg-text h3{
    margin:.45rem 0 .25rem;
    font-size:12px;
    line-height:1.25;
    color:var(--text);
    font-weight:950;
}
.kb-float.is-thinking .ai-icon-toggle .ai-emoji{
    animation:uerpAiEmojiBounce .78s ease-in-out infinite,uerpSpin 1.4s linear infinite!important;
}
.pos-fullscreen-body .kb-float{
    right:18px!important;
    bottom:18px!important;
    z-index:64!important;
}
.pos-ai-unlock{
    z-index:64!important;
}
@keyframes uerpAiEmojiBounce{
    0%,100%{transform:translateY(0) rotate(0deg) scale(1)}
    35%{transform:translateY(-4px) rotate(-8deg) scale(1.08)}
    70%{transform:translateY(1px) rotate(7deg) scale(.98)}
}
@keyframes uerpAiEmojiGlow{
    0%,100%{filter:drop-shadow(0 0 0 rgba(250,204,21,0))}
    50%{filter:drop-shadow(0 0 10px rgba(250,204,21,.82))}
}
@keyframes uerpAiPromptPop{
    0%,72%,100%{opacity:.68;transform:translateY(4px) scale(.96)}
    12%,54%{opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:1180px){
    .pos-refined-body .pos-line-toolbar{display:none!important}
    .pos-refined-body .pos-line-card{
        grid-template-columns:30px minmax(0,1fr) 82px 62px 60px 88px 28px!important;
    }
    .pos-refined-body .pos-line-main{
        display:grid!important;
        grid-template-columns:minmax(110px,.82fr) minmax(150px,1.18fr)!important;
        grid-column:2!important;
        gap:6px!important;
    }
}
@media(max-width:820px){
    .pos-refined-body .pos-line-card{
        grid-template-columns:1fr 1fr!important;
        padding:8px!important;
    }
    .pos-refined-body .pos-line-main{
        grid-column:1/-1!important;
        grid-template-columns:1fr!important;
    }
    .pos-refined-body .pos-line-index,
    .pos-refined-body .pos-line-amount{
        grid-column:1/-1!important;
    }
    .ai-icon-toggle.kb-float-toggle{
        width:56px!important;
        height:56px!important;
        min-height:56px!important;
    }
    .ai-icon-toggle .ai-mini-icon{
        width:38px!important;
        height:38px!important;
        font-size:20px!important;
    }
}
@media(max-width:520px){
    .ai-icon-toggle.kb-float-toggle::after{
        display:none!important;
    }
}
html[data-theme="dark"] .ai-icon-toggle.kb-float-toggle::after,
body.theme-dark .ai-icon-toggle.kb-float-toggle::after{
    background:#111827!important;
    color:#f8fafc!important;
    border-color:#334155!important;
}

/* uPharma Cloud 1.1.25 - first impression auth polish */
.auth-screen{
    min-height:100vh!important;
    padding:clamp(14px,2.4vw,28px)!important;
    background-color:#eef6fb!important;
    background-size:cover!important;
    background-position:center!important;
}
.auth-shell{
    width:min(940px,94vw)!important;
    min-height:min(590px,calc(100vh - 32px))!important;
    grid-template-columns:minmax(300px,.95fr) minmax(340px,420px)!important;
    border-radius:22px!important;
    overflow:hidden!important;
    background:rgba(255,255,255,.9)!important;
    border:1px solid rgba(203,213,225,.82)!important;
    box-shadow:0 32px 90px rgba(15,23,42,.18)!important;
}
.auth-brand-panel{
    display:flex!important;
    min-height:0!important;
    padding:clamp(26px,3.6vw,42px)!important;
    justify-content:space-between!important;
    align-items:flex-start!important;
    background:
        linear-gradient(135deg,rgba(15,61,54,.94),rgba(15,23,42,.82)),
        radial-gradient(circle at 12% 12%,rgba(255,255,255,.22),transparent 18rem)!important;
    color:#fff!important;
    border:0!important;
    border-radius:0!important;
}
.auth-brand-panel::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    inset:-25%!important;
    background:
        radial-gradient(circle at 25% 18%,rgba(255,255,255,.24),transparent 16%),
        radial-gradient(circle at 76% 12%,rgba(56,189,248,.22),transparent 18%),
        radial-gradient(circle at 58% 82%,rgba(34,197,94,.22),transparent 20%)!important;
    animation:uerpHeroGlow 18s ease-in-out infinite alternate!important;
    pointer-events:none!important;
}
.auth-brand-panel::after{
    background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,255,255,0) 46%,rgba(255,255,255,.08))!important;
}
.auth-panel-logo{
    width:64px!important;
    height:64px!important;
    border-radius:16px!important;
    padding:7px!important;
    background:rgba(255,255,255,.95)!important;
    box-shadow:0 18px 45px rgba(2,8,23,.22)!important;
}
.auth-brand-copy{
    max-width:620px!important;
}
.auth-brand-eyebrow{
    display:inline-flex!important;
    width:max-content!important;
    padding:8px 12px!important;
    border:1px solid rgba(255,255,255,.24)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.12)!important;
    color:#d9f99d!important;
    font-size:12px!important;
    font-weight:950!important;
    letter-spacing:.1em!important;
    text-transform:uppercase!important;
}
.auth-brand-panel h1{
    max-width:11ch!important;
    margin:14px 0 10px!important;
    color:#fff!important;
    font-size:52px!important;
    line-height:.98!important;
    font-weight:950!important;
    letter-spacing:0!important;
}
.auth-brand-panel p{
    max-width:42rem!important;
    color:#e2f8ec!important;
    font-size:16px!important;
    line-height:1.55!important;
    font-weight:650!important;
}
.auth-brand-points{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:10px!important;
    margin-top:18px!important;
}
.auth-brand-points span{
    display:inline-flex!important;
    align-items:center!important;
    gap:8px!important;
    padding:7px 10px!important;
    border-radius:999px!important;
    border:1px solid rgba(255,255,255,.24)!important;
    background:rgba(255,255,255,.13)!important;
    color:#f8fafc!important;
    font-size:12px!important;
    font-weight:900!important;
}
.auth-brand-points span::before{
    content:""!important;
    width:7px!important;
    height:7px!important;
    border-radius:999px!important;
    background:#86efac!important;
    box-shadow:0 0 0 5px rgba(134,239,172,.14)!important;
}
.auth-shell .auth-card{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    border:0!important;
    border-left:1px solid rgba(226,232,240,.95)!important;
    padding:clamp(24px,3.2vw,38px)!important;
    background:rgba(255,255,255,.98)!important;
    color:#0f172a!important;
}
.auth-card .brand.center{
    justify-content:center!important;
    text-align:center!important;
    gap:12px!important;
    margin:0 auto 12px!important;
}
.auth-card .auth-logo{
    width:54px!important;
    height:54px!important;
    object-fit:contain!important;
    border-radius:14px!important;
    padding:6px!important;
    background:#fff!important;
    border:1px solid #e2e8f0!important;
    box-shadow:0 14px 30px rgba(15,23,42,.08)!important;
}
.auth-card .brand strong{
    display:block!important;
    font-size:18px!important;
    line-height:1.1!important;
    color:#0f172a!important;
}
.auth-card .brand small{
    display:block!important;
    margin-top:3px!important;
}
.auth-form-head{
    margin:6px auto 18px!important;
    text-align:center!important;
    max-width:390px!important;
}
.auth-kicker{
    margin:0 auto!important;
    font-size:12px!important;
    padding:8px 12px!important;
}
.auth-form-head h1{
    font-size:36px!important;
    line-height:1.06!important;
    font-weight:950!important;
    letter-spacing:0!important;
    margin:10px 0 8px!important;
}
.auth-form-head p,
.auth-form-lead{
    max-width:390px!important;
    margin:0 auto!important;
    color:#475569!important;
    font-size:14px!important;
    line-height:1.55!important;
    font-weight:600!important;
}
.modern-auth-form{
    gap:12px!important;
}
.auth-field{
    font-size:13px!important;
    font-weight:900!important;
}
.auth-field input{
    min-height:46px!important;
    border-radius:12px!important;
    font-size:15px!important;
    background:#f8fafc!important;
}
.auth-submit{
    min-height:48px!important;
    border-radius:12px!important;
    font-size:15px!important;
    padding:12px 14px!important;
}
.auth-trust-row{
    display:flex!important;
    justify-content:center!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    margin:18px 0 0!important;
}
.auth-trust-row span{
    display:inline-flex!important;
    padding:6px 9px!important;
    border-radius:999px!important;
    background:#f1f5f9!important;
    border:1px solid #e2e8f0!important;
    color:#334155!important;
    font-size:11px!important;
    font-weight:900!important;
}
.auth-footnote{
    margin:14px auto 0!important;
    max-width:390px!important;
    text-align:center!important;
    font-size:12px!important;
    color:#64748b!important;
}
.two-factor-form .auth-code-input{
    min-height:54px!important;
    border-radius:14px!important;
    font-size:25px!important;
    letter-spacing:.34em!important;
}
html[data-theme="dark"] .auth-screen{
    background-color:#020617!important;
}
html[data-theme="dark"] .auth-shell{
    background:rgba(15,23,42,.92)!important;
    border-color:#263244!important;
}
html[data-theme="dark"] .auth-shell .auth-card{
    background:#0f172a!important;
    border-left-color:#263244!important;
}
html[data-theme="dark"] .auth-trust-row span{
    background:#111827!important;
    border-color:#334155!important;
    color:#cbd5e1!important;
}
@media(max-width:980px){
    .auth-shell{
        grid-template-columns:1fr!important;
        width:min(760px,96vw)!important;
        min-height:0!important;
    }
    .auth-brand-panel{
        min-height:220px!important;
        padding:26px!important;
        text-align:center!important;
        align-items:center!important;
    }
    .auth-brand-panel h1{
        max-width:none!important;
        font-size:40px!important;
    }
    .auth-brand-panel p{
        margin-left:auto!important;
        margin-right:auto!important;
    }
    .auth-brand-points{
        justify-content:center!important;
    }
    .auth-shell .auth-card{
        border-left:0!important;
        border-top:1px solid #e2e8f0!important;
    }
    html[data-theme="dark"] .auth-shell .auth-card{
        border-top-color:#263244!important;
    }
}
@media(max-width:640px){
    .auth-screen{
        padding:12px!important;
    }
    .auth-shell{
        width:100%!important;
        border-radius:18px!important;
    }
    .auth-brand-panel{
        display:flex!important;
        min-height:170px!important;
        padding:20px!important;
    }
    .auth-panel-logo{
        width:52px!important;
        height:52px!important;
        border-radius:18px!important;
    }
    .auth-brand-eyebrow{
        font-size:10px!important;
        padding:7px 10px!important;
    }
    .auth-brand-panel h1{
        font-size:30px!important;
        margin:10px 0 6px!important;
    }
    .auth-brand-panel p{
        font-size:14px!important;
        line-height:1.5!important;
    }
    .auth-brand-points{
        display:none!important;
    }
    .auth-shell .auth-card{
        padding:20px!important;
    }
    .auth-form-head{
        margin-bottom:20px!important;
    }
    .auth-form-head h1{
        font-size:28px!important;
    }
    .auth-form-head p,
    .auth-form-lead{
        font-size:14px!important;
        line-height:1.55!important;
    }
    .auth-field input{
        min-height:44px!important;
        font-size:15px!important;
    }
    .auth-submit{
        min-height:46px!important;
    }
    .two-factor-form .auth-code-input{
        font-size:22px!important;
        letter-spacing:.24em!important;
    }
}

/* release 1.1.27 network strength pill */
.feature-update-pop{
    position:fixed;
    top:62px;
    right:16px;
    z-index:1190;
    display:flex;
    align-items:flex-start;
    gap:14px;
    width:min(420px,calc(100vw - 28px));
    padding:14px 14px 14px 16px;
    border-radius:12px;
    background:#f8fafc;
    color:#0f172a;
    border:1px solid rgba(22,163,74,.34);
    box-shadow:0 18px 48px rgba(15,23,42,.22);
}
.feature-update-pop strong{
    display:block;
    margin-bottom:4px;
    font-size:13px;
    letter-spacing:0;
}
.feature-update-pop span{
    display:block;
    color:#334155;
    font-size:13px;
    line-height:1.45;
}
.feature-update-pop button{
    flex:0 0 auto;
    min-height:30px;
    padding:6px 10px;
    border-radius:8px;
    border:1px solid rgba(148,163,184,.45);
    background:#ffffff;
    color:#0f172a;
    font-size:12px;
    cursor:pointer;
}
html[data-theme="dark"] .feature-update-pop,
body.theme-dark .feature-update-pop,
.pos-fullscreen-body .feature-update-pop{
    background:#0f172a;
    color:#f8fafc;
    border-color:rgba(34,197,94,.42);
    box-shadow:0 18px 50px rgba(0,0,0,.42);
}
html[data-theme="dark"] .feature-update-pop span,
body.theme-dark .feature-update-pop span,
.pos-fullscreen-body .feature-update-pop span{
    color:#cbd5e1;
}
html[data-theme="dark"] .feature-update-pop button,
body.theme-dark .feature-update-pop button,
.pos-fullscreen-body .feature-update-pop button{
    background:#111827;
    color:#f8fafc;
    border-color:rgba(71,85,105,.75);
}

/* uPharma Cloud ease-of-use quick action dock */
.ease-dock{position:fixed;left:calc(292px + 18px);bottom:18px;z-index:74}
.ease-dock-toggle{display:inline-flex!important;align-items:center!important;gap:8px!important;min-height:46px!important;max-width:none!important;padding:9px 13px 9px 9px!important;border:1px solid rgba(15,61,54,.22)!important;border-radius:999px!important;background:#ffffff!important;color:#0f172a!important;box-shadow:0 16px 38px rgba(15,23,42,.18)!important}
.ease-dock-toggle span{display:grid;place-items:center;width:28px;height:28px;border-radius:999px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff}
.ease-dock-toggle svg,.ease-action-icon svg,.ease-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.ease-dock-toggle strong{font-size:12px;font-weight:950}
.ease-dock-panel[hidden]{display:none!important}
.ease-dock-panel{position:absolute;left:0;bottom:58px;width:min(390px,calc(100vw - 28px));max-height:min(650px,calc(100vh - 92px));overflow:auto;border:1px solid rgba(203,213,225,.96);border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 28px 70px rgba(15,23,42,.24);padding:12px;backdrop-filter:blur(14px)}
.ease-dock-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px;padding:10px 11px;border:1px solid #dbe6f3;border-radius:14px;background:linear-gradient(135deg,#ffffff,#f3faf7)}
.ease-dock-head span{display:block;color:#64748b;font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.ease-dock-head h2{margin:2px 0 0;color:#0f172a;font-size:18px;line-height:1.15}
.ease-dock-head button{min-width:32px!important;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:999px!important;background:#fff!important;color:#0f172a!important;border-color:#d1dae7!important;font-size:18px!important}
.ease-dock-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
.ease-action-card{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;width:100%!important;max-width:none!important;min-height:52px!important;padding:8px 10px!important;border:1px solid #dbe4ee!important;border-radius:14px!important;background:#fff!important;color:#111827!important;text-decoration:none!important;text-align:left!important;white-space:normal!important;box-shadow:none!important}
.ease-action-card:hover,.ease-action-card:focus-visible{border-color:color-mix(in srgb,var(--primary) 36%,#dbe4ee)!important;background:#fbfdff!important;outline:none!important}
.ease-action-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#eef4ff;color:#1d4ed8}
.ease-action-card strong{min-width:0;overflow:hidden;text-overflow:ellipsis;color:#111827;font-size:13px;font-weight:950;line-height:1.2}
.ease-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.ease-link{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:8px;min-height:42px;padding:8px;border:1px solid transparent;border-radius:12px;color:#1f2937;text-decoration:none;background:#f8fafc}
.ease-link:hover,.ease-link:focus-visible{border-color:#cbd8e6;background:#fff;outline:none}
.ease-link span{display:grid;place-items:center;width:28px;height:28px;border-radius:10px;background:#e8f5ee;color:var(--primary)}
.ease-link strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:900}
html[data-theme="dark"] .ease-dock-toggle{background:#111827!important;color:#f8fafc!important;border-color:#334155!important;box-shadow:0 16px 42px rgba(0,0,0,.38)!important}
html[data-theme="dark"] .ease-dock-panel{background:rgba(15,23,42,.98);border-color:#334155;box-shadow:0 28px 72px rgba(0,0,0,.44)}
html[data-theme="dark"] .ease-dock-head{background:linear-gradient(135deg,#111827,#0f172a);border-color:#334155}
html[data-theme="dark"] .ease-dock-head h2,html[data-theme="dark"] .ease-action-card strong{color:#f8fafc}
html[data-theme="dark"] .ease-dock-head button,html[data-theme="dark"] .ease-action-card{background:#111827!important;color:#f8fafc!important;border-color:#334155!important}
html[data-theme="dark"] .ease-action-card:hover,html[data-theme="dark"] .ease-action-card:focus-visible,html[data-theme="dark"] .ease-link:hover,html[data-theme="dark"] .ease-link:focus-visible{background:#172033!important;border-color:#475569!important}
html[data-theme="dark"] .ease-link{background:#0f172a;color:#e5e7eb}
html[data-theme="dark"] .ease-link span{background:#13231e;color:#86efac}
@media(max-width:980px){.ease-dock{left:18px}}
@media(max-width:640px){.ease-dock{left:10px;bottom:12px}.ease-dock-toggle{min-height:42px!important;padding:7px 10px 7px 7px!important}.ease-dock-panel{bottom:52px;width:calc(100vw - 20px);max-height:calc(100vh - 82px)}.ease-dock-actions,.ease-link-grid{grid-template-columns:1fr 1fr}.ease-link strong{font-size:12px}}
.network-strength-pill{
    position:fixed;
    top:14px;
    right:16px;
    z-index:1200;
    display:flex;
    align-items:center;
    gap:9px;
    max-width:min(320px,calc(100vw - 28px));
    padding:9px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.96);
    color:#0f172a;
    border:1px solid rgba(148,163,184,.42);
    box-shadow:0 16px 40px rgba(15,23,42,.18);
    transition:opacity .25s ease,transform .25s ease,visibility .25s ease;
}
.network-strength-pill.is-hidden{
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    pointer-events:none;
}
.network-strength-pill strong{
    display:block;
    font-size:12px;
    line-height:1.1;
    white-space:nowrap;
}
.network-strength-pill small{
    display:block;
    font-size:10px;
    line-height:1.1;
    color:#64748b;
    max-width:190px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.network-strength-icon{
    display:inline-flex;
    align-items:flex-end;
    gap:2px;
    height:16px;
}
.network-strength-icon i{
    display:block;
    width:4px;
    border-radius:4px 4px 1px 1px;
    background:#94a3b8;
}
.network-strength-icon i:nth-child(1){height:6px}
.network-strength-icon i:nth-child(2){height:10px}
.network-strength-icon i:nth-child(3){height:14px}
.network-strength-pill.good .network-strength-icon i{background:#16a34a}
.network-strength-pill.ok .network-strength-icon i{background:#2563eb}
.network-strength-pill.weak .network-strength-icon i{background:#f59e0b}
.network-strength-pill.bad .network-strength-icon i{background:#dc2626}
html[data-theme="dark"] .network-strength-pill,
.pos-fullscreen-body .network-strength-pill{
    background:rgba(15,23,42,.96);
    color:#f8fafc;
    border-color:rgba(71,85,105,.7);
    box-shadow:0 16px 42px rgba(0,0,0,.38);
}
html[data-theme="dark"] .network-strength-pill small,
.pos-fullscreen-body .network-strength-pill small{
    color:#cbd5e1;
}
@media(max-width:640px){
    .feature-update-pop{
        top:58px;
        right:10px;
        left:10px;
        width:auto;
        flex-direction:column;
        gap:10px;
    }
    .feature-update-pop button{
        align-self:flex-start;
    }
    .network-strength-pill{
        top:10px;
        right:10px;
        padding:8px 10px;
    }
    .network-strength-pill small{
        max-width:130px;
    }
}

/* uPharma Cloud 1.1.29 - controlled alert coverage and page navigation polish */
.settings-jump-menu#settings-sections{
    position:relative!important;
    border-left:4px solid var(--primary)!important;
}
.settings-jump-menu#settings-sections .settings-section-menu{
    align-items:stretch!important;
}
.settings-jump-menu#settings-sections .settings-section-button{
    min-height:88px!important;
}
.settings-jump-menu#settings-sections .settings-section-button:focus-visible{
    outline:3px solid var(--focus)!important;
    outline-offset:2px!important;
}
.back-to-top{
    left:50%!important;
    right:auto!important;
    bottom:18px!important;
    z-index:70!important;
    transform:translate(-50%,14px)!important;
}
.back-to-top.is-visible{
    transform:translate(-50%,0)!important;
}
.back-to-top:hover,
.back-to-top:focus-visible{
    transform:translate(-50%,-3px)!important;
}
@media(max-width:640px){
    .settings-jump-menu#settings-sections .settings-section-menu{
        grid-template-columns:1fr!important;
    }
    .settings-jump-menu#settings-sections .settings-section-button{
        min-height:auto!important;
    }
    .back-to-top{
        bottom:14px!important;
    }
}

/* uPharma Cloud AI assistant command button and chat prompt polish */
.kb-float{
    right:18px!important;
    bottom:18px!important;
    z-index:75!important;
}
.ai-icon-toggle.kb-float-toggle{
    width:auto!important;
    min-width:164px!important;
    height:58px!important;
    min-height:58px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    padding:8px 14px 8px 8px!important;
    border-radius:18px!important;
    border:1px solid rgba(255,255,255,.24)!important;
    background:linear-gradient(135deg,var(--primary) 0%,color-mix(in srgb,var(--primary) 72%,var(--accent)) 54%,var(--accent) 100%)!important;
    color:#fff!important;
    box-shadow:0 18px 42px rgba(2,8,23,.28),0 0 0 5px rgba(var(--primary-rgb,15,61,54),.10),inset 0 1px 0 rgba(255,255,255,.16)!important;
    opacity:.86!important;
    overflow:hidden!important;
    isolation:isolate!important;
}
.ai-icon-toggle.kb-float-toggle::before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    inset:-1px!important;
    border-radius:18px!important;
    background:linear-gradient(115deg,rgba(255,255,255,.24),rgba(255,255,255,0) 38%,rgba(var(--primary-rgb,15,61,54),.18) 68%,rgba(var(--accent-rgb,22,163,74),.22))!important;
    pointer-events:none!important;
    opacity:.86!important;
    filter:none!important;
    z-index:0!important;
    animation:none!important;
}
.ai-icon-toggle.kb-float-toggle::after{
    content:""!important;
    display:block!important;
    position:absolute!important;
    inset:auto 12px 8px 58px!important;
    height:1px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:linear-gradient(90deg,rgba(var(--accent-rgb,22,163,74),.82),rgba(var(--primary-rgb,15,61,54),.16))!important;
    box-shadow:none!important;
    animation:none!important;
}
.ai-icon-toggle.kb-float-toggle>*{
    position:relative!important;
    z-index:1!important;
}
.ai-icon-toggle .ai-emblem{
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border-radius:14px!important;
    background:#fff!important;
    color:var(--primary)!important;
    border:1px solid rgba(255,255,255,.64)!important;
    box-shadow:0 10px 24px rgba(var(--accent-rgb,22,163,74),.18),inset 0 0 0 1px rgba(var(--primary-rgb,15,61,54),.10)!important;
}
.ai-icon-toggle .ai-star-icon{
    display:grid!important;
    place-items:center!important;
    font-size:24px!important;
    line-height:1!important;
    filter:drop-shadow(0 4px 8px rgba(var(--accent-rgb,22,163,74),.26))!important;
    animation:uphAiStarTwinkle 1.75s ease-in-out infinite!important;
}
.ai-icon-toggle .ai-toggle-copy{
    display:grid!important;
    gap:2px!important;
    text-align:left!important;
    line-height:1.05!important;
    padding-right:12px!important;
}
.ai-icon-toggle .ai-toggle-copy strong{
    color:#fff!important;
    font-size:14px!important;
    font-weight:950!important;
    letter-spacing:0!important;
}
.ai-icon-toggle .ai-toggle-copy em{
    color:color-mix(in srgb,var(--accent) 24%,#fff)!important;
    font-size:11px!important;
    font-style:normal!important;
    font-weight:850!important;
    letter-spacing:0!important;
}
.ai-icon-toggle .ai-live-dot{
    position:absolute!important;
    right:13px!important;
    top:12px!important;
    display:block!important;
    width:8px!important;
    height:8px!important;
    border-radius:999px!important;
    background:var(--accent)!important;
    box-shadow:0 0 0 5px rgba(var(--accent-rgb,22,163,74),.14),0 0 18px rgba(var(--accent-rgb,22,163,74),.72)!important;
    animation:uphAiLiveDot 1.9s ease-in-out infinite!important;
}
.ai-icon-toggle .ai-emoji,
.ai-icon-toggle .ai-mini-icon,
.ai-icon-toggle .ai-corner-signal{
    display:none!important;
}
.ai-icon-toggle.kb-float-toggle:hover,
.ai-icon-toggle.kb-float-toggle:focus-visible{
    transform:translateY(-2px)!important;
    opacity:1!important;
    box-shadow:0 22px 50px rgba(2,8,23,.34),0 0 0 6px rgba(var(--accent-rgb,22,163,74),.12),inset 0 1px 0 rgba(255,255,255,.2)!important;
}
.kb-float.open .ai-icon-toggle.kb-float-toggle,
.kb-float.is-thinking .ai-icon-toggle.kb-float-toggle{
    opacity:1!important;
    box-shadow:0 22px 54px rgba(2,8,23,.36),0 0 0 6px rgba(var(--accent-rgb,22,163,74),.12),inset 0 1px 0 rgba(255,255,255,.2)!important;
}
.kb-float.is-thinking .ai-icon-toggle .ai-emblem{
    animation:uphAiThinking 1.2s ease-in-out infinite!important;
}
.kb-float-panel{
    bottom:70px!important;
    width:min(430px,calc(100vw - 28px))!important;
    border-radius:16px!important;
    border:1px solid var(--line)!important;
    background:#fff!important;
    backdrop-filter:none!important;
    box-shadow:0 22px 55px rgba(15,23,42,.20)!important;
    overflow:hidden!important;
}
.kb-float-head{
    padding:12px 14px!important;
    background:#f8fafc!important;
    color:var(--text)!important;
    border-bottom:1px solid var(--line)!important;
}
.kb-float-head h2{
    font-size:15px!important;
}
.kb-float-messages{
    min-height:170px!important;
    max-height:320px!important;
    padding:12px!important;
    background:#fff!important;
}
.kb-float-empty{
    font-size:13px!important;
    border:1px dashed var(--line)!important;
    border-radius:10px!important;
    padding:12px!important;
    background:#f8fafc!important;
    text-align:left!important;
}
.kb-float-quick{
    gap:6px!important;
    padding:8px 10px!important;
}
.kb-float-chip{
    min-height:26px!important;
    padding:5px 8px!important;
    border-radius:8px!important;
    background:#f8fafc!important;
    border-color:var(--line)!important;
    box-shadow:none!important;
    font-size:11px!important;
    line-height:1.1!important;
    font-weight:850!important;
}
.kb-float-form{
    padding:10px 12px 12px!important;
    background:#fff!important;
    border-top:1px solid var(--line)!important;
}
.kb-float-form textarea{
    min-height:70px!important;
    border-radius:10px!important;
    padding:9px!important;
}
.kb-float-actions{
    margin-top:7px!important;
    align-items:center!important;
}
.kb-float-status{
    font-size:12px!important;
    color:var(--muted)!important;
    min-height:16px!important;
}
.kb-float-msg{
    display:block!important;
    margin-bottom:8px!important;
}
.kb-float-msg.is-user{
    text-align:right!important;
}
.kb-float-msg-text{
    display:inline-block!important;
    max-width:88%!important;
    border-radius:12px!important;
    padding:8px 10px!important;
    font-size:13px!important;
    line-height:1.55!important;
    box-shadow:none!important;
}
.kb-float-msg.is-user .kb-float-msg-text{
    background:#eef2ff!important;
    border-color:#dbe4ff!important;
}
.kb-float-msg.is-assistant .kb-float-msg-text{
    background:#f8fafc!important;
    border-color:var(--line)!important;
}
.kb-float-msg-text p{
    margin:0 0 10px!important;
}
.kb-float-msg-text p:last-child,
.kb-float-msg-text ul:last-child,
.kb-float-msg-text ol:last-child{
    margin-bottom:0!important;
}
.kb-float-msg-text h3{
    margin:4px 0 7px!important;
    font-size:13px!important;
    line-height:1.25!important;
    font-weight:950!important;
    color:#0f172a!important;
}
.kb-float-msg-text ul,
.kb-float-msg-text ol{
    margin:2px 0 11px 18px!important;
    padding:0!important;
}
.kb-float-msg-text li{
    margin:0 0 6px!important;
    padding-left:2px!important;
}
html[data-theme="dark"] .kb-float-panel,
html[data-theme="dark"] .kb-float-messages,
html[data-theme="dark"] .kb-float-form{
    background:#0f172a!important;
    border-color:#334155!important;
}
html[data-theme="dark"] .kb-float-head,
html[data-theme="dark"] .kb-float-empty,
html[data-theme="dark"] .kb-float-chip,
html[data-theme="dark"] .kb-float-msg.is-assistant .kb-float-msg-text{
    background:#111827!important;
    color:#f8fafc!important;
    border-color:#334155!important;
}
html[data-theme="dark"] .kb-float-msg-text h3{
    color:#f8fafc!important;
}
@keyframes uphAiLiveDot{0%,100%{opacity:.7;transform:scale(.86)}45%{opacity:1;transform:scale(1.15)}}
@keyframes uphAiThinking{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes uphAiStarTwinkle{0%,100%{transform:translateY(0) rotate(-7deg) scale(1)}45%{transform:translateY(-2px) rotate(8deg) scale(1.12)}72%{transform:translateY(1px) rotate(0deg) scale(.98)}}
@media(max-width:640px){
    .ai-icon-toggle.kb-float-toggle{
        width:58px!important;
        min-width:58px!important;
        height:58px!important;
        min-height:58px!important;
        padding:8px!important;
        justify-content:center!important;
    }
    .ai-icon-toggle .ai-emblem{
        width:42px!important;
        height:42px!important;
        min-width:42px!important;
    }
    .ai-icon-toggle .ai-toggle-copy,
    .ai-icon-toggle .ai-live-dot,
    .ai-icon-toggle.kb-float-toggle::after{
        display:none!important;
    }
    .kb-float-panel{
        right:-6px!important;
        width:calc(100vw - 20px)!important;
        bottom:64px!important;
    }
}
/* uPharma Cloud 1.1.47 - license details */
.detail-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:16px 0 0}
.detail-list div{border:1px solid var(--line);border-radius:8px;padding:12px;background:rgba(255,255,255,.72)}
.detail-list dt{font-size:12px;font-weight:850;text-transform:uppercase;color:var(--muted);letter-spacing:.04em;margin:0 0 6px}
.detail-list dd{margin:0;overflow-wrap:anywhere}
html[data-theme="dark"] .detail-list div{background:rgba(15,23,42,.78)}

/* uPharma Cloud 1.1.49 - taller AI prompts and report links */
.ai-ask-card textarea,
.ai-composer-shell textarea{min-height:220px!important}
.kb-float-panel,.ai-copilot-panel{width:min(560px,calc(100vw - 28px))!important}
.kb-float-messages{min-height:260px!important;max-height:520px!important}
.kb-float-form textarea{min-height:132px!important}
.ai-response-body a,.kb-float-msg-text a{color:var(--primary);font-weight:850;text-decoration:underline;text-underline-offset:2px}
.ai-report-suggestions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0 14px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.ai-report-suggestions > span{font-size:11px;font-weight:950;text-transform:uppercase;color:var(--muted);letter-spacing:.08em;margin-right:2px}
.ai-report-chip{min-height:30px;padding:6px 10px;border-radius:8px;border-color:#bbf7d0;background:#ecfdf3;color:#065f46;font-size:12px;font-weight:900;box-shadow:none}
.ai-report-chip:hover,.ai-report-chip:focus-visible{border-color:var(--primary);background:#dcfce7;box-shadow:0 0 0 3px rgba(15,61,54,.10);outline:none}
html[data-theme="dark"] .ai-report-suggestions{background:#0f172a;border-color:#334155}
html[data-theme="dark"] .ai-report-chip{background:#064e3b;color:#d1fae5;border-color:#047857}
html[data-theme="dark"] .ai-report-chip:hover,html[data-theme="dark"] .ai-report-chip:focus-visible{background:#065f46;border-color:#34d399}
@media(max-width:640px){
    .kb-float-messages{min-height:220px!important;max-height:440px!important}
    .kb-float-form textarea{min-height:118px!important}
    .ai-report-suggestions{display:grid;grid-template-columns:1fr 1fr}
    .ai-report-suggestions > span{grid-column:1/-1}
}

/* uPharma Cloud 1.1.54 - training mode coaching */
.training-mode-panel{display:grid!important;gap:14px!important;border-color:color-mix(in srgb,var(--primary) 28%,var(--line))!important;background:linear-gradient(180deg,#ffffff,#f8fffb)!important}
.training-mode-panel h2{margin:2px 0 4px!important;font-size:22px!important}
.training-mode-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.training-mode-steps article{display:grid;gap:6px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.training-mode-steps strong{font-size:13px;color:var(--text)}
.training-mode-steps span{font-size:12px;line-height:1.45;color:var(--muted)}
.training-mode-metrics,.training-mode-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.training-mode-metrics span{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;background:#eef6fb;color:#12323a;font-size:12px;font-weight:850}
.training-role-panel{display:grid;gap:14px;margin-bottom:16px;padding:16px;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:8px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.05)}
.training-role-panel h2{margin:2px 0 5px;font-size:22px}
.training-role-panel p{margin:0;color:var(--muted);line-height:1.45}
.training-role-path{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}
.training-role-path a{display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:var(--text);text-decoration:none}
.training-role-path a:hover,.training-role-path a:focus-visible{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,61,54,.08);outline:none}
.training-role-path strong{font-size:13px}
.training-role-path span{font-size:12px;color:var(--muted);line-height:1.35}
html[data-theme="dark"] .training-mode-panel{background:linear-gradient(180deg,#111827,#0f172a)!important}
html[data-theme="dark"] .training-mode-steps article{background:#111827;border-color:#334155}
html[data-theme="dark"] .training-mode-metrics span{background:#172554;color:#bfdbfe}
html[data-theme="dark"] .training-role-panel{background:#111827;border-color:#334155}
html[data-theme="dark"] .training-role-path a{background:#0f172a;border-color:#334155}
@media(max-width:820px){.training-mode-steps{grid-template-columns:1fr}}
