:root {
  --ink: #13212c;
  --muted: #657789;
  --line: #d9e3ea;
  --paper: #fffdf8;
  --panel: #ffffff;
  --soft: #f4f7f8;
  --night: #142230;
  --teal: #0f766e;
  --teal-2: #12a389;
  --coral: #d35d3c;
  --amber: #f2a93b;
  --blue: #3975d7;
  --rose: #bf3f63;
  --green: #1f9a66;
  --shadow: 0 22px 60px rgba(19, 33, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 34%),
    linear-gradient(315deg, rgba(211, 93, 60, 0.10), transparent 32%),
    #eef4f6;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

a {
  text-decoration: none;
}

.is-hidden {
  display: none !important;
}

.customer-program-mode .login-tabs {
  display: none;
}

.module-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-toggle {
  display: grid;
  grid-template-columns: auto 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.module-toggle.enabled {
  border-color: #0f9f8a;
  background: #f0fdfa;
  box-shadow: inset 3px 0 0 #0f9f8a;
}

.module-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #0f9f8a;
}

.module-toggle-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e8f4f6;
  color: #0f766e;
}

.module-toggle-icon svg {
  width: 18px;
  height: 18px;
}

.module-toggle strong,
.module-toggle small {
  display: block;
}

.module-toggle small {
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-shell {
  width: min(1180px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-showcase {
  padding: 46px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(20, 34, 48, 0.96), rgba(15, 118, 110, 0.88)),
    #142230;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-badge {
  width: 82px;
  aspect-ratio: 598 / 549;
  display: grid;
  place-items: center;
  background: transparent;
}

.login-showcase h1 {
  max-width: 700px;
  margin: 24px 0 16px;
  font-size: 42px;
  line-height: 1.08;
}

.login-showcase p {
  max-width: 680px;
  color: #dbe8e6;
  line-height: 1.65;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.showcase-grid span {
  min-height: 54px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 800;
}

.login-panel {
  padding: 36px;
  background: rgba(255, 253, 248, 0.96);
  display: grid;
  align-content: center;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  border-radius: 14px;
  background: #eaf0f2;
}

.login-tab {
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.login-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(19, 33, 44, 0.10);
}

.login-form {
  display: none;
  gap: 14px;
}

.login-form.active-login {
  display: grid;
}

.login-form h2 {
  margin: 0;
  font-size: 26px;
}

.login-form p {
  margin: -4px 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.app-shell {
  display: grid;
  grid-template-columns: 306px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(11, 28, 42, 0.98) 0%, rgba(20, 49, 66, 0.98) 58%, rgba(13, 23, 33, 0.99) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 18px 0 40px rgba(19, 33, 44, 0.10);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7e8, #d9fff4);
  color: var(--teal);
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.side-card small {
  margin-top: 4px;
  color: #bdd2dd;
  font-size: 13px;
}

.nav {
  display: grid;
  gap: 7px;
  padding: 8px 4px;
}

.nav-item {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0 12px;
  background: transparent;
  color: #d7e4eb;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(18, 163, 137, 0.12));
  color: #ffffff;
}

.nav-item.active {
  box-shadow: inset 4px 0 0 var(--amber), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: #d9fff4;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-card {
  margin-top: auto;
  min-height: 96px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 163, 137, 0.16), rgba(57, 117, 215, 0.12)),
    rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #54e095;
  box-shadow: 0 0 0 6px rgba(84, 224, 149, 0.16);
}

.main {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 32px;
  line-height: 1.12;
}

h2 {
  font-size: 21px;
  line-height: 1.22;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #cbe7df;
}

.top-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tenant-select {
  min-width: 280px;
}

.top-home-btn {
  display: none;
}

label {
  display: grid;
  gap: 7px;
}

label span,
.inline-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 13px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

input,
select {
  height: 44px;
}

textarea {
  min-height: 84px;
  padding: 11px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.dual-action-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.auto-cari-btn {
  min-width: 168px;
}

.primary-btn,
.soft-btn,
.icon-btn,
.hero-action {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-weight: 900;
}

.primary-btn {
  padding: 0 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.22);
}

.soft-btn,
.icon-btn {
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.icon-btn {
  width: 46px;
  padding: 0;
  font-size: 18px;
}

.wide {
  width: 100%;
}

.view {
  display: none;
}

.active-view {
  display: grid;
  gap: 18px;
}

.hero-band {
  min-height: 190px;
  padding: 26px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.admin-hero {
  background:
    linear-gradient(135deg, rgba(19, 33, 44, 0.96), rgba(57, 117, 215, 0.78)),
    #13212c;
}

.customer-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(211, 93, 60, 0.78)),
    #0f766e;
}

.hero-band h2 {
  max-width: 850px;
  margin: 8px 0 10px;
  font-size: 30px;
}

.hero-band p {
  max-width: 820px;
  color: #eaf5f1;
  line-height: 1.55;
}

.hero-action {
  padding: 0 20px;
  color: var(--ink);
  background: #fff7e8;
}

.secondary-hero-action {
  border-color: rgba(255, 255, 255, 0.38);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.secondary-hero-action:hover {
  background: rgba(255, 255, 255, 0.22);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.panel {
  border: 1px solid rgba(217, 227, 234, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 36px rgba(19, 33, 44, 0.08);
}

.metric {
  min-height: 134px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  border-top: 5px solid var(--teal);
}

.metric span,
.metric small {
  color: var(--muted);
  font-weight: 800;
}

.metric strong {
  font-size: 31px;
  line-height: 1.1;
}

.tone-mint {
  border-top-color: var(--teal-2);
}

.tone-amber {
  border-top-color: var(--amber);
}

.tone-rose {
  border-top-color: var(--rose);
}

.tone-blue {
  border-top-color: var(--blue);
}

.grid-two,
.workflow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 18px;
}

.panel {
  padding: 20px;
  min-width: 0;
}

.premium-panel {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 255, 255, 0.92)),
    #ffffff;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 13px;
}

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.form-divider {
  min-height: 36px;
  display: flex;
  align-items: center;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-weight: 950;
 }

.field-static {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 12px;
  background: rgba(232, 247, 243, 0.72);
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.customer-list,
.module-strip,
.log-list,
.debt-mini-list,
.send-result {
  display: grid;
  gap: 10px;
}

.admin-customer-stack {
  display: grid;
  gap: 16px;
}

.portal-user-list {
  display: grid;
  gap: 10px;
}

.portal-user-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 120px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.customer-card,
.action-card,
.feature-pill,
.module-card,
.company-card,
.prepared-card,
.history-line,
.log-item,
.result-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.customer-card {
  min-height: 72px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.customer-card strong,
.module-card strong,
.history-line strong,
.log-item strong,
.debt-mini-list strong {
  display: block;
  margin-bottom: 4px;
}

.customer-card span span,
.module-card span,
.history-line span,
.log-item span,
.debt-mini-list span,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.sync-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-card em,
.module-card em {
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6f6f0;
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.customer-card em.warn {
  background: #fff0d5;
  color: #9a5a00;
}

.customer-card em.danger {
  background: #ffe1dc;
  color: #b42318;
}

.module-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-pill {
  min-height: 64px;
  padding: 16px;
  font-weight: 900;
  border-left: 5px solid var(--coral);
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-card {
  min-height: 92px;
  padding: 16px;
  text-align: left;
  border-left: 5px solid var(--teal);
}

.action-card strong,
.action-card span {
  display: block;
}

.action-card span {
  margin-top: 6px;
  color: var(--muted);
}

.debt-mini-list div,
.history-line,
.log-item {
  padding: 13px;
}

.debt-mini-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.empty {
  color: var(--muted);
}

.workflow-layout {
  align-items: start;
}

.action-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 13px;
}

.inline-field {
  min-width: 150px;
}

.check-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
}

.check-row input {
  width: 18px;
  height: 18px;
}

.inline-check {
  margin-top: 22px;
}

.result-box {
  min-height: 52px;
  padding: 14px;
  margin-bottom: 16px;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  background: #f5f8f9;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.amount {
  color: var(--rose);
  font-weight: 950;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.prepared-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.prepared-card p {
  color: var(--muted);
  line-height: 1.5;
}

.company-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-card,
.module-card {
  min-height: 116px;
  padding: 15px;
  display: grid;
  align-content: space-between;
}

.module-card {
  border-top: 5px solid #cfdbe3;
}

.module-card.enabled {
  border-top-color: var(--teal-2);
}

.module-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.row-action {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: #13212c;
  color: #ffffff;
  font-weight: 900;
}

.history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.inventory-history-detail {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-left: 5px solid var(--teal-2);
  border-radius: 12px;
  background: rgba(237, 250, 247, 0.64);
}

.inventory-history-detail h3 {
  margin: 4px 0;
}

.inventory-history-lines {
  min-width: 860px;
  margin-top: 12px;
}

.mini-hero {
  min-height: 166px;
}

.accounting-hero {
  background:
    linear-gradient(135deg, rgba(18, 70, 104, 0.98), rgba(15, 118, 110, 0.88) 56%, rgba(211, 93, 60, 0.82)),
    #124668;
}

.stock-hero {
  background: linear-gradient(135deg, #96620f, #0f766e);
}

.recurring-hero {
  background: linear-gradient(135deg, #1f4f7a, #d35d3c);
}

.inventory-hero {
  background:
    linear-gradient(135deg, rgba(23, 73, 88, 0.98), rgba(15, 118, 110, 0.92) 52%, rgba(242, 169, 59, 0.84)),
    #174958;
}

.inventory-hero-card {
  min-height: 142px;
  margin-bottom: 18px;
  padding: 28px 34px;
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-left: 5px solid var(--amber);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 252, 0.96));
  box-shadow: 0 18px 46px rgba(14, 43, 62, 0.08);
}

.inventory-hero-card > div:nth-child(2) {
  min-width: 0;
}

.inventory-hero-icon,
.inventory-toolbar-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #18bfa2, #06786d 70%);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.22);
}

.inventory-hero-icon {
  width: 62px;
  height: 62px;
}

.inventory-hero-icon svg,
.inventory-toolbar-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.inventory-hero-card h2 {
  margin: 4px 0 8px;
  font-size: 30px;
}

.inventory-hero-card p:last-child {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-weight: 850;
}

.inventory-fetch-btn {
  min-height: 50px;
  border-color: rgba(173, 110, 12, 0.32);
  color: #9a5a00;
  background: #fff;
}

.inventory-fetch-btn svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.gib-archive-hero {
  background:
    linear-gradient(135deg, rgba(29, 70, 129, 0.96), rgba(15, 118, 110, 0.90) 54%, rgba(242, 169, 59, 0.86)),
    #1d4681;
}

.inventory-toolbar {
  display: grid;
  grid-template-columns: 46px minmax(260px, 0.95fr) 1px minmax(320px, 1.05fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 0;
  border-top: 0;
  min-height: 112px;
}

.inventory-toolbar::before {
  content: none;
}

.inventory-toolbar-icon {
  grid-column: 1;
}

.inventory-toolbar label {
  grid-column: 2;
  min-width: 0;
}

.inventory-toolbar-divider {
  grid-column: 3;
  display: block;
  width: 1px;
  height: 54px;
  background: rgba(203, 216, 226, 0.95);
}

.inventory-toolbar-icon {
  width: 46px;
  height: 46px;
  color: #183646;
  background: #f4f8fa;
  box-shadow: none;
}

.inventory-sync {
  grid-column: 4;
  min-height: 46px;
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.inventory-sync span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 520px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
  overflow: visible;
}

.inventory-left-column {
  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;
  min-width: 0;
}

.inventory-entry-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 255px;
}

.barcode-stage {
  min-height: 255px;
  padding: 22px;
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-radius: 16px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 42%),
    #ffffff;
}

.barcode-stage .eyebrow svg,
.inventory-info-note svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.barcode-stage h2,
.inventory-manual-search h3 {
  margin: 5px 0;
  font-size: 20px;
}

.barcode-stage span,
.inventory-manual-search span {
  color: var(--muted);
  font-weight: 750;
}

.barcode-entry {
  min-height: 58px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.barcode-entry input {
  height: 58px;
  border: 2px solid rgba(15, 118, 110, 0.42);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  font-size: 20px;
  font-weight: 900;
}

.barcode-mark {
  width: 56px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 10px 0 0 10px;
  color: #ffffff !important;
  background: var(--teal);
}

.barcode-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.inventory-manual-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  min-height: 255px;
  padding: 22px;
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-radius: 18px;
  background: #ffffff;
}

.inventory-info-note {
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  color: #08766b;
  background: rgba(15, 118, 110, 0.07);
  font-size: 13px;
  font-weight: 850;
}

.inventory-manual-search .eyebrow svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.inventory-search-results {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  align-content: start;
}

.inventory-stock-card {
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
}

.inventory-stock-card span {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 5px 14px;
}

.inventory-stock-card strong {
  grid-column: 1 / -1;
  font-size: 15px;
}

.inventory-stock-card small {
  color: var(--muted);
  font-weight: 800;
}

.inventory-stock-card small b {
  color: #183646;
}

.inventory-stock-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 950;
}

.inventory-summary-panel {
  position: sticky;
  top: 18px;
  display: grid;
  align-content: start;
  gap: 12px;
  border-top: 5px solid var(--teal-2);
  box-shadow: 0 18px 46px rgba(14, 43, 62, 0.10);
  min-width: 0;
  height: fit-content;
}

.inventory-summary-panel .panel-head {
  align-items: center;
}

.inventory-summary-panel .panel-head h2 {
  text-transform: uppercase;
  font-size: 20px;
}

.inventory-summary-panel .panel-head svg,
.inventory-mode-note svg,
.inventory-list-head .eyebrow svg,
.inventory-summary-panel button svg {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.inventory-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.inventory-metric-grid div {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  align-content: space-between;
  background: #ffffff;
}

.inventory-metric-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-metric-grid strong {
  font-size: 24px;
}

.inventory-mode-note {
  min-height: 74px;
  padding: 12px;
  border: 1px solid #c9dfef;
  border-radius: 10px;
  display: grid;
  gap: 4px;
  color: #1f4f7a;
  background: #eef7fd;
}

.inventory-mode-note.live {
  border-color: #f0c5b9;
  color: #a93f25;
  background: #fff1ec;
}

.inventory-mode-note span {
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.inventory-result {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.inventory-list-head {
  align-items: center;
}

.inventory-list-panel {
  margin-top: 18px;
  border-top: 0;
  box-shadow: 0 18px 46px rgba(14, 43, 62, 0.08);
  min-height: 285px;
}

.inventory-list-panel .table-wrap {
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-radius: 14px;
}

.inventory-list-head h2 {
  font-size: 30px;
  letter-spacing: 0;
}

.inventory-count-badge {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #075e52;
  background: #dff6ef;
  font-size: 14px;
  font-weight: 950;
}

.inventory-count-badge svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.inventory-table {
  min-width: 1280px;
}

.inventory-table td,
.inventory-table th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.inventory-table th {
  vertical-align: middle;
}

.inventory-table th svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.inventory-row-no {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #122f3d;
  font-weight: 950;
}

.inventory-table-footer {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 2px 0;
  color: var(--muted);
  font-weight: 850;
}

.inventory-table-footer div {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.inventory-table-footer strong {
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 10px;
  color: var(--teal);
  background: #effaf7;
}

.inventory-table-footer .tiny {
  min-height: 36px;
  padding: 0 12px;
}

.inventory-table-footer select {
  width: 120px;
}

.inventory-meta {
  display: inline-flex;
  margin: 5px 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.inventory-meta b {
  margin-right: 4px;
  color: #183646;
}

.stock-negative {
  color: #b42318;
}

.stock-alert {
  width: max-content;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  display: block;
  color: #b42318;
  background: #ffe7e2;
  font-size: 11px;
  font-weight: 950;
}

.inventory-qty-input {
  width: 150px;
  min-height: 42px;
  font-weight: 950;
}

.movement-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.positive {
  color: #087443;
}

.negative {
  color: #b42318;
}

.equal {
  color: #3975d7;
}

.waiting {
  color: var(--muted);
}

.movement-chip.positive {
  background: #e4f6ed;
}

.movement-chip.negative {
  background: #ffe7e2;
}

.movement-chip.equal {
  background: #e6f0ff;
}

.movement-chip.waiting {
  background: #eef3f5;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e8f3f0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.status-chip.waiting {
  background: #fff0d5;
  color: #9a5a00;
}

.status-chip.danger {
  background: #ffe1dc;
  color: #b42318;
  margin: 2px;
}

.status-chip.info-chip {
  background: #e8f1ff;
  color: #2454a6;
}

.compact-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.compact-metrics .metric {
  min-height: 112px;
}

.accounting-workspace {
  border-top: 5px solid var(--teal-2);
}

.year-switcher {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.year-switcher strong {
  min-width: 64px;
  color: var(--teal);
  font-size: 18px;
  text-align: center;
}

.year-switcher .icon-btn {
  width: 36px;
  min-height: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--teal);
  font-size: 25px;
}

.month-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}

.month-button {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(57, 117, 215, 0.18);
  border-radius: 12px;
  background: linear-gradient(145deg, #ffffff, #f4f8fa);
  color: var(--ink);
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.month-button:hover {
  border-color: rgba(15, 118, 110, 0.52);
  transform: translateY(-2px);
}

.month-button.active {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.month-button strong,
.month-button span {
  display: block;
}

.month-button span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.month-button.active span {
  color: #dceeff;
}

.package-form {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(245, 248, 249, 0.76);
}

.vat-filter {
  display: grid;
  gap: 13px;
  margin-top: 4px;
  padding: 16px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 247, 243, 0.84), rgba(255, 247, 232, 0.72));
}

.vat-filter h3 {
  margin: 4px 0;
  font-size: 18px;
}

.vat-filter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.vat-option-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(78px, 1fr));
  gap: 9px;
}

.vat-option {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 12px;
  background: #ffffff;
  color: var(--teal);
}

.vat-option input {
  width: 17px;
  height: 17px;
}

.vat-option strong {
  font-size: 15px;
}

.package-note {
  border-left: 5px solid var(--teal-2);
}

.invoice-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(57, 117, 215, 0.20);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 243, 255, 0.88), rgba(232, 247, 243, 0.72));
}

.invoice-command-bar strong,
.invoice-command-bar span {
  display: block;
}

.invoice-command-bar span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.compact-command-bar {
  justify-content: flex-end;
}

.invoice-list-panel {
  border-top: 5px solid var(--blue);
}

.invoice-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.invoice-search-wrap span {
  min-width: max-content;
  padding: 8px 11px;
  border-radius: 999px;
  background: #e8f3f0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.invoice-table {
  min-width: 1180px;
}

.invoice-table-wrap {
  max-height: 640px;
}

.invoice-table td {
  line-height: 1.4;
}

.direction-chip,
.document-chip {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 900;
}

.direction-chip.incoming {
  background: #e7f1ff;
  color: #245ca8;
}

.direction-chip.outgoing {
  background: #e6f6f0;
  color: #0f766e;
}

.document-chip.efatura {
  background: #fff0d5;
  color: #935900;
}

.document-chip.earsiv {
  background: #ffe1dc;
  color: #a43828;
}

.invoice-download {
  background: linear-gradient(135deg, var(--teal), var(--blue));
}

.gib-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(380px, 0.62fr);
  gap: 18px;
  align-items: start;
}

.gib-archive-main {
  border-top: 5px solid var(--blue);
}

.document-hero {
  background:
    linear-gradient(135deg, rgba(199, 61, 102, 0.94), rgba(15, 118, 110, 0.78)),
    #c73d66;
}

.incoming-hero {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(57, 117, 215, 0.78)),
    #0f766e;
}

.incoming-studio {
  width: min(100%, 1760px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.incoming-studio-top {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(760px, 0.95fr);
  gap: 18px;
  align-items: center;
  min-height: 128px;
  padding: 18px 20px;
  border: 1px solid rgba(188, 207, 219, 0.88);
  border-top: 5px solid var(--teal);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 250, 0.94));
  box-shadow: 0 18px 42px rgba(14, 43, 62, 0.10);
}

.incoming-command-panel,
.incoming-board {
  border: 1px solid rgba(188, 207, 219, 0.88);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(246, 251, 250, 0.94));
  box-shadow: 0 18px 42px rgba(14, 43, 62, 0.10);
}

.incoming-studio-title {
  min-height: 0;
  padding: 0;
  display: block;
  align-items: center;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.incoming-studio-title h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 1.55vw, 31px);
  line-height: 1.05;
}

.incoming-studio-title p:last-child {
  margin: 0;
  max-width: 900px;
  color: var(--muted);
  font-weight: 900;
}

.incoming-studio-metrics {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(165px, 1fr));
  gap: 9px;
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 0;
}

.incoming-metric-card {
  min-height: 78px;
  border: 1px solid rgba(203, 216, 226, 0.94);
  border-radius: 14px;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 250, 252, 0.86));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.incoming-metric-card.tone-amber {
  border-color: rgba(242, 169, 59, 0.45);
  background: linear-gradient(135deg, rgba(255, 250, 239, 0.98), rgba(255, 255, 255, 0.88));
}

.incoming-metric-card.tone-teal {
  border-color: rgba(15, 118, 110, 0.36);
  background: linear-gradient(135deg, rgba(235, 250, 246, 0.98), rgba(255, 255, 255, 0.88));
}

.incoming-metric-card.tone-blue {
  border-color: rgba(57, 117, 215, 0.38);
  background: linear-gradient(135deg, rgba(238, 246, 255, 0.98), rgba(255, 255, 255, 0.88));
}

.incoming-metric-card.tone-total {
  border-color: rgba(15, 118, 110, 0.46);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(57, 117, 215, 0.08)),
    #ffffff;
}

.incoming-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #169f90);
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.20);
}

.tone-amber .incoming-metric-icon {
  background: linear-gradient(135deg, #d88a14, #f2a93b);
  box-shadow: 0 10px 18px rgba(216, 138, 20, 0.20);
}

.tone-blue .incoming-metric-icon {
  background: linear-gradient(135deg, #2465c4, #3975d7);
  box-shadow: 0 10px 18px rgba(36, 101, 196, 0.20);
}

.tone-total .incoming-metric-icon {
  background: linear-gradient(135deg, #0f766e, #2db7a5);
}

.incoming-metric-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.incoming-studio-metrics .incoming-metric-icon {
  color: #ffffff;
}

.incoming-studio-metrics span,
.incoming-board-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
}

.incoming-studio-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(20px, 1.25vw, 25px);
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.incoming-metric-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.incoming-metric-card.tone-total strong {
  font-size: clamp(17px, 1vw, 20px);
  letter-spacing: 0;
}

.incoming-command-panel {
  padding: 14px;
  display: grid;
  grid-template-columns: 170px 170px 190px minmax(280px, 1fr) 280px;
  gap: 12px;
  align-items: end;
  border-top: 5px solid var(--amber);
}

.incoming-search-field {
  min-width: 0;
}

.incoming-system-note {
  border-left: 5px solid var(--teal);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-weight: 950;
  box-shadow: 0 10px 26px rgba(14, 43, 62, 0.06);
}

.incoming-studio-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.incoming-board {
  padding: 18px;
  overflow: hidden;
}

.incoming-board-list {
  border-top: 5px solid var(--blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.96));
  box-shadow: 0 22px 60px rgba(14, 43, 62, 0.12);
}

.incoming-board-detail {
  position: sticky;
  top: 12px;
  border-top: 5px solid var(--teal);
}

.incoming-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.incoming-board-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.1;
}

.title-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  box-shadow: 0 12px 22px rgba(15, 118, 110, 0.16);
}

.th-icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  margin-right: 7px;
  border-radius: 8px;
  vertical-align: middle;
  background: #e8f1ff;
  color: #2454a6;
}

.incoming-board-head > span:not(.status-chip) {
  border-radius: 999px;
  padding: 8px 12px;
  background: #e8f1ff;
  color: #2454a6;
}

.incoming-empty-state {
  min-height: 280px;
  border: 1px dashed rgba(119, 143, 159, 0.55);
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(41, 117, 215, 0.10), transparent 36%),
    rgba(248, 252, 253, 0.92);
  color: var(--muted);
  font-weight: 900;
}

.incoming-empty-state strong {
  color: var(--ink);
  font-size: 20px;
}

.incoming-transferred-block {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(203, 216, 226, 0.9);
}

.incoming-board-head.mini h3 {
  font-size: 18px;
}

.compact-history-table .invoice-table th,
.compact-history-table .invoice-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.transferred-row {
  background: linear-gradient(90deg, rgba(232, 246, 237, 0.82), rgba(255, 255, 255, 0.92));
}

.incoming-history-empty {
  border: 1px dashed rgba(119, 143, 159, 0.45);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  font-weight: 900;
  background: rgba(248, 252, 253, 0.82);
}

.incoming-queue-table,
.compact-history-table {
  border: 1px solid rgba(188, 207, 219, 0.9);
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.incoming-queue-table {
  max-height: 560px;
}

.incoming-queue-table .invoice-table th,
.compact-history-table .invoice-table th {
  background: linear-gradient(180deg, #f8fbfd, #eef5f8);
  color: #52687c;
  font-size: 12px;
  letter-spacing: 0;
}

.incoming-queue-table .invoice-table td {
  padding-top: 16px;
  padding-bottom: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 23, 36, 0.62);
  backdrop-filter: blur(8px);
}

.incoming-modal-window {
  width: min(1500px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(203, 216, 226, 0.9);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f7fbfb);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.incoming-invoice-hero {
  padding: 18px 20px 22px;
  color: #eaf6ff;
  background:
    radial-gradient(circle at 86% 75%, rgba(28, 195, 167, 0.48), transparent 22%),
    linear-gradient(135deg, #10233a, #123856 56%, #0f2436);
}

.incoming-hero-topline,
.incoming-hero-main,
.incoming-hero-actions,
.incoming-hero-meta {
  display: flex;
  align-items: center;
}

.incoming-hero-topline {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.incoming-hero-topline p {
  margin: 0;
  color: #a9bed2;
  font-size: 13px;
  font-weight: 950;
}

.incoming-hero-topline h2 {
  margin: 3px 0 0;
  color: #fff;
  font-size: 25px;
  line-height: 1;
}

.incoming-hero-actions {
  gap: 12px;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.10);
  color: #cde3f7;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dialog-layer {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}

.dialog-layer.active {
  pointer-events: auto;
}

.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 15, 26, 0.50);
  backdrop-filter: blur(5px);
}

.confirm-dialog {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(560px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  border: 1px solid rgba(196, 210, 223, 0.92);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: 0 28px 80px rgba(4, 20, 36, 0.34);
  overflow: hidden;
}

.confirm-dialog.info {
  box-shadow: 0 28px 80px rgba(18, 88, 147, 0.22);
}

.confirm-dialog.warning {
  box-shadow: 0 28px 80px rgba(196, 127, 21, 0.24);
}

.confirm-dialog.danger {
  box-shadow: 0 28px 80px rgba(187, 43, 36, 0.22);
}

.confirm-dialog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 12px;
}

.confirm-dialog-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #1787d5, #19b9a4);
  box-shadow: 0 12px 24px rgba(23, 135, 213, 0.22);
}

.confirm-dialog.warning .confirm-dialog-badge {
  background: linear-gradient(135deg, #f4a41c, #f07b29);
  box-shadow: 0 12px 24px rgba(244, 164, 28, 0.24);
}

.confirm-dialog.danger .confirm-dialog-badge {
  background: linear-gradient(135deg, #dc3f31, #b42318);
  box-shadow: 0 12px 24px rgba(180, 35, 24, 0.24);
}

.confirm-dialog-copy {
  min-width: 0;
  flex: 1;
}

.confirm-dialog-eyebrow {
  margin: 0 0 4px;
  color: #6b7f93;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.confirm-dialog-copy h2 {
  margin: 0;
  color: #10243b;
  font-size: 24px;
  line-height: 1.15;
}

.confirm-dialog-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #eef5fa;
  color: #4f647a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.confirm-dialog-message,
.confirm-dialog-detail {
  padding: 0 22px;
  color: #30475e;
  font-size: 16px;
  line-height: 1.6;
}

.confirm-dialog-message {
  padding-bottom: 10px;
}

.confirm-dialog-detail {
  padding-bottom: 2px;
  color: #6b7f93;
  font-size: 14px;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 22px 22px;
}

.danger-confirm-btn {
  background: linear-gradient(135deg, #cf2f28, #b42318);
  box-shadow: 0 16px 28px rgba(180, 35, 24, 0.24);
}

.incoming-hero-main {
  justify-content: space-between;
  gap: 24px;
}

.incoming-seller-block {
  min-width: 0;
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.incoming-seller-badge {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffe66d;
  background: linear-gradient(135deg, #0057a8, #003f7d);
  font-size: 13px;
  font-weight: 1000;
  overflow: hidden;
}

.incoming-seller-block strong {
  max-width: 580px;
  color: #fff;
  font-size: 24px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.incoming-hero-meta {
  justify-content: flex-end;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.incoming-hero-meta div {
  min-width: 128px;
  padding: 12px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.incoming-hero-meta div:first-child {
  border-left: 0;
}

.incoming-hero-meta span {
  display: block;
  color: #b8ccdc;
  font-size: 12px;
  font-weight: 900;
}

.incoming-hero-meta strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
  overflow-wrap: anywhere;
}

.incoming-hero-meta .incoming-total-box {
  min-width: 190px;
  background: linear-gradient(135deg, rgba(19, 162, 139, 0.92), rgba(44, 196, 172, 0.82));
}

.incoming-hero-meta .incoming-total-box strong {
  font-size: 28px;
  line-height: 1;
}

.incoming-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(203, 216, 226, 0.92);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.13), rgba(57, 117, 215, 0.10)),
    #fff;
}

.incoming-modal-head h2 {
  margin: 2px 0 4px;
  font-size: 24px;
}

.incoming-modal-head span {
  color: var(--muted);
  font-weight: 900;
}

.incoming-modal-body {
  overflow: auto;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(245, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.incoming-modal-body .single-column-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.incoming-modal-body .invoice-approval-card,
.incoming-modal-body .vat-breakdown,
.incoming-modal-body .incoming-vat-dashboard,
.incoming-modal-body .incoming-line-editor,
.incoming-modal-body .search-result-list,
.incoming-modal-body .button-row,
.incoming-modal-body label:has(textarea) {
  grid-column: 1 / -1;
}

.incoming-vat-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 12px;
}

.incoming-vat-table,
.incoming-vat-donut-card,
.incoming-detail-form label,
.incoming-line-editor,
.incoming-modal-body .vat-breakdown,
.incoming-modal-body .search-result-list {
  border: 1px solid rgba(203, 216, 226, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 37, 53, 0.05);
}

.incoming-vat-table {
  padding: 12px;
}

.incoming-vat-table-head,
.incoming-vat-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(160px, auto);
  gap: 12px;
  align-items: center;
}

.incoming-vat-table-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  padding: 0 8px 8px;
}

.incoming-vat-row {
  min-height: 42px;
  border-top: 1px solid rgba(203, 216, 226, 0.72);
  padding: 8px;
}

.incoming-vat-row strong {
  position: relative;
  color: var(--teal);
  font-weight: 1000;
}

.incoming-vat-row strong::after {
  content: "";
  display: block;
  height: 8px;
  width: 86px;
  margin-top: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b6f2dc, #82e6ca);
}

.incoming-vat-row span,
.incoming-vat-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 950;
}

.incoming-vat-row em {
  text-align: right;
}

.incoming-vat-donut-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 12px;
}

.incoming-vat-donut-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
}

.incoming-vat-donut-card strong {
  color: var(--ink);
  font-weight: 1000;
}

.incoming-vat-donut {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 var(--vat-share), #62d9be var(--vat-share) 100%);
  position: relative;
}

.incoming-vat-donut::after {
  content: "";
  position: absolute;
  inset: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(203, 216, 226, 0.8);
}

.incoming-detail-form label {
  padding: 10px;
}

.incoming-modal-body .button-row {
  position: sticky;
  bottom: -18px;
  z-index: 2;
  margin: 0 -18px -18px;
  padding: 12px 18px;
  justify-content: flex-end;
  background: rgba(248, 251, 252, 0.96);
  border-top: 1px solid rgba(203, 216, 226, 0.92);
  backdrop-filter: blur(8px);
}

.danger-btn {
  border: 1px solid rgba(199, 48, 48, 0.22);
  border-radius: 14px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #c73030, #a91f1f);
  color: #fff;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(199, 48, 48, 0.20);
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.incoming-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.incoming-workspace .incoming-control-panel,
.incoming-workspace .incoming-list-panel,
.incoming-approval-panel {
  width: min(100%, 1540px);
  margin-inline: auto;
}

.incoming-control-panel {
  border-top: 5px solid var(--teal);
}

.incoming-list-panel {
  border-top: 5px solid var(--blue);
}

.incoming-approval-panel {
  border-top: 5px solid var(--amber);
}

.incoming-control-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(170px, 0.8fr) minmax(220px, 1fr) minmax(250px, 0.9fr);
  gap: 12px;
  align-items: end;
}

.incoming-list-head {
  gap: 18px;
  align-items: stretch;
}

.incoming-search-bar {
  flex: 1;
  max-width: 780px;
  margin: 0;
}

.incoming-search-bar .search-input {
  min-width: 320px;
}

.incoming-approval-panel .single-column-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.incoming-approval-panel .invoice-approval-card,
.incoming-approval-panel .vat-breakdown,
.incoming-approval-panel .incoming-line-editor,
.incoming-approval-panel .search-result-list,
.incoming-approval-panel .button-row,
.incoming-approval-panel .gib-detail-card,
.incoming-approval-panel label:has(textarea) {
  grid-column: 1 / -1;
}

.document-main {
  border-top: 5px solid var(--teal-2);
}

.document-preview {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid rgba(217, 227, 234, 0.92);
  border-radius: 16px;
  background: #f8fbfc;
}

.document-pdf-preview {
  height: 560px;
  max-height: 70vh;
}

.empty-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.single-column-form {
  grid-template-columns: 1fr;
}

.check-card {
  min-height: 54px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(232, 247, 243, 0.88), rgba(255, 247, 232, 0.72));
}

.check-card input {
  width: 18px;
  height: 18px;
}

.check-card span {
  color: var(--ink);
  line-height: 1.35;
}

.gib-range-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 9px;
}

.compact-month {
  min-height: 62px;
  border-left-color: var(--amber);
}

.gib-detail-card {
  margin-top: 14px;
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(57, 117, 215, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(232, 243, 255, 0.82), rgba(255, 253, 248, 0.94)),
    #ffffff;
}

.gib-detail-card h3 {
  margin: 0;
  font-size: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(96px, 0.45fr) minmax(0, 1fr);
  gap: 9px 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-chip.ready {
  background: #e4f6ed;
  color: #087443;
}

.sales-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.sales-card {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  border-top: 5px solid var(--blue);
  display: grid;
  align-content: space-between;
}

.sales-card span,
.sales-card p {
  color: var(--muted);
}

.sales-card strong {
  font-size: 18px;
}

.sales-card em {
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: var(--coral);
  font-style: normal;
  font-weight: 900;
}

.recurring-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.slim-head {
  margin: 18px 0 12px;
}

.search-input {
  min-width: 260px;
}

.stock-result,
.template-list,
.search-result-list {
  display: grid;
  gap: 10px;
}

.stock-result {
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.stock-pick-card,
.template-card,
.search-result-card,
.selected-cari {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px;
  background: #ffffff;
}

.stock-pick-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.stock-pick-card strong,
.stock-pick-card small,
.search-result-card strong,
.search-result-card span,
.template-card strong,
.template-card span {
  display: block;
}

.stock-pick-card small,
.search-result-card span,
.template-card span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.stock-pick-card em {
  color: var(--teal);
  font-style: normal;
  font-weight: 950;
}

.template-card {
  display: grid;
  gap: 12px;
  border-left: 5px solid var(--teal-2);
}

.search-result-card {
  text-align: left;
  border-left: 5px solid var(--blue);
}

.selected-cari {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
  border-left: 5px solid var(--teal-2);
}

.selected-cari span {
  color: var(--muted);
  font-weight: 800;
}

.inline-action-note {
  margin-top: 12px;
  border: 1px dashed rgba(15, 118, 110, 0.28);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(239, 248, 255, 0.96));
}

.inline-action-note strong,
.inline-action-note span {
  display: block;
}

.inline-action-note strong {
  color: var(--ink);
}

.inline-action-note span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.invoice-lines {
  margin-top: 14px;
}

.incoming-lines-list,
.expense-line-preview,
.vat-breakdown {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.incoming-line-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 227, 234, 0.92);
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
}

.incoming-line-row.selected {
  border-color: rgba(15, 118, 110, 0.55);
  border-left-color: var(--teal);
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.12);
}

.incoming-line-row strong,
.incoming-line-row small {
  display: block;
}

.incoming-line-row small {
  margin-top: 4px;
  color: var(--muted);
}

.incoming-line-row em {
  padding: 6px 10px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.incoming-line-row em.ok {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.incoming-line-row em.warn {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}

.vat-breakdown,
.expense-line-preview {
  padding: 12px;
  border: 1px solid rgba(217, 227, 234, 0.92);
  border-radius: 14px;
  background: rgba(248, 251, 252, 0.9);
}

.vat-breakdown div,
.expense-line-preview div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.expense-line-preview div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.vat-breakdown span {
  font-weight: 950;
  color: var(--teal);
}

.vat-breakdown em,
.expense-line-preview small {
  color: var(--muted);
  font-style: normal;
  font-weight: 850;
}

.mini-input {
  width: 120px;
}

.small-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.danger-text {
  color: #b42318;
}

.danger-action {
  background: #b42318;
}

.danger-border {
  border-color: rgba(180, 35, 24, 0.38);
  color: #b42318;
}

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.padded {
  padding: 14px;
}

.payload-preview {
  max-height: 260px;
  overflow: auto;
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 12px;
  background: #13212c;
  color: #eaf5f1;
  font-size: 12px;
}

.health-panel {
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 34%),
    #ffffff;
}

.health-score {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  font-size: 34px;
}

.health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.health-item {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  display: grid;
  align-content: space-between;
}

.health-item strong {
  font-size: 34px;
}

.health-item span {
  font-weight: 950;
}

.health-item p {
  color: var(--muted);
  line-height: 1.45;
}

.health-bar {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8eef2;
}

.health-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-2);
}

.health-item.warn .health-bar i {
  background: var(--amber);
}

.health-item.bad .health-bar i {
  background: var(--rose);
}

.form-error {
  min-height: 22px;
  color: #b42318;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 180;
  max-width: 420px;
  padding: 14px 16px;
  border-radius: 14px;
  color: #ffffff;
  background: #13212c;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.login-screen {
  background:
    radial-gradient(circle at 18% 18%, rgba(105, 184, 245, 0.22), transparent 28%),
    linear-gradient(135deg, #061d36, #1d405f 55%, #0d2335);
  padding: 34px;
}

.login-shell {
  position: relative;
  width: min(820px, calc(100vw - 76px));
  min-height: min(1180px, calc(100vh - 76px));
  grid-template-columns: 1fr;
  border: 0;
  border-radius: 64px;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(3, 17, 31, 0.42);
}

.login-shell::after {
  content: "";
  position: absolute;
  left: -92px;
  right: -92px;
  bottom: -150px;
  height: 300px;
  border-radius: 50% 50% 0 0;
  background: #ff865f;
  pointer-events: none;
}

.login-showcase {
  position: relative;
  min-height: 470px;
  padding: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}

.login-showcase::before {
  content: "";
  position: absolute;
  left: -130px;
  top: -168px;
  width: 870px;
  height: 510px;
  border-radius: 0 0 70% 62%;
  background: #86c4f4;
}

.login-showcase::after {
  content: "";
  position: absolute;
  right: 90px;
  bottom: 70px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 31%, #69b9f7 33% 48%, transparent 50%),
    conic-gradient(from 0deg, #69b9f7 0 12%, transparent 12% 20%, #69b9f7 20% 32%, transparent 32% 40%, #69b9f7 40% 52%, transparent 52% 60%, #69b9f7 60% 72%, transparent 72% 80%, #69b9f7 80% 92%, transparent 92%);
  opacity: 0.95;
}

.login-showcase h1,
.login-showcase p,
.login-showcase .eyebrow,
.showcase-grid {
  display: none;
}

.product-badge {
  position: relative;
  z-index: 1;
  width: 292px;
  aspect-ratio: 598 / 549;
  display: grid;
  place-items: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dia-login-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 28px 34px rgba(42, 88, 151, 0.22));
}

.login-panel {
  position: relative;
  z-index: 1;
  width: min(530px, calc(100% - 116px));
  margin: -10px auto 0;
  padding: 0 0 102px;
  background: transparent;
  align-content: start;
}

.login-tabs {
  margin-bottom: 20px;
  border-radius: 18px;
  background: #edf1f4;
}

.login-tab {
  height: 50px;
  border-radius: 14px;
  font-size: 16px;
}

.login-form h2,
.login-form p {
  display: none;
}

.login-form {
  gap: 16px;
}

.login-form label {
  position: relative;
}

.login-form label span {
  display: none;
}

.login-form label::before {
  position: absolute;
  left: 12px;
  top: 50%;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #1f2d3a;
  font-size: 22px;
  font-weight: 900;
  transform: translateY(-50%);
}

.login-form label:nth-of-type(1)::before {
  content: "♙";
}

.login-form label:nth-of-type(2)::before {
  content: "✱";
}

.login-form label input {
  height: 56px;
  border: 0;
  border-radius: 15px;
  padding-left: 62px;
  background: #eeeeee;
  color: #050d17;
  font-size: 23px;
  font-weight: 900;
}

.login-form label input::placeholder {
  color: #7a828c;
}

.login-form .primary-btn {
  min-height: 82px;
  margin-top: 30px;
  border-radius: 29px;
  background: #ff855f;
  color: #ffffff;
  font-size: 30px;
  box-shadow: 0 18px 34px rgba(255, 133, 95, 0.28);
}

.login-progress {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.login-progress.is-active {
  opacity: 1;
  transform: translateY(0);
}

.login-progress-text {
  min-height: 24px;
  color: #07831b;
  font-size: 18px;
  font-weight: 800;
}

.login-progress-track {
  position: relative;
  width: min(100%, 430px);
  height: 28px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 133, 95, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 133, 95, 0.22);
}

.login-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6b3b, #ff8617);
  box-shadow: 0 10px 26px rgba(255, 117, 47, 0.28);
  transition: width 260ms ease;
}

.login-progress-percent {
  width: min(100%, 430px);
  height: 0;
  margin: -32px auto 22px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  line-height: 28px;
  pointer-events: none;
  text-shadow: 0 1px 4px rgba(72, 34, 12, 0.25);
}

.login-footer-brand {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 34px;
  z-index: 1;
  color: #ffffff;
  font-size: 21px;
  font-weight: 950;
  text-align: center;
}

.customer-desktop-shell {
  display: block;
  min-height: 100vh;
  background: #e8edf3;
}

.customer-desktop-shell .sidebar {
  display: none;
}

.customer-desktop-shell .main {
  min-height: 100vh;
  padding: 0;
  background: #e8edf3;
}

.customer-desktop-shell .topbar {
  min-height: 35px;
  margin: 0;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #ffffff;
  background: #2d415b;
  border-bottom: 1px solid #9fb0c3;
}

.customer-desktop-shell .topbar > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.customer-desktop-shell .topbar > div:first-child::before {
  content: "dia";
  min-width: 55px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #3169b1 0 calc(100% - 4px), #f58b11 calc(100% - 4px) 100%);
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-transform: lowercase;
}

.customer-desktop-shell #topEyebrow {
  color: #b7dbff;
  text-transform: uppercase;
  font-size: 12px;
}

.customer-desktop-shell #pageTitle {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
}

.customer-desktop-shell .top-actions {
  margin-left: auto;
  gap: 8px;
}

.customer-desktop-shell .top-home-btn {
  display: inline-flex;
}

.customer-desktop-shell .soft-btn,
.customer-desktop-shell .icon-btn {
  min-height: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f8fbff;
  color: #142230;
}

.customer-desktop-shell .tenant-select {
  display: none;
}

.view-tabs {
  display: none;
}

.view-tabs.is-hidden {
  display: none;
}

.customer-desktop-shell .view-tabs {
  display: block;
  padding: 0 10px;
  border-bottom: 1px solid #b7c4d1;
  background: linear-gradient(180deg, #e5ecf3, #d7e0ea);
}

.view-tabs-strip {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 0 0;
}

.view-tab {
  min-width: 0;
  max-width: 290px;
  min-height: 35px;
  border: 1px solid #9fb0c3;
  border-bottom: 0;
  border-radius: 11px 11px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  background: linear-gradient(180deg, #f0f4f8, #d8e2ec);
  color: #27405b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.view-tab.active {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #132a44;
}

.view-tab-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #3c6fb1;
}

.view-tab-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.view-tab strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.view-tab-close {
  margin-left: auto;
  color: #7b8898;
  font-size: 19px;
  line-height: 1;
}

.customer-desktop-shell .view:not(#dashboard).active-view {
  min-height: calc(100vh - 74px);
  padding: 28px;
}

.customer-desktop-shell #dashboard.active-view {
  gap: 0;
}

.dia-desktop {
  position: relative;
  min-height: calc(100vh - 74px);
  padding: 42px 10px 350px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 26%),
    #e8edf3;
  overflow: hidden;
}

.dia-search-row {
  width: min(780px, calc(100% - 28px));
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 48px 48px 48px;
  align-items: center;
  gap: 12px;
}

.dia-search-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.dia-search-field span {
  color: #132a44;
  font-size: 18px;
  text-align: right;
  text-transform: none;
}

.dia-search-field input {
  height: 50px;
  border: 1px solid #94b8db;
  border-radius: 12px;
  background: #ffffff;
  font-size: 20px;
}

.dia-tool-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #1a314c;
}

.dia-tool-button svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.search-tool {
  color: #1490d1;
}

.delete-tool {
  color: #d11f1f;
}

.favorite-tool {
  color: #efb734;
}

.dia-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 30px 22px;
  align-items: start;
  padding: 0 28px 34px;
}

.desktop-module {
  min-height: 118px;
  border: 0;
  padding: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  background: transparent;
  color: #183451;
  text-align: center;
}

.desktop-module.is-filtered-out {
  display: none;
}

.desktop-module.selected .desktop-module-icon,
.dia-pane-item.selected span {
  outline: 3px solid rgba(57, 117, 215, 0.32);
  outline-offset: 3px;
  background: linear-gradient(180deg, #ffffff, #e8f3ff);
}

.desktop-module-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  border: 1px solid #c5d3df;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  box-shadow: 0 14px 24px rgba(29, 53, 79, 0.12);
}

.desktop-module-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.desktop-module strong {
  max-width: 130px;
  color: #203955;
  font-size: 16px;
  line-height: 1.18;
}

.desktop-module.tone-teal .desktop-module-icon { color: #0f766e; }
.desktop-module.tone-blue .desktop-module-icon { color: #3975d7; }
.desktop-module.tone-amber .desktop-module-icon { color: #d58512; }
.desktop-module.tone-rose .desktop-module-icon { color: #bf3f63; }
.desktop-module.tone-green .desktop-module-icon { color: #1f9a66; }

.dia-favorite-dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 38px;
  z-index: 8;
  transform: translateY(calc(-1 * var(--pane-offset, 0px)));
}

.dia-pane-handle {
  width: 44px;
  height: 24px;
  margin: 0 auto 8px;
  border: 2px solid #24394f;
  border-radius: 5px;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  place-content: center;
  gap: 4px;
  background: #f8fafc;
  cursor: ns-resize;
  box-shadow: 0 6px 16px rgba(31, 52, 77, 0.16);
}

.dia-pane-handle span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #596f86;
}

.dia-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  padding: 0 8px;
}

.dia-pane {
  height: clamp(230px, 24vh, 320px);
  min-height: 230px;
  border: 1px solid #9caebe;
  border-radius: 8px;
  background: #edf2f7;
  overflow: hidden;
}

.dia-pane header {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  color: #ffffff;
  background: #49668a;
  font-size: 18px;
}

.dia-pane header small {
  color: #ffd9d9;
  font-size: 12px;
  font-weight: 900;
}

.dia-pane.delete-mode {
  border-color: #d11f1f;
  box-shadow: 0 0 0 2px rgba(209, 31, 31, 0.12);
}

.dia-pane.delete-mode .dia-pane-item {
  color: #a41919;
  cursor: pointer;
}

.dia-pane-list {
  display: grid;
  gap: 0;
  padding: 8px 10px;
}

.dia-empty-pane {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: #62768c;
  font-size: 14px;
  font-weight: 850;
}

.dia-pane-item {
  min-height: 35px;
  border: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #25425f;
  text-align: left;
}

.dia-pane-item span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d4df;
  border-radius: 4px;
  background: #ffffff;
  color: #3975d7;
}

.dia-pane-item svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.dia-pane-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.dia-pane-summary div {
  min-height: 58px;
  padding: 8px;
  border: 1px solid #d4dee7;
  border-radius: 8px;
  background: #ffffff;
}

.dia-pane-summary span,
.dia-pane-summary strong {
  display: block;
}

.dia-pane-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.dia-pane-summary strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #132a44;
  font-size: 14px;
}

.dia-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-top: 1px solid #b7c4d1;
  background: #f8fafc;
  color: #1f344d;
  font-size: 14px;
}

.dia-statusbar strong {
  color: #1f344d;
}

.dia-statusbar em {
  margin-left: auto;
  color: #61758a;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .app-shell,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .side-card {
    margin-top: 0;
  }

  .metric-grid,
  .grid-two,
  .workflow-layout,
  .recurring-layout,
  .gib-archive-layout,
  .form-grid,
  .company-grid,
  .module-grid,
  .sales-board,
  .health-grid,
  .vat-option-grid,
  .month-strip,
  .gib-range-shortcuts,
  .inventory-toolbar,
  .inventory-screen-grid,
  .incoming-studio-top,
  .incoming-studio-main,
  .incoming-control-grid {
    grid-template-columns: 1fr 1fr;
  }

  .incoming-command-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .incoming-command-panel .primary-btn,
  .incoming-search-field {
    grid-column: 1 / -1;
  }

  .incoming-board-detail {
    position: static;
  }

  .incoming-modal-body .single-column-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .incoming-hero-main,
  .incoming-hero-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .incoming-hero-meta div,
  .incoming-hero-meta .incoming-total-box {
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .incoming-vat-dashboard {
    grid-template-columns: 1fr;
  }

  .incoming-studio-top {
    grid-template-columns: 1fr;
  }

  .incoming-studio-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-entry-panel {
    grid-template-columns: 1fr;
  }

  .inventory-summary-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .login-screen,
  .main {
    padding: 16px;
  }

  .login-showcase,
  .login-panel {
    padding: 24px;
  }

  .login-showcase h1 {
    font-size: 32px;
  }

  .topbar,
  .panel-head,
  .hero-band {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .top-actions,
  .button-row,
  .tenant-select,
  .primary-btn,
  .soft-btn,
  .inline-field {
    width: 100%;
  }

  .metric-grid,
  .grid-two,
  .workflow-layout,
  .recurring-layout,
  .gib-archive-layout,
  .form-grid,
  .company-grid,
  .module-grid,
  .action-grid,
  .sales-board,
  .health-grid,
  .module-strip,
  .showcase-grid,
  .vat-option-grid,
  .month-strip,
  .gib-range-shortcuts,
  .inventory-toolbar,
  .inventory-screen-grid,
  .inventory-manual-search,
  .nav {
    grid-template-columns: 1fr;
  }

  .barcode-entry {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .span-2,
  .span-3 {
    grid-column: span 1;
  }

  .stock-pick-card {
    grid-template-columns: 1fr;
  }

  .field-row,
  .selected-cari {
    grid-template-columns: 1fr;
  }

  .search-input {
    min-width: 0;
  }

  .invoice-command-bar,
  .invoice-search-wrap,
  .year-switcher {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 1180px) {
  .document-layout {
    grid-template-columns: 1fr;
  }

  .incoming-approval-panel .single-column-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-shell {
    width: min(820px, calc(100vw - 44px));
    min-height: min(1060px, calc(100vh - 44px));
  }

  .login-showcase {
    min-height: 410px;
  }

  .product-badge {
    width: 250px;
    aspect-ratio: 598 / 549;
  }

  .login-panel {
    width: min(540px, calc(100% - 104px));
  }

  .dia-module-grid {
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 24px 16px;
  }

  .dia-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .login-shell {
    width: min(100%, 560px);
    min-height: 760px;
    border-radius: 32px;
  }

  .login-shell::after {
    bottom: -150px;
    height: 235px;
  }

  .login-showcase {
    min-height: 320px;
    padding: 0;
  }

  .login-showcase::before {
    left: -150px;
    top: -178px;
    width: 620px;
    height: 390px;
  }

  .login-showcase::after {
    right: 42px;
    bottom: 46px;
  }

  .incoming-control-grid,
  .incoming-studio-top,
  .incoming-studio-main,
  .incoming-studio-metrics,
  .incoming-command-panel,
  .incoming-modal-body .single-column-form,
  .incoming-vat-table-head,
  .incoming-vat-row,
  .incoming-approval-panel .single-column-form {
    grid-template-columns: 1fr;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .incoming-modal-window {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }

  .incoming-modal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .incoming-studio-title {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .incoming-studio-title h2 {
    font-size: 24px;
  }

  .incoming-command-panel .primary-btn,
  .incoming-search-field {
    grid-column: auto;
  }

  .incoming-search-bar {
    max-width: none;
  }

  .incoming-search-bar .search-input {
    min-width: 0;
  }

  .product-badge {
    width: 190px;
    aspect-ratio: 598 / 549;
  }

  .login-panel {
    width: calc(100% - 52px);
    margin-top: -12px;
    padding: 0 0 82px;
  }

  .login-form label input {
    font-size: 17px;
  }

  .login-form .primary-btn {
    min-height: 66px;
    border-radius: 22px;
    font-size: 21px;
  }

  .login-footer-brand {
    bottom: 25px;
    font-size: 15px;
  }

  .customer-desktop-shell .topbar {
    min-height: auto;
    padding: 8px;
    align-items: stretch;
  }

  .customer-desktop-shell .main {
    padding: 0;
  }

  .customer-desktop-shell .topbar > div:first-child {
    flex-wrap: wrap;
  }

  .customer-desktop-shell .top-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .customer-desktop-shell .top-actions .soft-btn,
  .customer-desktop-shell .top-actions .icon-btn {
    width: auto;
  }

  .dia-desktop {
    padding: 22px 10px 52px;
    overflow: visible;
  }

  .dia-search-row {
    width: 100%;
    margin-bottom: 22px;
    grid-template-columns: 1fr 42px 42px 42px;
    gap: 8px;
  }

  .dia-search-field {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dia-search-field span {
    text-align: left;
  }

  .dia-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding: 0 0 26px;
  }

  .desktop-module-icon {
    width: 74px;
    height: 74px;
  }

  .desktop-module-icon svg {
    width: 48px;
    height: 48px;
  }

  .dia-bottom-grid {
    padding: 0;
  }

  .dia-favorite-dock {
    position: static;
    transform: none;
  }

  .dia-pane-summary {
    grid-template-columns: 1fr;
  }

  .dia-statusbar {
    position: static;
    flex-wrap: wrap;
    padding: 7px 10px;
  }

  .dia-statusbar em {
    margin-left: 0;
  }
}
