html {
  --lightningcss-light: ;
  --lightningcss-dark: initial;
  color-scheme: dark;
  background: #0d0e10;
  min-width: 320px;
  min-height: 100%;
}

#supplier-audit-details {
  margin-top: 18px;
  border: 1px solid #ff6b3d55;
  border-radius: 16px;
  background: #111216;
  overflow: hidden;
}
#supplier-audit-details > summary {
  cursor: pointer;
  color: #fff4ec;
  background: #ff6b3d17;
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 850;
}
#supplier-audit-details-content {
  display: grid;
  gap: 16px;
  padding: 16px;
}
.supplier-audit-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.supplier-audit-counts > div {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid #ffffff12;
  border-radius: 13px;
  background: #1a1b20;
}
.supplier-audit-counts strong {
  color: #ff8057;
  font-size: 22px;
}
.supplier-audit-counts span,
.supplier-audit-section > p,
.supplier-audit-invoice small {
  color: #a9abb1;
}
.supplier-audit-section {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid #ffffff12;
  border-radius: 14px;
  background: #17181c;
}
.supplier-audit-section h4,
.supplier-audit-section h5,
.supplier-audit-section p {
  margin: 0;
}
.supplier-audit-section h4 {
  color: #fff4ec;
  font-size: 17px;
}
.supplier-audit-group {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  background: #0f1013;
}
.supplier-audit-group h5 {
  color: #ffc2ad;
  font-size: 14px;
}
.supplier-audit-invoice {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(220px, 1.5fr) minmax(220px, 2fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  background: #202126;
}
.supplier-audit-invoice-identity {
  display: grid;
  gap: 4px;
}
.supplier-audit-invoice-identity span,
.supplier-audit-invoice-figures {
  color: #c7c8cc;
  font-size: 12px;
}
.supplier-audit-open-button,
.invoice-audit-return-button {
  cursor: pointer;
  color: #fff;
  background: #ff6b3d;
  border: 1px solid #ff8d68;
  border-radius: 11px;
  min-height: 38px;
  padding: 8px 13px;
  font-weight: 850;
}
.supplier-audit-open-button:disabled,
.invoice-audit-return-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.supplier-audit-empty {
  color: #53cf8b;
  padding: 10px 12px;
  border-radius: 10px;
  background: #53cf8b12;
}
.supplier-audit-names {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.supplier-audit-names span {
  color: #ffd0bf;
  background: #ff6b3d1a;
  border: 1px solid #ff6b3d40;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .supplier-audit-counts {
    grid-template-columns: 1fr;
  }
  .supplier-audit-invoice {
    grid-template-columns: 1fr;
  }
  .supplier-audit-open-button,
  .invoice-audit-return-button {
    width: 100%;
  }
}

/* Product separation by category and year */
.product-separation-page {
  display: grid;
  gap: 18px;
}
.separation-summary,
.separation-years-card,
.separation-category-card {
  border: 1px solid #2d3037;
  background: #17181c;
  border-radius: 22px;
}
.separation-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
}
.separation-summary h2,
.separation-years-card h3 {
  margin: 6px 0 4px;
}
.separation-summary p,
.separation-note {
  color: #9297a3;
  margin: 0;
}
.separation-total {
  min-width: 220px;
  border-radius: 18px;
  padding: 16px 20px;
  background: #2c1e1a;
  text-align: right;
}
.separation-total small,
.separation-total strong {
  display: block;
}
.separation-total small {
  color: #adb1bb;
  margin-bottom: 5px;
}
.separation-total strong {
  color: #ff835d;
  font-size: 26px;
}
.separation-year-controls {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.separation-year-controls button,
.separation-year-bars button {
  border: 1px solid #333740;
  background: #1c1e23;
  color: #d6d8de;
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  white-space: nowrap;
}
.separation-year-controls button.active,
.separation-year-bars button.active {
  border-color: #ff6b3d;
  color: #fff4ec;
  background: #3a211a;
}
.separation-years-card {
  padding: 20px;
}
.separation-year-bars {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.separation-year-bars button {
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  border-radius: 14px;
  text-align: left;
}
.separation-year-bars button > span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.separation-year-bars i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6b3d, #ff9a70);
}
.separation-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.separation-category-card {
  overflow: hidden;
}
.separation-category-card.expanded {
  grid-column: 1 / -1;
}
.separation-category-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 18px;
  border: 0;
  background: transparent;
  color: #fff5ee;
  text-align: left;
  cursor: pointer;
}
.separation-category-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #25272d;
  font-size: 23px;
}
.separation-category-title strong,
.separation-category-title small {
  display: block;
}
.separation-category-title small {
  color: #9095a0;
  margin-top: 4px;
}
.separation-category-head > b {
  color: #fff;
  font-size: 17px;
}
.separation-category-head > em {
  color: #ff6b3d;
  font-style: normal;
}
.separation-category-track {
  height: 5px;
  background: #292c33;
}
.separation-category-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.separation-product-list {
  padding: 8px 18px 18px;
}
.separation-product-list > .separation-product-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto minmax(150px, 210px);
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #292c33;
}
.separation-product-list > .separation-product-row:last-child {
  border-bottom: 0;
}
.separation-product-list span strong,
.separation-product-list span small {
  display: block;
}
.separation-product-list span small {
  color: #8f95a1;
  margin-top: 3px;
}
.separation-product-list select {
  width: 100%;
  border: 1px solid #393d46;
  border-radius: 10px;
  background: #22242a;
  color: #fff;
  padding: 9px 10px;
}
.separation-product-checkbox,
.separation-select-all input {
  width: 18px;
  height: 18px;
  accent-color: #ff6b3d;
  cursor: pointer;
}
.separation-bulk-toolbar {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) minmax(180px, 240px) auto;
  align-items: center;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 12px;
  border: 1px solid #4a342c;
  border-radius: 12px;
  background: #211a18;
}
.separation-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff5ee;
  font-weight: 700;
  cursor: pointer;
}
.separation-bulk-toolbar > strong {
  color: #ff9a70;
}
.separation-bulk-toolbar > button {
  border: 0;
  border-radius: 10px;
  background: #ff6b3d;
  color: white;
  padding: 10px 14px;
  font-weight: 800;
  cursor: pointer;
}
.separation-bulk-toolbar > button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.separation-load-more {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #4a342c;
  border-radius: 12px;
  background: #2d201b;
  color: #ff835d;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}
.separation-note {
  font-size: 13px;
  padding: 0 4px 12px;
}
@media (max-width: 900px) {
  .separation-summary {
    align-items: flex-start;
    flex-direction: column;
  }
  .separation-total {
    width: 100%;
    text-align: left;
  }
  .separation-category-grid {
    grid-template-columns: 1fr;
  }
  .separation-category-card.expanded {
    grid-column: auto;
  }
  .separation-product-list > .separation-product-row {
    grid-template-columns: 24px 1fr auto;
  }
  .separation-product-list select {
    grid-column: 2 / -1;
  }
  .separation-bulk-toolbar {
    grid-template-columns: 1fr;
  }
}
body,
#root {
  min-width: 320px;
  min-height: 100vh;
}
#root {
  width: 100%;
}
:root {
  color: #f7f7f8;
  font-synthesis: none;
  text-rendering: optimizelegibility;
  --orange: #ff6f3d;
  --orange-soft: #ff6f3d1f;
  --surface: #17181b;
  --surface-raised: #1d1e22;
  --line: #ffffff13;
  --muted: #96979d;
  background: #0d0e10;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Segoe UI,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  background: #0d0e10;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
}
a {
  color: #ff8b61;
  font-weight: 700;
}
.app-shell {
  background: radial-gradient(circle at top, #ff6f3d29, #0000 38%), #0d0e10;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}
.login-card {
  border: 1px solid var(--line);
  background: #1c1c1ff7;
  border-radius: 24px;
  width: min(100%, 420px);
  padding: 32px;
  box-shadow: 0 24px 70px #0000006b;
}
.company-picker-card {
  width: min(100%, 560px);
}
.logo {
  text-align: center;
  letter-spacing: -1.5px;
  margin-bottom: 28px;
  font-size: 34px;
  font-weight: 850;
}
.logo span {
  color: var(--orange);
}
.login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
.login-card p {
  color: #bdb7b2;
  margin: 0 0 24px;
  line-height: 1.5;
}
.login-card input,
.search-input {
  color: #fff;
  background: #202125;
  border: 1px solid #3a3a3f;
  border-radius: 14px;
  outline: none;
  width: 100%;
  padding: 15px 16px;
}
.login-card input {
  margin-bottom: 14px;
}
.login-card input:focus,
.search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px #ff6f3d26;
}
.login-card > button {
  color: #16100d;
  background: var(--orange);
  cursor: pointer;
  border-radius: 14px;
  width: 100%;
  margin-top: 6px;
  padding: 15px 18px;
  font-weight: 800;
}
.message {
  color: #ffd7c8;
  background: var(--orange-soft);
  text-align: center;
  border-radius: 12px;
  margin-top: 18px;
  padding: 12px 14px;
}
.company-list {
  gap: 12px;
  margin: 20px 0;
  display: grid;
}
.company-button {
  border: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  text-align: left;
  background: #242529;
  border-radius: 15px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  padding: 16px;
  display: flex;
}
.company-button:hover {
  border-color: #ff6f3d66;
  transform: translateY(-1px);
}
.company-button span {
  color: #aaa39e;
  font-size: 13px;
}
.secondary-button {
  color: #fff !important;
  background: #303136 !important;
}
.auth-page {
  background: #101114;
  grid-template-columns: minmax(400px, 0.95fr) minmax(480px, 1.05fr);
  min-height: 100vh;
  display: grid;
}
.auth-showcase {
  background:
    radial-gradient(circle at 20% 15%, #ff6f3d3d, #0000 32%),
    radial-gradient(circle at 90% 85%, #8095f721, #0000 28%),
    linear-gradient(145deg, #171416, #111216);
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 48px clamp(40px, 6vw, 88px);
  display: flex;
  position: relative;
  overflow: hidden;
}
.auth-showcase:after {
  content: "";
  border: 1px solid #ffffff0f;
  border-radius: 50%;
  width: 430px;
  height: 430px;
  position: absolute;
  bottom: -180px;
  right: -140px;
  box-shadow:
    0 0 0 70px #ffffff04,
    0 0 0 140px #ffffff03;
}
.auth-showcase .logo {
  z-index: 1;
  text-align: left;
  margin: 0;
  font-size: 30px;
  position: relative;
}
.showcase-copy {
  z-index: 1;
  position: relative;
}
.showcase-copy > span,
.form-kicker,
.company-picker-heading > span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 850;
}
.showcase-copy h1 {
  letter-spacing: -3px;
  margin: 13px 0 18px;
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 0.98;
}
.showcase-copy p {
  color: #9a9ca3;
  max-width: 570px;
  margin: 0;
  line-height: 1.7;
}
.showcase-features {
  z-index: 1;
  gap: 12px;
  display: grid;
  position: relative;
}
.showcase-features span {
  color: #c5c6ca;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  display: flex;
}
.showcase-features span:before {
  content: "✓";
  width: 22px;
  height: 22px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 7px;
  place-items: center;
  font-weight: 900;
  display: grid;
}
.auth-showcase > small {
  z-index: 1;
  color: #5d5f66;
  font-size: 10px;
  position: relative;
}
.auth-form-panel {
  place-items: center;
  padding: 40px;
  display: grid;
}
.modern-login-card {
  background: #17181b;
  border-radius: 22px;
  width: min(100%, 470px);
  padding: 42px;
}
.modern-login-card h2 {
  letter-spacing: -0.8px;
  margin: 10px 0 9px;
  font-size: 29px;
}
.modern-login-card > p {
  color: #85878e;
  margin-bottom: 30px;
  font-size: 13px;
}
.modern-login-card label {
  color: #a7a9af;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  display: block;
}
.modern-login-card label input {
  margin: 8px 0 0;
}
.primary-auth-button {
  justify-content: center;
  align-items: center;
  gap: 9px;
  display: flex;
}
.primary-auth-button:disabled {
  opacity: 0.72;
  cursor: wait;
}
.auth-form-actions {
  justify-content: flex-end;
  margin: -7px 0 10px;
  display: flex;
}
.auth-link-button {
  color: var(--orange);
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 750;
}
.auth-link-button:hover {
  color: #ff8b62;
}
.auth-link-button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.button-spinner,
.large-spinner {
  border: 2px solid #fff3;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: 0.8s linear infinite spin;
  display: inline-block;
}
.button-spinner {
  width: 15px;
  height: 15px;
}
.large-spinner {
  width: 32px;
  height: 32px;
  color: var(--orange);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.security-note {
  color: #66686f;
  text-align: center;
  margin-top: 22px;
  font-size: 10px;
  display: block;
}
.loading-screen {
  background: radial-gradient(circle, #ff6f3d1f, #0000 30%), #101114;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  display: flex;
}
.loading-screen .logo {
  margin-bottom: 28px;
}
.loading-screen p {
  color: #777980;
  margin-top: 16px;
  font-size: 11px;
}
.company-page {
  background: radial-gradient(circle at 50% 0, #ff6f3d1a, #0000 30%), #101114;
  min-height: 100vh;
}
.company-page-header {
  border-bottom: 1px solid var(--line);
  background: #101114c7;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  padding: 0 clamp(24px, 5vw, 72px);
  display: flex;
}
.company-page-header .logo {
  text-align: left;
  margin: 0;
  font-size: 27px;
}
.company-page-header > div {
  align-items: center;
  gap: 16px;
  display: flex;
}
.company-page-header > div span {
  color: #82848b;
  font-size: 11px;
}
.company-page-header button {
  color: #b7b8bd;
  cursor: pointer;
  background: #202125;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 10px;
}
.contact-button {
  border: 1px solid var(--line);
  color: #ff9b78;
  background: #202125;
  border-radius: 11px;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  transition: all 0.18s;
  display: grid;
}
.contact-button:hover {
  color: #fff;
  background: var(--orange-soft);
  border-color: #ff6f3d7a;
}
.contact-button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.contact-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 19px;
  height: 19px;
}
.company-picker {
  width: min(1100px, 100% - 40px);
  margin: 0 auto;
  padding: 72px 0;
}
.company-picker-heading {
  margin-bottom: 28px;
}
.company-picker-heading h1 {
  letter-spacing: -1.8px;
  margin: 10px 0 8px;
  font-size: clamp(32px, 4vw, 48px);
}
.company-picker-heading p {
  color: #8a8c93;
  margin: 0;
}
.company-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}
.company-select-card {
  border: 1px solid var(--line);
  color: #fff;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  border-radius: 18px;
  align-items: center;
  gap: 16px;
  min-height: 126px;
  padding: 20px;
  transition: all 0.18s;
  display: flex;
}
.company-select-card:hover {
  background: #1a1b1f;
  border-color: #ff6f3d59;
  transform: translateY(-3px);
}
.company-select-avatar {
  color: #1a100c;
  background: linear-gradient(135deg, #ff6f3d, #ff9b62);
  border-radius: 14px;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 17px;
  font-weight: 900;
  display: grid;
}
.company-select-copy {
  flex: 1;
  min-width: 0;
}
.company-select-copy strong,
.company-select-copy small,
.company-select-copy em {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}
.company-select-copy strong {
  font-size: 15px;
}
.company-select-copy small {
  color: #73757c;
  margin: 6px 0;
  font-size: 10px;
}
.company-select-copy em {
  color: #ffb295;
  background: var(--orange-soft);
  text-transform: capitalize;
  border-radius: 99px;
  width: fit-content;
  padding: 4px 7px;
  font-size: 9px;
  font-style: normal;
}
.company-select-arrow {
  color: #5e6067;
  font-size: 20px;
}
.company-select-card:hover .company-select-arrow {
  color: var(--orange);
}
.company-loading {
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
  border-radius: 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  display: flex;
}
.company-loading strong {
  margin-top: 17px;
  font-size: 14px;
}
.company-loading p {
  color: #777980;
  margin: 7px 0 0;
  font-size: 11px;
}
.dashboard-shell {
  background: #101114;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
  display: grid;
}
.sidebar {
  border-right: 1px solid var(--line);
  z-index: 20;
  background: #141518;
  flex-direction: column;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  position: sticky;
  top: 0;
}
.sidebar-brand {
  border-bottom: 1px solid var(--line);
  padding: 0 10px 24px;
}
.sidebar-brand .logo {
  text-align: left;
  margin: 0;
  font-size: 28px;
}
.sidebar-brand > span {
  color: #6f7178;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: 5px;
  font-size: 11px;
  display: block;
}
.sidebar-company {
  border: 1px solid var(--line);
  background: #1a1b1f;
  border-radius: 14px;
  align-items: center;
  gap: 11px;
  margin: 18px 0 16px;
  padding: 12px;
  display: flex;
}
.company-avatar,
.header-profile > span {
  color: #1a100c;
  background: linear-gradient(135deg, #ff6f3d, #ff9b62);
  border-radius: 11px;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  font-weight: 900;
  display: grid;
}
.sidebar-company div,
.header-profile div {
  min-width: 0;
}
.sidebar-company strong,
.sidebar-company small,
.header-profile strong,
.header-profile small {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}
.sidebar-company strong {
  font-size: 13px;
}
.sidebar-company small {
  color: #777980;
  margin-top: 3px;
  font-size: 10px;
}
.sidebar-nav {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-height: 0;
  display: flex;
  overflow-y: auto;
}
.nav-item {
  color: #93959c;
  cursor: pointer;
  text-align: left;
  background: 0 0;
  border-radius: 11px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 650;
  transition: all 0.18s;
  display: flex;
}
.nav-item:hover {
  color: #fff;
  background: #ffffff0b;
}
.nav-item.active {
  color: #fff;
  background: var(--orange-soft);
  box-shadow: inset 3px 0 0 var(--orange);
}
.nav-item.active svg {
  color: var(--orange);
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  gap: 6px;
  padding-top: 16px;
  display: grid;
}
.sidebar-footer button {
  color: #83858c;
  cursor: pointer;
  text-align: left;
  background: 0 0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}
.sidebar-footer button:hover {
  color: #fff;
  background: #ffffff0b;
}
.dashboard-main {
  min-width: 0;
}
.dashboard-header {
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  background: #101114e0;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 88px;
  padding: 0 32px;
  display: flex;
}
.dashboard-header-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}
.header-eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  display: block;
}
.dashboard-header h1 {
  letter-spacing: -0.4px;
  margin: 0;
  font-size: 22px;
}
.header-profile {
  border: 1px solid var(--line);
  background: #18191d;
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  max-width: 260px;
  padding: 8px 12px 8px 8px;
  display: flex;
}
.header-profile > span {
  border-radius: 9px;
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  font-size: 13px;
}
.header-profile strong {
  font-size: 12px;
}
.header-profile small {
  color: #777980;
  text-transform: capitalize;
  margin-top: 2px;
  font-size: 10px;
}
.dashboard-content {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px;
}
.dashboard-hero {
  background:
    radial-gradient(circle at 85% 15%, #ff996233, #0000 30%),
    linear-gradient(135deg, #211a18, #18191d 66%);
  border: 1px solid #ff6f3d2e;
  border-radius: 24px;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  min-height: 220px;
  padding: 36px;
  display: flex;
  overflow: hidden;
}
.hero-kicker,
.content-heading span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  font-weight: 850;
}
.dashboard-hero h2 {
  letter-spacing: -1.6px;
  max-width: 680px;
  margin: 10px 0 12px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}
.dashboard-hero p {
  color: #a3a4aa;
  max-width: 620px;
  margin: 0;
  line-height: 1.6;
}
.hero-status {
  border: 1px solid var(--line);
  color: #a6a8ae;
  white-space: nowrap;
  background: #1011149e;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 12px;
  font-size: 10px;
  display: flex;
}
.status-dot {
  background: #4fd079;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 4px #4fd0791a;
}
.status-dot.loading {
  background: var(--orange);
  animation: 1.2s infinite pulse;
  box-shadow: 0 0 0 4px #ff6f3d1a;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.role-badge {
  color: #ffb295;
  background: #ff6f3d1a;
  border: 1px solid #ff6f3d52;
  border-radius: 999px;
  flex: none;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 800;
}
.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
  display: grid;
}
.kpi-card {
  border: 1px solid var(--line);
  color: #fff;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  border-radius: 16px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 17px;
  transition: all 0.18s;
  display: flex;
}
.kpi-card:hover {
  border-color: #ff6f3d4d;
  transform: translateY(-2px);
}
.kpi-icon {
  width: 38px;
  height: 38px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 11px;
  flex: 0 0 38px;
  place-items: center;
  display: grid;
}
.kpi-copy {
  flex: 1;
  min-width: 0;
}
.kpi-copy small,
.kpi-copy strong,
.kpi-copy em {
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  overflow: hidden;
}
.kpi-copy small {
  color: #85878e;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 10px;
}
.kpi-copy strong {
  letter-spacing: -0.4px;
  margin: 5px 0 3px;
  font-size: 17px;
}
.kpi-copy em {
  color: #686a71;
  font-size: 10px;
  font-style: normal;
}
.kpi-link {
  color: #55575e;
}
.dashboard-year-selector {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  display: flex;
}
.dashboard-year-nav {
  align-items: center;
  gap: 7px;
  display: flex;
}
.dashboard-year-chip,
.dashboard-year-arrow {
  border: 1px solid #303138;
  color: #a9abb2;
  background: #202125;
  cursor: pointer;
  border-radius: 9px;
  min-width: 54px;
  height: 34px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  transition: all 0.18s;
}
.dashboard-year-chip:hover,
.dashboard-year-arrow:hover:not(:disabled) {
  color: #fff;
  border-color: #ff6f3d80;
}
.dashboard-year-chip.active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 6px 18px #ff6f3d2b;
}
.dashboard-year-arrow {
  color: var(--orange);
  min-width: 34px;
  padding: 0 9px;
  font-size: 21px;
  line-height: 1;
}
.dashboard-year-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.dashboard-year-context {
  color: #72747b;
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
}
.dashboard-overview-grid {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  gap: 14px;
  margin-top: 14px;
  display: grid;
}
.overview-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 22px;
}
.overview-wide {
  grid-column: 1/-1;
}
.overview-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}
.overview-heading span,
.overview-summary > span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 9px;
  font-weight: 850;
}
.overview-heading h3 {
  margin: 5px 0 0;
  font-size: 18px;
}
.overview-heading button {
  color: #999ba2;
  cursor: pointer;
  background: #202125;
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 10px;
}
.overview-heading button:hover {
  color: #fff;
}
.unpaid-invoices-card {
  margin-top: 14px;
}
.unpaid-invoices-card .overview-heading p {
  color: var(--muted);
  margin: 7px 0 0;
  font-size: 12px;
}
.unpaid-invoices-card .overview-heading p strong {
  color: #ff835d;
}
.unpaid-invoice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 18px;
}
.unpaid-invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1a1b1f;
  padding: 12px 14px;
}
.unpaid-invoice-row > span:first-child {
  min-width: 0;
}
.unpaid-invoice-row strong,
.unpaid-invoice-row small {
  display: block;
}
.unpaid-invoice-row > span:first-child strong {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.unpaid-invoice-row small {
  color: var(--muted);
  margin-top: 4px;
  font-size: 10px;
}
.unpaid-invoice-amount {
  flex: 0 0 auto;
  text-align: right;
}
.unpaid-invoice-amount strong {
  color: #ff7048;
  font-size: 13px;
}
.unpaid-invoices-empty,
.unpaid-invoices-more {
  color: var(--muted);
  margin: 18px 0 0;
  font-size: 12px;
}
.unpaid-invoices-more {
  text-align: right;
}
.overview-bars {
  gap: 17px;
  margin-top: 24px;
  display: grid;
}
.overview-row > div:first-child {
  color: #92949b;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
  font-size: 11px;
  display: flex;
}
.overview-row strong {
  color: #d9dade;
  font-size: 11px;
}
.bar-track {
  background: #25262b;
  border-radius: 99px;
  height: 7px;
  overflow: hidden;
}
.bar-fill {
  border-radius: inherit;
  height: 100%;
  transition: width 0.35s;
  display: block;
}
.bar-fill.orange {
  background: linear-gradient(90deg, #ff6f3d, #ff9b62);
}
.bar-fill.green {
  background: linear-gradient(90deg, #3dbf74, #71d89a);
}
.bar-fill.blue {
  background: linear-gradient(90deg, #5b78f6, #8095f7);
}
.monthly-chart {
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(6, minmax(58px, 1fr));
  align-items: end;
  gap: clamp(8px, 2vw, 22px);
  min-height: 230px;
  margin-top: 22px;
  padding: 16px 6px 0;
  display: grid;
  position: relative;
}
.monthly-chart.monthly-chart-year {
  grid-template-columns: repeat(12, minmax(52px, 1fr));
  gap: 8px;
  overflow-x: auto;
}
.monthly-chart-column {
  z-index: 1;
  text-align: center;
  grid-template-rows: 28px 1fr 38px;
  gap: 7px;
  min-width: 0;
  height: 205px;
  display: grid;
  position: relative;
}
.monthly-chart-column > strong {
  color: #bfc0c5;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}
.monthly-chart-track {
  background: linear-gradient(#ffffff03, #ffffff09);
  border-radius: 9px 9px 0 0;
  align-items: flex-end;
  height: 125px;
  display: flex;
  overflow: hidden;
}
.monthly-chart-track > span {
  background: linear-gradient(180deg, #ff9269, var(--orange));
  border-radius: 8px 8px 0 0;
  width: 100%;
  transition: height 0.25s;
  display: block;
  box-shadow: 0 0 24px #ff6f3d2e;
}
.monthly-chart-column > small {
  color: #9b9da4;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
}
.monthly-chart-column > small em {
  color: #55575e;
  margin-top: 3px;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  display: block;
}
.chart-empty {
  z-index: 0;
  color: #696b72;
  text-align: center;
  font-size: 11px;
  position: absolute;
  inset: 60px 0 auto;
}
.overview-summary {
  background:
    radial-gradient(circle at 90% 10%, #ff6f3d21, transparent 35%),
    var(--surface);
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  display: flex;
}
.overview-summary > strong {
  margin: 13px 0 5px;
  font-size: 42px;
  line-height: 1;
}
.overview-summary p {
  color: #83858c;
  margin: 0 0 20px;
  font-size: 11px;
  line-height: 1.55;
}
.overview-summary button {
  color: #1a100c;
  background: var(--orange);
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 10px;
  font-weight: 800;
}
.dashboard-analytics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  margin-top: 14px;
  display: grid;
}
.analytics-card {
  flex-direction: column;
  min-width: 0;
  display: flex;
}
.analytics-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  display: flex;
}
.analytics-heading span:first-child,
.analytics-detail-title span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 9px;
  font-weight: 850;
}
.analytics-heading h3 {
  margin: 5px 0 4px;
  font-size: 18px;
}
.analytics-heading p {
  color: #74767d;
  margin: 0;
  font-size: 10px;
}
.analytics-period-badge {
  color: #ffb295;
  background: #ff6f3d12;
  border: 1px solid #ff6f3d35;
  border-radius: 999px;
  flex: none;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 800;
}
.analytics-ranking-list {
  gap: 8px;
  display: grid;
}
.analytics-ranking-list.expanded {
  max-height: 680px;
  padding-right: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #ff6f3d #202126;
  scrollbar-width: thin;
}
.analytics-ranking-row {
  border: 1px solid #292a30;
  color: #fff;
  background: #191a1e;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  transition: all 0.18s;
  display: grid;
}
.analytics-ranking-row:hover,
.analytics-ranking-row.selected {
  background: #202126;
  border-color: #ff6f3d70;
  transform: translateY(-1px);
}
.analytics-ranking-row.selected {
  box-shadow: inset 3px 0 0 var(--orange);
}
.analytics-rank {
  color: var(--orange);
  background: #ff6f3d16;
  border-radius: 9px;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 10px;
  font-weight: 900;
  display: grid;
}
.analytics-rank.supplier {
  color: #71d89a;
  background: #3dbf7418;
}
.analytics-rank.quantity {
  color: #8fa2ff;
  background: #5b78f61a;
}
.analytics-rank.savings {
  color: #f4ca72;
  background: #f4ca7217;
}
.analytics-ranking-main {
  min-width: 0;
}
.analytics-ranking-copy {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  margin-bottom: 8px;
  display: flex;
}
.analytics-ranking-copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  font-size: 11px;
  overflow: hidden;
}
.supplier-row .analytics-ranking-copy {
  align-items: flex-start;
}
.supplier-row .analytics-ranking-copy strong {
  text-overflow: clip;
  white-space: normal;
  line-height: 1.3;
  overflow: visible;
}
.analytics-ranking-copy small {
  color: #70727a;
  white-space: nowrap;
  flex: none;
  font-size: 8px;
}
.analytics-bar-track {
  background: #292a30;
  border-radius: 99px;
  width: 100%;
  height: 6px;
  display: block;
  overflow: hidden;
}
.analytics-bar-fill {
  border-radius: inherit;
  height: 100%;
  transition: width 0.35s;
  display: block;
}
.analytics-bar-fill.product {
  background: linear-gradient(90deg, #ff6f3d, #ffac7d);
}
.analytics-bar-fill.supplier {
  background: linear-gradient(90deg, #3dbf74, #71d89a);
}
.analytics-bar-fill.quantity {
  background: linear-gradient(90deg, #5b78f6, #8fa2ff);
}
.analytics-bar-fill.savings {
  background: linear-gradient(90deg, #d7a744, #f4ca72);
}
.analytics-ranking-value {
  text-align: right;
  min-width: 76px;
}
.analytics-ranking-value strong,
.analytics-ranking-value small {
  white-space: nowrap;
  display: block;
}
.analytics-ranking-value strong {
  font-size: 11px;
}
.analytics-ranking-value strong.positive {
  color: #ff8a62;
}
.analytics-ranking-value strong.negative {
  color: #71d89a;
}
.analytics-ranking-value strong.needs-review {
  color: #ffd166;
}
.analytics-ranking-value.savings-value strong {
  color: #f4ca72;
}
.analytics-ranking-value small {
  color: #6f7178;
  margin-top: 3px;
  font-size: 8px;
}
.analytics-empty {
  border: 1px dashed #303138;
  color: #74767d;
  text-align: center;
  border-radius: 12px;
  place-items: center;
  min-height: 150px;
  padding: 28px;
  font-size: 10px;
  display: grid;
}
.analytics-detail {
  border: 1px solid #303138;
  background: #121317;
  border-radius: 14px;
  margin-top: 12px;
  padding: 14px;
}
.analytics-detail-title {
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  display: flex;
}
.analytics-detail-title strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
  margin-top: 4px;
  font-size: 11px;
  display: block;
  overflow: hidden;
}
.analytics-detail-title > small {
  color: #8d8f96;
  white-space: nowrap;
  font-size: 9px;
}
.analytics-history-chart {
  grid-template-columns: repeat(12, minmax(34px, 1fr));
  align-items: end;
  gap: 5px;
  margin-top: 14px;
  padding-bottom: 2px;
  display: grid;
  overflow-x: auto;
}
.analytics-history-column {
  text-align: center;
  grid-template-rows: 18px 72px 18px auto;
  gap: 4px;
  min-width: 34px;
  display: grid;
}
.analytics-history-column > strong {
  color: #9b9da4;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7px;
  overflow: hidden;
}
.analytics-history-column > div {
  background: #202126;
  border-radius: 6px 6px 0 0;
  align-items: flex-end;
  display: flex;
  overflow: hidden;
}
.analytics-history-column > div span {
  background: linear-gradient(180deg, #ff9b72, #ff6f3d);
  border-radius: 5px 5px 0 0;
  width: 100%;
  display: block;
}
.supplier-history .analytics-history-column > div span {
  background: linear-gradient(180deg, #71d89a, #3dbf74);
}
.quantity-history .analytics-history-column > div span {
  background: linear-gradient(180deg, #8da5ff, #627eea);
}
.savings-history .analytics-history-column > div span {
  background: linear-gradient(180deg, #ffd67a, #d99a22);
}
.analytics-history-column > small {
  color: #666870;
  text-transform: uppercase;
  font-size: 7px;
  font-weight: 800;
}
.analytics-history-column.needs-review > div {
  outline: 1px solid #ffd1668f;
}
.analytics-history-column.needs-review > div span {
  background: linear-gradient(180deg, #ffd166, #d98f22);
}
.analytics-history-column.needs-review > small {
  color: #ffd166;
}
.analytics-fix-price {
  color: #211706;
  background: #ffd166;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  padding: 4px 5px;
  font-size: 7px;
  font-weight: 900;
}
.analytics-review-details {
  border-top: 1px solid #303138;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  display: grid;
}
.analytics-review-heading {
  gap: 3px;
  display: grid;
}
.analytics-review-heading strong {
  color: #ffd166;
  font-size: 11px;
}
.analytics-review-heading small {
  color: #8d8f96;
  font-size: 9px;
}
.analytics-review-item {
  border: 1px solid #5e4925;
  background: #2d2416;
  border-radius: 12px;
  grid-template-columns: minmax(180px, 1.5fr) minmax(140px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  display: grid;
}
.analytics-review-item > div,
.analytics-review-values,
.analytics-review-actions {
  gap: 3px;
  display: grid;
}
.analytics-review-item span,
.analytics-review-item small {
  color: #a6a29a;
  font-size: 9px;
}
.analytics-review-values b {
  color: #fff;
  font-size: 10px;
}
.analytics-review-actions button {
  border: 1px solid #ff7043;
  color: #15110d;
  background: #ff7043;
  border-radius: 8px;
  cursor: pointer;
  padding: 7px 9px;
  font-size: 8px;
  font-weight: 900;
}
.analytics-review-actions button.secondary {
  color: #e8e3dd;
  background: #24252a;
  border-color: #41434b;
}
.analytics-more {
  color: var(--orange);
  background: none;
  cursor: pointer;
  align-self: flex-end;
  margin-top: 14px;
  padding: 3px 0;
  font-size: 10px;
  font-weight: 800;
}
.analytics-more:hover {
  color: #ffb295;
}
.content-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 32px 0 16px;
  display: flex;
}
.content-heading h3 {
  margin: 5px 0 0;
  font-size: 22px;
}
.content-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.dashboard-title,
.section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  display: flex;
}
.dashboard-title h2,
.section-heading h2 {
  margin: 0 0 6px;
  font-size: 28px;
}
.dashboard-title p,
.section-heading p {
  color: var(--muted);
  margin: 0;
}
.search-input {
  width: min(100%, 360px);
}
.section-heading-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  display: flex;
}
.section-heading-actions .search-input {
  min-width: 260px;
}
.section-heading-actions > button {
  color: #ff9b78;
  background: var(--orange-soft);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #ff6f3d47;
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 10px;
  font-weight: 850;
}
.section-heading-actions > button:hover {
  background: #ff6f3d2e;
  border-color: #ff6f3d8c;
}
.dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}
.dashboard-card {
  border: 1px solid var(--line);
  color: #fff;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  border-radius: 18px;
  align-items: center;
  gap: 15px;
  min-height: 126px;
  padding: 20px;
  transition:
    transform 0.18s,
    border-color 0.18s,
    background 0.18s;
  display: flex;
}
.dashboard-card:hover {
  background: #1a1b1f;
  border-color: #ff6f3d52;
  transform: translateY(-3px);
}
.dashboard-icon {
  width: 48px;
  height: 48px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 14px;
  flex: 0 0 48px;
  place-items: center;
  display: grid;
}
.dashboard-card-text {
  flex-direction: column;
  flex: 1;
  gap: 6px;
  min-width: 0;
  display: flex;
}
.dashboard-card-text strong {
  font-size: 15px;
}
.dashboard-card-text small {
  color: #7f8188;
  font-size: 12px;
  line-height: 1.4;
}
.dashboard-arrow {
  color: #5d5f66;
  font-size: 20px;
}
.dashboard-card:hover .dashboard-arrow {
  color: var(--orange);
}
.table-card,
.supplier-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
}
.table-card {
  margin-top: 20px;
  padding: 18px;
}
.data-view-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: -2px 0 14px;
  padding: 0 2px 14px;
  display: flex;
}
.data-view-header > div strong,
.data-view-header > div span {
  display: block;
}
.data-view-header > div strong {
  font-size: 13px;
}
.data-view-header > div span {
  color: #74767d;
  margin-top: 4px;
  font-size: 10px;
}
.data-view-actions {
  align-items: center;
  gap: 12px;
  display: flex;
}
.data-view-actions > button {
  color: #ff9b78;
  background: var(--orange-soft);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #ff6f3d47;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 800;
}
.data-view-actions > button:hover {
  background: #ff6f3d2e;
  border-color: #ff6f3d8c;
}
.data-view-actions > button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.data-view-header label {
  color: #74767d;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  display: flex;
}
.data-view-header select {
  border: 1px solid var(--line);
  color: #d5d6da;
  cursor: pointer;
  background: #202125;
  border-radius: 9px;
  outline: none;
  min-width: 170px;
  padding: 9px 30px 9px 10px;
}
.data-view-header select:focus {
  border-color: #ff6f3d80;
}
.invoice-date-filters {
  background: #17181c;
  border: 1px solid var(--line);
  border-radius: 12px;
  justify-content: flex-start;
  margin: 0 0 14px;
  padding: 12px 14px;
}
.invoice-date-filters label {
  color: #a8aab0;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  display: flex;
}
.invoice-date-filters select {
  border: 1px solid var(--line);
  color: #f4f4f5;
  background: #202125;
  border-radius: 9px;
  min-width: 160px;
  padding: 9px 30px 9px 10px;
}
.empty-state {
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 260px;
  display: flex;
}
.empty-state > span {
  width: 52px;
  height: 52px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 15px;
  place-items: center;
  display: grid;
}
.empty-state strong {
  margin: 14px 0 6px;
  font-size: 14px;
}
.empty-state p {
  color: #777980;
  max-width: 360px;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}
.section-skeleton {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  gap: 12px;
  margin-top: 20px;
  padding: 20px;
  display: grid;
  overflow: hidden;
}
.skeleton-toolbar,
.skeleton-row {
  background: #222328;
  border-radius: 10px;
  height: 48px;
  position: relative;
  overflow: hidden;
}
.skeleton-toolbar {
  width: 38%;
  height: 34px;
}
.skeleton-row.short {
  width: 72%;
}
.skeleton-toolbar:after,
.skeleton-row:after {
  content: "";
  background: linear-gradient(90deg, #0000, #ffffff0a, #0000);
  animation: 1.4s infinite shimmer;
  position: absolute;
  inset: 0;
  transform: translate(-100%);
}
@keyframes shimmer {
  to {
    transform: translate(100%);
  }
}
.section-error {
  background:
    radial-gradient(circle at center, #ff6f3d14, transparent 38%),
    var(--surface);
  text-align: center;
  border: 1px solid #ff6f3d2e;
  border-radius: 18px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  margin-top: 20px;
  padding: 30px;
  display: flex;
}
.section-error > span {
  width: 44px;
  height: 44px;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 13px;
  place-items: center;
  font-weight: 900;
  display: grid;
}
.section-error strong {
  margin: 14px 0 6px;
}
.section-error p {
  color: #85878e;
  margin: 0 0 18px;
  font-size: 11px;
}
.section-error button {
  color: #1a100c;
  background: var(--orange);
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 800;
}
.responsive-table {
  width: 100%;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
}
th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  padding: 14px 12px;
}
th {
  color: #777980;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 10px;
}
td {
  color: #d7d8dc;
  font-size: 13px;
}
td strong,
td small {
  display: block;
}
td small {
  color: #71737a;
  margin-top: 4px;
}
tbody tr:hover {
  background: #ffffff05;
}
.products-summary-table {
  min-width: 920px;
}
.products-summary-table .row-number {
  color: #ff9873;
  width: 54px;
  font-weight: 850;
}
.product-summary-row {
  transition: background 0.16s;
}
.product-name-button {
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
  background: 0 0;
  padding: 0;
}
.product-name-button strong {
  color: #f1f1f3;
  display: block;
}
.product-name-button small {
  color: #ff9873;
}
.product-name-button small span {
  margin-left: 3px;
}
.product-edit-button,
.product-history-edit-button {
  color: #ff9a75;
  cursor: pointer;
  white-space: nowrap;
  background: #ff6f3d1a;
  border: 1px solid #ff6f3d57;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 10px;
  font-weight: 850;
}
.product-edit-button:hover,
.product-history-edit-button:hover {
  background: #ff6f3d2b;
  border-color: #ff6f3d9e;
}
.product-edit-button:disabled,
.product-history-edit-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-history-edit-button {
  padding: 7px 9px;
}
.product-history-row > td {
  background: #121316;
  padding: 0 12px 16px;
}
.product-history-panel {
  background: #191a1e;
  border: 1px solid #ff6f3d2e;
  border-radius: 13px;
  padding: 17px;
}
.product-history-heading {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  display: flex;
}
.product-history-heading strong {
  font-size: 12px;
}
.product-history-heading span {
  color: #777980;
  font-size: 10px;
}
.product-history-panel table {
  min-width: 700px;
}
.product-history-panel th,
.product-history-panel td {
  padding: 10px;
}
.product-price-needs-review td {
  background: #3c30162e;
}
.product-price-review-badge {
  color: #ffd166;
  white-space: nowrap;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 850;
  display: block;
}
.product-edit-backdrop {
  z-index: 125;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #000000b8;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.product-edit-dialog {
  border: 1px solid var(--line);
  background: #15161a;
  border-radius: 20px;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 26px 90px #0000008c;
}
.product-edit-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 21px 23px;
  display: flex;
}
.product-edit-header span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 9px;
  font-weight: 850;
}
.product-edit-header h2 {
  margin: 6px 0 0;
  font-size: 21px;
}
.product-edit-header > button {
  color: #bbbcc1;
  cursor: pointer;
  background: #24252a;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 22px;
}
.product-edit-form {
  gap: 15px;
  padding: 23px;
  display: grid;
}
.product-edit-form > p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}
.product-edit-form .product-edit-source-name {
  color: #d7d8dc;
  background: #24252a;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.product-edit-source-name strong {
  color: #ff8a62;
}
.product-edit-form label {
  color: #a4a5aa;
  gap: 7px;
  font-size: 10px;
  font-weight: 750;
  display: grid;
}
.product-edit-form input {
  border: 1px solid var(--line);
  color: #eeeef0;
  width: 100%;
  font: inherit;
  background: #202126;
  border-radius: 10px;
  outline: none;
  padding: 12px 13px;
}
.product-edit-form input:focus {
  border-color: #ff6f3db3;
}
.product-edit-form .product-price-correction {
  background: #3c30162e;
  border: 1px solid #ffd16659;
  border-radius: 11px;
  padding: 12px;
}
.product-price-correction small {
  color: #b9a16b;
  line-height: 1.45;
}
.product-price-suggestion {
  border: 1px solid #ffb3478f;
  color: #18130b;
  background: #ffd166;
  border-radius: 10px;
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}
.product-price-suggestion:hover {
  background: #ffe09a;
}
.product-edit-form-row {
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  display: grid;
}
.product-edit-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  display: flex;
}
.product-edit-actions button {
  color: #1a100c;
  background: var(--orange);
  cursor: pointer;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 850;
}
.product-edit-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.product-edit-actions .secondary {
  color: #c7c8cc;
  background: #292a2f;
}
.product-edit-error {
  background: #ff5a3721;
  border-radius: 9px;
  padding: 10px 12px;
  color: #ffc0ac !important;
}
.warning-badge,
.status-active,
.status-inactive {
  border-radius: 999px;
  margin-left: 8px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  display: inline-block;
}
.warning-badge {
  color: #ffb2b2;
  background: #ff444426;
}
.status-active {
  color: #9ff0bb;
  background: #32c86424;
}
.status-inactive {
  color: #c4bdb8;
  background: #ffffff14;
}
.discount-tabs {
  gap: 8px;
  margin: 0 0 14px;
  display: flex;
}
.discount-tabs button {
  border: 1px solid var(--line);
  color: #8f9198;
  cursor: pointer;
  background: #1c1d21;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 11px;
  font-weight: 750;
}
.discount-tabs button span {
  color: #aaa;
  background: #ffffff0f;
  border-radius: 999px;
  margin-left: 7px;
  padding: 3px 7px;
  font-size: 9px;
}
.discount-tabs button.active {
  color: #fff;
  background: var(--orange-soft);
  border-color: #ff6f3d61;
}
.discount-tabs button.active span {
  color: #ffb094;
  background: #ff6f3d29;
}
.supplier-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  display: grid;
}
.supplier-view {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 18px;
}
.supplier-period-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  border: 1px solid #4a342c;
  border-radius: 12px;
  background: #2d201b;
  color: #c6c8ce;
  padding: 11px 14px;
  font-size: 12px;
}
.supplier-period-banner strong {
  color: #ff835d;
}
.supplier-year-selector {
  margin: 0 0 12px;
}
.supplier-year-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.supplier-year-empty {
  color: var(--muted);
  padding: 0 6px;
  font-size: 11px;
}
.supplier-period-copy {
  display: grid;
  gap: 4px;
}
.supplier-period-copy small {
  color: #9fa2aa;
  line-height: 1.45;
}
.supplier-period-banner button {
  border: 1px solid #5b3a2f;
  border-radius: 9px;
  background: #3a251e;
  color: #ff9b78;
  padding: 7px 10px;
  font-weight: 750;
  cursor: pointer;
}
.quantity-merge-toolbar {
  border: 1px solid #3d302b;
  background: #241d1af2;
  border-radius: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding: 12px 14px;
  display: flex;
  position: sticky;
  top: 12px;
  z-index: 45;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px #0008;
}
.quantity-merge-toolbar > span {
  display: grid;
  gap: 3px;
}
.quantity-merge-toolbar small {
  color: var(--muted);
}
.quantity-merge-toolbar button,
.quantity-merge-actions button {
  border: 1px solid #8a472f;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
  border-radius: 9px;
  padding: 9px 13px;
  font-weight: 800;
}
.quantity-merge-toolbar button:disabled,
.quantity-merge-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.quantity-row-selected td {
  background: #30231e;
}
.quantity-row-selected td:first-child {
  box-shadow: inset 3px 0 var(--orange);
}
.quantity-merge-backdrop {
  z-index: 120;
  background: #050608d9;
  place-items: center;
  padding: 22px;
  display: grid;
  position: fixed;
  inset: 0;
}
.quantity-merge-dialog {
  border: 1px solid #643a2b;
  background: #17181c;
  border-radius: 18px;
  width: min(680px, 100%);
  max-height: calc(100vh - 44px);
  padding: 22px;
  overflow: auto;
  box-shadow: 0 24px 80px #0009;
}
.quantity-merge-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  display: flex;
}
.quantity-merge-header span {
  color: var(--orange);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
}
.quantity-merge-header h2 {
  margin: 5px 0 0;
}
.quantity-merge-header > button {
  border: 1px solid var(--line);
  color: #fff;
  background: #24252a;
  cursor: pointer;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  font-size: 22px;
}
.quantity-merge-warning {
  border: 1px solid #68412f;
  color: #ffc0a8;
  background: #34231d;
  border-radius: 11px;
  margin: 18px 0;
  padding: 12px 14px;
  line-height: 1.5;
}
.quantity-merge-target {
  color: #b8bac1;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  display: grid;
}
.quantity-merge-target select {
  border: 1px solid var(--line);
  color: #fff;
  background: #202126;
  border-radius: 10px;
  padding: 11px 12px;
}
.quantity-merge-preview {
  gap: 8px;
  margin-top: 15px;
  display: grid;
}
.quantity-merge-preview > div {
  border: 1px solid var(--line);
  background: #1e1f23;
  border-radius: 10px;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  display: flex;
}
.quantity-merge-preview span {
  color: var(--muted);
  text-align: right;
}
.quantity-merge-error {
  color: #ff9c79;
  margin: 14px 0 0;
  font-weight: 800;
}
.quantity-merge-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  display: flex;
}
.quantity-merge-actions button.secondary {
  border-color: var(--line);
  color: #d6d7db;
  background: #25262b;
}
.supplier-view .supplier-card {
  background: #1a1b1f;
}
.supplier-card {
  padding: 20px;
}
.supplier-card-header {
  justify-content: space-between;
  gap: 16px;
  display: flex;
}
.supplier-card-header h3 {
  margin: 0 0 5px;
}
.supplier-card-header p,
.supplier-card-header > span {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.supplier-stats,
.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
  display: grid;
}
.supplier-stats > div,
.stat-card {
  background: #1d1e22;
  border: 1px solid #ffffff0a;
  border-radius: 13px;
  padding: 15px;
}
.supplier-stats small,
.stat-card small {
  color: #7f8188;
  margin-bottom: 7px;
  display: block;
}
.supplier-stats .credit-value {
  color: #59d394;
}
.supplier-unpaid-list {
  margin-top: 14px;
  border: 1px solid #643726;
  border-radius: 13px;
  background: #281a16;
  padding: 13px 15px;
}
.supplier-unpaid-heading,
.supplier-unpaid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.supplier-unpaid-heading {
  color: #ff9a76;
  padding-bottom: 10px;
}
.supplier-unpaid-heading span,
.supplier-unpaid-row b {
  color: #ff7048;
}
.supplier-unpaid-row {
  border-top: 1px solid #ffffff12;
  padding: 10px 0;
}
.supplier-unpaid-row:last-child {
  padding-bottom: 0;
}
.supplier-unpaid-row span strong,
.supplier-unpaid-row span small {
  display: block;
}
.supplier-unpaid-row span strong {
  color: #fff;
  font-size: 12px;
}
.supplier-unpaid-row span small {
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.reports-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.reports-page {
  gap: 18px;
  display: grid;
}
.stat-card em {
  color: #66686f;
  margin-top: 7px;
  font-size: 9px;
  font-style: normal;
  display: block;
}
.report-analysis-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}
.report-reconciliation {
  background: #17181b;
  border: 1px solid #ffffff12;
  border-radius: 18px;
  padding: 20px 22px;
}
.report-reconciliation.has-warning {
  border-color: #ff6b3d66;
  background: linear-gradient(135deg, #221916, #17181b 55%);
}
.report-reconciliation.is-balanced {
  border-color: #53cf8b55;
}
.report-reconciliation-heading {
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  display: flex;
}
.report-reconciliation-heading span {
  color: var(--orange);
  letter-spacing: 1.4px;
  font-size: 9px;
  font-weight: 900;
}
.report-reconciliation-heading h3 {
  margin: 5px 0 0;
}
.report-reconciliation-actions {
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  display: flex;
}
.report-reconciliation-actions button {
  color: #ff9b78;
  background: var(--orange-soft);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #ff6f3d47;
  border-radius: 11px;
  padding: 10px 13px;
  font-size: 10px;
  font-weight: 850;
}
.report-reconciliation-actions button:hover {
  background: #ff6f3d2e;
  border-color: #ff6f3d8c;
}
.report-reconciliation-actions > strong {
  color: #ff8b61;
}
.report-reconciliation.is-balanced .report-reconciliation-actions > strong {
  color: #53cf8b;
}
.report-reconciliation > p {
  color: #a9abb1;
  margin: 16px 0 0;
  line-height: 1.6;
}
.reconciliation-table {
  margin-top: 18px;
}
.reconciliation-table td small {
  color: var(--muted);
  margin-top: 4px;
  display: block;
}
.reconciliation-difference {
  color: #ff8b61;
  font-weight: 800;
}
.supplier-ranking {
  gap: 19px;
  margin-top: 25px;
  display: grid;
}
.supplier-ranking-row > div:first-child {
  color: #a8a9ae;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  font-size: 10px;
  display: flex;
}
.supplier-ranking-row span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}
.supplier-ranking-row strong {
  color: #e0e1e4;
  flex: none;
}
.supplier-chart-empty {
  place-items: center;
  min-height: 210px;
  display: grid;
  position: static;
}
.report-expenses-card {
  margin-top: 0;
}
.balance-value {
  color: #ff8b61;
}
.table-action-button {
  color: #ff9b78;
  background: var(--orange-soft);
  cursor: pointer;
  border: 1px solid #ff6f3d40;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 10px;
  font-weight: 800;
}
.table-action-button:hover {
  background: #ff6f3d2e;
  border-color: #ff6f3d8c;
}
.invoice-upload-toolbar {
  background: linear-gradient(135deg, #ff6f3d14, #1a1b1f 52%);
  border: 1px solid #ff6f3d29;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 0 18px;
  padding: 16px 18px;
  display: flex;
}
.invoice-upload-toolbar strong,
.invoice-upload-toolbar span {
  display: block;
}
.invoice-upload-toolbar strong {
  margin-bottom: 5px;
  font-size: 13px;
}
.invoice-upload-toolbar span {
  color: var(--muted);
  font-size: 10px;
}
.invoice-upload-toolbar > button {
  color: #1a100c;
  background: var(--orange);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 850;
}
.invoice-upload-toolbar .permission-note {
  color: #ffb29a;
}
.invoice-upload-backdrop {
  z-index: 140;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background: #000000c2;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.invoice-upload-dialog {
  border: 1px solid var(--line);
  background: #15161a;
  border-radius: 21px;
  flex-direction: column;
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  overflow: hidden;
  box-shadow: 0 28px 100px #00000094;
}
.invoice-upload-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 19px 23px;
  display: flex;
}
.invoice-upload-header span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 9px;
  font-weight: 850;
}
.invoice-upload-header h2 {
  margin: 6px 0 0;
  font-size: 22px;
}
.invoice-upload-header > button {
  color: #bbbcc1;
  cursor: pointer;
  background: #24252a;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 23px;
}
.invoice-upload-header > button:disabled {
  opacity: 0.5;
}
.invoice-file-step,
.invoice-review-step {
  padding: 23px;
  overflow-y: auto;
}
.invoice-file-step {
  gap: 17px;
  display: grid;
}
.invoice-sync-note {
  background: #4cc37712;
  border: 1px solid #4cc37729;
  border-radius: 13px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 17px;
  display: flex;
}
.invoice-sync-note strong,
.invoice-sync-note span {
  display: block;
}
.invoice-sync-note strong {
  color: #b6ecc9;
  font-size: 12px;
}
.invoice-sync-note span {
  color: #78a889;
  text-align: right;
  font-size: 10px;
}
.invoice-sync-note.compact {
  margin-bottom: 18px;
}
.invoice-file-picker {
  cursor: pointer;
  text-align: center;
  background: radial-gradient(circle, #ff6f3d1a, #0000 52%), #191a1e;
  border: 1px dashed #ff6f3d73;
  border-radius: 17px;
  align-content: center;
  place-items: center;
  gap: 8px;
  min-height: 230px;
  padding: 32px;
  display: grid;
}
.invoice-file-picker:hover {
  background-color: #1b1c20;
  border-color: #ff6f3dbf;
}
.invoice-file-picker input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
}
.file-picker-icon {
  color: #ff9b78;
  background: var(--orange-soft);
  border-radius: 14px;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 25px;
  font-weight: 850;
  display: grid;
}
.invoice-file-picker strong {
  margin-top: 4px;
  font-size: 15px;
}
.invoice-file-picker small {
  color: #74767d;
  font-size: 10px;
}
.selected-invoice-files {
  gap: 7px;
  display: grid;
}
.selected-invoice-files > div {
  background: #202126;
  border-radius: 10px;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  display: grid;
}
.selected-invoice-files span {
  color: #ff9b78;
  background: var(--orange-soft);
  border-radius: 8px;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 9px;
  font-weight: 850;
  display: grid;
}
.selected-invoice-files strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  overflow: hidden;
}
.selected-invoice-files small {
  color: #73757c;
  font-size: 9px;
}
.invoice-upload-error {
  color: #ffc0ac;
  background: #ff5a3721;
  border-radius: 10px;
  margin: 0;
  padding: 11px 13px;
  font-size: 10px;
}
.invoice-upload-actions {
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}
.invoice-upload-actions button {
  color: #1a100c;
  background: var(--orange);
  cursor: pointer;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 850;
}
.invoice-upload-actions button.secondary {
  color: #c7c8cc;
  background: #292a2f;
}
.invoice-upload-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.invoice-upload-actions.sticky {
  border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #15161af5;
  margin: 18px -23px -23px;
  padding: 15px 23px;
  position: sticky;
  bottom: -23px;
}
.invoice-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  display: grid;
}
.invoice-form-grid label {
  color: #a4a5aa;
  gap: 7px;
  font-size: 9px;
  font-weight: 750;
  display: grid;
}
.invoice-form-grid label > small {
  color: #62646b;
  font-size: 8px;
  font-weight: 650;
}
.invoice-form-grid label.span-2 {
  grid-column: span 2;
}
.invoice-supplier-field {
  color: #a4a5aa;
  gap: 7px;
  font-size: 9px;
  font-weight: 750;
  display: grid;
  grid-column: span 2;
}
.invoice-supplier-suggestions {
  background: #17181c;
  border: 1px solid #34363d;
  border-radius: 12px;
  gap: 6px;
  padding: 8px;
  display: grid;
}
.invoice-supplier-suggestions > small {
  color: #8f9198;
  padding: 2px 4px;
  font-size: 8px;
}
.invoice-supplier-suggestions button {
  color: #eeeef0;
  text-align: left;
  background: #24262c;
  border: 1px solid #34363d;
  border-radius: 9px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  display: flex;
}
.invoice-supplier-suggestions button:hover {
  background: #2d3037;
  border-color: #ff6f3d99;
}
.invoice-supplier-suggestions button span {
  color: #9a9ca3;
  white-space: nowrap;
  font-size: 8px;
}
.profile-danger-card {
  border-color: rgba(255, 92, 92, 0.42);
}
.profile-danger-card .danger-button {
  color: #fff;
  background: #c83c3c;
  border-color: #e45a5a;
}
.profile-danger-card .danger-button:hover:not(:disabled) {
  background: #dc4747;
}
.profile-error-message {
  color: #ff8f8f;
}
.invoice-form-grid input,
.invoice-form-grid select,
.invoice-products-editor input {
  border: 1px solid var(--line);
  color: #eeeef0;
  width: 100%;
  font: inherit;
  background: #202126;
  border-radius: 9px;
  outline: none;
  padding: 11px 12px;
}
.invoice-form-grid input:focus,
.invoice-form-grid select:focus,
.invoice-products-editor input:focus {
  border-color: #ff6f3db3;
}
.invoice-total-input input {
  color: #ff9b78;
  font-weight: 850;
}
.invoice-vat-warning {
  background: #ffb44614;
  border: 1px solid #ffb44633;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 13px;
  padding: 11px 13px;
  display: flex;
}
.invoice-vat-warning strong {
  color: #ffd08b;
  font-size: 10px;
}
.invoice-vat-warning span {
  color: #a88a5e;
  text-align: right;
  font-size: 9px;
}
.invoice-price-warning {
  color: #d7bd7e;
  background: #3c30162e;
  border: 1px solid #ffd16659;
  border-radius: 10px;
  gap: 5px;
  margin: 0 0 11px;
  padding: 11px 13px;
  display: grid;
}
.invoice-price-warning strong {
  color: #ffd166;
  font-size: 10px;
}
.invoice-price-warning span {
  font-size: 9px;
  line-height: 1.5;
}
.invoice-products-editor-heading {
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 24px 0 11px;
  display: flex;
}
.invoice-products-editor-heading strong,
.invoice-products-editor-heading span {
  display: block;
}
.invoice-products-editor-heading strong {
  font-size: 13px;
}
.invoice-products-editor-heading span {
  color: #74767d;
  margin-top: 4px;
  font-size: 9px;
}
.invoice-products-editor-heading button {
  color: #ff9b78;
  background: var(--orange-soft);
  cursor: pointer;
  border: 1px solid #ff6f3d47;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 9px;
  font-weight: 850;
}
.invoice-products-editor {
  border: 1px solid var(--line);
  border-radius: 13px;
  width: 100%;
  overflow-x: auto;
}
.invoice-products-editor table {
  min-width: 1050px;
}
.invoice-products-editor th,
.invoice-products-editor td {
  padding: 8px;
}
.invoice-products-editor td:first-child {
  grid-template-columns: 25px 75px minmax(150px, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 270px;
  display: grid;
}
.invoice-products-editor td:first-child > small {
  color: #ff9b78;
  background: var(--orange-soft);
  border-radius: 7px;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0;
  display: grid;
}
.invoice-products-editor input {
  min-width: 80px;
  padding: 9px;
  font-size: 10px;
}
.invoice-products-editor .product-code-input {
  min-width: 75px;
}
.invoice-products-editor .product-description-input {
  min-width: 160px;
}
.invoice-price-cell {
  gap: 5px;
  display: grid;
}
.invoice-price-suggestion {
  color: #ffd166;
  gap: 4px;
  display: grid;
}
.invoice-price-suggestion small {
  font-size: 8px;
  font-weight: 800;
}
.invoice-price-suggestion button {
  color: #ffdca0;
  cursor: pointer;
  background: #ffd1661c;
  border: 1px solid #ffd16659;
  border-radius: 7px;
  padding: 5px 6px;
  font-size: 8px;
  font-weight: 850;
}
.remove-product-button {
  color: #ff9a8a;
  cursor: pointer;
  background: #ff503c1c;
  border-radius: 8px;
  width: 30px;
  height: 30px;
  font-size: 18px;
}
.invoice-attachment-note {
  color: #82848b;
  background: #1c1d21;
  border-radius: 9px;
  margin-top: 13px;
  padding: 10px 12px;
  font-size: 9px;
}
.invoice-attachment-note strong {
  color: #b8b9be;
}
.invoice-details-backdrop {
  z-index: 100;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #000000ad;
  justify-content: flex-end;
  display: flex;
  position: fixed;
  inset: 0;
}
.invoice-details-panel {
  border-left: 1px solid var(--line);
  background: #121316;
  flex-direction: column;
  width: min(760px, 94vw);
  height: 100%;
  animation: 0.2s ease-out invoice-panel-enter;
  display: flex;
  box-shadow: -24px 0 70px #00000073;
}
@keyframes invoice-panel-enter {
  0% {
    opacity: 0.5;
    transform: translate(28px);
  }
}
.invoice-details-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 20px;
  min-height: 92px;
  max-height: 78vh;
  padding: 22px 26px;
  display: flex;
  overflow-y: auto;
}
.invoice-details-header span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 9px;
  font-weight: 850;
}
.invoice-details-header h2 {
  color: #f7f7f8;
  margin: 7px 0 0;
  font-size: 24px;
}
.invoice-header-actions {
  order: 1;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  display: flex;
}
.invoice-edit-button,
.invoice-payment-button {
  color: #fff;
  cursor: pointer;
  border: 1px solid #ff6f3d80;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 13px;
  font-weight: 800;
}
.invoice-edit-button {
  background: #34353b;
}
.invoice-payment-button {
  background: #ff6f3d;
}
.invoice-edit-button:hover:not(:disabled) {
  background: #414249;
}
.invoice-payment-button:hover:not(:disabled) {
  background: #ff835a;
}
.invoice-edit-button:disabled,
.invoice-payment-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.invoice-delete-button {
  color: #fecaca;
  cursor: pointer;
  background: #7f1d1d59;
  border: 1px solid #ef44448c;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 13px;
  font-weight: 800;
}
.invoice-delete-button:hover:not(:disabled) {
  background: #b91c1c80;
  border-color: #ef4444;
}
.invoice-delete-button:disabled,
.invoice-close-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.invoice-close-button {
  color: #b8b9be;
  cursor: pointer;
  background: #222328;
  border-radius: 11px;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  font-size: 24px;
}
.invoice-close-button:hover {
  color: #fff;
  background: #2a2b30;
}
.invoice-details-body {
  padding: 24px 26px 36px;
  overflow-y: auto;
}
.invoice-detail-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}
.invoice-detail-summary > div {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 104px;
  padding: 17px;
  display: flex;
}
.invoice-detail-summary small,
.invoice-detail-summary span {
  color: #797b82;
  font-size: 10px;
}
.invoice-detail-summary strong {
  color: #f0f0f2;
  margin: 7px 0 4px;
  font-size: 16px;
}
.invoice-detail-summary .invoice-total-card {
  background: linear-gradient(135deg, #ff6f3d26, var(--surface));
}
.invoice-detail-summary .invoice-total-card strong {
  color: #ff9a75;
  font-size: 23px;
}
.invoice-payment-overview {
  order: 2;
  flex: 0 0 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
  margin-top: 14px;
  display: grid;
}
.invoice-payment-overview > div {
  border: 1px solid var(--line);
  background: #17181c;
  border-radius: 13px;
  padding: 14px 16px;
}
.invoice-payment-overview small {
  color: #797b82;
  display: block;
}
.invoice-payment-overview strong {
  color: #ff9a75;
  margin-top: 5px;
  display: block;
}
.invoice-action-card {
  order: 3;
  flex: 0 0 100%;
  width: 100%;
  border: 1px solid #ff6f3d5c;
  background: #141519;
  border-radius: 15px;
  margin-top: 16px;
  overflow: hidden;
}
.invoice-action-card h3 {
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 17px 22px;
}
.invoice-action-form {
  padding: 20px 22px;
}
.invoice-action-error {
  color: #ffc0ac;
  background: #ff5a3721;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 11px;
}
.invoice-list-payment-status {
  gap: 3px;
  display: grid;
}
.invoice-list-payment-status strong {
  color: #ff9a75;
}
.invoice-list-payment-status small {
  color: #85868c;
}
.invoice-details-section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 28px 0 13px;
  display: flex;
}
.invoice-details-section-heading h3 {
  margin: 0 0 4px;
  font-size: 17px;
}
.invoice-details-section-heading span {
  color: #74767d;
  font-size: 10px;
}
.invoice-details-section-heading a {
  font-size: 11px;
}
.inline-pdf-button {
  color: #ff9b78;
  cursor: pointer;
  font: inherit;
  background: 0 0;
  padding: 0;
  font-size: 11px;
  font-weight: 750;
}
.inline-pdf-button:hover {
  color: #ffc0aa;
  text-decoration: underline;
}
.invoice-pdf-heading {
  margin-bottom: 13px;
}
.invoice-pdf-viewer {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 15px;
  width: 100%;
  height: min(70vh, 760px);
  min-height: 480px;
}
.invoice-detail-status {
  border: 1px dashed var(--line);
  color: #81838a;
  background: var(--surface);
  text-align: center;
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 120px;
  padding: 22px;
  font-size: 12px;
  display: flex;
}
.invoice-detail-status.error {
  color: #ffb29a;
}
.invoice-detail-status button {
  color: #1a100c;
  background: var(--orange);
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 800;
}
.invoice-products-table {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
}
.invoice-products-table table {
  min-width: 650px;
}
.invoice-products-table tbody tr:last-child td {
  border-bottom: 0;
}
.profile-page {
  gap: 18px;
  display: grid;
}
.profile-identity-card {
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ff6f3d1a, var(--surface) 48%);
  border-radius: 20px;
  align-items: center;
  gap: 20px;
  padding: 26px;
  display: flex;
}
.profile-avatar-large {
  color: #1a100c;
  background: linear-gradient(135deg, #ff6f3d, #ff9b62);
  border-radius: 20px;
  flex: 0 0 68px;
  place-items: center;
  width: 68px;
  height: 68px;
  font-size: 26px;
  font-weight: 900;
  display: grid;
}
.profile-identity-card > div > span,
.profile-card > span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 9px;
  font-weight: 850;
}
.profile-identity-card h2 {
  margin: 7px 0 5px;
  font-size: 24px;
}
.profile-identity-card p,
.profile-card p {
  color: #85878e;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}
.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}
.profile-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
}
.profile-card h3 {
  margin: 9px 0 18px;
}
.profile-card dl {
  gap: 10px;
  margin: 0;
  display: grid;
}
.profile-card dl > div {
  background: #202125;
  border-radius: 11px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 14px;
  display: flex;
}
.profile-card dt {
  color: #7f8188;
  font-size: 10px;
}
.profile-card dd {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}
.profile-card > button {
  color: #1a100c;
  background: var(--orange);
  cursor: pointer;
  border-radius: 11px;
  width: 100%;
  margin-top: 19px;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 850;
}
.profile-card > button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.profile-message {
  color: #ffd1c1;
  background: var(--orange-soft);
  text-align: center;
  border-radius: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 10px;
}
.payment-toolbar {
  border: 1px solid var(--line);
  background: #1a1b1f;
  border-radius: 14px;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 0 18px 18px;
  padding: 16px 18px;
  display: flex;
}
.payment-toolbar strong,
.payment-toolbar span {
  display: block;
}
.payment-toolbar strong {
  margin-bottom: 5px;
  font-size: 13px;
}
.payment-toolbar span {
  color: var(--muted);
  font-size: 10px;
}
.payment-toolbar button,
.payment-dialog-actions button {
  color: #1a100c;
  background: var(--orange);
  cursor: pointer;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 11px;
  font-weight: 850;
}
.payment-toolbar button:disabled,
.payment-dialog-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.payment-toolbar .permission-note {
  color: #ffb29a;
}
.payment-dialog-backdrop {
  z-index: 120;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: #000000b8;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}
.payment-dialog {
  border: 1px solid var(--line);
  background: #15161a;
  border-radius: 20px;
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 26px 90px #0000008c;
}
.payment-dialog-header {
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 21px 23px;
  display: flex;
}
.payment-dialog-header span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 9px;
  font-weight: 850;
}
.payment-dialog-header h2 {
  margin: 6px 0 0;
  font-size: 21px;
}
.payment-dialog-header > button {
  color: #bbbcc1;
  cursor: pointer;
  background: #24252a;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 22px;
}
.payment-form,
.payment-confirmation {
  padding: 23px;
}
.payment-form {
  gap: 15px;
  display: grid;
}
.payment-form label {
  color: #a4a5aa;
  gap: 7px;
  font-size: 10px;
  font-weight: 750;
  display: grid;
}
.payment-form input,
.payment-form select,
.payment-form textarea {
  border: 1px solid var(--line);
  color: #eeeef0;
  width: 100%;
  font: inherit;
  background: #202126;
  border-radius: 10px;
  outline: none;
  padding: 12px 13px;
}
.payment-form input:focus,
.payment-form select:focus,
.payment-form textarea:focus {
  border-color: #ff6f3db3;
}
.payment-form textarea {
  resize: vertical;
}
.payment-form-row {
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  display: grid;
}
.payment-dialog-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  display: flex;
}
.payment-dialog-actions .secondary {
  color: #c7c8cc;
  background: #292a2f;
}
.payment-error {
  color: #ffc0ac;
  background: #ff5a3721;
  border-radius: 9px;
  margin: 0;
  padding: 10px 12px;
  font-size: 10px;
}
.payment-confirmation > p {
  color: var(--muted);
  margin: 0 0 17px;
  font-size: 11px;
}
.payment-confirmation dl {
  gap: 2px;
  margin: 0 0 18px;
  display: grid;
}
.payment-confirmation dl > div {
  background: #202126;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 12px;
  display: flex;
}
.payment-confirmation dl > div:first-child {
  border-radius: 10px 10px 0 0;
}
.payment-confirmation dl > div:last-child {
  border-radius: 0 0 10px 10px;
}
.payment-confirmation dt {
  color: var(--muted);
  font-size: 10px;
}
.payment-confirmation dd {
  color: #f1f1f2;
  text-align: right;
  max-width: 65%;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}
.help-page {
  gap: 18px;
  display: grid;
}
.help-intro {
  background: linear-gradient(135deg, #ff6f3d21, var(--surface) 55%);
  border: 1px solid #ff6f3d33;
  border-radius: 20px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  display: flex;
}
.help-intro span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 9px;
  font-weight: 850;
}
.help-intro h3 {
  margin: 7px 0 6px;
  font-size: 23px;
}
.help-intro p {
  color: #85878e;
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}
.help-manual-link {
  color: #ff9a75;
  background: #ff6f3d1a;
  border: 1px solid #ff6f3d57;
  border-radius: 9px;
  align-items: center;
  width: fit-content;
  margin-top: 14px;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  transition:
    border-color 0.18s,
    background 0.18s;
  display: inline-flex;
}
.help-manual-link:hover {
  background: #ff6f3d2b;
  border-color: #ff6f3d9e;
}
.help-intro > strong {
  color: #ff9a75;
  text-align: right;
  min-width: 90px;
  font-size: 28px;
}
.help-intro > strong small {
  color: #777980;
  font-size: 9px;
  font-weight: 700;
  display: block;
}
.help-articles {
  gap: 10px;
  display: grid;
}
.help-article {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 15px;
  overflow: hidden;
}
.help-article summary {
  cursor: pointer;
  grid-template-columns: 105px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  display: grid;
}
.help-article summary::-webkit-details-marker {
  display: none;
}
.help-article summary > span {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 9px;
  font-weight: 850;
}
.help-article summary strong {
  color: #eeeef0;
  margin-bottom: 5px;
  font-size: 14px;
  display: block;
}
.help-article summary p {
  color: #7d7f86;
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
}
.help-article summary b {
  color: #ff9a75;
  background: var(--orange-soft);
  border-radius: 9px;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 18px;
  transition: transform 0.18s;
  display: grid;
}
.help-article[open] summary b {
  transform: rotate(45deg);
}
.help-article ol {
  counter-reset: help-step;
  gap: 10px;
  margin: 0;
  padding: 0 24px 22px 151px;
  list-style: none;
  display: grid;
}
.help-article li {
  color: #b6b7bc;
  counter-increment: help-step;
  min-height: 27px;
  padding: 5px 0 0 38px;
  font-size: 11px;
  line-height: 1.55;
  position: relative;
}
.help-article li:before {
  content: counter(help-step);
  color: #ff9a75;
  background: var(--orange-soft);
  border-radius: 8px;
  place-items: center;
  width: 27px;
  height: 27px;
  font-size: 10px;
  font-weight: 850;
  display: grid;
  position: absolute;
  top: 0;
  left: 0;
}
.help-empty {
  border: 1px dashed var(--line);
  background: var(--surface);
  text-align: center;
  border-radius: 18px;
  place-content: center;
  min-height: 220px;
  padding: 35px;
  display: grid;
}
.help-empty p {
  color: #7d7f86;
  max-width: 420px;
  margin: 8px 0 0;
  font-size: 11px;
}
@media (width<=1180px) {
  .dashboard-grid,
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-analytics-grid {
    grid-template-columns: 1fr;
  }
}
@media (width<=920px) {
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-showcase {
    min-height: 360px;
    padding: 38px;
  }
  .auth-showcase .showcase-features,
  .auth-showcase > small {
    display: none;
  }
  .showcase-copy h1 {
    font-size: 46px;
  }
  .auth-form-panel {
    padding: 32px 20px;
  }
  .dashboard-shell {
    display: block;
  }
  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    height: auto;
    padding: 16px;
    position: relative;
  }
  .sidebar-brand {
    display: none;
  }
  .sidebar-company {
    margin: 0 0 12px;
  }
  .sidebar-nav {
    flex-direction: row;
    padding-bottom: 4px;
    overflow-x: auto;
  }
  .nav-item {
    flex: none;
    width: auto;
  }
  .nav-item.active {
    box-shadow: inset 0 -2px 0 var(--orange);
  }
  .sidebar-footer {
    display: none;
  }
  .dashboard-header {
    height: 76px;
    padding: 0 20px;
  }
  .dashboard-content {
    padding: 24px 20px;
  }
  .dashboard-overview-grid,
  .report-analysis-grid {
    grid-template-columns: 1fr;
  }
  .invoice-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width<=680px) {
  .app-shell {
    padding: 16px;
  }
  .login-card {
    border-radius: 20px;
    padding: 24px 20px;
  }
  .logo {
    font-size: 30px;
  }
  .auth-showcase {
    min-height: 300px;
    padding: 28px 22px;
  }
  .showcase-copy h1 {
    letter-spacing: -2px;
    font-size: 37px;
  }
  .showcase-copy p {
    font-size: 12px;
  }
  .modern-login-card {
    padding: 28px 22px;
  }
  .company-page-header {
    padding: 0 20px;
  }
  .company-page-header > div span {
    display: none;
  }
  .company-picker {
    padding: 46px 0;
  }
  .company-grid {
    grid-template-columns: 1fr;
  }
  .header-profile {
    display: none;
  }
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
    padding: 26px 22px;
  }
  .dashboard-hero h2 {
    font-size: 30px;
  }
  .hero-status {
    margin-left: 0;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-year-selector {
    align-items: flex-start;
    overflow-x: auto;
  }
  .dashboard-year-nav {
    flex: none;
  }
  .dashboard-year-context {
    display: none;
  }
  .unpaid-invoices-card .overview-heading,
  .supplier-period-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .supplier-year-selector {
    width: 100%;
  }
  .supplier-year-list {
    flex: none;
    flex-wrap: nowrap;
  }
  .quantity-merge-toolbar,
  .quantity-merge-preview > div {
    align-items: stretch;
    flex-direction: column;
  }
  .quantity-merge-toolbar button {
    width: 100%;
  }
  .quantity-merge-preview span {
    text-align: left;
  }
  .unpaid-invoice-list {
    grid-template-columns: 1fr;
  }
  .content-heading,
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-heading-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .section-heading-actions .search-input {
    min-width: 0;
  }
  .data-view-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .data-view-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .data-view-header label {
    justify-content: space-between;
    width: 100%;
  }
  .data-view-header select {
    flex: 1;
  }
  .content-heading p,
  .search-input {
    width: 100%;
  }
  .dashboard-grid,
  .supplier-grid {
    grid-template-columns: 1fr;
  }
  .analytics-heading,
  .analytics-detail-title {
    align-items: flex-start;
  }
  .analytics-ranking-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .analytics-ranking-value {
    text-align: left;
    grid-column: 2;
    min-width: 0;
  }
  .supplier-stats,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .monthly-chart {
    gap: 6px;
    overflow-x: auto;
  }
  .monthly-chart-column {
    min-width: 48px;
  }
  .invoice-details-panel {
    width: 100%;
  }
  .invoice-details-header {
    padding: 18px 20px;
    align-items: flex-start;
  }
  .invoice-header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .invoice-details-body {
    padding: 20px 16px 30px;
  }
  .invoice-detail-summary {
    grid-template-columns: 1fr;
  }
  .invoice-payment-overview {
    grid-template-columns: 1fr;
  }
  .invoice-pdf-viewer {
    height: 64vh;
    min-height: 420px;
  }
  .invoice-details-section-heading,
  .profile-identity-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .payment-toolbar,
  .invoice-upload-toolbar,
  .invoice-sync-note {
    flex-direction: column;
    align-items: flex-start;
  }
  .invoice-sync-note span {
    text-align: left;
  }
  .invoice-upload-backdrop {
    padding: 0;
  }
  .invoice-upload-dialog {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
  .invoice-form-grid {
    grid-template-columns: 1fr;
  }
  .invoice-form-grid label.span-2 {
    grid-column: auto;
  }
  .invoice-supplier-field {
    grid-column: auto;
  }
  .invoice-upload-actions {
    flex-direction: column-reverse;
  }
  .invoice-upload-actions button {
    width: 100%;
  }
  .payment-form-row {
    grid-template-columns: 1fr;
  }
  .payment-dialog-actions {
    flex-direction: column-reverse;
  }
  .payment-dialog-actions button {
    width: 100%;
  }
  .product-edit-backdrop {
    padding: 0;
  }
  .product-edit-dialog {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
  .product-edit-form-row {
    grid-template-columns: 1fr;
  }
  .product-edit-actions {
    flex-direction: column-reverse;
  }
  .product-edit-actions button {
    width: 100%;
  }
  .help-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .help-intro > strong {
    text-align: left;
  }
  .help-article summary {
    grid-template-columns: 1fr 28px;
  }
  .help-article summary > span {
    grid-column: 1/-1;
  }
  .help-article ol {
    padding: 0 20px 20px;
  }
}
