.image-preview{display:block;width:100%;height:190px;object-fit:cover;margin-top:10px;border-radius:16px;border:1px solid #dfe7e2;background:#f1f5f2}.image-preview.hidden{display:none}.admin-row{transition:transform .18s,box-shadow .18s}.admin-row:hover{transform:translateY(-2px);box-shadow:0 12px 30px #193c2f12}#menuImage::file-selector-button{border:0;border-radius:9px;padding:9px 12px;margin-right:10px;background:#e5eee9;color:#164a3a;font-weight:800;cursor:pointer}
.option-builder{margin:4px 0 14px;padding:14px;border:1px solid #eadbca;border-radius:16px;background:#fff8ef}.option-builder-head,.option-group-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.option-group-title{flex-wrap:wrap}.option-builder-head{margin-bottom:10px}.option-group-row{padding:14px 0;border-top:1px solid #eadbca}.option-group-title label{flex:1 1 190px;font-size:.83rem;font-weight:750}.option-group-title input,.option-group-title select{margin-top:4px}.option-group-title select{width:100%;border:1px solid #c8d0cc;border-radius:12px;padding:12px;font:inherit;background:#fff}.option-group-title .option-required-setting{flex:0 1 175px}.option-group-title .option-multiple{display:flex;align-items:center;gap:7px;flex:0 1 auto}.option-group-title .option-multiple input{width:20px;height:20px;margin:0}.option-values{display:grid;gap:8px;margin:10px 0}.option-value-row{display:flex;gap:8px;align-items:center}.option-value-row input{margin:0;min-width:0}.remove-option,.remove-option-value{flex:0 0 auto;border:0;border-radius:12px;background:#f8dfda;color:#a52c1c;font:inherit;font-weight:750;cursor:pointer}.remove-option{min-height:42px;padding:0 12px}.remove-option-value{width:42px;height:44px;font-size:1.25rem}.add-option-value{width:100%;margin-top:2px}.field-help{margin:7px 0 0;font-size:.73rem;color:#74645d}@media(max-width:560px){.option-builder-head{align-items:stretch;flex-direction:column}.option-builder-head button{width:100%}.option-group-title{align-items:stretch;flex-direction:column}.option-group-title .option-required-setting{flex:auto}.remove-option{width:100%}}
.option-values{grid-template-columns:minmax(0,1fr)}.option-value-row{width:100%}.option-value-row input{flex:1;width:100%}
.option-value-row>.option-value{flex:1 1 150px}.option-price-label{display:flex;flex:0 0 112px;align-items:center;gap:4px;white-space:nowrap;font-size:.8rem;font-weight:750}.option-price-label .option-extra{width:78px;min-width:0;margin:0;padding:10px 7px;text-align:right}.option-value-row .remove-option-value{flex:0 0 42px}
.order-items>li{margin:10px 0}.order-item-name{font-weight:750}.order-item-options{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;list-style:none;margin:6px 0 0;padding:0}.order-item-options li{display:flex;flex-wrap:wrap;gap:6px;line-height:1.45;color:#74645d}.order-item-options strong{color:#2b1b16;font-weight:650}
.order-item-price{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin-top:8px;font-size:.85rem;color:#594e47}.order-price-details{display:grid;gap:3px;min-width:0}.order-price-unit{font-weight:750;color:#2b1b16}.order-line-total{display:grid;gap:3px;justify-items:end;text-align:right;white-space:nowrap}.order-line-total strong{color:#17643b;font-size:1rem}.order-item-price-missing{color:#9a4b32}.order-total{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e8e1d9;padding-top:12px;margin-top:14px;font-weight:800}.order-total strong{color:#17643b;font-size:1.15rem;white-space:nowrap}
.order-delivery{margin:12px 0;padding:12px 14px;border:1px solid #e2e9e4;border-radius:14px;background:#f5faf6}.order-delivery p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}.order-delivery a{display:inline-flex;min-height:36px;align-items:center;color:#17643b;font-weight:750;text-underline-offset:3px}
.order-landmark{margin:10px 0;padding:10px 12px;border-radius:11px;background:#e7f2e9}.order-landmark strong{font-size:.82rem;color:#17543b}.order-landmark p{margin:4px 0 0}
.order-slip{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:12px 14px;border:1px solid #d9e8dc;border-radius:14px;background:#f5faf6}.order-slip strong{color:#17543b}.order-slip p{margin:5px 0}.order-slip a{display:grid;gap:5px;flex:none;max-width:130px;color:#17643b;font-size:.8rem;font-weight:750;text-align:center;text-decoration:none}.order-slip img{display:block;width:110px;height:110px;margin:auto;border-radius:10px;background:#fff;object-fit:contain}.order-slip-pending{display:block;border-color:#eadbc6;background:#fff9f0;color:#806244}@media(max-width:420px){.order-slip{align-items:flex-start}.order-slip a{max-width:90px}.order-slip img{width:82px;height:82px}}
.view-slip-action{border-color:#8ac2a2!important;background:#eef8f1!important;color:#176043!important}#adminSlipDialog{width:min(560px,calc(100% - 20px));max-height:calc(100dvh - 20px);overflow-y:auto}#adminSlipDialog h2{margin:2px 0 4px}#adminSlipOrder{margin:0 0 12px;color:#52665a}#adminSlipImage{display:block;width:100%;max-height:60dvh;margin:auto;border-radius:12px;background:#f3f5f3;object-fit:contain}.admin-slip-total{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding:12px;border-radius:12px;background:#eef8f1}.admin-slip-total strong{color:#176043;font-size:1.2rem}.admin-slip-warning{color:#8a5140;font-size:.83rem}
.order-slip-open{cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.order-slip-open:hover{border-color:#8ac2a2;background:#eef8f1}
.order-slip-open:focus-visible{outline:3px solid #17643b;outline-offset:2px}
.order-slip-preview{display:grid;gap:5px;flex:none;max-width:130px;color:#17643b;font-size:.8rem;font-weight:750;text-align:center}
@media(max-width:420px){.order-slip-preview{max-width:90px}}
.admin-thumb{width:72px;height:72px;flex:0 0 72px;display:grid;place-items:center;overflow:hidden;border:1px solid #eadbca;border-radius:15px;background:#fff}.admin-thumb img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}.admin-thumb span{font-size:1.65rem}@media(max-width:560px){.admin-thumb{width:62px;height:62px;flex-basis:62px}.admin-row .info{min-width:calc(100% - 78px)}}
#menuSaveStatus{min-height:1.3em;margin:10px 0 2px;color:#a52c1c;font-size:.9rem;font-weight:750}
.payment-admin-head,.payment-admin-card{display:flex;align-items:center;gap:14px}.payment-admin-head{justify-content:space-between}.payment-admin-head h2,.payment-admin-head p{margin:0}.payment-admin-head .primary{width:auto}.payment-admin-card{padding:14px;border:1px solid #eadbca;border-radius:18px;background:#fff}.payment-admin-card .info{flex:1}.payment-admin-card h3,.payment-admin-card p{margin:3px 0}.payment-admin-qr{width:74px;height:74px;flex:0 0 74px;display:grid;place-items:center;overflow:hidden;border:1px solid #eadbca;border-radius:14px;background:#fff8ef}.payment-admin-qr img{width:100%;height:100%;object-fit:contain}.payment-admin-card .danger{color:#b42318}.order-selects{display:flex;gap:8px}.order-selects label{font-size:.75rem;font-weight:750}.order-selects select{display:block;margin-top:3px}@media(max-width:620px){.payment-admin-head,.payment-admin-card{align-items:stretch;flex-direction:column}.payment-admin-head .primary,.payment-admin-card button{width:100%}.order-selects{width:100%;flex-direction:column}.order-selects label,.order-selects select{width:100%}}
.promptpay-fields{display:grid;gap:12px;padding:14px;border:1px solid #d9e8dc;border-radius:15px;background:#f5faf6}.promptpay-symbol{color:#176043;font-size:2rem;font-weight:900}.payment-card-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.promptpay-badge{background:#dff3e7!important;color:#176043!important}#paymentDialog{max-height:calc(100dvh - 24px);overflow-y:auto}
.cod-symbol{font-size:1.8rem}.cod-badge{background:#fff0cf!important;color:#7a4b0c!important}
.history-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.history-head h2,.history-head p{margin:0}.history-card{opacity:.92}.complete-order{display:block;width:auto;margin:12px 0 0 auto;background:linear-gradient(135deg,#21865e,#176847)!important}.tabs{overflow-x:auto;scrollbar-width:none}.tabs::-webkit-scrollbar{display:none}@media(max-width:620px){.history-head{align-items:stretch;flex-direction:column}.complete-order{width:100%}}
.order-progress{display:flex;align-items:flex-start;margin:18px 0 12px}.progress-step{width:70px;display:grid;justify-items:center;gap:5px;color:#98877d;text-align:center}.progress-step span{width:30px;height:30px;display:grid;place-items:center;border:2px solid #ddcfc1;border-radius:50%;background:#fff;font-weight:850}.progress-step small{font-size:.7rem;line-height:1.15}.progress-step.active{color:#8c3416}.progress-step.active span{border-color:#ed681f;background:#ed681f;color:#fff}.progress-line{height:3px;flex:1;margin:14px -12px 0;background:#e4d9ce}.progress-line.active{background:#ed681f}.payment-status-label{font-size:.75rem;font-weight:750}.payment-status-label select{display:block;margin-top:3px}.order-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}.order-actions .primary{width:auto;margin:0}.next-order{background:linear-gradient(135deg,#f47b24,#db4c16)!important}.complete-order{margin:0!important;background:linear-gradient(135deg,#21865e,#176847)!important}.cancel-order{color:#b42318}@media(max-width:620px){.order-progress{overflow-x:auto}.progress-step{min-width:61px}.order-actions{flex-direction:column}.order-actions .primary,.order-actions .secondary{width:100%}}
.order-badge{display:inline-grid;min-width:22px;height:22px;margin-left:7px;padding:0 6px;place-items:center;border-radius:999px;background:#d92d20;color:#fff;font-size:.75rem;font-weight:900;line-height:1;box-shadow:0 0 0 3px #fff8ef}.order-badge.hidden{display:none}
.notification-sound{margin-left:auto;white-space:nowrap}.new-order-alert{display:block;width:100%;margin:0 0 12px;padding:14px 16px;border:1px solid #e8b06c;border-radius:14px;background:#fff2d7;color:#793d0d;font:inherit;font-weight:850;cursor:pointer;animation:new-order-pulse 1.2s ease-in-out infinite alternate}.payment-method-badge{display:inline-flex;margin-top:5px;padding:5px 9px;border-radius:999px;background:#e0f2e7;color:#176043;font-size:.75rem;font-weight:850}.payment-method-badge.cod{background:#fff0cf;color:#7a4b0c}.order-slip.order-cod{border-color:#e7c78f;background:#fff8e9}.order-slip.order-cod strong{color:#7a4b0c}@keyframes new-order-pulse{to{box-shadow:0 0 0 4px #f0a64c33}}@media(max-width:620px){.admin-head{flex-wrap:wrap}.notification-sound{order:3;width:100%;margin-left:0}}
.order-card.order-unread{position:relative;overflow:hidden;border:2px solid #403a37;box-shadow:0 14px 34px #1c171544}.order-unread-cover{position:absolute;z-index:10;inset:0;width:100%;height:100%;display:grid;place-items:center;border:0;border-radius:inherit;background:rgba(20,18,17,.38);color:#fff;font:inherit;font-size:1.1rem;font-weight:900;text-align:center;cursor:pointer;backdrop-filter:blur(1px);-webkit-backdrop-filter:blur(1px);animation:unread-cover-pulse 1.2s ease-in-out infinite alternate}.order-unread-cover span{padding:12px 18px;border-radius:14px;background:rgba(20,18,17,.82);box-shadow:0 6px 22px #0005}.order-unread-cover small{font-size:.76rem;font-weight:700}@keyframes unread-cover-pulse{to{background:rgba(20,18,17,.48)}}
/* An explicit acknowledgement button leaves order details accessible while ringing. */
.order-card .order-unread-cover {
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 10px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--primary, #0b7660);
  color: white;
  backdrop-filter: none;
}
.payment-status-text{display:block;margin-top:5px;padding:9px 12px;border:1px solid #eadac4;border-radius:12px;background:#fff4de;color:#785018;font-size:.87rem;font-weight:800;line-height:1.45;max-width:280px}.payment-status-text.payment-status-paid{border-color:#acd5ba;background:#e8f6ec;color:#176043}.payment-status-text.payment-status-failed,.payment-status-text.payment-status-refunded{border-color:#ecc7c4;background:#fff0ed;color:#a22d25}.confirm-payment{color:#176043}.confirm-payment:disabled{opacity:.5;cursor:not-allowed}
.store-image-field{display:grid;gap:8px}.store-image-field input[type="file"]{width:100%;max-width:100%;font-size:.85rem}.store-image-preview{display:block;width:100%;height:180px;object-fit:contain;border:1px solid #e2e9e4;border-radius:14px;background:#fff}#storeDialog{max-height:calc(100dvh - 24px);overflow-y:auto}
