@import "https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap";
/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --paper: #eff4ec;
  --paper-2: #e4ecdf;
  --ink: #16241c;
  --ink-soft: #51624f;
  --line: #c7d3c0;
  --sidebar-bg: #0f1f17;
  --sidebar-ink: #dce8d8;
  --sidebar-line: #ffffff14;
  --accent: #b8863b;
  --accent-ink: #3a2a0e;
  --red: #a33327;
  --red-soft: #a333271c;
  --green: #3e7a4e;
  --green-soft: #3e7a4e1f;
  --card: #f7faf4;
  --focus: #2e6e52;
  --font-display: "Zilla Slab",Georgia,serif;
  --font-ui: "Inter",system-ui,-apple-system,sans-serif;
  --font-mono: "IBM Plex Mono",monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12201a;
    --paper-2: #16261f;
    --ink: #e7efe4;
    --ink-soft: #9fb3a4;
    --line: #ffffff1a;
    --sidebar-bg: #0a140f;
    --sidebar-ink: #d7e5d2;
    --accent: #d3a25c;
    --accent-ink: #241a08;
    --red: #d2685a;
    --red-soft: #d2685a29;
    --green: #6fbf83;
    --green-soft: #6fbf8326;
    --card: #17281f;
    --focus: #6fbf83;
  }
}

:root[data-theme="dark"] {
  --paper: #12201a;
  --paper-2: #16261f;
  --ink: #e7efe4;
  --ink-soft: #9fb3a4;
  --line: #ffffff1a;
  --sidebar-bg: #0a140f;
  --sidebar-ink: #d7e5d2;
  --accent: #d3a25c;
  --accent-ink: #241a08;
  --red: #d2685a;
  --red-soft: #d2685a29;
  --green: #6fbf83;
  --green-soft: #6fbf8326;
  --card: #17281f;
  --focus: #6fbf83;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
}

.app {
  min-height: 100vh;
  display: block;
}

.app.collapsed .sidebar {
  width: 48px;
}

.app.collapsed .main {
  margin-left: 48px;
}

.app.collapsed .topbar {
  left: 48px;
}

.sidebar {
  background: var(--sidebar-bg);
  width: 180px;
  color: var(--sidebar-ink);
  border-right: 3px solid var(--red);
  -webkit-user-select: none;
  user-select: none;
  z-index: 45;
  flex-direction: column;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
  overflow-y: auto;
}

.sb-head {
  border-bottom: 1px solid var(--sidebar-line);
  justify-content: space-between;
  align-items: center;
  padding: 14px 10px;
  display: flex;
}

.sb-logo {
  font-family: var(--font-display);
  color: var(--sidebar-ink);
  white-space: nowrap;
  gap: 2px;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  overflow: hidden;
}

.sb-logo .dot {
  color: var(--accent);
  margin: 0 1px;
}

.app.collapsed .sb-logo span.full {
  display: none;
}

.sb-min {
  border: 1px solid var(--sidebar-line);
  color: var(--sidebar-ink);
  cursor: pointer;
  background: none;
  border-radius: 3px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: flex;
}

.sb-min:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sb-nav {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  margin: 0;
  padding: 8px 6px;
  list-style: none;
  display: flex;
  overflow-y: auto;
}

.sb-item {
  cursor: pointer;
  white-space: nowrap;
  border-radius: 4px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  font-size: .82rem;
  font-weight: 500;
  transition: background .15s;
  display: flex;
  overflow: hidden;
}

.sb-item .sb-ic {
  color: #ffffffa6;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  transition: color .15s;
  display: inline-flex;
}

.sb-item:hover .sb-ic {
  color: var(--sidebar-ink);
}

.sb-item.active .sb-ic {
  color: var(--accent-ink);
}

.sb-item .lbl {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  line-height: 1.2;
  overflow: hidden;
}

.sb-item .key {
  font-family: var(--font-mono);
  color: #ffffff61;
  border: 1px solid var(--sidebar-line);
  border-radius: 3px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 1px 5px;
  font-size: .66rem;
  line-height: 1.4;
}

.app.collapsed .sb-item .lbl, .app.collapsed .sb-item .key {
  display: none;
}

.app.collapsed .sb-item {
  justify-content: center;
  padding: 8px 0;
}

.app.collapsed .sb-item .sb-ic {
  width: auto;
  height: auto;
}

.sb-item:hover {
  background: #ffffff0f;
}

.sb-item.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.sb-item.active .key {
  color: var(--accent-ink);
  background: #00000026;
  border-color: #0000;
}

.sb-group-header {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.sb-group-header.focused {
  box-shadow: inset 3px 0 0 var(--accent);
  background: #ffffff17;
}

.sb-group-header.focused .key {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.sb-group-header.focused .sb-arrow {
  color: var(--accent);
  opacity: 1;
}

.sb-arrow {
  opacity: .65;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 14px;
  height: 14px;
  margin-left: auto;
  margin-right: 6px;
  transition: transform .18s, opacity .18s;
  display: inline-flex;
}

.sb-arrow.open {
  opacity: .95;
  transform: rotate(90deg);
}

.sb-group-header .key {
  margin-left: 0;
}

.sb-submenu {
  border-left: 1.5px solid #ffffff24;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px 16px;
  padding: 2px 0 2px 8px;
  list-style: none;
  transition: border-color .18s;
  display: flex;
}

.sb-submenu.focused {
  border-left-color: var(--accent);
  background: #b8863b0a;
  border-radius: 0 4px 4px 0;
}

.sb-submenu.focused .sb-subitem .key {
  color: #ffffffd9;
  border-color: #b8863b8c;
}

.sb-subitem {
  cursor: pointer;
  color: #ffffffc2;
  border-radius: 4px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  font-size: .8rem;
  font-weight: 500;
  transition: all .15s;
  display: flex;
}

.sb-subitem .lbl {
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  line-height: 1.2;
  overflow: hidden;
}

.sb-subitem .key {
  font-family: var(--font-mono);
  color: #ffffff61;
  border: 1px solid var(--sidebar-line);
  border-radius: 3px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 1px 5px;
  font-size: .64rem;
  line-height: 1.4;
}

.sb-subitem:hover {
  color: var(--sidebar-ink);
  background: #ffffff14;
}

.sb-subitem:hover .key {
  color: #fffc;
  border-color: #ffffff40;
}

.sb-subitem.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.sb-subitem.active .key {
  color: var(--accent-ink);
  background: #00000026;
  border-color: #0000;
}

.app.collapsed .sb-arrow, .app.collapsed .sb-submenu {
  display: none;
}

.tb-status {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--paper);
  -webkit-user-select: none;
  user-select: none;
  border-radius: 4px;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: .74rem;
  font-weight: 600;
  display: flex;
}

.dot-status {
  background: var(--ink-soft);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.dot-status.on {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.dot-status.off {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

.main {
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  margin-left: 180px;
  display: flex;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  -webkit-user-select: none;
  user-select: none;
  z-index: 40;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 54px;
  padding: 0 22px;
  display: flex;
  position: fixed;
  top: 0;
  left: 180px;
  right: 0;
}

.tb-shortcuts {
  flex: 1;
  gap: 6px;
  display: flex;
  overflow-x: auto;
}

.tb-chip {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
  background: var(--paper);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: .68rem;
}

.tb-chip b {
  color: var(--ink);
  font-weight: 700;
}

.tb-right {
  flex-shrink: 0;
  align-items: center;
  gap: 16px;
  display: flex;
}

.tb-datetime {
  white-space: nowrap;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.35;
  display: flex;
}

.theme-btn {
  border: 1px solid var(--line);
  cursor: pointer;
  width: 30px;
  height: 30px;
  color: var(--ink);
  background: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tb-user {
  text-align: right;
  font-size: .82rem;
  line-height: 1.25;
}

.tb-user .dt {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  font-size: .72rem;
}

.content {
  height: calc(100vh - 54px);
  margin-top: 54px;
  padding: 26px 30px 60px;
  overflow-y: auto;
}

.page-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  display: flex;
}

.page-head h1 {
  font-family: var(--font-display);
  letter-spacing: -.01em;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-head .sub {
  color: var(--ink-soft);
  margin-top: 3px;
  font-size: .83rem;
}

.btn {
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 4px;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: .83rem;
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
}

.btn:focus, .btn:focus-visible, button:focus, button:focus-visible {
  filter: brightness(1.08);
  outline: 2.5px solid var(--focus) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px var(--green-soft), 0 3px 10px #0000002e !important;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-primary:focus, .btn-primary:focus-visible {
  filter: brightness(1.08);
  outline: 2.5px solid var(--accent) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px #b8863b61, 0 3px 12px #00000038 !important;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: none;
}

.btn-ghost:hover {
  border-color: var(--ink-soft);
  background: var(--paper-2);
}

.btn-ghost:focus, .btn-ghost:focus-visible {
  border-color: var(--focus) !important;
  background: var(--paper-2) !important;
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-danger:hover {
  filter: brightness(1.1);
}

.btn-danger:focus, .btn-danger:focus-visible {
  outline: 2.5px solid var(--red) !important;
  box-shadow: 0 0 0 4px var(--red-soft) !important;
}

.btn-sm {
  padding: 5px 10px;
  font-size: .74rem;
}

.btn-key {
  font-family: var(--font-mono);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-left: 2px;
  padding: 0 5px;
  font-size: .65rem;
  line-height: 1.5;
}

.btn-primary .btn-key {
  color: var(--accent-ink);
  background: #00000014;
  border-color: #0003;
}

.stat-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
  display: grid;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  padding: 14px 16px;
}

.stat-card.warn {
  border-left-color: var(--red);
}

.stat-card.good {
  border-left-color: var(--green);
}

.stat-card .lbl {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
  font-weight: 700;
}

.stat-card .val {
  font-family: var(--font-mono);
  margin-top: 6px;
  font-size: 1.45rem;
  font-weight: 700;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 18px;
  padding: 18px;
}

.panel h3 {
  font-family: var(--font-display);
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
}

.panel h3 .n {
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 500;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: .83rem;
}

thead th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  border-bottom: 2px solid var(--line);
  padding: 8px 10px;
  font-size: .68rem;
  font-weight: 700;
}

tbody td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

tbody tr:nth-child(2n) {
  background: var(--paper-2);
}

tbody tr:hover {
  background: var(--red-soft);
}

td.num, th.num {
  text-align: right;
  font-family: var(--font-mono);
}

.stamp {
  text-transform: uppercase;
  font-size: .66rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1.5px dashed;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  padding: 1px 9px;
  display: inline-flex;
  transform: rotate(-3deg);
}

.stamp.red {
  color: var(--red);
}

.stamp.green {
  color: var(--green);
}

.stamp.brass {
  color: var(--accent);
}

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

.field {
  flex-direction: column;
  gap: 5px;
  display: flex;
}

.field.span2, .field.span3 {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-soft);
  font-size: .74rem;
  font-weight: 600;
}

.field label .req {
  color: var(--red);
}

.field input, .field select {
  height: 36px;
  font-family: var(--font-ui);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-sizing: border-box;
  border-radius: 3px;
  padding: 0 10px;
  font-size: .86rem;
}

.field input[type="date"] {
  box-sizing: border-box;
  height: 36px;
  padding: 0 10px;
  line-height: 34px;
}

.field textarea {
  font-family: var(--font-ui);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  box-sizing: border-box;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: .86rem;
}

#r_notes, .fixed-textarea {
  resize: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 68px;
  min-height: 68px;
  max-height: 68px;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.field input.mono, .field select.mono {
  font-family: var(--font-mono);
}

.line-table th:not(:last-child), .line-table td:not(:last-child) {
  border-right: 1px solid var(--line);
}

.line-table td {
  vertical-align: middle;
  height: 34px;
  padding: 0;
}

.line-table input, .line-table select {
  width: 100%;
  height: 34px;
  color: var(--ink);
  box-sizing: border-box;
  box-shadow: none;
  background: none;
  border: 1px solid #0000;
  border-radius: 0;
  padding: 0 8px;
  font-size: .8rem;
  transition: border-color .15s, background .15s;
}

.line-table input:hover:not(:disabled):not([readonly]), .line-table select:hover:not(:disabled) {
  background: #00000004;
  border-color: #7882784d;
}

.line-table input:focus, .line-table select:focus {
  border-color: var(--focus);
  z-index: 2;
  background: #00000005;
  outline: none;
  position: relative;
}

.line-table input[readonly] {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

.line-table input:disabled, .line-table select:disabled {
  opacity: .75;
  background: none;
}

.line-table select option {
  background: var(--card);
  color: var(--ink);
}

.line-table input.mono {
  font-family: var(--font-mono);
}

.line-table input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.line-table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.line-table input[type="number"] {
  appearance: textfield;
}

.line-table .amt-cell {
  height: 34px;
  padding: 0 8px;
  line-height: 34px;
}

.rm-line {
  color: var(--red);
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 34px;
  padding: 0;
  font-size: 1.1rem;
  display: flex;
}

.calc-section {
  justify-content: flex-end;
  align-items: start;
  gap: 24px;
  margin-top: 14px;
  display: flex;
}

.calc-section > .bill-adj-box, .calc-section > .totals-box {
  flex-shrink: 0;
  width: 260px;
}

.totals-box {
  justify-content: flex-end;
  display: flex;
}

.totals-box table {
  width: 100%;
}

.totals-box td {
  border: none;
  padding: 5px 10px;
}

.totals-box tr.grand td {
  border-top: 2px solid var(--line);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.overlay {
  z-index: 50;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  background: #0a0f0a99;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: none;
  position: fixed;
  inset: 0;
}

.overlay.show {
  display: flex;
}

.modal {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  padding: 26px 30px 28px;
  overflow-y: auto;
  box-shadow: 0 12px 32px #00000040;
}

.modal.danger {
  border-top-color: var(--red);
}

.modal h4 {
  font-family: var(--font-display);
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 1.22rem;
  display: flex;
}

.modal p {
  color: var(--ink-soft);
  font-size: .87rem;
  line-height: 1.5;
}

.modal .actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  display: flex;
}

.acc-suggest {
  background: var(--card);
  border: 1px solid var(--line);
  z-index: 20;
  border-radius: 4px;
  max-height: 190px;
  margin-top: 2px;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow-y: auto;
  box-shadow: 0 6px 20px #00000040;
}

.acc-suggest .opt {
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  font-size: .83rem;
  transition: background .15s, color .15s;
  display: flex;
}

.acc-suggest .opt:hover {
  background: var(--paper-2);
}

.acc-suggest .opt.active, .opt.active {
  font-weight: 600;
  background: var(--accent) !important;
  color: var(--accent-ink) !important;
}

.acc-suggest .opt.active .tag, .opt.active .tag {
  color: var(--accent-ink) !important;
  background: #0000001f !important;
  border-color: #00000040 !important;
}

.acc-suggest .opt.active b, .opt.active b, .acc-suggest .opt.active span, .opt.active span {
  color: var(--accent-ink) !important;
}

.acc-suggest .opt .tag {
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-size: .65rem;
  font-family: var(--font-mono);
  border-radius: 3px;
  flex-shrink: 0;
  padding: 0 6px;
}

.placeholder {
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--ink-soft);
  border-radius: 4px;
  padding: 45px 20px;
}

.toast {
  background: var(--sidebar-bg);
  color: var(--sidebar-ink);
  border-left: 4px solid var(--green);
  z-index: 99;
  opacity: 0;
  border-radius: 4px;
  max-width: 360px;
  padding: 12px 18px;
  font-size: .85rem;
  transition: all .22s;
  position: fixed;
  bottom: 22px;
  right: 22px;
  transform: translateY(8px);
  box-shadow: 0 8px 24px #0000004d;
}

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

.toast.err {
  border-left-color: var(--red);
  color: #ffc9c4;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.ledger-date-box {
  align-items: center;
  display: flex;
  position: relative;
}

.ledger-date-box:after {
  content: "📅";
  pointer-events: none;
  opacity: .75;
  font-size: .9rem;
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
}

.ledger-date-box .ledger-date-native {
  opacity: .01;
  cursor: pointer;
  width: 32px;
  height: 30px;
  position: absolute;
  top: 3px;
  right: 3px;
}

#ledgerTable th, #ledgerTable td {
  border-right: none !important;
}

@media (max-width: 860px) {
  .sidebar {
    width: 48px;
  }

  .main {
    margin-left: 48px;
  }

  .topbar {
    left: 48px;
  }

  .app .sb-item .lbl, .sb-logo span.full, .app .sb-item .key {
    display: none;
  }

  .app .sb-item {
    justify-content: center;
    padding: 8px 0;
  }

  .app .sb-item .sb-ic {
    width: auto;
    height: auto;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .tb-shortcuts {
    display: none;
  }

  .calc-section {
    flex-direction: column;
    align-items: stretch;
  }

  .calc-section > .bill-adj-box, .calc-section > .totals-box {
    width: 100%;
  }

  .content {
    padding: 18px;
  }
}

.doc-mode-toggle {
  background: var(--paper-2);
  border: 1px solid var(--line);
  -webkit-user-select: none;
  user-select: none;
  border-radius: 6px;
  align-items: center;
  gap: 2px;
  padding: 2px;
  display: inline-flex;
}

.btn-mode-toggle {
  color: var(--ink-soft);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  transition: all .15s;
  display: inline-flex;
}

.btn-mode-toggle:hover {
  color: var(--ink);
}

.btn-mode-toggle.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px #00000014;
}

.btn-mode-toggle.active.order {
  color: #fff !important;
  background: #4f46e5 !important;
}

.btn-mode-toggle.active.invoice {
  background: var(--green) !important;
  color: #fff !important;
}

.doc-badge-so {
  letter-spacing: .03em;
  color: #4f46e5;
  background: #4f46e51f;
  border: 1px solid #4f46e540;
  border-radius: 4px;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  font-size: .65rem;
  font-weight: 700;
  display: inline-flex;
}

.doc-badge-po {
  letter-spacing: .03em;
  color: #b8863b;
  background: #b8863b26;
  border: 1px solid #b8863b4d;
  border-radius: 4px;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  font-size: .65rem;
  font-weight: 700;
  display: inline-flex;
}

.doc-badge-inv {
  letter-spacing: .03em;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid #3e7a4e40;
  border-radius: 4px;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  font-size: .65rem;
  font-weight: 700;
  display: inline-flex;
}

.filter-tabs {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  gap: 4px;
  padding: 2px;
  font-size: .72rem;
  display: inline-flex;
}

.filter-tab {
  cursor: pointer;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-radius: 3px;
  padding: 2px 8px;
  font-weight: 600;
  transition: all .15s;
}

.filter-tab.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px #00000014;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  .modal-print-voucher, .modal-print-voucher * {
    visibility: visible !important;
  }

  .modal-print-voucher {
    color: #000 !important;
    width: 100% !important;
    box-shadow: none !important;
    background: #fff !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
  }

  .no-print {
    display: none !important;
  }
}

/*# sourceMappingURL=src_app_globals_162hn9oqc8uss.css.map*/