/* Violet Studio: presentation only; existing routes, roles and forms stay authoritative. */
:root{--violet:#7153e6;--violet-dark:#573ac1;--violet-soft:#f0ebfc;--green:var(--violet);--pale:#f5f2fc;--line:#e8e4ef;--muted:#736d82;color:#292438;background:#f6f5fa;--radius:16px}
body{background:#f6f5fa;color:#292438}
.workspace{grid-template-columns:232px minmax(0,1fr)}
.work-sidebar{background:#fff;color:#433c54;border-right:1px solid var(--line);padding:30px 18px;gap:28px;overflow-y:auto}
.work-brand{color:#302442;font-size:28px;letter-spacing:-1px;padding:0 14px}
.work-brand span{color:#81748f;font-size:16px;letter-spacing:.02em}
.work-sidebar nav{gap:5px}
.work-sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;color:#665e76;font-size:14px;border:1px solid transparent;border-radius:11px;min-height:46px}
.work-sidebar nav a:hover{background:#f7f4fc;color:#573ac1}
.work-sidebar nav a.active{background:var(--violet-soft);color:#573ac1;border-color:#e8defb;font-weight:650}
.work-sidebar nav a::before{content:"";width:19px;height:19px;flex:0 0 19px;background:currentColor;mask:var(--nav-icon) center/contain no-repeat;-webkit-mask:var(--nav-icon) center/contain no-repeat}
.work-mode{color:#7a708a;border-top:1px solid var(--line);padding:18px 12px 0;font-size:12px}
.work-main{background:#f6f5fa}
.work-header{background:#fff;border-color:var(--line);padding:18px 30px;gap:16px;flex-wrap:wrap}
.work-header label{min-width:0;max-width:100%}.work-header label>span{color:var(--muted);font-size:12px}
.work-header .inline-actions{gap:8px}.work-header .btn{font-size:12px;min-height:40px;padding:9px 12px}
.work-sync{background:#f1edf9;color:#655778;padding:10px 30px;font-size:12px;line-height:2}
.work-sync .btn{border-color:#e2daee;background:#fff;font-size:12px;min-height:32px;margin:3px 0 3px 8px}
.work-content{max-width:1480px;padding:30px 30px 64px}.work-content h1{font-size:28px;letter-spacing:-.8px;color:#302442}
.work-content .panel{border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 15px #35205204;background:white}
.panel-head{padding:20px 22px;flex-wrap:wrap}.panel-head h2{color:#352c45}
.btn{border-color:#e0dbe9;border-radius:10px;color:#51465f;background:#fff;transition:background .12s,border-color .12s}
.btn:hover{background:#f5f1fc;border-color:#cbbbe9}.btn.primary{background:var(--violet);border-color:var(--violet);color:#fff}.btn.primary:hover{background:var(--violet-dark);border-color:var(--violet-dark)}
.btn.light,.work-tabs .active{background:var(--violet-soft);color:var(--violet-dark);border-color:#e0d6f5}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a58bec;outline-offset:3px}
.workspace input,.workspace select,.workspace textarea,.work-login input,#work-form input,#work-form select,#work-form textarea{border-color:#dcd5e6;border-radius:10px;background:#fff;color:#332b41;min-width:0}
input::placeholder,textarea::placeholder{color:#82788f}.field>span{color:#51445f;font-size:13px}.field{gap:7px}
input[type=checkbox]{accent-color:var(--violet)}
.workspace th{color:#776989;background:#faf8fd;font-weight:600;font-size:12px;padding:16px}
.workspace td{border-color:#efebf4;padding:16px;font-size:14px;font-variant-numeric:tabular-nums}.workspace tbody tr:hover{background:#fcfaff}
.stock-table th.sortable button{color:#776989}.stock-table th.sortable button:hover{background:#f1ebfc;color:#573ac1}.stock-table th.sorted button{color:#573ac1}
.product-name{color:#352846}.product-code{color:#82778f}.workspace .thumb,.work-record .thumb{background:#f7f4fb;border-color:#e8e0f0;border-radius:12px}
.search-box{border-color:#e4ddee;background:#fff;border-radius:12px}.search-box input{border:0;background:transparent}
.work-record{border-color:#ece7f3}.work-record p,.dialog-head p{color:#776d84}
.todo-item{background:#faf8fe;border-color:#e9e1f3;color:#5b447a;border-radius:14px}.todo-item:hover{background:#f2ecfc;border-color:#c9b9ea}.todo-item strong{color:#6c48cc}
.work-notice,.work-line,.cash-card,.cash-total,#scan-area,.picker-create{background:#f7f3fd;border-color:#e4d9f2;color:#5d4c75}
.picker-popup{border-color:#d9cceb;box-shadow:0 8px 24px #46335d12}.picker-popup button,.search-suggestions>button{color:#453655;border-color:#ece6f4}.picker-popup button:hover,.picker-popup [aria-selected=true],.search-suggestions>button:hover{background:#f2eafa}.picker-actions button{background:#faf7ff;color:#624198}
.work-tabs{flex-wrap:wrap}.checkout-favorite-button[aria-pressed="true"]{background:#eee6fc;border-color:#a58acb;color:#6842b6}
/* Preserve green/red/amber meanings for sync, errors, stock and destructive actions. */
.btn.danger{background:#fff4f2;color:#9c362b;border-color:#e8bdb8}.btn.danger:hover{background:#ffe9e5}.form-error{color:#a53222;background:#fff2ed}
dialog,.work-confirm{border:1px solid #e3dbea;border-radius:18px;box-shadow:0 24px 85px #2e174c30;color:#30263e;background:#fff}dialog::backdrop,.work-confirm::backdrop{background:#21132b70}
.dialog-head{background:#f8f5fc;border-bottom:1px solid var(--line)}.dialog-footer{gap:10px}.work-login{background:#f3effa}.work-login-card{border:1px solid var(--line);box-shadow:0 20px 70px #482b7412}.work-login .work-brand{padding:0}
@media(max-width:1100px){.workspace{grid-template-columns:194px minmax(0,1fr)}.work-header{padding:16px 20px}.work-content{padding:24px 20px}.work-sidebar{padding:24px 12px}.work-header .inline-actions{flex-wrap:wrap}}
@media(max-width:600px){.workspace{display:block}.work-sidebar{height:auto;position:static;padding:16px 12px;gap:14px;overflow:visible;border-right:0;border-bottom:1px solid var(--line)}.work-brand{font-size:23px;padding:0 6px}.work-brand span{font-size:15px}.work-sidebar nav{display:flex;overflow-x:auto}.work-sidebar nav a{flex:0 0 auto;padding:10px;min-height:44px;font-size:13px;gap:7px}.work-header{position:static;padding:14px;gap:12px}.work-header label{width:100%}.work-header .inline-actions{width:100%}.work-sync{padding:10px 14px}.work-content{padding:22px 14px 40px}.work-content h1{font-size:24px}.workspace td,.workspace th{padding:10px}.workspace .stock-table td{padding:7px 3px}.panel-head{padding:16px}.work-mode{display:none}}
@media(prefers-reduced-motion:reduce){.btn{transition:none}}

.work-sidebar nav a[href="#home"]{--nav-icon:url("/static/icons/nav-home.svg")}

.work-sidebar nav a[href="#products"]{--nav-icon:url("/static/icons/nav-products.svg")}

.work-sidebar nav a[href="#orders"]{--nav-icon:url("/static/icons/nav-orders.svg")}

.work-sidebar nav a[href="#deliveries"]{--nav-icon:url("/static/icons/nav-deliveries.svg")}

.work-sidebar nav a[href="#cash"]{--nav-icon:url("/static/icons/nav-cash.svg")}

.work-sidebar nav a[href="#transfers"]{--nav-icon:url("/static/icons/nav-transfers.svg")}

.work-sidebar nav a[href="#identify"]{--nav-icon:url("/static/icons/nav-identify.svg")}

.work-sidebar nav a[href="#web"]{--nav-icon:url("/static/icons/nav-web.svg")}

.work-sidebar nav a[href="#reports"]{--nav-icon:url("/static/icons/nav-reports.svg")}

.work-sidebar nav a[href="#trash"]{--nav-icon:url("/static/icons/nav-trash.svg")}

.work-sidebar nav a[href="#settings"]{--nav-icon:url("/static/icons/nav-settings.svg")}

@media(max-width:600px){.work-brand span{margin-left:6px}}

.catalogue-bulkbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:16px 20px;background:#faf7ff;border-bottom:1px solid var(--line)}
.catalogue-bulkbar>span{font-weight:650;color:#654693;margin-right:auto}.catalogue-bulkbar .btn{font-size:12px}
#catalog-results>.inline-actions{padding:14px 20px;justify-content:flex-end;font-size:12px;color:var(--muted)}
.workspace .product-cell:has(.catalogue-select){display:flex;align-items:center;gap:12px}.workspace input.catalogue-select{flex:0 0 20px;min-height:20px;width:20px;height:20px;padding:0}
.catalogue-review{max-height:220px;overflow:auto;line-height:1.8;padding-left:24px}.work-content .product-name{text-align:left}.work-tabs{max-height:180px;overflow:auto}
#modal .product-head{gap:24px}#modal .product-facts p{line-height:1.8}#modal .product-shot{border-radius:14px;border:1px solid var(--line);background:#faf8fd}
@media(max-width:600px){.catalogue-bulkbar{padding:12px}.catalogue-bulkbar>span{width:100%}.catalogue-bulkbar .btn{flex:1 1 auto}#catalog-results>.inline-actions{padding:12px}}

[data-settings-panel][hidden]{display:none!important}:is(.settings-tabs,.sales-tabs){display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}:is(.settings-tabs,.sales-tabs) .btn{white-space:normal}.work-sidebar nav a[href="#count"]{--nav-icon:url("/static/icons/nav-count.svg")}

.work-sidebar nav a[href="#waste"]{--nav-icon:url("/static/icons/nav-waste.svg")}

.work-sidebar nav a[href="#returns"]{--nav-icon:url("/static/icons/nav-returns.svg")}

.work-sidebar nav a[href="#notes"]{--nav-icon:url("/static/icons/nav-notes.svg")}

.work-sidebar nav a[href="#sync"]{--nav-icon:url("/static/icons/nav-sync.svg")}
.work-sidebar nav a[href="#sales"]{--nav-icon:url("/static/icons/nav-sales.svg")}
.work-sidebar nav a[href="#groups"]{--nav-icon:url("/static/icons/nav-groups.svg")}
