/* node_modules/@fontsource-variable/inter/index.css */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-cyrillic-ext-wght-normal-IYF56FF6.digested.woff2") format("woff2-variations");
  unicode-range:
    U+0460-052F,
    U+1C80-1C8A,
    U+20B4,
    U+2DE0-2DFF,
    U+A640-A69F,
    U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-cyrillic-wght-normal-JEOLYBOO.digested.woff2") format("woff2-variations");
  unicode-range:
    U+0301,
    U+0400-045F,
    U+0490-0491,
    U+04B0-04B1,
    U+2116;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-greek-ext-wght-normal-EOVOK2B5.digested.woff2") format("woff2-variations");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-greek-wght-normal-IRE366VL.digested.woff2") format("woff2-variations");
  unicode-range:
    U+0370-0377,
    U+037A-037F,
    U+0384-038A,
    U+038C,
    U+038E-03A1,
    U+03A3-03FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-vietnamese-wght-normal-CE5GGD3W.digested.woff2") format("woff2-variations");
  unicode-range:
    U+0102-0103,
    U+0110-0111,
    U+0128-0129,
    U+0168-0169,
    U+01A0-01A1,
    U+01AF-01B0,
    U+0300-0301,
    U+0303-0304,
    U+0308-0309,
    U+0323,
    U+0329,
    U+1EA0-1EF9,
    U+20AB;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-latin-ext-wght-normal-HA22NDSG.digested.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA,
    U+02BD-02C5,
    U+02C7-02CC,
    U+02CE-02D7,
    U+02DD-02FF,
    U+0304,
    U+0308,
    U+0329,
    U+1D00-1DBF,
    U+1E00-1E9F,
    U+1EF2-1EFF,
    U+2020,
    U+20A0-20AB,
    U+20AD-20C0,
    U+2113,
    U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/inter-latin-wght-normal-NRMW37G5.digested.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF,
    U+0131,
    U+0152-0153,
    U+02BB-02BC,
    U+02C6,
    U+02DA,
    U+02DC,
    U+0304,
    U+0308,
    U+0329,
    U+2000-206F,
    U+20AC,
    U+2122,
    U+2191,
    U+2193,
    U+2212,
    U+2215,
    U+FEFF,
    U+FFFD;
}

/* app/javascript/styles/app.css */
:root {
  --bg: #FAFBFC;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-soft: #F3F4F6;
  --text: #111827;
  --text-2: #374151;
  --text-3: #4B5563;
  --muted: #6B7280;
  --accent: #C2410C;
  --accent-dark: #9A3412;
  --chip-bg: #FFF1E6;
  --ok: #047857;
  --bad: #B91C1C;
  --bad-bg: #FEF2F2;
  --font:
    "Inter Variable",
    Inter,
    -apple-system,
    system-ui,
    "Segoe UI",
    Roboto,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.shell {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}
.shell-main {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.shell-content {
  flex: 1 1 auto;
  padding: 24px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar {
  flex: 1 1 214px;
  max-width: 214px;
  min-width: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 18px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
}
.nav-link {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
}
.nav-link:hover {
  background: var(--border-soft);
  color: var(--text);
  text-decoration: none;
}
.nav-link.active {
  background: var(--chip-bg);
  color: var(--accent-dark);
  font-weight: 700;
}
.row-linked {
  background: var(--chip-bg);
  box-shadow: inset 3px 0 0 var(--accent);
}
.queue-link {
  font-weight: 600;
}
.nav-link-soon {
  color: var(--muted);
  cursor: default;
}
.nav-link-soon:hover {
  background: none;
  color: var(--muted);
}
.nav-soon {
  font-size: 11px;
  font-weight: 500;
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.search {
  flex: 0 1 380px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
}
.search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.search:focus-within {
  border-color: var(--accent);
}
.search-wrap {
  position: relative;
  flex: 0 1 380px;
  min-width: 0;
  display: flex;
}
.search-wrap .search {
  flex: 1 1 auto;
}
.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 44px;
  min-width: min(420px, calc(100vw - 32px));
  max-height: 70vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  z-index: 20;
}
.search-group h3 {
  margin: 6px 8px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.search-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-result {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
}
.search-result span {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
a.search-result:hover,
a.search-result:focus {
  background: var(--border-soft);
  text-decoration: none;
  outline: none;
}
.search-result-plain {
  cursor: default;
}
.search-note {
  margin: 6px 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.search-error {
  color: var(--bad);
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-menu {
  position: relative;
}
.avatar {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--border-soft);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.menu {
  position: absolute;
  right: 0;
  top: 40px;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  z-index: 10;
}
.menu-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--muted);
}
.menu-user strong {
  font-size: 13px;
  color: var(--text);
}
.menu button:hover:not(:disabled) {
  background: var(--border-soft);
  cursor: pointer;
}
.menu button.selected {
  background: var(--chip-bg);
  color: var(--accent-dark);
  font-weight: 700;
}
.menu-hint {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.dropdown {
  position: relative;
}
.pill {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.pill:hover:not(:disabled) {
  background: var(--border-soft);
}
.pill:disabled {
  opacity: 0.6;
  cursor: default;
}
.pill-static {
  cursor: default;
}
.switch-error {
  font-size: 12px;
  color: var(--bad);
}
.page-loading {
  padding: 40px;
  font-size: 14px;
  color: var(--muted);
}
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ECFDF5;
  color: var(--ok);
  font-size: 13px;
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: 0;
}
.cell-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.row-actions .btn {
  height: 30px;
  white-space: nowrap;
}
.table .chip + .chip {
  margin-left: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.form-grid .signin-error,
.form-grid .form-actions,
.form-grid .outlet-picks,
.form-grid .form-note {
  grid-column: 1 / -1;
}
.field select,
.input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--text);
}
.input {
  height: 36px;
  width: 100%;
  min-width: 0;
}
.input-code {
  max-width: 90px;
}
.input-sku {
  min-width: 220px;
}
.outlet-picks {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}
.outlet-picks legend {
  float: left;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
  padding: 0;
}
.outlet-picks > .muted {
  flex-basis: 100%;
  font-size: 12px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
}
.form-actions {
  display: flex;
  gap: 8px;
}
.inline-form {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  flex-wrap: wrap;
  align-items: center;
}
.inline-form .input {
  flex: 1 1 200px;
}
.inline-form .input-code {
  flex: 0 0 90px;
}
.signin {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}
.signin-panel {
  flex: 1 1 420px;
  max-width: 520px;
  background: var(--accent);
  color: #FFFFFF;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.signin-panel .brand {
  padding: 0;
}
.signin-panel .brand-sub {
  color: #FFE4D2;
}
.brand-mark-light {
  background: #FFFFFF;
  color: var(--accent);
}
.signin-pitch h2 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.signin-pitch ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: #FFF1E6;
}
.signin-foot {
  margin: 0;
  font-size: 12.5px;
  color: #FFE4D2;
}
.signin-main {
  flex: 999 1 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.signin-form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.signin-form h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.signin-lead {
  margin: -8px 0 4px;
  font-size: 13.5px;
  color: var(--text-3);
}
.signin-notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #ECFDF5;
  color: var(--ok);
  font-size: 13px;
}
.signin-link {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.signin-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 13px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.field input {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  outline: none;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--chip-bg);
}
.btn-block {
  width: 100%;
  height: 42px;
  font-size: 14px;
}
.menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  padding: 8px;
  border-radius: 8px;
  color: var(--text-2);
}
.menu button:disabled {
  color: var(--muted);
  cursor: not-allowed;
}
.page-head h1 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.page-head p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--text-3);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.card-head h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
}
.card-head .btn {
  margin-left: auto;
}
.card-body {
  padding: 15px 18px;
}
.chip {
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--chip-bg);
  color: var(--accent-dark);
}
.chip-ok {
  background: #ECFDF5;
  color: var(--ok);
}
.chip-bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.btn {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-dark);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--border-soft);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.health-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.health-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13.5px;
}
.health-row dt {
  font-weight: 600;
}
.health-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.dot-ok {
  background: var(--ok);
}
.dot-bad {
  background: var(--bad);
}
.muted {
  color: var(--muted);
}
.meta {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
}
.error {
  margin: 0;
  color: var(--bad);
  font-size: 13.5px;
}
@media (max-width: 860px) {
  .signin {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .signin-panel {
    flex: 0 0 auto;
    max-width: none;
  }
  .signin-main {
    flex: 1 1 auto;
    align-items: flex-start;
  }
}
@media (max-width: 640px) {
  .shell {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .shell-main {
    flex: 1 1 auto;
  }
  .sidebar {
    max-width: none;
    flex: 0 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-link {
    padding: 7px 10px;
  }
  .topbar {
    padding: 0 16px;
  }
  .shell-content {
    padding: 20px 16px 32px;
  }
  .brand {
    flex-basis: 100%;
    padding-bottom: 8px;
  }
  .topbar {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  .topbar-right {
    flex-wrap: wrap;
  }
  .signin {
    flex-direction: column;
    flex-wrap: nowrap;
  }
  .signin-panel {
    flex: 0 0 auto;
    max-width: none;
    padding: 20px 16px;
    gap: 16px;
  }
  .signin-main {
    flex: 1 1 auto;
    align-items: flex-start;
    padding: 28px 16px;
  }
  .signin-pitch ul,
  .signin-foot {
    display: none;
  }
  .signin-pitch h2 {
    font-size: 20px;
    margin: 0;
  }
}
.filter-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.card-head .filter-row:first-of-type {
  margin-left: auto;
}
.filter-chip {
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
}
.filter-chip.selected {
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--chip-bg);
  border-color: #FDBA74;
}
.queue {
  list-style: none;
  margin: 0;
  padding: 0;
}
.queue-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.queue-row:last-child {
  border-bottom: 0;
}
.queue-empty {
  padding: 15px 18px;
  font-size: 13.5px;
}
.queue-foot {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.queue-rank {
  flex: 0 0 auto;
  width: 22px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 2px;
}
.queue-main {
  flex: 1 1 260px;
  min-width: 0;
}
.queue-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
}
.tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--chip-bg);
  color: var(--accent-dark);
}
.tag-bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.tag-warn {
  background: #FFFBEB;
  color: #B45309;
}
.tag-done {
  background: var(--border-soft);
  color: var(--muted);
}
.queue-title {
  display: block;
  margin-top: 5px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.queue-title:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.queue-sub {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 3px;
}
.queue-due {
  flex: 0 0 auto;
  text-align: right;
  min-width: 106px;
}
.queue-due-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.queue-due-value {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
  color: var(--text-2);
}
.queue-due-value.is-bad {
  color: var(--bad);
}
.queue-detail {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg);
  font-size: 13px;
}
.queue-detail h3 {
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.queue-facts {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.queue-facts dt {
  font-weight: 600;
}
.queue-facts dd {
  margin: 0;
  color: var(--text-3);
}
.audit-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
@media (max-width: 640px) {
  .card-head .filter-row:first-of-type {
    margin-left: 0;
  }
  .queue-due {
    text-align: left;
    min-width: 0;
  }
}
.mono {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 12.5px;
}
.small {
  font-size: 12.5px;
  margin: 0 0 8px;
}
.count {
  font-weight: 500;
  font-size: 13px;
}
.input-search {
  flex: 1 1 220px;
  max-width: 320px;
}
.input-select {
  flex: 0 1 180px;
  width: auto;
}
.input-mid {
  flex: 0 1 140px;
}
.card-head .input-search {
  margin-left: auto;
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.link-button:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.row-selected td {
  background: #FFF7F0;
}
.table-note {
  padding: 0 18px 14px;
}
.detail-meta {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.detail-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.detail-section h3 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-form {
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg);
}
.unit-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}
.unit-list .chip {
  margin-left: 6px;
}
.sold-by {
  margin: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
}
.inline-form.compact {
  padding: 10px 0 0;
}
.table-compact td,
.table-compact th {
  padding: 8px 12px;
}
@media (max-width: 640px) {
  .card-head .input-search {
    margin-left: 0;
    max-width: none;
  }
}
.table .link-button.mono,
.nowrap {
  white-space: nowrap;
}
.address-fields {
  grid-column: 1 / -1;
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.address-fields legend {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}
.field-error {
  font-weight: 500;
  color: var(--bad, #B91C1C);
}
.field-ok {
  font-weight: 500;
  color: var(--ok);
}
.filter-gap {
  width: 10px;
}
.finder-msg {
  margin: 0 18px 14px;
}
.customer-card {
  margin: 0 18px 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.customer-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.customer-card-meta {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}
.gst-panel {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 400;
}
.gst-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gst-panel-head .btn {
  margin-left: auto;
}
.gst-panel p {
  margin: 0;
}
.gst-manual {
  padding: 0;
}
.chip-small {
  display: block;
  width: fit-content;
  margin-top: 4px;
  font-size: 11px;
}
.form-note {
  grid-column: 1 / -1;
  margin: -6px 0 0;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
}
.stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 5px;
}
.stat-sub {
  font-size: 12px;
  margin-top: 3px;
  color: var(--text-3);
}
.stat-warn {
  color: #B45309;
}
.stat-bad {
  color: var(--bad);
}
.chip-warn {
  background: #FFFBEB;
  color: #B45309;
}
.table th.num,
.table td.num {
  text-align: right;
  white-space: nowrap;
}
.qty-in {
  color: var(--ok);
  font-weight: 600;
}
.qty-out {
  color: var(--bad);
  font-weight: 600;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-link:hover {
  text-decoration: none;
}
.ledger-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-left: auto;
}
.field-inline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  gap: 4px;
}
.field-inline .input {
  width: auto;
  min-width: 130px;
  text-transform: none;
  letter-spacing: 0;
}
@media (max-width: 640px) {
  .ledger-filters {
    margin-left: 0;
  }
}
.table-stock td:first-child,
.table-stock td:nth-child(2) {
  min-width: 170px;
}
.table-wrap-contained {
  position: relative;
}
.scan-card {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 15px 18px;
  flex-wrap: wrap;
}
.scan-field {
  flex: 1 1 260px;
}
.scan-field input {
  font-size: 16px;
}
.decide-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.decide-row .input {
  min-width: 170px;
  flex: 1 1 170px;
}
.price-diff {
  display: block;
  font-size: 12.5px;
  margin-bottom: 2px;
}
.table-entry .input {
  min-width: 84px;
}
.table-entry input[type=date] {
  min-width: 132px;
}
.po-decide {
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--border-soft);
}
.table-compact select.input-mid {
  min-width: 130px;
}
.counter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.counter-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.scan-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.scan-box form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scan-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border: 2px solid #EA580C;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
.scan-input input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}
.scan-box .small {
  margin: 0;
}
.scan-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ECFDF5;
  color: #065F46;
  font-size: 12.5px;
}
.scan-msg .link-button {
  color: #065F46;
  text-decoration: underline;
}
.scan-msg-bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.scan-msg-pending {
  background: #F3F4F6;
  color: #374151;
}
.batch-picker {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.14);
  padding: 8px;
}
.batch-picker-head {
  padding: 6px 8px 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.batch-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  margin-top: 4px;
  border: 1px solid transparent;
  cursor: pointer;
}
.batch-option:hover {
  background: var(--bg);
}
.batch-option.selected {
  background: #FFF7ED;
  border-color: #FDBA74;
}
.batch-option-main {
  flex: 1 1 auto;
  min-width: 0;
}
.batch-option-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
}
.batch-option-sub {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
}
.batch-option-key {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
}
.batch-picker-foot {
  padding: 8px 8px 2px;
  font-size: 11px;
  color: var(--muted);
}
.batch-reason {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 8px;
  border-top: 1px solid var(--border-soft);
  margin-top: 6px;
}
.batch-reason .field {
  flex: 1 1 220px;
}
.customer-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.customer-panel .card {
  border-radius: 14px;
}
.customer-panel .card-head {
  display: none;
}
.customer-panel .inline-form {
  padding: 10px 12px;
}
.customer-panel .finder-msg {
  margin: 0 12px 10px;
}
.customer-card-counter {
  margin: 0;
}
.customer-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.credit-line {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}
.credit-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--border-soft);
  margin-top: 6px;
}
.credit-fill {
  height: 6px;
  border-radius: 999px;
  background: var(--ok);
}
.credit-fill-bad {
  background: var(--bad);
}
.bill-options {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.radio-row {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.bill-table {
  min-width: 860px;
  font-size: 13px;
}
.bill-table td {
  vertical-align: middle;
}
.input-qty {
  width: 72px;
}
.input-rate {
  width: 96px;
  text-align: right;
}
.icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font: inherit;
  font-size: 15px;
  line-height: 1;
  color: var(--text-2);
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) {
  background: var(--bad-bg);
  color: var(--bad);
}
.icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
@keyframes line-flash {
  from {
    background: #BBF7D0;
  }
  to {
    background: #F0FDF4;
  }
}
.line-flash td {
  animation: line-flash 0.8s ease-out;
  background: #F0FDF4;
}
.counter-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.counter-pay {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 14px;
}
.pay-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pay-tender {
  flex: 0 1 150px;
  width: auto;
}
.pay-amount {
  flex: 0 1 120px;
}
.pay-ref {
  flex: 1 1 140px;
}
.pay-actions {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.pay-received .input {
  min-width: 110px;
}
.pay-change {
  font-size: 14px;
  font-weight: 700;
  color: var(--ok);
}
.pay-summary {
  font-size: 12.5px;
}
.credit-block {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 13px;
}
.approval-status {
  padding: 10px 12px;
  border-radius: 10px;
  background: #FFFBEB;
  color: #92400E;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.approval-status.field-error {
  background: var(--bad-bg);
  color: var(--bad);
}
.totals-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 14px;
}
.grand-total {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.totals-list {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.totals-list div {
  display: flex;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.totals-list div:last-child {
  border-bottom: 0;
}
.totals-list dt {
  color: var(--text-3);
}
.totals-list dd {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
}
.btn-save {
  height: 42px;
  font-size: 13.5px;
}
.held-card .queue-row {
  padding: 12px 18px;
}
.confirm-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 13px;
}
.shortcut-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-3);
}
.saved-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.saved-total {
  display: flex;
  gap: 14px;
  align-items: baseline;
  flex-wrap: wrap;
}
.saved-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn.is-on {
  background: var(--chip-bg);
  color: var(--accent-dark);
  border-color: #FDBA74;
}
.queue-title-static {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 700;
}
.decide-left {
  justify-content: flex-start;
  margin-top: 10px;
}
.finder-msg-inline {
  margin: 8px 0 0;
}
@media (max-width: 900px) {
  .counter-top,
  .counter-bottom {
    grid-template-columns: minmax(0, 1fr);
  }
}
.print-area {
  display: none;
}
.print-page {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.print-page-msg {
  padding: 24px;
}
.print-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.print-sheet {
  background: #FFFFFF;
  color: #111827;
  font-size: 11px;
  line-height: 1.4;
}
.print-a4 {
  width: 100%;
  max-width: 186mm;
  padding: 10mm;
  border: 1px solid var(--border);
  box-sizing: border-box;
}
.print-thermal {
  width: 72mm;
  padding: 3mm;
  border: 1px dashed var(--border);
  font-size: 10px;
  font-family:
    ui-monospace,
    Menlo,
    monospace;
}
.print-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #111827;
  padding-bottom: 8px;
}
.print-seller {
  font-size: 15px;
  font-weight: 700;
}
.print-title {
  text-align: right;
}
.print-doc {
  font-size: 16px;
  font-weight: 700;
}
.print-draft-note {
  margin: 6px 0;
  padding: 6px 8px;
  border: 1px solid #B91C1C;
  color: #B91C1C;
  font-weight: 700;
  font-size: 11px;
}
.print-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 10px 0;
}
.print-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B7280;
}
.print-strong {
  font-weight: 700;
}
.print-table {
  width: 100%;
  border-collapse: collapse;
}
.print-table th,
.print-table td {
  padding: 3px 4px;
  border-bottom: 1px solid #E5E7EB;
  text-align: left;
  vertical-align: top;
}
.print-table th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #374151;
  background: #F3F4F6;
}
.print-table .num {
  text-align: right;
  white-space: nowrap;
}
.print-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
  align-items: start;
}
.print-grand td {
  font-weight: 700;
  font-size: 12px;
  border-top: 1px solid #111827;
}
.print-small {
  font-size: 9px;
  color: #6B7280;
  margin: 8px 0 0;
}
.print-center {
  text-align: center;
}
.print-rule {
  border-top: 1px dashed #111827;
  margin: 4px 0;
}
.print-item {
  margin-bottom: 3px;
}
.print-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.print-thermal .print-table td {
  border-bottom: 0;
  padding: 1px 0;
}
.print-thermal .thermal-summary th {
  background: none;
  border-bottom: 1px dashed #111827;
  padding: 1px 0;
  font-size: 9px;
}
.print-thermal .print-muted {
  font-size: 9px;
  color: #374151;
}
.print-small-words {
  font-size: 9px;
  margin: 2px 0 4px;
}
.print-thermal-qr {
  width: 36mm;
  height: 36mm;
  margin-top: 4px;
}
.print-toolbar-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}
.print-a4 {
  font-size: 10.5px;
}
.print-a4-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  padding-bottom: 8px;
}
.print-a4-logo img {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
}
.print-a4-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  align-self: center;
  text-align: center;
}
.print-a4-copy {
  text-align: right;
  font-size: 12px;
  color: #374151;
}
.print-a4-number {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin-top: 2px;
}
.print-a4-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-top: 6px;
}
.print-a4-seller > div {
  margin-top: 1px;
}
.print-a4-seller-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}
.print-a4-outlet {
  color: #6B7280;
}
.print-fact {
  margin-right: 10px;
  display: inline-block;
  white-space: nowrap;
}
.print-a4-totals .print-a4-paid {
  font-weight: 400;
  color: #4B5563;
}
.print-fact-label {
  font-weight: 600;
  color: #374151;
}
.print-a4-due-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1F3A4D;
  color: #FFFFFF;
  padding: 8px 12px;
  font-size: 13px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.print-a4-due-bar strong {
  font-size: 14px;
}
.print-a4-dates {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  margin: 8px 12px 0 0;
  text-align: right;
}
.print-a4-dates dt {
  color: #374151;
}
.print-a4-dates dd {
  margin: 0;
}
.print-a4-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 14px 0 10px;
}
.print-a4-party-title {
  font-weight: 700;
  font-size: 11px;
  margin-bottom: 2px;
}
.print-a4-party-name {
  font-weight: 700;
  font-size: 12px;
}
.print-small-inline {
  font-size: 9px;
  color: #6B7280;
}
.print-a4-items,
.print-a4-summary {
  width: 100%;
  border-collapse: collapse;
}
.print-a4-items th {
  background: #1F3A4D;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 9.5px;
  padding: 5px 4px;
  text-align: left;
  vertical-align: top;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.print-a4-items td {
  padding: 6px 4px;
  border-bottom: 1px solid #E5E7EB;
  vertical-align: top;
}
.print-a4-items .num,
.print-a4-summary .num {
  text-align: right;
  white-space: nowrap;
}
.print-a4-item {
  color: #1F5F8B;
  font-weight: 600;
}
.print-cell-sub {
  display: block;
  font-size: 9px;
  color: #6B7280;
}
.print-a4-bottom {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  margin-top: 10px;
  align-items: start;
  break-inside: avoid;
}
.print-a4-bank > div {
  margin-bottom: 2px;
}
.print-a4-upi {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 10px;
}
.print-a4-qr {
  width: 96px;
  height: 96px;
}
.print-a4-summary th {
  font-size: 9.5px;
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid #111827;
  padding: 3px 4px;
}
.print-a4-summary td {
  padding: 3px 4px;
}
.print-a4-totals dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  margin: 10px 0 0;
}
.print-a4-totals dt {
  font-weight: 600;
  text-align: right;
}
.print-a4-totals dd {
  margin: 0;
  text-align: right;
}
.print-a4-words {
  max-width: 60mm;
  font-weight: 600;
}
.print-a4-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #E5E7EB;
  break-inside: avoid;
}
.print-a4-terms {
  white-space: pre-line;
}
.print-a4-thanks {
  font-style: italic;
  margin-top: 6px;
}
.print-a4-sign {
  text-align: right;
  min-width: 50mm;
}
.print-a4-sign img {
  max-height: 40px;
  max-width: 160px;
  object-fit: contain;
}
.print-a4-sign-space {
  height: 40px;
  border-bottom: 1px solid #9CA3AF;
  margin-bottom: 4px;
}
@media print {
  body {
    background: #FFFFFF;
  }
  .no-print {
    display: none !important;
  }
  .print-area {
    display: block;
  }
  body * {
    visibility: hidden;
  }
  .print-area,
  .print-area *,
  .print-page,
  .print-page * {
    visibility: visible;
  }
  .print-area,
  .print-page {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0;
  }
  .print-a4,
  .print-thermal {
    border: 0;
  }
  .print-a4 {
    max-width: none;
    padding: 0;
  }
}
.name-search .inline-form {
  padding: 0;
}
.customer-results {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.saved-credit {
  margin: 0;
}
.proforma-facts {
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.proforma-facts dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.proforma-facts dd {
  margin: 2px 0 0;
}
.change-list {
  margin: 8px 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.brand-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0;
  align-items: start;
}
.brand-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.brand-queue .card-head .small {
  margin: 0 0 0 auto;
}
.live-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  max-width: 340px;
  text-align: right;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--border-soft);
  color: var(--text-2);
}
.live-pill .dot {
  background: var(--muted);
}
.live-live {
  background: #ECFDF5;
  color: var(--ok);
}
.live-live .dot {
  background: var(--ok);
}
.live-reconnecting,
.live-refused {
  background: #FFFBEB;
  color: #B45309;
}
.live-reconnecting .dot,
.live-refused .dot {
  background: #B45309;
}
.fresh-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
[data-testid=brand-home] .stat-row {
  margin-top: 16px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
@media (max-width: 860px) {
  .brand-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .live-state {
    align-items: flex-start;
    text-align: left;
  }
}
.dh-section {
  font-size: 15px;
  margin: 20px 0 8px;
}
.dh-window {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}
.dh .stat-row {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.dh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}
.dh-grid > .card {
  margin: 0;
}
.dh-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dh-list > li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.dh .card-head h2 {
  font-size: 15px;
}
.dh .card-body > p.muted {
  font-size: 14px;
  margin: 0;
}
.dh-list > li:last-child {
  border-bottom: 0;
}
.dh-counter {
  margin-bottom: 8px;
}
.dh-open-billing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 64px;
  line-height: 1.2;
  font-size: 20px;
  font-weight: 600;
  padding: 18px;
  margin: 12px 0 16px;
}
.dh > .card {
  margin-top: 16px;
}
.bills-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.bills-filters .inline-form {
  flex: 1 1 260px;
}
.bills-filters input[type=date],
.bills-filters select {
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}
.pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.finalise-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.small-head {
  font-size: 13px;
  margin: 0 0 6px;
}
.bill-list-plain {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
}
.bill-list-plain li {
  padding: 4px 0;
}
.btn-save[aria-busy=true] {
  opacity: 0.75;
  cursor: progress;
}
.btn-danger {
  background: var(--bad);
}
.btn-danger:hover {
  background: #991B1B;
}
.plain-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
}
.plain-list li {
  padding: 3px 0;
}
.link-card .card-head {
  gap: 12px;
  flex-wrap: wrap;
}
.link-card .card-head h2 {
  margin: 0;
}
.form-hint {
  flex-basis: 100%;
  margin: 0;
  font-size: 12px;
}
.reason-form {
  flex-wrap: wrap;
}
.tenant-detail h3 {
  font-size: 13px;
  margin: 12px 0 4px;
}
.support-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: #FEF3C7;
  color: #78350F;
  border-bottom: 1px solid #F59E0B;
  font-size: 13px;
}
.support-banner-full {
  background: #FEE2E2;
  color: #7F1D1D;
  border-bottom-color: #DC2626;
}
.support-banner-scope {
  opacity: 0.85;
}
.support-banner .btn {
  padding: 4px 12px;
}
.support-live {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.notice-warn {
  background: #FFFBEB;
  color: #B45309;
}
.topbar-platform {
  font-weight: 600;
  color: var(--muted, #6B7280);
}
.rp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.rp-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  font: inherit;
  cursor: pointer;
  min-width: 0;
}
.rp-tile:hover {
  border-color: #FDBA74;
}
.rp-tile-title {
  font-weight: 700;
  font-size: 14.5px;
}
.rp-tile .muted {
  font-size: 12.5px;
  line-height: 1.45;
}
.rp-csv {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.table td.rp-nowrap {
  white-space: nowrap;
}
.rp-tile-window {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rp-tile-planned {
  cursor: default;
  opacity: 0.65;
}
.rp-tile-planned .chip {
  align-self: flex-start;
}
.rp-back {
  margin: 0 0 4px;
  font-size: 13px;
}
.rp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.rp-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rp-picker .input {
  width: 180px;
  max-width: 100%;
}
.rp-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rp-chosen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.btn-small {
  padding: 3px 9px;
  font-size: 12px;
}
.rp-applied {
  margin: 0;
  padding: 0 18px 8px;
  font-size: 12.5px;
}
.rp-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 18px;
}
.rp-notes {
  margin: 0;
  padding: 12px 18px 16px 34px;
  font-size: 12.5px;
  color: var(--text-3);
  border-top: 1px solid var(--border-soft);
}
.rp-notes li + li {
  margin-top: 4px;
}
.table tr.is-selected td {
  background: var(--surface-2, #F3F4F6);
}
.text-bad {
  color: var(--bad);
}
.input-num {
  width: 110px;
  text-align: right;
}
.card-head-inline {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.card-head-inline h3 {
  margin-right: auto;
}
.receive-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.receive-form .btn {
  align-self: flex-start;
}
.receipt-actions {
  margin-top: 10px;
}
.return-settlement {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.return-settlement .radio-row {
  gap: 8px;
  align-items: center;
}
.bill-return-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}
.skeleton-line {
  padding: 4px 0;
}
.skeleton-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.skeleton-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.skeleton-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-bar {
  display: block;
  height: 12px;
  width: 100%;
  border-radius: 6px;
  background:
    linear-gradient(
      90deg,
      var(--border-soft) 0%,
      var(--border) 50%,
      var(--border-soft) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-short {
  width: 40%;
  height: 10px;
}
.skeleton-mid {
  width: 60%;
}
.skeleton-tall {
  height: 22px;
  width: 70%;
}
@keyframes skeleton-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-bar {
    animation: none;
  }
}
/*# sourceMappingURL=/assets/application-72d05b75.css.map */
