/* LORD v2 — action-first restaurant workspace. */
html.lord-v2 body{background:#f4f6f8}

/* Hide technical "All" from the primary workflow. Search/filters still provide global access. */
html.lord-v2 .tab-btn[data-tab="all"],html.lord-v2 .lord-v2-hidden-all{display:none!important}

html.lord-v2 .tabs{gap:9px;align-items:stretch}
html.lord-v2 .tab-btn{min-height:46px;padding:10px 14px;font-size:13px;border-radius:12px;white-space:nowrap}
html.lord-v2 .tab-btn[data-tab="new"]{background:#fff0f0;color:#c93434}
html.lord-v2 .tab-btn[data-tab="cooking"]{background:#fff2df;color:#a45c00}
html.lord-v2 .tab-btn[data-tab="ready"]{background:#eaf8ee;color:#20713c}
html.lord-v2 .tab-btn[data-tab="courier"]{background:#eaf4ff;color:#286baa}
html.lord-v2 .tab-btn[data-tab="scheduled"]{background:#f2edff;color:#6645b6}
html.lord-v2 .tab-btn[data-tab="done"]{background:#eef1f4;color:#59636d}
html.lord-v2 .tab-btn.active{outline:3px solid rgba(27,38,49,.07);box-shadow:0 3px 10px rgba(22,31,40,.08)}
html.lord-v2 .tab-btn .ref-count{font-size:11px;min-width:23px;height:23px;border-radius:8px}

/* The selected order is the real workplace: give it roughly 2/3 of desktop width. */
html.lord-v2 .workspace{grid-template-columns:minmax(350px,.64fr) minmax(690px,1.36fr);gap:0;min-height:calc(100vh - 166px)}
html.lord-v2 .orders-pane{min-width:0}
html.lord-v2 .detail-pane{min-width:0;background:#fff}
html.lord-v2 .detail{padding:20px 24px 28px}
html.lord-v2 .detail-title{font-size:30px}

/* Queue: number, source and deadline must be readable in one glance. */
html.lord-v2 .order-row{min-height:86px;padding:13px 14px;grid-template-columns:82px 72px minmax(150px,1fr) 72px 94px;gap:10px}
html.lord-v2 .order-no{font-size:17px;font-weight:950}
html.lord-v2 .customer-line{font-size:13px;font-weight:850}
html.lord-v2 .address-line{font-size:11px;line-height:1.35}
html.lord-v2 .source-badge{width:44px!important;height:44px!important;min-width:44px!important;line-height:44px!important;font-size:20px!important}
html.lord-v2 .ref-order-timer{min-width:72px;height:38px;border-radius:11px;flex-direction:column;line-height:1.05}
html.lord-v2 .ref-order-timer strong{font-size:17px}
html.lord-v2 .ref-order-timer small{font-size:8px;text-align:center}
html.lord-v2 .scheduled-tag{display:inline-block;margin-top:4px;padding:4px 7px;border-radius:7px;background:#efe7ff;color:#633aac;font-weight:950;font-size:9px;letter-spacing:.03em}
html.lord-v2 .order-row.lord-v2-overdue{background:#fff3f3;box-shadow:inset 4px 0 0 #e84949}
html.lord-v2 .order-row.lord-v2-courier-wait{box-shadow:inset 4px 0 0 #e4ae27}

/* Timing is operational data, not decoration. */
html.lord-v2 .ref-detail-timer-card{margin:6px 0 14px;padding:16px 18px;border-radius:14px;min-height:84px}
html.lord-v2 .ref-detail-timer-card .ref-timer-label{font-size:11px}
html.lord-v2 .ref-detail-timer-card strong{font-size:34px}
html.lord-v2 .ref-detail-timer-card small{font-size:11px}
html.lord-v2 .ref-timer-overdue{background:#ffe3e3!important;color:#b92727!important;box-shadow:inset 0 0 0 1px rgba(185,39,39,.15)}
html.lord-v2 .lord-v2-preorder-card{background:#f4efff;border:1px solid #e6ddfb;color:#5a3c9a;padding:14px 16px}
html.lord-v2 .lord-v2-preorder-card strong{font-size:20px}

/* One dominant next action near the top of the selected order. */
html.lord-v2 .lord-v2-primary-zone{margin:0 0 16px;padding:14px;border:1px solid #e8ebef;border-radius:14px;background:#fbfcfd}
html.lord-v2 .lord-v2-primary-zone:empty{display:none}
html.lord-v2 .lord-v2-main-action-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
html.lord-v2 .lord-v2-main-action{min-height:60px!important;font-size:17px!important;font-weight:950!important;border-radius:11px!important;letter-spacing:.01em}
html.lord-v2 .lord-v2-primary-zone .danger{min-height:60px;border-radius:11px;padding-inline:18px}
html.lord-v2 .lord-v2-primary-zone .closed-state{margin:0;padding:16px;font-size:14px;border-radius:11px}
html.lord-v2 .lord-v2-in-transit{background:#edf6ff;border-color:#d8eaff;color:#286baa;font-weight:850}
html.lord-v2 .lord-v2-wait-pickup{border:1px solid #f0d98b;background:#fff8df;border-radius:12px;padding:14px 15px}

/* Work content gets more breathing room. */
html.lord-v2 .section{margin-top:4px}
html.lord-v2 .section-head{font-size:13px;padding:14px 2px 9px}
html.lord-v2 .section-body{padding-bottom:14px}
html.lord-v2 .item{padding:13px 2px}
html.lord-v2 .item-name{font-size:15px;font-weight:850;line-height:1.35}
html.lord-v2 .item-sub{font-size:10px}
html.lord-v2 .kitchen-comment{display:inline-block;margin-top:5px;padding:5px 8px;border-radius:7px;background:#fff1d8;color:#8b5700;font-weight:800}
html.lord-v2 .info-grid>div:nth-child(3){padding:14px 15px}
html.lord-v2 .info-grid>div:nth-child(3) .info-value{font-size:17px}
html.lord-v2 .comment-box{padding:11px 12px;font-size:12px}

/* Printing/payment stay available but never compete with the next operational action. */
html.lord-v2 .actions-card{position:static;background:#fff;padding-top:8px;border-top:1px solid #eef1f3}
html.lord-v2 .actions-card.lord-v2-secondary-only{margin-top:8px}
html.lord-v2 .lord-print-action .secondary{min-height:38px!important;font-size:11px!important;background:#f6f7f9!important;color:#64707b!important}
html.lord-v2 .sum-row.total{font-size:17px}
html.lord-v2 .sync-note{opacity:.65}

@media(max-width:1320px){
  html.lord-v2 .workspace{grid-template-columns:minmax(360px,.72fr) minmax(600px,1.28fr)}
  html.lord-v2 .detail{padding-left:18px;padding-right:18px}
}

@media(max-width:1050px){
  html.lord-v2 .workspace{grid-template-columns:minmax(340px,.88fr) minmax(520px,1.12fr)}
  html.lord-v2 .order-row{grid-template-columns:76px 60px minmax(130px,1fr) 84px}
  html.lord-v2 .order-row .amount{display:none}
}

@media(max-width:900px){
  html.lord-v2 .workspace{display:block;min-height:auto}
  html.lord-v2 .detail{padding:16px 14px 24px}
  html.lord-v2 .lord-v2-primary-zone{padding:10px;margin-bottom:12px}
  html.lord-v2 .lord-v2-main-action{min-height:56px!important;font-size:16px!important}
  html.lord-v2 .tabs{padding-bottom:2px}
  html.lord-v2 .tab-btn{min-height:42px;padding:9px 11px}
}
