.production-flat-caption{font-size:10.8px;color:#6c8298;padding:0 4px 10px}.production-flat-scroll{width:100%;max-width:100%;overflow:auto;max-height:calc(100dvh - 240px);min-height:260px;border:1px solid #d3e0ec;border-radius:10px;background:#fff;isolation:isolate}.production-flat-table{border-collapse:separate;border-spacing:0;table-layout:fixed;color:#29445e;font-size:9.9px;line-height:1.3}.production-flat-table th,.production-flat-table td{box-sizing:border-box;padding:6px 7px;border-right:1px solid #e0e8ef;border-bottom:1px solid #e0e8ef;vertical-align:top;overflow-wrap:anywhere;text-transform:none;letter-spacing:normal}.production-flat-table th{position:sticky;top:0;z-index:3;background:#eaf2f9;vertical-align:middle;border-bottom:2px solid #b8cce0}.production-flat-table th button{border:0;background:none;color:#365d80;padding:0;min-height:24px;width:100%;font:inherit;font-weight:700;text-align:left}.production-flat-table .flat-number{position:sticky;left:0;z-index:1;background:#f4f8fc;font-weight:700;color:#235b91}.production-flat-table th.flat-number{z-index:4;background:#eaf2f9}.production-flat-table .flat-short{}.production-flat-table .flat-date{white-space:nowrap}.production-flat-table .flat-medium{}.production-flat-table .flat-name{font-weight:400}.production-flat-table .flat-numeric{text-align:right}.production-flat-table .flat-note{white-space:pre-wrap}.production-flat-table .flat-client{}.production-flat-table .flat-invoice{}.production-flat-table tr:focus{outline:none}.production-flat-table tr:focus td{background:#e5f2ff;box-shadow:inset 0 1px #4388c3,inset 0 -1px #4388c3}.production-flat-table tbody tr:hover td{background:#eff6fc}.production-flat-table .flat-shipped td{color:#4b7664}.production-flat-table .flat-overdue .flat-date{color:#bc4434}.flat-invoice-link{font:inherit;font-weight:700;color:#245d93;background:none;border:0;padding:2px 0;min-height:22px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.flat-status{display:inline-block;padding:2px 5px;border-radius:5px;background:#eaf2fa;color:#396d9a}.production-table-target{outline:2px solid #4b91c8;outline-offset:2px;scroll-margin-top:150px}@media(max-width:1200px){.production-flat-scroll{max-height:65dvh}}@media print{.production-flat-scroll{max-height:none;overflow:visible}.production-flat-table{font-size:8px}.production-flat-table th{position:static}}
.production-flat-table td.flat-invoice{position:sticky;right:0;z-index:2;background:#fff;border-left:1px solid #c4d6e8}.production-flat-table th.flat-invoice{right:0;z-index:4}.production-flat-table tr:focus td.flat-invoice{background:#e5f2ff}
.production-flat-table tbody tr[data-open-item]{cursor:pointer}

.production-flat-table td{overflow:hidden;white-space:nowrap;padding:4px 5px;font-size:inherit;line-height:1.3}.production-flat-table .flat-cell-content{display:block;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-flat-table td.flat-name,.production-flat-table td.flat-name .flat-cell-content{font-weight:400}.production-flat-table th{font-size:inherit}.production-flat-table td.flat-note{white-space:nowrap}.production-flat-table .flat-status,.production-flat-table .flat-invoice-link{font-size:inherit;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.production-flat-table th,.production-flat-table td{padding-left:4px;padding-right:4px}.production-flat-table th button{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.production-flat-table td.flat-invoice{padding-right:4px}

.production-flat-table td.flat-invoice{position:static;border-left:0}.production-flat-table th.flat-invoice{right:auto}.production-flat-table td.flat-actions{position:sticky;right:0;z-index:2;background:#fff;border-left:1px solid #c4d6e8;vertical-align:middle}.production-flat-table th.flat-actions{right:0;z-index:4}.production-flat-table .flat-actions>.flat-cell-content{display:flex;align-items:center;gap:5px;overflow:visible}.production-flat-table .flat-action-buttons{display:flex;align-items:center;gap:5px}.production-flat-table .flat-actions button,.production-flat-table .flat-actions .smd-led-badge{position:static!important;float:none!important;transform:none!important;margin:0!important;flex:none;min-height:22px;max-height:24px}.production-flat-table .flat-actions .item-files-button,.production-flat-table .flat-actions .shipping-plan-truck,.production-flat-table .flat-actions .material-print-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;padding:2px 4px}.production-flat-table .flat-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.production-flat-table .flat-actions .material-consumption-badge,.production-flat-table .flat-actions .smd-led-badge{font-size:10px;padding:2px 5px}.production-flat-table tr:focus td.flat-actions{background:#e5f2ff}@media print{.production-flat-table .flat-actions{display:none}}

.production-flat-table .flat-action-buttons>button{border:1px solid #b7c9d9;border-radius:4px;background:#f1f6fa;color:#426481;box-shadow:none;line-height:1;cursor:pointer}.production-flat-table .flat-action-buttons>.material-consumption-badge{border-color:#e99a94;background:#fff4f2;color:#b64b40;font-weight:700;opacity:1}.production-flat-table .flat-action-buttons>.material-consumption-badge.assigned{border-color:#58b58d;background:#edf8f2;color:#16734e}.production-flat-table .flat-action-buttons>button:disabled{cursor:default}.production-flat-table .flat-action-buttons>button:not(:disabled):hover{filter:brightness(.95)}.production-flat-table .flat-action-buttons>button:focus-visible{outline:2px solid #4388c3;outline-offset:2px}

body .dashboard .content table.production-flat-table [data-production-stage] {
  display: inline-block !important;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 2px 6px !important;
  border: 0 !important;
  border-inline-start: 3px solid var(--stage-marker, #74869c) !important;
  border-radius: 5px;
  background: var(--stage-bg, #edf2f7) !important;
  color: var(--stage-text, #414e60);
  box-shadow: none !important;
  font-size: inherit;
  font-weight: var(--stage-weight, 600);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.production-flat-table [data-production-stage="kr"] {
  --stage-text: #613477;
  --stage-bg: #f3e9fa;
  --stage-marker: #9060ae;
  --stage-weight: 700;
}
body .dashboard .content table.production-flat-table [data-production-stage="kr"].workflow-kr-pending {
  border-inline-start-style: dashed !important;
}
.production-flat-table [data-production-stage="metal"] {
  --stage-text: #704410;
  --stage-bg: #fff0d7;
  --stage-marker: #ae6d23;
  --stage-weight: 650;
}
.production-flat-table [data-production-stage="assembly"] {
  --stage-text: #194e98;
  --stage-bg: #e4efff;
  --stage-marker: #3c75c7;
  --stage-weight: 650;
}
.production-flat-table [data-production-stage="partially_completed"] {
  --stage-text: #8e3d24;
  --stage-bg: #fdecde;
  --stage-marker: #bd6344;
  --stage-weight: 650;
}
.production-flat-table [data-production-stage="ready"] {
  --stage-text: #1a6239;
  --stage-bg: #e4f5e9;
  --stage-marker: #3b9b62;
  --stage-weight: 750;
}
.production-flat-table [data-production-stage="partially_shipped"] {
  --stage-text: #0c6371;
  --stage-bg: #dff4f6;
  --stage-marker: #4293a0;
  --stage-weight: 650;
}
.production-flat-table [data-production-stage="shipped"] {
  --stage-text: #fff;
  --stage-bg: #166273;
  --stage-marker: #0b4553;
  --stage-weight: 750;
}
.production-flat-table [data-production-stage="cancelled"] {
  --stage-text: #963143;
  --stage-bg: #f8e5ea;
  --stage-marker: #be576a;
  --stage-weight: 700;
}
.production-flat-table .workflow-status-trigger[data-production-stage]:is(:hover, [aria-expanded="true"]) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.production-flat-table .workflow-status-trigger[data-production-stage]:focus-visible {
  outline: 2px solid var(--stage-text, #414e60);
  outline-offset: -2px;
}
@media (forced-colors: active) {
  .production-flat-table .workflow-status-trigger[data-production-stage]:focus-visible { outline-color: Highlight; }
}
@media print {
  body .dashboard .content table.production-flat-table [data-production-stage] {
    background: transparent !important;
    color: #16222e;
    print-color-adjust: exact;
  }
}

.production-grid-status:not(:empty) {
    position: fixed;
    z-index: 1050;
    right: 16px;
    bottom: 16px;
    max-width: min(480px, calc(100vw - 32px));
    padding: 8px 12px;
    border: 1px solid #cbd9e8;
    border-radius: 8px;
    background: #f4f8fc;
    color: #25435f;
    font-size: 13px;
    pointer-events: none;
}
.production-grid-status.is-error {
    color: #9c2923;
}
.copy-order-menu button[hidden] {
    display: none;
}
.production-grid-filtered::after {
    content: ' •';
    color: #3477b8;
}
.production-flat-table td[data-grid-column] {
    cursor: cell;
    touch-action: manipulation;
}
.production-flat-table td[data-grid-column][aria-readonly="true"] {
    cursor: default;
}
.production-flat-table tbody td[aria-selected="true"] {
    background: #ddebfb;
}
.production-flat-table tbody td.production-grid-active {
    box-shadow: inset 0 0 0 2px #3477b8;
    outline: 0;
}
.production-flat-table td.production-grid-editing {
    position: relative;
    padding: 0;
}
.production-grid-editing > .flat-cell-content {
    visibility: hidden;
}
.production-flat-table .production-grid-editor {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 2px 4px;
    border: 2px solid #3477b8;
    border-radius: 0;
    background: #fff;
    color: #172f47;
    font: inherit;
    resize: none;
}
.production-grid-paste-dialog {
    width: min(480px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid #ccdbe9;
    border-radius: 12px;
    color: #25435f;
}
.production-grid-paste-dialog::backdrop {
    background: #17334d66;
}
.production-grid-paste-dialog textarea,
.production-grid-paste-dialog input[type="search"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 8px 0 12px;
    padding: 8px;
    border: 1px solid #ccdbe9;
    border-radius: 6px;
    font: inherit;
}
.production-grid-paste-dialog footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
