/* Responsive administration: readable orders, contained forms and compact navigation. */
.workspace,main,#view-content,.panel,.panel-heading>*,.two-columns>*,.row>*,header>*,.header-actions{min-width:0}
.sidebar{overscroll-behavior:contain}.sidebar nav{flex-shrink:0}.admin-menu-toggle{display:none}
header{flex-wrap:wrap;align-items:flex-start;gap:18px}.header-actions{justify-content:flex-end;gap:10px;margin-left:auto;max-width:100%}.current-user-status{max-width:100%;overflow-wrap:anywhere}
.panel-heading{flex-wrap:wrap;align-items:flex-start}.panel-heading>div:first-child{display:block;flex:1 1 240px}.panel-heading h3{display:block;line-height:1.4;overflow-wrap:anywhere}.panel-heading p{display:block;line-height:1.6;max-width:70ch;margin-top:6px}
.panel-heading>button,.panel-heading>a{flex-shrink:0}.toolbar input{min-width:0;flex:1 1 240px}.toolbar select{flex:0 1 200px}
input,select,textarea{max-width:100%;min-width:0}input:not([type=checkbox]):not([type=radio]),select,button{min-height:42px}input[type=checkbox],input[type=radio]{flex-shrink:0}
.row,.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.metric{min-width:0}.metric b{overflow-wrap:anywhere}.panel p,.panel small,.order-message{overflow-wrap:anywhere}.modal-actions{flex-wrap:wrap}.modal-header{gap:12px}.modal-header h2{overflow-wrap:anywhere}.modal-header button{flex-shrink:0}
.table-scroll{max-width:100%;overscroll-behavior-x:contain}.order-list{width:100%;min-width:0;table-layout:fixed;font-size:15px}.order-list th{font-size:11px;padding:14px 10px}.order-list td{padding:20px 10px;overflow-wrap:anywhere;min-width:0!important}.order-list th:nth-child(1){width:16%}.order-list th:nth-child(2){width:21%}.order-list th:nth-child(3){width:13%}.order-list th:nth-child(4){width:18%}.order-list th:nth-child(5){width:13%}.order-list th:nth-child(6){width:19%}.order-list td>strong{font-size:16px}.order-list td small{font-size:12px}.order-list td:nth-child(5){font-size:18px;white-space:normal}.order-list td:first-child>strong{white-space:normal}.order-list td:first-child small{white-space:normal}.order-list .badge,.order-list .payment-channel,.order-list .payment-state{font-size:12px;padding:6px 8px;white-space:normal}.order-list .order-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}.order-list .text-btn,.order-list .quick-status{font-size:13px;padding:10px 8px;min-height:44px;white-space:normal}.order-list .unread-label{font-size:10px;max-width:100%;width:fit-content;white-space:normal}
@media(min-width:1600px){.order-list{font-size:17px}.order-list td{padding:24px 16px}.order-list td>strong{font-size:19px}.order-list td small{font-size:14px}.order-list .badge,.order-list .payment-channel,.order-list .payment-state{font-size:14px}.order-list .text-btn,.order-list .quick-status{font-size:14px}.order-list td:nth-child(5){font-size:20px}}
@media(max-width:1250px){
 .two-columns{grid-template-columns:minmax(0,1fr)}
 .order-list,.order-list tbody{display:block;width:100%}.order-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .order-list tbody{display:grid;gap:16px}.order-list tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
 .order-list td{display:block;border:0!important;padding:14px 16px;min-width:0!important;background:transparent}.order-list td:before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;letter-spacing:.06em;font-weight:700;text-transform:uppercase;margin-bottom:8px}
 .order-list .order-cell-id,.order-list .order-cell-customer{border-bottom:1px solid var(--line)!important}.order-list .order-cell-total,.order-list .order-cell-actions{border-top:1px solid var(--line)!important}
 .order-list .order-cell-total{font-size:22px}.order-list .order-cell-actions:before{display:none}.order-list .order-actions{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px}.order-list .order-actions>button{flex:1 1 100px}.order-list .order-cell-id>strong{font-size:18px}
 .order-list tr.unread-order{border-color:#b8e8ee;background:#edfcff;border-left:4px solid var(--cyan)}.order-list .unread-order td{background:transparent;box-shadow:none}.order-list .payment-badges{flex-wrap:wrap}
 .pos-layout{grid-template-columns:minmax(0,1fr)}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr));max-height:50dvh}.pos-product{display:block}.pos-product img{height:120px;min-height:0}.pos-top,.pos-top-actions{flex-wrap:wrap}.pos-cart{position:static}.pos-lines{max-height:40dvh}.report-reconciliation{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 .app{display:block}.sidebar{position:sticky;inset:0 0 auto;width:100%;padding:12px 16px;z-index:30;max-height:85dvh;overflow:auto;gap:10px;border-bottom:1px solid #2a414e}.sidebar .brand{width:150px;max-width:calc(100% - 130px)}.sidebar .brand img{width:150px;margin:0}.sidebar .store{display:none}.sidebar .store-operation{margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.sidebar .store-operation small{font-size:10px}.sidebar .store-operation button{min-height:34px;width:auto;padding:6px 10px;font-size:11px}.admin-menu-toggle{display:block;position:absolute;top:15px;right:16px;background:#214451;color:#fff;min-height:44px;font-size:13px}
 .sidebar:not(.menu-open) #admin-navigation,.sidebar:not(.menu-open) .sidebar-bottom{display:none}.sidebar #admin-navigation{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible;padding-top:8px}.sidebar nav button{white-space:normal;font-size:12px;min-height:44px;min-width:0;padding:10px;gap:8px}.sidebar nav .order-group{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;min-width:0}.sidebar nav .order-label{grid-column:1/-1;padding:10px 4px 6px;font-size:12px}.sidebar nav .order-group button{padding:10px;font-size:12px}.sidebar .sidebar-bottom{display:flex;flex-wrap:wrap;gap:16px;margin:0;padding:12px 0 4px}.sidebar-bottom small{display:none}
 .workspace{margin-left:0;width:100%}header{padding:20px 20px 16px;gap:14px;align-items:flex-start}header h1{font-size:25px}.header-actions{margin-left:0;width:100%;justify-content:flex-start;gap:8px}.header-actions button{font-size:12px}.current-user-status{font-size:11px}.live-dot{display:inline-block}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}main{padding:20px;max-width:100%}.panel{padding:20px}.panel-heading{gap:12px}.toolbar{gap:10px}.toolbar select{flex-basis:170px}
 .pos-search{grid-template-columns:minmax(0,1fr) 160px}.pos-top{flex-direction:column;align-items:stretch}.pos-top-actions>button{flex:1 1 150px}
}
@media(max-width:600px){
 body{font-size:14px}main{padding:16px 12px}.panel{padding:16px;margin-bottom:16px}.panel-heading{display:grid;grid-template-columns:minmax(0,1fr)}.panel-heading>div:first-child{min-width:0}.panel-heading>button,.panel-heading>a{justify-self:start;max-width:100%}.panel h3{font-size:18px}.panel p{font-size:13px}.row,.details-list,.report-reconciliation,.delivery-area,.service-modes-grid{grid-template-columns:minmax(0,1fr)}.toolbar input,.toolbar select{flex:1 1 100%;width:100%;font-size:16px}.header-actions .current-user-status{flex:1 1 100%}.live-dot{display:none}.metric{padding:15px}.metric b{font-size:25px}.metric small{font-size:10px}
 .order-list tr{grid-template-columns:minmax(0,1fr)}.order-list td{padding:12px 16px}.order-list .order-cell-id{border-bottom:0!important}.order-list .order-cell-customer{padding-top:0}.order-list .order-cell-status,.order-list .order-cell-payment{border-bottom:1px solid var(--line)!important}.order-list .order-cell-total{border-top:0!important}.order-list .order-cell-actions{padding-top:14px}.order-list .order-actions>button{min-height:46px}.order-list td>strong{font-size:17px}.order-list td small{font-size:13px}.order-list .badge,.order-list .payment-channel,.order-list .payment-state{font-size:13px}.order-list .unread-label{font-size:11px}
 dialog{width:calc(100% - 20px);max-width:100%;max-height:calc(100dvh - 24px);padding:20px 16px;margin:auto}.modal-header h2{font-size:20px}.modal-actions{gap:8px}.modal-actions>button,.modal-actions>a{flex:1 1 130px;min-height:44px}.order-message{padding:14px;font-size:13px}.toast{max-width:calc(100% - 24px);width:max-content;bottom:16px;padding:12px 16px;font-size:13px}.schedule-day{padding:12px;min-width:0}.variant-row{grid-template-columns:repeat(2,minmax(0,1fr))}.variant-row>span{grid-column:1/-1}.report-filter-grid{grid-template-columns:minmax(0,1fr)}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px}.section-product-picker input[type=checkbox]{width:20px}.pos-products{grid-template-columns:minmax(0,1fr)}.pos-product{display:grid;grid-template-columns:80px minmax(0,1fr)}.pos-product img{height:100%;min-height:100px}.pos-search,.pos-customer{grid-template-columns:minmax(0,1fr)}.pos-line{grid-template-columns:minmax(0,1fr) auto}.pos-top-actions{display:grid;grid-template-columns:minmax(0,1fr)}.pos-add{gap:6px}.pos-checkout-total strong,.pos-grand-total strong{font-size:24px}.pos-shortcuts{gap:6px}.pos-shortcuts button{flex:1 1 140px}.pos-tender{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media print{.admin-menu-toggle{display:none!important}.order-list{display:table}.order-list thead{position:static;width:auto;height:auto;clip-path:none;display:table-header-group}.order-list tbody{display:table-row-group}.order-list tr{display:table-row}.order-list td{display:table-cell}.order-list td:before{display:none}}

.erp-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.erp-instructions{padding:16px;border:1px solid var(--line);border-radius:10px;margin:20px 0}.erp-instructions summary{cursor:pointer;font-weight:700}.erp-instructions li{margin:10px 0}.erp-response{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;background:#f4f7f9;border:1px solid var(--line);padding:16px;border-radius:10px;font:13px/1.6 monospace}.erp-resources button{flex:1 1 180px}@media(max-width:600px){.erp-actions button{flex:1 1 100%}.erp-instructions{padding:12px}.erp-instructions ol{padding-left:22px}}
