/* Visual system aligned to reference/master_design.html (Rails shell). */
:root {
  --nav: #142439;
  --ink: #1b2a3d;
  --muted: #6b7c90;
  --bg: #f3f6fa;
  --blue: #255ec5;
  --edge: #dfe6f0;
  --soft: #eaf1ff;
  --green: #17634b;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.48 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

aside {
  width: 245px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  background: var(--nav);
  color: #c8d4e5;
  padding: 26px 16px 16px;
  z-index: 5;
  overflow: hidden;
}

.aside-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
}


.brand {
  color: white;
  font-weight: 760;
  font-size: 20px;
  line-height: 1.23;
  padding: 8px 12px 30px;
}

.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #8eabcc;
  margin-top: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

a.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #cad6e8;
  padding: 11px 12px;
  margin: 3px 0;
  text-decoration: none;
  font: inherit;
  line-height: 1.25;
}

a.nav.active,
a.nav:hover {
  background: #2b4463;
  color: white;
  text-decoration: none;
}

.nav-marker {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  color: #9ec0e8;
}

a.nav.active .nav-marker,
a.nav:hover .nav-marker,
.nav-section-toggle:hover .nav-marker {
  color: #ffffff;
}

.nav-label {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-group {
  margin: 3px 0;
}

.nav-section {
  margin: 16px 0 8px;
  padding-top: 10px;
  border-top: 1px solid #2b4463;
}

.nav-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #b7c8dd;
  padding: 11px 12px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  cursor: pointer;
  line-height: 1.25;
}

.nav-section-toggle:hover {
  background: #2b4463;
  color: white;
}

.nav-chevron {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.85rem;
  color: #8eabcc;
}

.nav-section-toggle:hover .nav-chevron {
  color: #ffffff;
}

.nav-section-panel {
  margin: 2px 0 6px 14px;
  padding: 2px 0 4px 12px;
  border-left: 2px solid #3a5575;
}

.nav-group-label {
  margin: 12px 0 4px;
  padding: 4px 10px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8eabcc;
}

.nav-group-label:first-child {
  margin-top: 2px;
}

.nav-subgroup {
  margin: 8px 0 4px;
}

.nav-subgroup:first-child {
  margin-top: 2px;
}

.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #8eabcc;
  padding: 6px 8px;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.25;
}

.nav-group-toggle:hover {
  background: #2b4463;
  color: #ffffff;
}

.nav-group-toggle:hover .nav-chevron {
  color: #ffffff;
}

.nav-group-toggle-label {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-group-toggle .nav-chevron {
  font-size: 0.75rem;
  color: #7f9bbb;
}

.nav-group-panel {
  margin: 0 0 4px;
}


a.nav.nav-nested {
  gap: 10px;
  padding: 8px 10px;
  margin: 2px 0;
  font-size: 13px;
}

.nav-marker-sub {
  flex-basis: 0.85rem;
  width: 0.85rem;
  height: 0.85rem;
  font-size: 0.85rem;
  color: #7f9bbb;
}

.inline-check {
  display: inline-block;
  margin: 0;
}

.inline-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.asidebottom {
  flex: 0 0 auto;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid #2b4463;
  font-size: 12px;
  color: #9fb1cb;
}


.asidebottom .signout {
  margin-top: 8px;
  color: #cad6e8;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  font-weight: 650;
}

main { margin-left: 245px; }

.top {
  padding: 18px 31px;
  background: white;
  border-bottom: 1px solid var(--edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.top strong { font-size: 16px; }

.badge {
  font-size: 11px;
  background: #f0f5ff;
  color: #3763a4;
  padding: 7px 10px;
  border-radius: 99px;
  font-weight: 700;
}

.wrap {
  padding: 30px;
  max-width: 1480px;
  margin: auto;
}

h1 {
  font-size: 27px;
  letter-spacing: -.6px;
  margin: 0 0 5px;
}

h2 {
  font-size: 17px;
  margin: 0 0 17px;
}

p.sub, .sub {
  color: var(--muted);
  margin: 0 0 26px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.between { justify-content: space-between; }

.panel {
  background: white;
  border: 1px solid var(--edge);
  border-radius: 13px;
  padding: 22px;
  margin: 0 0 20px;
  box-shadow: 0 2px 12px #172b4410;
}

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

.stat .n {
  font-size: 30px;
  font-weight: 750;
  margin-top: 9px;
}

.stat .t {
  font-size: 12px;
  color: var(--muted);
}

.btn,
button.btn,
input[type="submit"] {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid var(--edge);
  background: white;
  color: var(--ink);
  font-weight: 630;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { text-decoration: none; }

.btn.primary,
input[type="submit"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.btn.red { color: #9c3543; }
.btn:disabled { opacity: .55; cursor: default; }

form.button_to { display: inline; margin: 0; }

button.linkish {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

button.linkish:hover { text-decoration: underline; }

.center-cell { text-align: center; vertical-align: middle; }

.type-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7f6ec;
  color: #1f7a3f;
  font-weight: 700;
}

.logo-upload {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.logo-preview {
  flex: 0 0 auto;
}

.logo-thumb {
  max-width: 180px;
  max-height: 96px;
  object-fit: contain;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.logo-placeholder {
  width: 180px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b7c4d4;
  border-radius: 8px;
  background: #f4f7fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  padding: 8px;
}

.po-style-options {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.po-style-options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.po-style-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}

.po-style-option:has(input:checked),
.po-style-option-custom.is-selected {
  border-color: var(--blue);
  background: #f3f8ff;
}

.po-style-option input[type="radio"] {
  width: auto;
  margin-top: 3px;
}

.po-style-option-custom {
  display: block;
  cursor: default;
}

.po-style-option-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.po-prefix-panel {
  margin: 12px 0 0 28px;
}

.po-prefix-panel input:disabled {
  background: #eef2f7;
  color: #8a97a8;
  cursor: not-allowed;
}

.po-style-option strong {
  display: block;
  font-size: 14px;
  font-weight: 750;
}

.po-style-note,
.po-style-sample {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.po-style-sample em {
  font-style: normal;
  font-weight: 700;
  color: #1e3a5f;
}

.po-preview-box {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f3f8ff;
  border: 1px solid #cfe0f5;
}

.po-preview-label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 4px;
}

.po-preview-value {
  font-size: 22px;
  font-weight: 800;
  color: #152a43;
  letter-spacing: 0.02em;
}

label {
  display: block;
  color: #4c5d70;
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 6px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 6px;
  flex-wrap: wrap;
}

.label-row label {
  display: inline-block;
  margin: 0;
  width: auto;
  flex: 0 0 auto;
}

.address-label-row {
  width: 100%;
}

.address-label-row .btn {
  margin-left: 0;
}

.fax-recipient-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 8px;
}

.fax-recipient-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px 18px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #fff;
}

.fax-recipient-row.is-selected {
  border-color: #9db7e8;
  background: var(--soft);
}

.fax-recipient-check {
  align-items: flex-start;
}

.fax-recipient-party {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
}

.fax-recipient-party.muted {
  font-style: italic;
}

.fax-recipient-number label {
  margin-bottom: 4px;
}

.fax-recipient-number input:disabled {
  opacity: 0.55;
  background: #f8fafc;
}

@media (max-width: 760px) {
  .fax-recipient-row {
    grid-template-columns: 1fr;
  }
}

.btn.btn-inline {
  width: auto;
  flex: 0 0 auto;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
}

.btn.btn-inline.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn.btn-inline.primary:hover {
  background: #1d4fad;
  border-color: #1d4fad;
  color: #fff;
  text-decoration: none;
}


.geo-status {
  min-height: 1.2em;
  margin-top: 0;
}

.geo-status:empty {
  display: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.geo-status.geo-status-error {
  color: #9c3543;
}



input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  background: #fff;
  color: var(--ink);
  border-radius: 7px;
  padding: 10px 11px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #255ec51b;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

.form-actions input[type="submit"],
.form-actions .btn,
.row input[type="submit"].btn {
  width: auto;
}

.po-prefix-panel input[type="text"] {
  max-width: 280px;
}

.sig-thumb {
  max-width: 72px;
  max-height: 36px;
  object-fit: contain;
  border: 1px solid var(--edge);
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

.sig-generator-preview {
  overflow: auto;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}

.sig-generator-preview canvas {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  background: #fff;
  border-radius: 6px;
}

.sig-font-great_vibes { font-family: "Great Vibes", cursive; font-size: 22px; font-weight: 400; }
.sig-font-dancing_script { font-family: "Dancing Script", cursive; font-size: 18px; font-weight: 600; }
.sig-font-allura { font-family: "Allura", cursive; font-size: 22px; font-weight: 400; }

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

.fields.ticket-fields {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.span2 { grid-column: span 2; }
.span4 { grid-column: span 4; }

.fields-divider {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  margin: 18px 0;
  border: 0;
  padding: 0;
  background: #c5d0de;
  overflow: hidden;
  align-self: center;
}

.coords-map-wrap {
  margin-top: 4px;
}

.coords-map {
  width: 100%;
  height: 280px;
  border: 1px solid var(--edge);
  border-radius: 10px;
  background: #e8eef5;
  overflow: hidden;
}

.pac-container {
  z-index: 10000;
}

.stack-images .stack-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.stack-image-card {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  background: #f8fafc;
}

.stack-image-thumb {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 8px;
}






.sectionlabel {
  border-bottom: 1px solid var(--edge);
  padding-bottom: 11px;
  margin: 0 0 16px;
  color: #152a43;
  font-size: 14px;
  font-weight: 800;
}

.sectionlabel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sectionlabel-row .btn {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 650;
}

.hint {
  font-size: 11px;
  color: #718399;
  margin-top: 6px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.checks label,
.checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

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

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

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .045em;
  color: var(--muted);
  background: #f9fbfe;
}

.pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 30px;
  background: #eff2f6;
  color: #566579;
  font-size: 11px;
  font-weight: 700;
  margin: 0 4px 4px 0;
}

.pill.hold { background: #fff1d7; color: #936412; }
.pill.approved { background: #def5e9; color: #16674a; }
.pill.sent { background: #e9f1ff; color: #24579e; }

.link {
  background: none;
  border: 0;
  color: var(--blue);
  padding: 0;
  text-decoration: underline;
  font-weight: 650;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f0f6ff;
  color: #365b8d;
  border: 1px solid #d5e5ff;
  margin: 0 0 19px;
}

.notice.alert {
  background: #fdecec;
  color: #8a1f1f;
  border-color: #f3c4c4;
}

.unsaved-dialog {
  border: 0;
  border-radius: 12px;
  padding: 0;
  max-width: min(440px, calc(100vw - 32px));
  box-shadow: 0 16px 40px #14243940;
}

.unsaved-dialog::backdrop {
  background: #14243966;
}

.unsaved-dialog-card {
  margin: 0;
  padding: 22px 22px 18px;
  background: #fff;
}

.unsaved-dialog-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #152a43;
}

.unsaved-dialog-card p {
  margin: 0 0 18px;
  color: #4c5d70;
  line-height: 1.45;
}

.unsaved-dialog-actions {
  flex-wrap: wrap;
  gap: 8px;
}

.unsaved-dialog-actions .btn {
  width: auto;
}

.completed-lock-banner .sub {
  color: inherit;
  opacity: 0.9;
}

.completed-lock-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  opacity: 0.72;
}

.stack-gated-details {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.stack-gated-details.is-locked {
  opacity: 0.55;
}



.errors {
  background: #fdecec;
  color: #8a1f1f;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #f3c4c4;
}

.sms-bubble {
  background: #eef6f0;
  border: 1px solid #d5e6da;
  border-radius: 16px 16px 4px 16px;
  padding: 18px 20px;
  margin: 15px 0;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
}

.sms-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.sms-fields {
  margin: 0;
}

.sms-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 14px;
}

.sms-row:last-child {
  margin-bottom: 0;
}

.sms-row dt {
  margin: 0;
  text-align: right;
  font-weight: 700;
  color: #334155;
}

.sms-row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.sms-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d5e6da;
}

.sms-link {
  margin-bottom: 12px;
}

.sms-link:last-child {
  margin-bottom: 0;
}

.sms-link-label {
  font-weight: 700;
  margin-bottom: 2px;
}

.sms-link-url {
  overflow-wrap: anywhere;
  word-break: break-all;
  color: #255ec5;
  font-size: 14px;
  line-height: 1.45;
}

.pdf-frame {
  width: 100%;
  min-height: 80vh;
  border: 1px solid var(--edge);
  border-radius: 13px;
  background: white;
  box-shadow: 0 2px 12px #172b4410;
}

.auth-shell .auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box {
  width: min(420px, 100%);
}

@media (max-width: 1100px) {
  .fields, .fields.ticket-fields { grid-template-columns: repeat(2, 1fr); }
  .span4 { grid-column: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  aside {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 8px 12px;
    scrollbar-width: none;
  }

  aside::-webkit-scrollbar { display: none; }

  .aside-scroll {
    display: contents;
  }


  .brand {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.1;
    padding: 4px 10px 4px 0;
    margin-right: 4px;
    border-right: 1px solid #53657b;
  }

  .brand br { display: none; }
  .brand small { font-size: 9px; letter-spacing: 0; margin-top: 3px; }

  a.nav {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    margin: 0;
    padding: 9px 11px;
    font-size: 12px;
  }

  .nav-group,
  .nav-section,
  .nav-subgroup {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    margin: 0;
    padding: 0 0 0 8px;
    border-top: 0;
    border-left: 1px solid #53657b;
  }

  .nav-section-panel,
  .nav-group-panel {
    display: flex;
    margin: 0;
    padding: 0;
    border-left: 0;
  }

  .nav-section-toggle,
  .nav-group-toggle {
    white-space: nowrap;
    padding: 9px 11px;
  }


  .nav-chevron {
    margin-left: 6px;
  }

  .asidebottom { display: none; }
  main { margin: 0; min-width: 0; }
  .top { min-height: 52px; padding: 9px 14px; gap: 8px; }
  .top strong { font-size: 14px; }
  .top .badge { display: none; }
  .wrap { padding: 16px 14px 28px; max-width: 100%; }
  h1 { font-size: 23px; letter-spacing: -.4px; }
  .fields, .fields.ticket-fields, .stats { grid-template-columns: 1fr; }
  .span2, .span4 { grid-column: span 1; }
  .panel { padding: 16px; }

  th { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--edge); padding: 10px 0; }
  td { border: 0; padding: 4px 0; }
  td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.billing-filter-row {
  margin-bottom: 14px;
}

.billing-table th.num,
.billing-table td.num,
.billing-report-commodities th.num,
.billing-report-commodities td.num {
  text-align: right;
}

.billing-row-sent {
  background: #f8fafc;
  color: #64748b;
}

.billing-report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--edge);
}

.billing-report-meta {
  text-align: right;
  color: var(--muted);
}

.billing-report-po {
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--edge);
  break-inside: avoid;
}

.billing-report-po:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.billing-report-po h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.billing-report-po-date {
  margin-left: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.billing-report-po h3 {
  margin: 14px 0 8px;
  font-size: 14px;
}

.billing-report-fields,
.billing-report-commodities {
  width: 100%;
  border-collapse: collapse;
}

.billing-report-fields th,
.billing-report-fields td,
.billing-report-commodities th,
.billing-report-commodities td {
  border: 1px solid var(--edge);
  padding: 6px 8px;
  vertical-align: top;
}

.billing-report-fields th {
  width: 18%;
  background: #f8fafc;
  font-weight: 650;
  text-align: left;
}

@media print {
  aside, .top, .no-print, .btn, .notice, .asidebottom { display: none !important; }
  body.app-shell { background: #fff; }
  main { margin: 0 !important; max-width: none !important; }
  .wrap { padding: 0 !important; }
  .panel { box-shadow: none; border: 0; padding: 0; }
  .billing-report-po { break-inside: avoid; page-break-inside: avoid; }
}
