.billing-workspace {
  max-width: 1440px;
  margin: auto;
}
.billing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.billing-heading p {
  color: var(--muted);
  margin-top: 6px;
}
.billing-tabs {
  display: inline-flex;
  padding: 4px;
  background: #e9efec;
  border-radius: 12px;
  margin-bottom: 24px;
  gap: 4px;
}
.billing-tabs button,
.billing-payment-modes button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 11px 20px;
  font-weight: 600;
}
.billing-tabs button[aria-pressed="true"] {
  background: white;
  color: var(--deep);
  box-shadow: 0 1px 4px #103e3512;
}
.billing-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}
.billing-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.billing-customer,
.billing-items,
.billing-summary {
  padding: 22px;
}
.billing-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.billing-section-title .btn {
  min-height: 38px;
}
.billing-count {
  display: inline-grid;
  place-items: center;
  background: var(--tint);
  color: var(--green);
  font-size: 12px;
  border-radius: 20px;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
}
.billing-workspace .field input {
  width: 100%;
}
.billing-workspace input:focus-visible,
.billing-workspace button:focus-visible,
details summary:focus-visible {
  outline: 3px solid #176b5370;
  outline-offset: 3px;
}
.billing-workspace details summary {
  cursor: pointer;
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
.billing-tax-options {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.billing-tax-options .field {
  max-width: 280px;
  margin-bottom: 12px;
}
.billing-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 12px 0;
}
.billing-search {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0 12px;
  border-radius: 10px;
  background: #f9fbfa;
}
.billing-search input {
  border: 0;
  background: transparent;
  width: 100%;
  min-height: 46px;
  outline: 0;
}
.billing-search .icon {
  color: var(--muted);
}
.billing-item-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 20px;
}
.billing-item-option {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  border: 1px solid var(--line);
  background: white;
  padding: 12px;
  border-radius: 10px;
  min-width: 0;
  align-items: center;
}
.billing-item-option:hover {
  background: var(--tint);
  border-color: var(--green);
}
.billing-item-option strong {
  display: block;
  font-size: 13px;
}
.billing-item-option small {
  display: block;
  margin-top: 3px;
}
.billing-item-option > span:last-child {
  white-space: nowrap;
  font-size: 13px;
  color: var(--green);
}
.billing-item-option .icon {
  width: 16px;
  height: 16px;
}
.billing-line-table {
  min-width: 510px;
}
.billing-line-table th,
.billing-line-table td {
  padding: 12px 6px;
}
.billing-line-table td:first-child {
  min-width: 140px;
}
.billing-line-table td input {
  width: 72px;
  padding: 10px 7px;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.billing-line-table td:first-child small {
  display: block;
  margin-top: 4px;
}
.billing-line-table td:nth-child(3) input {
  width: 90px;
}
.billing-discount {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.billing-discount input {
  width: 100px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: right;
}
.billing-summary {
  position: sticky;
  top: 24px;
  border-top: 3px solid var(--green);
}
.billing-total {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -1.2px;
  margin: 12px 0 20px;
  font-variant-numeric: tabular-nums;
}
.billing-balance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.billing-balance span {
  color: var(--muted);
  font-size: 12px;
}
.billing-balance b {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  color: var(--ink);
}
.billing-due,
.billing-due b {
  color: var(--amber) !important;
}
.billing-calculation {
  font-size: 12px;
  color: var(--muted);
  min-height: 18px;
  line-height: 1.5;
}
.billing-breakdown > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 7px 0;
}
.billing-payment {
  padding-top: 20px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}
.billing-payment-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 12px 0;
}
.billing-payment-modes button {
  padding: 9px 11px;
  border: 1px solid var(--line);
  font-size: 12px;
  min-height: 40px;
}
.billing-payment-modes button[aria-pressed="true"] {
  background: var(--deep);
  color: white;
  border-color: var(--deep);
}
.billing-received {
  display: block;
  font-size: 12px;
  margin: 12px 0;
}
.billing-received > div {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 6px;
  padding-left: 12px;
}
.billing-received input {
  border: 0;
  background: transparent;
  padding: 12px;
  width: 100%;
  font-size: 18px;
}
.billing-save {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
}
.billing-save-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 20px;
}
.billing-empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
}
.billing-empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.billing-check {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
}
.billing-workspace #billing-search {
  background: white;
  padding: 16px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  margin: 0;
  align-items: end;
}
.billing-workspace #billing-search label:first-child {
  flex: 1;
  min-width: 190px;
}
.billing-workspace #billing-search label input {
  display: block;
  margin-top: 6px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.billing-workspace #billing-search + .card {
  margin: 0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  box-shadow: none;
}
.billing-detail-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  padding: 22px;
  border-radius: 12px;
  background: var(--deep);
  color: white;
  margin: 8px 0 20px;
}
.billing-detail-hero small {
  color: #c4dfd5;
}
.billing-detail-hero strong {
  display: block;
  font-size: 26px;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.billing-detail-actions {
  justify-content: flex-end;
}
.billing-print-controls {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}
.billing-receipt-preview {
  background: #eef1ef;
  padding: 24px;
  display: flex;
  justify-content: center;
  overflow: auto;
  margin-top: 18px;
}
.ciz-receipt {
  width: var(--receipt-width);
  flex: none;
  background: white;
  color: black;
  font:
    11px "Arial Narrow",
    Arial,
    sans-serif;
  padding: 3mm;
}
.ciz-receipt header {
  text-align: center;
  line-height: 1.6;
}
.ciz-receipt header > strong {
  font-size: 17px;
}
.ciz-receipt header > b {
  display: block;
  border-bottom: 1px dashed #555;
  padding: 6px 0;
}
.receipt-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  font-size: 10px;
}
.receipt-to {
  padding: 6px 0 10px;
  border-bottom: 1px dashed #555;
  line-height: 1.5;
}
.ciz-receipt table {
  width: 100%;
  border-collapse: collapse;
  font-size: inherit;
  min-width: 0;
}
.ciz-receipt td,
.ciz-receipt th {
  padding: 3px 1px;
  text-align: right;
  border: 0;
  color: black;
  white-space: normal;
}
.ciz-receipt th:first-child,
.ciz-receipt td:first-child {
  text-align: left;
}
.ciz-receipt thead {
  border-bottom: 1px dashed #555;
}
.ciz-receipt .receipt-product td {
  padding-top: 8px;
  font-weight: bold;
}
.ciz-receipt small {
  display: block;
  color: black;
  font-size: 9px;
}
.receipt-totals {
  border-top: 1px dashed #555;
  margin-top: 8px;
  padding-top: 6px;
}
.receipt-totals > div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}
.receipt-grand {
  font-size: 15px;
  border-top: 1px dashed #555;
  margin-top: 6px;
  padding-top: 8px !important;
}
.receipt-tax {
  margin-top: 8px;
  font-size: 9px;
}
.ciz-receipt footer {
  text-align: center;
  border-top: 1px dashed #555;
  margin-top: 12px;
  padding-top: 10px;
}
@media (max-width: 1150px) {
  .billing-editor {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 16px;
  }
  .billing-item-results {
    grid-template-columns: 1fr;
  }
  .billing-customer,
  .billing-items,
  .billing-summary {
    padding: 18px;
  }
}
@media (max-width: 850px) {
  .billing-editor {
    grid-template-columns: 1fr;
  }
  .billing-summary {
    position: static;
  }
  .billing-item-results {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 550px) {
  .billing-heading h1 {
    font-size: 23px;
  }
  .billing-heading {
    align-items: start;
  }
  .billing-heading .btn {
    padding: 10px 12px;
  }
  .billing-item-results {
    grid-template-columns: 1fr;
  }
  .billing-detail-hero {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .billing-detail-hero > div:first-child {
    grid-column: span 2;
  }
}
:root {
  --ink: #152e2a;
  --muted: #6b7d79;
  --green: #176b53;
  --deep: #103e35;
  --tint: #e7f3ed;
  --line: #e2e9e5;
  --bg: #f5f7f6;
  --red: #b5343a;
  --amber: #926421;
  --radius: 16px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 16px;
}
small {
  color: var(--muted);
}
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon-btn {
  border: 0;
  background: transparent;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--tint);
  color: var(--green);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  min-height: 40px;
  padding: 9px 15px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}
.primary {
  background: var(--green);
  color: #fff;
}
.primary:hover {
  background: var(--deep);
}
.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: var(--bg);
}
.ghost {
  color: var(--green);
  background: transparent;
}
.danger {
  background: var(--red);
  color: #fff;
}
.btn.small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
}
.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.badge {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  border-radius: 6px;
  background: #ffffff17;
  color: #abc7bd;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--tint);
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.pill.gray {
  background: #eef1ef;
  color: var(--muted);
}
.pill.red {
  background: #fbeaec;
  color: var(--red);
}
.pill.amber {
  background: #fff3db;
  color: var(--amber);
}
.pill.blue {
  background: #eaf1fb;
  color: #2965a0;
}
.avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--green);
  background: var(--tint);
  font-weight: 650;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0 12px;
  min-width: 190px;
}
.search .icon {
  color: #8b9a95;
  width: 18px;
}
.search input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  height: 40px;
  background: transparent;
  color: var(--ink);
}
input,
select,
textarea {
  border: 1px solid #d9e2dd;
  background: #fff;
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 11px;
  min-height: 40px;
  outline: 0;
}
input:focus,
select:focus,
textarea:focus,
.search:focus-within {
  border-color: #439978;
  box-shadow: 0 0 0 3px #176b5310;
}
input[readonly] {
  background: #f3f5f4;
  color: var(--muted);
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  flex-shrink: 0;
}
textarea {
  resize: vertical;
  min-height: 76px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > span {
  font-size: 12px;
  font-weight: 600;
}
.field b {
  color: var(--red);
}
.field small {
  font-size: 11px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 20px;
}
.span-2 {
  grid-column: 1/-1;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
}
.check-row strong {
  font-size: 12px;
  font-weight: 550;
}
.check-row small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.form-error:empty {
  display: none;
}
.notice {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.65;
  background: #fff;
}
.notice.error {
  background: #fff3f3;
  border-color: #f0d5d6;
  color: #9a3038;
}
.notice.info {
  background: #f0f6f3;
  color: var(--green);
}
.empty {
  padding: 65px 24px;
  text-align: center;
}
.empty > .icon {
  width: 38px;
  height: 38px;
  color: #8ba69a;
  margin-bottom: 15px;
}
.empty h3 {
  font-weight: 600;
  margin-bottom: 8px;
}
.empty p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
  max-width: 410px;
  margin: auto;
}
.loading,
.boot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  padding: 80px 20px;
}
.boot {
  height: 100vh;
  flex-direction: column;
}
.spinner {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
  background: #fff;
}
.login-story {
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  background: #f0f4ee;
  position: relative;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
  padding: 2px;
}
.brand strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 3px;
}
.login-story .brand {
  color: var(--deep);
}
.login-copy {
  margin: auto 0;
  padding: 65px 0 35px;
  max-width: 500px;
}
.login-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 55px;
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -1.8px;
  color: var(--deep);
}
.login-copy > p {
  margin-top: 23px;
  line-height: 1.8;
  font-size: 15px;
  color: #658073;
  max-width: 380px;
}
.connection-visual {
  margin-top: 43px;
  position: relative;
  max-width: 390px;
  padding: 23px;
  background: #ffffffb3;
  border: 1px solid #d9e5da;
  border-radius: 15px;
}
.connection-visual .connected-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
.connection-visual .connected-line > span {
  flex: 1;
  height: 1px;
  background: #bad5c7;
}
.connection-visual .fake-lines {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr;
  gap: 9px;
  margin-top: 20px;
}
.fake-lines i {
  height: 7px;
  background: #dce8e0;
  border-radius: 3px;
}
.fake-lines i:nth-child(3n) {
  background: #bdd8c8;
}
.story-footer {
  font-size: 11px;
  color: #7a9084;
  line-height: 1.7;
}
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin-top: 18px;
}
.login-form > p {
  line-height: 1.7;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 30px;
}
.login-form form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.login-form .btn {
  width: 100%;
  min-height: 45px;
}
.password-input {
  position: relative;
}
.password-input input {
  width: 100%;
  padding-right: 44px;
}
.password-input .icon-btn {
  position: absolute;
  right: 3px;
  top: 1px;
}
.login-foot {
  font-size: 11px;
  text-align: center;
  color: #82908a;
  margin-top: 26px;
  line-height: 1.8;
}
.login-foot a {
  color: var(--green);
}
.layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 30px 19px;
  z-index: 30;
}
.sidebar .brand {
  padding: 0 8px;
}
.sidebar .brand strong {
  font-size: 19px;
}
.sidebar .brand small {
  color: #9ab9aa;
  font-size: 9px;
}
.workspace-tag {
  margin: 35px 11px 12px;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #86a99a;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  font-weight: 500;
  color: #bbd0c6;
  padding: 12px 13px;
  border-radius: 9px;
}
.nav a:hover {
  background: #ffffff08;
}
.nav a.active {
  background: #ffffff12;
  color: #fff;
}
.nav .icon {
  width: 18px;
  height: 18px;
}
.nav a.active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #99d2ae;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.sidebar-bottom .support {
  margin: 20px 12px;
  padding: 16px 0;
  border-top: 1px solid #ffffff13;
  font-size: 10px;
  line-height: 1.9;
  color: #8caf9e;
}
.sidebar-bottom .support strong {
  display: block;
  color: #bad4c5;
  font-weight: 500;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 20px;
}
.shop-name {
  font-size: 13px;
  font-weight: 650;
  max-width: 470px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 11px;
}
.user-menu .user-text {
  font-size: 12px;
  font-weight: 600;
}
.user-menu .user-text small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}
.user-menu .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
}
.mobile-menu {
  display: none;
}
.content {
  padding: 32px 35px 55px;
  max-width: 1680px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
  display: block;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 23px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h3 {
  font-size: 14px;
  font-weight: 650;
}
.panel-body {
  padding: 23px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  padding: 21px 23px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  position: relative;
}
.stat .stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 13px;
}
.stat .stat-value {
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -1px;
}
.stat .stat-foot {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.stat .stat-icon {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 33px;
  height: 33px;
  background: var(--tint);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.stat-icon .icon {
  width: 17px;
  height: 17px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 23px;
}
.action-list > a {
  display: flex;
  gap: 14px;
  padding: 19px 22px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.action-list > a:last-child {
  border-bottom: 0;
}
.action-list strong {
  font-size: 12px;
  font-weight: 600;
}
.action-list small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.action-list .icon:last-child {
  margin-left: auto;
  color: #96aaa0;
  width: 16px;
}
.action-list .action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--green);
}
.action-list > a:hover {
  background: #f9fbfa;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 17px 21px;
  border-bottom: 1px solid var(--line);
}
.toolbar .search {
  width: 320px;
}
.toolbar .filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar .filters input,
.toolbar .filters select {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 10px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.65px;
  color: #7b8b83;
  background: #f9faf9;
  padding: 13px 21px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 21px;
  font-size: 12px;
  border-bottom: 1px solid #eef1ef;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr[data-action] {
  cursor: pointer;
}
tbody tr[data-action]:hover {
  background: #f8fbf9;
}
td strong {
  font-size: 12px;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  margin-top: 4px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 21px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.tab-strip {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding: 0 21px;
}
.tab-strip button {
  border: 0;
  background: transparent;
  padding: 17px 2px;
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tab-strip button.active {
  border-color: var(--green);
  color: var(--green);
}
.detail-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.summary {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  align-self: start;
}
.summary h3 {
  font-size: 13px;
  margin-bottom: 18px;
}
.summary .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin: 13px 0;
}
.summary .row span:first-child {
  color: var(--muted);
}
.summary hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 17px 0;
}
.summary .big {
  font-size: 23px;
  color: var(--green);
  letter-spacing: -0.6px;
  font-weight: 600;
}
.summary .btn {
  width: 100%;
  margin-top: 14px;
}
.contact-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.contact-block p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.ledger-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  margin-bottom: 22px;
}
.ledger-top .balance-card {
  padding: 24px;
  background: var(--deep);
  color: #fff;
  border-radius: 13px;
}
.balance-card .eyebrow {
  color: #a8c8b7;
}
.balance-card strong {
  font-size: 27px;
  display: block;
  margin: 14px 0 8px;
  letter-spacing: -0.6px;
  font-weight: 550;
}
.balance-card small {
  color: #b4cfc0;
  font-size: 10px;
}
.ledger-dates {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}
.ledger-dates .field {
  flex: 1;
  min-width: 130px;
}
.ledger-dates .check-row {
  font-size: 11px;
  min-height: 40px;
}
.ledger-item-detail td {
  padding: 9px 24px 9px 61px;
  background: #f8faf9;
  color: var(--muted);
  font-size: 11px;
}
.data-value {
  font-variant-numeric: tabular-nums;
}
.form-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-section > h3 {
  font-size: 14px;
  margin-bottom: 16px;
}
.order-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.order-line input {
  max-width: 95px;
  padding: 8px;
  font-size: 12px;
  min-height: 34px;
}
.order-line select {
  max-width: 110px;
}
.order-total {
  font-weight: 650;
}
.cart-add {
  border-top: 1px dashed var(--line);
  padding: 15px 20px;
}
.cart-empty {
  padding: 40px 20px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.item-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.item-card strong {
  font-size: 12px;
  line-height: 1.5;
}
.item-card .btn {
  margin-top: auto;
}
.item-picker-list {
  max-height: 55vh;
  overflow: auto;
}
.item-picker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.item-picker-row strong {
  display: block;
  font-size: 12px;
}
.item-picker-row small {
  font-size: 11px;
  display: block;
  margin-top: 5px;
}
.modal {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  max-width: 610px;
  width: calc(100% - 32px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 24px 100px #0c30222a;
}
.modal.wide {
  max-width: 900px;
}
.modal::backdrop {
  background: #0e272362;
  backdrop-filter: blur(3px);
}
.modal > header {
  padding: 24px 26px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal header h2 {
  margin-top: 7px;
  font-size: 21px;
}
.modal-body {
  padding: 24px 26px;
}
.modal-body > .search {
  margin-bottom: 18px;
}
.dialog-message {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.info-grid dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}
.info-grid dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.password-panel {
  max-width: 550px;
}
.temporary-password {
  padding: 15px;
  border: 1px dashed #a8c4b5;
  background: var(--tint);
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 0.5px;
  border-radius: 9px;
  overflow-wrap: anywhere;
}
.mobile-scrim {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 30px);
  padding: 13px 22px;
  border-radius: 10px;
  background: var(--deep);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 5px 30px #092b2522;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 1000;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#print-area {
  display: none;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7ebda2;
  outline-offset: 3px;
}
.mobile-only {
  display: none;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 40px;
  }
  .login-story {
    padding-left: 90px;
  }
  .login-copy h1 {
    font-size: 65px;
  }
}
@media (max-width: 1150px) {
  .detail-split,
  .order-composer {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .login-story {
    padding: 35px;
  }
  .login-copy h1 {
    font-size: 46px;
  }
  .ledger-top {
    grid-template-columns: 1fr 260px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .main {
    grid-column: 1;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .layout.nav-open .sidebar {
    transform: translateX(0);
  }
  .layout.nav-open .mobile-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #0005;
    z-index: 20;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 68px;
    padding: 0 17px;
  }
  .content {
    padding: 24px 17px 40px;
  }
  .page-heading {
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat .stat-icon {
    display: none;
  }
  .stat .stat-value {
    font-size: 26px;
  }
  .user-menu .user-text {
    display: none;
  }
  .shop-name {
    max-width: 350px;
  }
  .detail-split,
  .order-composer {
    grid-template-columns: 1fr;
  }
  .summary {
    order: 0;
  }
  .login-copy h1 {
    font-size: 39px;
  }
  .login-story {
    padding: 30px;
  }
  .login-main {
    padding: 30px;
  }
  .ledger-top {
    grid-template-columns: 1fr;
  }
  .ledger-top .balance-card {
    padding: 20px;
  }
  .balance-card strong {
    margin-top: 9px;
  }
  .toolbar .search {
    width: 100%;
  }
  .toolbar .filters {
    width: 100%;
  }
  .toolbar .filters select {
    max-width: 100%;
  }
  .panel-heading {
    padding: 18px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .login {
    display: block;
  }
  .login-story {
    min-height: 0;
    padding: 24px;
  }
  .login-copy,
  .story-footer {
    display: none;
  }
  .login-story .brand img {
    width: 32px;
    height: 32px;
  }
  .login-main {
    padding: 40px 25px;
  }
  .login-form {
    max-width: 400px;
  }
  .login-form h2 {
    font-size: 27px;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .page-heading .btn {
    font-size: 12px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }
  .stat .stat-label {
    margin: 0;
  }
  .stat .stat-foot {
    grid-column: 1;
    margin: 0;
    font-size: 10px;
  }
  .stat .stat-value {
    grid-column: 2;
    grid-row: 1/3;
    font-size: 29px;
  }
  .panel {
    border-radius: 12px;
  }
  th,
  td {
    padding: 13px 15px;
  }
  .dashboard-grid {
    gap: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .modal-body {
    padding: 20px;
  }
  .modal > header {
    padding: 20px;
  }
  .modal {
    max-height: 94vh;
  }
  .form-actions {
    position: sticky;
    bottom: -20px;
    background: #fff;
    padding-bottom: 12px;
  }
  .shop-name {
    max-width: 230px;
  }
  .toolbar {
    padding: 15px;
  }
  .toolbar .filters {
    gap: 8px;
  }
  .toolbar .filters input {
    max-width: 142px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .hide-mobile {
    display: none;
  }
  .mobile-only {
    display: initial;
  }
  .ledger-dates {
    gap: 10px;
  }
  .ledger-dates .check-row {
    width: 100%;
  }
  .topbar .flex {
    gap: 3px;
  }
  .user-menu {
    gap: 4px;
  }
}
@media print {
  @page {
    size: A4 landscape;
    margin: 14mm;
  }
  body {
    background: #fff;
    font:
      10px Arial,
      sans-serif;
  }
  #app,
  #dialog-root,
  #toast {
    display: none !important;
  }
  #print-area {
    display: block;
  }
  #print-area h1 {
    font-size: 20px;
    margin: 0 0 10px;
  }
  #print-area p {
    font-size: 10px;
    margin: 5px 0;
  }
  #print-area table {
    margin-top: 18px;
    table-layout: fixed;
    width: 100%;
  }
  #print-area th,
  #print-area td {
    padding: 7px;
    border-bottom: 1px solid #ddd;
    font-size: 9px;
    overflow-wrap: anywhere;
    white-space: normal;
    color: #111;
  }
  #print-area thead {
    display: table-header-group;
  }
  #print-area tr {
    break-inside: avoid;
  }
  #print-area th {
    background: #edf3ef !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
/* Shared module layouts */
.panel-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.panel-toolbar .search {
  flex: 1;
  max-width: 440px;
}
.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.panel-footer > div {
  display: flex;
  gap: 8px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-grid small {
  display: block;
  margin-bottom: 5px;
}
.detail-grid strong {
  display: block;
  font-weight: 550;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.wrap {
  flex-wrap: wrap;
}
.btn.text {
  color: var(--green);
  background: transparent;
}
.order-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}
.selection-field {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  border-radius: 8px;
  color: var(--ink);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.selection-field small {
  margin-left: 12px;
}
.qty-input {
  max-width: 100px;
  min-width: 80px;
  padding: 8px;
}
.picker-list {
  max-height: 55vh;
  overflow: auto;
}
.picker-row,
.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 15px 20px;
  text-align: left;
  color: var(--ink);
}
.picker-row:hover,
.account-row:hover {
  background: var(--bg);
}
.picker-row small,
.account-row small {
  display: block;
  margin-top: 4px;
}
.picker-row strong,
.account-row strong {
  font-weight: 550;
}
.account-row.selected {
  background: var(--tint);
  box-shadow: inset 3px 0 var(--green);
}
.account-row.selected strong {
  color: var(--green);
}
.account-row span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.summary-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  background: var(--bg);
}
.summary-card p {
  margin: 10px 0;
  color: var(--muted);
}
.ledger-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.ledger-workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.account-browser .panel-body {
  padding: 16px;
}
.account-browser .search {
  min-width: 0;
}
.account-list {
  max-height: 60vh;
  overflow: auto;
}
.account-browser .panel-footer {
  padding: 12px;
}
.ledger-top {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}
.ledger-top .field {
  min-width: 170px;
}
.ledger-stats .stat-value {
  font-size: 20px;
  letter-spacing: -0.3px;
}
.opening-row {
  background: var(--bg);
}
.lookup-add {
  font-size: 12px;
  color: var(--green);
}
.lookup-add summary {
  cursor: pointer;
  margin-bottom: 12px;
}
.lookup-add .flex {
  flex-wrap: wrap;
}
.lookup-add input {
  flex: 1;
  min-width: 150px;
}
.lookup-add input,
.lookup-add select {
  padding: 9px;
}
@media (min-width: 1600px) {
  .ledger-layout {
    grid-template-columns: 330px minmax(0, 1fr);
  }
}
@media (max-width: 1200px) {
  .ledger-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .ledger-stats {
    grid-template-columns: 1fr;
  }
  .order-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .ledger-layout,
  .order-grid {
    grid-template-columns: 1fr;
  }
  .account-list {
    max-height: 230px;
  }
  .account-browser .panel-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ledger-stats {
    grid-template-columns: 1fr;
  }
  .panel-toolbar {
    padding: 15px;
  }
  .ledger-workspace .between {
    align-items: start;
    flex-wrap: wrap;
  }
  .ledger-top {
    flex-wrap: wrap;
  }
  .ledger-top .field {
    min-width: 140px;
    flex: 1;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .panel-footer {
    padding: 14px;
  }
  .order-grid {
    margin-bottom: 18px;
  }
  .page-heading > .flex {
    flex-wrap: wrap;
  }
  .panel-toolbar .field {
    flex: 1;
    min-width: 120px;
  }
  .panel-toolbar .search {
    max-width: none;
  }
  .selection-field small {
    display: none;
  }
}
.billing-workspace:has(#billing-form) .billing-tabs {
  display: none;
}
.ciz-receipt.paper-80 {
  width: 74mm;
}
.ciz-receipt.paper-50 {
  width: 44mm;
  font-size: 9px;
  padding: 1.5mm;
}
.ciz-receipt.paper-50 header > strong {
  font-size: 14px;
}
.ciz-receipt.paper-50 .receipt-meta {
  flex-direction: column;
  gap: 3px;
  font-size: 9px;
}
.ciz-receipt.paper-50 .receipt-grand {
  font-size: 12px;
}
.ciz-receipt table {
  table-layout: fixed;
}
.ciz-receipt td,
.ciz-receipt th {
  overflow-wrap: anywhere;
}
@media print {
  #print-area .ciz-receipt {
    padding: 1mm;
  }
  #print-area .ciz-receipt table {
    font-size: inherit;
    table-layout: fixed;
  }
  #print-area .ciz-receipt th,
  #print-area .ciz-receipt td {
    padding: 2px !important;
    border: 0;
    font-size: inherit;
  }
  #print-area .ciz-receipt th {
    color: black;
    background: white;
  }
  #print-area .ciz-receipt p {
    font-size: inherit;
  }
}
.ciz-receipt th {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}
.ciz-receipt.paper-50 th {
  font-size: 8px;
  white-space: nowrap;
  overflow-wrap: normal;
}
.ciz-receipt td {
  padding-left: 2px;
  padding-right: 2px;
}
.billing-mobile-save {
  display: none;
}
@media (max-width: 850px) {
  .billing-editor {
    padding-bottom: 95px;
  }
  .billing-mobile-save {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px max(12px, env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--line);
    z-index: 5;
    box-shadow: 0 -4px 16px #103e350a;
  }
  .billing-mobile-save strong {
    display: block;
    font-size: 22px;
  }
  .billing-mobile-save .billing-save {
    margin: 0;
    width: auto;
  }
  .billing-summary > .billing-save {
    display: none;
  }
}
@media (max-width: 550px) {
  .billing-line-table,
  .billing-line-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }
  .billing-line-table thead {
    display: none;
  }
  .billing-line-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .billing-line-table td {
    display: block;
    min-width: 0 !important;
    padding: 0;
    border: 0;
  }
  .billing-line-table td:first-child {
    grid-column: 1/-1;
  }
  .billing-line-table td input,
  .billing-line-table td:nth-child(3) input {
    width: 100%;
  }
  .billing-line-table td:nth-child(2)::before {
    content: "Qty";
  }
  .billing-line-table td:nth-child(3)::before {
    content: "Rate ₹";
  }
  .billing-line-table td:nth-child(4)::before {
    content: "Disc %";
  }
  .billing-line-table td:nth-child(2)::before,
  .billing-line-table td:nth-child(3)::before,
  .billing-line-table td:nth-child(4)::before {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .billing-line-table td:nth-child(5) {
    grid-column: 1/3;
    text-align: left;
    align-self: center;
    font-weight: 600;
  }
  .billing-line-table td:nth-child(5)::before {
    content: "Amount ";
    color: var(--muted);
    font-weight: 400;
    font-size: 12px;
  }
  .billing-line-table td:last-child {
    text-align: right;
  }
}
.billing-delivery,
.billing-charges {
  border-top: 1px solid #dbe5df;
  padding-top: 14px;
  margin-top: 16px;
}
.billing-delivery summary,
.billing-charges summary,
.billing-stock summary {
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}
.billing-delivery summary span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}
.billing-extras-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.billing-extras-grid select {
  max-width: 100%;
  width: 100%;
}
.billing-stock {
  background: #edf5ef;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 16px 0;
}
.billing-stock:empty {
  display: none;
}
.billing-stock dl {
  margin: 6px 0;
}
.billing-stock dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
}
.billing-stock dt {
  color: var(--muted);
}
.billing-stock dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.billing-qty-step {
  border: 1px solid #d4e4db;
  background: #f4f8f5;
  border-radius: 7px;
  color: var(--green);
  width: 28px;
  height: 30px;
  font-weight: 700;
  cursor: pointer;
}
.billing-line-table td:nth-child(2) {
  min-width: 130px;
  white-space: nowrap;
}
.billing-line-table td:nth-child(2) input {
  width: 54px;
  margin: 0 3px;
}
.billing-item-option > span:last-child {
  text-align: right;
  white-space: nowrap;
}
.billing-item-option > span:last-child small {
  display: block;
  font-weight: 400;
}
.billing-breakdown {
  border-top: 1px solid #dbe5df;
  padding-top: 10px;
}
@media (max-width: 600px) {
  .billing-extras-grid {
    grid-template-columns: 1fr;
  }
  .billing-line-table td:nth-child(2) {
    min-width: 0;
  }
  .billing-stock summary {
    font-size: 13px;
  }
  .billing-count {
    white-space: nowrap;
  }
  .billing-stock dl > div {
    font-size: 12px;
  }
}
