.wastage-modal { background:white; border-radius:16px; padding:28px; width:min(760px,96vw); max-height:94dvh; overflow:auto; box-shadow:0 20px 70px #0b20344d; }
.wastage-modal h2 { font-size:24px; margin:0 0 16px; }
.wastage-context { background:#f1f5f9; padding:14px; border-radius:8px; margin-bottom:18px; }
.wastage-context p { margin:5px 0; }
.wastage-fields { border:0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.wastage-fields label,.wastage-filters label { display:flex; flex-direction:column; gap:7px; font-size:13px; font-weight:600; }
.wastage-fields input,.wastage-fields select,.wastage-fields textarea,.wastage-filters input,.wastage-filters select { border:1px solid #cbd5e1; background:white; border-radius:7px; padding:12px; min-height:46px; color:#172635; width:100%; }
.wastage-fields textarea { min-height:80px; resize:vertical; }
.wastage-fields .wide { grid-column:1/-1; }
.wastage-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:20px; }
.wastage-actions button,.record-wastage { min-height:44px; }
.record-wastage { border:1px solid #528bc2; background:#fff; color:#12548d; border-radius:6px; padding:7px 10px; font-size:12px; font-weight:600; white-space:normal; }
.wastage-success { background:#e2f5e7; padding:16px; color:#17672e; border-radius:8px; }
.wastage-filters { display:grid; grid-template-columns:repeat(4,minmax(140px,1fr)); gap:12px; padding:18px; border:1px solid #e2e8f0; border-radius:10px; background:white; margin-bottom:20px; }
.wastage-charts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:20px 0; }
.wastage-chart { padding:18px; background:white; border:1px solid #e2e8f0; border-radius:10px; max-height:340px; overflow:auto; }
.wastage-chart h3 { margin:0 0 16px; }
.wastage-bar { margin-bottom:10px; font-size:12px; }
.wastage-bar>div { display:flex; justify-content:space-between; gap:12px; }
.wastage-bar meter { width:100%; height:16px; accent-color:#297bd5; }
.wastage-table { min-width:1750px; }
.wastage-table td { white-space:normal; overflow-wrap:anywhere; max-width:230px; }
.recent-wastage { margin:14px; padding:14px; border:1px solid #d7e1eb; border-radius:8px; }
.recent-wastage li { margin:10px 0; }
@media(max-width:1050px) { .wastage-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } .wastage-charts { grid-template-columns:1fr; } }
@media(max-width:550px) { .wastage-fields { grid-template-columns:1fr; } .wastage-modal { padding:18px; } }

.manual-badge{display:inline-block;margin:4px 0;padding:2px 5px;border:1px solid #9ca9b9;border-radius:4px;background:#eef2f7;color:#344154;font-size:10px;font-weight:700;letter-spacing:.04em}.manual-review{color:#8b570c;white-space:normal;max-width:180px}
.machine-shell{min-height:100vh;background:#f8f9fb;color:#202b37;font-family:"Segoe UI",Arial,sans-serif;--machine-navy:#1d2a36;--machine-sidebar:224px;--machine-top:74px}
.machine-header{height:var(--machine-top);background:var(--machine-navy);color:#f6f7fa;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #35414d;position:sticky;top:0;z-index:5}.machine-brand{display:flex;align-items:center;gap:12px}.machine-brand>svg{color:#3993f5}.machine-brand strong{font-size:19px;letter-spacing:.2px}.machine-brand span{display:block;font-size:13px;color:#9ba8b5;margin-top:2px}.machine-header-right{display:flex;align-items:center;gap:22px}.machine-connection{font-size:12px;color:#b9c7d4}.machine-current{display:flex;gap:12px;align-items:center;padding:10px 16px;border:1px solid #45505d;border-radius:7px;font-size:15px}.machine-header button{background:transparent;color:white}
.machine-sidebar{position:fixed;top:var(--machine-top);bottom:0;left:0;width:var(--machine-sidebar);background:var(--machine-navy);color:#e7ebf1;display:flex;flex-direction:column;overflow-y:auto;border-right:1px solid #43505a}.machine-date-nav{padding:14px 16px 20px;display:grid;gap:2px}.machine-date-nav button{background:transparent;color:#eef1f6;justify-content:flex-start;gap:14px;text-align:left;font-size:13px;padding:6px}.machine-date-nav .selected-date{color:#90c6ff}.machine-sidebar h2{font-size:12px;letter-spacing:.8px;color:#93a0ad;font-weight:600;padding:13px 17px 10px}.machine-sidebar nav{display:grid}.machine-link{border-radius:0;min-height:48px;padding:9px 16px;background:transparent;color:#edf0f5;text-align:left;justify-content:flex-start;gap:12px;width:100%;font-size:13px}.machine-link>svg{flex-shrink:0}.machine-link>span{flex:1;line-height:1.3}.machine-link b{background:#3d4a56;min-width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:600}.machine-link.selected{background:#2b84ee;color:white}.machine-link.selected b{background:#e4f2ff;color:#2379d4}.machine-link:hover:not(:disabled):not(.selected){background:#2b3a49}.machine-link:disabled{opacity:.55}.machine-sidebar-bottom{margin-top:auto;padding:22px 16px 24px}.machine-sidebar-bottom button{border:1px solid #485460;border-radius:6px;white-space:nowrap;width:100%;background:transparent;color:#edf1f5;font-size:13px}.machine-sidebar-bottom>span{font-size:12px;color:#a7b8c8}
.machine-main{margin:0 0 0 var(--machine-sidebar);padding:0;max-width:none;min-width:0}.machine-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 17px 18px 25px;border-bottom:1px solid #e8ebef;background:#fcfcfd}.machine-title{display:flex;align-items:center;gap:24px;min-width:0}.machine-title>svg{flex-shrink:0}.machine-title h1{font-size:32px;font-weight:700;letter-spacing:-.6px;line-height:1.2}.machine-title p{font-size:14px;color:#78818e;margin-top:6px}.machine-title p span{padding:0 10px}.machine-summary{display:flex;gap:14px}.machine-stat{width:140px;min-height:66px;border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center}.machine-stat strong{font-size:28px;line-height:1.1;font-weight:700}.machine-stat span{font-size:13px;margin-top:3px}.machine-stat.green{background:#e7f7e8;color:#14662b}.machine-stat.blue{background:#e8f2ff;color:#1665b6}.machine-stat.grey{background:#eceef3;color:#55606d}.machine-preview-notice{padding:7px 24px;background:#eef4fa;color:#556b80;border-bottom:1px solid #dde6ef;font-size:11px;line-height:1.5}.machine-preview-notice button{min-height:28px;margin-left:14px;background:transparent;text-decoration:underline;color:#2169b0}.machine-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 16px 14px 24px}.machine-calendar{display:flex;align-items:center;gap:10px;font-size:13px}.machine-calendar strong{font-weight:600}.machine-search{display:flex;align-items:center;border:1px solid #d2d8e1;border-radius:6px;padding:0 10px;color:#8b95a4;width:290px;background:#fff;gap:8px}.machine-search input{border:0;background:transparent;outline:none;min-width:0;width:100%;font-size:13px;min-height:36px}.machine-search:focus-within{outline:2px solid #2d88ec}
.machine-schedule{margin:0 16px 0 14px;background:white}.machine-schedule .table-scroll{max-height:calc(100vh - 310px);min-height:110px;border:1px solid #e1e5eb;border-radius:3px}.machine-schedule table{table-layout:fixed;min-width:1230px;width:100%;font-size:13px;color:#202b36}.machine-schedule th{text-transform:none;letter-spacing:0;color:#26313f;background:linear-gradient(#f6f7fa,#e9edf3);font-size:12px;font-weight:600;white-space:normal;line-height:1.25;text-align:center;height:49px;padding:7px 6px;border-right:1px solid #dfe3ea}.machine-schedule td{padding:5px 7px;height:48px;border:1px solid #e6e9ee;line-height:1.4;white-space:normal;overflow-wrap:anywhere;text-align:center}.machine-schedule tr:nth-child(even):not(.completed-row) td{background:#f3f7fb}.machine-schedule .completed-row td{background:#e2f7e3;border-color:#d4e9d7}.machine-schedule .completed-row:hover td{background:#d9f2dd}.machine-schedule .order{color:#192631;font-weight:750;font-size:14px}.machine-schedule .product-cell{min-width:0;max-width:none;text-align:left}.machine-schedule .notes-cell{min-width:0;max-width:none;text-align:left;font-size:12px}.machine-schedule .completion-target{justify-content:center;min-height:44px;width:44px;gap:0}.machine-schedule .completion-target input{width:23px;height:23px;min-height:23px;margin:0;accent-color:#07882d}.machine-schedule .completion-target span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.machine-schedule .row-error{min-width:125px;position:relative;background:#fff3f1;padding:6px;z-index:2}.machine-schedule td small{font-size:10px;color:#75818e;margin-top:3px}.machine-schedule .status{border-radius:20px;font-size:12px;padding:3px 10px;background:#e5e8ed;color:#384453;line-height:1.35;white-space:normal}.machine-schedule .status.confirmed{background:#74c981;color:white}.machine-schedule .status.picking{background:#acd4ff;color:#1763b1}.machine-schedule .status.issue{background:#ffe1df;color:#9b3434}.machine-schedule .quantity{font-weight:500}.machine-empty{text-align:center;padding:40px;color:#778493}.machine-footer{display:flex;align-items:center;justify-content:space-between;padding:23px 24px;color:#6f7b8b;font-size:12px;gap:15px}.machine-footer>div{display:flex;gap:18px}.machine-footer>div>span{display:flex;align-items:center;gap:7px}.machine-footer i{display:inline-block;width:15px;height:15px;background:white;border:1px solid #e0e5eb;border-radius:4px}.machine-footer i.legend-completed{background:#d5f2da;border-color:#d5f2da}
@media(min-width:1500px){.machine-schedule table{font-size:14px}.machine-schedule td{height:52px}}
@media(max-width:1150px){.machine-shell{--machine-sidebar:200px}.machine-heading{padding-left:18px;gap:12px}.machine-title{gap:12px}.machine-title h1{font-size:27px}.machine-title>svg{width:38px}.machine-title p{font-size:12px}.machine-title p span{padding:0 4px}.machine-stat{width:102px}.machine-summary{gap:8px}.machine-stat span{font-size:11px}.machine-link{padding:8px 12px;gap:9px;font-size:12px}}
@media(max-width:800px){.machine-shell{--machine-sidebar:180px}.machine-header{padding:0 12px}.machine-brand strong{font-size:16px}.machine-current{font-size:12px;padding:8px}.machine-connection{display:none}.machine-heading{align-items:flex-start;flex-direction:column}.machine-summary{width:100%}.machine-stat{flex:1;min-height:58px}.machine-title h1{font-size:26px}.machine-toolbar{align-items:flex-start;flex-direction:column;gap:12px;padding-left:15px}.machine-search{width:100%}.machine-footer{align-items:flex-start;flex-direction:column;padding:16px}.machine-schedule .table-scroll{max-height:60vh}.machine-sidebar-bottom{padding:15px 8px}.machine-sidebar-bottom button{font-size:11px}.machine-link{font-size:11px;gap:7px}.machine-link svg{width:18px}.machine-date-nav{padding:10px}.machine-date-nav button{font-size:11px;gap:9px}}
@media(max-width:550px){.machine-shell{--machine-sidebar:145px}.machine-brand span,.machine-current svg{display:none}.machine-brand{gap:7px}.machine-brand>svg{width:27px}.machine-brand strong{font-size:13px}.machine-current{font-size:11px;padding:5px}.machine-header-right{gap:5px}.machine-link{padding:8px;gap:5px}.machine-link b{min-width:20px;width:20px;height:20px;font-size:10px}.machine-heading{padding:14px 10px}.machine-title>svg{display:none}.machine-title h1{font-size:23px}.machine-stat strong{font-size:23px}.machine-stat span{font-size:10px}.machine-stat{width:auto}.machine-preview-notice{padding:7px 10px}}
/* Preserve readable column widths; smaller screens scroll horizontally. */
.machine-schedule table{min-width:1286px}.machine-schedule td:first-child{padding:0}.machine-schedule .completion-target{margin:auto}.machine-schedule .completion-target input{width:26px;height:26px;min-height:26px}.machine-schedule td{padding-top:3px;padding-bottom:3px;height:44px}.machine-schedule .table-scroll{max-height:calc(100vh - 325px)}
.machine-schedule table{min-width:1358px}.machine-schedule .quantity .secondary{font-size:11px;overflow-wrap:normal;word-break:normal;padding:6px;min-width:96px}

.machine-range{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:12px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0}.machine-range label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.machine-range input{min-height:44px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;background:white;color:#1e293b}.machine-range button{min-height:44px}.machine-range small{flex-basis:100%;color:#64748b}.machine-day-heading{display:flex;justify-content:space-between;gap:12px;padding:14px 12px;margin:0;background:#eef3f8;color:#1e293b;font-size:15px}.machine-day-heading span{font-size:12px;font-weight:400}
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: "Segoe UI", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: .25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

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

  .fixed {
    position: fixed;
  }

  .static {
    position: static;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .table {
    display: table;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .items-center {
    align-items: center;
  }

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .truncate {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  .rounded {
    border-radius: .25rem;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

.auth-screen {
  background: #162d31;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.auth-card {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  padding: 36px;
}

.auth-card > svg {
  color: #24796d;
  margin-bottom: 18px;
}

.auth-card h1 {
  font-size: 28px;
}

.auth-card p {
  color: #70868a;
  margin: 12px 0 24px;
  line-height: 1.7;
}

.auth-card form {
  gap: 18px;
  display: grid;
}

.auth-card label {
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
}

.auth-card input {
  border: 1px solid #cddcdb;
  border-radius: 6px;
  width: 100%;
  padding: 10px;
}

.auth-card small {
  color: #80969a;
  line-height: 1.7;
}

.auth-card > .text-button {
  margin-left: 15px;
}

.session-tools {
  align-items: center;
  gap: 15px;
  display: flex;
}

.connection.connected span {
  background: #238466;
}

.completed-row td {
  background: #e4f3e7;
  border-top-color: #cde3d2;
}

.completed-row:hover td {
  background: #dcefe1;
}

.completion-target {
  cursor: pointer;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  font-size: 11px;
  display: flex;
}

.completion-target input {
  accent-color: #24796d;
  cursor: pointer;
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin: 9px;
}

.completion-target input:disabled {
  cursor: not-allowed;
}

.pick-editor {
  min-width: 215px;
}

.pick-editor form {
  gap: 6px;
  display: flex;
}

.pick-editor input {
  background: #fff;
  border: 1px solid #cbdad7;
  border-radius: 5px;
  width: 140px;
  padding: 8px;
  font-size: 12px;
}

.pick-editor .text-button {
  min-height: 32px;
  font-size: 10px;
}

.row-error {
  white-space: normal;
  color: #a53c30;
  max-width: 240px;
  margin-top: 7px;
  font-size: 11px;
}

.import-date {
  align-items: center;
  gap: 12px;
  margin: 15px 0;
  font-weight: 600;
  display: flex;
}

.import-date select {
  background: #fff;
  border: 1px solid #cbdad7;
  border-radius: 5px;
  padding: 8px 16px;
}

.import-review {
  background: #f2f7f5;
  border: 1px solid #d2e4dc;
  border-radius: 8px;
  margin-top: 20px;
  padding: 20px;
}

.import-review details {
  margin: 15px 0;
  font-size: 12px;
}

.import-review summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
}

.import-review ul {
  max-height: 220px;
  padding-left: 22px;
  list-style: outside;
  overflow: auto;
}

.import-confirm {
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
}

.import-confirm input {
  accent-color: #24796d;
  width: 24px;
  min-width: 24px;
}

.station-card progress {
  accent-color: #24796d;
  width: 100%;
  height: 4px;
  margin-top: 12px;
  display: block;
}

:root {
  font-family: var(--font-sans);
  color: #203438;
  font-synthesis: none;
  background: #f5f7f8;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline-offset: 3px;
  outline: 3px solid #30a896;
}

button, input, select {
  min-height: 44px;
}

button {
  transition: background .15s;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  letter-spacing: -1.1px;
  font-size: 32px;
  font-weight: 650;
  line-height: 1.3;
}

h2 {
  letter-spacing: -.3px;
  font-size: 18px;
  font-weight: 650;
}

h3 {
  font-weight: 600;
}

small {
  font-size: 11px;
}

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

.sidebar {
  color: #f4f8f8;
  background: #162d31;
  flex-direction: column;
  flex: none;
  width: 240px;
  padding: 32px 18px 18px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.brand {
  align-items: center;
  gap: 12px;
  padding: 0 8px 44px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.15;
  display: flex;
}

.brand span {
  letter-spacing: 3.6px;
  color: #a9c0c2;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 500;
  display: block;
}

.brand-icon {
  color: #94d8c4;
  background: #2a4549;
  border-radius: 10px;
  place-items: center;
  width: 42px;
  height: 44px;
  display: grid;
}

.nav-label {
  letter-spacing: 1.7px;
  color: #809e9f;
  padding: 0 15px 13px;
  font-size: 10px;
}

.sidebar nav {
  gap: 5px;
  display: grid;
}

.nav-item {
  color: #b7c9cb;
  text-align: left;
  background: none;
  border-radius: 7px;
  justify-content: flex-start;
  padding: 12px 14px;
}

.nav-item span {
  flex: 1;
}

.nav-item:hover {
  background: #243f43;
}

.nav-item.active {
  color: #fff;
  background: #2c514f;
  box-shadow: inset 3px 0 #6ed4b8;
}

.sidebar-note {
  background: #203b3f;
  border: 1px solid #365054;
  border-radius: 9px;
  margin: auto 7px 26px;
  padding: 18px 15px;
}

.sidebar-note strong {
  font-size: 12px;
}

.sidebar-note p {
  color: #a5bdbf;
  margin: 12px 0 5px;
  font-size: 12px;
  line-height: 1.7;
}

.sidebar-note button {
  color: #8fdcc7;
  background: none;
  justify-content: flex-start;
  padding: 0;
  font-size: 12px;
}

.sidebar-footer {
  color: #dce9e9;
  text-align: left;
  background: none;
  border-top: 1px solid #31494d;
  justify-content: flex-start;
  padding: 18px 6px 0;
  font-size: 12px;
}

.sidebar-footer span {
  color: #88a5a8;
  margin-top: 4px;
  font-size: 11px;
  display: block;
}

.sidebar-footer > svg {
  margin-left: auto;
}

.avatar {
  background: #3b565a;
  border-radius: 50%;
  place-items: center;
  width: 35px;
  height: 35px;
  font-size: 11px;
  display: grid;
}

.workspace {
  flex: 1;
  min-width: 0;
  margin-left: 240px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e1e7e8;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  padding: 0 36px;
  display: flex;
}

.breadcrumb {
  color: #7b898c;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  display: flex;
}

.breadcrumb strong {
  color: #354b50;
  font-weight: 500;
}

.connection {
  color: #687c80;
  border: 1px solid #e3e8e8;
  border-radius: 5px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  font-size: 11px;
  display: flex;
}

.connection span {
  background: #85979a;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

main {
  max-width: 1800px;
  margin: auto;
  padding: 33px 36px 20px;
}

.page-heading {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
  display: flex;
}

.eyebrow {
  letter-spacing: 1.65px;
  color: #7a8c90;
  margin-bottom: 9px;
  font-size: 9px;
  font-weight: 650;
}

.page-heading p {
  color: #73858a;
  margin-top: 8px;
  font-size: 13px;
}

.primary {
  color: #fff;
  white-space: nowrap;
  background: #24796d;
  border-radius: 6px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 600;
}

.primary:hover:not(:disabled) {
  background: #1c6359;
}

.secondary {
  color: #41565b;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #dce4e5;
  border-radius: 6px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 550;
}

.secondary:hover:not(:disabled) {
  background: #f0f5f4;
}

.text-button {
  color: #24796d;
  background: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
}

.overview-date {
  color: #71868a;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  display: flex;
}

.section-kicker {
  letter-spacing: 1.4px;
  font-size: 10px;
  font-weight: 650;
}

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

.metric {
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 9px;
  padding: 18px 20px;
  box-shadow: 0 2px 3px #193d4503;
}

.metric-label {
  color: #64787c;
  justify-content: space-between;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  display: flex;
}

.metric-symbol {
  color: #8a9b9e;
  background: #f1f4f5;
  border-radius: 7px;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
}

.metric-symbol.teal {
  color: #398e7b;
  background: #e7f3ee;
}

.metric > strong {
  margin: 12px 0 9px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  display: block;
}

.metric > small {
  color: #8a999d;
  font-size: 10px;
  display: block;
}

.section-heading {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  display: flex;
}

.section-heading p {
  color: #819095;
  margin-top: 5px;
  font-size: 12px;
}

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

.station-card {
  text-align: left;
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 8px;
  padding: 14px 15px 15px;
  display: block;
}

.station-card:hover {
  background: #f0f7f4;
  border-color: #9fc7ba;
}

.station-top {
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  display: flex;
}

.station-top > svg {
  color: #aab8bb;
  margin-left: auto;
}

.station-number {
  color: #508279;
  background: #edf5f2;
  border-radius: 4px;
  padding: 4px 5px;
  font-size: 10px;
  font-weight: 600;
}

.station-code {
  color: #82969a;
  letter-spacing: .65px;
  font-size: 9px;
}

.station-card h3 {
  margin-bottom: 13px;
  font-size: 13px;
}

.station-bottom {
  border-top: 1px solid #edf1f1;
  justify-content: space-between;
  align-items: center;
  padding-top: 11px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
}

.station-bottom small {
  color: #809197;
  font-size: 10px;
  font-weight: 400;
}

.schedule-heading {
  margin-top: 30px;
}

.schedule-panel {
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 9px;
  overflow: hidden;
}

.filters {
  border-bottom: 1px solid #e9eeee;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 17px;
  display: flex;
}

.search {
  color: #85999d;
  border: 1px solid #dce4e5;
  border-radius: 6px;
  flex: 1;
  align-items: center;
  gap: 9px;
  min-width: 220px;
  padding: 0 11px;
  display: flex;
}

.search input {
  background: none;
  border: 0;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 12px;
}

.search:focus-within {
  outline: 2px solid #30a896;
}

.filters select, .station-picker select {
  color: #536b70;
  background: #fff;
  border: 1px solid #dce4e5;
  border-radius: 6px;
  padding: 0 28px 0 12px;
  font-size: 12px;
}

.row-count {
  color: #7e9296;
  padding-left: 6px;
  font-size: 11px;
}

.table-scroll {
  max-height: 650px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 12px;
}

th {
  color: #768c91;
  letter-spacing: .45px;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
  background: #f7f9f9;
  padding: 13px 16px;
  font-size: 10px;
  font-weight: 650;
  position: sticky;
  top: 0;
}

td {
  white-space: nowrap;
  border-top: 1px solid #edf1f1;
  padding: 15px 16px;
  line-height: 1.5;
}

td small {
  color: #87999d;
  margin-top: 4px;
  font-size: 10px;
  display: block;
}

td strong {
  font-weight: 600;
}

.order {
  color: #306b63;
}

.product-cell {
  white-space: normal;
  min-width: 230px;
  max-width: 330px;
}

.notes-cell {
  white-space: normal;
  min-width: 280px;
  max-width: 420px;
}

.quantity {
  font-weight: 650;
}

.status {
  color: #75898e;
  background: #eff2f3;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  display: inline-block;
}

.status.confirmed {
  color: #27785f;
  background: #e9f4ed;
}

.status.open {
  color: #987129;
  background: #fbf2db;
}

.empty {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px 20px;
  display: flex;
}

.empty-icon {
  color: #599184;
  background: #edf4f2;
  border-radius: 16px;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 4px;
  display: grid;
}

.empty h3 {
  font-size: 16px;
}

.empty p {
  color: #85969b;
  max-width: 430px;
  font-size: 12px;
  line-height: 1.7;
}

.table-footer {
  color: #8b9ca0;
  background: #fdfefe;
  border-top: 1px solid #e9eeee;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  font-size: 10px;
  display: flex;
}

.table-footer > span:first-child {
  align-items: center;
  gap: 6px;
  display: flex;
}

.main-footer {
  letter-spacing: 1px;
  color: #9caaad;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 9px;
  display: flex;
}

.main-footer span {
  letter-spacing: 0;
}

.notice, .info-strip {
  color: #477a6b;
  background: #eaf3f1;
  border: 1px solid #cce0d9;
  border-radius: 7px;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 16px;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
}

.notice button {
  background: none;
  margin-left: auto;
}

.import-steps {
  color: #9badb0;
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 8px;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px;
  display: flex;
}

.step {
  align-items: center;
  gap: 10px;
  font-size: 12px;
  display: flex;
}

.step b {
  font-weight: 500;
}

.step.current {
  color: #237e6b;
}

.upload-zone {
  text-align: center;
  background: #f0f6f3;
  border: 1px dashed #b8cfca;
  border-radius: 10px;
  padding: 35px;
}

.upload-icon {
  color: #448d7b;
  justify-content: center;
  margin-bottom: 10px;
  display: flex;
}

.upload-zone p {
  color: #81938f;
  margin: 12px 0 20px;
  font-size: 12px;
  line-height: 1.8;
}

.validation {
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 8px;
  margin-top: 20px;
  padding: 22px;
}

.validation p {
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.6;
}

.error-list {
  color: #9a4938;
  background: #fff0ec;
  border-radius: 6px;
  max-height: 250px;
  padding: 10px 15px;
  overflow: auto;
}

.warning {
  color: #987129;
}

.muted {
  color: #8b9da0;
}

.station-picker {
  background: #fff;
  border: 1px solid #dfe7e8;
  border-radius: 8px;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  padding: 18px;
  display: flex;
}

.station-picker label {
  font-size: 12px;
  font-weight: 600;
}

.station-picker span {
  color: #8a9da0;
  font-size: 11px;
}

.copy-actions {
  border-bottom: 1px solid #e9eeee;
  flex-wrap: wrap;
  gap: 9px;
  padding: 16px;
  display: flex;
}

.copy-actions small {
  color: #8a9da0;
  width: 100%;
  padding-top: 5px;
}

.modal-backdrop {
  z-index: 10;
  background: #10292e80;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.setup-modal {
  color: #416762;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 35px;
  position: relative;
}

.setup-modal h2 {
  margin: 14px 0;
}

.setup-modal p {
  color: #80918f;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.8;
}

.setup-modal dl {
  margin: 20px 0;
  font-size: 12px;
  line-height: 1.8;
}

.setup-modal dt {
  margin-top: 12px;
  font-weight: 650;
}

.setup-modal dd {
  color: #81928f;
  margin: 0;
}

.close {
  color: #8a999a;
  background: none;
  position: absolute;
  top: 12px;
  right: 15px;
}

@media (min-width: 1500px) {
  .stations-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 26px 13px;
  }

  .workspace {
    margin-left: 210px;
  }

  main {
    padding: 28px 24px;
  }

  .topbar {
    padding: 0 24px;
  }

  .stations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metrics {
    gap: 10px;
  }

  .metric {
    padding: 15px;
  }

  .page-heading {
    align-items: flex-start;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 850px) {
  .sidebar {
    width: 100%;
    padding: 16px 18px;
    position: static;
  }

  .brand {
    padding: 0 0 17px;
    font-size: 18px;
  }

  .brand span {
    font-size: 8px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .sidebar nav {
    gap: 5px;
    display: flex;
    overflow-x: auto;
  }

  .nav-item {
    white-space: nowrap;
    min-height: 46px;
    padding: 10px;
    font-size: 12px;
  }

  .nav-item > svg:last-child:not(:first-child), .sidebar-note, .sidebar-footer, .nav-label {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    height: 52px;
    padding: 0 22px;
  }

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

  .stations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  main {
    padding: 24px 22px;
  }

  .station-picker {
    flex-wrap: wrap;
  }

  .page-heading {
    gap: 15px;
  }

  .page-heading .primary {
    min-height: 46px;
  }

  .table-scroll {
    max-height: 65vh;
  }
}

@media (max-width: 580px) {
  main {
    padding: 24px 15px;
  }

  .page-heading {
    flex-direction: column;
  }

  h1 {
    font-size: 27px;
  }

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

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 16px;
  }

  .section-heading p {
    font-size: 11px;
  }

  .filters > * {
    flex: 1;
  }

  .filters .row-count {
    flex-basis: 100%;
  }

  .table-footer {
    flex-direction: column;
  }

  .import-steps {
    gap: 8px;
    padding: 15px;
  }

  .step {
    gap: 5px;
    font-size: 10px;
  }

  .station-picker select {
    max-width: 100%;
  }

  .main-footer {
    gap: 16px;
    font-size: 8px;
  }

  .metric-label {
    font-size: 11px;
  }

  .metric > small {
    font-size: 9px;
  }
}

.production-kpi {
  background: #fff;
  border: 1px solid #dce3e9;
  border-radius: 8px;
  margin: 12px 0;
  padding: 12px;
}

.production-kpi h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.kpi-grid {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.kpi-card {
  background: #f0f2f5;
  border-radius: 6px;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 210px;
  padding: 8px 12px;
  font-size: 12px;
  display: flex;
}

.kpi-card.on-target {
  color: #145b2d;
  background: #e1f5e5;
}

.kpi-card.below-target {
  color: #8c2424;
  background: #fff0f0;
}

.production-history {
  border-bottom: 1px solid #ddd;
  padding: 10px;
}

.production-history small {
  display: block;
}

.wastage-modal fieldset {
  border: 0;
  gap: 12px;
  padding: 0;
  display: grid;
}

.wastage-modal label {
  gap: 5px;
  display: grid;
}

.wastage-modal input, .wastage-modal select, .wastage-modal textarea {
  min-height: 44px;
  padding: 10px;
}

.quantity .secondary {
  white-space: normal;
  min-height: 44px;
}

.machine-main > .production-kpi {
  margin: 8px 16px;
}

.machine-main .kpi-card {
  flex-flow: wrap;
  gap: 12px;
}

.production-kpi summary {
  cursor: pointer;
  padding: 12px;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}
