:root {
  --ink: #203340;
  --muted: #6d7e88;
  --line: #dce4e8;
  --nav: #17252e;
  --green: #16894f;
  --blue: #2473a8;
  --bg: #f4f7f8;
  --amber: #fff1cf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.5 Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #56aee6;
}
button {
  cursor: pointer;
  border: 1px solid #cdd7dd;
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 9px 15px;
  font-weight: 600;
  white-space: nowrap;
}
button:hover {
  background: #edf3f6;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.primary:hover {
  background: #087440;
}
.quiet {
  background: transparent;
  border: 0;
  color: var(--muted);
}
.danger {
  color: #b23c3c;
  border-color: #e5c0c0;
}
a {
  color: #2375a8;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
input,
select,
textarea {
  border: 1px solid #cbd6dc;
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px;
  width: 100%;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #58a8d1;
  border-color: transparent;
}
textarea {
  min-height: 75px;
  resize: vertical;
}
label {
  font-size: 12px;
  font-weight: 600;
  color: #577080;
  display: block;
}
label input,
label select,
label textarea {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 8px;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  letter-spacing: -1px;
  font-weight: 650;
  color: inherit;
}
.wordmark small {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-left: 7px;
}
.logo {
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
}
.login-card {
  align-self: center;
  width: min(460px, calc(100% - 48px));
  margin: auto;
  padding: 32px 0;
}
.login h1 {
  font-size: 36px;
  margin-top: 60px;
  line-height: 1.18;
}
.login form {
  margin: 28px 0;
}
.login label {
  margin: 18px 0;
}
.login .primary {
  width: 100%;
  padding: 13px;
}
.login-art {
  background: #163c46;
  color: white;
  display: grid;
  place-items: center;
  padding: 40px;
  background-image: radial-gradient(
    ellipse at top right,
    #236a5d,
    transparent 70%
  );
}
.scan-frame {
  width: 90%;
  max-width: 470px;
  border: 1px solid #58837d;
  border-radius: 28px;
  padding: 42px;
}
.scan-frame > span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #b0d8ca;
}
.boxes {
  font-size: 65px;
  color: #88b7a6;
  letter-spacing: 20px;
  line-height: 1.3;
  margin: 32px 0 46px;
}
.scan-frame h2 {
  font-size: 32px;
  line-height: 1.2;
}
.scan-frame p {
  color: #b6cecd;
}
#login-error {
  color: #b23c3c;
  font-size: 13px;
}
#sidebar {
  width: 226px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--nav);
  color: #ebf3f3;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
#sidebar .wordmark {
  padding: 0 8px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #94a9ac;
  margin: 14px 9px 23px;
}
.new-button {
  width: 100%;
  border-color: #789397;
  border-radius: 24px;
  background: transparent;
  color: white;
  margin-bottom: 25px;
  text-align: left;
  padding-left: 20px;
}
.new-button:hover {
  background: #2c414b;
}
nav {
  display: grid;
  gap: 3px;
}
nav button {
  background: transparent;
  border: 0;
  color: #adbdc5;
  text-align: left;
  padding: 12px 15px;
  font-weight: 450;
}
nav button span {
  width: 26px;
  display: inline-block;
  font-size: 16px;
  color: #8ba7af;
}
nav button.active {
  color: white;
  background: #2b454b;
  border-left: 3px solid #42bc87;
  padding-left: 12px;
}
nav button:hover {
  background: #273c46;
  color: white;
}
.side-bottom {
  margin-top: auto;
  padding: 35px 8px 0;
  font-size: 11px;
  color: #afc2c6;
}
.side-bottom small {
  font-size: 10px;
  margin-left: 13px;
  display: block;
  margin-top: 5px;
}
.sync-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5ece96;
  margin-right: 6px;
}
.workspace {
  margin-left: 226px;
}
.topbar {
  height: 76px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.global-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 630px;
  flex: 1;
  color: #78909d;
}
.global-search input {
  border: 0;
  background: #f4f7f8;
  border-radius: 8px;
  padding: 12px 38px;
}
.global-search span {
  position: absolute;
  left: 13px;
  font-size: 24px;
}
.global-search kbd {
  position: absolute;
  right: 14px;
  border: 1px solid #d6e0e4;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 11px;
}
.avatar {
  background: #e3eee7;
  color: #288354;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
#mobile-menu {
  display: none;
}
main {
  max-width: 1660px;
  margin: auto;
  padding: 30px 34px 45px;
}
.page-head {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}
.page-head p {
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #5e8990;
  display: block;
  margin-bottom: 9px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px;
  box-shadow: 0 2px 3px #15293304;
}
.stat .label {
  color: var(--muted);
  font-size: 12px;
}
.stat strong {
  display: block;
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 9px 0 2px;
}
.stat small {
  font-size: 11px;
}
.stat .marker {
  float: right;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eaf5ef;
  color: var(--green);
  font-size: 11px;
}
.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
  margin-bottom: 23px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.card-head {
  padding: 21px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eaf0f2;
  gap: 10px;
}
.card-head h3 {
  margin: 0;
}
.card-body {
  padding: 22px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.toolbar input {
  max-width: 360px;
}
.toolbar select {
  width: 170px;
}
.toolbar .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  background: #f8fafb;
  color: #6b7d86;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 18px;
  border-bottom: 1px solid #eaf0f2;
  font-size: 13px;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #f8fbfc;
}
td small {
  display: block;
  font-size: 11px;
}
.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.link-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #2473a8;
  background: transparent;
  text-align: left;
  font-weight: 600;
}
.badge {
  display: inline-block;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #e9f4ec;
  color: #24794b;
  font-weight: 650;
}
.badge.amber {
  background: #fff1cf;
  color: #996818;
}
.badge.gray {
  background: #ecf0f3;
  color: #72808b;
}
.badge.red {
  background: #fce9e7;
  color: #b34c40;
}
.empty {
  padding: 52px 24px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e9f2ed;
  color: var(--green);
  font-size: 26px;
  margin: 0 auto 18px;
}
.empty h3 {
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 7px;
}
.empty p {
  max-width: 430px;
  margin: 0 auto 20px;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: -8px 0 23px;
}
.tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 13px 0;
  color: var(--muted);
}
.tabs .active {
  border-color: var(--green);
  color: var(--ink);
}
.notice {
  background: #edf6fc;
  border: 1px solid #cce0ec;
  border-radius: 8px;
  padding: 14px 18px;
  color: #426b82;
  margin-bottom: 20px;
  font-size: 13px;
}
.notice.warn {
  background: #fff8e7;
  border-color: #f0deb4;
  color: #8c6a22;
}
.quick-step {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.quick-step:last-child {
  border: 0;
}
.quick-step .step {
  background: #eaf4f0;
  color: var(--green);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.quick-step h3 {
  margin: 0 0 2px;
}
.quick-step p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.quick-step button {
  margin-left: auto;
}
.activity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.activity:last-child {
  border: 0;
}
.activity-icon {
  background: #eaf2f6;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.activity small {
  display: block;
  font-size: 11px;
}
.activity .num {
  margin-left: auto;
}
.bar-chart {
  display: flex;
  height: 170px;
  align-items: flex-end;
  gap: 14px;
  padding: 16px 0 0;
}
.chart-column {
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.chart-column i {
  display: block;
  width: 65%;
  background: #42a783;
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}
.chart-column small {
  font-size: 10px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.report-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 23px;
  text-align: left;
  white-space: normal;
}
.report-tile:hover {
  border-color: #99bcb0;
  background: #fafffc;
}
.report-tile .symbol {
  display: block;
  font-size: 24px;
  color: var(--green);
  margin-bottom: 16px;
}
.report-tile h3 {
  margin: 0 0 7px;
}
.report-tile p {
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin: 4px 0 0;
}
.dialog-head small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.icon-button {
  font-size: 23px;
  border: 0;
  padding: 0 8px;
  background: transparent;
}
dialog {
  width: min(850px, calc(100vw - 30px));
  border: 1px solid #d7e2e7;
  border-radius: 13px;
  padding: 0;
  max-height: 92vh;
  box-shadow: 0 25px 100px #102a4540;
}
dialog.wide {
  width: min(1320px, calc(100vw - 30px));
}
dialog::backdrop {
  background: #0c203c70;
  backdrop-filter: blur(2px);
}
#dialog-body {
  padding: 25px;
  max-height: calc(92vh - 95px);
  overflow: auto;
}
.form-error {
  color: #ac4337;
  padding: 10px 0;
  font-size: 13px;
}
.capture-steps {
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
}
.capture-steps span {
  background: #edf2f4;
  color: #8797a0;
  border-radius: 6px;
  padding: 7px 15px;
  font-size: 11px;
}
.capture-steps .active {
  background: #e4f2e9;
  color: var(--green);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.photo-slot {
  border: 1px dashed #b9ccd1;
  border-radius: 9px;
  min-height: 180px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  background: #f9fcfd;
}
.photo-slot img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 5px;
}
.photo-slot label {
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.photo-slot input {
  padding: 6px;
  font-size: 10px;
  margin-top: 10px;
}
.review-table input {
  min-width: 100px;
  padding: 6px;
  font-size: 12px;
}
.review-table input[type="checkbox"] {
  min-width: 0;
  width: 18px;
  height: 18px;
}
.review-table th {
  padding: 10px;
}
.review-table td {
  padding: 7px 10px;
}
.review-table .case-warning {
  font-size: 10px;
  color: #9d6816;
  max-width: 200px;
  white-space: normal;
}
.review-table tr.needs-review {
  background: #fffbef;
}
.totals {
  margin: 20px 0 0 auto;
  max-width: 300px;
}
.totals > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}
.totals .grand {
  font-size: 20px;
  border-top: 1px solid var(--line);
  font-weight: 650;
  padding-top: 14px;
  margin-top: 10px;
}
.choice-list {
  max-height: 260px;
  overflow: auto;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.choice {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 400;
}
.choice input {
  width: 17px;
  margin: 0;
}
.choice small {
  margin-left: auto;
}
.search-result {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 15px;
  align-items: center;
}
.search-result small {
  display: block;
}
.search-result button {
  margin-left: auto;
}
.search-result .tag {
  font-size: 10px;
  color: var(--muted);
  min-width: 62px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 200;
  max-width: 440px;
  background: #193e34;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  box-shadow: 0 10px 40px #0002;
  display: none;
}
#toast.error {
  background: #9b423c;
}
#sync-status {
  font-size: 10px;
  color: #90a1aa;
  padding: 0 34px 18px;
}
#paper {
  display: none;
}
.detail-strip {
  display: flex;
  gap: 30px;
  padding: 18px;
  background: #f7fafb;
  border-radius: 7px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.detail-strip strong {
  display: block;
}
.detail-strip small {
  font-size: 10px;
}
.photo-preview {
  display: flex;
  gap: 10px;
  overflow: auto;
  margin-bottom: 18px;
}
.photo-preview img {
  max-height: 400px;
  max-width: 250px;
  object-fit: contain;
  background: #eef2f4;
}
.two-col .card {
  margin: 0;
}
.print-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.error-banner {
  padding: 20px;
  background: #fff0ee;
  border: 1px solid #f0c5c0;
  border-radius: 10px;
  color: #ac4337;
}
@media (max-width: 1200px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar {
    gap: 10px;
    padding: 0 22px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .workspace {
    margin-left: 210px;
  }
  #sidebar {
    width: 210px;
  }
  main {
    padding: 25px 22px;
  }
}
@media (max-width: 760px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  #mobile-menu {
    display: block;
    border: 0;
    background: transparent;
    padding: 5px;
  }
  .topbar {
    padding: 0 12px;
    height: 65px;
    gap: 8px;
  }
  .topbar .quiet {
    font-size: 11px;
    padding: 5px;
  }
  .avatar {
    display: none;
  }
  .global-search input {
    font-size: 12px;
  }
  main {
    padding: 23px 15px;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 23px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  #dialog-body {
    padding: 18px;
  }
  .dialog-head {
    padding: 18px;
  }
  .toolbar {
    padding: 13px;
    gap: 9px;
  }
  .toolbar input {
    max-width: none;
  }
  .toolbar .count {
    margin-left: 0;
  }
  .toolbar select {
    width: 140px;
  }
  .actions button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .capture-steps {
    gap: 4px;
  }
  .capture-steps span {
    padding: 6px;
    font-size: 10px;
  }
  th,
  td {
    padding: 12px;
  }
  .login h1 {
    margin-top: 42px;
  }
  .login-card {
    padding: 35px 0;
  }
}
@media print {
  body {
    background: white;
    color: black;
    font-size: 10pt;
  }
  #shell,
  #login,
  dialog,
  #toast {
    display: none !important;
  }
  #paper {
    display: block !important;
  }
  #paper .print-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #193e34;
    padding-bottom: 20px;
    margin-bottom: 23px;
  }
  #paper h1 {
    font-size: 22pt;
  }
  #paper h2 {
    font-size: 18pt;
  }
  #paper table {
    white-space: normal;
    font-size: 9pt;
  }
  #paper th {
    font-size: 8pt;
    background: #f0f3f3;
    padding: 8px;
  }
  #paper td {
    font-size: 9pt;
    padding: 8px;
    vertical-align: top;
  }
  #paper tr {
    break-inside: avoid;
  }
  #paper thead {
    display: table-header-group;
  }
  #paper .print-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
  }
  #paper small {
    color: #444;
  }
  #paper .totals {
    break-inside: avoid;
  }
  #paper .signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 55px;
  }
  #paper .signatures span {
    border-top: 1px solid #444;
    padding-top: 6px;
    width: 40%;
  }
  @page {
    size: landscape;
    margin: 12mm;
  }
}

/* White workspace and compact navigation inspired by the supplied reference. */
:root {
  --bg: #fff;
  --ink: #25333c;
  --line: #dfe7ed;
  --nav: #f0f4f6;
  --green: #159b42;
}
#sidebar {
  width: 82px;
  padding: 18px 6px;
  color: #233540;
  overflow-y: auto;
  scrollbar-width: thin;
  border-right: 1px solid #edf0f2;
}
#sidebar .wordmark {
  font-size: 0;
  padding: 0;
  justify-content: center;
  gap: 0;
}
#sidebar .logo {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: 24px;
}
.workspace-label,
.side-bottom {
  display: none;
}
.new-button {
  color: #24343d;
  border: 0;
  border-radius: 8px;
  padding: 8px 2px;
  margin: 14px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
}
.new-button span {
  font-size: 23px;
}
.new-button b {
  font-size: 10px;
  font-weight: 400;
}
.new-button:hover {
  background: #e3edf0;
}
nav {
  gap: 2px;
}
nav button {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 7px 2px;
  color: #38434b;
  border-radius: 7px;
  min-height: 48px;
  white-space: normal;
  text-align: center;
  line-height: 1.1;
}
nav button span {
  font-size: 20px;
  color: inherit;
  display: block;
  width: 28px;
  height: 27px;
}
nav button b {
  font-size: 9px;
  font-weight: 450;
  max-width: 70px;
}
nav button.active {
  background: #e1eee9;
  color: #004b39;
  border: 0;
  padding: 7px 2px;
}
nav button.active span {
  background: #00523e;
  color: #fff;
  border-radius: 6px;
}
nav button:hover {
  background: #e5ecef;
  color: #004b39;
}
.workspace {
  margin-left: 82px;
}
.topbar {
  height: 64px;
  padding: 0 26px;
  gap: 17px;
}
.company-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.global-search {
  max-width: 590px;
  margin: 0 auto;
}
.global-search input {
  background: #f0f4f6;
  border-radius: 5px;
  font-size: 12px;
  padding: 9px 35px;
}
.topbar .quiet {
  font-size: 12px;
  font-weight: 400;
}
.avatar {
  background: #00a1db;
  color: #fff;
  width: 26px;
  height: 26px;
}
main {
  max-width: none;
  padding: 28px 32px 45px;
}
.card,
.stat {
  box-shadow: none;
  border-radius: 9px;
}
.card-head {
  border: 0;
  padding: 20px 20px 8px;
}
.stat {
  min-height: 135px;
}
.stat strong {
  font-size: 26px;
  font-weight: 450;
}
.stat .label {
  font-size: 11px;
  text-transform: uppercase;
  color: #274157;
}
.stat .marker {
  border-radius: 50%;
  background: #edf6f1;
}
.dashboard-welcome {
  text-align: center;
  margin: 0 0 20px;
}
.dashboard-welcome h1 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.dashboard-welcome p {
  color: #75868c;
  font-size: 12px;
  margin: 6px 0;
}
.module-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 27px;
}
.module-pills button {
  border-radius: 24px;
  border-color: #d4dfe7;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 13px;
}
.module-pills span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #002e46;
  color: #4ff298;
  font-size: 16px;
}
.create-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0 0 28px;
}
.create-actions small {
  color: #27343b;
  margin-right: 4px;
}
.create-actions button {
  border-radius: 20px;
  font-weight: 450;
  font-size: 11px;
  padding: 5px 13px;
}
.section-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.page-head h1 {
  font-weight: 500;
  font-size: 27px;
}
.eyebrow {
  display: none;
}
.two-col {
  grid-template-columns: 1fr 1fr;
}
.bar-chart i {
  background: #0079c6;
}
.hint {
  line-height: 1.65;
}
@media (max-width: 1200px) {
  #sidebar {
    width: 82px;
  }
  .workspace {
    margin-left: 82px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .company-name {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 760px) {
  #sidebar {
    width: 90px;
  }
  .workspace {
    margin-left: 0;
  }
  .company-name {
    display: none;
  }
  .topbar {
    padding: 0 10px;
  }
  .module-pills {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 8px;
  }
  .module-pills button {
    flex-shrink: 0;
  }
  .dashboard-welcome h1 {
    font-size: 23px;
  }
  main {
    padding: 23px 15px;
  }
  .topbar .global-search {
    min-width: 0;
  }
  .create-actions {
    gap: 6px;
  }
  .stat strong {
    font-size: 21px;
  }
  .dashboard-welcome {
    text-align: left;
  }
}

/* Compact workspace density; printed documents retain their existing layout. */
@media screen {
  main {
    padding: 18px 22px 28px;
  }
  main .page-head {
    margin-bottom: 14px;
    gap: 12px;
  }
  main .card {
    margin-bottom: 12px;
  }
  main .card-head {
    padding: 12px 14px 6px;
  }
  main .card-body {
    padding: 12px 14px;
  }
  main .card-body p {
    margin-top: 6px;
    margin-bottom: 8px;
  }
  main .toolbar {
    padding: 9px 12px;
    gap: 8px;
  }
  main th,
  #dialog-body th {
    padding: 7px 8px;
    letter-spacing: 0.2px;
  }
  main td,
  #dialog-body td {
    padding: 6px 8px;
    line-height: 1.35;
  }
  main td small {
    line-height: 1.25;
    margin-top: 2px;
  }
  main td button:not(.link-button),
  #dialog-body td button:not(.link-button) {
    padding: 4px 8px;
    min-height: 28px;
    font-size: 12px;
  }
  main .badge {
    padding: 3px 6px;
  }
  main .form-grid,
  #dialog-body .form-grid {
    gap: 10px 12px;
  }
  main label input,
  main label select,
  main label textarea,
  #dialog-body label input,
  #dialog-body label select,
  #dialog-body label textarea {
    margin-top: 3px;
    padding: 7px 8px;
    font-size: 13px;
  }
  main textarea,
  #dialog-body textarea {
    min-height: 54px;
  }
  main .form-actions,
  #dialog-body .form-actions {
    margin-top: 12px;
    padding-top: 10px;
    gap: 8px;
  }
  main .hint {
    line-height: 1.4;
  }
  main .review-table th,
  main .review-table td {
    padding: 4px 6px;
  }
  main .review-table input {
    min-width: 86px;
    width: 100px;
    padding: 4px 5px;
  }
  main .review-table input[data-field="description"],
  main .review-table input[data-field="producer"],
  main .review-table input[data-field="producerLocation"] {
    width: 150px;
  }
  main .review-table input[type="date"] {
    width: 120px;
  }
  main .review-table input[type="number"] {
    width: 78px;
    min-width: 78px;
  }
  main .review-table input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
  }
  main .review-table .case-warning {
    display: inline-block;
    width: 160px;
    line-height: 1.35;
  }
  main .photo-slot {
    padding: 10px;
    gap: 6px;
  }
  main .capture-steps {
    padding: 8px 0;
    margin-bottom: 8px;
  }
}
@media screen and (min-width: 1100px) {
  main .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media screen and (max-width: 760px) {
  main {
    padding: 14px 10px 24px;
  }
  main .card-body {
    padding: 10px;
  }
  main .card-head {
    padding: 10px 10px 6px;
  }
  main .form-grid,
  #dialog-body .form-grid {
    gap: 10px;
  }
  main td button:not(.link-button),
  #dialog-body td button:not(.link-button) {
    min-height: 36px;
  }
  main label input,
  main label select,
  #dialog-body label input,
  #dialog-body label select {
    min-height: 38px;
  }
}

.calculated-weight {
  color: #b42318;
  font-weight: 650;
}
input.calculated-weight {
  background: #fff0ee;
  border-color: #dc5147;
}
.missing-pack-time {
  color: #0759b0;
  font-weight: 650;
}
input.missing-pack-time {
  background: #eaf3ff;
  border-color: #4685cf;
}
@media screen {
  main .invoice-upload-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 6px 0;
  }
  main .invoice-upload-row label {
    flex: 0 1 280px;
  }
  main .invoice-upload-row button {
    padding: 5px 10px;
    min-height: 30px;
  }
  main .invoice-file-name {
    font-size: 12px;
    color: var(--muted);
    overflow-wrap: anywhere;
  }
  main input[type="file"],
  #dialog-body input[type="file"] {
    width: 280px;
    max-width: 100%;
    padding: 3px 0;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
  }
  main input[type="file"]::file-selector-button,
  #dialog-body input[type="file"]::file-selector-button {
    padding: 4px 8px;
    border: 1px solid #cbd6dc;
    border-radius: 4px;
    background: #f8fafb;
    color: var(--ink);
    font-size: 12px;
    cursor: pointer;
  }
}
@media print {
  .calculated-weight,
  .missing-pack-time {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}
.photo-file-name {
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--muted);
}
