/* Kebarick POS corporate retail UI — cumulative, non-destructive styling. */
:root{--kb-brand-navy:#183b54;--kb-brand-blue:#2768a4;--kb-brand-teal:#16766b;--kb-ink:#223b4f;--kb-line:#dce6ec;--kb-surface:#f4f7f9}
/* Public pricing inherits the public site design. No exposed skip link. */
body.pos-pricing-page{font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;color:var(--kb-ink)}
body.pos-pricing-page .pos-skip{position:fixed;top:8px;left:-200vw;z-index:99999;background:white;color:#184e7d;border:2px solid #2768a4;padding:9px 14px;border-radius:7px}
body.pos-pricing-page .pos-skip:focus-visible{left:12px}
body.pos-pricing-page .pricing-intro{padding-top:46px;padding-bottom:23px}
body.pos-pricing-page .pricing-intro h1{font-size:clamp(29px,3.5vw,42px);letter-spacing:-.035em;max-width:850px;margin:11px auto}
body.pos-pricing-page .pricing-intro>p{font-size:14px;line-height:1.55}
body.pos-pricing-page .pricing-trial-note{font-size:12px}
body.pos-pricing-page .pricing-body{padding-bottom:28px}
body.pos-pricing-page .pricing-card{box-shadow:none;padding:18px 16px;border-radius:11px}
body.pos-pricing-page .pricing-card.pricing-featured{box-shadow:0 4px 16px #26496514;border-color:#8bb5c7;background:#fafdff}
body.pos-pricing-page .pricing-card h2{font-size:19px}
body.pos-pricing-page .pricing-premise{padding:23px;gap:16px}
body.pos-pricing-page .pricing-premise h2{font-size:25px}
body.pos-pricing-page .pricing-premise-action{padding:19px}
body.pos-pricing-page .pricing-faq{padding-top:23px;padding-bottom:36px}
body.pos-pricing-page .pricing-faq h2{font-size:23px}
body.pos-pricing-page .pricing-cta-inner{padding-top:25px;padding-bottom:25px}
body.pos-pricing-page a{text-decoration:none}
body.pos-pricing-page .pos-site-header{box-shadow:none;border-bottom:1px solid #e5ebf0}
body.pos-pricing-page .pos-btn{border-radius:9px}
/* Business shell: denser navigation, restrained headings, real table hierarchy. */
body.pos-stage5-app{background:#f3f6f8!important;color:#203c52!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important}
body.pos-stage5-app .pos5-hero{padding:18px 22px!important;border-radius:11px!important;min-height:auto!important;background:linear-gradient(105deg,#174261,#245e91)!important}
body.pos-stage5-app .pos5-hero h1{font-size:clamp(20px,2vw,27px)!important;font-weight:680!important;line-height:1.15!important;margin:4px 0!important}
body.pos-stage5-app .pos5-hero p{font-size:13px!important;margin:3px 0 0!important}
body.pos-stage5-app .pos5-card,body.pos-stage5-app .card{border-radius:10px!important;box-shadow:0 1px 3px #12334a0a!important}
body.pos-stage5-app .dash aside{scrollbar-width:thin}
body.pos-stage5-app .dash aside button,body.pos-stage5-app .dash aside a{font-size:12px!important;font-weight:570!important;line-height:1.3!important;min-height:36px!important;padding-block:8px!important}
body.pos-stage5-app .dash aside .kb-nav-emoji{display:inline-flex;min-width:22px;justify-content:center;font-size:15px;vertical-align:middle}
body.pos-stage5-app table{border-collapse:collapse;width:100%;font-size:12.5px}
body.pos-stage5-app th,body.pos-stage5-app td{padding:10px 12px!important;border-bottom:1px solid #e7edf1!important}
body.pos-stage5-app th{font-size:11px!important;letter-spacing:.01em!important;font-weight:640!important;color:#516a7b!important;background:#f4f8fa}
body.pos-stage5-app tbody tr:hover{background:#f5f9fb}
body.pos-stage5-app input,body.pos-stage5-app select,body.pos-stage5-app textarea{border-radius:7px!important;max-width:100%}
body.pos-stage5-app button{border-radius:7px!important}
body.pos-stage5-app .kb-session-loading{margin:17vh auto 0;display:flex;align-items:center;gap:15px;width:min(90vw,390px);background:white;border:1px solid #dce7ee;border-radius:14px;padding:25px 28px;box-shadow:0 9px 35px #28496713}
.kb-loading-mark{font-weight:800;font-size:24px;background:#235fa2;color:white;display:grid;place-items:center;width:48px;height:48px;border-radius:11px;flex:none}
.kb-session-loading strong{display:block;color:#173d58}.kb-session-loading small{display:block;color:#60798d;margin-top:5px;font-size:12px}
.kb-loading-spinner{width:18px;height:18px;border:2px solid #c1d4df;border-top-color:#18776b;border-radius:50%;animation:kb-spin .85s linear infinite;margin-left:auto;flex:none}
@keyframes kb-spin{to{transform:rotate(360deg)}}
.kb-connect-error{margin:12vh auto;max-width:400px;padding:20px;background:white;border:1px solid #dce7ee;border-radius:11px;color:#254960}
/* Cashier: a real, reachable workspace, not a full-screen navigation dead end. */
body.kb-cashier{background:#f3f6f8!important;color:#25445b!important}
body.kb-cashier .till-header{background:linear-gradient(110deg,#17364f,#245c83)!important;gap:10px!important}
body.kb-cashier .till-brand strong{font-size:21px!important;font-weight:710!important}
body.kb-cashier .brand-icon{display:inline-grid!important;place-items:center;background:#2c5674!important;color:white!important;font-size:21px!important;border:0!important}
body.kb-cashier .till-products,body.kb-cashier .till-basket,body.kb-cashier .till-payment,body.kb-cashier .till-popular-products{border-radius:11px!important;box-shadow:0 1px 4px #1d405012!important}
body.kb-cashier .till-products h2,body.kb-cashier .till-basket h2,body.kb-cashier .till-payment h2{font-size:17px!important;font-weight:680!important}
body.kb-cashier .till-quick-actions button{font-weight:610!important;font-size:12px!important}
body.kb-cashier .kb-menu-toggle{align-items:center;display:inline-flex;gap:6px;background:#eaf1f8!important;color:#183d5b!important;border:1px solid #bcd1e1!important;border-radius:8px!important;padding:10px 13px!important;font-size:13px;font-weight:700;white-space:nowrap}
.kb-menu-backdrop{position:fixed;inset:0;z-index:7990;background:#0a223765;backdrop-filter:blur(1px)}.kb-menu-backdrop[hidden]{display:none!important}
.kb-workspace-menu{position:fixed;z-index:7991;top:0;bottom:0;left:0;width:min(320px,90vw);background:#f9fbfc;box-shadow:14px 0 55px #09273d32;transform:translateX(-110%);transition:transform .2s ease;overflow-y:auto;padding:20px 15px;visibility:hidden}
.kb-workspace-menu.kb-menu-visible{transform:translateX(0);visibility:visible}
.kb-menu-title{display:flex;align-items:center;justify-content:space-between;padding:3px 5px 12px;border-bottom:1px solid #dbe5ec;color:#173d59}
.kb-menu-title strong{font-size:17px}.kb-menu-title button{border:1px solid #d4e1e8!important;border-radius:7px!important;background:white!important;color:#24465f!important;padding:5px 11px!important}
.kb-workspace-menu>p{font-size:11px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#6c8190;padding:13px 9px 6px;margin:0}
.kb-workspace-menu nav{display:flex;flex-direction:column;gap:3px}.kb-workspace-menu nav a{display:block;font-size:13px;font-weight:570;color:#23445d;text-decoration:none;padding:11px 12px;border-radius:7px}
.kb-workspace-menu nav a:hover,.kb-workspace-menu nav a[aria-current=page]{background:#e5eef5;color:#0e4d76}
.kb-workspace-menu>small{display:block;margin:22px 10px 0;border-top:1px solid #dbe5ec;padding:13px 0;line-height:1.5;color:#667e8f}
body.kb-cashier .kb-payment-allocation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.kb-cashier .kb-payment-allocation>#kb-mpesa-amount-row:only-child{grid-column:1/-1}
body.kb-cashier .kb-fill-balance{display:block;margin:6px 0 0!important;padding:5px 9px!important;background:transparent!important;border:1px solid #bbd4cc!important;color:#216b59!important;font-size:11px!important;border-radius:6px!important}
body.kb-cashier .kb-allocation-check{margin:9px 0 0;font-size:11px;font-weight:650;color:#73502b;background:#fff9ee;border:1px solid #ecd9b7;padding:8px;border-radius:7px}
body.kb-cashier .kb-allocation-check[data-valid=true]{color:#17624c;background:#e9f7ee;border-color:#c7e5d4}
body.kb-cashier .kb-method{font-weight:630!important;border-radius:8px!important}
body.kb-cashier #pay-online{border-radius:9px!important;background:#2567a5!important}
body.kb-cashier .kb-mpesa-panel{background:#f2f8f5!important}
/* Admin navigation and action controls */
body.pos-stage8-admin .pa-tabs .pa-emoji{font-size:15px;display:inline-flex;width:22px;justify-content:center}
body.pos-stage8-admin .pa-stat{padding:12px!important}
body.pos-stage8-admin .pa-heading{background:white!important}
body.pos-stage8-admin .pa-tabs button{font-weight:560!important}
@media(max-width:760px){body.kb-cashier .till-header{flex-wrap:wrap}body.kb-cashier .kb-payment-allocation{grid-template-columns:1fr}body.pos-pricing-page .pricing-intro h1{font-size:30px}}
@media(prefers-reduced-motion:reduce){.kb-workspace-menu,.kb-loading-spinner{animation:none;transition:none}}
/* Shared treatments for secondary business modules: stock, purchasing, people, sales,
   support, reports and billing. Keep the specialised cashier layout independent. */
body.pos-ui-modern:not(.pos-stage5-app){background:#f3f6f8!important;color:#25445a;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif!important}
body.pos-ui-modern .top{background:linear-gradient(106deg,#183c55,#245d83)!important;box-shadow:none!important}
body.pos-ui-modern :where(.shell,.doc-shell,.tools,.int-wrap){max-width:1560px}
body.pos-ui-modern :where(h1,h2,h3){font-weight:690!important;letter-spacing:-.022em}
body.pos-ui-modern h1{font-size:clamp(22px,2.5vw,30px)!important}
body.pos-ui-modern h2{font-size:clamp(17px,1.8vw,21px)!important}
body.pos-ui-modern h3{font-size:16px!important}
body.pos-ui-modern :where(.card,.panel,.box){border-radius:10px!important;box-shadow:0 1px 3px #163c5610!important}
body.pos-ui-modern :where(button,.btn){border-radius:8px!important;font-weight:610!important;box-shadow:none!important}
body.pos-ui-modern :where(input,select,textarea){border-radius:7px!important}
body.pos-ui-modern table{width:100%;border-collapse:collapse;font-size:12.5px}
body.pos-ui-modern table th{font-size:11px!important;font-weight:680!important;text-align:left;color:#526e80!important;background:#f3f7fa!important;letter-spacing:.01em;padding:10px 11px!important}
body.pos-ui-modern table td{padding:9px 11px!important;border-bottom:1px solid #e4ebf0!important}
body.pos-ui-modern table tbody tr:hover{background:#f7fafb}
body.pos-ui-modern .kb-nav-emoji{font-size:14px;display:inline-block;margin-right:6px}
body.kb-cashier #kb-mpesa-cash-row.hidden + #kb-mpesa-amount-row{grid-column:1/-1}
