/* NOZZHIK v0.6.0 — Orders Web UI */
#orders .orders-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}
#orders .orders-head h2{margin:4px 0 6px}#orders .orders-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.orders-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.orders-summary>div{padding:15px 16px;border:1px solid var(--line);border-radius:16px;background:#101419}.orders-summary span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase}.orders-summary strong{display:block;margin-top:7px;font-size:20px}
.orders-toolbar{display:grid;grid-template-columns:minmax(220px,1.8fr) minmax(150px,1fr) minmax(160px,1fr) auto;gap:10px;align-items:end;padding:16px;margin-bottom:14px;border:1px solid var(--line);border-radius:16px;background:#101419}.orders-toolbar label{display:grid;gap:6px;color:var(--muted);font-size:11px}.orders-toolbar input,.orders-toolbar select,.orders-toolbar button{min-height:44px}
.order-status{display:inline-flex;align-items:center;gap:7px;min-height:27px;padding:0 9px;border:1px solid #2e3640;border-radius:99px;font-size:10px;font-weight:800;white-space:nowrap}.order-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#6f7984}.order-status.confirmed{border-color:#675a34;color:#ecd390;background:rgba(126,91,49,.08)}.order-status.confirmed::before{background:#e5bf61}.order-status.issued{border-color:#31513f;color:#a9dfbb;background:rgba(49,126,79,.06)}.order-status.issued::before{background:#78e6a5}.order-status.cancelled{border-color:#59393d;color:#e7aab0;background:rgba(126,49,62,.08)}.order-status.cancelled::before{background:#d9848d}
.orders-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.orders-actions button{min-height:34px;padding:0 10px;font-size:11px}.orders-actions .danger{border-color:#59393d;color:#e7aab0}.order-reserve{color:#ecd390;font-size:11px}
.orders-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.orders-pagination span{color:var(--muted);font-size:11px}.orders-pagination>div{display:flex;gap:8px}.orders-empty{padding:30px 18px;text-align:center;color:var(--muted);font-size:12px}
#order-detail-dialog .dialog-card,#order-issue-dialog .dialog-card{width:min(94vw,760px);max-height:90vh}.order-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.order-detail-grid>div{padding:12px;border:1px solid var(--line);border-radius:12px;background:#0f1317}.order-detail-grid span{display:block;color:var(--muted);font-size:10px}.order-detail-grid strong{display:block;margin-top:6px;font-size:13px;overflow-wrap:anywhere}.order-detail-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.order-detail-section h4{margin:0 0 12px}.order-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid #1d232b}.order-line:first-child{border-top:0}.order-line small{display:block;margin-top:4px;color:var(--muted)}.order-history-row{display:grid;grid-template-columns:125px minmax(0,1fr);gap:12px;padding:10px 0;border-top:1px solid #1d232b}.order-history-row:first-child{border-top:0}.order-history-row time{color:var(--muted);font-size:10px}.order-history-row strong{display:block;font-size:12px}.order-history-row p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.4}
@media(max-width:900px){.orders-summary{grid-template-columns:1fr 1fr}.orders-toolbar{grid-template-columns:1fr 1fr}.orders-toolbar .orders-search,.orders-toolbar .orders-refresh{grid-column:1/-1}.order-detail-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){#orders .orders-head{flex-direction:column}.orders-toolbar{grid-template-columns:1fr}.orders-toolbar>*{grid-column:1!important}.orders-pagination{align-items:stretch;flex-direction:column}.orders-pagination>div{display:grid;grid-template-columns:1fr 1fr}.order-detail-grid{grid-template-columns:1fr}.order-line{grid-template-columns:1fr auto}.order-line>strong:last-child{grid-column:1/-1}.order-history-row{grid-template-columns:1fr}}


/* NOZZHIK_V060_ORDERS_EDITOR_UI */
.orders-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.order-editor-card{width:min(94vw,780px);max-height:90vh}
.order-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.order-editor-grid .wide{grid-column:1/-1}
.order-editor-items{display:flex;flex-direction:column;gap:9px}
.order-editor-item{display:grid;grid-template-columns:minmax(0,1fr) 110px 42px;gap:8px;align-items:end}
.order-editor-item button{width:42px;min-height:44px;padding:0}
.order-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.order-editor-footer>div{display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:760px){
  .orders-head-actions{width:100%}
  .orders-head-actions button{flex:1}
  .order-editor-grid{grid-template-columns:1fr}
  .order-editor-grid .wide{grid-column:1}
  .order-editor-item{grid-template-columns:minmax(0,1fr) 86px 42px}
  .order-editor-footer{align-items:stretch;flex-direction:column}
  .order-editor-footer>div{display:grid;grid-template-columns:1fr 1fr}
}
