/* SCUZO ONE RC6.6.9.8 — FRUITFUL MODERN THEME — UAT ONLY
   Pure visual overrides: no element order, event handler, invoice or database modifications.
   Keep all RC6695-6697 mobile navigation and sticky-cart mechanics unchanged. */
:root {
  --navy:#312462;
  --navy2:#5c35b5;
  --blue:#6150d6;
  --red:#e84664;
  --gold:#eea519;
  --green:#129b78;
  --orange:#ed7d40;
  --ink:#292647;
  --muted:#676581;
  --line:#e7def6;
  --bg:#f8f6fc;
  --card:#fff;
  --soft:#f6f0ff;
  --danger:#c73553;
  --shadow:0 13px 35px rgba(58,35,112,.12);
}
body{background:#f8f6fc;color:var(--ink)}
button,input,select,textarea{font-family:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a98aff;outline-offset:2px}
/* Brand header: energetic, still readable */
#appView .topbar{
  background:linear-gradient(115deg,#35216f 0%,#51369e 42%,#693cc4 74%,#f15f89 130%);
  border-bottom:2px solid rgba(255,255,255,.15);
  box-shadow:0 7px 27px rgba(67,41,125,.23);
}
#appView .topbar .header-brand-copy .product-name{color:#fff}
#appView .topbar .byline{color:#f5d5ff}
#appView .topbar .store-head select{background:#fff;color:#392b72;border-color:#ddc7f6}
#appView .top-status .badge{background:rgba(255,255,255,.18);color:#fff;border:1px solid rgba(255,255,255,.26)}
#appView .connection-box{color:#f8ecff}
/* Calm coloured navigation; preserve existing layout/scroll behavior */
#appView .sidebar{background:linear-gradient(180deg,#fff 0%,#fbf7ff 55%,#fffaf4 100%);border-right-color:#ece4f8}
#appView .sidebar button,#appView .sidebar a.knowledge-nav-link{color:#65577e;transition:background-color .12s,box-shadow .12s}
#appView .sidebar button:hover,#appView .sidebar a.knowledge-nav-link:hover{background:#f5eeff;color:#4a2e8f}
#appView .sidebar button.active{
  background:linear-gradient(135deg,#f2e9ff,#e8e5ff);
  color:#5230a6;
  box-shadow:inset 4px 0 #a26afa,0 3px 12px rgba(116,79,189,.13);
}
#appView .sidebar .side-label{color:#977cae}
/* Warm canvas */
#appView .view-stage{background:radial-gradient(circle at 12% -8%,#fff0ed 0,transparent 32%),radial-gradient(circle at 92% 0%,#ebe9ff 0,transparent 38%),#f8f7fc}
#dashboardView .page-head{padding:18px 22px;border:1px solid #ede1fa;border-radius:24px;background:linear-gradient(115deg,#fff 0%,#faf4ff 59%,#fff0e9 100%);box-shadow:0 11px 28px rgba(88,49,145,.08)}
#dashboardView .page-head h1{color:#372568}
#dashboardView .page-head .eyebrow{color:#a347aa}
#appView .primary{background:linear-gradient(115deg,#6742c7,#8b52d2);color:#fff;border-color:transparent;box-shadow:0 7px 18px rgba(89,59,173,.20)}
#appView .primary:hover:not(:disabled){filter:brightness(1.08)}
#appView .secondary{background:#f7f0ff;color:#51368e;border-color:#e6d7fb}
#appView .soft-danger{background:#fff0f4;color:#c23961;border-color:#f6cddd}
#appView .eyebrow{color:#9a4bc3}
#appView .card{border-color:#eee3f7;box-shadow:0 8px 27px rgba(61,39,119,.065);border-radius:20px}
#appView .kpi{border-color:#eadff7;box-shadow:0 7px 24px rgba(61,39,119,.08);border-radius:20px}
#appView .kpi:nth-child(4n+1){background:linear-gradient(150deg,#fff,#f1ecff);border-top:4px solid #8760df}
#appView .kpi:nth-child(4n+2){background:linear-gradient(150deg,#fff,#fff0f0);border-top:4px solid #f07b8b}
#appView .kpi:nth-child(4n+3){background:linear-gradient(150deg,#fff,#eafaf4);border-top:4px solid #22ae84}
#appView .kpi:nth-child(4n){background:linear-gradient(150deg,#fff,#fff5e3);border-top:4px solid #edb456}
#appView .kpi:nth-child(4n+1):after{background:#e4dafa}
#appView .kpi:nth-child(4n+2):after{background:#ffdae3}
#appView .kpi:nth-child(4n+3):after{background:#d4f3e8}
#appView .kpi:nth-child(4n):after{background:#ffe5b6}
#appView .kpi strong{color:#35275e}
#appView .module-card{border-color:#eadff6;box-shadow:0 8px 20px rgba(72,47,120,.07);border-radius:20px}
#appView .module-card:nth-child(5n+1){background:linear-gradient(150deg,#fff,#f1eaff);border-bottom:3px solid #9266e4}
#appView .module-card:nth-child(5n+2){background:linear-gradient(150deg,#fff,#ffedf1);border-bottom:3px solid #ef789b}
#appView .module-card:nth-child(5n+3){background:linear-gradient(150deg,#fff,#edfbf6);border-bottom:3px solid #37b793}
#appView .module-card:nth-child(5n+4){background:linear-gradient(150deg,#fff,#fff5e7);border-bottom:3px solid #f0bd61}
#appView .module-card:nth-child(5n){background:linear-gradient(150deg,#fff,#eaf2ff);border-bottom:3px solid #75a9f0}
#appView .module-card:hover{border-color:#ae91ea;transform:translateY(-2px)}
#appView .module-card strong{color:#382b62}
/* Fast, colourful billing, with conservative geometry. */
#posView .catalog-panel{background:radial-gradient(circle at 95% 0%,#ffeef0,transparent 45%),#f9f7fd}
#posView .customer-gate,#posView .order-source-panel{
  border:1px solid #ead9f7;background:linear-gradient(112deg,#fff,#fbf6ff 68%,#fff1e9);
  box-shadow:0 6px 19px rgba(96,55,150,.065);
}
#posView .step-number{background:linear-gradient(135deg,#8d56da,#6247bd);color:#fff;border-color:transparent}
#posView .catalog-toolbar .gate-title strong{color:#42317e}
#posView .category-tabs button{border-color:#e5d9f9;background:#fff;color:#67518f}
#posView .category-tabs button.active{background:linear-gradient(120deg,#663bca,#9356d8);border-color:#663bca;color:#fff;box-shadow:0 5px 12px rgba(110,69,185,.16)}
#posView #productGrid .product{border-color:#eee2f9;background:linear-gradient(165deg,#fff 55%,#faf7ff);box-shadow:0 5px 15px rgba(74,39,129,.065);border-radius:18px}
#posView #productGrid .product:nth-child(4n+1) .product-art{background:linear-gradient(145deg,#ffdee5,#fff0eb)}
#posView #productGrid .product:nth-child(4n+2) .product-art{background:linear-gradient(145deg,#eee1ff,#e5e9ff)}
#posView #productGrid .product:nth-child(4n+3) .product-art{background:linear-gradient(145deg,#def8f1,#eaf8fa)}
#posView #productGrid .product:nth-child(4n) .product-art{background:linear-gradient(145deg,#fff0d3,#fff5eb)}
#posView #productGrid .product .price{color:#6a38bd}
#posView #productGrid .product:hover:not(:disabled){border-color:#b694ec}
#posView .cart-panel{background:#fffafc;border-color:#eddff5}
#posView .cart-head h2{color:#402b79}
#posView .count-pill{background:#f0e9ff;color:#623bb4}
#posView .cart-checkout-footer,#posView .cart-quick-controls{background:#fffafc}
#posView .cart-checkout-footer .payable strong,#posView #cartPayable{color:#683cc2}
#posView .pos-payment-quick button.is-selected{box-shadow:inset 0 0 0 2px #885edc}
#posView .cart-line .line-type{background:#f2e7ff;color:#6635af}
/* Keep touch interactions, selected state and sticky strip intact */
@media screen and (max-width:700px){
  body.scuzo-mobile-billing .scuzo-mobile-billing-toolbar{background:linear-gradient(110deg,#f5edff,#ffeef1);border-color:#e7dcf5}
  body.scuzo-mobile-billing .scuzo-mobile-billing-toolbar strong{color:#57328b}
  body.scuzo-mobile-billing #posView #productGrid .scuzo6696-tile{background:linear-gradient(145deg,#fff,#faf5ff);border-color:#e7d7fa;box-shadow:0 5px 16px #5b2b9b17}
  body.scuzo-mobile-billing #posView #productGrid .scuzo6696-tile:nth-child(4n+2){background:linear-gradient(145deg,#fff,#fff2f1)}
  body.scuzo-mobile-billing #posView #productGrid .scuzo6696-tile:nth-child(4n+3){background:linear-gradient(145deg,#fff,#f0fbf7)}
  body.scuzo-mobile-billing #posView #productGrid .scuzo6696-tile.selected{background:#f4ecff;border-color:#8652d3}
  body.scuzo-mobile-billing #posView #productGrid .scuzo6696-tile .scuzo6696-card-badge{background:#683abe}
  body.scuzo-mobile-billing #posView #productGrid .scuzo6696-tile-controls button.scuzo6696-add{background:#7345c2;border-color:#7345c2}
  body.scuzo-mobile-billing #posView #productGrid .scuzo6696-tile-controls button{color:#53338c;background:#f3ebff;border-color:#deccf6}
  body.scuzo-mobile-billing #posView #productGrid .scuzo6696-tile-controls button.scuzo6696-add{color:#fff}
  body.scuzo-mobile-billing #posView.active .scuzo6696-selection-summary:not([hidden]){background:linear-gradient(100deg,#fff,#fbf3ff)!important;border:1px solid #d0b7f3!important;border-left:4px solid #8653cf!important;color:#48267b!important;box-shadow:0 6px 21px #59399b2b!important}
  body.scuzo-mobile-billing #posView .scuzo6696-summary-head span{color:#6b41b1}
  body.scuzo-mobile-billing #posView .scuzo6696-chip{background:#f0e8ff;border-color:#ddcaf9;color:#59378c}
  body.scuzo-mobile-billing #mobileCartJump:not(.hidden){background:linear-gradient(108deg,#5e35bb,#8c53db)!important;border-color:#a37ade!important;box-shadow:0 7px 24px #57339366!important}
  body.scuzo-mobile-billing.scuzo-mobile-cart-open #posView .cart-panel{background:#fffafd!important}
  body.scuzo-mobile-billing.scuzo-mobile-cart-open .scuzo-mobile-cart-shortcuts button{background:#f4ecff;color:#5d348f;border-color:#d9c6f4}
  body.scuzo-mobile-billing.scuzo-mobile-cart-open .scuzo6696-back{background:#f0e8ff;color:#512f8a;border-color:#d8c6f5}
  body.scuzo-mobile-billing.scuzo-mobile-cart-open #posView .cart-checkout-footer{background:#fffafd}
  body.scuzo-mobile-billing.scuzo-mobile-nav-open #appView .sidebar{background:linear-gradient(145deg,#fff,#fbf6ff)!important}
}
/* Preserve print invoice appearance and ink savings */
@media print{#appView .topbar,#appView .sidebar,#dashboardView .page-head{background:none!important;box-shadow:none!important}}
@media (prefers-reduced-motion:reduce){#appView .module-card,#appView .sidebar button{transition:none}}
