/* DD SOL V2.5.2 — interface collision guard */
html[data-ddsol-ui="2.5.2"],
html[data-ddsol-ui="2.5.2"] body {
  max-width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: clip;
}

html[data-ddsol-ui="2.5.2"] button,
html[data-ddsol-ui="2.5.2"] input,
html[data-ddsol-ui="2.5.2"] select,
html[data-ddsol-ui="2.5.2"] textarea {
  touch-action: manipulation;
}

html[data-ddsol-ui="2.5.2"] [role="dialog"] > * {
  max-width: min(100%, 720px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}

html[data-ddsol-ui="2.5.2"] #auth-gateway > .glass-card {
  width: min(100%, 430px) !important;
}

html[data-ddsol-ui="2.5.2"] #dd25-pos-bar {
  box-sizing: border-box;
  width: 100%;
  gap: 12px;
}

html[data-ddsol-ui="2.5.2"] #dd25-pos-bar[hidden] {
  display: none !important;
}

html[data-ddsol-ui="2.5.2"] body.dd25-pos-full > header,
html[data-ddsol-ui="2.5.2"] body.dd25-pos-full #mobile-tabbar,
html[data-ddsol-ui="2.5.2"] body.dd25-pos-full .dd24-task-fab,
html[data-ddsol-ui="2.5.2"] body.dd25-pos-full .dd24-bell {
  display: none !important;
}

html[data-ddsol-ui="2.5.2"] body.dd25-pos-full #view-pos {
  min-width: 0;
  max-width: 100%;
  overflow: clip;
}

html[data-ddsol-ui="2.5.2"] body.dd25-pos-full #view-pos > .grid,
html[data-ddsol-ui="2.5.2"] body.dd25-pos-full .dd25-pos-pane {
  min-width: 0;
}

@media (max-width: 760px) {
  html[data-ddsol-ui="2.5.2"] header nav {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  html[data-ddsol-ui="2.5.2"] header nav::-webkit-scrollbar {
    display: none;
  }

  html[data-ddsol-ui="2.5.2"] #dd25-pos-bar {
    position: sticky;
    top: 0;
    z-index: 190;
    padding-top: max(8px, env(safe-area-inset-top));
  }

  html[data-ddsol-ui="2.5.2"] #dd25-pos-bar > div:first-child > div {
    display: none;
  }

  html[data-ddsol-ui="2.5.2"] .dd25-pos-tabs {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
  }

  html[data-ddsol-ui="2.5.2"] .dd25-pos-tabs button {
    min-height: 44px;
    white-space: nowrap;
  }
}


/* Release 8 responsive shell and deny-by-default navigation */
html[data-ddsol-role="LOADING"] #desktop-nav,
html[data-ddsol-role="LOADING"] #mobile-tabbar { visibility:hidden; }
[hidden] { display:none !important; }
@media (orientation:landscape) and (max-height:600px) {
  body { min-height:100dvh; overflow-x:hidden; }
  header { position:sticky; top:0; padding-block:.35rem !important; }
  header .h-10 { height:2rem !important; width:2rem !important; }
  main { padding-top:.5rem !important; padding-bottom:3.2rem !important; max-height:calc(100dvh - 48px); overflow:auto; }
  #mobile-tabbar { padding:.25rem .75rem !important; }
  #mobile-tabbar button { min-width:64px; min-height:44px; }
  .view-panel { min-height:0; }
  dialog,[role="dialog"],.modal-content { max-height:calc(100dvh - 16px) !important; overflow:auto !important; }
}

/* Release 13: role navigation remains fully visible at narrow desktop widths and browser zoom */
@media (min-width:768px) and (max-width:1600px) {
  header > .max-w-7xl { flex-wrap:wrap; gap:.4rem .75rem; }
  #desktop-nav {
    order:3;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    flex:0 0 100% !important;
    box-sizing:border-box;
    overflow:hidden;
    display:grid !important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:.25rem;
    border-top:1px solid var(--border);
    padding-top:.4rem;
  }
  #desktop-nav .nav-btn {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:44px;
    padding:.45rem .35rem !important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align:center;
  }
  html[data-ddsol-role="STAFF"] #desktop-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
  html[data-ddsol-role="MEMBER"] #desktop-nav { grid-template-columns:1fr; }
  html[data-ddsol-role="GUEST"] #desktop-nav,
  html[data-ddsol-role="LOADING"] #desktop-nav { display:none !important; }
}
@media (min-width:1601px) {
  #desktop-nav { min-width:0; }
  #desktop-nav .nav-btn { white-space:nowrap; }
}


/* Release 14 staff RBAC workspace */
.dd14-rbac{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#f8fafc}.dd14-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.dd14-head small{color:#6ee7f9;font-weight:800;letter-spacing:.08em}.dd14-head h2{font-size:clamp(18px,2.2vw,28px);font-weight:900}.dd14-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:14px}.dd14-card{background:rgba(2,12,27,.82);border:1px solid rgba(148,163,184,.25);border-radius:14px;padding:14px;min-width:0}.dd14-card h3{font-size:12px;font-weight:900;color:#facc15;letter-spacing:.08em;margin-bottom:10px}.dd14-card label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#cbd5e1;margin-bottom:9px}.dd14-card input,.dd14-card select{min-height:44px;border:1px solid rgba(148,163,184,.35);background:#081525;color:#fff;border-radius:9px;padding:9px 10px;width:100%}.dd14-two,.dd14-limits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dd14-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:10px}.dd14-checks label,.dd14-active{display:flex!important;align-items:center;gap:7px;min-height:38px;padding:7px;border-radius:8px;background:rgba(15,23,42,.82);margin:0!important}.dd14-checks input,.dd14-active input{width:18px!important;min-height:18px}.dd14-actions{display:flex;justify-content:flex-end;gap:8px}.dd14-btn,.dd14-actions button,.dd14-primary{min-height:44px;border:1px solid #38bdf8;border-radius:9px;padding:8px 14px;font-size:11px;font-weight:900}.dd14-primary{background:#facc15!important;color:#06111f!important;border-color:#facc15!important}.dd14-wide{width:100%}.dd14-wide-card{margin-top:14px}.dd14-staff-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.dd14-staff-list button,.dd14-list>div{display:grid;text-align:left;gap:3px;min-height:64px;padding:10px;border:1px solid rgba(148,163,184,.24);border-radius:10px;background:rgba(15,23,42,.72)}.dd14-staff-list span,.dd14-list span{color:#7dd3fc;font-size:11px}.dd14-staff-list small{color:#94a3b8}.dd14-list{display:grid;gap:7px;max-height:360px;overflow:auto;margin-top:12px}#dd14-qa-result{font-size:12px;font-weight:800;color:#86efac;margin-left:10px}@media(max-width:900px){.dd14-grid{grid-template-columns:1fr}.dd14-staff-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.dd14-two,.dd14-limits,.dd14-checks,.dd14-staff-list{grid-template-columns:1fr}.dd14-rbac{padding:10px!important}.dd14-head{align-items:flex-start}.dd14-head h2{font-size:18px}}


/* Release 15 unified D.Drinks operations */
.dd15-ops{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#f8fafc}.dd15-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dd15-title small{color:#67e8f9;font-size:10px;font-weight:900;letter-spacing:.08em}.dd15-title h3{font-size:clamp(18px,2.3vw,28px);font-weight:950}.dd15-title p,.dd15-note{color:#94a3b8;font-size:11px}.dd15-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.dd15-counts div,.dd15-card{min-width:0;border:1px solid rgba(148,163,184,.25);border-radius:14px;background:rgba(2,12,27,.8);padding:12px}.dd15-counts b{display:block;font-size:22px;color:#facc15}.dd15-counts span{font-size:10px;color:#cbd5e1}.dd15-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:10px}.dd15-card h4{font-size:11px;font-weight:900;color:#facc15;letter-spacing:.06em;margin-bottom:9px}.dd15-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dd15-fields input,.dd15-fields select{width:100%;min-height:44px;border:1px solid #334155;border-radius:9px;background:#081525;color:#fff;padding:8px}.dd15-primary,.dd15-btn{min-height:44px;border:1px solid #22d3ee;border-radius:9px;padding:8px 12px;font-size:10px;font-weight:900}.dd15-primary{width:100%;margin-top:9px;background:#facc15;color:#08111f;border-color:#facc15}.dd15-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.dd15-methods span{display:grid;gap:2px;min-height:52px;border:1px solid #334155;border-radius:10px;padding:8px}.dd15-methods small{font-size:9px;color:#94a3b8}.dd15-methods .off{opacity:.68;border-style:dashed}.dd15-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.dd15-pending{margin-top:10px}.dd15-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.dd15-card-head span{font-size:9px;color:#94a3b8}.dd15-list{display:grid;gap:7px;max-height:360px;overflow:auto}.dd15-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;min-height:58px;border:1px solid #27364a;border-radius:10px;padding:9px}.dd15-list article div{min-width:0;display:grid}.dd15-list article b,.dd15-list article span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dd15-list article span{font-size:10px;color:#94a3b8}.dd15-list article strong{color:#facc15}.dd15-list a,#dd15-create-status a{color:#67e8f9;text-decoration:underline;font-size:10px;font-weight:900}#dd15-create-status,#dd15-qa{min-height:18px;margin-top:7px;font-size:10px;color:#86efac}
@media(max-width:780px){.dd15-grid{grid-template-columns:1fr}.dd15-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.dd15-fields{grid-template-columns:1fr}.dd15-list article{grid-template-columns:minmax(0,1fr) auto}.dd15-list article a{grid-column:1/-1;min-height:38px;display:flex;align-items:center}.dd15-methods{grid-template-columns:1fr}.dd15-ops{padding:10px!important}}
@media(orientation:landscape) and (max-height:600px){.dd15-ops{max-height:calc(100dvh - 116px);overflow:auto}.dd15-grid{grid-template-columns:1fr 1fr}.dd15-counts{grid-template-columns:repeat(4,minmax(0,1fr));position:sticky;top:0;z-index:2;background:#020817;padding:6px}}

.dd15-tools{margin-top:10px}.dd15-token-result{display:flex;align-items:center;gap:12px;min-height:24px;margin-top:9px}.dd15-token-result>div:last-child{display:grid;gap:3px}.dd15-token-result b{color:#facc15}.dd15-token-result span,.dd15-token-result small{font-size:10px;color:#cbd5e1}.dd15-token-result img{background:#fff;padding:5px;border-radius:8px;max-width:150px}.dd15-btn:disabled{opacity:.45}
@media(max-width:560px){.dd15-token-result{align-items:flex-start;flex-direction:column}}

.dd15-cancel{min-height:38px;padding:5px 9px;border:1px solid #fb7185;border-radius:8px;color:#fda4af;font-size:9px;font-weight:900}.dd15-list article{grid-template-columns:minmax(0,1fr) auto auto auto}@media(max-width:780px){.dd15-list article{grid-template-columns:minmax(0,1fr) auto}.dd15-list article a,.dd15-list article .dd15-cancel{grid-column:auto;min-height:38px}}
