/* Authenticated workspace: retain the existing green palette and plain controls. */
.workspace{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh;font-size:16px}
.work-sidebar{background:#173f35;color:#fff;padding:34px 20px;display:flex;flex-direction:column;gap:32px;position:sticky;top:0;height:100vh}
.work-brand{font-size:28px;font-weight:750;line-height:1.2;color:inherit;text-decoration:none;letter-spacing:-.8px}
.work-brand span{font-weight:450;font-size:23px}.work-sidebar nav{display:grid;gap:6px}
.work-sidebar nav a{color:#d7e7df;text-decoration:none;padding:13px 15px;border-radius:9px;font-size:15px}
.work-sidebar nav a.active,.work-sidebar nav a:hover{background:#31594b;color:white}
.work-mode{margin-top:auto;font-size:13px;line-height:1.5;color:#c4dccc}
.work-main{min-width:0;background:#f5f7f4}
.work-header{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:22px 36px;background:white;border-bottom:1px solid #dde5dd;position:sticky;top:0;z-index:3}
.work-header label{display:grid;gap:5px;min-width:200px}.work-header label>span{font-size:13px;color:#637467}
.workspace select,.workspace input,.workspace textarea,.work-login input,#work-form input,#work-form select,#work-form textarea{font:inherit;font-size:16px;min-height:46px;border:1px solid #cbd6ca;border-radius:8px;padding:10px 12px;max-width:100%;background:white}
.workspace .btn,#work-form .btn,.work-login .btn{font-size:14px;min-height:44px}
.work-sync{font-size:13px;padding:10px 36px;background:#e8efe5;color:#405a39}
.work-content{max-width:1400px;padding:32px 36px 70px;margin:auto}.work-content h1{font-size:28px}
.work-content .panel{margin-top:24px}.work-content .panel-head h2{font-size:19px}
.workspace .product-name{font-size:16px}.workspace .product-code{font-size:13px}
.workspace table{width:100%;border-collapse:collapse}.workspace th{font-size:13px;text-align:left;padding:18px}
.workspace td{padding:18px;border-top:1px solid #e7ece5;font-size:15px}.workspace .low{color:#a64228}
.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.work-todo .todo-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:4px 20px 20px;gap:14px}
.todo-item{border:1px solid #d9e2d4;background:#f7faf3;border-radius:12px;padding:18px;display:grid;gap:8px;text-align:left;cursor:pointer;color:#254231}
.todo-item strong{font-size:28px}.todo-item span{font-size:14px}
.work-record{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px;border-bottom:1px solid #e4eae1;flex-wrap:wrap}.work-record p{font-size:14px;color:#65705f;margin-top:7px}
.work-record strong{font-size:16px}.work-empty{padding:30px}.work-tabs{display:flex;gap:10px;margin:20px 0}
.work-login{min-height:100vh;display:grid;place-items:center;padding:25px;background:#edf3e8}
.work-login-card{width:min(440px,100%);border-radius:20px;padding:36px;background:white;box-shadow:0 20px 70px #1b412114}
.work-login-card h1{font-size:24px;margin:26px 0}.work-login-card .inline-actions{margin-top:22px}
.work-demo-access{margin-top:26px;padding-top:20px;border-top:1px solid #e0e6dc;display:flex;gap:12px;flex-wrap:wrap}.work-demo-access p{width:100%;font-size:13px;color:#666}
.field{display:grid;gap:8px;margin:0 0 18px;font-size:14px}.field>span{font-weight:650}
#work-form .field input,#work-form .field select,#work-form textarea{width:100%}
#work-form .dialog-body{font-size:16px}.dialog-head p{margin-top:8px;font-size:13px;color:#657364}
#modal:has(#work-form){width:min(820px,calc(100% - 28px));max-height:92dvh}
#work-form .dialog-body{max-height:68dvh;overflow-y:auto}
.work-check{display:flex;gap:10px;align-items:center;font-size:15px;margin-top:20px}
#work-form .work-check input{width:20px;min-height:20px;height:20px;flex-shrink:0}
.form-error{color:#a53222;background:#fff2ed;padding:12px;margin:14px 0;font-size:15px}
.form-error:empty,.form-error[hidden]{display:none}
.work-line{display:grid;grid-template-columns:minmax(180px,2fr) minmax(90px,1fr);gap:12px;padding:18px;border:1px solid #d8e1d1;border-radius:12px;margin:16px 0;background:#fbfcf8}
.work-line .field{margin:0}.work-line>.btn{justify-self:start}.work-notice{background:#f1f5eb;padding:15px;border-radius:10px;line-height:1.6;font-size:14px;margin-bottom:18px}
.work-balances{display:flex;gap:22px;padding:24px 0}.work-balances strong{display:block;font-size:28px;margin-top:8px}
.work-large-photo{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto}
#history{margin-top:20px}#history table{width:100%;border-collapse:collapse;font-size:14px}#history td,#history th{padding:14px 8px;border-bottom:1px solid #ddd;text-align:left}#history small{color:#666}
#scan-area{margin:18px 0;padding:14px;background:#eaf0e5;border-radius:12px}#scan-area video{width:100%;max-height:300px;object-fit:cover;border-radius:8px}#scan-area p{margin:10px 0;font-size:14px}
.placeholder{font-size:35px;color:#7d986a}.error{background:#863b2c!important}
button:disabled{opacity:.6;cursor:wait}
@media(max-width:900px){.workspace{grid-template-columns:170px minmax(0,1fr)}.work-content{padding:24px 20px}.work-header{padding:16px 20px;align-items:flex-start;flex-direction:column;gap:12px}.work-todo .todo-grid{grid-template-columns:repeat(2,1fr)}.work-sync{padding:10px 20px}}
@media(max-width:600px){.workspace{display:block}.work-sidebar{height:auto;position:static;padding:18px;gap:18px}.work-brand{font-size:24px}.work-brand br{display:none}.work-brand span{font-size:21px}.work-sidebar nav{display:flex;overflow-x:auto;gap:4px}.work-sidebar nav a{white-space:nowrap;font-size:14px;padding:10px}.work-mode{display:none}.work-header{position:static}.work-header label{width:100%}.work-header select{width:100%;min-width:0}.work-content{padding:22px 14px}.work-content h1{font-size:24px}.work-content .quick-actions{grid-template-columns:repeat(2,1fr)}.work-content .quick-action{min-height:90px}.work-content .search-box{flex-wrap:wrap;padding:10px}.work-content .search-box input{width:100%;flex-basis:100%}.workspace td,.workspace th{padding:12px}.workspace td:last-child .btn{font-size:12px;padding:8px}.workspace .product-cell{min-width:165px}.workspace .thumb{width:40px;height:45px}.work-line{grid-template-columns:1fr}.work-todo .todo-grid{padding:0 14px 14px;gap:8px}.todo-item{padding:14px}.work-login-card{padding:25px}.dialog-footer{flex-wrap:wrap}#work-form .dialog-body{max-height:65dvh}.work-record{padding:17px}.work-header .inline-actions>span{width:100%;font-size:14px}}

@media(max-width:600px){
 .work-sidebar nav{scrollbar-width:none}.work-sidebar nav::-webkit-scrollbar{display:none}
 .stock-table,.stock-table tbody{display:block;min-width:0;width:100%}
 .stock-table thead{display:none}
 .stock-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px;border-bottom:1px solid var(--line,#dbe5df)}
 .stock-table td{display:block;padding:7px 3px;border:0;min-width:0;white-space:normal}
 .stock-table td:first-child,.stock-table td:last-child{grid-column:1 / -1}
 .stock-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#55665f;margin-bottom:4px}
 .stock-table td:last-child .inline-actions{justify-content:flex-end}
 .work-header .inline-actions{gap:6px}
 .work-sync{font-size:12px}
}
.work-line>.work-notice{grid-column:1 / -1;margin:0;padding:8px}

.product-picker{position:relative;min-width:0}.product-picker>.field{margin-bottom:8px}
.product-picker>.picker-input{width:100%}.picker-status{display:block;font-size:13px;line-height:1.5;color:#4d6459;margin-top:7px}
.picker-popup{border:1px solid #b7cbbc;border-radius:10px;background:#fff;box-shadow:0 6px 18px #193f3515;margin-top:6px;overflow:hidden}
.picker-popup[hidden],.picker-create[hidden],.order-line-field[hidden],.search-suggestions[hidden]{display:none!important}
.picker-popup [role=listbox]{max-height:255px;overflow-y:auto}
.picker-popup button,.search-suggestions>button{display:block;width:100%;text-align:left;min-height:46px;padding:12px 14px;border:0;border-bottom:1px solid #e3eae2;background:#fff;color:#183e35;font:inherit;cursor:pointer}
.picker-popup strong,.picker-popup small,.search-suggestions strong,.search-suggestions small{display:block}
.picker-popup small,.search-suggestions small{font-size:12px;color:#587165;margin-top:3px}
.picker-popup button:hover,.picker-popup [aria-selected=true],.search-suggestions>button:hover{background:#eaf3e8}
.picker-popup p{padding:12px;font-size:14px}.picker-actions{border-top:1px solid #dbe6d8}
.picker-actions button{color:#245d3c;font-weight:650;background:#f4f8f1}
.picker-create{background:#edf4e9;border:1px solid #c8d9c2;border-radius:10px;margin-top:10px;padding:14px}
.picker-create p{margin:0 0 12px;font-size:14px}.picker-create .field{margin-bottom:12px}
.picker-error{color:#963526}.work-line>.product-picker{grid-column:1 / -1}
.search-box{flex-wrap:wrap}.search-suggestions{flex-basis:100%;width:100%;border-top:1px solid #dfe7dc;max-height:350px;overflow:auto}

.work-confirm {max-width:560px;width:calc(100% - 32px);border:0;border-radius:18px;padding:24px;}
.work-confirm::backdrop{background:#172923aa}
.confirmation-summary{white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere;max-height:55vh;overflow:auto}
.work-sync .btn{margin-left:12px;padding:4px 12px}
.local-pending{border-left:4px solid #c27711}

.cash-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:18px}
.cash-card{border:1px solid #d8e1d1;border-radius:12px;padding:18px;background:#fbfcf8}
.cash-card h3{margin-top:0}.cash-card>strong{font-size:24px}.cash-card p{line-height:1.5}
.cash-denominations{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cash-denominations .field{margin:0}.cash-denominations input{width:100%;min-width:0}
.cash-total{font-size:24px;font-weight:700;padding:18px;background:#f1f5eb;border-radius:12px}
.cash-history{padding:18px 0;border-bottom:1px solid #d8e1d1}
@media(max-width:600px){.cash-cards{grid-template-columns:1fr}.cash-denominations{grid-template-columns:repeat(2,minmax(0,1fr))}}

.cash-preview{max-width:100%;max-height:220px;object-fit:contain;border-radius:10px}
.cash-preview[hidden]{display:none}

/* Online shop: listings prepared with AI and store orders. */
.shop-setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding:4px 22px 18px}
.shop-setup .setting-row{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-bottom:1px solid #eef2ea;font-size:14px}
.shop-setup .work-notice{margin:0 22px 18px}
.shop-order.done{opacity:.72}.shop-items{margin:8px 0 6px;padding-left:18px;font-size:14px;line-height:1.5}.shop-items small{color:#65705f}
.shop-order small{display:block;margin-top:8px;color:#65705f;font-size:13px}
.shop-listing .product-cell{min-width:0}.shop-listing .product-name{text-align:left}
.shop-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.shop-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:12px 0 16px}
.shop-photos figure{margin:0;border:1px solid #dde5dd;border-radius:12px;overflow:hidden;background:#fff}
.shop-photos img{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:#f5f7f4}
.shop-photos .processed img{background:#fff}.shop-photos figcaption{font-size:12px;color:#65705f;padding:8px 10px;border-top:1px solid #eef2ea}
.shop-preview{border:1px solid #dde5dd;border-radius:14px;padding:22px;background:#fff;margin:8px 0 12px}
.shop-preview h3{margin:0 0 6px;font-size:22px;letter-spacing:-.3px}.shop-card-text{color:#4d6459;font-size:15px;margin:0 0 14px}
.shop-description{font-size:15px;line-height:1.6}.shop-description p{margin:0 0 12px}.shop-description ul,.shop-description ol{margin:0 0 12px;padding-left:20px}
.shop-description h3{font-size:16px;margin:14px 0 6px}
.shop-seo{margin:0 0 16px;border:1px solid #e3eae2;border-radius:10px;padding:10px 14px;font-size:14px}
.shop-seo summary{cursor:pointer;font-weight:650}.shop-seo dl{display:grid;grid-template-columns:150px minmax(0,1fr);gap:6px 14px;margin:12px 0 4px}
.shop-seo dt{color:#65705f}.shop-seo dd{margin:0;overflow-wrap:anywhere}
#modal .inline-actions{margin:8px 0 14px}
@media(max-width:600px){.shop-setup-grid{grid-template-columns:1fr}.shop-seo dl{grid-template-columns:1fr}}
.shop-filters{flex-wrap:wrap;padding:0 22px;margin:14px 0 6px}.shop-count{opacity:.65;margin-left:4px}
.shop-pending{color:#a65d1e;font-size:12px}.shop-history-box{margin-top:10px;font-size:13px}
.shop-history-box summary{cursor:pointer;color:#4d6459}.shop-history{margin:8px 0 0;padding-left:18px;line-height:1.6}
.shop-history span{color:#65705f;margin-right:6px}.shop-history-empty{margin:8px 0 0;color:#65705f}
.shop-order.status-cancelled,.shop-order.status-refunded{opacity:.7}
