/* Thème professionnel Stockwise : bleu nuit, turquoise et accents fonctionnels. */
:root{
  --ink:#172b35;
  --muted:#71828a;
  --line:#dfe8eb;
  --canvas:#f4f7f8;
  --paper:#ffffff;
  --green:#197b6d;
  --green-2:#2b9a82;
  --mint:#e1f3ef;
  --lilac:#edf0fa;
  --peach:#fff2e5;
  --navy:#102d3a;
  --navy-2:#19485a;
  --amber:#c6842d;
  --danger:#c94f5a;
  --shadow:0 12px 32px rgba(18,45,58,.075);
}
body{background:radial-gradient(circle at 92% 0,#e8f3f2 0,transparent 30%),var(--canvas);color:var(--ink)}
.sidebar{background:linear-gradient(180deg,var(--navy) 0%,#153d4b 100%);border-right:0;box-shadow:10px 0 30px rgba(16,45,58,.12)}
.brand{color:#fff}.brand-mark{background:linear-gradient(135deg,#2ba58d,#197b6d);box-shadow:0 7px 16px rgba(0,0,0,.2)}
.workspace-label,.sidebar .section-kicker{color:#91b0b7}.nav-link{color:#bad0d4}.nav-link:hover{background:rgba(91,190,165,.13);color:#fff;transform:translateX(2px)}.nav-link.active{background:linear-gradient(90deg,rgba(61,174,148,.27),rgba(61,174,148,.08));color:#fff;box-shadow:inset 3px 0 #58c4a7}.nav-count{background:rgba(255,255,255,.12);color:#d8ecec}.nav-link.active .nav-count{background:#55bca1;color:#102d3a}
.help-card{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.11);color:#e9f4f3}.help-card small,.help-card>span:last-child{color:#a9c4c8}.help-dot{background:#55bca1;color:#102d3a}.user-chip{border-top-color:rgba(255,255,255,.13);color:#f2f8f8}.user-chip small{color:#a9c4c8}.user-chip .more{color:#9db8bd}
.main-content{padding-top:29px}.topbar h1,.hero-row h2,.view-heading h2{color:var(--navy)}.topbar h1{font-weight:800}.eyebrow,.workspace-label,.section-kicker{color:#78939a}.profile-button{color:var(--navy);border-color:#d6e3e6}.avatar{background:#d9eee9;color:#176556}
.button.primary{background:linear-gradient(135deg,var(--green),var(--green-2));box-shadow:0 8px 18px rgba(25,123,109,.22)}.button.primary:hover{box-shadow:0 12px 24px rgba(25,123,109,.3)}.button.dark{background:linear-gradient(135deg,#173c4a,#245b69)}.button.secondary{background:#eef5f5;border-color:#d4e3e5;color:#225e62}.button.secondary:hover{background:#e1efee}
.stat-card,.panel,.inventory-stat{border-color:#dfe8eb;box-shadow:var(--shadow)}.stat-card:hover{box-shadow:0 17px 36px rgba(18,45,58,.12)}.stat-card>strong,.panel-heading h3,.receipt-head h3{color:var(--navy)}.stat-icon.green{background:#dff2ed;color:#197b6d}.stat-icon.blue{background:#e5eef9;color:#3976b7}.stat-icon.orange{background:#fff0dc;color:#bf7930}.stat-icon.red{background:#ffeaec;color:#c94f5a}
.toolbar,.catalogue-toolbar{background:#eaf2f3;border-color:#d9e5e8}.search-box{border-color:#d6e3e6}.toolbar select,.catalogue-toolbar select{border-color:#d2e0e3;color:#48646b}.search-box:focus-within,.budget-input:focus-within,.payment-amount-input:focus-within{border-color:#5eb5a4;box-shadow:0 0 0 4px #e0f1ee}
.table-panel table th{background:linear-gradient(180deg,#f5faf9,#eaf3f2);color:#537078}.table-panel table td{border-top-color:#e9eff0}.table-panel tbody tr:not(.category-row):hover td{background:#f1f8f7}.category-row td{background:linear-gradient(90deg,#dff1ee,#f1f8f7);color:#17695e}
.stock-pill.low,.inventory-stat.warning strong{color:var(--amber)}.stock-pill.out{color:var(--danger)}.stock-card.low{border-color:#ecd7b4}.stock-card.out{border-color:#efc8cd}.stock-card-status{color:#207565;background:#e1f3ef}.stock-card.low .stock-card-status{color:#9b641e;background:#fff1dc}.stock-card.out .stock-card-status{color:#b63f4c;background:#ffeaec}
.cash-selection,.receipt-panel{border-color:#d9e7e8}.cash-product:hover{background:#edf7f5}.mode-button.active{color:var(--green);border-color:var(--green)}.receipt-panel{box-shadow:0 17px 40px rgba(18,45,58,.11)}.receipt-totals .remaining{background:linear-gradient(135deg,#dff2ed,#eef9f6);border-color:#cae5df;color:#17695e}.receipt-totals .remaining strong{color:#17695e}
.modal-backdrop{background:rgba(10,31,41,.56)}.modal{border-color:#dce7e9;box-shadow:0 28px 75px rgba(10,31,41,.24)}.modal-close:hover{background:#e1f2ef;color:#17695e}.form-grid input,.account-form input,.admin-login-modal input,.auth-card input,.stock-load-form input,.stock-load-form select{border-color:#d4e1e4;background:#fbfdfd}.form-grid input:focus,.account-form input:focus,.admin-login-modal input:focus,.auth-card input:focus,.stock-load-form input:focus,.stock-load-form select:focus{border-color:#5eb5a4;box-shadow:0 0 0 4px #e1f2ef}.toast{background:linear-gradient(135deg,#123b48,#1d756b)}
.discount-box,.sync-box{background:#edf7f5;border-color:#cae5df}.refund-action,.small-action.delete{color:#b43e4b}.refund-action{background:#fff0f1;border-color:#f0cdd1}.data-warning{color:#956220;background:#fff5df}
.barcode-sale-box{background:#eaf6f3;border-bottom-color:#d4e8e4}.barcode-sale-box input{border-color:#cbdedb}.cash-balance-summary article{border-color:#dce7e9;background:#fbfdfd}.cash-balance-summary strong{color:var(--navy)}
.auth-gate{background:linear-gradient(135deg,#e7f2f2 0%,#f7faf9 55%,#e9f0f3 100%)}.auth-card{border-color:#d6e4e6;box-shadow:0 24px 70px rgba(16,45,58,.17)}
button:focus-visible,input:focus-visible,select:focus-visible{outline-color:#59b7a4}
@media(max-width:650px){.sidebar{box-shadow:0 5px 20px rgba(16,45,58,.12)}.main-content{padding-top:21px}.topbar h1{font-size:22px}}
#salesTable tr{cursor:pointer}#salesTable tr:hover td{background:#edf7f5!important}#salesTable tr.cancelled-row{cursor:default}#salesTable tr.cancelled-row:hover td{background:transparent!important}
#exportArchivedReceipt{margin-right:auto}
