/* v084_docs.css */
.doc-sum, .docbar, .docfit__toggle, .doc-row__meta { display: none; }
.docmore { position: relative; }
.docmore > summary { list-style: none; }
.docmore > summary::-webkit-details-marker { display: none; }
.docmore .menu { min-width: 240px; }
.docmore .menu a.docmore__item--danger { color: var(--c-danger); }
.doc-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s-2) var(--s-3); margin-top: var(--s-4); }
.doc-actions > .danger-zone { flex: 1 1 100%; margin: 0; }
.doc-actions > .menu-pop { flex: 1 1 100%; }
.doc-actions > .menu-pop[open] .menu-pop__panel { max-width: 520px; }
.doc-actions__list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.doc-more .zsheet__body > span, .doc-more .zsheet__body > form { display: block; margin: 0; }
.doc-more a.zsheet__opt { text-decoration: none; }
.doc-more .zsheet__opt .icon { flex: none; color: var(--c-text-3); }
.doc-more .zsheet__opt.doc-more__danger, .doc-more .zsheet__opt.doc-more__danger .icon { color: var(--c-danger); }
@media (max-width: 899px) {

  .doc-sum { display: block; margin: 0 0 var(--s-3); padding: 12px 14px; border-radius: var(--r-lg); background: var(--c-surface); box-shadow: var(--shadow-1); }
  .doc-sum__top { display: flex; align-items: baseline; gap: var(--s-3); }
  .doc-sum__party { flex: 1; min-width: 0; font-size: var(--fs-md); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .doc-sum__amt { flex: none; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
  .doc-sum__sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
  .doc-sum__date { color: var(--c-text-2); font-size: var(--fs-sm); }
  body:has(#doc-sum) .page-head > .pill, body:has(#doc-sum) .page-head > .badge { display: none; }


  .docbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 31;
    padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--c-surface) 96%, transparent); backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(15, 23, 42, .18), 0 0 0 1px var(--c-border); }
  .docbar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 4px 2px; border-radius: 14px;
    color: var(--c-text); font-size: 13px; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.15; }
  .docbar__btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .docbar__btn .icon { width: 22px; height: 22px; }
  .docbar__btn:active { background: var(--c-surface-2); }
  .docbar__btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 1px; }
  .docbar__btn--wa { background: var(--c-ok-soft); color: var(--c-ok); }
  body:has(#docbar) .bottomnav, body:has(#docbar) .asst-fab, body:has(#docbar) #print-link { display: none !important; }
  body:has(#docbar) #main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .doc-layout--bar .doc-side { order: 0; }
  body:has(#docbar) #send .send-actions, body:has(#docbar) #send .send-card__link, body:has(#docbar) #wa-biz-off { display: none; }

  .docfit { position: relative; }
  .docfit.is-fitting .docfit__toggle { display: flex; align-items: center; gap: 6px; width: fit-content; margin: 0 0 8px auto; min-height: 44px; padding: 0 14px;
    border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-surface) 92%, transparent); color: var(--c-text); box-shadow: var(--shadow-2), 0 0 0 1px var(--c-border);
    font-size: 13px; font-weight: 700; text-decoration: none; }
  .docfit.is-fit .docfit__paper { width: 680px; zoom: var(--docfit-k, 1); cursor: zoom-in; }
  .docfit.is-full { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
  .docfit.is-full .docfit__paper { width: 680px; }
  .docfit.is-fit .ivd, .docfit.is-full .ivd { max-width: none; padding: 28px 30px; }
  .docfit.is-fit .ivd-stamp, .docfit.is-full .ivd-stamp { font-size: 64px; }
  .docfit.is-fit .ivd.ivd--head-band > .ivd-head.ivd-t, .docfit.is-full .ivd.ivd--head-band > .ivd-head.ivd-t { width: calc(100% + 60px); margin: -28px -30px 12px; }
  .docfit.is-fit .ivd--head-band .ivd-band, .docfit.is-full .ivd--head-band .ivd-band { padding: 22px 30px !important; }

  .doc-actions { margin-top: var(--s-3); }

  .doc-row { grid-template-areas: "party amt" "meta no"; }
  .doc-row__meta { display: block; grid-area: meta; font-size: 13px; color: var(--c-text-2); }
  .doc-row__st { font-weight: 700; }
  .doc-row__st--fail { color: var(--c-danger); }
  .doc-row__st--warn { color: var(--c-warn); }
  .doc-row__st--ok { color: var(--c-ok); }
  .doc-row__st--muted, .doc-row__st--info { color: var(--c-text-3); }
  .doc-row .doc-row__no { grid-area: no; justify-self: end; max-width: 34vw; text-align: right; font-size: 12px; color: var(--c-text-3); }
  .doc-row .doc-row__due { display: none !important; }

  body:has(.bottomnav__fab) .list-head #new-doc { display: none; }

  .list-toolbar > .spacer { display: none; }
}
:root[data-theme="dark"] .docbar__btn--wa { background: var(--c-ok-soft); color: var(--c-ok); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .docbar__btn--wa { background: var(--c-ok-soft); color: var(--c-ok); } }
@media print { .doc-sum, .docbar, .docfit__toggle { display: none !important; } .docfit__paper { width: auto !important; zoom: 1 !important; } }
.zpick .zsheet__box { gap: var(--s-2); }
.zpick__search { flex: none; position: relative; display: block; }
.zpick__search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-text-3); pointer-events: none; }
.zpick__search .input { min-height: 48px; padding-left: 42px; font-size: var(--fs-md); }
.zpick__add { flex: none; justify-content: flex-start; min-height: 48px; width: 100%; font-weight: 700; color: var(--c-accent); }
.zpick__add[hidden] { display: none; }
.zpick__add span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zpick__group { padding: 14px 0 4px; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--c-text-3); }
.zpick__empty { padding: var(--s-4) 0; text-align: center; }
.zpick-row { display: flex; align-items: center; gap: var(--s-2); border-bottom: 1px solid var(--c-border); }
.zpick-row.is-on { background: color-mix(in srgb, var(--c-accent-soft) 60%, transparent); margin: 0 calc(-1 * var(--s-4)); padding: 0 var(--s-4); }
.zpick-row__main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 58px; padding: 6px 0;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.zpick-row__name { font-weight: 650; overflow-wrap: anywhere; }
.zpick-row.is-current .zpick-row__name { color: var(--c-accent); font-weight: 750; }
.zpick-row--none .zpick-row__name { color: var(--c-text-2); }
.zpick-row__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 13px; color: var(--c-text-2); }
.zpick-row__meta b { color: var(--c-text); font-weight: 700; }
.zpick-row__meta .is-low b { color: var(--c-danger); }
.zpick-row__step { flex: none; display: flex; align-items: center; gap: 4px; }
.zpick-row__btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--c-surface-2); color: var(--c-text);
  box-shadow: inset 0 0 0 1px var(--c-border); cursor: pointer; }
.zpick-row__btn--add { background: var(--c-accent); color: var(--c-on-accent); box-shadow: none; }
.zpick-row__qty { width: 52px; min-height: 44px; padding: 0 4px; text-align: center; font-weight: 700; font-size: var(--fs-md); }
.zpick-row:not(.is-on) [data-step="-1"], .zpick-row:not(.is-on) .zpick-row__qty { display: none; }
.zpick [data-pick-foot][hidden] { display: none; }

/* v084_sheet.css */
.zsheet { border: 0; padding: 0; background: transparent; width: 100vw; max-width: none; margin: auto 0 0; max-height: 100dvh; }
.zsheet::backdrop { background: var(--zw-scrim); }
.zsheet__box { display: flex; flex-direction: column; background: var(--c-surface); color: var(--c-text); border-radius: 22px 22px 0 0;
  padding: var(--s-3) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); max-height: 86dvh; animation: sheet-up var(--t-med) var(--ease-out); }
.zsheet__grab { flex: none; width: 40px; height: 4px; border-radius: 4px; background: var(--c-border); margin: 0 auto var(--s-3); }
.zsheet__bar { flex: none; display: flex; align-items: center; gap: var(--s-2); min-height: 44px; }
.zsheet__title { flex: 1; font-size: var(--fs-md); font-weight: 750; }
.zsheet__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--s-4)); padding: 0 var(--s-4); }
.zsheet__foot { flex: none; display: flex; gap: var(--s-2); padding-top: var(--s-3); }
.zsheet__foot > .btn { flex: 1; min-height: 48px; }
.zsheet__opt { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 48px; padding: var(--s-2) 0; border: 0; border-bottom: 1px solid var(--c-border);
  background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.zsheet__opt[aria-selected="true"], .zsheet__opt[aria-checked="true"] { font-weight: 750; color: var(--c-accent); }
.zsheet--full { margin: 0; height: 100dvh; }
.zsheet--full .zsheet__box { height: 100dvh; max-height: none; border-radius: 0; padding-top: calc(var(--s-3) + env(safe-area-inset-top)); }
@media (min-width: 700px) {
  .zsheet, .zsheet--full { width: min(560px, 92vw); height: auto; margin: auto; }
  .zsheet__box, .zsheet--full .zsheet__box { height: auto; max-height: 80vh; border-radius: 18px; padding-top: var(--s-4); }
  .zsheet__grab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .zsheet__box { animation: none; } }

/* v084_sheets.css */
.zk-sheet .zsheet__opt[aria-selected="true"] { color: var(--c-accent); }
.zk-sheet .zsheet__opt:disabled { opacity: .5; cursor: default; }
.zk-sheet .zsheet__opt:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; border-radius: 6px; }
.zk-tick { flex: none; display: inline-flex; width: 20px; color: var(--c-accent); }
.zk-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.zk-search { position: sticky; top: 0; z-index: 1; background: var(--c-surface); padding: 0 0 var(--s-2); }
.zk-search .input { width: 100%; min-height: 44px; }
.zk-group { padding: var(--s-3) 0 var(--s-1); font-size: 12px; font-weight: 750; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .04em; }
.zk-none { padding: var(--s-3) 0; }
.zk-opt .icon { flex: none; color: var(--c-accent); }
.zk-opt--warn, .zk-opt--warn .icon { color: var(--c-danger); }
@media (pointer: coarse) {
  [data-swipe], [data-bulk-list] a.list__item, #doc-list a.doc-row { touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
[data-swipe] { transition: transform 180ms var(--ease-out); }
.zk-dragging { transition: none !important; }
.zk-dragging, .zk-swiped { position: relative; z-index: 1; background: var(--c-surface); }
.zk-tray { position: absolute; z-index: 25; display: flex; justify-content: flex-end; overflow: hidden; background: var(--c-surface-2); }
.zk-tray__act { flex: 0 0 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; padding: 4px 6px;
  font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; color: var(--c-on-accent); background: var(--c-accent); }
.zk-tray__act + .zk-tray__act { border-left: 1px solid color-mix(in srgb, var(--c-on-accent) 30%, transparent); }
.zk-tray__act--warn { background: var(--c-danger); }
.zk-tray__act span { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { [data-swipe] { transition: none; } }
.zk-more { position: absolute; z-index: 3; width: 44px; height: 44px; min-height: 44px; padding: 0; background: var(--c-surface); box-shadow: var(--shadow-1); border-radius: 50%; }
.zk-more + .list__item { border-top: 1px solid var(--c-border); }
.zk-net { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top) + 6px); left: 0; right: 0; margin-inline: auto; width: fit-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 650; line-height: 1.3;
  background: var(--c-text); color: var(--c-surface); box-shadow: var(--shadow-2); pointer-events: none; }
.zk-net[hidden] { display: none; }
.zk-net[data-kind="on"] { background: var(--c-ok); color: var(--c-on-accent); }
.zk-net .icon { flex: none; width: 16px; height: 16px; }
.zk-net span { min-width: 0; overflow-wrap: anywhere; }
.zk-net__retry { pointer-events: auto; display: inline-flex; align-items: center; min-height: 44px; margin: -6px -8px -6px 4px; padding: 0 10px; color: inherit; font-weight: 750; text-decoration: underline; }
.bottomnav a:has(.zk-badge) { position: relative; }
.zk-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-danger); color: var(--c-on-accent);
  font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.zk-outbox { margin-bottom: var(--s-4); border-left: 4px solid var(--c-warn); }
.zk-outbox__h { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-1); font-size: var(--fs-md); }
.zk-ob { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.zk-ob__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--c-border); }
.zk-ob__main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zk-ob__main strong { overflow-wrap: anywhere; }
.zk-ob__msg { color: var(--c-danger); }
.zk-ob__msg:empty { display: none; }
.zk-ob__btns { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.zk-kept { margin: 0 0 var(--s-3); }
@media (max-width: 699px) {
  .zk-ob__btns { width: 100%; }
  .zk-ob__btns .btn { flex: 1; min-height: 44px !important; }
}

/* v084_shell.css */
.appbar { display: none; }
@media (max-width: 899px) {
  .shell--inner .topbar { display: none; }
  .appbar {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2px; min-height: 56px;
    padding: 6px var(--s-2); padding-top: max(6px, env(safe-area-inset-top));
    background: color-mix(in srgb, var(--c-bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px);
    box-shadow: 0 1px 0 var(--c-border); transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
  }
  .appbar--hidden { transform: translateY(-100%); }
  .appbar--quiet { box-shadow: none; }
  .appbar__back, .appbar__more {
    flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0;
    border-radius: var(--r-pill); background: transparent; color: var(--c-text); cursor: pointer; text-decoration: none;
  }
  .appbar__back:active, .appbar__more:active { background: var(--c-surface-2); }
  .appbar__more[hidden] { display: none; }
  .appbar__title {
    flex: 1; min-width: 0; padding-left: 2px; font-weight: 700; font-size: var(--fs-lg); line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 160ms var(--ease-out);
  }

  .appbar--quiet .appbar__title { opacity: 0; }

  .shell--inner .page-head > .back { display: none; }

  .page-head .is-from-appbar > .party-tools__panel, .page-head .is-from-appbar > .menu {
    position: fixed; top: calc(var(--appbar-h, 56px) + 4px); right: 8px; left: auto; width: min(420px, calc(100vw - 16px));
    max-height: calc(100dvh - var(--appbar-h, 56px) - 24px); overflow-y: auto; z-index: 45;
  }
}
@media (prefers-reduced-motion: reduce) { .appbar, .appbar__title { transition: none; } }
@media (max-width: 899px) {
  .page-head:has(> .party-tools) { position: relative; }
  .page-head > .party-tools { position: static; }
  .page-head > .party-tools > .party-tools__panel { left: 0; right: auto; width: min(420px, 100%); max-width: 100%; box-sizing: border-box; }
}
.pos-fav { position: relative; }
.pos-fav__qty {
  position: absolute; top: 6px; right: 6px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; box-sizing: border-box;
  background: var(--c-accent); color: var(--c-on-accent); font-size: 13px; font-weight: 750; line-height: 24px; text-align: center;
  font-variant-numeric: tabular-nums; pointer-events: none; box-shadow: 0 0 0 2px var(--c-surface);
}
.pos-fav__qty[hidden] { display: none; }
.pos-fav:has(> .pos-fav__qty:not([hidden])) { border-color: var(--c-accent); }
.pos-fav:has(> .pos-fav__qty:not([hidden])) .pos-fav__name { padding-right: 26px; }
.pos-result .pos-fav__qty { position: static; flex: none; margin-left: auto; box-shadow: none; }
.pos-result .pos-result__meta + .pos-fav__qty { margin-left: 0; }
@media (pointer: coarse) {
  .dmy-dates input[type="date"][data-dmy] { position: relative; }
  .dmy-dates input[type="date"][data-dmy]::-webkit-datetime-edit { color: transparent; }
  .dmy-dates input[type="date"][data-dmy]::before {
    content: attr(data-dmy); position: absolute; left: 0; top: 50%; transform: translateY(-50%); padding-left: inherit;
    color: var(--c-text); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none;
  }
  .dmy-dates input[type="date"].is-dmy-empty::before { color: var(--c-text-3); }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }

  .bottomnav { view-transition-name: zw-bottomnav; }
  ::view-transition-group(zw-bottomnav) { animation-duration: 0s; }
}

/* v084_zz_integ.css */
@media (pointer: coarse) {
  .btn--sm, .btn--xs { position: relative; }
  .btn--sm::after, .btn--xs::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 44px; transform: translateY(-50%); }
}
@media (max-width: 899px) {
  .shell--inner .page-head > a.btn:first-child:has(> svg use[href$="#i-arrow-left"]) { display: none; }
}
@media (max-width: 899px) {
  .asst-fab { display: none !important; }
}

/* v085_server.css */
[data-mic].is-sending, .asst-ask__mic.is-sending { color: var(--c-accent); background: var(--c-accent-soft); animation: v85-wait 1s ease-in-out infinite; }
.asst-ask__mic.is-on { background: var(--c-danger-soft); color: var(--c-danger); }
@keyframes v85-wait { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { [data-mic].is-sending, .asst-ask__mic.is-sending { animation: none; } }
#pn-form .check.is-disabled { opacity: .6; }
#pn-form .pn-on strong { font-weight: 600; }
.pn-perm[data-state="granted"] .pn-perm__state { color: var(--c-ok); }
.pn-perm[data-state="denied"] .pn-perm__state { color: var(--c-danger); }
.pn-perm__state { margin: 0; }

/* v090.css */
.bl-rate { position: relative; }
.bl-rate .incl-tag { position: absolute; right: 2px; top: -9px; z-index: 1; background: var(--c-surface); }
.incl-tag { border: 1px solid var(--c-border); background: transparent; color: var(--c-text-muted); border-radius: 999px;
  font: inherit; font-size: 12px; line-height: 1; padding: .2rem .45rem; margin-left: .25rem; cursor: pointer; vertical-align: middle; min-height: 0; }
.incl-tag[aria-pressed="true"] { color: var(--c-brand); border-color: currentColor; }
.incl-tag:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
[data-pay-full] { white-space: nowrap; }
.bill-pay [data-repeat-row] { flex-wrap: wrap; }
.bill-pay [data-repeat-row] input[name$="[reference]"] { flex: 1 1 80px; min-width: 0; }
.bill-pay__head { flex-wrap: wrap; row-gap: 2px; }
.bill-pay__head > span, .bill-pay__head .btn { white-space: nowrap; }
.bill-pay__head [data-pay-full] { min-height: 26px; font-size: 13px; padding: 0 8px; }

/* v095.css */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: var(--s-2); }
.menu-dish { flex-direction: column; align-items: flex-start; justify-content: center; height: auto; min-height: 56px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); }
.menu-dish__name { font-weight: 650; text-align: left; }
.menu-dish.is-adding { opacity: .6; }
.menu-dish.is-added { border-color: var(--c-accent); background: var(--c-accent-soft); }
.menu-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.menu-cats .chip { flex: 0 0 auto; min-height: 44px; }
.order-bar { display: none; }
@media (max-width: 760px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-bar:not([hidden]) { display: flex; position: sticky; bottom: calc(var(--bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px)); z-index: 5; align-items: center; gap: var(--s-3);
    justify-content: space-between; margin-top: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); background: var(--c-text); color: var(--c-bg);
    text-decoration: none; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); min-height: 52px; }
  #order { scroll-margin-top: 72px; }
}

/* v104.css */
.team-lead { margin: 0 0 var(--s-4); max-width: 70ch; }
.team-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: 0 0 var(--s-3); }
.team-tabs .tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--c-text-2);
  box-shadow: 0 0 0 1px var(--c-hairline); text-decoration: none; font-size: var(--fs-sm); font-weight: 550; background: var(--c-surface); }
.team-tabs .tab:hover { background: var(--c-surface-2); }
.team-tabs .tab.is-active { background: var(--c-accent); color: var(--c-on-accent); box-shadow: none; }
.team-tabs .tab:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.tab__count { font-variant-numeric: tabular-nums; opacity: .8; font-weight: 650; }
.team-list { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--c-hairline); overflow: hidden; }
.team-row .list__body { min-width: 0; }
.team-row .list__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-row > .icon { color: var(--c-text-3); flex: none; }
.team-row.is-removed .list__title { text-decoration: line-through; text-decoration-thickness: 1px; }
.team-remove { color: var(--c-danger); box-shadow: 0 0 0 1px currentColor inset; }
.team-access { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 46%; }
.team-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.team-more { margin: var(--s-5) 0 var(--s-4); background: var(--c-surface); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--c-hairline); overflow: hidden; }
#team-list + .team-more, .team-empty + .team-more { margin-top: var(--s-5); }
#role-areas, #signin-ways, #counter-devices { margin-top: var(--s-3); }
.team-form { max-width: 920px; }
.team-desig__other { margin-top: 6px; }
.team-desig__other[hidden] { display: none; }
.team-signin { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.team-signin[hidden], [data-signin-password][hidden] { display: none; }
.team-signin legend { padding: 0; margin-bottom: 4px; }
.radio-row > span { display: flex; flex-direction: column; gap: 2px; }
.radio-row.is-disabled { opacity: .6; }
.team-signin-box { border-top: 1px solid var(--c-hairline); padding-top: var(--s-4); }
.team-subhead { margin: 0; font-size: var(--fs-sm); font-weight: 650; }
.team-link-row { gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.team-more-access summary, #staff-can-do summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.team-danger { margin-top: var(--s-4); }
.team-danger .row { gap: var(--s-3); flex-wrap: wrap; align-items: center; }
#person-details, #person-access { margin-bottom: var(--s-4); }
.page-head .badge { align-self: center; }
@media (max-width: 600px) {
  .team-access { max-width: 40%; }
  .team-row .avatar--lg { width: 38px; height: 38px; }
  .team-form .grid-2, #person-details .grid-2, #person-signin .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* v107.css */
.team-page-head { margin-bottom: var(--s-3); }
.team-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
@media (min-width: 1100px) { .team-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .team-form { max-width: 1180px; } }
.team-card { display: flex; flex-direction: column; gap: 12px; padding: var(--s-4) var(--s-5); }
.team-card .card-title { margin: 0; }
.team-card .field, .team-access-form .field { margin-bottom: 0; }
.team-card .field__hint { margin-top: 3px; line-height: 1.35; }
.team-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) { .team-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.team-access-form { display: flex; flex-direction: column; gap: 12px; }
.team-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 8px 12px; list-style: none; counter-reset: st; border-radius: var(--r-md);
  background: var(--c-surface-2); box-shadow: inset 0 0 0 1px var(--c-hairline); font-size: 13px; color: var(--c-text-2); }
.team-steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 6px; }
.team-steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); font-size: 11px; font-weight: 700; flex: none; }
.team-access-nudge { display: flex; align-items: flex-start; gap: 8px; margin: -4px 0 0; font-size: 13px; font-weight: 600; color: var(--c-accent); line-height: 1.4; }
.team-access-nudge .icon { margin-top: 2px; flex: none; }
.team-access-nudge[hidden] { display: none; }
.team-signin { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.team-signin legend { padding: 0; margin-bottom: 6px; }
.team-signin[hidden], [data-signin-password][hidden], [data-signin-link-hint][hidden] { display: none; }
.team-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--c-border); overflow: hidden; }
.team-seg__opt { position: relative; display: block; cursor: pointer; }
.team-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.team-seg__opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--c-text-2); text-align: center; }
.team-seg__opt + .team-seg__opt span { box-shadow: inset 1px 0 0 var(--c-border); }
.team-seg__opt input:checked + span { background: var(--c-accent); color: var(--c-on-accent); }
.team-seg__opt input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: -3px; }
.team-seg__opt.is-disabled { opacity: .55; cursor: not-allowed; }
.team-seg__hint { margin: 0; }
.team-pw { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 600px) { .team-pw { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.team-actions { margin-top: var(--s-4); }
.team-two > .card { margin: 0; }
.team-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.team-label-row .small { font-size: 13px; }
.team-card { gap: 10px; padding: var(--s-4) var(--s-5) var(--s-4); }
.team-access-form { gap: 10px; }
.team-steps { flex-wrap: wrap; padding: 6px 10px; gap: 4px 12px; }
.team-signin legend { margin-bottom: 4px; }
@media (min-width: 900px) { body:has(#team-new-form) #main { padding-bottom: var(--s-4); } }
.team-col { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.team-person .team-card { margin: 0; }
.team-person .team-danger { margin: 0; }
.team-person #person-details-form .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.team-person .kv { margin: 0; }
.team-person .team-signin-box { padding-top: 10px; gap: 10px; }
#person-details, #person-access { margin-bottom: 0; }
@media (min-width: 900px) { body:has(.team-person) #main { padding-bottom: var(--s-4); } }
.team-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-sm); color: var(--c-text-2); }
.team-meta .mono { display: inline-flex; align-items: center; gap: 4px; }
.team-access-edit { display: flex; flex-direction: column; gap: 10px; }
.team-access-edit .field { margin: 0; }
.team-inline { display: flex; gap: 8px; align-items: stretch; }
.team-inline .input { flex: 1; min-width: 0; }
.team-inline .btn { flex: none; }
.team-signin-box { border-top: 1px solid var(--c-hairline); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.team-login-form { display: flex; flex-direction: column; gap: 6px; }
.team-login-form .field { margin: 0; }
.team-login-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.team-login-actions .field__hint { margin: 0; }
.team-link-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0; }
.team-link-row .small { flex: 1 1 200px; }
.team-disclosures { display: flex; flex-wrap: wrap; gap: 0 18px; }
.team-disclosures details[open] { flex-basis: 100%; }
.team-disclosures summary { min-height: 40px; }
.team-details-form { display: flex; flex-direction: column; gap: 10px; }
.team-details-form .field { margin: 0; }
.team-details-form > div:last-child { display: flex; justify-content: flex-end; }

/* v111_docs.css */
@media (min-width: 900px) {
  body:has(form.bill) .content { padding-top: 10px; }
  body:has(form.bill) .bill-top { margin: 0 0 8px; min-height: 0; }
  body:has(form.bill) .bill-top .back { width: 34px; height: 34px; }
  body:has(form.bill) .bill-top h1 { font-size: var(--fs-xl); line-height: 1.2; }
  form.bill { gap: 8px; flex-basis: 380px; min-height: 380px; }

  body:has(form.bill) .content > .alert, form.bill > .alert { padding: 6px 12px; margin: 0 0 8px; font-size: 13px; }
  form.bill > .alert { margin: 0; }
  form.bill .bill-head { padding: 8px 16px 9px; gap: 8px 12px; }
  form.bill .bill-head .field__label { margin-bottom: 3px; }
  form.bill .bl-head { min-height: 28px; padding: 0 16px; }
  form.bill .bill-line { padding: 3px 16px; }
  form.bill .bill-line .input { min-height: 34px; }
  form.bill .bl-n { padding-top: 8px; }
  form.bill .bl-amt { padding-top: 7px; }
  form.bill .bl-rm { min-height: 34px; }
  form.bill .bill-lines__foot { padding: 2px 10px; }
  form.bill .bill-head .input { min-height: 38px; }
  form.bill .bill-line { padding-top: 2px; padding-bottom: 2px; }

  form.bill .bl-extra [data-line-hint], form.bill .bl-extra [data-read-text] { font-size: 12px; line-height: 14px; }
  form.bill .bl-extra { row-gap: 0; }
  body:has(form.bill) .bill-top .scan-box__drop { padding-top: 2px; padding-bottom: 2px; }
  body:has(form.bill) .bill-top .scan-box__actions .btn { min-height: 30px; }
  form.bill .bill-lines__foot .btn { min-height: 32px; }

  #purchase-form .v091-rcm { flex: 0 1 140px; min-width: 0; align-self: center; }
  #purchase-form .v091-rcm .check { font-size: 13px; line-height: 1.3; align-items: flex-start; gap: 6px; }
  #purchase-form .v091-rcm .check input { margin-top: 1px; }
  #purchase-form .v091-rcm [data-rcm-note] { font-size: 12px; line-height: 1.3; margin: 2px 0 0; }
  #purchase-form .bill-head .field--party { flex: 1 1 160px; }
  #purchase-form .bill-head input[type=date] { width: 136px; }
  #purchase-form .bill-head .bill-head__pair { display: contents; }
  #purchase-form .bill-head .bill-head__pair .field { flex: 0 1 148px; }
  #purchase-form .bill-head .bill-head__pair .field:has(input[type=date]) { flex: 0 0 136px; }
  #purchase-form .bill-head .field__label { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  #purchase-form .bill-head { gap: 8px 10px; }
  #purchase-form .bill-head .field:has(select[name=location_id]) { flex: 0 1 130px; }
  #purchase-form .v091-rcm:has(input:checked) { flex: 1 0 100%; order: 99; }
  #purchase-form .v091-rcm:has(input:checked) .check { font-size: 13px; }

  #sales-form .bill-head { gap: 8px 10px; }
  #sales-form .bill-head .field { flex: 0 1 130px; }
  #sales-form .bill-head .field--party { flex: 1 1 190px; }
  #sales-form .bill-head .field--name { flex: 0 1 120px; }
  #sales-form .bill-head .field--mobile { flex: 0 1 150px; }
  #sales-form .bill-head .field--when { flex: 0 0 auto; }
  #sales-form .bill-head input[type=date] { width: 136px; }
  #sales-form .bill-head .field__label { overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 900px) {
  form.bill .bill-pops { gap: 0 2px; margin-left: -8px; }
  form.bill .bill-pop > summary { padding: 4px 8px; font-size: 13px; gap: 5px; }
  form.bill .bill-pop > summary .icon { width: 14px; height: 14px; }
  form.bill .bill-pay { gap: 4px; }
  form.bill .bill-pay__head { min-height: 24px; }
  form.bill .bill-pay__head [data-repeat-add], form.bill .bill-pay__head [data-pay-full] { min-height: 24px; }
  form.bill .bill-pay [data-repeat-row] .input, form.bill .bill-pay [data-repeat-remove] { min-height: 34px; }
}
@media (min-width: 1240px) {
  form.bill .bill-bar { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto auto auto auto auto auto 1fr auto auto;
    grid-template-areas: "chk chk chk" "left sum lab" "left sum val" "left sum fx" "left sum due" "left sum prof" "left sum ." "left err err" "left act act";
    gap: 0 18px; align-items: start; padding: 6px 16px 8px; }
  form.bill .bill-right, form.bill .bill-total { display: contents; }
  form.bill .bill-bar__left { grid-area: left; align-self: stretch; gap: 6px; }
  form.bill .bill-right > .rate-check { grid-area: chk; margin: 0 0 8px; }
  form.bill .bill-right > .field__error { grid-area: err; justify-self: end; margin: 4px 0 0; }
  form.bill .bill-sum { grid-area: sum; align-self: start; }
  form.bill .bill-total__label { grid-area: lab; justify-self: end; font-size: 12px; }
  form.bill .bill-total__value { grid-area: val; justify-self: end; font-size: 24px; }
  form.bill .bill-total__fx { grid-area: fx; justify-self: end; }
  form.bill .bill-total__due { grid-area: due; justify-self: end; }
  form.bill .bill-profit { grid-area: prof; justify-self: end; margin-top: 2px; }
  form.bill .bill-total__actions { grid-area: act; justify-self: end; align-self: end; margin: 6px 0 0; }
  form.bill .bill-total__actions .btn { min-height: 38px; }
  form.bill .bill-total__actions .btn--primary { min-width: 0; }

  form.bill .bill-pay [data-repeat-row] { flex-wrap: nowrap; }
  form.bill .bill-pay [data-repeat-row] select.input { width: 96px; }
  form.bill .bill-pay .prefix-field { width: 116px; }

  #sales-form .bill-sum { grid-template-columns: auto 58px auto 58px; gap: 3px 6px; }
  #sales-form .bill-sum > dt { grid-column: 1; }
  #sales-form .bill-sum > dd { grid-column: 2 / -1; }
  #sales-form .bill-sum > dt.bill-sum__disc { grid-column: 1; grid-row: 1; }
  #sales-form .bill-sum > dt.bill-sum__disc + dd { grid-column: 2; grid-row: 1; }
  #sales-form .bill-sum > dt.bill-sum__disc-amt { grid-column: 3; grid-row: 1; padding-left: 4px; }
  #sales-form .bill-sum > dt.bill-sum__disc-amt + dd { grid-column: 4; grid-row: 1; }
  #sales-form .bill-sum > dt.bill-sum__disc-amt label { font-size: 0; }
  #sales-form .bill-sum .bill-sum__u { font-size: var(--fs-sm); }
  form.bill .bill-sum { row-gap: 2px; }
  form.bill .bill-sum .input { min-height: 26px; height: 26px; }
  form.bill .bill-sum .input { width: 100%; }
  #purchase-form .bill-sum__ro .input { width: 56px; }
}
#purchase-form .bl-head .bl-itc, #purchase-form .bl-head .bl-rcm { display: none; }
@media (min-width: 1240px) {
  #purchase-form .bill-line { gap: 6px; }
  #purchase-form .bl-head { gap: 6px; }
  #purchase-form .bl-item { flex-basis: 170px; }
  #purchase-form .bl-qty { width: 66px; } #purchase-form .bl-unit { width: 82px; } #purchase-form .bl-free { width: 56px; }
  #purchase-form .bl-rate { width: 92px; } #purchase-form .bl-disc { width: 60px; } #purchase-form .bl-gst { width: 74px; }
  #purchase-form .bl-amt { width: 96px; } #purchase-form .bl-x { width: 28px; }
  #purchase-form .bl-head .bl-itc, #purchase-form .bl-head .bl-rcm { display: block; width: 34px; flex: none; text-align: center; cursor: help; }
  #purchase-form .bill-line > .bl-extra { display: contents; }
  #purchase-form .bill-line > .bl-n { order: 1; } #purchase-form .bill-line > .bl-item { order: 2; } #purchase-form .bill-line > .bl-qty { order: 3; }
  #purchase-form .bill-line > .bl-unit { order: 4; } #purchase-form .bill-line > .bl-free { order: 5; } #purchase-form .bill-line > .bl-rate { order: 6; }
  #purchase-form .bill-line > .bl-disc { order: 7; } #purchase-form .bill-line > .bl-gst { order: 8; }
  #purchase-form .bl-extra > .bl-itc { order: 9; } #purchase-form .bl-extra > .bl-rcm { order: 10; }
  #purchase-form .bill-line > .bl-amt { order: 11; } #purchase-form .bill-line > .bl-x { order: 12; }

  #purchase-form .bl-extra > :not(.bl-itc):not(.bl-rcm) { order: 20; flex: 1 1 100%; min-width: 0; margin: -2px 40px 1px 28px !important; }

  #purchase-form .bl-extra > .itc-why:not(.bl-itc) { flex: 0 1 auto; width: auto; max-width: 15rem; margin-left: 30px !important; }

  #purchase-form .bl-extra > [data-line-hint]:not(.bl-itc) { flex: 1 1 320px; }
  #purchase-form .bl-extra > .bl-itc, #purchase-form .bl-extra > .bl-rcm { width: 34px; flex: none; min-height: 34px; justify-content: center; align-items: center; margin: 0 !important; font-size: 0; gap: 0; }
  #purchase-form .bl-extra > .bl-itc input, #purchase-form .bl-extra > .bl-rcm input { width: 18px; height: 18px; margin: 0; }
}
@media (min-width: 900px) {
  body:has(#return-form, #dn-form, #email-form, #ewb-value, #party-form, #journal-form, #journal-show, #asset-form, #ret-search, #doc-sum, #party-contact) .content { padding-top: 12px; padding-bottom: 12px; }
  body:has(#return-form, #dn-form, #email-form, #ewb-value, #party-form, #journal-form, #journal-show, #asset-form, #ret-search) .page-head { margin: 0 0 10px; }
}
@media (min-width: 1100px) {
  body:has(#ret-list, #return-form, #dn-form, #journal-show) .main { height: 100vh; height: 100dvh; }
  body:has(#ret-list, #return-form, #dn-form, #journal-show) .content { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
  body:has(#ret-list, #return-form, #dn-form, #journal-show) .content > * { flex-shrink: 0; }
}
@media (min-width: 1200px) {
  body:has(#doc-sum, #party-contact) .main { height: 100vh; height: 100dvh; }
  body:has(#doc-sum, #party-contact) .content { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
  body:has(#doc-sum, #party-contact) .content > * { flex-shrink: 0; }
  body:has(#doc-sum, #party-contact) .content > .doc-layout { flex: 1 1 0; min-height: 160px; grid-template-rows: minmax(0, 1fr); align-items: stretch; }
  body:has(#doc-sum, #party-contact) .doc-layout > .doc-main, body:has(#doc-sum, #party-contact) .doc-layout > .doc-side { max-height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  body:has(#doc-sum, #party-contact) .doc-layout > .doc-side { position: relative; top: auto; padding-bottom: 64px; }
  body:has(#doc-sum, #party-contact) .doc-layout > .doc-main { position: relative; }
  body:has(#doc-sum) .page-head { margin: 0 0 10px; }
  body:has(#doc-sum, #party-contact) .doc-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; }
  body:has(#doc-sum) .content > .next-strip, body:has(#doc-sum) .content > .advance-note, body:has(#doc-sum) .content > .note-line { margin-bottom: 8px; }
}
@media (min-width: 1100px) {
  body:has(#ret-list) .content > p.muted { margin: 0 0 8px; }
  #ret-search { margin-bottom: 10px !important; }
  body:has(#ret-list) .content > #ret-list { flex: 1 1 0; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 60px; }
  #ret-list > .list__item { min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  #ret-list .list__end { flex-direction: row !important; align-items: center !important; gap: 14px !important; }
}
#journal-form .jn-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
#journal-form .jn-foot > details[open] { flex: 1 0 100%; order: 2; }
#journal-form .jn-foot > .btn--primary { margin-left: auto; order: 1; }
#journal-form .jn-note { margin: 0; }
@media (min-width: 900px) {
  #journal-form { gap: 10px; padding: 14px 18px; }
  #journal-form .field { margin: 0; }
  #journal-form [data-diff]:empty { display: none; }
  #journal-form [data-diff] { margin: 0; }
  #journal-form .table td, #journal-form .table th { padding-top: 4px; padding-bottom: 4px; }
}
@media (min-width: 1100px) {
  #journal-show { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; flex: 1 1 0; min-height: 0; }
  #journal-show .jshow__main { display: flex; flex-direction: column; gap: 12px; min-height: 0; max-height: 100%; }
  #journal-show .jshow__main > .table-wrap { margin-top: 0 !important; flex: 0 1 auto; min-height: 80px; overflow: auto; }
  #journal-show .jshow__side { display: flex; flex-direction: column; gap: 10px; max-height: 100%; overflow-y: auto; }
  #journal-show .jshow__side > * { margin: 0; }
  #journal-show .jshow__side .section-title { margin: 0; }
  #journal-show .jshow__side form.card { padding: 12px 16px; gap: 8px; }
  #journal-show .jshow__side form.card p { margin: 0; }
  #journal-show .card { padding: 12px 16px; }
}
@media (min-width: 1100px) {
  #asset-form .form-grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
  #asset-form .field { margin: 0; }
  #asset-form { gap: 10px; }
  #asset-form .form-actions { margin-top: 4px; padding-top: 0; }
}
@media (min-width: 1100px) {
  #email-form { display: grid; grid-auto-flow: row dense; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 20px; align-items: start; max-width: 1100px; padding: 16px 20px; }
  #email-form > .row:first-of-type, #email-form > .alert, #email-form > .form-actions, #email-form > p.small { grid-column: 1 / -1; }
  #email-form > .field { margin: 0; grid-column: 1; }
  #email-form > label.field:has(#email-note) { grid-column: 2; grid-row: 2 / span 2; }
  #email-form #email-note { min-height: 0; }
  #email-form > .send-mail__preview { grid-column: 2; }
  #email-form > .check { grid-column: 1; }
  #email-form > .form-actions { margin: 0; }
  #email-form > .send-mail__preview > div { max-height: 30vh; overflow-y: auto; }
}
@media (min-width: 1100px) {
  body:has(#ewb-value) #ewb-value { margin: 0 0 8px; }
  #ewb-form { padding: 14px 18px; gap: 10px; }
  #ewb-form > .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
  #ewb-form .field { margin: 0; }
  #ewb-form > .btn, #ewb-form > .row { justify-self: start; align-self: flex-start; }
  #ewb-form > span.small { display: block; }
}
@media (min-width: 1100px) {
  body:has(#return-form, #dn-form) .content > p.muted { margin: 0 0 8px; }
  #return-form, #dn-form { display: grid; grid-auto-flow: row dense; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 10px 16px; align-items: start; flex: 1 1 0; min-height: 0; }
  #return-form[data-cn-form] { grid-template-rows: auto auto auto auto auto 1fr; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  #return-form:not([data-cn-form]), #dn-form { grid-template-rows: auto auto auto auto 1fr; }
  #return-form > *, #dn-form > * { margin: 0; min-width: 0; }
  #return-form > #cn-kind { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; padding: 10px 16px 12px; }
  #return-form > #cn-kind > .alert, #return-form > #cn-kind > .field__error { grid-column: 1 / -1; margin: 0; }
  #return-form > #cn-kind .check { align-items: flex-start; line-height: 1.35; }
  #return-form > [data-cn-part] { grid-column: 1; grid-row: 2 / -1; }
  #return-form:not([data-cn-form]) > div.card:first-of-type, #dn-form > div.card:first-of-type { grid-column: 1; grid-row: 1 / -1; }
  #return-form > [data-cn-part], #return-form:not([data-cn-form]) > div.card:first-of-type, #dn-form > div.card:first-of-type { align-self: start; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  #return-form > :not(#cn-kind):not([data-cn-part]):not(.card:first-of-type), #dn-form > :not(.card:first-of-type) { grid-column: 2; }
  #return-form[data-cn-form] > div.card:not([data-cn-part]) { grid-column: 2; }
  #return-form .card, #dn-form .card { padding: 12px 16px; gap: 8px; }
  #return-form .card .field, #dn-form .card .field { margin: 0; }
  #return-form [data-return-line] { padding-top: 8px !important; gap: 4px; }
  #return-form .btn--lg, #dn-form .btn--lg { min-height: 44px; }
}
@media (min-width: 1100px) {
  .content:not(.content--embed) #party-form { display: grid; grid-auto-flow: row dense; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto auto 1fr; gap: 10px 16px; align-items: start; }
  .content:not(.content--embed) #party-form > * { margin: 0; min-width: 0; }
  .content:not(.content--embed) #party-form > .alert { grid-column: 1 / -1; }
  .content:not(.content--embed) #party-form > div.card { grid-column: 1; grid-row: span 4; }
  .content:not(.content--embed) #party-form > #party-contacts, .content:not(.content--embed) #party-form > .fold-row, .content:not(.content--embed) #party-form > .form-actions { grid-column: 2; }
  #party-form .card { padding: 14px 18px; gap: 10px; }
  #party-form .input { min-height: 38px; padding-top: 4px; padding-bottom: 4px; font-size: var(--fs-sm); }
  #party-form .gstin-box .input--big { min-height: 40px; }
  #party-form .field__label { margin-bottom: 3px; }
  #party-form .grid-3, #party-form .grid-addr, #party-form .grid-2 { gap: 10px 12px; }
  #party-form .party-top { gap: 14px; }
  #party-form .gstin-box__status { display: block; line-height: 1.35; }
  #party-contacts > .stack { margin-top: 6px !important; gap: 6px; }
  #party-contacts .section-title { margin: 4px 0 0; font-size: 13px; }
  #party-contacts [data-repeat-row] { gap: 6px; }
  #party-contacts [data-repeat-row] .input { min-width: 0; }
  #party-contacts [data-repeater="contacts"] [data-repeat-row] > input:first-child { flex: 1 1 140px; }
  #party-contacts [data-repeater="contacts"] [data-repeat-row] > input:nth-child(2) { width: 110px !important; }
  #party-contacts [data-repeater="contacts"] [data-repeat-row] > input:nth-child(3) { width: 120px !important; }
  #party-contacts [data-repeater="contacts"] [data-repeat-row] > input[type=email] { flex: 1 1 150px; width: auto !important; }
  #party-contacts [data-repeat-add] { min-height: 32px; }
  #party-form .fold-row { gap: 8px; }
  #party-form .fold-row > details.card { padding: 10px 16px; }
  #party-form .fold-row > details[open] { max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; }
  #party-form .fold-row > details .disclosure .muted { display: block; font-weight: 400; }
  #party-form > .form-actions { padding-top: 0; }
}
@media (min-width: 1100px) {
  #return-form > #cn-kind > legend { grid-column: 1 / -1; float: none; margin: 0 0 2px; padding: 0; font-size: var(--fs-md); }
  #return-form > #cn-kind { padding-top: 6px; }
  #return-form .card > p.small { margin: 0; line-height: 1.35; }
  #return-form > #cn-kind .check { font-size: var(--fs-sm); gap: 8px; }
  #return-form > #cn-kind .check .small { font-size: 12px; line-height: 1.3; display: block; }
  #return-form > #cn-kind .check br { display: none; }
  #return-form .card:has(> .field input[name=doc_date]) { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 12px; align-items: start; }
  #return-form .card:has(> .field input[name=doc_date]) > :not(.field) { grid-column: 1 / -1; }
  #return-form > .row:last-child, #dn-form > .row:last-child { position: static; margin: 0; padding: 0; background: none; }
  #return-form > input.input, #dn-form > input.input { min-height: 36px; }
  #dn-form { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
}
@media (min-width: 1100px) {
  .content:not(.content--embed) #party-form { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  #party-form .party-top { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  #party-form .role-pick { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  #party-form .role-pick__head { display: contents; }
  #party-form .role-pick__label { order: 1; }
  #party-form .role-pick__seg { order: 2; flex: none; flex-wrap: nowrap; }
  #party-form .role-pick__hint { order: 3; flex: 1 1 200px; font-size: 12px; line-height: 1.3; }
  #party-form .gstin-box__row .input { flex: 1 1 auto; }
  .content:not(.content--embed) #party-form > .form-actions { position: static; margin: 0; padding: 0; background: none; }
  #party-contacts { padding: 12px 16px; }
  #party-contacts > p.small { font-size: 12px; line-height: 1.35; }
}
#asset-form .asset-hint { margin: 0; }
#asset-form .asset-hint > summary { list-style: none; cursor: pointer; }
#asset-form .asset-hint > summary::-webkit-details-marker { display: none; }
@media (min-width: 1100px) {
  #asset-form .asset-hint:not([open]) > summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #asset-form .form-actions { position: static; background: none; padding: 0; margin: 0; }
  #asset-form { padding: 14px 18px; }
}
@media (min-width: 1100px) {
  #journal-show .kv { grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; }
  #journal-show .kv dd { text-align: left !important; overflow-wrap: anywhere; }
  #journal-form .jn-foot > details[open] { max-height: 34vh; overflow-y: auto; overscroll-behavior: contain; }
  #journal-form > .table-wrap { max-height: 46vh; overflow-y: auto; }
  #journal-form > .table-wrap thead th { position: sticky; top: 0; z-index: 1; }
}
@media (min-width: 1100px) {
  .content:not(.content--embed) #party-form { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  #party-form > div.card { gap: 8px; padding: 12px 16px; }
  #party-form > div.card .field__label { font-size: 13px; line-height: 1.3; }
  #party-form > div.card .input { min-height: 36px; }
  #party-form .gstin-box__row { gap: 8px; }
  #party-form .gstin-box__row .btn { white-space: nowrap; flex: none; min-height: 36px; }
  #party-form .gstin-box__status { font-size: 12px; margin-top: 2px; }
  #party-form .grid-3, #party-form .grid-addr, #party-form .grid-2 { gap: 8px 12px; }
  #party-form .segmented label { min-height: 34px; }
}
@media (min-width: 1100px) {
  body:has(.content:not(.content--embed) #party-form) .main { height: 100vh; height: 100dvh; }
  body:has(.content:not(.content--embed) #party-form) .content { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
  body:has(.content:not(.content--embed) #party-form) .content > * { flex-shrink: 0; }
  .content:not(.content--embed) > #party-form { flex: 1 1 0; min-height: 0; grid-template-rows: auto auto minmax(0, 1fr) auto; grid-auto-flow: row; }
  .content:not(.content--embed) #party-form > .alert { grid-row: 1; }
  .content:not(.content--embed) #party-form > div.card { grid-row: 2 / -1; align-self: start; max-height: 100%; overflow-y: auto; }
  .content:not(.content--embed) #party-form > #party-contacts { grid-row: 2; }
  .content:not(.content--embed) #party-form > .fold-row { grid-row: 3; align-self: start; max-height: 100%; overflow-y: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content:not(.content--embed) #party-form > .form-actions { grid-row: 4; flex-wrap: wrap; gap: 8px; }
  #party-form .fold-row > details[open] { max-height: none; overflow: visible; }
  #party-form .fold-row > details .disclosure .muted { display: none; }
  #party-form .fold-row > details:not([open]) > summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #party-form > .form-actions .btn { min-height: 40px; padding: 0 14px; }
}
@media (min-width: 1100px) {

  .content:not(.content--embed) #party-form > .form-actions > a.btn { order: 1; }
  .content:not(.content--embed) #party-form > .form-actions > button[name=after] { order: 2; }
}
@media (min-width: 900px) {
  #dc-jobwork-hint { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
  #dc-jobwork-hint .dc-hint__text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #dc-jobwork-hint > a { flex: none; }
  #sales-form #refund .cn-hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1100px) {
  #party-form > div.card, #party-form > .fold-row, #ret-list, #return-form > [data-cn-part], #return-form > div.card, #dn-form > div.card,
  #journal-show .jshow__main > .table-wrap, #journal-show .jshow__side, #journal-form > .table-wrap { position: relative; }
}
@media (min-width: 900px) {
  body:has(#return-form, #dn-form, #email-form, #ewb-value, #party-form, #journal-form, #asset-form) .content > .alert { padding: 6px 12px; margin: 0 0 8px; font-size: 13px; }
}
@media (min-width: 1100px) {
  #asset-form .input { min-height: 38px; }
  #asset-form .field__label { margin-bottom: 3px; }
  #asset-form .form-grid--3 { gap: 8px 14px; }
  #asset-form .asset-hint:not([open]) > summary { -webkit-line-clamp: 1; }
}
@media (min-width: 1100px) { #asset-form { padding: 12px 18px; gap: 8px; } }

/* v111_final.css */
@media (min-width: 1100px) {
  body:is(:has(#conn-my-code), :has(.scan111), :has(.snap111), :has(#idea-new), :has(#schedule-form), :has(#sync-clear, #sync-attention, #device-list)) #main { padding-top: 8px; padding-bottom: var(--s-4); }
  body:is(:has(#conn-my-code), :has(.scan111), :has(.snap111), :has(#idea-new), :has(#schedule-form), :has(#sync-clear, #sync-attention, #device-list)) #main > .page-head { margin: 0 0 10px; }
  body:is(:has(#conn-my-code), :has(.scan111), :has(.snap111), :has(#idea-new), :has(#schedule-form), :has(#sync-clear, #sync-attention, #device-list)) #main > .page-head h1 { font-size: 24px; }
  body:is(:has(#conn-my-code), :has(.scan111), :has(.snap111), :has(#idea-new), :has(#schedule-form), :has(#sync-clear, #sync-attention, #device-list)) #main > :is(.alert, [role=alert]) { margin: 0 0 8px; padding: 6px 14px; font-size: var(--fs-sm); line-height: 1.4; }
}
@media (min-width: 1100px) {
  body:has(#conn-my-code) #main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-content: start; }
  body:has(#conn-my-code) #main > * { grid-column: 1 / -1; min-width: 0; }
  body:has(#conn-my-code) #main > p.muted { margin: 0 0 10px; font-size: var(--fs-sm); line-height: 1.45; }
  body:has(#conn-my-code) #main > .conn-inbox-link { grid-column: 1; margin: 0; align-self: stretch; }
  body:has(#conn-my-code) #main > .conn-code { grid-column: 2; margin: 0; padding: 12px 18px; gap: 4px; }
  body:has(#conn-my-code) #main > #conn-check-banner { margin: 10px 0 0; }
  body:has(#conn-my-code) #main > .conn-group { margin: 12px 0 0; }
  body:has(#conn-my-code) #main > #conn-suppliers { grid-column: 1; }
  body:has(#conn-my-code) #main > #conn-customers { grid-column: 2; }
  body:has(#conn-my-code) #main > .conn-group > .section-title { margin-top: 0; }
  body:has(#conn-my-code) #main > .conn-group > p.small { margin: 4px 0 0; }
}
@media (min-width: 1100px) {
  body:has(.scan111) #main > .scan-box { margin: 0 0 12px; }
  body:has(.scan111) #main > .scan-box .scan-box__drop { padding: 12px 18px; }
  .scan111 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .scan111 > .scan-kinds { margin: 0; padding: 14px 18px; align-self: start; }
  .scan111 > .scan-kinds:only-child { grid-column: 1 / -1; }
  .scan111 > .scan-kinds .scan-kinds__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .scan111 > .scan-kinds .scan-kinds__list > li > span:last-child { line-height: 1.35; }
  .scan111 > .scan-kinds .scan-kinds__list small { display: block; margin-top: 1px; }
  .scan111 > .scan-kinds:only-child .scan-kinds__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scan111__recent { height: 0; min-height: 100%; display: flex; flex-direction: column; min-width: 0; }
  .scan111__recent > .section-title { margin: 0 4px 6px; flex: none; }
  .scan111__recent > .list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .scan111__recent .list__item { min-height: 0; padding-block: 8px; }
}
@media (min-width: 1100px) {
  .snap111 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .snap111 > #snap-form { margin: 0; padding: 14px 18px; }
  .snap111 > #snap-form:only-child { grid-column: 1 / -1; }
  .snap111 > #snap-form > * + * { margin-top: 10px; }
  .snap111 > #snap-form > #snap-chosen:empty { display: none; }
  .snap111__recent { min-width: 0; }
  .snap111__recent > .section-title { margin: 0 4px 6px; }
  .snap111__recent > #doc-list { max-height: calc(100vh - 250px); min-height: 140px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .snap111__recent #doc-list .list__item { min-height: 0; padding-block: 8px; }
}
@media (min-width: 1100px) {
  body:has(#idea-new) #main > p.muted { margin: 0 0 10px; font-size: var(--fs-sm); line-height: 1.45; }
  #idea-new { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 14px; align-items: start; padding: 14px 18px; }
  #idea-new > * { margin: 0 !important; min-width: 0; }
  #idea-new > input[type=hidden] { display: none; }
  #idea-new #ibody { min-height: 40px; height: 40px; resize: vertical; }
  #idea-new > #idea-send { align-self: start; margin-top: 26px !important; }
  body:has(#idea-new) #main > nav.row { margin: 12px 0 8px !important; }
}
#schedule-form > p.small[title] { cursor: help; }
@media (min-width: 1100px) {
  #schedule-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 14px 18px; }
  #schedule-form > * { margin: 0 !important; min-width: 0; }
  #schedule-form > input[type=hidden] { display: none; }
  #schedule-form > .grid-2 { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1fr); gap: 10px 14px; }
  #schedule-form > .grid-2 > .field { margin: 0; }
  #schedule-form > p.small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:has(#schedule-form) #main > .section-title { margin: 14px 4px 6px; }
}
@media (min-width: 1100px) {
  body:has(#sync-clear, #sync-attention, #device-list) #main > p.muted { margin: 0 0 8px; font-size: var(--fs-sm); line-height: 1.45; }
  body:has(#sync-clear, #sync-attention, #device-list) #main > .section-title { margin: 12px 4px 6px; }
  #sync-clear.empty { display: flex; align-items: center; gap: 14px; padding: 12px 18px; text-align: left; }
  #sync-clear .empty__art { width: 40px; height: 40px; margin: 0; border-radius: 12px; flex: none; }
  #sync-clear .empty__art .icon--lg { width: 22px; height: 22px; }
  #sync-clear .empty__title { margin: 0; }
}
@media (min-width: 1100px) {
  .stock-doc:has(#bt-kind):has(#cancel-form) > .card:first-child { grid-row: 1 / span 3; }
  .stock-doc:has(#bt-kind):has(#cancel-form) > .stock-doc__lines { grid-row: 1; max-height: calc(100vh - 430px); min-height: 90px; }
  .stock-doc:has(#bt-kind):has(#cancel-form) > .section-title { grid-column: 2; grid-row: 2; margin: 4px 2px -4px !important; }
  .stock-doc:has(#bt-kind):has(#cancel-form) > #cancel-form { grid-column: 2; grid-row: 3; }
  .stock-doc:has(#bt-kind) .kv { gap: 4px 14px; }
}
@media (min-width: 1100px) {
  #email-form > p.small { grid-column: 1; align-self: center; }
  #email-form > #no-smtp { grid-column: 1; margin: 0; align-self: center; padding: 8px 14px; }
  #email-form > #no-smtp + .form-actions { grid-column: 2; justify-content: flex-end; align-self: center; }
}
#ewb-form .field__hint[title] { cursor: help; }
@media (min-width: 1100px) {
  #ewb-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
  #ewb-form > * { grid-column: 1 / -1; margin: 0 !important; min-width: 0; }
  #ewb-form > input[type=hidden] { display: none; }
  #ewb-form > span.small { grid-column: 1; }
  #ewb-form > #ewb-prepare, #ewb-form > .row:last-child { grid-column: 2; justify-self: end !important; align-self: center !important; }

  #ewb-form:has(> #ewb-prepare) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; align-items: start; }
  #ewb-form:has(> #ewb-prepare) > .grid-2 { display: contents; }
  #ewb-form:has(> #ewb-prepare) > span.small { grid-column: 4; grid-row: 3; align-self: start; justify-self: end; margin-top: 2px !important; }
  #ewb-form:has(> #ewb-prepare) > #ewb-prepare { grid-column: 4; grid-row: 3; align-self: end !important; justify-self: end !important; white-space: nowrap; max-width: 100%; padding-inline: 16px; font-size: 14px; }
  #ewb-form .field__hint { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  body:has(#ewb-value) #main > p.small.muted { margin: 0 0 8px; }
  #ewb-prepared { margin-top: 10px !important; padding: 12px 18px; }
  #ewb-prepared > * + * { margin-top: 8px; }
  #ewb-checks { margin-top: 10px !important; padding: 10px 18px; columns: 2; column-gap: 28px; line-height: 1.5; }
  #ewb-checks > div { break-inside: avoid; }
}
#m111-ptx > p.muted[title] { cursor: help; }
@media (min-width: 1100px) and (min-height: 520px) {

  body:has(#m111-ptx) .main { height: 100vh; height: 100dvh; min-height: 0; }
  body:has(#m111-ptx) #main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  body:has(#m111-ptx) #main > :not(#m111-ptx) { flex: none; }
  body #m111-ptx { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  body #m111-ptx > * { flex: none; }
  body #m111-ptx > .table-wrap { flex: 1 1 auto; max-height: none; min-height: 120px; }
}
@media (min-width: 1100px) {
  #m111-ptx > p.muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #m111-ptx #ptx-form > fieldset > .check { min-height: 28px; }
  body #m111-ptx #ptx-form { grid-template-columns: minmax(0, 1fr) auto; }
  body #m111-ptx #ptx-form > .row:last-child .btn { white-space: nowrap; }
}
@media (min-width: 1100px) {
  body .m111 #account-form.acc111:has(#bank-account-no) { row-gap: 8px; }
}

/* v111_items.css */
.item-tabs__bar { margin: 0; }
.item-tabs__bar .seg-tabs__btn { display: inline-flex; align-items: center; gap: 6px; }
.item-tabs__bar .seg-tabs__btn.has-err { color: var(--c-danger); }
.item-tabs__bar .seg-tabs__btn.has-err::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-danger); }
.item-tabs > .item-panel { margin-top: 8px; }
.item-panel .ind-fields__title { display: none; }
.item-panel__hint { margin: 0 0 8px; }
.item-grid .field { margin: 0; }
.item-tiers { display: grid; gap: 6px; margin-top: 4px; }
.item-tiers__one { display: block; min-width: 0; }
.item-track__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.item-kindrow { display: flex; flex-direction: column; gap: var(--s-3); }
.item-core__name, .item-grid__full { grid-column: 1 / -1; }
#item-form .item-hsn [data-hsn-hint]:empty { display: none; }
@media (min-width: 1100px) {

  #item-form.item-form111 { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
  #item-form.item-form111 > * { grid-column: 1 / -1; margin: 0; }
  #item-form.item-form111 > .page-head { grid-column: 1; grid-row: 1; margin: 0; }
  #item-form.item-form111 > .alert { grid-column: 2; grid-row: 1; margin: 0; padding: 8px 14px; font-size: var(--fs-sm); }
  #item-form.item-form111 > .form-actions { grid-column: 3; grid-row: 1; justify-self: end; position: static; margin: 0; padding: 0 !important; background: none; flex-wrap: nowrap; }
  #item-form .page-head h1 { font-size: 24px; }
  #item-form .item-basic { padding: 10px 18px 12px; }
  #item-form .item-basic > * + * { margin-top: 8px; }
  #item-form .item-kindrow { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  #item-form .kind-bar { flex: none; gap: 8px 16px; }
  #item-form .kind-bar .segmented label { min-height: 34px; }
  #item-form .mfg-panel { flex: 1 1 380px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 4px 8px; }
  #item-form .mfg-pick { display: flex; gap: 6px; }
  #item-form .mfg-pick__opt { padding: 5px 10px; align-items: center; }
  #item-form .mfg-pick__opt .small { display: none; }
  #item-form .mfg-note { flex: 1 1 260px; min-width: 0; font-size: 13px; line-height: 1.35; }
  #item-form .item-core, #item-form .item-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 14px; align-items: start; }
  #item-form .item-core { grid-auto-flow: row dense; }
  #item-form .item-core__name { grid-column: span 2; }
  #item-form .item-core .item-hsn, #item-form .item-grid__w2 { grid-column: span 2; }
  #item-form .item-grid__w3 { grid-column: span 3; }
  #item-form .item-core .grid-contents { display: contents; }
  #item-form .item-core .grid-contents > :last-child { grid-column: span 2; }
  #item-form .input--big { min-height: 44px; font-size: var(--fs-md); }
  #item-form .field__hint { font-size: 12px; line-height: 1.35; margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  #item-form .field__hint:hover { -webkit-line-clamp: unset; }

  #item-form .item-hsn { display: grid; grid-template-columns: minmax(112px, 1fr) minmax(0, auto); column-gap: 6px; align-content: start; }
  #item-form .item-hsn > * { grid-column: 1 / -1; }
  #item-form .item-hsn > .field__label { grid-row: 1; }
  #item-form .item-hsn > .input { grid-column: 1; grid-row: 2; }
  #item-form .item-hsn > [data-hsn-suggest] { grid-column: 2; grid-row: 2; margin: 0 !important; align-self: stretch; padding: 0 10px; font-size: 13px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: block; line-height: 38px; }
  #item-form .item-hsn > [data-hsn-suggestions]:empty { display: none; }

  #item-form .item-tabs__bar { padding: 3px; }
  #item-form .item-tabs__bar .seg-tabs__btn { padding: 0 10px; min-height: 30px; }
  #item-form .item-panel { padding: 10px 18px; }
  #item-form .item-tabs > .item-panel { margin-top: 6px; }
  #item-form .item-panel__hint { font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  #item-form .item-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 14px; }
  #item-form #tier-fields { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; }
  #item-form #tier-fields > summary { margin: 0; grid-column: 1; }
  #item-form #tier-fields > :not(summary) { grid-column: 1 / -1; }
  #item-form #tier-fields > .item-tiers { grid-column: 2; margin: 0; }
  #item-form .item-grid__check { align-self: center; margin-top: 18px; }
  #item-form .item-panel textarea { min-height: 0; height: 40px; resize: vertical; }
  #item-form .item-track { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  #item-form .item-track > .field__label { margin: 0; }
  #item-form .item-track > .field__error { flex-basis: 100%; }
  #item-form .item-track .segmented label { min-height: 30px; }
  #item-form .item-rows { max-height: max(100px, calc(100vh - 530px)); overflow: auto; overscroll-behavior: contain; padding: 2px; }
  #item-form .item-rows > * + * { margin-top: 8px; }
  #item-form .item-panel .ind-fields .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; }
  #item-form .item-panel .input { min-height: 40px; }
  #item-form .item-basic .input { min-height: 40px; }
  #item-form .item-basic .field__label, #item-form .item-panel .field__label { margin-bottom: 3px; }
  body:has(#item-form.item-form111) #main { padding-top: 8px; padding-bottom: var(--s-4); }
}
#item-layout .item-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s-4) 0; }
.item-show-tabs { margin-top: var(--s-4); }
.item-show-tabs__bar { margin: 0 0 8px; }
.item-show-panel > .item-tab-title, .item-show-panel .notes > .section-title { display: none; }
.item-show-panel > :first-child:not(.item-tab-title), .item-show-panel > .item-tab-title + * { margin-top: 0; }
.item-show-panel .notes { margin-top: 0 !important; }
.page-head .item-hi { font-size: var(--fs-lg); }
@media (min-width: 1200px) {
  body:has(#item-layout) .page-head { margin-bottom: 10px; }
  body:has(#item-layout) #main { padding-top: 8px; padding-bottom: 12px; }
  #item-layout .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 10px; }
  #item-layout .tile { padding: 10px 14px; }
  #item-layout .item-acts { flex-direction: column; flex-wrap: nowrap; gap: 6px; margin: 0; }
  #item-layout .item-acts .btn { min-height: 30px; padding: 0 12px; font-size: 13px; justify-content: flex-start; }
  .item-show-tabs { margin-top: 12px; }
  .item-show-panel { max-height: calc(100vh - 340px); min-height: 150px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .item-show-panel .scroll-rows { max-height: none; overflow: visible; }
  .item-show-panel .table thead th { position: sticky; top: 0; z-index: 1; background: var(--c-surface); }
  .item-show-panel .section-title { margin: 8px 2px 6px; }
  .item-show-panel .notes { padding: 12px 16px; }
  #item-layout .doc-side { max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 4px; gap: 10px; }
  #item-layout .doc-side .kv { gap: 4px 12px; font-size: var(--fs-sm); }
  #item-layout .doc-side .attach { padding: 10px 14px; }
  #item-layout .doc-side .attach__head { margin-bottom: 6px; }
  #item-layout .doc-side .attach__hint { font-size: 12px; line-height: 1.3; }
  #item-layout #photos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; }
  #item-layout #photos > * { margin: 0; }
  #item-layout #photos > .item-photos { flex-basis: 100%; }
  #item-layout .doc-side > div:last-child:has(form) { display: flex; }
}
#bom-form .bom-nums { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
#bom-form .bom-nums > .field { flex: 1 1 200px; margin: 0; }
#bom-form .bom-remove { margin-left: auto; }
@media (min-width: 1100px) {
  body:has(#bom-form) .page-head { margin-bottom: 12px; }
  body:has(#bom-form) #main { padding-top: 8px; padding-bottom: var(--s-4); }
  #bom-form.bom-form111 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto 1fr; gap: 10px 16px; align-items: start; }
  #bom-form.bom-form111 > * { margin: 0; }
  #bom-form .bom-how { grid-column: 1; grid-row: 1 / span 3; padding: 14px 18px; gap: 10px; }
  #bom-form .bom-how > * + * { margin-top: 10px; }
  #bom-form .bom-how .check { line-height: 1.35; }
  #bom-form .bom-how .check .small { display: block; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  #bom-form .bom-how .check .small:hover { -webkit-line-clamp: unset; }
  #bom-form .bom-how .check br { display: none; }
  #bom-form .bom-nums > .field { max-width: none !important; }
  #bom-form .field__hint { font-size: 12px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  #bom-form .bom-lines { grid-column: 2; grid-row: 1; max-height: calc(100vh - 290px); overflow: auto; overscroll-behavior: contain; padding: 2px; }
  #bom-form .bom-lines > * + * { margin-top: 8px; }
  #bom-form .bom-lines [data-repeat-row] { padding: 8px 10px !important; }
  #bom-form .bom-hint { grid-column: 2; grid-row: 2; margin: 0; }
  #bom-form .bom-acts { grid-column: 2; grid-row: 3; position: static; margin: 0; padding: 0; background: none; }
}
@media (min-width: 1100px) {
  body:has(#labels-form) .page-head { margin-bottom: 12px; }
  body:has(#labels-form) #main { padding-top: 8px; padding-bottom: var(--s-4); }
  #labels-form { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 7fr); gap: 16px; align-items: start; }
  #labels-form > .card { margin: 0; padding: 14px 18px; }
  #labels-form .labels__opts > * + * { margin-top: 10px; }
  #labels-form .labels__opts .field__hint, #labels-form .labels__opts > p { font-size: 12px; line-height: 1.35; }
  #labels-form .labels__opts .field { margin: 0; }
  #labels-form .labels__items .table-scroll { max-height: calc(100vh - 270px); }
  #labels-form .labels__items .row { margin-bottom: 8px !important; flex-wrap: nowrap; }
  #labels-form .labels__items .row > .input { flex: 1; min-width: 0; }
  #labels-form .labels__items .row > .btn { flex: none; }
  #labels-form .labels__items .table td { padding-top: 6px; padding-bottom: 6px; }
  #labels-form .labels__items .table :is(td, th) { padding-left: 10px; padding-right: 10px; white-space: normal; }
  #labels-form .labels__items .table .input { width: 64px !important; }
}
.pl-col { min-width: 0; }
@media (min-width: 1100px) {
  body:has(#pl-page) .page-head { margin-bottom: 8px; }
  body:has(#pl-page) #main { padding-top: 8px; padding-bottom: var(--s-4); }
  .pl-intro { font-size: var(--fs-sm); margin-bottom: 4px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .pl-intro:hover { -webkit-line-clamp: unset; }
  #pl-page { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
  #pl-page .section-title { margin: 6px 2px 6px; }
  #pl-page #price-lists, #pl-page #scheme-list { overflow: auto; overscroll-behavior: contain; }
  #pl-page #price-lists { max-height: max(120px, calc(100vh - 440px)); }
  #pl-page #scheme-list { max-height: max(96px, calc(100vh - 520px)); }
  #pl-page .list__item { min-height: 0; padding: 8px 14px; }
  #pl-page .pl-col > p.muted { margin: 0 2px 8px; font-size: var(--fs-sm); }
  #pl-page form.card { margin-top: 8px !important; padding: 12px 16px; }
  #pl-page form.card > * + * { margin-top: 8px; }
  #pl-page form .grid-2 { gap: 6px 12px; }
  #pl-page .field__error { font-size: 12px; line-height: 1.3; margin-top: 2px; }
  body:has(#pl-page) .pl-intro { margin-bottom: 0; }
  #pl-page #new-list .grid-2 { grid-template-columns: minmax(0, 1fr); }
  #pl-page #new-scheme .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #pl-page .input { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
  #pl-page .field__label { font-size: 13px; margin-bottom: 3px; }
  #pl-page .field__hint { font-size: 12px; line-height: 1.35; }
  #pl-page form .row:last-child { position: static; margin: 0; padding: 0; background: none; }
}
#reason-picker:not(:has(> :not(input[type=hidden]):not(noscript))) { display: none; }
@media (min-width: 1100px) {
  body:has(.stock-form111) .page-head { margin-bottom: 12px; }
  body:has(.stock-form111) #main { padding-top: 8px; padding-bottom: var(--s-4); }
  .stock-form111 > * + * { margin-top: 10px; }
  .stock-form111 .stock-head { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 14px; align-items: start; }
  .stock-form111 .stock-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 14px; }
  .stock-form111 .field { margin: 0; }
  .stock-form111 .field__label { font-size: 13px; margin-bottom: 3px; }
  .stock-form111 .input { min-height: 40px; }
  .stock-form111 .field__hint, .stock-form111 .stock-hint { font-size: 12px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  .stock-form111 .field__hint:hover, .stock-form111 .stock-hint:hover { -webkit-line-clamp: unset; }
  .stock-form111 [data-stock-lines] { max-height: calc(100vh - 355px); overflow: auto; overscroll-behavior: contain; padding: 2px; }
  .stock-form111 [data-stock-lines] > * + * { margin-top: 8px; }
  .stock-form111 [data-stock-line] { padding: 8px 10px !important; }
  .stock-form111 [data-stock-line] > * + * { margin-top: 6px; }
  .stock-form111 > .row:last-child { margin-top: 4px; padding: 6px 0 4px; }
}
.stock-set-save { display: none; }
@media (min-width: 1100px) { .stock-set-save { display: inline-flex; } .stock-set-save--foot { display: none !important; } }
@media (min-width: 1100px) {
  body:has(#stock-set-page) .page-head { margin-bottom: 12px; }
  body:has(#stock-set-page) #main { padding-top: 8px; padding-bottom: var(--s-4); }
  #stock-set-page { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 16px; align-items: start; }
  .stock-set-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
  .stock-set-col > * { margin: 0 !important; }
  #stock-set-page .card { padding: 14px 18px; }
  #stock-set-page .card > * + * { margin-top: 10px; }
  #stock-set-page .field { margin: 0; }
  #stock-set-page .field__label { font-size: 13px; margin-bottom: 4px; }
  #stock-set-page .field__hint { font-size: 12px; line-height: 1.35; margin-top: 3px; }
  #stock-set-page .segmented label { min-height: 32px; }
  #stock-set-page .input { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
  #stock-set-page .grid-2 { gap: 8px 12px; }
  #stock-set-page #scale-settings { border: 0; padding: 0; margin: 0; }
  #stock-set-page #scale-settings .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #stock-set-page #scale-settings .field__hint { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  #stock-set-page #scale-settings .field__hint:hover { -webkit-line-clamp: unset; }
  #stock-set-page .section-title { margin: 2px 2px 0; }
  #stock-set-page .stock-set-col > .card.small { max-height: 120px; overflow: auto; }
  #stock-set-page #unit-form .grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #stock-settings { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 20px; align-items: start; }
  #stock-settings > * { grid-column: 1 / -1; margin: 0 !important; }
  #stock-settings > .stock-set-half { grid-column: auto; }
  #stock-settings .field__hint[title] { overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
  #stock-settings .field__hint[title]:hover { -webkit-line-clamp: unset; }
  #stock-settings .field .row { gap: 2px 14px !important; }
  #stock-set-page #scale-settings > legend { margin-bottom: 4px; padding: 0; }
  #stock-set-page #scale-settings > .grid-2 { margin-top: 0; }
  #stock-settings > .btn--primary { margin-top: 10px; }
}
@media (min-width: 1100px) {
  body:has(.stock-doc) .page-head { margin-bottom: 12px; }
  body:has(.stock-doc) #main { padding-top: 8px; padding-bottom: var(--s-4); }
  .stock-doc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px 16px; align-items: start; }
  .stock-doc > * { grid-column: 1; margin: 0 !important; min-width: 0; }
  .stock-doc > .stock-doc__lines { grid-column: 2; grid-row: 1 / span 4; max-height: calc(100vh - 170px); overflow: auto; overscroll-behavior: contain; }
  .stock-doc__lines thead th { position: sticky; top: 0; z-index: 1; background: var(--c-surface); }
  .stock-doc > .card { padding: 14px 18px; }
  .stock-doc .kv { gap: 6px 14px; }
  .stock-doc > .section-title { margin: 2px 2px -4px !important; }
  .stock-doc #cancel-form > * + * { margin-top: 8px; }
  .stock-doc #cancel-form p { margin: 0; }
}
#build-form:has(> .asm-main) { display: flex; flex-direction: column; gap: var(--s-4); }
#build-form > .asm-main, #build-form > .asm-more { display: contents; }
#build-form > .asm-main > *, #build-form > .asm-more > * { margin: 0; }
#build-form > .asm-main > .asm-hint, #build-form > .asm-main > .row { order: 2; }
#build-form > .asm-more > * { order: 1; }
#build-form .asm-grid .field { margin: 0; }
@media (min-width: 1100px) {
  body:has(#asm-page) .page-head { margin-bottom: 12px; }
  body:has(#asm-page) #main { padding-top: 8px; padding-bottom: var(--s-4); }
  #build-form:has(> .asm-main) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 22px; align-items: start; padding: 14px 18px; }
  #build-form > .asm-main, #build-form > .asm-more { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  #build-form > .asm-more { border-left: 1px solid var(--c-hairline); padding-left: 18px; align-self: stretch; }
  #build-form .asm-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; }
  #build-form .asm-conv { grid-column: span 2; max-width: none !important; }
  #build-form .input { min-height: 40px; }
  #build-form .field__label { font-size: 13px; margin-bottom: 3px; }
  #build-form .field__hint, #build-form .asm-hint { font-size: 12px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  #build-form .asm-more details > * + * { margin-top: 6px; }
  #build-form .asm-more details[open] > .table-wrap { max-height: 118px; overflow: auto; overscroll-behavior: contain; }
  #build-form .asm-more .table--dense td, #build-form .asm-more .table--dense th { padding-top: 4px; padding-bottom: 4px; }
  #build-form .asm-more .table .input { min-height: 32px; width: 64px !important; padding-left: 8px; padding-right: 8px; }
  #build-form .asm-more .table :is(td, th) { padding-left: 8px; padding-right: 8px; }
  #build-form .asm-more .table th { white-space: normal; line-height: 1.2; }
  #build-form .field__error { font-size: 12px; line-height: 1.3; margin-top: 2px; }
  #build-form .asm-scrap-row { flex-wrap: nowrap !important; }
  #build-form .asm-scrap-row > select { min-width: 0 !important; flex: 1 1 120px !important; }
  #build-form .asm-scrap-row > .input { width: 72px !important; flex: none; }
  #build-form .asm-scrap-row > .prefix-field { width: 104px !important; flex: none; }
  #build-form .asm-scrap-row .input { min-height: 36px; }
  #build-form > .asm-main > .row { position: static; margin: 0; padding: 0; background: none; }
  #asm-page .asm-list { margin-top: 12px !important; max-height: max(80px, calc(100vh - 540px)); overflow: auto; overscroll-behavior: contain; }
  #asm-page .asm-list .list__item { min-height: 0; padding: 8px 14px; }
}
@media (min-width: 1100px) {
  body:has(#count-form) .page-head { margin-bottom: 10px; }
  body:has(#count-form) #main { padding-top: 8px; padding-bottom: var(--s-3); }
  #count-form .count-wrap { max-height: calc(100vh - 300px); overflow: auto; overscroll-behavior: contain; }
  #count-form .count-wrap thead th { position: sticky; top: 0; z-index: 1; background: var(--c-surface); }
  #count-form .form-actions { margin-top: 8px; padding: 6px 0; }
}
@media (min-width: 1100px) {
  body:is(:has(#item-layout), :has(#bom-form), :has(#labels-form), :has(#pl-page), :has(.stock-form111), :has(#stock-set-page), :has(#asm-page), :has(.stock-doc), :has(#count-form)) #main > .alert { padding: 8px 14px; margin-bottom: 10px; font-size: var(--fs-sm); }
}

/* v111_money.css */
@media (min-width: 900px) {
  body:has(.m111) #main { padding-bottom: var(--s-4); }
}
@media (min-width: 1100px) {
  .m111 > .page-head { margin: 0 0 var(--s-3); }
  .m111 > .page-head h1 { font-size: var(--fs-2xl); }
  .m111 .card { padding: var(--s-4) var(--s-5); }
  .m111 .stack > * + * { margin-top: var(--s-3); }
  .m111 .field { margin-bottom: 0; }
  .m111 .field__label { margin-bottom: 4px; }
  .m111 .input { min-height: 40px; }
  .m111 .grid-2 { gap: var(--s-3); }
  .m111 form .grid-2 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-3); }
  .m111 .alert { padding: var(--s-2) var(--s-3); margin-bottom: var(--s-2); }
  .m111 .section-title { margin: var(--s-3) var(--s-1) var(--s-2); }
  .m111 form .form-actions, .m111 form > .row:last-child:has(> .btn--primary[type=submit]) { position: static; margin-top: 0; padding: 0; background: none; }
  .m111 .table th, .m111 .table td { padding-block: 6px; }

  .m111-vf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .5fr) minmax(0, .5fr); gap: var(--s-3); align-items: start; }
  .m111-vf > * { grid-column: 2 / 4; margin: 0 !important; min-width: 0; }
  .m111-vf > .card:first-of-type { grid-column: 1; grid-row: 1 / span 4; margin-right: var(--s-1) !important; }
  .m111-vf > details:not(#voucher-attach) { grid-column: 2; align-self: center; }
  .m111-vf > details:not(#voucher-attach)[open] { grid-column: 2 / 4; }
  .m111-vf > details:not(#voucher-attach) + #voucher-attach:not([open]) { grid-column: 3; }
  .m111-vf > .vf-extra:not(:has(> *)) { display: none; }
  .m111-vf > .vf-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2); align-items: start; }
  .m111-vf > .vf-extra > * { margin: 0 !important; min-width: 0; }
  .m111-vf > .vf-extra > details:only-child, .m111-vf > .vf-extra > details[open] { grid-column: 1 / -1; }
  .m111-vf > .vf-extra > details { background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 10px var(--s-3); }
  .m111-vf > .vf-extra > details > summary { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m111-vf > .vf-extra > details > .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .m111-vf > .vf-extra > details > .stack > * + * { margin-top: var(--s-2); }
  .m111-vf > .vf-extra .hint { margin: 4px 0 0; }
  .m111-vf #allocation > * + * { margin-top: 2px; }
  .m111-vf #allocation .check { min-height: 26px; }
  .m111-vf #allocation .table-scroll { max-height: 140px; overflow-y: auto; overflow-x: hidden; }
  .m111-vf #allocation .table { margin-top: 4px !important; table-layout: fixed; width: 100%; }
  .m111-vf #allocation .table th:nth-child(2) { width: 96px; }
  .m111-vf #allocation .table th:nth-child(3) { width: 112px !important; }
  .m111-vf #allocation .table td { white-space: normal; overflow-wrap: anywhere; padding: 4px 6px; font-size: var(--fs-sm); }
  .m111-vf #allocation .table .input { min-height: 32px; height: 32px; padding: 0 8px; }
  .m111-vf #voucher-attach { padding: 10px var(--s-4); }
  .m111-vf > .card:first-of-type .input[name=amount] { font-size: var(--fs-md) !important; }
}
@media (min-width: 1100px) {
  .m111 .cc111 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
  .m111 #cash-close-form { display: grid; grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
  .m111 #cash-close-form > * { grid-column: 2; margin: 0 !important; min-width: 0; }
  .m111 #cash-close-form > .cc-count { grid-column: 1; grid-row: 1 / span 3; }
  .m111 .cc-count > * + * { margin-top: var(--s-2); }
  .m111 .cc-count .table td { padding: 3px 4px; border: 0; }
  .m111 .cc-count .table td:first-child { width: 64px !important; white-space: nowrap; }
  .m111 .cc-count .table .input { min-height: 32px; height: 32px; width: 84px !important; padding: 0 8px; }
  .m111 .cc-count .table .prefix-field { width: 108px !important; }
  .m111 .cc-count .table .prefix-field .input { width: 100% !important; }
  .m111 .cc-count .table .prefix-field__prefix { min-height: 32px; height: 32px; }
  .m111 .cc-sum .kv { gap: 4px var(--s-4); }
  .m111 #cash-close-opening { margin: 0 0 var(--s-2) !important; }
  .m111 .cc-side { max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 2px; }
  .m111 .cc-side > .card { padding: var(--s-3) var(--s-4); }
  .m111 .cc-side > .section-title:first-child { margin-top: 0; }
  .m111 .cc-side #closings .list__item { min-height: 0; padding: 8px var(--s-3); }
}
@media (min-width: 1100px) {
  .m111 #account-form.acc111:has(#bank-account-no) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); align-items: start; }
  .m111 #account-form.acc111:has(#bank-account-no) > * { margin: 0 !important; min-width: 0; }
  .m111 #account-form.acc111 > .grid-2 { display: contents; }
  .m111 #account-form.acc111 > #bank-intro, .m111 #account-form.acc111 > .bank-safe-line, .m111 #account-form.acc111 > .row { grid-column: 1 / -1; }
  .m111 #account-form.acc111 > #bank-intro { font-size: var(--fs-sm); }
  .m111 #account-form.acc111 > label[class=field]:has([name=branch_address]) { grid-column: span 2; }
  .m111 #account-form.acc111 > label[data-name-field] { grid-column: span 1; }
  .m111 #account-form.acc111 > .stack { grid-column: span 2; gap: 4px; }
  .m111 #account-form.acc111 > .stack > * + * { margin-top: 4px; }
  .m111 #account-form.acc111 .input--big { min-height: 40px; font-size: var(--fs-md); }
  .m111 #account-form.acc111 .field__hint, .m111 #account-form.acc111 .check .small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  .m111 #account-form.acc111 .check > span { min-width: 0; }
  .m111 #account-form.acc111:has(#bank-account-no) { row-gap: 10px; }
  .m111 #account-form.acc111 .field__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m111 #account-form.acc111 .field__error { display: block; font-size: var(--fs-xs); line-height: 1.3; margin-top: 2px; }
}
@media (min-width: 1100px) {
  .m111 .vo111 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
  .m111 .vo111 > div { min-width: 0; display: flex; flex-direction: column; gap: var(--s-3); }
  .m111 .vo111 > div > * { margin-top: 0 !important; margin-bottom: 0 !important; }
  .m111 .vo111 > div > .section-title { margin: var(--s-1) var(--s-1) calc(-1 * var(--s-2)) !important; }
  .m111 .vo-main > .card > * + * { margin-top: 6px; }
  .m111 .vo-main > .card .row { min-height: 0; }
  .m111 .vo-main > .card strong.num { font-size: var(--fs-lg) !important; }
  .m111 .vo-main > #gst-vouchers:not(:has(*)) { display: none; }
  .m111 .vo-side > .card { padding: var(--s-3) var(--s-4); }
  .m111 .vo-side > .card > * + * { margin-top: var(--s-2); }
  .m111 .vo-side #allocations { max-height: 190px; overflow-y: auto; scrollbar-width: thin; }
  .m111 .vo-side #allocations .list__item { min-height: 0; padding: 8px var(--s-3); }
  .m111 .vo-side #cancel-form { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
  .m111 .vo-side #cancel-form > * { margin: 0; }
  .m111 .vo-side #cancel-form > .input { flex: 1 1 180px; width: auto; }
  .m111 .vo-side #deposit-form > * + *, .m111 .vo-side #bounce-form > * + * { margin-top: var(--s-2); }
  .m111 .vo-side .card > details > summary, .m111 .vo-side details.card > summary { cursor: pointer; }
}
@media (min-width: 1100px) {
  .m111-cf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-3) var(--s-4); align-items: start; }
  .m111-cf > * { grid-column: 2; margin: 0 !important; min-width: 0; }
  .m111-cf > .card:first-of-type { grid-column: 1; grid-row: 1 / span 3; }
  .m111-cf > .card + .card > * + * { margin-top: 2px; }
  .m111-cf .table-scroll { max-height: 170px; overflow-y: auto; }
  .m111-cf .table .input { min-height: 32px; height: 32px; }
  .m111-cf .field__hint { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1100px) {
  #m111-entry > nav.row { margin-bottom: var(--s-2) !important; }
  #m111-entry > nav.row > .badge { height: 30px !important; }
  #m111-entry > p.muted { margin: 0 0 var(--s-2); font-size: var(--fs-sm); }
  #m111-entry #entry-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); align-items: end; }
  #m111-entry #entry-form > * { margin: 0 !important; min-width: 0; grid-column: 1 / -1; }
  #m111-entry #entry-form > .grid-2 { display: contents; }
  #m111-entry #entry-form > .grid-2 > * { grid-column: auto; min-width: 0; }
  #m111-entry #entry-form > label.field:has([name=notes]) { grid-column: 1 / 3; }
  #m111-entry #entry-form > details { grid-column: 3; align-self: center; }
  #m111-entry #entry-form > .row:last-child { grid-column: 4; justify-content: flex-end; }
  #m111-entry #entry-form > .row:last-child:first-child, #m111-entry #entry-form > label.field:has([name=notes]) + .row { grid-column: 3 / -1; }
  #m111-entry #entry-form .field__hint .check { min-height: 0; }
}
@media (min-width: 1100px) {
  #m111-recurring > p.muted { margin: 0 0 var(--s-2); font-size: var(--fs-sm); }
  #m111-recurring:has(> #recurring-list) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: var(--s-4); align-items: start; }
  #m111-recurring:has(> #recurring-list) > * { grid-column: 1 / -1; min-width: 0; }
  #m111-recurring > #recurring-list { grid-column: 1; grid-row: span 2; margin: 0 !important; max-height: calc(100vh - 190px); overflow-y: auto; scrollbar-width: thin; }
  #m111-recurring > #recurring-list .list__item { min-height: 0; padding: 8px var(--s-3); }
  #m111-recurring:has(> #recurring-list) > .section-title, #m111-recurring:has(> #recurring-list) > #recurring-form { grid-column: 2; }
  #m111-recurring:has(> #recurring-list) > .section-title { margin-top: 0; }
  #m111-recurring #recurring-form .field__hint { margin-top: 0 !important; }
  #m111-recurring:not(:has(> #recurring-list)) #recurring-form > .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  #m111-ptx > p.muted { margin: 0 0 var(--s-2); font-size: var(--fs-sm); }
  #m111-ptx #ptx-form > fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--s-5); }
  #m111-ptx #ptx-form > fieldset > legend { float: left; margin: 0 var(--s-2) 0 0; }
  #m111-ptx #ptx-form > fieldset > * + * { margin-top: 0; }
  #m111-ptx #ptx-form > fieldset > .check { min-height: 30px; }
  #m111-ptx #ptx-form { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: var(--s-3) var(--s-4); align-items: end; }
  #m111-ptx #ptx-form > * { margin: 0 !important; grid-column: 1 / -1; min-width: 0; }
  #m111-ptx #ptx-form > label.field:has([name=notes]) { grid-column: 1; }
  #m111-ptx #ptx-form > .row:last-child { grid-column: 2; }
  #m111-ptx > h2.h3 { margin: var(--s-3) 0 var(--s-2) !important; font-size: var(--fs-md); }
  #m111-ptx > .table-wrap { max-height: calc(100vh - 470px); min-height: 120px; overflow-y: auto; scrollbar-width: thin; }
  #m111-ptx > .table-wrap thead th { position: sticky; top: 0; z-index: 1; }
}
@media (min-width: 1100px) {
  #m111-money > .tiles { margin-bottom: var(--s-3) !important; gap: var(--s-2); }
  #m111-money > .tiles > .tile { padding: 10px var(--s-3); }
  #m111-money > .tiles .tile__v { font-size: var(--fs-xl); margin-top: 0; }
  #m111-money > .callout, #m111-money > #due-reminders { margin-bottom: var(--s-3) !important; padding: 10px var(--s-4); }
  #m111-money > #due-reminders > * + * { margin-top: 4px; }
  #m111-money .money-grid .list { max-height: calc(100vh - 352px); min-height: 120px; }
  #m111-money:has(> .callout) .money-grid .list, #m111-money:has(> #due-reminders) .money-grid .list { max-height: calc(100vh - 425px); min-height: 120px; }
  #m111-money:has(> .callout):has(> #due-reminders) .money-grid .list { max-height: calc(100vh - 500px); }
}
@media (min-width: 1100px) {
  #m111-upi > p.muted { margin: 0 0 var(--s-2); font-size: var(--fs-sm); }
  #m111-upi > .advance-note { margin-bottom: var(--s-2); padding: 6px 12px; }
  #m111-upi > .tiles { margin: 0 0 var(--s-2) !important; gap: var(--s-2); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #m111-upi > .tiles > .tile { padding: 8px var(--s-3); display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
  #m111-upi > .tiles .tile__v { font-size: var(--fs-xl); margin: 0; }
  #m111-upi > #collect-made, #m111-upi > #collect-new { margin-bottom: var(--s-2) !important; padding: 10px var(--s-4); }
  #m111-upi > #collect-new > form { margin-top: var(--s-2) !important; }
  #m111-upi > #collect-new > form > * + *, #m111-upi > #collect-made > * + * { margin-top: var(--s-2); }
  #m111-upi > #upi-filter { margin-bottom: var(--s-2) !important; }
  #m111-upi > #upi-list { max-height: calc(100vh - 420px); min-height: 130px; overflow-y: auto; scrollbar-width: thin; }
  #m111-upi > #collect-new > form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: var(--s-2) var(--s-3); align-items: end; }
  #m111-upi > #collect-new > form > * { margin: 0 !important; min-width: 0; }
  #m111-upi > #collect-new > form > .small.muted { grid-column: 1 / -1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #m111-upi > #collect-new > form > .grid-2 { display: contents; }
  #m111-upi > #collect-new > form > #collect-make { align-self: end; }
  #m111-upi:has(> #collect-new[open]) > #upi-list { max-height: calc(100vh - 500px); min-height: 90px; }
  #m111-upi:has(> #collect-made) > #upi-list { max-height: calc(100vh - 560px); min-height: 90px; }
  #m111-upi > #upi-list .list__item { min-height: 0; padding: 8px var(--s-3); }
  #m111-upi > #upi-fee-hint { margin: var(--s-2) 0 0 !important; }
  #m111-upi > .card.empty { display: flex; align-items: center; justify-content: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 0; }
  #m111-upi > .card.empty > .empty__art { width: 44px; height: 44px; margin: 0; }
  #m111-upi > .card.empty > .empty__title { margin: 0; }
}
@media (min-width: 1100px) {
  .m111:not(#m111-money):not(#m111-cheque) > .page-head:has(+ .alert) { margin-bottom: var(--s-3); padding-right: 45%; }
  .m111:not(#m111-money):not(#m111-cheque) > .page-head + .alert { margin: -54px 0 18px auto; width: fit-content; max-width: 44%; min-height: 38px; display: flex; align-items: center; font-size: var(--fs-sm); line-height: 1.3; }
  .m111:not(#m111-money):not(#m111-cheque) > .page-head + .alert + .alert { margin-top: -10px; }
}
.gst-fit .live-step > summary, .gst-fit .gst-how > summary { cursor: pointer; }
.gst-fit .live-sum { font-weight: 400; }
.gst-fit #gsp-switches-step[open] > summary .live-sum { display: none; }
.gst-fit .live-conns > details > summary { list-style: none; }
.gst-fit .live-conns > details > summary::-webkit-details-marker { display: none; }
.gst-fit .live-conns > details > summary::before { content: "\25B8"; font-size: .9em; color: var(--c-text-2); }
.gst-fit .live-conns > details[open] > summary::before { content: "\25BE"; }
@media (min-width: 900px) {
  body:has(.gst-fit) #main, body:has(.tds-fit) #main { padding-bottom: var(--s-4); }
  .gst-fit > .page-head, .tds-fit > .page-head { margin-bottom: var(--s-2); }
  .gst-fit > .gst-tabs { margin-bottom: var(--s-2) !important; }
  .gst-fit > #period-form { margin-bottom: var(--s-3) !important; align-items: center; }
  .gst-fit > #period-form > label { display: flex; align-items: center; gap: var(--s-2); }

  .gst-fit:has(> #period-form) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); align-items: center; }
  .gst-fit:has(> #period-form) > * { grid-column: 1 / -1; min-width: 0; }
  .gst-fit:has(> #period-form) > .page-head { grid-column: 1; grid-row: 1; margin: var(--s-1) 0 var(--s-2); }
  .gst-fit:has(> #period-form) > #period-form { grid-column: 2; grid-row: 1; justify-content: flex-end; margin: 0 !important; }
  .gst-fit:has(> #period-form) > .gst-tabs { grid-row: 2; }
  #gst-tds-page > .row:not(#period-form):not(.gst-tabs) { flex-wrap: nowrap; }
  #gst-tds-page > .row:not(#period-form):not(.gst-tabs) > p { flex: 1 1 0; min-width: 0; }
  #gst-tds-page > .row:not(#period-form):not(.gst-tabs) > .spacer { display: none; }
  #gst-tds-page > .card { padding: var(--s-3) var(--s-4); }
  #gst-tds-page > .card > * + * { margin-top: var(--s-2); }
  #gst-tds-page .table th, #gst-tds-page .table td { padding-block: var(--s-2); }
  .gst-fit .alert, .tds-fit .alert { padding: var(--s-2) var(--s-3); margin-bottom: var(--s-2); font-size: var(--fs-sm); }
  .gst-fit .gst-set-head > .alert, .tds-fit .page-head > .alert, .tds-fit .tds-fy > .alert { margin: 0; flex: 0 1 auto; }
  .tds-fit .tds-fy > .alert { flex: none; white-space: nowrap; padding: 6px var(--s-3); }
  .gst-clamp, .itc-help, .tds-clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }


  #gst-home .tiles { margin-bottom: var(--s-3) !important; }
  #gst-home .tile { padding: var(--s-3) var(--s-4); }
  #gst-home .gst-how { padding: var(--s-3) var(--s-4); }
  #gst-home .section-title { margin-top: var(--s-4); }

  #gst-cmp .cmp-top { display: grid; gap: var(--s-3); margin-bottom: var(--s-3); }
  #gst-cmp .cmp-top > .card { margin: 0 !important; padding: var(--s-3) var(--s-4); }
  #gst-cmp .cmp-top > .card > * + * { margin-top: var(--s-2); }
  #gst-cmp #cmp08 th, #gst-cmp #cmp08 td { padding-block: var(--s-2); }
  #gst-cmp #prepare-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-3) !important; padding: var(--s-3) var(--s-4); }
  #gst-cmp #prepare-box > * + * { margin-top: 0; }
  #gst-cmp #prepare-box > p { flex: 1 1 320px; }
  #gst-cmp #prepare-box > form { order: -1; }
  #gst-cmp #prepare-box > :not(p):not(form) { flex-basis: 100%; }

  #gst-itc #itc-aid { margin: 0 0 var(--s-2); }
  #gst-itc .itc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); }
  #gst-itc .itc-sec { min-width: 0; }
  #gst-itc .itc-sec--wide { grid-column: 1 / -1; }
  #gst-itc .itc-sec > .section-title { margin: 0 var(--s-1) 2px; }
  #gst-itc .itc-sec > .itc-help { margin: 0 0 var(--s-2); }
  #gst-itc .itc-sec > .card.small.muted { padding: var(--s-2) var(--s-3); }
  #gst-itc #rev-add { margin-top: var(--s-2) !important; padding: var(--s-3) var(--s-4); }
  #gst-itc #rev-form, #gst-itc #record-wo { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-2) var(--s-3); margin-top: var(--s-2) !important; }
  #gst-itc #rev-form > *, #gst-itc #record-wo > * { margin-top: 0; }
  #gst-itc #rev-form > .row, #gst-itc #rev-form > .grid-4, #gst-itc #record-wo > .grid-4 { display: contents; }
  #gst-itc #rev-form .field, #gst-itc #record-wo .field { width: 92px; margin: 0; }
  #gst-itc #rev-form > .row > label { display: flex; align-items: center; gap: var(--s-2); }
  #gst-itc #rev-form select[name=rule] { max-width: 220px; }
  #gst-itc #rev-form > input[name=note] { flex: 1 1 240px; width: auto; }
  #gst-itc #record-wo > .row { flex: 1 1 auto; }
  #gst-itc #record-wo > p { flex-basis: 100%; }

  #gst-live-page .live-top { display: grid; gap: var(--s-3); align-items: start; }
  #gst-live-page .live-top > .card { margin-top: 0 !important; padding: var(--s-3) var(--s-4); }
  #gst-live-page .live-intro { -webkit-line-clamp: 2; }
  #gst-live-page .live-top > .card > * + *, #gst-live-page #gsp-switches > * + * { margin-top: var(--s-2); }
  #gst-live-page .section-title { margin-top: var(--s-3); }
  #gst-live-page .live-conns { display: grid; gap: var(--s-2); }
  #gst-live-page .live-conns > .card { padding: var(--s-2) var(--s-4); margin: 0; }

  #gst-live-page .live-conns > details[open] { position: fixed; z-index: 52; left: calc(50% + 132px); top: 50%; transform: translate(-50%, -50%); width: min(920px, calc(100vw - 312px));
    max-height: calc(100vh - 48px); overflow-y: auto; padding: var(--s-4) var(--s-5); box-shadow: 0 0 0 100vmax var(--zw-scrim), var(--shadow-2); }
  #gst-live-page .live-conns > details[open] > summary::after { content: "\2715"; margin-left: var(--s-2); color: var(--c-text-2); }
  #gst-live-page .live-body { margin-top: var(--s-2); }
  #gst-live-page .live-body > * + *, #gst-live-page .live-body form.stack > * + * { margin-top: var(--s-2); }
  #gst-live-page .live-body form .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); }
  #gst-live-page #gsp-switches { margin-top: var(--s-2); }
  #gst-live-page #gsp-lookup { margin: var(--s-2) 0 0; }

  #gst-settings-page #gst-settings { padding: var(--s-4) var(--s-5); }
  #gst-settings-page #gst-settings > * + * { margin-top: var(--s-2); }
  #gst-settings-page .gst-set-head { gap: var(--s-3); }
  #gst-settings-page .gst-set-cols { display: grid; gap: var(--s-3) var(--s-5); }
  #gst-settings-page .gst-set-col { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
  #gst-settings-page .gst-set-col .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); }
  #gst-settings-page #turnover-years .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #gst-settings-page .gst-set-col fieldset.stack > * + * { margin-top: var(--s-1); }
  #gst-settings-page .gst-set-col > * + * { margin-top: 0; }
  #gst-settings-page #gst-lut .grid-2 { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); }
  #gst-settings-page .gst-set-col:has(> .gst-set-einv) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); align-content: start; }
  #gst-settings-page .gst-set-col > .gst-set-filing, #gst-settings-page .gst-set-col > .gst-set-einv { display: contents; }
  #gst-settings-page .gst-set-col > #gst-api-user { grid-column: 1 / -1; }
  #gst-settings-page .gst-set-col:has(.gst-set-filing > label:only-child) > #gst-api-user { grid-column: 2; grid-row: 1; align-self: center; }
  #gst-settings-page #gst-lut .grid-2 > span.row { display: contents; }
  #gst-settings-page .gst-set-note { margin: var(--s-2) 0 0; }

  #filing-page > p.small.muted { margin-top: 0; }
  #filing-page #filing-cas { gap: var(--s-3); }
  #filing-page #filing-cas > .card { padding: var(--s-3) var(--s-4); margin: 0; }
  #filing-page #filing-cas > .card > * + * { margin-top: var(--s-1); }
  #filing-page #filing-cas > .card .btn { height: 34px; min-height: 0; padding: 0 var(--s-3); font-size: var(--fs-sm); }
  #filing-page .section-title { margin-top: var(--s-4); }

  #tds-page .page-head .btn { height: 36px !important; min-height: 0; padding: 0 var(--s-3); font-size: var(--fs-sm); }
  #tds-page .page-head h1 { white-space: nowrap; }
  #tds-page .tds-fy { flex-wrap: nowrap !important; margin-bottom: var(--s-2) !important; }
  #tds-page .tds-fy > .tds-law { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
  #tds-page .tds-fy > .btn, #tds-page .tds-fy > strong { flex: none; }
  #tds-page .tds-fy > .tds-clamp { flex: 1 1 0; min-width: 0; margin: 0; }
  #tds-page > .alert { font-size: var(--fs-sm); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-2) !important; }
  #tds-page .h3 { margin: var(--s-2) 0 var(--s-1) !important; font-size: var(--fs-md); }
  #tds-page .tds-col > .h3:first-child { margin-top: 0 !important; }
  #tds-page #tds-months th, #tds-page #tds-months td { padding: 5px 6px; }
  #tds-page #tds-none { padding: var(--s-3); }
  #tds-page #tds-quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
  #tds-page #tds-quarters > .list__item { min-height: 0; padding: var(--s-2) var(--s-3); flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--s-1); }
  #tds-page #tds-quarters > .list__item + .list__item { border-top: 0; border-left: 1px solid var(--c-border); }
  #tds-page #tds-quarters .list__end { margin-left: 0; flex-wrap: nowrap !important; gap: var(--s-1) !important; }
  #tds-page #tds-quarters .list__end .btn { height: 28px; padding: 0 6px; font-size: var(--fs-xs); gap: 4px; }
  #tds-page #tds-quarters .list__main { min-width: 0; }
  #tds-page #tds-quarters .list__end .btn svg { display: none; }
  #tds-page .tds-cols { display: grid; gap: 0 var(--s-4); align-items: start; }
  #tds-page .tds-col { min-width: 0; }
  #tds-page #tds-challans { padding: 0 var(--s-3); margin-top: 0; max-height: 196px; overflow-y: auto; }
  #tds-page #tds-months { margin: 0; }
  #tds-page .tds-col > .table-wrap { max-height: 190px; overflow-y: auto; }
  #tds-page #tds-challans .list__sub { white-space: normal; }
  #tds-page #tds-challans .list__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: var(--s-2) 0; }
  #tds-page .tds-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: stretch; margin-top: var(--s-2); }
  #tds-page .tds-acts > details { flex: 1 1 240px; min-width: 0; margin: 0 !important; padding: var(--s-2) var(--s-3); }
  #tds-page .tds-acts > details > summary { flex-wrap: nowrap; min-width: 0; }
  #tds-page .tds-acts > details > summary strong { font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  #tds-page .tds-acts > details[open] > summary strong { white-space: normal; }
  #tds-page .tds-note { margin: var(--s-2) 0 0; }

  #tds-page .tds-acts > details[open] { position: fixed; z-index: 52; left: calc(50% + 132px); top: 50%; transform: translate(-50%, -50%); width: min(920px, calc(100vw - 312px));
    max-height: calc(100vh - 48px); overflow-y: auto; padding: var(--s-4) var(--s-5); box-shadow: 0 0 0 100vmax var(--zw-scrim), var(--shadow-2); }
  #tds-page .tds-acts > details[open] > summary::after { content: "\2715"; margin-left: auto; color: var(--c-text-2); }
  #tds-page .tds-acts > details > * + *, #tds-page .tds-acts > details form > * + * { margin-top: var(--s-2); }
  #tds-page #tds-pay form .grid-2, #tds-page #tds-estimate form .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); }

  #tds-lower-page > p.muted { margin-top: 0; }
  #tds-lower-page #lower-none { padding: var(--s-4); }
  #tds-lower-page #lower-add { margin-top: var(--s-3) !important; padding: var(--s-4) var(--s-5); }
  #tds-lower-page #lower-add > * + *, #tds-lower-page #lower-add form > * + * { margin-top: var(--s-3); }
  #tds-lower-page #lower-add form .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2) var(--s-3); }
  #tds-lower-page .lower-save-cell { display: flex; flex-direction: column; justify-content: flex-end; }
  #tds-lower-page > p.small.muted:last-child { margin-top: var(--s-2) !important; }

  #tds-168-page > p.muted { margin-top: 0; }
}
@media (min-width: 1100px) {
  #gst-cmp .cmp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #gst-live-page .live-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  #gst-live-page .live-conns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #gst-settings-page .gst-set-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #filing-page #filing-cas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #gst-itc .itc-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #tds-page .tds-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "dep chal" "acts chal"; }
  #tds-page .tds-cols > .tds-col:first-child { grid-area: dep; }
  #tds-page .tds-cols > .tds-col--acts { grid-area: acts; }
  #tds-page .tds-cols > .tds-col--chal { grid-area: chal; }
  #tds-page #tds-pay[open] form .grid-2 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #tds-page #tds-estimate[open] form .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body:has(.tbl111) .main { height: 100vh; height: 100dvh; }
  body:has(.tbl111) .content { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding-bottom: var(--s-4); }
  body:has(.tbl111) .content > * { flex-shrink: 0; }
  body:has(.tbl111) .content > .grid-2.tbl111 { flex: 1 1 0; min-height: 420px; }
  body:has(.tbl111) .page-head { margin-bottom: var(--s-3); }
  body:has(.tbl111) .content > .alert { margin-bottom: var(--s-2); padding-top: 8px; padding-bottom: 8px; }
  .grid-2.tbl111 { grid-template-columns: minmax(0, .72fr) minmax(0, 1.78fr); grid-template-rows: minmax(0, 1fr); align-items: stretch !important; }
  .tbl111 > .card { min-height: 0; margin-top: 0; padding: var(--s-4); }
  .tbl111 > #menu { display: flex; flex-direction: column; }
  .tbl111 > #menu > * + * { margin-top: var(--s-2); }
  .tbl111 #menu .menu-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; overscroll-behavior: contain; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); padding: 2px; margin-left: -2px; margin-right: -2px; }
  .tbl111 > #order { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); }
  .tbl111 > #order > * + * { margin-top: 0; }
  .tbl111 #order > strong { grid-row: 1; grid-column: 1; }
  .tbl111 #order .tbl-lines { grid-row: 2; grid-column: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 2px; }
  .tbl111 #order .tbl-lines > .row { gap: 6px; flex-wrap: nowrap !important; }
  .tbl111 #order .tbl-lines > .row > span:first-child { min-width: 0; overflow-wrap: break-word; line-height: 1.25; }
  .tbl111 #order .tbl-lines > .row > span.num:not(:last-child) { min-width: 22px !important; }
  .tbl111 #order .tbl-lines > .row > .num:last-child { min-width: 64px !important; }
  .tbl111 #order .tbl-lines .btn { min-height: 30px; height: 30px; width: 30px; padding: 0 !important; justify-content: center; }
  .tbl111 #order .tbl-lines > .row:has(.void-box[open]) { flex-wrap: wrap !important; }
  .tbl111 #order .tbl-sum { grid-row: 3; grid-column: 1; display: flex; align-items: center; gap: var(--s-3); border-top: 1px solid var(--c-line-2); padding-top: var(--s-2); }
  .tbl111 #order .tbl-sum > form { order: -1; flex: 0 1 auto; min-width: 0; }
  .tbl111 #order .tbl-sum > .row { flex: 1; }
  .tbl111 #order .tbl-sum #print-kot { width: auto; max-width: 100%; min-height: 36px; padding-left: 12px; padding-right: 12px; justify-content: flex-start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tbl111 #order .tbl-pay { grid-row: 1 / 4; grid-column: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: var(--s-2); border-left: 1px solid var(--c-line-2); padding-left: var(--s-5); margin-left: calc(-1 * var(--s-2)); }
  .tbl111 #order .tbl-pay > * { flex-shrink: 0; margin-top: 0; }
  .tbl111 #settle > * + * { margin-top: var(--s-2); }
  .tbl111 #settle > .row { flex-wrap: nowrap; gap: var(--s-2); }
  .tbl111 #settle > .row > select[name=mode] { flex: 0 1 auto; max-width: 42%; }
  .tbl111 #settle > .row > select[name=party_id] { flex: 1 1 0 !important; min-width: 0 !important; }
  .tbl111 #settle-more > * + * { margin-top: 6px; }
  .tbl111 #settle-more > .row { gap: 6px !important; }
  .tbl111 #settle-more .field { margin: 0; width: auto !important; flex: 1 1 56px !important; min-width: 0 !important; }
  .tbl111 #settle-more .field:has([name=bill_name]) { flex-basis: 110px !important; }
  .tbl111 #settle-more .field:has([name=bill_phone]) { flex-basis: 100px !important; }
  .tbl111 #settle-more .field .input { width: 100%; min-width: 0; }
  .tbl111 #settle-more .field__label { margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tbl111 #settle-more .input { min-height: 36px; height: 36px; }
  .tbl111 #settle-more > .field__hint { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tbl111 #order .tbl-more { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
  .tbl111 #order .tbl-more > details { margin: 0; flex: 0 1 auto; }
  .tbl111 #order .tbl-more > details[open] { flex-basis: 100%; }
  .tbl111 #order .tbl-more > details > summary { cursor: pointer; }
  .tbl111 #split-bill > form { margin-top: var(--s-2) !important; }
  .tbl111 #split-bill > form > * + * { margin-top: 6px; }
  .tbl111 #split-bill .input { min-height: 34px; height: 34px; }
}
@media (max-width: 1099.98px) {
  .tbl111 :is(.tbl-lines, .tbl-sum, .tbl-pay, .tbl-more) > * + * { margin-top: var(--s-4); }
}
@media (min-width: 1100px) {
  body:has(.rep-zday) #main { padding-bottom: var(--s-4); }
  body:has(.rep-zday) .page-head { margin-bottom: var(--s-3); }
  .report-filters.rep-zday { gap: var(--s-2); margin-bottom: var(--s-2) !important; }
  .report-filters.rep-zday .input { min-height: 36px; height: 36px; padding-top: 0; padding-bottom: 0; }
  .report-filters.rep-zday .btn { min-height: 36px; }
  body:has(.rep-zday) #report-actions { margin-bottom: var(--s-2) !important; gap: var(--s-2); }
  body:has(.rep-zday) #report-actions .btn { min-height: 36px; }
  body:has(.rep-zday) #report-views { margin-bottom: var(--s-2) !important; }
  body:has(.rep-zday) #rep-key { padding: var(--s-3) var(--s-4); margin-bottom: var(--s-3); }
  body:has(.rep-zday) #main > p.small.muted { margin-top: var(--s-2) !important; }
}
@media (min-width: 1100px) {
  .auth:has(#onboarding-form) .auth__top, .auth:has(#onboarding-form) .auth__body { max-width: 980px; }
  .auth:has(#onboarding-form) .auth__top { padding-top: var(--s-3); padding-bottom: 0; }
  .auth:has(#onboarding-form) .auth__top .zw-logo--full { --zw-h: 46px !important; }
  .auth:has(#onboarding-form) .auth__body { padding-bottom: var(--s-4); }
  .auth:has(#onboarding-form) .auth__title { margin-top: var(--s-3); margin-bottom: var(--s-1); }
  .auth:has(#onboarding-form) .auth__title:not(:lang(hi)) { font-size: var(--fs-3xl); }
  .auth:has(#onboarding-form) .auth__lead { margin-bottom: var(--s-3); }
  .auth:has(#onboarding-form) .auth__body > .alert { margin-bottom: var(--s-3); padding-top: 8px; padding-bottom: 8px; }
  #onboarding-form.ob111 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; gap: var(--s-3) var(--s-6); align-items: start; }
  #onboarding-form.ob111 > * + * { margin-top: 0; }
  #onboarding-form.ob111 > :is(.ob-your, .ob-name, .ob-team, #share-with-field, .ob-go) { grid-column: 1; }
  #onboarding-form.ob111 > .ob-types { grid-column: 2; grid-row: 1 / -1; }
  #onboarding-form.ob111 > .ob-go { margin-top: var(--s-1); }
  #onboarding-form.ob111 .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #onboarding-form.ob111 .choice label, #onboarding-form.ob111 .choice__more { min-height: 44px; padding: 4px 10px; gap: 8px; font-size: var(--fs-sm); line-height: 1.2; }
  .auth:has(#onboarding-form) .auth__body > p:has(#delete-account-link) { margin-top: var(--s-1) !important; margin-bottom: 0; }
  #onboarding-form.ob111 .choice__more { min-height: 40px; }
}
@media (min-width: 1100px) {
  body:has(.dk111) #main { padding-bottom: var(--s-4); }
  body:has(.dk111) .page-head { margin-bottom: var(--s-3); }
  .grid-2.dk111 { align-items: start; }
  .dk111 > .card, .dk111 > .dk-col > .card { padding: var(--s-4) var(--s-5); margin-top: 0; }
  .dk111 > .dk-col > #dk-actions { margin-top: var(--s-3) !important; }
  .dk111 > .card.stack > * + *, .dk111 > .dk-col > .card.stack > * + * { margin-top: var(--s-2); }
}

/* v111_settings.css */
.clients-lead { margin: 0 0 var(--s-3); line-height: 1.45; }
.clients-period { display: inline; }
#client-table th, #client-table td { padding: 7px 9px; }
#client-table th { white-space: normal; line-height: 1.2; font-size: 13px; vertical-align: bottom; }
#client-table td:first-child { white-space: normal; min-width: 210px; }
#client-table th:nth-child(2), #client-table th:nth-child(3) { white-space: nowrap; }
#client-table td:first-child .small { overflow-wrap: anywhere; }
#client-table td:last-child { padding-right: 12px; }
#client-table td .badge { white-space: nowrap; }
#client-table .btn--sm { padding: 0 14px; white-space: nowrap; }
@media (min-width: 1024px) {
  #client-table thead th { position: sticky; top: 0; z-index: 1; }
}
#opening-form td .small { white-space: nowrap; }
@media (min-width: 1100px) and (min-height: 520px) {
  body:has(#opening-form) .main { height: 100vh; height: 100dvh; min-height: 0; }
  body:has(#opening-form) #main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 12px; }
  body:has(#opening-form) #main > :not(#opening-form) { flex: none; }
  body:has(#opening-form) #main > .page-head { margin-bottom: 6px; }
  body:has(#opening-form) #main > .page-head h1 { font-size: 24px; }
  body:has(#opening-form) #main > :is(.alert, [role=alert]) { margin: 6px 0; padding: 6px 14px; }
  .opening-explain { margin: 8px 0; }
  .opening-top { display: flex; gap: 12px; align-items: stretch; }
  .opening-top > * { margin: 0 !important; }
  .opening-top > #opening-diff { flex: 1 1 0; min-width: 0; padding: 8px 14px; gap: 12px; align-items: center; }
  .opening-top > #books-begin { flex: 1 1 58%; min-width: 0; padding: 8px 14px; gap: 6px 12px !important; align-items: flex-end !important; }
  #books-begin .field__label { margin-bottom: 2px; }
  #books-begin .input { min-height: 36px; height: 36px; }
  #books-begin .btn { min-height: 36px; }
  #books-begin .books-begin__hint { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
  #opening-diff .list__icon { width: 32px; height: 32px; }
  #opening-form { flex: 1 1 auto; min-height: 160px; display: flex; flex-direction: column; gap: 8px; margin-top: 10px !important; }
  #opening-form > fieldset { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  #opening-form .table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  #opening-form thead th { position: sticky; top: 0; z-index: 1; }
  #opening-form .table th, #opening-form .table td { padding: 4px 16px; }
  #opening-form td br { display: none; }
  #opening-form td .small { margin-left: 8px; }
  #opening-form td .input { min-height: 34px; height: 34px; padding-top: 0; padding-bottom: 0; }
  #opening-form td .input.num { width: 180px; }
  .opening-foot { flex: none; display: flex; align-items: center; gap: 16px; }
  .opening-foot p { margin: 0; }
}
@media (min-width: 900px) {
  body:has(.biz111, #account-tabs, #ai-settings, #txs-tabs, #design-form, #template-form, #dash-prefs, #escpos-form, #pn-form, #branches111, #staff-can-do) #main { padding-top: 8px; padding-bottom: var(--s-4); }
}
@media (min-width: 1100px) {

  body:has(.biz111, #account-tabs, #ai-settings, #txs-tabs, #design-form, #template-form, #dash-prefs, #escpos-form, #pn-form, #branches111, #staff-can-do) #main :is(.alert--error, .alert--ok):is([role=alert], [role=status]) { margin: 0 0 8px; padding: 6px 14px; font-size: var(--fs-sm); line-height: 1.4; }
  :is(.biz111, .me111, .txs111) > .alert { margin: 0 !important; }
  :is(.biz111, .s111) .page-head, body:has(.s111) #main > .page-head { margin: 0 0 10px; }
  :is(.biz111, .s111) .page-head h1, body:has(.s111) #main > .page-head h1 { font-size: 24px; }
}
#business-form:not(:has([data-panel]:not([hidden]))) { display: none; }
.biz111__addr { align-items: end; }
@media (min-width: 1100px) {
  .biz111 { gap: 10px; }
  .biz111 > .page-head { margin: 0; }
  .biz111 > .page-head .seg-tabs--page { margin: 0 0 0 auto; }
  .biz111 .profile-meter { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 6px 14px; padding: 6px 12px; margin: 0; }
  .biz111 .profile-meter > .row { flex: none; gap: 12px; }
  .biz111 .profile-meter > .progress { flex: 0 0 90px; }
  .biz111 .profile-meter__todo { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  #business-form .gstin-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; }
  #business-form .gstin-badge:empty { display: none; }
  .biz111 .profile-meter__todo .chip { flex: none; min-height: 28px; padding: 0 10px; font-size: 13px; }
  #business-form { padding: 14px 18px 0; gap: 10px; }
  #business-form .biz111__panel { gap: 12px; }
  #business-form .biz111__panel .section-title { margin: 0; padding: 0; border: 0; }

  #business-form [data-panel="contact"]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 28px; align-content: start; }
  #business-form [data-panel="contact"] > #phone { grid-column: 1; grid-row: 1; }
  #business-form [data-panel="contact"] > .grid-2:not(.biz111__addr) { grid-column: 1; grid-row: 2 / span 3; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; }
  #business-form [data-panel="contact"] > #address { grid-column: 2; grid-row: 1; }
  #business-form [data-panel="contact"] > :is(.biz111__addr, .grid-3, p) { grid-column: 2; }
  #business-form [data-panel="contact"] .biz111__addr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #business-form [data-panel="contact"] .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #business-form [data-panel="contact"] .field { margin: 0; }

  #profile-tabs.biz111 [data-panel="payments"]:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 12px; align-items: start; }
  .biz111 [data-panel] > .card { margin: 0; padding: 14px 18px; gap: 10px; }
  .biz111 #profile-banks .list { max-height: calc(100vh - 360px); overflow-y: auto; }
  #upi-form .upi-card { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; }
  #upi-form .upi-card__qr { width: 132px; min-height: 132px; padding: 8px; }
  #upi-form { position: relative; }
  #upi-form > .row:last-child { position: absolute; top: 10px; right: 16px; margin: 0; }
  #upi-form > .row:last-child .btn { min-height: 36px; }
  #upi-form .field { margin: 0; }
  .biz111 .upi-card__qr svg { max-width: 116px; height: auto; }
  .biz111 .upi-card__form { gap: 10px; }
  .biz111 #profile-places .list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: calc(100vh - 330px); overflow-y: auto; border: 0; }
  .biz111 #profile-places .list__item { padding: 6px 10px; border: 1px solid var(--c-hairline); border-radius: var(--r-md); }
  #business-form .biz111__itc { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; }
  #business-form .biz111__itc .field__hint { margin: 0; line-height: 1.35; }
  #business-form .grid-2 { gap: 12px 16px; }
  #business-form [data-panel="details"] > .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .biz111 > .card, .biz111 > form.card { margin: 0; }
  #business-form > .v86-savebar { margin-top: 4px; padding-top: 10px; padding-bottom: 10px; }
}
.me111__cols { display: grid; gap: var(--s-4); }
.me111 [data-panel] > .settings-2col, .me111 .settings-2col[data-panel] { margin: 0; }
@media (min-width: 1100px) {
  .me111 { gap: 10px; }
  .me111 > .page-head { margin: 0; }
  .me111 > .page-head .seg-tabs--page { margin: 0 0 0 auto; }
  .me111__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 28px; align-items: start; }
  .me111__col { gap: 12px; }
  .me111__col > .btn--primary { align-self: flex-start; }
  .me111__col > .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .me111__col > .grid-2 > [data-email-confirm] { grid-column: 1 / -1; }
  .me111__col .field { margin: 0; }
  #account-tabs #account-form { padding: 16px 20px; }
  .me111 .settings-2col .section-title:first-child { margin-top: 0; }
  .me111 .settings-2col .card { padding: 14px 18px; gap: 10px; }
  .me111 #backup-codes { gap: 8px; padding-top: 10px !important; }
}
@media (min-width: 1100px) {
  .settings-2col.ai111 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .ai111 #ai-settings .alert { margin: 0; padding: 8px 12px; font-size: var(--fs-sm); line-height: 1.4; }
  .ai111 #ai-settings ul.small { font-size: 13px; }
  .ai111 .section-title { margin: 0 2px; }
  .ai111 .stack-col { gap: 8px; }
  .ai111 .card { padding: 14px 18px; gap: 10px; }
  .ai111 #ai-settings > p:first-child { font-size: 14px; line-height: 1.45; }
  .ai111 #ai-settings ul { line-height: 1.45; }
  .ai111 #ai-settings ul li + li { margin-top: 3px; }
  .ai111__usage { max-height: 168px; overflow-y: auto; }
  .ai111 #digest-form .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .ai111 #digest-form .field { margin: 0; }
  .ai111__usage thead th { position: sticky; top: 0; z-index: 1; background: var(--c-surface); }
}
@media (max-width: 1099px) { .txs111 .settings-grid { grid-template-columns: minmax(0, 1fr); } }
.txs111 .settings-grid > * { min-width: 0; }
.txs111 .txs-numbers { min-width: 0; overflow-x: auto; }
.txs111 #txs-controls .segmented { max-width: 100%; overflow-x: auto; }
@media (min-width: 1100px) {
  .txs111 { position: relative; gap: 10px; }
  .txs111 > .page-head { margin: 0; padding-right: 120px; }
  .txs111 > .page-head .seg-tabs--page { margin: 0 0 0 8px; }
  .txs111 > .txs111__save { position: absolute; top: 0; right: 0; bottom: auto; left: auto; width: auto; margin: 0; padding: 0; background: none; }
  .txs111 [data-panel="entry"] { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .txs111 #txs-cols .txs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .txs111 .check .small { font-size: 13px; }
  .txs111 .txs111-clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .txs111 .seg-tabs--page .seg-tabs__btn { min-height: 34px; }
  .txs111 > .txs111__save .btn { min-height: 40px; }
  .txs111 .settings-grid { gap: 12px; }
  .txs111 .stack-col { gap: 12px; }
  .txs111 .card { padding: 12px 16px; }
  .txs111 .stack { gap: 8px; }
  .txs111 .txs-cols { gap: 6px 14px; }
  .txs111 .check .small { line-height: 1.35; }
  .txs111 #txs-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; align-items: start; }
  .txs111 #txs-controls > .card-title { grid-column: 1 / -1; }
  .txs111 #txs-controls .field { margin: 0; }
  .txs111 .txs-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .txs111 .txs-table { width: 100%; }
  .txs111 .txs-numbers .table :is(td, th) { padding: 3px 6px; }
  .txs111 .txs-table td:first-child { white-space: normal; line-height: 1.25; }
  .txs111 .txs-table .input { min-height: 28px; height: 28px; padding: 0 8px; }
  .txs111 .txs-table .input[name^="prefix"] { width: 4.4rem !important; }
  .txs111 .txs-table .input[name^="next"] { width: 4.8rem !important; }
  .txs111 .txs-table td.num { font-size: 12px; white-space: nowrap; }
}
.tpl111-head .tpl-tabs { margin: 0; }
.tpl111-oneline { display: block; }
@media (min-width: 1100px) {
  body:has(.tpl111-head, #template-form) #main > .page-head { margin: 0 0 10px; }
  body:has(.tpl111-head, #template-form) #main > .page-head h1 { font-size: 24px; }
  .tpl111-head .tpl-tabs { margin-left: auto; padding: 3px; }
  .tpl111-head .tpl-tab { min-height: 34px; }
  :is(#design-form, #template-form).tpl-studio--tabs { gap: 10px 16px; grid-template-rows: auto auto auto; align-content: start; }
  :is(#design-form, #template-form) .tpl-stage { position: static; height: calc(100vh - 146px); max-height: none; display: flex; flex-direction: column; padding: 10px 14px; overflow: hidden; }
  :is(#design-form, #template-form) .tpl-stage__bar { flex: none; flex-wrap: nowrap; margin-bottom: 8px; }
  :is(#design-form, #template-form) .tpl-as { flex: 1 1 auto; }
  :is(#design-form, #template-form) .tpl-as .input--sm { min-height: 34px; max-width: 220px; }
  :is(#design-form, #template-form) .tpl-stage .tpl-btn-sm { min-height: 34px; flex: none; }
  :is(#design-form, #template-form) .tpl-viewport { flex: 1 1 auto; min-height: 0; max-height: none; overflow: auto; }
  :is(#design-form, #template-form) .tpl-stage__note { flex: none; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :is(#design-form, #template-form) .card { padding: 12px 16px; }

  .tpl-studio--tabs:is(#design-form, #template-form) :is(.tpl-pick, .tpl-opts, .tpl-opts > fieldset) { position: relative; }
  :is(#design-form, #template-form) .tpl-opts { gap: 10px; }
  :is(#design-form, #template-form) .tpl-opts .form-actions { padding: 0; }
  :is(#design-form, #template-form) .tpl-opts .form-actions .btn--lg { min-height: 42px; }
  #design-form.tpl-studio--tabs :is(.tpl-pick, .tpl-opts > fieldset) { max-height: calc(100vh - 290px); }
  #design-form.tpl-studio--tabs:has(> .tpl-pick[hidden]) { grid-template-areas: "tabs stage" "opts stage"; grid-template-rows: auto auto; }
  #template-form .tpl-opts { max-height: calc(100vh - 322px); overflow-y: auto; scrollbar-width: thin; }
  #template-form .tpl-opts > fieldset { max-height: none; overflow: visible; }
  #template-form .tpl-opts > .form-actions { position: sticky; bottom: 0; z-index: 2; padding: 6px 0 0; background: var(--c-bg); }
  #template-form .tpl111-name { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-height: none; overflow: visible; }
  #template-form .tpl111-name .field { margin: 0; min-width: 0; }
  #template-form .tpl111-oneline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  :is(#design-form, #template-form) :is(.tpl-live, .tpl-as > span) { white-space: nowrap; }
  :is(#design-form, #template-form) .tpl-as .input--sm { max-width: 190px; }
  body:has(#main > .alert) :is(#design-form, #template-form) .tpl-stage { height: calc(100vh - 190px); }
  body:has(#main > .alert) #design-form.tpl-studio--tabs :is(.tpl-pick, .tpl-opts > fieldset) { max-height: calc(100vh - 334px); }
  body:has(#main > .alert) #template-form .tpl-opts { max-height: calc(100vh - 366px); }

  #design-form.tpl-studio--thermal { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); }
  #design-form.tpl-studio--thermal { position: relative; }
  #design-form.tpl-studio--thermal .tpl-opts { gap: 8px; }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset { display: flex; flex-flow: row wrap; align-items: center; gap: 8px 16px; }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset > .tpl-legend { flex: 1 1 100%; margin: 0; }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset:first-child > .tpl-legend { flex: 0 0 auto; min-width: 96px; width: auto; }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset:first-child > .field__label { min-width: 96px; }
  #design-form.tpl-studio--thermal .tpl-opts .tpl-legend { font-size: var(--fs-lg); }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset .segmented { flex: none; width: auto; }
  #design-form.tpl-studio--thermal .tpl-opts > .form-actions { position: absolute; top: 6px; right: 12px; bottom: auto; left: auto; width: auto; margin: 0; padding: 0; background: none; z-index: 2; }
  #design-form.tpl-studio--thermal .tpl-opts > .form-actions .btn--lg { min-height: 36px; padding: 0 18px; font-size: var(--fs-sm); }
  #design-form.tpl-studio--thermal .tpl-stage__bar { min-height: 36px; padding-right: 110px; }
  #design-form.tpl-studio--thermal .tpl-toggles { flex: 1 1 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  #design-form.tpl-studio--thermal .tpl-toggle { padding-top: 3px; padding-bottom: 3px; min-height: 0; }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset.card { padding: 10px 16px; row-gap: 6px; }
  #design-form.tpl-studio--thermal .segmented label { min-height: 34px; padding-top: 0; padding-bottom: 0; }
  #design-form.tpl-studio--thermal .tpl-opts .field .input { min-height: 36px; height: 36px; padding-top: 0; padding-bottom: 0; }
  #design-form.tpl-studio--thermal .tpl-toggle small { line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #design-form.tpl-studio--thermal .tpl-toggle > span { min-width: 0; }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset:first-child { row-gap: 4px; padding-top: 8px; padding-bottom: 8px; }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset > .field { flex: 1 1 200px; margin: 0; }
  #design-form.tpl-studio--thermal .tpl-stage { height: calc(100vh - 146px); }
  #design-form.tpl-studio--thermal .tpl-roll-view { flex: 1 1 auto; min-height: 0; overflow: auto; }
  #design-form.tpl-studio--thermal .tpl-opts > fieldset:nth-of-type(2) { position: relative; max-height: calc(100vh - 264px); overflow-y: auto; scrollbar-width: thin; }
  body:has(#main > .alert) #design-form.tpl-studio--thermal .tpl-opts > fieldset:nth-of-type(2) { max-height: calc(100vh - 310px); }
}
@media (min-width: 1100px) {
  .dash111-lead { margin: -4px 0 10px; }
  #dash-prefs { gap: 12px; }
  #dash-prefs .card { padding: 12px 16px; gap: 8px; }
  #dash-prefs .txs-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
  #dash-prefs .check { padding: 3px 0; line-height: 1.3; }
  #dash-prefs > .form-actions { align-self: end; margin: 0; padding: 0; justify-content: flex-end; }
}
@media (min-width: 1100px) {
  .settings-2col.escpos111 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .escpos111 #escpos-form { display: flex; flex-flow: row wrap; align-items: center; gap: 10px 22px; }
  .escpos111 #escpos-form > :is(p, .grid-2, .btn) { flex: 1 1 100%; }
  .escpos111 #escpos-form > .btn { flex: none; order: 4; margin-left: auto; }
  .escpos111 #escpos-form > p:last-of-type { order: 5; }
  .escpos111 #escpos-form > label.row { flex: none; margin: 0; }
  .escpos111 .section-title { margin: 0 2px; }
  .escpos111 .stack-col { gap: 8px; }
  .escpos111 .card { padding: 14px 18px; gap: 10px; }
  .escpos111 #escpos-form .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
}
@media (min-width: 1100px) {
  body:has(#pn-form) #main > p.muted { margin: -4px 0 10px; }
  body:has(#pn-form) #pn-not-app { margin: 0 0 10px; padding-top: 8px; padding-bottom: 8px; }
  #pn-form { gap: 12px; }
  #pn-form .card { padding: 12px 16px; gap: 8px; }
  #pn-form > .form-actions { margin: 0; padding: 0; }
}
@media (min-width: 1100px) {
  #branches111 .section-title { margin: 0 2px; }
  #branches111 .stack-col { gap: 10px; }
  #branches111 .card { padding: 12px 16px; gap: 10px; margin: 0; }
}
@media (min-width: 1100px) {
  .staff111 .card { padding: 14px 18px; gap: 10px; margin: 0; }
  .staff111 .stack-col { gap: 12px; }
  .staff111 #staff-edit-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: start; }
  .staff111 #staff-edit-form > :is(dl, .check, .btn, input[type=hidden]) { grid-column: 1 / -1; }
  .staff111 #staff-edit-form > .btn { justify-self: start; }
  .staff111 #staff-edit-form .field { margin: 0; }
  .staff111 #staff-can-do > div { max-height: 220px; overflow-y: auto; }
}
@media (min-width: 900px) {
  body:has(.set-groups--fit) #main, body:has(#role-form) #main, body:has(#rules-page) #main, body:has(.modules-form) #main,
  body:has(#ind-tabs) #main, body:has(#firms-page) #main { padding-bottom: var(--s-4); }
}
@media (min-width: 1100px) {
  body:has(.set-groups--fit) .page-head { margin-bottom: 4px; }
  body:has(.set-groups--fit) .set-org { margin: 0 0 10px; }
  .set-groups--fit { display: block; column-count: 3; column-gap: var(--s-5); }
  .set-groups--fit .set-group { break-inside: avoid; margin-bottom: 12px; }
  .set-groups--fit .set-group__title { margin: 0 0 4px var(--s-1); font-size: 11px; line-height: 1.4; }
  .set-groups--fit .set-row { min-height: 0; padding: 3px 10px; gap: 10px; }
  .set-groups--fit .set-row__icon { width: 26px; height: 26px; }
  .set-groups--fit .set-row__icon .icon { width: 17px; height: 17px; }
  .set-groups--fit .set-row__body { line-height: 1.2; }
  .set-groups--fit .set-row__title { font-size: 13px; }
  .set-groups--fit .set-row__sub { font-size: 12px; }

  :lang(hi) .set-groups--fit .set-row__sub { line-height: 16px; }
}
@media (min-width: 1100px) {
  .modules-form .module-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
  .modules-form .module-pick { padding: 7px 10px !important; line-height: 1.3; }
  .modules-form .module-pick .small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
  .modules-form .form-actions { padding: 6px 0 0; }
}
@media (min-width: 1100px) {
  body:has(#rules-page) .page-head { margin-bottom: 8px; }
  body:has(#rules-page) .page-head ~ p.small, body:has(#rules-page) .rules-who { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
  body:has(#rules-page) .rules-who { margin: 8px 0 0; }
  #rules-page { display: grid; gap: 6px; }
  #rules-page > form.card { display: grid; grid-template-columns: minmax(0, 1fr) 110px 170px 190px auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px;
    align-items: center; padding: 6px 14px; margin: 0; }
  #rules-page > form.card > * { margin: 0 !important; }
  #rules-page > form.card > .row:first-of-type, #rules-page > form.card > .grid-2 { display: contents; }
  #rules-page > form.card > .row:first-of-type > strong { grid-column: 1; grid-row: 1; }
  #rules-page > form.card > .row:first-of-type > .check { grid-column: 4; grid-row: 1; align-self: end; font-size: 13px; font-weight: 600; min-height: 0; }
  #rules-page > form.card > .rule-hint { grid-column: 1; grid-row: 2; align-self: start; font-size: 12px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #rules-page > form.card > .grid-2 > .field { grid-row: 1 / span 2; margin: 0; }
  #rules-page > form.card > .grid-2 > .field .field__label { font-size: 12px; margin-bottom: 2px; }
  #rules-page > form.card > .grid-2 > .field .input { min-height: 36px; height: 36px; padding-top: 0; padding-bottom: 0; }
  #rules-page > form.card > label.check { grid-column: 4; grid-row: 2; align-self: start; font-size: 12px; line-height: 1.3; min-height: 0; }
  #rules-page .check { gap: 8px; align-items: center; }
  #rules-page .check input { width: 18px; height: 18px; margin: 0; flex: none; }
  #rules-page > form.card > .row:last-child { grid-column: 5; grid-row: 1 / span 2; }
  #rules-page > form.card > .row:last-child .btn { min-height: 36px; }
}
@media (min-width: 1100px) {
  body:has(#firms-page) .page-head { margin-bottom: 8px; }
  body:has(#firms-page) .page-head ~ p.muted { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
  #firms-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; align-items: start; }
  #firms-page:not(:has(#firms-group, #firms-log)) { grid-template-columns: minmax(0, 1fr); }
  #firms-page > * { margin: 0 !important; padding: 12px 16px; }
  #firms-page > #firms-group, #firms-page > #firms-log { grid-column: 1; }
  #firms-page:has(#firms-group, #firms-log) > #firms-link { grid-column: 2; grid-row: 1 / span 2; }
  #firms-page .stack > * + * { margin-top: 8px; }
  #firms-page .firms-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; align-content: start;
    max-height: calc(100vh - 360px); min-height: 120px; overflow-y: auto; padding: 4px 6px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--c-hairline); }
  #firms-page .firms-pick > .row { margin: 0; min-height: 30px; gap: 8px; font-size: 13px; flex-wrap: nowrap; }
  #firms-page #firms-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
  #firms-page #firms-link > * { margin: 0; }
  #firms-page #firms-link > .section-title, #firms-page #firms-link > .firms-pick { grid-column: 1 / -1; }
  #firms-page #firms-link > p { font-size: 13px; line-height: 1.4; }
  #firms-page #firms-log .table-wrap { max-height: calc(100vh - 420px); min-height: 80px; overflow-y: auto; }
  #firms-page #firms-group .list { max-height: 160px; overflow-y: auto; }
}
@media (min-width: 1100px) {
  body:has(#ind-tabs) .page-head { margin-bottom: 8px; }
  body:has(#ind-tabs) #ind-current { padding: 10px 16px; margin-bottom: 10px; gap: 14px; align-items: center; }
  body:has(#ind-tabs) #ind-current .ind-hero__icon { width: 40px; height: 40px; }
  body:has(#ind-tabs) #ind-current .eyebrow { margin: 0; }
  body:has(#ind-tabs) #ind-current h2 { font-size: var(--fs-lg); }
  body:has(#ind-tabs) #ind-current p.small { margin-top: 2px !important; }
  #ind-tabs .seg-tabs { margin-bottom: 10px; }
  #ind-tabs .seg-tabs__btn { display: inline-flex; align-items: center; gap: 6px; }
  #ind-tabs [data-panel] > .card, #ind-tabs .ind-features > .card { padding: 14px 18px; margin: 0; }
  #ind-tabs .ind-features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
  #ind-tabs .ind-features > #ind-pack { grid-column: 1 / -1; }
  #ind-tabs .card h3 { margin-bottom: 6px; }
  #ind-tabs .stack > * + * { margin-top: 10px; }

  #ind-tabs #audience-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 24px; align-items: start; }
  #ind-tabs #audience-form > * { margin: 0; }
  #ind-tabs #audience-form > div:last-child { grid-column: 1 / -1; }
  #ind-tabs #audience-form .check { min-height: 0; padding: 3px 0; }

  #ind-tabs #ind-change .choices { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  #ind-tabs #ind-change .choice label { flex-direction: row; align-items: center; padding: 8px 10px; min-height: 0; font-size: 13px; line-height: 1.25; }
  #ind-tabs #ind-change:has(#ind-preview-form) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 24px; align-items: start; }
  #ind-tabs #ind-change:has(#ind-preview-form) > * { margin: 0; grid-column: 1; }
  #ind-tabs #ind-change:has(#ind-preview-form) > #ind-preview-form { grid-column: 2; grid-row: 1 / span 4; }
  #ind-tabs #ind-pick > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-sm); color: var(--c-accent); }
  #ind-tabs #ind-pick[open] .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
  #ind-tabs #ind-preview-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 16px; }
  #ind-tabs #ind-preview-form > :not(.check) { grid-column: 1 / -1; }
  #ind-tabs #ind-preview-form .check > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  #ind-tabs #ind-preview-form > p { font-size: 13px; }
  #ind-tabs #ind-preview-form > .btn { justify-self: start; }
  #ind-tabs #ind-preview-form { margin: 0; }
  #ind-tabs #ind-preview-form > * { margin: 0; }
  #ind-tabs #ind-preview-form .check { min-height: 0; padding: 2px 0; font-size: 13px; }
}
@media (min-width: 1100px) {
  body:has(#role-form) .page-head { margin-bottom: 8px; }
  #role-form.stack > * + * { margin-top: 8px; }
  #role-form .role-top { padding: 8px 16px 10px; }
  #role-form .role-top > * + * { margin-top: 8px; }
  #role-form .role-top > .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
  #role-form .role-top .field { margin: 0; }
  #role-form .role-top .field__hint { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
  #role-form .role-top > .field { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
  #role-form .role-top > .field > .field__label { margin: 0; }
  #role-form .role-top > .field > .field__hint { margin: 0; }
  #role-form .role-top > .field > .row { gap: 4px 14px !important; }
  #role-form .check { min-height: 0; gap: 8px; align-items: center; }
  #role-form .check input { width: 16px; height: 16px; margin: 0; flex: none; }
  #role-form .role-perms { padding: 8px 16px 10px; }
  #role-form .role-perms > * + * { margin-top: 10px; }
  #role-form .role-perms__head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
  #role-form .role-perms__title { min-width: 0; flex: 1 1 320px; }
  #role-form .role-perms__title .section-title { margin: 0 0 2px; }
  #role-form .role-perms__head .seg-tabs { margin: 0; flex: none; }
  #role-form .role-perms__panel { column-count: 4; column-gap: 24px; }
  #role-form .role-perms__panel > fieldset { break-inside: avoid; margin: 0 0 10px !important; }
  #role-form .role-perms__panel > fieldset > * + * { margin-top: 2px; }
  #role-form .role-perms__panel legend { margin: 0 0 3px; font-size: 13px; }
  #role-form .role-perms__panel legend .check { font-size: 12px; gap: 5px; }
  #role-form .role-perms__panel fieldset > .row { flex-direction: column; align-items: flex-start; gap: 0 !important; }
  #role-form .role-perms__panel fieldset > .row .check { padding: 1px 0; font-size: 13px; line-height: 1.3; }
}
@media (min-width: 1100px) {
  body:has(#role-form) #main .alert, body:has(#rules-page) #main .alert, body:has(#firms-page) #main .alert, body:has(#ind-tabs) #main .alert,
  body:has(.modules-form) #main .alert { padding: 6px 14px; margin-bottom: 8px; font-size: var(--fs-sm); line-height: 1.4; }
  #role-form .role-top .field:has(.field__error) > .field__hint { display: none; }
  #role-form .role-top .field__error { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:has(#rules-page) .page-head + .alert + p { margin-bottom: 6px; }
}
@media (min-width: 900px) {
  body:has(#wab-form) #main, body:has(#store-form) #main, body:has(#dev-tabs) #main, body:has(#wf-form) #main, body:has(#support-new) #main,
  body:has(#team-list) #main, body:has(#att-sheet) #main, body:has(#att-me) #main, body:has(#claims-summary) #main, body:has(#approval-card) #main { padding-bottom: var(--s-4); }
  body:has(#wab-form) .page-head, body:has(#store-form) .page-head, body:has(#dev-tabs) .page-head, body:has(#wf-form) .page-head, body:has(#support-new) .page-head,
  body:has(#att-sheet) .page-head, body:has(#claims-summary) .page-head, body:has(#approval-card) .page-head { margin-bottom: var(--s-3); }
}
#wab-form > * + *, #store-form > * + *, #support-new > * + *, #key-form > * + *, #hook-form > * + *, #reimburse > * + *,
#approval-card > * + *, #approval-decide > * + * { margin-top: 10px; }
#wf-form > .wf-cols, #wab-form > p:first-of-type, #support-new > strong, #key-form > .grid-2:first-of-type, #approval-decide > .field:first-of-type { margin-top: 0; }
@media (min-width: 900px) {
  body:has(#wab-form, #store-form, #dev-tabs, #wf-form, #support-new, #team-new-form, .team-person, #claims-summary, #approval-card) #main > .alert { padding: 8px 14px; margin: 0 0 10px; }
}
.v111c-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.v111c-col { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.v111c-col > * { margin-top: 0; margin-bottom: 0; }
@media (min-width: 1100px) { .v111c-two { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
#wab-form { padding: var(--s-4) var(--s-5); gap: 10px; }
#wab-form .field { margin-bottom: 0; }
#wab-form .field .small, #wab-form > p { line-height: 1.35; }
#wab-form .field .small { display: block; margin-top: 3px; }
@media (min-width: 1100px) { .wab-two { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.wab-last { align-items: flex-end; gap: var(--s-3); }
.wab-last .field { flex: 1; min-width: 0; }
.wab-side .advance-note { margin: 0; }
.wab-side .section-title { margin: var(--s-2) 0 0; }
#store-form { margin-top: 0 !important; padding: var(--s-4) var(--s-5); gap: 10px; }
#store-form .field { margin-bottom: 0; }
.store-lead { margin: 0; }
#store-list { margin-top: var(--s-4); }
@media (min-width: 1100px) {
  #store-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-4); row-gap: 10px; align-items: start; }
  #store-form > .grid-2:not([hidden]) { display: contents; }
  #store-form > * { margin: 0; }
  #store-form > .store-lead { grid-column: span 2; align-self: center; }
  #store-form > .row { grid-column: 1 / -1; }
  #store-form > [data-values="shopify"], #store-form > .check { grid-column: span 2; }
  #store-form > .check { align-self: center; }
  #store-form > .grid-2 > .field { margin: 0; }
}
#dev-tabs .seg-tabs__btn { display: inline-flex; align-items: center; gap: 6px; }
.dev-bar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.dev-once { flex: 1 1 420px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 6px 12px !important; margin: 0; }
.dev-once > p { grid-column: 1 / -1; }
.dev-once .input { min-height: 34px; }
.dev-lead { margin: 0; }
.dev-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.dev-side { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.dev-panel .card { margin: 0; }
.dev-panel .field { margin-bottom: 0; }
#key-form fieldset.stack > * + *, #hook-form fieldset.stack > * + * { margin-top: 4px; }
#key-form .check, #hook-form .check { padding: 2px 0; min-height: 0; }
#hook-form .grid-2 { gap: 0 14px; }
#dev-tabs { gap: 8px; }
#key-form, #hook-form { padding: 12px 18px; }
#hook-form .check { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; row-gap: 0; align-items: start; font-size: 13px; line-height: 1.3; }
#hook-form .check > input { grid-row: span 2; flex: none; margin-top: 2px; }
#hook-form .check > code, #hook-form .check > span { grid-column: 2; }
#hook-form .check > code { padding: 0 4px; line-height: 1.35; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-self: start; max-width: 100%; }
.dev-bar .dev-lead { flex: 1 1 360px; margin: 0; font-size: 13px; line-height: 1.35; }
@media (min-width: 1100px) {
  .dev-panel--keys { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .dev-panel--keys > .dev-side { grid-column: 2; grid-row: 1; }
  .dev-panel--keys > #key-form { grid-column: 1; grid-row: 1; }
  .dev-panel--hooks { display: flex; flex-direction: column; align-items: stretch; }
  .dev-panel--hooks > .dev-side { display: contents; }
  .dev-panel--hooks > #hook-form { order: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: var(--s-3); row-gap: 8px; align-items: end; }
  .dev-panel--hooks #hook-list { order: 2; }
  #hook-form > * { margin: 0; }
  #hook-form > fieldset { grid-column: 1 / -1; grid-row: 2; }
  #hook-form > details { grid-column: 3; grid-row: 1; align-self: center; max-width: 240px; }
  #hook-form > details[open] { grid-column: 1 / -1; grid-row: 3; max-width: none; }
  #hook-form .input { min-height: 38px; height: 38px; }
  #hook-form > .row { grid-column: 2; grid-row: 1; padding-bottom: 0; }
  #hook-form .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #hook-form:has(.field-error) > .row { align-self: start; margin-top: 24px; }
}
#support-new { padding: var(--s-4) var(--s-5); gap: 10px; }
#support-new .field { margin-bottom: 0; }
.support-chips { margin: 0 !important; }
.support-send-row { align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.support-send-row p { flex: 1; min-width: 200px; }
.v111c-col .section-title { margin: var(--s-2) 0 0; }
#wf-form { padding: 12px var(--s-5); }
#wf-form .field { margin-bottom: 0; }
.wf-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3) var(--s-5); align-items: start; }
.wf-left { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wf-left .wf-grid { gap: 8px 10px; }
@media (min-width: 1100px) {
  .wf-cols { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .wf-left .wf-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  #wf-form .wf-action { padding: 2px 0; }
  #wf-form .wf-action > .check { min-height: 30px; }
  #wf-form .wf-left .input { min-height: 36px; height: 36px; }
  #wf-form .wf-left .field__label { margin-bottom: 3px; }
  #wf-form .wf-action__body { margin-top: 2px; }
  #wf-form .wf-action__body.stack > * + * { margin-top: 6px; }
  #wf-form .wf-action__body .input { min-height: 34px; height: 34px; }
  #wf-form .wf-action__body textarea.input { min-height: 0; height: 52px; }
  #wf-form .wf-action__body .small { line-height: 1.3; }
  #wf-form .wf-action__body .row { gap: 4px 12px; }
}
.team-index { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.team-main, .team-side { min-width: 0; }
.team-side { display: flex; flex-direction: column; gap: var(--s-3); }
.team-side > .team-more, .team-side > details { margin: 0 !important; }
@media (min-width: 1100px) {
  .team-index { grid-template-columns: minmax(0, 1fr) minmax(0, 330px); }
  body:has(#team-list) .page-head, body:has(#team-empty) .page-head { margin-bottom: var(--s-2); }
  .team-lead { margin-bottom: var(--s-3); max-width: none; }
  .team-tabs { margin-bottom: var(--s-3); }
  .team-tabs .tab { min-height: 36px; }
  .team-row { padding-top: 7px; padding-bottom: 7px; min-height: 0; }
  .team-row .avatar--lg { width: 34px; height: 34px; font-size: 13px; }
  .team-side .set-row { padding-top: 9px; padding-bottom: 9px; }
  .team-side details.card { padding: 10px 14px; }
  .team-side details.card > summary { min-height: 32px; }
  .team-side .role-areas[open] .table-wrap { max-height: 50vh; overflow: auto; }
}
@media (min-width: 900px) {
  #att-me { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 10px 16px; }
  #att-me > * { margin: 0; }
  #att-me > .row { gap: 12px; }
  #att-me > p { flex: 1 1 260px; }
  #att-sheet { margin-top: var(--s-3) !important; margin-bottom: 0; }
  #att-sheet > .row { gap: var(--s-3); }
  #att-table th.hide-mobile, #att-table td.hide-mobile { display: table-cell; }
}
.claims-side > #reimburse, .claims-side > h2 { margin-top: 0 !important; }
@media (min-width: 900px) { #reimburse { margin-bottom: 0; } #claims-summary .hide-mobile, #reimb-list .hide-mobile { display: table-cell; } }
body:has(#claims-summary) .page-head + p.muted { margin-bottom: var(--s-3); }
#reimburse { padding: var(--s-4) var(--s-5); gap: 10px; }
#reimburse .field { margin-bottom: 0; }
.approval-side > .notes { margin-top: 0 !important; }
#approval-card, #approval-decide { padding: var(--s-4) var(--s-5); }
#approval-card .section-title { margin: var(--s-2) 0 0; }
#approval-decide .field { margin-bottom: 0; }
@media (min-width: 1100px) { .approval-side #note-feed { max-height: 260px; overflow-y: auto; } }
.wf-foot { align-items: center; gap: var(--s-3); }
.wf-foot .wf-ph { flex: 1; min-width: 0; }
.wf-foot .btn { flex: none; }
@media (min-width: 1100px) {
  #team-new-form .team-actions { margin-top: var(--s-3); padding-top: 0; padding-bottom: 0; }
  #team-new-form .team-card { gap: 10px; padding-top: 12px; padding-bottom: 12px; }

  #team-new-form .team-two > .team-card:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; align-content: start; }
  #team-new-form .team-two > .team-card:first-child > .card-title, #team-new-form .team-two > .team-card:first-child > .team-pair { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  body:has(.team-person) #login-details { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 6px 14px; margin-bottom: 10px; }
  body:has(.team-person) #login-details > * { margin: 0; }
  body:has(.team-person) #login-details .card-title { font-size: 14px; }
  body:has(.team-person) #login-details .login-card__kv { display: flex; gap: 4px 8px; align-items: baseline; }
  body:has(.team-person) #login-details .login-card__kv dd { text-align: left; margin-right: 10px; }
  body:has(.team-person) #login-details > p { flex: 1 1 200px; line-height: 1.3; }
  body:has(.team-person) #link-sent { margin: 0 0 var(--s-3); padding-top: 8px; padding-bottom: 8px; }
}
@media (min-width: 1100px) {
  .team-person #person-details-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; align-items: start; }
  .team-person #person-details-form > .grid-2 { display: contents; }
  .team-person #person-details-form > div:last-child { align-self: end; justify-self: end; }
  .team-person #person-details-form:not(:has(#person-branch)) > div:last-child { grid-column: 1 / -1; }
  .team-person #person-details-form .field__hint, .team-person #person-remove-box .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .team-person #person-remove-box { padding: 10px 16px; }
  .team-person #person-remove-box .row { flex-wrap: nowrap; }
  .team-person .team-col { gap: var(--s-3); }
  .team-person #person-access { gap: 8px; }
  .team-person #person-access { padding-top: 12px; padding-bottom: 12px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; }
  .team-person #person-access > * { grid-column: 1 / -1; margin: 0; }
  .team-person #person-access > .card-title { grid-column: 1; }
  .team-person #person-access > .team-meta { grid-column: 2; justify-self: end; align-self: center; min-width: 0; text-align: right; }
  .team-person #person-access .switch__text { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .team-person #person-access .switch__text .small { font-size: 12px; }
  .team-person #person-link-form .small { flex: 1 1 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .team-person #person-link-form { flex-wrap: nowrap; }
  .team-person .team-signin-box { padding-top: 8px; }
}

