* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f4f6f7;
  color: #18242c;
  font: 15px system-ui,Arial;
  display: flex;
  min-height: 100vh;
}
aside {
  width: 245px;
  background: linear-gradient(160deg,#181818,#292929);
  color: white;
  padding: 24px 16px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.logo {
  font-size: 25px;
  font-weight: 850;
  border-bottom: 4px solid #ffae00;
  padding: 15px 0 22px;
  margin-bottom: 28px;
}
nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  margin: 5px 0;
  font-size: 17px;
  padding: 16px;
}
nav button.active {
  background: #ffae00;
}
.status {
  margin-top: 25px;
  border-top: 1px solid #52636b;
  padding: 22px 5px;
  color: #8ce6a5;
}
.factory {
  margin-top: auto;
  text-align: center;
  color: #8ca5a7;
  font-size: 22px;
  line-height: 2;
}
main {
  margin-left: 245px;
  padding: 26px;
  width: calc(100% - 245px);
}
h1 {
  font-size: 34px;
  margin: 0;
}
h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
p {
  margin: 6px 0 18px;
  color: #60717a;
}
.head,.actions,.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(170px,1fr));
  gap: 15px;
  margin: 22px 0;
}
.card,.panel {
  background: white;
  border: 1px solid #e1e7e9;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px #142c3610;
}
.card:nth-child(1) {
  background: #fff0ce;
}
.card:nth-child(2) {
  background: #f1f2f4;
}
.card:nth-child(3) {
  background: #fcecef;
}
.card strong {
  display: block;
  font-size: 27px;
  margin-top: 10px;
  color: #3b2b10;
}
.panel {
  margin: 16px 0;
  overflow: auto;
}
button {
  border: 0;
  border-radius: 8px;
  background: #a86600;
  color: white;
  padding: 11px 16px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
button:hover {
  filter: brightness(.92);
}
.secondary {
  background: #e8edf0;
  color: #292929;
}
input,select {
  border: 1px solid #ccd6dc;
  border-radius: 7px;
  padding: 10px;
  font: inherit;
  max-width: 100%;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  background: #edf1f3;
  color: #34444d;
}
td,th {
  padding: 14px 12px;
  border-bottom: 1px solid #e4e9ec;
}
td strong {
  font-weight: 700;
}
.green {
  color: #a86600;
}
.red {
  color: #c52d36;
}
.bar {
  display: inline-block;
  width: 100px;
  height: 10px;
  background: #e3e8eb;
  border-radius: 10px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: #e9a000;
}
.chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 220px;
  border-bottom: 1px solid #dce3e6;
  padding: 15px 0;
}
.column {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  font-size: 12px;
}
.column i {
  display: block;
  background: linear-gradient(#d58b00,#ffe3a0);
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
dialog {
  border: 0;
  border-radius: 14px;
  width: min(560px,95vw);
  max-height: 90vh;
  padding: 24px;
  box-shadow: 0 12px 60px #0005;
}
dialog::backdrop {
  background: #10232c88;
}
label {
  display: grid;
  gap: 5px;
  margin: 10px 0;
}
#error {
  color: #c52d36;
}
.muted {
  color: #647780;
  font-size: 13px;
}
@media(max-width:800px) {
  body {
    display: block;
  }
  aside {
    position: static;
    width: 100%;
    padding: 12px;
  }
  .logo {
    margin: 0;
    padding: 5px;
    font-size: 20px;
  }
  nav {
    display: flex;
    overflow: auto;
  }
  nav button {
    font-size: 13px;
    padding: 10px;
    white-space: nowrap;
  }
  .status {
    margin: 0;
    padding: 8px;
  }
  .factory {
    display: none;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 12px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 26px;
  }
  .card strong {
    font-size: 22px;
  }
}
/* V2 industrial visual theme */
:root {
  --green: #ffae00;
}
body {
  font-family: Arial,system-ui,sans-serif;
  background: #f5f6f8;
  color: #101b22;
}
aside {
  width: clamp(230px,19vw,310px);
  padding: 24px 16px;
  background: #202020;
  overflow: hidden;
  isolation: isolate;
}
aside:after {
  content: '';
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(#202020 0%,transparent 45%),url('/assets/factory.png') center bottom/cover no-repeat;
  z-index: -1;
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  border: 0;
  margin-bottom: 32px;
  padding: 0 0 15px;
  position: relative;
  font-size: clamp(21px,2vw,30px);
}
.logo:after {
  content: '';
  width: 75%;
  height: 5px;
  background: #ffae00;
  position: absolute;
  bottom: 0;
  border-radius: 50%;
}
.logo img {
  width: 72px;
  height: 72px;
  filter: brightness(0) invert(1);
}
nav button {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  font-size: 18px;
  padding: 17px 24px;
  border-radius: 12px;
  margin: 7px 0;
}
nav button .ico {
  filter: brightness(0) invert(1);
  width: 28px;
  height: 28px;
}
nav button.active {
  background: linear-gradient(100deg,#ffbc26,#f2a000);
}
.status {
  font-weight: 700;
  color: #8af39e;
  display: flex;
  gap: 10px;
  align-items: center;
}
.status i {
  width: 13px;
  height: 13px;
  background: #22d44c;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #22d44c25;
}
.factory {
  display: none;
}
main {
  margin-left: clamp(230px,19vw,310px);
  width: calc(100% - clamp(230px,19vw,310px));
  padding: 24px 28px;
}
.ico {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
}
h1,h2 {
  display: flex;
  align-items: center;
  gap: 12px;
}
h1 {
  font-size: 36px;
  letter-spacing: -1px;
}
h1 .ico {
  width: 48px;
  height: 48px;
}
h2 .ico {
  width: 30px;
  height: 30px;
}
.head p {
  margin-left: 60px;
}
.date-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #dbe1e7;
  border-radius: 10px;
  padding: 12px 16px;
}
.cards {
  gap: 16px;
}
.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 115px;
  overflow: hidden;
  font-weight: 700;
  padding: 20px 16px;
}
.card>.ico {
  width: 34px;
  height: 34px;
}
.card>div {
  z-index: 1;
}
.card .ghost {
  position: absolute;
  right: -7px;
  bottom: -13px;
  width: 100px;
  height: 100px;
  opacity: .12;
  transform: rotate(-5deg);
}
.card strong {
  font-size: clamp(20px,2vw,32px);
  letter-spacing: -.7px;
}
.card:nth-child(3) strong {
  color: #a51e28;
}
.card:nth-child(4) {
  background: #fff4d9;
}
.panel {
  border-radius: 15px;
  padding: 18px;
  box-shadow: 0 5px 14px #152b3610;
}
.panel .head {
  margin-bottom: 14px;
}
.panel .head h2 {
  margin: 0;
}
th {
  background: #e9edf1;
  color: #18242c;
  font-size: 14px;
}
td {
  font-size: 15px;
}
td,th {
  padding: 13px 10px;
}
tbody tr:hover {
  background: #fff9eb;
}
.material-icon {
  margin-right: 12px;
  width: 30px;
  height: 30px;
}
.material-icon[src*="pile"] {
  filter: grayscale(1);
}
.material-icon[src*="water"] {
  filter: hue-rotate(85deg);
}
.material-icon[src*="flask"] {
  filter: hue-rotate(155deg);
}
.green,.red {
  font-weight: 700;
}
.movement,.grade {
  display: inline-block;
  border-radius: 7px;
  padding: 5px 12px;
  background: #d8f4df;
  color: #076d2b;
  font-weight: 700;
}
.movement.red {
  background: #ffe1e4;
  color: #b51d29;
}
.bar {
  height: 12px;
  width: clamp(55px,8vw,130px);
}
.bar i {
  background: linear-gradient(90deg,#d58b00,#ffbf35);
}
.chart {
  background: repeating-linear-gradient(to top,transparent 0,transparent 42px,#e6eaed 43px,#e6eaed 44px);
  gap: 5px;
}
.column i {
  background: linear-gradient(#d58b00,#ffe3a0);
}
.filters {
  background: white;
}
.filters label {
  font-weight: 700;
}
.secondary .ico {
  width: 19px;
  height: 19px;
}
.actions {
  justify-content: flex-end;
}
.head {
  border-bottom: 1px solid #e4e8ec;
  padding-bottom: 12px;
}
.panel .head {
  border: 0;
}
.panel h2 {
  font-size: 20px;
}
@media(max-width:800px) {
  aside {
    width: 100%;
  }
  aside:after {
    display: none;
  }
  .logo {
    flex-direction: row;
    margin: 0;
    font-size: 20px;
    justify-content: flex-start;
  }
  .logo img {
    width: 32px;
    height: 32px;
  }
  .logo:after {
    display: none;
  }
  nav button {
    padding: 10px;
    font-size: 13px;
    gap: 5px;
  }
  nav button .ico {
    width: 18px;
    height: 18px;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 12px;
  }
  h1 {
    font-size: 26px;
  }
  h1 .ico {
    width: 32px;
    height: 32px;
  }
  .head p {
    margin-left: 0;
  }
  .card strong {
    font-size: 23px;
  }
  .cards {
    grid-template-columns: repeat(auto-fit,minmax(155px,1fr));
  }
  .card {
    min-height: 100px;
    padding: 12px;
  }
  .card>.ico {
    width: 24px;
    height: 24px;
  }
}
/* Reference artwork, original crops, responsive live interface */
body {
  font-family: 'Segoe UI',Arial,sans-serif;
  color: #101619;
  background: linear-gradient(120deg,#f4f6f8,#fafafa);
  font-size: clamp(14px,1.08vw,18px);
}
aside {
  width: 18.9vw;
  padding: 1.2vw 1vw;
  background: #202020;
}
aside:after {
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(#202020,transparent 22%),var(--plant) center bottom/100% auto no-repeat;
}
aside {
  --plant: url('/assets/plant.png');
}
aside:after {
  height: 39%;
}
.logo {
  padding: 0;
  margin: 0 0 1.5vw;
}
.logo:after {
  display: none;
}
.logo img {
  width: 100%;
  height: auto;
  filter: none;
  object-fit: contain;
}
.status {
  border-top: 1px solid #74818a;
  font-size: 1.15vw;
  margin: 1.3vw .5vw 0;
  padding: 1.5vw .5vw;
  color: #a1f3ad;
}
nav button {
  font-size: 1.35vw;
  padding: 1.05vw 1.4vw;
  gap: 1.3vw;
  margin: .35vw 0;
}
main {
  margin-left: 18.9vw;
  width: 81.1vw;
  padding: 1.3vw 1.7vw;
}
h1 {
  font-size: 2.7vw;
  line-height: 1.1;
  color: #0b1116;
}
h1 .ico {
  width: 3.5vw;
  height: 3.5vw;
}
h2,.panel h2 {
  font-size: 1.55vw;
  color: #101619;
}
.head p {
  font-size: 1.2vw;
  color: #202b32;
  margin: 0 0 0 4.1vw;
}
.head {
  padding-bottom: 1.3vw;
}
.cards {
  margin: 1vw 0 1.5vw;
  gap: 1.2vw;
}
.card {
  min-height: 7.6vw;
  padding: 1.35vw 1.4vw;
  border-radius: 1.2vw;
  gap: 1vw;
  font-size: 1.25vw;
}
.card strong {
  font-size: 2.25vw;
  margin-top: .4vw;
  white-space: nowrap;
}
.card>.ico {
  width: 2.8vw;
  height: 2.8vw;
}
.card .ghost {
  opacity: .12;
}
.card:nth-child(1) {
  background: #fff0ce;
}
.card:nth-child(2) {
  background: #f1f2f4;
}
.card:nth-child(3) {
  background: #fcebee;
}
.panel {
  padding: 1.15vw;
  border-radius: 1.1vw;
  margin: 1vw 0;
  background: #ffffffb5;
}
.panel .head {
  padding: 0;
  margin-bottom: 1vw;
}
td,th {
  font-size: 1.05vw;
  padding: .75vw .65vw;
  color: #101619;
}
td {
  height: 3.2vw;
}
th {
  background: #e9edf0;
}
.material-icon {
  width: 2.8vw;
  height: 2.1vw;
  object-fit: contain;
  vertical-align: middle;
  margin-right: .8vw;
  mix-blend-mode: multiply;
}
.bar {
  width: 10vw;
  height: .8vw;
}
.green {
  color: #006b19;
}
.red {
  color: #d00000;
}
button {
  font-size: 1.05vw;
  border-radius: .65vw;
}
body[data-page="0"] .card .ghost {
  display: none;
}
body[data-page="0"] .card:after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 35%;
  height: 90%;
  background: var(--art) right bottom/contain no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
}
body[data-page="0"] .card:nth-child(1) {
  --art: url('/assets/silos.png');
}
body[data-page="0"] .card:nth-child(2) {
  --art: url('/assets/dump.png');
}
body[data-page="0"] .card:nth-child(3) {
  --art: url('/assets/mixer.png');
}
body[data-page="2"] .card {
  min-height: 11vw;
  background: #fff;
}
body[data-page="2"] .card:nth-child(1),body[data-page="2"] .card:nth-child(4) {
  background: #fff8e7;
}
body[data-page="2"] .card strong,body[data-page="3"] .card strong {
  font-size: 1.8vw;
  color: #101619;
}
body[data-page="2"] .card:nth-child(1) strong,body[data-page="2"] .card:nth-child(4) strong {
  color: #805000;
}
.chart {
  height: 18vw;
}
.history-split {
  grid-template-columns: 1.7fr 1fr;
}
.detail-banner {
  display: flex;
  justify-content: space-between;
  background: #fff0ce;
  padding: 1vw;
  border-radius: 10px;
  color: #805000;
  gap: 8px;
}
.filters {
  gap: .6vw;
}
.filters label {
  margin: 0;
}
.filters input,.filters select {
  font-size: 1vw;
}
.actions {
  margin: .5vw 0;
}
body[data-page="3"] .card:nth-child(3) {
  background: #fff5e4;
}
body[data-page="3"] .card:nth-child(4) {
  background: #eef0f4;
}
@media(max-width:800px) {
  aside {
    width: 100%;
    padding: 12px;
  }
  .logo img {
    width: 150px;
  }
  .status,nav button,button,td,th,.filters input,.filters select {
    font-size: 14px;
  }
  main {
    margin: 0;
    width: 100%;
    padding: 12px;
  }
  h1 {
    font-size: 28px;
  }
  h2,.panel h2 {
    font-size: 20px;
  }
  .head p {
    font-size: 14px;
    margin: 0;
  }
  .card {
    font-size: 14px;
    min-height: 100px;
    padding: 12px;
  }
  .card strong,body[data-page="2"] .card strong,body[data-page="3"] .card strong {
    font-size: 22px;
  }
  .material-icon {
    width: 30px;
    height: 24px;
  }
  .chart {
    height: 240px;
  }
  .history-split {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 12px;
  }
  .bar {
    width: 80px;
    height: 10px;
  }
}
.photo-preview {
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  margin: 8px 0;
}
.photo-preview img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.material-icon {
  object-fit: contain;
}

/* Xarajatlar */
.expense-types { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; }
.expense-chip { background: #edf7ef; color: #16753a; border: 1px solid #cce8d4; border-radius: 8px; padding: 7px 12px; }
#fields textarea { width: 100%; box-sizing: border-box; font: inherit; border: 1px solid #d9e0e3; border-radius: 7px; padding: 10px; resize: vertical; }

/* Statistika */
.stats-cards { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:16px 0; }
.stats-kpi { display:flex; align-items:center; gap:12px; border-top:3px solid var(--series); min-width:0; }
.stats-kpi strong { display:block; color:var(--series); font-size:clamp(16px,1.65vw,30px); margin-top:9px; overflow-wrap:anywhere; }
.stats-kpi .ico { width:34px; height:34px; }
.stats-legend { display:flex; flex-wrap:wrap; gap:22px; margin:20px 0; }
.stats-legend span { display:flex; align-items:center; gap:8px; }
.stats-legend i,#stat-tooltip i { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; }
.stats-chart { position:relative; width:100%; }
.stats-chart svg { display:block; width:100%; height:auto; overflow:visible; }
.stats-chart svg text { font:12px Arial,sans-serif; fill:#536780; }
#stat-tooltip { position:absolute; top:8px; background:#242424; color:white; padding:12px 15px; border-radius:12px; box-shadow:0 8px 24px #24242444; font-size:13px; line-height:1.8; pointer-events:none; max-width:95%; }
.stats-note { color:#718096; font-size:13px; }
@media(max-width:1100px){ .stats-cards {grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:540px){ .stats-cards {grid-template-columns:1fr;} .stats-chart svg {min-width:560px;} .stats-chart {overflow-x:auto;} }

/* V12: shared responsive KPI layout across all six pages. */
.cards, .stats-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  align-items: stretch;
}
.card, .stats-kpi {
  min-width: 0;
  gap: clamp(8px, .8vw, 14px);
  padding: clamp(12px, 1.1vw, 20px);
  font-size: clamp(14px, 1.15vw, 19px);
  align-items: flex-start;
  container-type: inline-size;
}
.card > .ico, .stats-kpi > .ico {
  flex: 0 0 auto;
  width: clamp(24px, 2.2vw, 36px);
  height: clamp(24px, 2.2vw, 36px);
}
.card > div, .stats-kpi > div {
  flex: 1 1 0;
  min-width: 0;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
}
.card strong, body[data-page="2"] .card strong,
body[data-page="3"] .card strong, .stats-kpi strong {
  font-size: clamp(16px, 7.8cqi, 32px);
  line-height: 1.25;
  letter-spacing: -.025em;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.detail-banner > strong, .head > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 540px) {
  .cards, .stats-cards { grid-template-columns: 1fr; }
}

/* BBE BETON brand */
body { background: #f6f6f5; color: #171717; }
aside { background: #202020; }
aside:after { background: linear-gradient(#202020,transparent 35%),var(--plant) center bottom/100% auto no-repeat; filter: grayscale(.85); }
.logo { background: white; border-radius: 12px; padding: 8px; margin-bottom: 18px; }
.logo img { width: 100%; height: auto; max-height: 155px; object-fit: contain; filter: none; }
button { background: #ffae00; color: #181818; }
button:hover { filter: brightness(.96); }
nav button { background: transparent; color: #fff; }
nav button.active { background: linear-gradient(100deg,#ffbf30,#ffa800); color: #181818; }
nav button.active .ico { filter: brightness(0); }
button.secondary { background: #ececec; color: #242424; }
.status { color: #ffd36c; }
.status i { background: #ffae00; box-shadow: 0 0 0 5px #ffae0025; }
input:focus,select:focus,textarea:focus { outline: 2px solid #ffae00; outline-offset: 1px; }
.card,.panel { border-color: #e4e2dd; }
.card strong { color: #26221b; }
body[data-page="2"] .card:nth-child(1) strong { color: #805000; }
.green,.movement.green { color: #087532; }
@media(max-width:800px) { .logo { max-width: 180px; } .logo img { max-height: 95px; } }

.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 0 4px}.pagination>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.pagination button{min-width:34px;padding:8px 10px}.pagination button:disabled{opacity:.65;cursor:default}

/* Sales history: fit all columns, stack action buttons, keep pagination. */
body[data-page="3"] .history-split { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); align-items: start; }
body[data-page="3"] .history-split > .panel { min-width: 0; overflow-x: auto; }
body[data-page="3"] .history-split > .panel:first-child table { width: 100%; table-layout: fixed; white-space: normal; min-width: 0; }
body[data-page="3"] .history-split > .panel:first-child :is(th,td) { white-space: normal; overflow-wrap: anywhere; padding: 9px 6px; font-size: 13px; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(1) { width: 24%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(2) { width: 10%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(3) { width: 10%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(4) { width: 13%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(5) { width: 19%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(6) { width: 24%; }
body[data-page="3"] .history-split > .panel:first-child td:last-child button { display: block; width: 100%; max-width: 100%; margin: 3px 0; padding: 8px 5px; font-size: 12px; white-space: normal; overflow-wrap: anywhere; }
@media(max-width:1100px) { body[data-page="3"] .history-split { grid-template-columns: minmax(0,1fr); } }
@media(max-width:600px) { body[data-page="3"] .history-split > .panel:first-child table { min-width: 560px; } }

/* Seven-column sales history */
body[data-page="3"] .history-split > .panel:first-child table { min-width: 760px; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(1) { width: 19%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(2) { width: 8%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(3) { width: 9%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(4) { width: 15%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(5) { width: 16%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(6) { width: 13%; }
body[data-page="3"] .history-split > .panel:first-child th:nth-child(7) { width: 20%; }

#supplier-fields[hidden]{display:none!important}.supplier-totals{padding:12px;background:#fff4cf;border-radius:8px;margin:8px 0;font-weight:700}.supplier-history,body[data-page="6"] .panel,body[data-page="1"] .panel{min-width:0;overflow-x:auto}body[data-page="6"] td{white-space:normal;overflow-wrap:anywhere}
/* Supplier ledger */
.supplier-debt{color:#c62828!important;font-weight:750}.supplier-paid{color:#16803c;font-weight:700}.supplier-history table{width:100%;min-width:1050px;border-collapse:separate;border-spacing:0;font-size:13px}.supplier-history th{background:#fff1c7;color:#29251a;text-align:left;padding:14px 10px}.supplier-history td{padding:13px 10px;border-bottom:1px solid #e5e7eb;vertical-align:middle}.supplier-history tbody tr:nth-child(even){background:rgba(128,128,128,.045)}.supplier-history tbody tr:hover{background:rgba(255,176,0,.09)}.supplier-history td:nth-child(n+7):nth-child(-n+9){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.supplier-kind{display:inline-block;padding:5px 9px;border-radius:6px;font-weight:700;white-space:nowrap}.supplier-kind.incoming{background:#e4f5e9;color:#17663a}.supplier-kind.payment{background:#e7efff;color:#2455a5}
