:root {
  color-scheme: dark only;
  --gold: #C9A84C;
  --gold-dim: #8a6f2e;
  --gold-bg: rgba(201, 168, 76, 0.09);
  --dark: #0D0D14;
  --dark2: #13131E;
  --dark3: #1A1A28;
  --dark4: #202030;
  --dark5: #282840;
  --text: #EEE8D5;
  --dim: #9A9082;
  --muted: #4A4840;
  --red: #E05252;
  --red-bg: rgba(224, 82, 82, 0.1);
  --green: #4DBD74;
  --green-bg: rgba(77, 189, 116, 0.1);
  --blue: #5B9BD5;
  --blue-bg: rgba(91, 155, 213, 0.1);
  --orange: #E07D52;
  --border: rgba(255, 255, 255, 0.05);
  --border-gold: rgba(201, 168, 76, 0.15);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --radius: 10px
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

body,
html {
  background: #0d0d14 !important;
  color: #eee8d5;
  color-scheme: dark only
}

body {
  font-family: var(--font);
  font-size: 13px;
  min-height: 100vh
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 210px;
  background: var(--dark2) !important;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto
}

.logo {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--border)
}

.logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .3px
}

.logo-sub {
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 1.5px;
  text-transform: uppercase
}

.nav {
  padding: 12px 8px;
  flex: 1
}

.nav-g {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 10px;
  margin: 10px 0 4px
}

.ni {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
  transition: all .15s;
  margin-bottom: 1px;
  user-select: none
}

.ni:hover {
  background: var(--dark3);
  color: var(--text)
}

.ni.active {
  background: var(--gold-bg);
  color: var(--gold)
}

.ni-icon {
  font-size: 13px;
  width: 18px;
  text-align: center
}

.ni-icon svg {
  width: 17px;
  height: 17px;
  vertical-align: -3px
}

.nb {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700
}

.sb-bottom {
  padding: 10px 8px;
  border-top: 1px solid var(--border)
}

.sync {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 10px;
  color: var(--muted)
}

.sdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0
}

.main {
  margin-left: 210px;
  min-height: 100vh
}

.topbar {
  position: sticky;
  top: 0;
  background: rgba(13, 13, 20, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 13px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  gap: 10px;
  flex-wrap: wrap
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text)
}

.tbr {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap
}

.content {
  padding: 22px 26px
}

.page {
  display: none
}

.page.active {
  display: block
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: none;
  white-space: nowrap
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0d0d14;
  box-shadow: 0 2px 10px rgba(201, 168, 76, .16)
}

.btn-gold:hover {
  opacity: .85
}

.btn-out {
  background: 0 0;
  border: 1px solid var(--border-gold);
  color: var(--dim)
}

.btn-out:hover {
  color: var(--gold);
  border-color: var(--gold-dim)
}

.btn-red {
  background: var(--red-bg);
  border: 1px solid rgba(224, 82, 82, .2);
  color: var(--red)
}

.btn-red:hover {
  background: rgba(224, 82, 82, .18)
}

.btn-sm {
  padding: 5px 11px;
  font-size: 11px
}

.btn-xs {
  padding: 3px 8px;
  font-size: 10px
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed
}

.btn:active:not(:disabled) {
  transform: scale(.97)
}

.f {
  margin-bottom: 12px
}

.f label {
  display: block;
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 4px;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-weight: 700
}

.f input,
.f select,
.f textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  font-family: var(--font);
  font-size: 12px;
  outline: 0;
  transition: border-color .15s
}

.f input:focus,
.f select:focus,
.f textarea:focus {
  border-color: var(--gold-dim)
}

.f input::placeholder,
.f textarea::placeholder {
  color: var(--muted)
}

.f select option {
  background: var(--dark3)
}

.f textarea {
  resize: vertical;
  min-height: 60px
}

.fg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.fg .full {
  grid-column: 1/-1
}

.card {
  background: var(--dark2) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--text) !important
}

.ch {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap
}

.ct {
  font-size: 14px;
  font-weight: 700;
  color: var(--text) !important
}

.cb {
  padding: 16px 18px;
  color: var(--text) !important
}

.kgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px
}

.kcard {
  background: var(--dark2) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 17px 18px;
  position: relative;
  overflow: hidden;
  color: var(--text) !important
}

.kcard::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent)
}

.kl {
  font-size: 10px;
  color: var(--muted) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 700
}

.kv {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--text) !important;
  font-variant-numeric: tabular-nums
}

.kv.gold {
  color: var(--gold) !important
}

.kv.green {
  color: var(--green) !important
}

.kv.red {
  color: var(--red) !important
}

.kv.orange {
  color: var(--orange) !important
}

.kcard.k-over::after {
  background: linear-gradient(90deg, var(--red), transparent)
}

.kcard.k-due::after {
  background: linear-gradient(90deg, var(--orange), transparent)
}

.kcard.k-coll::after {
  background: linear-gradient(90deg, var(--green), transparent)
}

.kcard.k-out::after {
  background: linear-gradient(90deg, var(--gold), transparent)
}

.kcard[onclick] {
  cursor: pointer;
  transition: border-color .15s, transform .1s
}

.kcard[onclick]:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px)
}

.kcard[onclick]:active {
  transform: scale(.99)
}

.kstrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 10px;
  margin: -7px 0 18px;
  padding: 9px 14px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 11px;
  color: var(--dim)
}

.kstrip b {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums
}

.kstrip-l {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 9px;
  font-weight: 700
}

.kstrip-sep {
  color: var(--muted);
  opacity: .6
}

.dkgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 12px
}

.salesgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-bottom: 12px
}

.chip-slate {
  background: rgba(201, 168, 76, .1)
}

@media(max-width:600px) {
  .salesgrid {
    grid-template-columns: 1fr;
    gap: 9px
  }
}

.dkpi {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 16px
}

.dkpi[onclick] {
  cursor: pointer;
  transition: border-color .15s, transform .1s
}

.dkpi[onclick]:hover {
  border-color: var(--border-gold);
  transform: translateY(-1px)
}

.dkpi[onclick]:active {
  transform: scale(.99)
}

.dkpi-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px
}

.dkpi-chip {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.dkpi-chip svg {
  width: 18px;
  height: 18px
}

.dkpi-l {
  font-size: 11px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .6px
}

.dkpi-v {
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text)
}

.dkpi-v.c-red {
  color: var(--red)
}

.dkpi-v.c-orange {
  color: var(--orange)
}

.dkpi-v.c-green {
  color: var(--green)
}

.dkpi-v.c-gold {
  color: var(--gold)
}

.dkpi-s {
  font-size: 11px;
  color: var(--dim);
  margin-top: 7px
}

.chip-red {
  background: rgba(224, 82, 82, .12)
}

.chip-orange {
  background: rgba(224, 125, 82, .12)
}

.chip-green {
  background: rgba(77, 189, 116, .12)
}

.chip-gold {
  background: rgba(201, 168, 76, .13)
}

.ch-ic {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  margin-right: 7px
}

@media(max-width:900px) {
  .dkgrid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:600px) {
  .dkgrid {
    grid-template-columns: 1fr 1fr;
    gap: 9px
  }

  .dkpi {
    padding: 13px
  }

  .dkpi-v {
    font-size: 22px
  }
}

.cv-meta {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 14px;
  margin-bottom: 14px
}

.cv-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
  font-size: 13px
}

.cv-row:last-child {
  border-bottom: none
}

.cv-k {
  color: var(--dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 700;
  flex: 0 0 auto
}

.cv-v {
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums
}

.ks {
  font-size: 10px;
  color: var(--muted) !important;
  margin-top: 5px
}

.tw {
  overflow-x: auto
}

table {
  width: 100%;
  border-collapse: collapse
}

thead tr {
  border-bottom: 1px solid var(--border)
}

th {
  padding: 8px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap
}

td {
  padding: 10px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .02);
  vertical-align: middle;
  font-variant-numeric: tabular-nums
}

tbody tr:hover td {
  background: rgba(255, 255, 255, .012)
}

tbody tr:last-child td {
  border-bottom: none
}

.b {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap
}

.b-red {
  background: var(--red-bg);
  color: var(--red)
}

.b-green {
  background: var(--green-bg);
  color: var(--green)
}

.b-gold {
  background: var(--gold-bg);
  color: var(--gold)
}

.b-blue {
  background: var(--blue-bg);
  color: var(--blue)
}

.b-dim {
  background: rgba(255, 255, 255, .05);
  color: var(--dim)
}

.b-orange {
  background: rgba(224, 125, 82, .1);
  color: var(--orange)
}

.mo {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px
}

.mo.open {
  display: flex
}

.md {
  background: var(--dark2);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto
}

.md-lg {
  max-width: 800px
}

.md-sm {
  max-width: 420px
}

.mh {
  padding: 18px 22px 13px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--dark2);
  z-index: 5
}

.mt {
  font-size: 16px;
  font-weight: 700
}

.mc {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--dark4);
  border: none;
  color: var(--dim);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center
}

.mc:hover {
  background: var(--dark5);
  color: var(--text)
}

.mb {
  padding: 18px 22px
}

.mf {
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--dark2)
}

.sl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 16px 0 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px
}

.sl::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border)
}

.sh {
  display: grid;
  grid-template-columns: 125px 1fr 1fr 1fr 95px 30px;
  gap: 6px;
  margin-bottom: 5px
}

.sh span {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 700;
  padding: 0 2px
}

.sr {
  display: grid;
  grid-template-columns: 125px 1fr 1fr 1fr 95px 30px;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px
}

.sr input,
.sr select {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  outline: 0;
  width: 100%
}

.sr input:focus,
.sr select:focus {
  border-color: var(--gold-dim)
}

.sr input::placeholder {
  color: var(--muted)
}

.rr {
  width: 28px;
  height: 28px;
  background: var(--red-bg);
  border: none;
  border-radius: 6px;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center
}

.rr:hover {
  background: rgba(224, 82, 82, .2)
}

.add-r {
  background: var(--dark3);
  border: 1px dashed var(--border-gold);
  border-radius: 6px;
  padding: 7px;
  color: var(--gold-dim);
  font-size: 11px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: all .15s;
  margin-top: 3px;
  font-family: var(--font);
  font-weight: 600
}

.add-r:hover {
  border-color: var(--gold);
  color: var(--gold)
}

.qs-bar {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px;
  flex-wrap: wrap
}

.qs-btn {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-gold);
  background: 0 0;
  color: var(--gold-dim);
  font-family: var(--font)
}

.qs-btn:hover {
  color: var(--gold);
  border-color: var(--gold)
}

.sg-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--dark3);
  border: 1px solid var(--border-gold);
  border-radius: 7px;
  padding: 7px 12px;
  cursor: pointer;
  margin-bottom: 8px;
  user-select: none;
  transition: all .15s
}

.sg-toggle:hover {
  border-color: var(--gold-dim)
}

.sg-toggle-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: .6px;
  flex: 1
}

.sg-toggle-arrow {
  font-size: 9px;
  color: var(--muted);
  transition: transform .2s
}

.sg-toggle.open .sg-toggle-arrow {
  transform: rotate(180deg)
}

.sg-panel {
  background: var(--dark3);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 13px 14px;
  margin-bottom: 10px;
  display: none
}

.sg-panel.open {
  display: block
}

.sg-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px
}

.sg-row .f {
  margin-bottom: 0
}

.sg-warn {
  font-size: 10px;
  color: var(--orange);
  margin-top: 6px;
  padding: 6px 10px;
  background: rgba(224, 125, 82, .08);
  border: 1px solid rgba(224, 125, 82, .2);
  border-radius: 6px;
  display: none
}

.sg-warn.show {
  display: block
}

@media(max-width:900px) {
  .sg-row {
    grid-template-columns: 1fr 1fr
  }

  .sg-row .sg-gen-btn {
    grid-column: 1/-1
  }
}

.balbox {
  background: var(--dark3);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  text-align: center
}

.bi-label {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px
}

.bi-val {
  font-size: 14px;
  font-weight: 700
}

.bi-val.ok {
  color: var(--green)
}

.bi-val.warn {
  color: var(--orange)
}

.bi-val.err {
  color: var(--red)
}

.ab {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 10px
}

.ab.od {
  border-left: 3px solid var(--red)
}

.ab.ds {
  border-left: 3px solid var(--gold)
}

.ab.dm {
  border-left: 3px solid var(--blue)
}

.ac {
  flex: 1;
  min-width: 0
}

.an {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px
}

.ad {
  font-size: 11px;
  color: var(--dim)
}

.fb {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center
}

.fb input,
.fb select {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  outline: 0
}

.fb input {
  min-width: 180px
}

.drb {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 15px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap
}

.drb label {
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  font-weight: 600
}

.drb input {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 9px;
  color: var(--text);
  font-family: var(--font);
  font-size: 11px;
  outline: 0
}

.qbs {
  display: flex;
  gap: 5px;
  margin-left: auto;
  flex-wrap: wrap
}

.qb {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: 0 0;
  color: var(--dim);
  font-family: var(--font);
  transition: all .15s
}

.qb.active,
.qb:hover {
  background: var(--gold-bg);
  border-color: var(--gold-dim);
  color: var(--gold)
}

.pb {
  height: 4px;
  background: var(--dark4);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px
}

.pf {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e8c96a);
  border-radius: 2px
}

.agrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 16px
}

.acard {
  border-radius: 8px;
  padding: 13px 14px;
  text-align: center
}

.acard.a0 {
  background: rgba(77, 189, 116, .08);
  border: 1px solid rgba(77, 189, 116, .18)
}

.acard.a30 {
  background: rgba(201, 168, 76, .08);
  border: 1px solid rgba(201, 168, 76, .18)
}

.acard.a60 {
  background: rgba(224, 125, 82, .08);
  border: 1px solid rgba(224, 125, 82, .18)
}

.acard.a90 {
  background: rgba(224, 82, 82, .1);
  border: 1px solid rgba(224, 82, 82, .2)
}

.al {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--dim)
}

.av {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px
}

.ac2 {
  font-size: 10px;
  color: var(--muted)
}

.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin-bottom: 14px
}

.vc {
  background: var(--dark3);
  border-radius: 8px;
  padding: 13px 14px
}

.vl {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 7px;
  font-weight: 700
}

.vv {
  font-size: 18px;
  font-weight: 700
}

.fr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 7px;
  margin-bottom: 5px;
  background: var(--dark3)
}

.fr:hover {
  background: var(--dark4)
}

.fr.cur {
  border: 1px solid var(--gold-dim);
  background: var(--gold-bg)
}

.frm {
  font-size: 12px;
  font-weight: 600
}

.frr {
  text-align: right
}

.fra {
  font-size: 14px;
  color: var(--gold);
  font-weight: 700
}

.frmt {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px
}

#toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--dark3);
  border: 1px solid var(--border-gold);
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text);
  z-index: 9999;
  transform: translateY(70px);
  opacity: 0;
  transition: all .25s;
  max-width: 300px;
  font-weight: 500
}

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

#toast.ok {
  border-color: rgba(77, 189, 116, .5)
}

#toast.err {
  border-color: rgba(224, 82, 82, .5)
}

.empty {
  text-align: center;
  padding: 36px;
  color: var(--muted);
  font-size: 12px
}

.amt {
  font-size: 13px;
  font-weight: 700
}

.c-red {
  color: var(--red) !important
}

.c-green {
  color: var(--green) !important
}

.c-gold {
  color: var(--gold) !important
}

.c-dim {
  color: var(--dim) !important
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0
}

#cu-name:hover {
  color: var(--text) !important
}

.amt,
.av,
.bi-val,
.fra,
.frmt,
.kcard .kv,
.kv,
.vv,
td {
  font-variant-numeric: tabular-nums
}

.bottomnav {
  display: none
}

.nav-backdrop {
  display: none
}

.menu-btn {
  display: none
}

@media (max-width:900px) {
  .sidebar {
    position: fixed;
    left: -230px;
    width: 230px;
    transition: left .28s ease;
    box-shadow: 6px 0 24px rgba(0, 0, 0, .4)
  }

  .sidebar.open {
    left: 0
  }

  .main {
    margin-left: 0
  }

  .agrid,
  .kgrid {
    grid-template-columns: repeat(2, 1fr)
  }

  .vgrid {
    grid-template-columns: 1fr
  }

  .three,
  .two {
    grid-template-columns: 1fr
  }

  .sh,
  .sr {
    grid-template-columns: 1fr;
    gap: 4px
  }

  .sh span {
    display: none
  }

  .fg {
    grid-template-columns: 1fr
  }

  .bottomnav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(19, 19, 30, .97);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom)
  }

  .bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 4px 7px;
    min-height: 54px;
    color: var(--dim);
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s
  }

  .bn-item.active {
    color: var(--gold)
  }

  .bn-ic {
    font-size: 19px;
    line-height: 1
  }

  .bn-ic svg {
    width: 23px;
    height: 23px;
    display: block
  }

  .bn-lb {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .2px
  }

  .bn-item.active .bn-lb {
    font-weight: 700
  }

  .bn-badge {
    position: absolute;
    top: 5px;
    right: calc(50% - 22px);
    background: var(--red);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 95
  }

  .nav-backdrop.show {
    display: block
  }

  .sidebar {
    z-index: 120
  }

  .content {
    padding-bottom: calc(74px + env(safe-area-inset-bottom))
  }

  #toast {
    bottom: calc(80px + env(safe-area-inset-bottom));
    right: 12px;
    left: 12px;
    max-width: none
  }
}

@media (max-width:600px) {
  body {
    font-size: 14px
  }

  .topbar {
    padding: 10px 14px;
    gap: 8px
  }

  .page-title {
    font-size: 16px
  }

  .content {
    padding: 16px 14px calc(74px + env(safe-area-inset-bottom))
  }

  #cu-name {
    display: none
  }

  .tw {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px
  }

  .tw td,
  .tw th {
    padding: 9px 10px
  }

  .tw td:first-child,
  .tw th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--dark2);
    box-shadow: 1px 0 0 var(--border)
  }

  .tw thead th:first-child {
    z-index: 3
  }

  .mo {
    padding: 0;
    align-items: flex-end
  }

  .md,
  .md-lg,
  .md-sm {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0
  }

  .md::before {
    content: '';
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 3px;
    background: var(--muted);
    margin: 9px auto 0;
    opacity: .7
  }

  .ni {
    padding: 13px 12px;
    font-size: 14px
  }

  .btn {
    padding: 10px 15px
  }

  .btn-sm {
    padding: 8px 13px;
    font-size: 11px
  }

  .btn-xs {
    padding: 6px 10px
  }

  .qb {
    padding: 7px 12px
  }

  .mc {
    width: 34px;
    height: 34px;
    font-size: 17px
  }

  .drb input,
  .f input,
  .f select,
  .f textarea,
  .fb input,
  .fb select {
    font-size: 16px;
    padding: 11px 12px
  }
}

@media (max-width:600px) {
  .tw-cards {
    overflow: visible;
    border-radius: 0
  }

  .tw-cards table,
  .tw-cards tbody,
  .tw-cards td,
  .tw-cards tr {
    display: block;
    width: 100%
  }

  .tw-cards thead {
    display: none
  }

  .tw-cards td:first-child,
  .tw-cards th:first-child {
    position: static;
    box-shadow: none;
    background: 0 0
  }

  .tw-cards tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 15px;
    margin-bottom: 11px;
    background: rgba(255, 255, 255, .025)
  }

  .tw-cards tr:last-child {
    margin-bottom: 0
  }

  .tw-cards tr:active {
    background: rgba(255, 255, 255, .045)
  }

  .tw-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 6px 0;
    border: none;
    text-align: right;
    white-space: normal;
    min-height: 0;
    font-size: 14px
  }

  .tw-cards td::before {
    content: attr(data-label);
    color: var(--dim);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-align: left;
    flex: 0 0 auto
  }

  .tw-cards td.amt,
  .tw-cards td.c-gold,
  .tw-cards td.c-green,
  .tw-cards td.c-red {
    font-size: 15px;
    font-weight: 700
  }

  .tw-cards td:empty {
    display: none
  }

  .tw-cards td.empty {
    justify-content: center;
    text-align: center;
    color: var(--muted)
  }

  .tw-cards td.empty::before {
    display: none
  }

  .tw-cards td.act {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    text-align: left;
    padding-top: 11px;
    margin-top: 6px;
    border-top: 1px solid var(--border)
  }

  .tw-cards td.act::before {
    display: none
  }

  .tw-cards td.act .btn {
    flex: 1 1 auto;
    min-width: calc(50% - 4px);
    justify-content: center;
    text-align: center
  }
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0d0d14 0, #1a1a26 100%);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px
}

.auth-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5)
}

.auth-logo {
  text-align: center;
  margin-bottom: 22px
}

.auth-logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c9a84c 0, #8b6f2a 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 10px
}

.auth-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 1px;
  margin-bottom: 4px
}

.auth-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .5px
}

.auth-f {
  margin-bottom: 14px
}

.auth-f label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px
}

.auth-f input {
  width: 100%;
  padding: 11px 14px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  box-sizing: border-box;
  outline: 0;
  transition: border-color .2s
}

.auth-f input:focus {
  border-color: var(--gold)
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #c9a84c 0, #8b6f2a 100%);
  color: #000;
  border: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: .2s
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 168, 76, .3)
}

.auth-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none
}

.auth-link {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted)
}

.auth-link a {
  color: var(--gold);
  cursor: pointer;
  text-decoration: none
}

.auth-link a:hover {
  text-decoration: underline
}

.auth-msg {
  font-size: 11px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
  line-height: 1.6
}

.auth-msg.err {
  background: rgba(207, 90, 90, .15);
  color: #e07878;
  border: 1px solid rgba(207, 90, 90, .3)
}

.auth-msg.ok {
  background: rgba(122, 179, 122, .15);
  color: #8ecf8e;
  border: 1px solid rgba(122, 179, 122, .3)
}

.auth-msg.info {
  background: rgba(110, 160, 220, .12);
  color: #a0c8e8;
  border: 1px solid rgba(110, 160, 220, .25)
}

.auth-foot {
  text-align: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 1.5px
}

.mfa-digits {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0
}

.mfa-digits input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: 0;
  transition: border-color .15s
}

.mfa-digits input:focus {
  border-color: var(--gold)
}

.mfa-qr {
  text-align: center;
  margin: 12px 0
}

.mfa-qr img {
  border-radius: 8px;
  border: 3px solid var(--gold-bg)
}

.mfa-secret {
  font-family: monospace;
  font-size: 11px;
  color: var(--dim);
  background: var(--dark3);
  padding: 7px 12px;
  border-radius: 6px;
  letter-spacing: 2px;
  margin: 8px 0 14px;
  text-align: center;
  word-break: break-all
}

.inv-print {
  display: none;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 99999
}

.inv-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 55px 60px 45px;
  background: #fff;
  position: relative
}

.inv-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #c9a84c 0, #e5c76b 25%, #c9a84c 50%, #e5c76b 75%, #c9a84c 100%)
}

.inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 0 28px;
  border-bottom: 1px solid #e8dcb8;
  margin-bottom: 32px;
  gap: 40px
}

.inv-brand-left {
  width: 58%;
  min-width: 0;
  display: flex;
  gap: 18px;
  align-items: flex-start
}

.inv-logo {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  object-fit: contain
}

.inv-brand-text {
  flex: 1;
  min-width: 0
}

.inv-company-en {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: .3px;
  line-height: 1.15;
  margin-bottom: 6px
}

.inv-company-ar {
  font-size: 16px;
  color: #555;
  font-weight: 600;
  direction: rtl;
  text-align: left;
  line-height: 1.3;
  margin-bottom: 14px
}

.inv-company-meta {
  font-size: 10.5px;
  color: #666;
  line-height: 1.8
}

.inv-company-meta strong {
  color: #1a1a1a;
  font-weight: 600
}

.inv-brand-right {
  width: 40%;
  text-align: right
}

.inv-title-wrap {
  display: inline-block;
  padding: 11px 26px;
  background: #1a1a1a;
  color: #fff;
  border-left: 3px solid #c9a84c
}

.inv-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 3.5px;
  margin: 0
}

.inv-subtitle {
  font-size: 11px;
  color: #e5c76b;
  margin-top: 3px;
  font-weight: 600;
  direction: rtl;
  letter-spacing: 1px
}

.inv-meta-table {
  margin-top: 16px;
  font-size: 11.5px;
  width: 100%
}

.inv-meta-table td {
  padding: 3.5px 0;
  vertical-align: top
}

.inv-meta-table td:first-child {
  color: #999;
  text-transform: uppercase;
  letter-spacing: .8px;
  font-size: 9.5px;
  padding-right: 14px;
  white-space: nowrap;
  text-align: right;
  font-weight: 600
}

.inv-meta-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #1a1a1a
}

.inv-meta-strong {
  color: #8b6f2a !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: .5px
}

.inv-billto {
  background: #fbf8f1;
  border-left: 3px solid #c9a84c;
  padding: 15px 20px;
  margin-bottom: 26px;
  border-radius: 0 3px 3px 0
}

.inv-billto-label {
  font-size: 9.5px;
  color: #8b6f2a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 7px
}

.inv-billto-name {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 5px;
  letter-spacing: .2px
}

.inv-billto-meta {
  font-size: 11.5px;
  color: #555;
  line-height: 1.8
}

.inv-billto-meta span.k {
  color: #999
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px
}

.inv-table thead th {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #8b6f2a;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 0 12px;
  text-align: left;
  border-bottom: 2px solid #1a1a1a
}

.inv-table thead th:first-child {
  padding-left: 2px
}

.inv-table thead th.num {
  text-align: right;
  padding-right: 2px
}

.inv-table tbody td {
  padding: 18px 0;
  font-size: 12.5px;
  color: #1a1a1a;
  border-bottom: 1px solid #f0e8d0;
  vertical-align: top
}

.inv-table tbody td:first-child {
  padding-left: 2px
}

.inv-table tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  padding-right: 2px
}

.inv-table tbody td:last-child {
  font-weight: 700
}

.inv-desc-main {
  font-weight: 600;
  margin-bottom: 3px;
  color: #1a1a1a
}

.inv-desc-sub {
  font-size: 10.5px;
  color: #999
}

.inv-totals-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px
}

.inv-notes-area {
  flex: 1;
  padding: 14px 18px;
  background: #fafafa;
  border-radius: 3px;
  font-size: 10.5px;
  color: #666;
  line-height: 1.7;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between
}

.inv-notes-label {
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  margin-bottom: 7px
}

.inv-amt-words {
  margin-top: 12px;
  font-style: italic;
  color: #8b6f2a;
  font-size: 11px;
  padding-top: 10px;
  border-top: 1px dashed #e8dcb8
}

.inv-totals {
  min-width: 300px
}

.inv-totals-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 12px;
  color: #555
}

.inv-totals-row span:last-child {
  font-weight: 600;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums
}

.inv-totals-row.sub {
  border-bottom: 1px solid #efe6ce
}

.inv-totals-row.grand {
  background: #1a1a1a;
  color: #fff;
  padding: 18px 20px;
  margin-top: 10px;
  border-left: 4px solid #c9a84c;
  border-radius: 0 3px 3px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase
}

.inv-totals-row.grand span:last-child {
  color: #e5c76b;
  font-size: 19px;
  letter-spacing: .3px;
  font-weight: 600
}

.inv-footer-block {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e8dcb8;
  position: relative
}

.inv-pay-info {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 24px
}

.inv-pay-col {
  flex: 1
}

.inv-pay-col h5 {
  font-size: 9.5px;
  color: #8b6f2a;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 8px;
  font-weight: 700
}

.inv-pay-col p {
  font-size: 11px;
  color: #444;
  line-height: 1.8;
  margin: 0
}

.inv-signature-area {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  gap: 60px;
  position: relative
}

.inv-sig-box {
  flex: 1;
  text-align: center;
  padding-top: 38px;
  border-top: 1px solid #ccc;
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  position: relative
}

.inv-stamp {
  position: absolute;
  right: 50px;
  top: -72px;
  width: 135px;
  height: auto;
  transform: rotate(-14deg);
  opacity: .72;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: multiply
}

.inv-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 9.5px;
  color: #aaa;
  letter-spacing: .6px;
  padding-top: 14px;
  border-top: 1px dashed #ddd;
  line-height: 1.8
}

.inv-footer-brand {
  color: #8b6f2a;
  font-weight: 700;
  letter-spacing: 2px
}

@media print {

  body.printing-doc,
  html:has(body.printing-doc) {
    background: #fff !important;
    color: #1a1a1a !important;
    color-scheme: light !important
  }

  body:not(.normal-print) * {
    visibility: hidden
  }

  body:not(.normal-print) .inv-print,
  body:not(.normal-print) .inv-print * {
    visibility: visible
  }

  .inv-print {
    display: none
  }

  .inv-print.printing {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    padding: 0;
    margin: 0;
    background: #fff !important;
    color: #1a1a1a !important
  }

  .inv-print.printing,
  .inv-print.printing * {
    color-scheme: light !important
  }

  .inv-page {
    padding: 30px 40px;
    box-shadow: none;
    background: #fff !important
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important
  }

  body:not(.normal-print) .main,
  body:not(.normal-print) .mo,
  body:not(.normal-print) .sidebar,
  body:not(.normal-print) .topbar {
    display: none !important
  }

  .inv-print thead,
  .inv-print tr {
    page-break-inside: avoid
  }

  .inv-print thead {
    display: table-header-group
  }

  .inv-print tbody tr {
    page-break-inside: avoid;
    page-break-after: auto
  }
}

.card.collapsible>.ch {
  cursor: pointer;
  user-select: none
}

.card.collapsible>.ch .ct::before {
  content: '▾';
  display: inline-block;
  margin-right: 7px;
  font-size: 11px;
  transition: transform .15s;
  color: var(--gold, #c9a24b)
}

.card.collapsed>.ch .ct::before {
  transform: rotate(-90deg)
}

.card.collapsed>.cb {
  display: none !important
}

.card.collapsed>.ch {
  opacity: .82
}

@media print {
  .card.collapsed>.cb {
    display: block !important
  }

  .card.collapsible>.ch .ct::before {
    display: none !important
  }
}

body.viewer-mode .viewer-hide {
  display: none !important
}

body.viewer-mode .viewer-badge {
  display: inline-flex !important;
  align-items: center
}

.viewer-badge {
  display: none;
  background: rgba(91, 155, 213, .12);
  border: 1px solid rgba(91, 155, 213, .3);
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: .5px
}

@media print {
  @page {
    margin: 14mm 12mm
  }

  body.normal-print #toast,
  body.normal-print .menu-btn,
  body.normal-print .nb,
  body.normal-print .toast,
  body.normal-print .viewer-badge {
    display: none !important
  }

  body.normal-print .btn,
  body.normal-print .drb,
  body.normal-print .fb,
  body.normal-print .sidebar,
  body.normal-print .topbar {
    display: none !important
  }

  body.normal-print .main {
    margin: 0 !important
  }

  body.normal-print .content {
    padding: 0 !important
  }

  body.normal-print {
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 11px
  }

  body.normal-print .page {
    display: none !important
  }

  body.normal-print .page.active {
    display: block !important
  }

  body.normal-print .card,
  body.normal-print .kcard {
    background: #fff !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin-bottom: 12px
  }

  body.normal-print .amt,
  body.normal-print .ct,
  body.normal-print .kl,
  body.normal-print .ks,
  body.normal-print .kv,
  body.normal-print td,
  body.normal-print th {
    color: #1a1a1a !important
  }

  body.normal-print .b {
    border: 1px solid #999 !important;
    color: #1a1a1a !important;
    background: 0 0 !important
  }

  body.normal-print thead tr {
    border-bottom: 2px solid #000 !important
  }

  body.normal-print thead {
    display: table-header-group
  }

  body.normal-print tfoot {
    display: table-footer-group
  }

  body.normal-print tr {
    page-break-inside: avoid
  }

  body.normal-print td,
  body.normal-print th {
    border-bottom: 1px solid #ddd !important;
    padding: 5px 7px !important
  }

  body.normal-print .c-red {
    color: #b00 !important
  }

  body.normal-print .c-green {
    color: #060 !important
  }

  body.normal-print .c-gold {
    color: #8b6f2a !important
  }

  body.normal-print .print-header {
    display: block !important;
    border-bottom: 3px solid #8b6f2a;
    padding-bottom: 12px;
    margin-bottom: 18px
  }

  body.normal-print .print-header h1 {
    font-size: 20px;
    margin: 0 0 3px;
    color: #1a1a1a !important
  }

  body.normal-print .print-header .ph-sub {
    font-size: 12px;
    color: #555 !important
  }

  body.normal-print .print-header .ph-meta {
    font-size: 10px;
    color: #777 !important;
    margin-top: 5px
  }

  body.normal-print .card .ch {
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
    margin-bottom: 8px
  }

  body.normal-print .card .ct {
    font-size: 14px !important;
    font-weight: 700
  }

  body.normal-print .three {
    display: flex !important;
    gap: 10px
  }

  body.normal-print .three .kcard {
    flex: 1;
    text-align: center
  }

  body.normal-print .report-break {
    page-break-before: always
  }
}

.print-header {
  display: none
}