@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');:root{--brand:#177245;--brand-dark:#105a36;--accent:#e9a23b;--ink:#18221d;--muted:#6b7770;--line:#e4eae6;--canvas:#f6f8f6;--card:#fff;--danger:#b83a42;--radius:14px}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}h1,h2,h3,.brand{font-family:Manrope,sans-serif;letter-spacing:-.035em}button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{display:flex;min-height:100vh}.sidebar{width:248px;background:#12251c;color:#d7e5db;padding:22px 14px;display:flex;flex-direction:column;gap:7px;flex-shrink:0}.brand{padding:6px 12px 22px;color:#fff;font-weight:800;font-size:19px;letter-spacing:-.04em}.brand span{color:#8cdaa7}.brand small{display:block;color:#8ca397;font:500 10px 'DM Sans';letter-spacing:.15em;margin-top:5px}.nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#839a8c;padding:14px 12px 5px}.nav{width:100%;border:0;background:transparent;color:#b8c9bf;padding:10px 12px;border-radius:9px;text-align:left;display:flex;gap:11px;align-items:center;font-weight:600}.nav:hover,.nav.active{background:#244332;color:#fff}.nav.active{box-shadow:inset 3px 0 #79d39b}.sidebar-foot{margin-top:auto;padding:13px 12px;font-size:11px;color:#8ba092;border-top:1px solid #304438}.main{min-width:0;flex:1}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:10}.top-title{font-weight:700;font-size:13px}.top-right{display:flex;align-items:center;gap:13px;color:var(--muted)}.avatar{width:32px;height:32px;background:#e5f4e9;color:var(--brand);border-radius:50%;display:grid;place-items:center;font-weight:800}.content{padding:28px 30px;max-width:1600px;margin:auto}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.heading h1{font-size:25px;margin:0 0 4px}.sub{color:var(--muted);font-size:12px}.btn{border:1px solid var(--line);background:white;padding:9px 13px;border-radius:9px;font-weight:700;color:#314039}.btn.primary{background:var(--brand);border-color:var(--brand);color:white}.btn.primary:hover{background:var(--brand-dark)}.btn.danger{color:var(--danger)}.btn.small{padding:6px 9px;font-size:12px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:17px}.metric{font-size:11px;color:var(--muted);font-weight:700}.metric-value{font-family:Manrope,sans-serif;font-size:25px;font-weight:800;margin:9px 0 4px;letter-spacing:-.04em}.metric-note{font-size:11px;color:#6c9b78}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin-bottom:16px}.panel h2{font-size:15px;margin:0 0 15px}.two{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:10px;color:#79867e;text-transform:uppercase;letter-spacing:.08em;background:#f8faf8}td,th{padding:11px 12px;border-bottom:1px solid #edf0ed}td{font-size:12px}tr:last-child td{border-bottom:0}.badge{display:inline-flex;border-radius:20px;padding:4px 8px;font-size:10px;font-weight:800;background:#edf6ef;color:#287447}.badge.warn{background:#fff4de;color:#946000}.badge.red{background:#fce9e9;color:#a42e35}.form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{display:flex;flex-direction:column;gap:5px}.field label{font-size:11px;color:var(--muted);font-weight:700}.field input,.field select,.field textarea,.search{width:100%;border:1px solid #dce4de;background:#fff;padding:10px 11px;border-radius:8px;outline:0;color:var(--ink)}.field input:focus,.field select:focus{border-color:var(--brand);box-shadow:0 0 0 3px #17724517}.full{grid-column:1/-1}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.empty{text-align:center;color:#859189;padding:30px}.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:16px}.menu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}.menu-card{border:1px solid var(--line);background:#fff;border-radius:11px;padding:13px;text-align:left;min-height:100px;display:flex;flex-direction:column;justify-content:space-between}.menu-card:hover{border-color:var(--brand);box-shadow:0 3px 14px #173b2510}.price{font-weight:800;color:var(--brand);margin-top:13px}.cart-line{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #edf0ed}.qty{display:flex;align-items:center;gap:7px}.qty button{width:23px;height:23px;border:1px solid var(--line);background:white;border-radius:6px}.toast{position:fixed;right:22px;bottom:22px;background:#173426;color:#fff;padding:12px 16px;border-radius:9px;z-index:50;box-shadow:0 10px 25px #0002}.toolbar{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:14px}.toolbar>*{max-width:230px}.muted{color:var(--muted)}.bar{height:9px;border-radius:8px;background:#edf1ed;overflow:hidden}.bar span{display:block;height:100%;background:#27965c;border-radius:8px}.mobile-menu{display:none}@media(max-width:980px){.sidebar{width:210px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.two{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr}.content{padding:22px}.topbar{padding:0 22px}}@media(max-width:640px){.sidebar{width:60px;padding:16px 6px}.brand{font-size:0;padding:10px}.brand:before{content:'N';font-size:20px;color:#9de0b0}.brand small,.nav-label,.nav .nav-text,.sidebar-foot{display:none}.nav{justify-content:center;padding:12px 6px;font-size:0}.nav:before{content:attr(data-icon);font-size:17px}.topbar{height:58px;padding:0 14px}.content{padding:17px 13px}.heading h1{font-size:21px}.cards{gap:8px}.card{padding:12px}.metric-value{font-size:21px}.panel{padding:13px}.form{grid-template-columns:1fr}.full{grid-column:auto}.pos-layout{grid-template-columns:minmax(0,1fr)}.menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.heading{align-items:flex-start;flex-direction:column}.hide-mobile{display:none}}
/* Restaurant ERP palette: warm neutral canvas, deep navy navigation, teal actions */
:root{--brand:#16877a;--brand-dark:#106c62;--accent:#e5a13b;--ink:#25313b;--muted:#75808a;--line:#e5e8e9;--canvas:#f5f6f4;--card:#ffffff}
.sidebar{background:#243447;color:#dbe4ed}
.brand{color:#fff}.brand span{color:#55c2b1}.brand small{color:#a6b5c4}
.nav-label{color:#9eafbf}.nav{color:#c7d2dd}.nav:hover,.nav.active{background:#344b60;color:#fff}.nav.active{box-shadow:inset 3px 0 #42b8a7}
.sidebar-foot{color:#a6b5c4;border-top-color:#405469}
.avatar{background:#e1f2ef;color:var(--brand)}
th{background:#f6f7f6}td,th{border-bottom-color:#eaeded}
.badge{background:#e4f3f0;color:#14766c}
.field input,.field select,.field textarea,.search{border-color:#dce2e4}
.field input:focus,.field select:focus{border-color:var(--brand);box-shadow:0 0 0 3px #16877a17}
.menu-card:hover{border-color:var(--brand);box-shadow:0 3px 14px #24344712}
.pos-item-image{display:block;width:100%;height:64px;object-fit:cover;border-radius:7px;margin-bottom:6px;background:#f0f2f1}
/* Icon-led overview metric cards */
.metric-card{position:relative;overflow:hidden;padding:17px 18px;border-color:#e7ebed;box-shadow:0 2px 8px #24344708}
.metric-head{display:flex;align-items:center;gap:9px;min-height:30px}
.metric-icon{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:10px;font-size:17px;font-weight:800;background:#e4f3f0;color:#16877a}
.metric-head .metric{font-size:10px;letter-spacing:.055em;line-height:1.3}
.metric-card .metric-value{margin:12px 0 3px;font-size:27px}
.metric-card .metric-note{color:#7b8790}
.sales-icon{background:#e5f3ed;color:#25845e}.orders-icon{background:#e9effb;color:#5278b9}.menu-icon,.category-icon{background:#f1ebfb;color:#8962bb}.stock-icon{background:#fff2df;color:#b77a20}.kitchen-icon{background:#e1f3f1;color:#16877a}.outlet-icon{background:#eaf0f5;color:#526d86}
@media(max-width:640px){.metric-card{padding:12px}.metric-icon{width:28px;height:28px;flex-basis:28px;font-size:15px}.metric-head{gap:7px}.metric-head .metric{font-size:9px}.metric-card .metric-value{font-size:22px;margin-top:9px}}
/* Compact POS tiles so more menu items fit without scrolling */
.pos-layout .menu-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:7px}
.pos-layout .menu-card{min-height:0;padding:8px;border-radius:9px;gap:3px}
.pos-layout .menu-card b{font-size:11px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pos-layout .menu-card .sub{font-size:10px;margin-top:3px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pos-layout .menu-card .price{font-size:12px;margin-top:5px}
@media(max-width:640px){.pos-layout .menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.pos-layout .menu-card{padding:7px}.pos-item-image{height:52px}}
.bar{background:#e9edec}.bar span{background:#35a99a}
.toast{background:#243447}
.price{color:var(--brand)}
.brand:before{color:#55c2b1}
/* POS menu list stays in a bounded, independently scrollable area */
.pos-layout #menu-grid{max-height:560px;overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 5px 2px;align-content:start}
@media(max-width:640px){.pos-layout #menu-grid{max-height:65vh}}
/* POS category selector: keep long category lists compact and scrollable */
.pos-layout #cat-filter{max-height:42px;overflow-y:auto}
.pos-layout .toolbar{align-items:flex-start}
.pos-layout .toolbar select#cat-filter{max-width:230px}
/* Overview dashboard module navigation */
.overview-pulse{margin-top:-5px}
.overview-features{padding:20px}
.overview-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.overview-section-head h2{margin:0}
.overview-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.overview-feature{display:flex;align-items:center;gap:11px;min-width:0;padding:13px;border:1px solid var(--line);border-radius:11px;background:#fff;text-align:left;color:var(--ink);transition:border-color .15s,background .15s,transform .15s}
.overview-feature:hover{border-color:#8dcfc5;background:#f8fcfb;transform:translateY(-1px)}
.overview-feature-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px;background:#e7f4f1;color:#14766c;font-size:17px;font-weight:800}
.overview-feature-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.overview-feature-copy b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.overview-feature-copy small{font-size:10px;line-height:1.35;color:var(--muted)}
.overview-feature-arrow{margin-left:auto;color:#89969d;font-size:22px}
.overview-stock-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid var(--line)}
.overview-stock-row:last-child{border-bottom:0}
@media(max-width:980px){.overview-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.overview-features{padding:13px}.overview-feature-grid{grid-template-columns:1fr}.overview-feature{padding:11px}.overview-feature-copy b{font-size:12px}}
/* Professional inline staff creation form */
.staff-form-panel{border-color:#cfe3df;background:linear-gradient(135deg,#fff 0%,#f7fbfa 100%);box-shadow:0 5px 20px #2434470a}
.staff-form-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.staff-form-heading h2{margin:0 0 4px;font-size:17px}
.staff-form-actions{padding-top:5px}
.staff-form-actions .btn{min-width:130px}
@media(max-width:640px){.staff-form-heading{align-items:flex-start}.staff-form-actions .btn{flex:1}}
/* Keep the current order item list scrollable while totals and create button stay visible */
.pos-layout .current-order-items{max-height:280px;overflow-y:auto;overscroll-behavior:contain;padding-right:5px}
@media(max-width:980px){.pos-layout .current-order-items{max-height:32vh;min-height:72px}}
/* Keep long menu catalogs inside their own scrollable list */
.menu-items-scroll{max-height:560px;overflow:auto;border:1px solid var(--line);border-radius:10px;overscroll-behavior:contain}
.menu-items-scroll .table-wrap{overflow:visible}
.menu-items-scroll thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 var(--line)}
.menu-items-scroll table{white-space:nowrap}
@media(max-width:640px){.menu-items-scroll{max-height:65vh}}
/* Outlets & Settings: clearer hierarchy and responsive controls */
#view:has(.settings-section) .heading{margin-bottom:18px}
#view:has(.settings-section) .settings-section{padding:22px;margin-bottom:18px;box-shadow:0 2px 10px #24344708}
#view:has(.settings-section) .settings-section> .row{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:12px}
#view:has(.settings-section) .settings-section h2{font-size:16px;letter-spacing:-.02em}
#view:has(.settings-section) .table-wrap{border:1px solid var(--line);border-radius:10px;background:#fff}
#view:has(.settings-section) table{min-width:720px}
#view:has(.settings-section) th{padding:12px 14px;font-size:10px;white-space:nowrap}
#view:has(.settings-section) td{padding:12px 14px;vertical-align:middle}
#view:has(.settings-section) td:last-child{min-width:150px}
#view:has(.settings-section) .actions{gap:6px}
#view:has(.settings-section) .btn.small{white-space:nowrap}
#view:has(.settings-section) #outlet-editor .panel,#view:has(.settings-section) #printer-editor .panel{background:#f8faf9;border-color:#dce8e5;padding:18px}
#view:has(.settings-section) .form{gap:14px}
#view:has(.settings-section) .field input,#view:has(.settings-section) .field select{min-height:40px}
@media(max-width:640px){#view:has(.settings-section) .settings-section{padding:14px}#view:has(.settings-section) .settings-section>.row{align-items:flex-start!important;flex-direction:column}#view:has(.settings-section) .settings-section>.row .btn{width:100%}#view:has(.settings-section) #outlet-editor .panel,#view:has(.settings-section) #printer-editor .panel{padding:13px}}
/* Professional completed-order payment entry */
.payment-entry-panel{border-color:#cfe3df;background:linear-gradient(135deg,#fff 0%,#f7fbfa 100%);box-shadow:0 5px 20px #2434470a;margin-bottom:16px}.payment-form-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid var(--line)}.payment-form-head h2{margin:0 0 4px;font-size:17px}.payment-due-info{padding:11px 13px;border:1px solid #cfe8e2;border-radius:9px;background:#f1faf8;color:#245b53;font-size:12px;font-weight:700}.payment-entry-panel .form{gap:14px}.payment-entry-panel .field input,.payment-entry-panel .field select{min-height:42px}.payment-entry-panel .actions{padding-top:2px}.payment-entry-panel .actions .btn{min-width:170px}@media(max-width:640px){.payment-form-head{align-items:flex-start}.payment-entry-panel{padding:14px}.payment-entry-panel .actions .btn{width:100%}}
/* Kitchen Display System */
.kds-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}.kds-count{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink)}.kds-count span{font-size:12px;font-weight:700}.kds-count b{font-size:24px}.kds-new{--kds-color:#c58a28}.kds-preparing{--kds-color:#16877a}.kds-ready{--kds-color:#4385bd}.kds-count.kds-new{background:#fffaf0;border-color:#f0dfbb}.kds-count.kds-preparing{background:#f1faf8;border-color:#cfe8e2}.kds-count.kds-ready{background:#f2f7fc;border-color:#d5e4f2}.kds-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:start}.kds-column{min-width:0;border:1px solid var(--line);border-radius:12px;background:#f0f2f2;padding:12px}.kds-column>header{display:flex;align-items:center;justify-content:space-between;padding:3px 3px 12px;border-bottom:1px solid #dfe4e5;margin-bottom:10px}.kds-column>header h2{font-size:14px;margin:0 0 3px}.kds-column>header small{font-size:10px;color:var(--muted)}.kds-dot{width:10px;height:10px;border-radius:50%;background:var(--kds-color)}.kds-cards{display:grid;gap:10px}.kds-ticket{background:#fff;border:1px solid #e1e5e6;border-left:4px solid var(--kds-color);border-radius:10px;padding:12px;box-shadow:0 2px 7px #2434470a}.kds-ticket-head,.kds-ticket-meta{display:flex;justify-content:space-between;align-items:center;gap:8px}.kds-ticket-head strong{font-size:13px}.kds-ticket-head time{font-size:10px;color:var(--muted)}.kds-ticket-meta{font-size:11px;color:var(--muted);margin:8px 0;padding-bottom:8px;border-bottom:1px dashed var(--line);text-transform:capitalize}.kds-ticket-meta b{color:var(--ink);text-transform:none}.kds-items{display:grid;gap:7px;margin:9px 0 12px}.kds-items>div{display:flex;gap:8px;align-items:flex-start;font-size:12px}.kds-items>div b{min-width:30px;color:var(--brand)}.kds-items>div span{overflow-wrap:anywhere}.kds-note{font-size:11px;background:#fff7e8;border-radius:6px;padding:7px;margin-bottom:10px;color:#805a18}.kds-action{width:100%;justify-content:center}.kds-empty{padding:22px 8px;text-align:center;color:#8a969d;font-size:11px;background:#ffffff80;border:1px dashed #d6dcde;border-radius:8px}.kds-footnote{font-size:11px;color:var(--muted);padding:10px 2px}@media(max-width:980px){.kds-board{grid-template-columns:1fr}.kds-cards{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}}@media(max-width:640px){.kds-summary{gap:7px}.kds-count{padding:10px}.kds-count span{font-size:10px}.kds-count b{font-size:20px}.kds-column{padding:9px}.kds-cards{grid-template-columns:1fr}}
/* Orders & Kitchen: wrap long item lists instead of stretching the table */
#orders-table table{min-width:980px;table-layout:fixed}
#orders-table th:nth-child(6),#orders-table td:nth-child(6){width:30%;min-width:260px;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.55}
#orders-table td:nth-child(6){vertical-align:top}
#orders-table th:nth-child(1){width:6%}#orders-table th:nth-child(2){width:15%}#orders-table th:nth-child(3){width:9%}#orders-table th:nth-child(4){width:7%}#orders-table th:nth-child(5){width:11%}#orders-table th:nth-child(7){width:10%}#orders-table th:nth-child(8){width:9%}#orders-table th:nth-child(9){width:23%}
#orders-table td:nth-child(9){white-space:normal;min-width:210px}
/* Orders & Kitchen: keep the order queue in a bounded, independently scrollable list */
#orders-table{max-height:68vh;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px}
#orders-table table{min-width:980px;table-layout:fixed}
#orders-table thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 var(--line)}
/* Menu item editor: centered, scrollable modal instead of a form below the page */
.menu-modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(12,25,19,.56);backdrop-filter:blur(3px)}.menu-modal-panel{width:min(680px,100%);max-height:min(88vh,820px);overflow:auto;background:#fff;border:1px solid #dce8e2;border-radius:16px;padding:22px;box-shadow:0 24px 80px #0003}.menu-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--line)}.menu-modal-head h2{font-size:19px;margin:0 0 5px}.menu-modal-panel .form{gap:15px}.menu-modal-panel .field input,.menu-modal-panel .field select{min-height:42px}.menu-modal-panel .actions{padding-top:4px}.menu-modal-panel .actions .btn{min-width:120px}@media(max-width:640px){.menu-modal-backdrop{padding:10px;align-items:flex-end}.menu-modal-panel{width:100%;max-height:92vh;border-radius:16px 16px 10px 10px;padding:16px}.menu-modal-panel .form{grid-template-columns:1fr}.menu-modal-panel .full{grid-column:auto}.menu-modal-panel .actions .btn{flex:1}}
@media(max-width:640px){#orders-table{max-height:65vh}#orders-table table{min-width:900px}#orders-table th:nth-child(6),#orders-table td:nth-child(6){min-width:240px;width:28%}}