/* LUNOR Operations Update v1 — runtime UI layer for shared-host deployment. */
.lunor-back-button{display:inline-flex;align-items:center;gap:6px;border:1px solid #ddd4c7;background:#fff;color:#0C1B2E;border-radius:10px;padding:9px 12px;cursor:pointer;min-height:40px}
.lunor-back-button span{font-size:18px;line-height:1}.lunor-settings-link{cursor:pointer}
.lunor-customer-preferences{margin:12px 0;padding:13px 14px;border:1px solid #e7e0d6;border-radius:14px;background:#fffaf2;display:grid;gap:7px}.lunor-customer-preferences strong{color:#0C1B2E}.lunor-customer-preferences p{margin:0;white-space:pre-wrap;color:#596678}.lunor-time-chips{display:flex;flex-wrap:wrap;gap:6px}.lunor-time-chip{display:inline-flex;padding:5px 9px;border-radius:999px;background:#eee7dc;color:#5d4931;font-size:12px;direction:ltr}
.lunor-preferences-editor{margin-top:18px}.lunor-preferences-editor textarea{width:100%;min-height:110px;resize:vertical;padding:11px 12px;border:1px solid #d8d1c5;border-radius:10px;font:inherit}.lunor-time-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.lunor-time-picker button{border:1px solid #d8d1c5;background:#fff;border-radius:10px;padding:9px 7px;cursor:pointer;direction:ltr}.lunor-time-picker button.active{background:#0C1B2E;color:#fff;border-color:#0C1B2E}.lunor-pref-actions{display:flex;align-items:center;gap:10px;margin-top:10px}.lunor-pref-status{font-size:12px;color:#277a4d}
.lunor-ops-modal-backdrop{position:fixed;inset:0;z-index:220;background:rgba(5,18,32,.45);display:grid;place-items:center;padding:18px}.lunor-ops-modal{width:min(620px,96vw);max-height:92vh;overflow:auto;background:#fffdf9;border-radius:20px;padding:20px;border:1px solid #d8d1c5}.lunor-ops-modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.lunor-ops-modal-head h2{margin:0}.lunor-branding-preview{display:grid;place-items:center;min-height:160px;margin:16px 0;border:1px dashed #cfc4b4;border-radius:14px;background:#fff}.lunor-branding-preview img{max-width:80%;max-height:130px;object-fit:contain}.lunor-branding-actions{display:flex;gap:8px;flex-wrap:wrap}.lunor-branding-actions label{display:inline-flex;align-items:center;cursor:pointer}.lunor-branding-actions input[type=file]{position:absolute;width:1px;height:1px;opacity:0}.lunor-ops-error{margin-top:10px;padding:10px 12px;border-radius:9px;background:#fff1f1;color:#8f2f2f}
.lunor-order-reminders{position:fixed;left:22px;bottom:22px;z-index:94;display:grid;gap:8px;width:min(370px,calc(100vw - 44px))}.lunor-order-reminder{display:grid;gap:3px;text-align:start;border:1px solid #efc98f;border-radius:14px;background:#fff9ee;color:#0C1B2E;padding:11px 13px;cursor:pointer}.lunor-order-reminder small{color:#7c6038}.lunor-draft-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e8f1fb;color:#245782;font-size:12px;margin-inline-start:8px}
.print-head .lunor-invoice-logo{display:block;max-width:190px;max-height:76px;object-fit:contain}.print-80mm .print-head .lunor-invoice-logo{max-width:62mm;max-height:28mm}

/* Pinned navigation reflows content instead of covering/scaling it. */
.release-a-shell.lunor-menu-pinned{--lunor-pinned-sidebar:280px}.release-a-shell.lunor-menu-pinned .offcanvas-sidebar{transform:translateX(0)!important;width:var(--lunor-pinned-sidebar)!important}.release-a-shell.lunor-menu-pinned .app-main{margin-left:var(--lunor-pinned-sidebar);width:calc(100% - var(--lunor-pinned-sidebar));min-width:0}.release-a-shell.lunor-menu-pinned .menu-edge-rail{left:var(--lunor-pinned-sidebar)!important}.release-a-shell.lunor-menu-pinned .sidebar-backdrop{display:none!important}.release-a-shell.lunor-menu-pinned .content{max-width:100%;min-width:0}.release-a-shell.lunor-menu-pinned .pos-layout{grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr)!important}
@media(max-width:1180px) and (min-width:901px){.release-a-shell.lunor-menu-pinned{--lunor-pinned-sidebar:240px}.release-a-shell .sidebar-pin{display:inline-flex!important}.release-a-shell.lunor-menu-pinned .pos-layout{grid-template-columns:minmax(0,1fr) minmax(270px,.72fr)!important}.release-a-shell.lunor-menu-pinned .pos-mobile-cart-button{display:none!important}}
@media(max-width:900px) and (min-width:720px){.release-a-shell.lunor-menu-pinned{--lunor-pinned-sidebar:210px}.release-a-shell .sidebar-pin{display:inline-flex!important}.release-a-shell.lunor-menu-pinned .content{padding:12px!important}.release-a-shell.lunor-menu-pinned .app-header{padding-inline:10px!important}.release-a-shell.lunor-menu-pinned .pos-layout{grid-template-columns:1fr!important}.release-a-shell.lunor-menu-pinned .order-summary{position:static!important}}
@media(max-width:719px){.release-a-shell .sidebar-pin{display:none!important}.release-a-shell.lunor-menu-pinned .app-main{margin-left:0!important;width:100%!important}.release-a-shell.lunor-menu-pinned .offcanvas-sidebar{width:min(340px,88vw)!important}.lunor-time-picker{grid-template-columns:repeat(3,minmax(0,1fr))}.lunor-order-reminders{left:8px;bottom:8px;width:calc(100vw - 16px)}}
@media(max-width:420px){.lunor-time-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.lunor-back-button b{display:none}}

/* v1.1 UAT hotfix */
.lunor-profile-route-root>.page-heading,.lunor-profile-route-root>.toolbar,.lunor-profile-route-root>.table-wrap,.lunor-profile-route-root>form.panel{display:none!important}
.lunor-profile-route-root>.customer-detail-panel{margin-top:0!important}
.customer-detail-panel>.lunor-preferences-editor{margin:18px 0;padding:18px;border:1px solid #e7e0d6;border-radius:16px;background:#fffaf2}
.customer-preferences-native textarea{width:100%;min-height:120px;resize:vertical;padding:11px 12px;border:1px solid #d8d1c5;border-radius:10px;font:inherit}
.lunor-time-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
.lunor-time-picker button{min-height:48px;font-weight:600}
.error-text{color:#a33232!important}
.order-summary>.lunor-clear-cart{display:block;margin:-4px 0 12px auto;border-color:#e3b8b8;color:#8a2d2d}
.order-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-summary-head h2{margin:0}.danger-text{color:#8a2d2d;border-color:#e3b8b8}
.lunor-order-reminder{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px;padding:0;overflow:hidden}
.lunor-reminder-body{display:grid;gap:3px;text-align:start;border:0;background:transparent;color:inherit;padding:11px 42px 11px 13px;cursor:pointer;width:100%}
.lunor-reminder-body small{color:#7c6038}.lunor-reminder-close{position:absolute;top:7px;right:7px;width:30px;height:30px;border:0;border-radius:9px;background:#fff2dd;color:#7a4c14;font-size:22px;line-height:1;cursor:pointer;display:grid;place-items:center}.lunor-reminder-close:hover{background:#f7dfb9}
.lunor-order-status-control{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.lunor-order-status-control>div:first-child{display:grid;gap:5px}.lunor-order-status-control .status{width:max-content}.lunor-status-actions{display:flex;align-items:center;gap:8px}
@media(max-width:900px){.lunor-time-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.lunor-order-status-control{align-items:stretch;flex-direction:column}.lunor-status-actions .primary{width:100%}}
@media(max-width:520px){.lunor-time-picker{grid-template-columns:1fr}.order-summary-head{align-items:stretch;flex-direction:column}.order-summary-head .secondary{width:100%}}


/* v1.2 UAT hotfix */
@keyframes lunorReminderPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.018)}}
.lunor-reminder-pulse{animation:lunorReminderPulse 1.8s ease-in-out infinite;transform-origin:center}
@media (prefers-reduced-motion:reduce){.lunor-reminder-pulse{animation:none}}
.lunor-status-actions{flex-wrap:wrap}
.lunor-status-select{min-width:190px;min-height:44px;border:1px solid #d8d1c5;border-radius:10px;background:#fff;color:#0C1B2E;padding:8px 10px;font:inherit}
.lunor-status-message{flex-basis:100%;font-size:12px}
@media(max-width:900px){.lunor-status-select,.lunor-status-save{width:100%}}


/* v1.5 — POS quantity stepper + route artifact cleanup UI */
.offering-row>span:last-child.lunor-qty-host{
  display:grid!important;
  grid-template-columns:42px 84px 42px!important;
  align-items:center!important;
  justify-content:end;
  gap:7px!important;
  width:max-content;
  max-width:100%;
}
.offering-row>span:last-child.lunor-qty-host>small{
  grid-column:1/-1;
  margin:0 0 2px!important;
}
.lunor-qty-input{
  grid-column:2!important;
  width:84px!important;
  min-width:0!important;
  max-width:84px!important;
  height:42px!important;
  padding:6px 8px!important;
  text-align:center!important;
  font-size:16px!important;
  font-weight:700;
  border-radius:10px!important;
  -moz-appearance:textfield;
}
.lunor-qty-input::-webkit-outer-spin-button,
.lunor-qty-input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}
.lunor-qty-step{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  border:1px solid #d8d1c5!important;
  border-radius:10px!important;
  background:#fffdf9!important;
  color:#0C1B2E!important;
  font-size:24px!important;
  font-weight:700!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer;
  touch-action:manipulation;
}
.lunor-qty-minus{grid-column:1!important}
.lunor-qty-plus{grid-column:3!important}
.lunor-qty-step:active{transform:scale(.96)}
@media(min-width:701px){
  .offering-row{grid-template-columns:minmax(0,1fr) 190px!important}
}
@media(max-width:700px){
  .offering-row{grid-template-columns:1fr!important}
  .offering-row>span:last-child.lunor-qty-host{justify-content:start!important}
}


/* v1.6 — centralized overdue-order Notification Center */
.lunor-order-reminders{display:none!important}
.lunor-order-notification-center{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.lunor-notification-trigger{
  position:relative;
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  padding:0!important;
  border:1px solid #d8d1c5!important;
  border-radius:50%!important;
  background:#fffdf9!important;
  color:#0C1B2E!important;
  display:grid!important;
  place-items:center!important;
  overflow:visible!important;
  cursor:pointer;
  isolation:isolate;
}
.lunor-bell-icon{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  position:relative;
  z-index:2;
}
.lunor-bell-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.lunor-notification-trigger.has-alerts::before,
.lunor-notification-trigger.has-alerts::after{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:50%;
  border:2px solid rgba(185,126,44,.42);
  z-index:-1;
  pointer-events:none;
  animation:lunorNotificationRing 2.8s ease-out infinite;
}
.lunor-notification-trigger.has-alerts::after{
  inset:-10px;
  animation-delay:1.35s;
  opacity:.65;
}
@keyframes lunorNotificationRing{
  0%{transform:scale(.86);opacity:0}
  18%{opacity:.75}
  72%,100%{transform:scale(1.18);opacity:0}
}
.lunor-notification-count{
  position:absolute;
  top:-7px;
  right:-7px;
  min-width:21px;
  height:21px;
  padding:0 5px;
  border-radius:999px;
  background:#9f2d24;
  color:#fff;
  border:2px solid #fffdf9;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  line-height:1;
  z-index:4;
}
.lunor-notification-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:1198!important;
  width:100%!important;
  height:100%!important;
  border:0!important;
  border-radius:0!important;
  padding:0!important;
  background:rgba(12,27,46,.34)!important;
  cursor:default!important;
}
.lunor-notification-drawer{
  position:fixed;
  top:0;
  right:0;
  z-index:1199;
  width:min(430px,94vw);
  height:100dvh;
  background:#fffdf9;
  color:#0C1B2E;
  border-left:1px solid #e1d9cc;
  box-shadow:-18px 0 44px rgba(12,27,46,.16);
  display:flex;
  flex-direction:column;
  padding:20px;
  overflow:hidden;
  animation:lunorNotificationDrawerIn .2s ease-out;
}
[dir="rtl"] .lunor-notification-drawer{direction:rtl}
@keyframes lunorNotificationDrawerIn{
  from{transform:translateX(28px);opacity:.6}
  to{transform:translateX(0);opacity:1}
}
.lunor-notification-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding-bottom:15px;
  border-bottom:1px solid #e9e1d6;
}
.lunor-notification-head h2{margin:0 0 5px;font-size:24px;line-height:1.15}
.lunor-notification-head p{margin:0;font-size:13px;color:#687891}
.lunor-notification-drawer-close,
.lunor-notification-item-dismiss{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
  border:1px solid #d8d1c5!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#0C1B2E!important;
  display:grid!important;
  place-items:center!important;
  font-size:20px!important;
  line-height:1!important;
}
.lunor-notification-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:14px 0 12px;
  scrollbar-width:thin;
}
.lunor-notification-tab{
  white-space:nowrap;
  min-height:38px!important;
  padding:7px 11px!important;
  border:1px solid #ded5c8!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#0C1B2E!important;
  font-size:12px!important;
}
.lunor-notification-tab.active{
  background:#0C1B2E!important;
  border-color:#0C1B2E!important;
  color:#fff!important;
}
.lunor-notification-list{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:2px 2px 28px;
}
.lunor-notification-item{
  position:relative;
  border:1px solid #e2dacd;
  border-left:4px solid #b88a4d;
  border-radius:14px;
  background:#fff;
  padding:14px;
  margin:0 0 10px;
}
[dir="rtl"] .lunor-notification-item{
  border-left:1px solid #e2dacd;
  border-right:4px solid #b88a4d;
}
.lunor-notification-item.severity-warning{
  border-left-color:#c97820;
  background:#fffaf1;
}
[dir="rtl"] .lunor-notification-item.severity-warning{border-right-color:#c97820}
.lunor-notification-item.severity-high{
  border-left-color:#a63b32;
  background:#fff6f4;
}
[dir="rtl"] .lunor-notification-item.severity-high{border-right-color:#a63b32}
.lunor-notification-item-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.lunor-notification-item-top strong{font-size:15px}
.lunor-notification-item-dismiss{
  width:32px!important;
  min-width:32px!important;
  height:32px!important;
  min-height:32px!important;
  font-size:17px!important;
  border:0!important;
  background:#f8eee1!important;
}
.lunor-notification-customer{display:block;margin-top:4px;font-size:14px}
.lunor-notification-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.lunor-notification-status,
.lunor-notification-aging{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 9px;
  border-radius:999px;
  background:#f1ece4;
  font-size:12px;
}
.lunor-notification-aging{background:#fff0d9;color:#80551e}
.severity-high .lunor-notification-aging{background:#f9dfdc;color:#922f27}
.lunor-notification-view{
  width:100%!important;
  min-height:42px!important;
  margin-top:12px!important;
  border-radius:10px!important;
  background:#0C1B2E!important;
  color:#fff!important;
  border:1px solid #0C1B2E!important;
  font-weight:700!important;
}
.lunor-notification-empty{
  margin-top:24px;
  padding:28px 18px;
  border:1px dashed #d9d0c3;
  border-radius:14px;
  text-align:center;
  color:#687891;
}
@media(max-width:700px){
  .lunor-notification-trigger{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
  }
  .lunor-notification-drawer{
    top:auto;
    bottom:0;
    left:0;
    right:0;
    width:100%;
    height:min(78dvh,680px);
    border-left:0;
    border-top:1px solid #e1d9cc;
    border-radius:22px 22px 0 0;
    box-shadow:0 -18px 44px rgba(12,27,46,.18);
    animation:lunorNotificationSheetIn .2s ease-out;
    padding:16px;
  }
  @keyframes lunorNotificationSheetIn{
    from{transform:translateY(28px);opacity:.6}
    to{transform:translateY(0);opacity:1}
  }
}
@media(prefers-reduced-motion:reduce){
  .lunor-notification-trigger.has-alerts::before,
  .lunor-notification-trigger.has-alerts::after,
  .lunor-notification-drawer{animation:none!important}
}


/* v1.7 — stable notification center and immediate pin/unpin */
.lunor-notification-backdrop{
  display:block!important;
  visibility:hidden!important;
  pointer-events:none!important;
  opacity:0!important;
  transition:opacity .16s ease,visibility 0s linear .16s!important;
}
.lunor-notification-backdrop.open{
  visibility:visible!important;
  pointer-events:auto!important;
  opacity:1!important;
  transition-delay:0s!important;
}
.lunor-notification-drawer{
  display:flex!important;
  visibility:hidden!important;
  pointer-events:none!important;
  opacity:0!important;
  transform:translateX(18px)!important;
  animation:none!important;
  transition:transform .18s ease,opacity .18s ease,visibility 0s linear .18s!important;
}
.lunor-notification-drawer.open{
  visibility:visible!important;
  pointer-events:auto!important;
  opacity:1!important;
  transform:translateX(0)!important;
  transition-delay:0s!important;
}
@media(max-width:700px){
  .lunor-notification-drawer{
    transform:translateY(18px)!important;
  }
  .lunor-notification-drawer.open{
    transform:translateY(0)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  .lunor-notification-backdrop,
  .lunor-notification-drawer{
    transition:none!important;
  }
}

/* multi-branch user picker (2026-10-08) */
.lunor-branch-multi{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px;border:1px solid #e3ddd4;border-radius:12px;padding:10px 12px;margin:0;min-width:0}
.lunor-branch-multi legend{padding:0 6px;font-weight:600}
.lunor-branch-multi label{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;border:1px solid #d9cfbf;border-radius:999px;padding:6px 12px;background:#fff;cursor:pointer;white-space:nowrap;width:auto!important;margin:0}
.lunor-branch-multi label input{width:auto!important;margin:0;min-height:0}
.lunor-branch-multi .lunor-branch-all{background:#F4F1EA;font-weight:600}
.lunor-branch-hint{flex-basis:100%;color:#b42318}
.lunor-branch-editor .row-actions{margin-top:12px}
