@font-face {
    font-family: "Material Symbols Outlined";
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url("../Fonts/material-symbols-outlined.woff2") format("woff2");
}

:root {
    --pm-ink: #111b2b;
    --pm-navy: #0b1729;
    --pm-navy-soft: #16243a;
    --pm-slate: #526078;
    --pm-blue: #2e5f91;
    --pm-paper: #f5f6f7;
    --pm-white: #ffffff;
    --pm-line: #dce1e7;
    --pm-line-strong: #cfd6df;
    --pm-muted: #697386;
    --pm-success: #168462;
    --pm-warning: #c17b13;
    --pm-danger: #c53855;
    --pm-info-bg: #eaf1f8;
    --pm-success-bg: #e7f5ef;
    --pm-warning-bg: #fff4df;
    --pm-danger-bg: #fbeaec;
    --pm-sidebar: 264px;
    --pm-topbar: 68px;
    --pm-radius: 5px;
    --pm-shadow: 0 16px 40px rgba(11, 23, 41, 0.12);
    --pm-font: "Manrope", sans-serif;
    --pm-mono: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--pm-paper);
    color: var(--pm-ink);
    font-family: var(--pm-font);
    line-height: 1.5;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(11, 23, 41, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 23, 41, 0.025) 1px, transparent 1px),
        var(--pm-paper);
    background-size: 24px 24px;
}

body.has-modal {
    overflow: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

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

[hidden] {
    display: none !important;
}

.material-symbols-outlined {
    display: inline-block;
    overflow: hidden;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    direction: ltr;
    font-family: "Material Symbols Outlined";
    font-size: 21px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    -webkit-font-feature-settings: "liga";
    font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
    font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

.sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--pm-sidebar);
    min-height: 100vh;
    flex-direction: column;
    color: #edf3fb;
    background: var(--pm-navy);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.22;
    background: radial-gradient(circle at 10% 10%, #456b96 0, transparent 32%);
}

.sidebar__brand,
.sidebar__nav,
.sidebar__status {
    position: relative;
    z-index: 1;
}

.sidebar__brand {
    display: flex;
    min-height: var(--pm-topbar);
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: var(--pm-navy);
    background: #e9b85e;
    border-radius: 4px;
    font-family: var(--pm-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.04em;
    box-shadow: 5px 5px 0 rgba(233, 184, 94, 0.15);
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.brand-copy span {
    margin-top: 1px;
    color: #91a0b5;
    font-size: 11px;
}

.sidebar__close {
    display: none;
    margin-left: auto;
    color: #fff;
}

.sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 22px 12px;
}

.sidebar__label {
    margin: 0 10px 10px;
    color: #6f819a;
    font-family: var(--pm-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar__list {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar__link {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    color: #aeb9c9;
    border-radius: var(--pm-radius);
    font-size: 13px;
    font-weight: 600;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sidebar__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}

.sidebar__link.is-active {
    color: #fff;
    background: var(--pm-navy-soft);
    box-shadow: inset 3px 0 #e9b85e;
}

.sidebar__link.is-active .material-symbols-outlined {
    color: #e9b85e;
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.sidebar__administration {
    display: grid;
    gap: 3px;
}

.sidebar__administration-toggle {
    width: 100%;
    cursor: pointer;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    text-align: left;
}

.sidebar__administration-arrow {
    margin-left: auto;
    color: #8191a7;
    transition: transform 160ms ease;
}

.sidebar__administration.is-open .sidebar__administration-arrow {
    transform: rotate(180deg);
}

.sidebar__sublist {
    display: grid;
    gap: 2px;
    margin: 0 0 4px 14px;
    padding: 4px 0 3px 9px;
    list-style: none;
    border-left: 1px solid rgba(154, 177, 203, .24);
}

.sidebar__sublist[hidden] {
    display: none;
}

.sidebar__link--sub {
    min-height: 38px;
    gap: 10px;
    padding: 8px 10px;
    font-size: 12px;
}

.sidebar__link--sub .material-symbols-outlined {
    font-size: 19px;
}

.sidebar__link.is-disabled {
    cursor: default;
    opacity: 0.62;
}

.sidebar__link.is-disabled:hover {
    transform: none;
}

.sidebar__soon {
    margin-left: auto;
    color: #73839a;
    font-family: var(--pm-mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar__status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--pm-radius);
}

.sidebar__status strong,
.sidebar__status span {
    display: block;
}

.sidebar__status strong {
    font-size: 11px;
}

.sidebar__status span:not(.status-dot) {
    color: #8797ad;
    font-size: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: var(--pm-muted);
    border-radius: 50%;
}

.status-dot--success { background: var(--pm-success); }
.status-dot--warning { background: var(--pm-warning); }
.status-dot--danger { background: var(--pm-danger); }

.sidebar-backdrop {
    display: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    margin-left: var(--pm-sidebar);
    flex-direction: column;
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    min-height: var(--pm-topbar);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 28px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--pm-line);
    backdrop-filter: blur(12px);
}

.topbar__start,
.topbar__actions,
.breadcrumb,
.user-chip {
    display: flex;
    align-items: center;
}

.topbar__start,
.topbar__actions {
    gap: 10px;
}

.topbar__actions {
    position: relative;
}

.topbar__menu {
    display: none;
}

.breadcrumb {
    gap: 5px;
    color: var(--pm-muted);
    font-size: 12px;
}

.breadcrumb strong {
    color: var(--pm-ink);
}

.breadcrumb .material-symbols-outlined {
    font-size: 16px;
}

.icon-button {
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    place-items: center;
    color: var(--pm-slate);
    background: transparent;
    border-radius: var(--pm-radius);
}

.icon-button:hover,
.icon-button:focus-visible {
    color: var(--pm-ink);
    background: #edf0f3;
}

.environment-badge,
.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    font-family: var(--pm-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.environment-badge {
    padding: 5px 8px;
    color: #70511a;
    background: #fff2d8;
    border: 1px solid #efd59f;
}

.user-chip {
    gap: 9px;
    padding: 5px 8px 5px 5px;
    cursor: pointer;
    color: var(--pm-ink);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--pm-radius);
}

.user-chip:hover,
.user-chip[aria-expanded="true"] {
    background: var(--pm-paper);
    border-color: var(--pm-line);
}

.user-chip__avatar {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--pm-blue);
    border-radius: 4px;
    font-family: var(--pm-mono);
    font-size: 10px;
}

.user-chip__copy {
    text-align: left;
}

.user-chip__copy strong,
.user-chip__copy small {
    display: block;
}

.user-chip__copy strong { font-size: 11px; }
.user-chip__copy small { color: var(--pm-muted); font-size: 9px; }

.dropdown {
    position: absolute;
    z-index: 60;
    top: calc(100% + 9px);
    right: 0;
    display: none;
    width: 190px;
    padding: 6px;
    background: var(--pm-white);
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
    box-shadow: var(--pm-shadow);
}

.dropdown.is-open { display: grid; }
.dropdown form { margin: 0; }

.dropdown button {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px;
    cursor: pointer;
    color: var(--pm-slate);
    background: transparent;
    border-radius: 3px;
    text-align: left;
    font-size: 12px;
}

.dropdown button:hover { color: var(--pm-ink); background: var(--pm-paper); }
.dropdown .material-symbols-outlined { font-size: 18px; }

.page {
    width: 100%;
    margin: 0;
    padding: 26px clamp(18px, 2vw, 34px);
    flex: 1;
}

/* Acesso */
.login-page {
    min-height: 100vh;
    color: var(--pm-ink);
    background:
        linear-gradient(rgba(23, 57, 95, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 57, 95, .045) 1px, transparent 1px),
        #f7f9fc;
    background-size: 28px 28px;
}

.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.08fr) minmax(360px, .92fr); }
.login-intro { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 6vw, 92px); color: #fff; background: linear-gradient(145deg, #071b35 0%, #0d315d 58%, #1b5b91 100%); }
.login-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; }
.login-brand__mark { display: grid; width: 44px; height: 44px; place-items: center; color: #0d2544; background: #f4bd48; border-radius: 7px; font: 700 13px var(--pm-mono); box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.login-brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.58); font-size: 11px; }
.login-intro__copy { max-width: 590px; margin: auto 0; }
.login-intro .eyebrow { color: #f4bd48; }
.login-intro h1 { max-width: 650px; margin: 12px 0 18px; color: #fff; font-size: clamp(38px, 4.3vw, 68px); line-height: .99; letter-spacing: -2.7px; }
.login-intro__copy > p:last-child { max-width: 480px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; }
.login-intro__foot { margin: 0; color: rgba(255,255,255,.46); font: 10px var(--pm-mono); letter-spacing: .06em; text-transform: uppercase; }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(100%, 450px); padding: clamp(28px, 4vw, 48px); background: rgba(255,255,255,.94); border: 1px solid #dbe4ef; border-top: 4px solid #2c69a3; border-radius: 8px; box-shadow: 0 28px 60px rgba(20,48,81,.14); }
.login-card header { margin-bottom: 28px; }
.login-card h2 { margin: 8px 0 7px; font-size: 31px; letter-spacing: -1.2px; }
.login-card header > p:last-child { margin: 0; color: var(--pm-muted); font-size: 14px; }
.login-card .field { display: grid; gap: 7px; margin-top: 17px; }
.login-card .field > span { color: var(--pm-slate); font: 600 11px var(--pm-mono); letter-spacing: .08em; text-transform: uppercase; }
.login-card input { min-height: 48px; }
.login-submit { width: 100%; min-height: 49px; justify-content: center; margin-top: 25px; }
.login-card footer { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; color: var(--pm-muted); font-size: 12px; line-height: 1.5; }
.login-card footer .material-symbols-outlined { color: #1c8b67; font-size: 18px; }
.login-error { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px; color: #a7223f; background: #fff0f2; border: 1px solid #f3c6d0; border-radius: 4px; font-size: 13px; line-height: 1.45; }
.login-error .material-symbols-outlined { font-size: 18px; }

@media (max-width: 780px) {
    .login-layout { grid-template-columns: 1fr; }
    .login-intro { min-height: 280px; padding: 28px; }
    .login-intro__copy { margin: 42px 0 0; }
    .login-intro h1 { font-size: 39px; letter-spacing: -1.8px; }
    .login-intro__foot { display: none; }
    .login-panel { padding: 22px; }
}

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

.eyebrow,
.section-label,
.table th {
    color: var(--pm-muted);
    font-family: var(--pm-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow { margin: 0 0 5px; }

.page-heading h1 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
}

.page-heading__description {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--pm-muted);
    font-size: 13px;
}

.button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    cursor: pointer;
    border-radius: var(--pm-radius);
    font-size: 12px;
    font-weight: 700;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover { transform: translateY(-1px); }
.button--primary { color: #fff; background: var(--pm-navy); box-shadow: 0 6px 14px rgba(11, 23, 41, 0.16); }
.button--primary:hover { background: #15253d; }
.button--secondary { color: var(--pm-ink); background: var(--pm-white); border: 1px solid var(--pm-line); }
.button--danger { color: #fff; background: var(--pm-danger); }
.button--success { color: #fff; background: var(--pm-success); box-shadow: 0 6px 14px rgba(22,132,98,.18); }
.button--success:hover { background: #116d51; }
.button--small { min-height: 30px; padding: 5px 9px; font-size: 10px; }
.button:disabled { cursor: not-allowed; opacity: 0.5; transform: none; }

.stats-grid,
.content-grid,
.component-grid,
.machine-grid {
    display: grid;
    gap: 16px;
}

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.content-grid { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); margin-top: 16px; }
.component-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.machine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
}

.metric-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 17px;
}

.metric-card::after {
    position: absolute;
    right: -18px;
    bottom: -30px;
    width: 88px;
    height: 88px;
    content: "";
    background: var(--pm-paper);
    border: 1px solid var(--pm-line);
    border-radius: 50%;
}

.metric-card__top,
.card__header,
.table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.metric-card__top { color: var(--pm-muted); }
.metric-card__top .material-symbols-outlined { font-size: 20px; }
.metric-card__value { display: block; margin-top: 16px; font-family: var(--pm-mono); font-size: 26px; font-weight: 600; letter-spacing: -0.05em; }
.metric-card__detail { position: relative; z-index: 1; display: block; margin-top: 3px; color: var(--pm-muted); font-size: 10px; }

.card__header,
.table-card__header {
    min-height: 56px;
    padding: 14px 16px;
    background: #fafbfc;
    border-bottom: 1px solid var(--pm-line);
}

.card__header h2,
.card__header h3,
.table-card__header h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.card__body { padding: 16px; }

.production-chart {
    display: flex;
    min-height: 260px;
    align-items: end;
    gap: 10px;
    padding: 28px 16px 16px;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, var(--pm-line) 60px);
}

.chart-bar {
    display: flex;
    height: 100%;
    min-height: 220px;
    flex: 1;
    flex-direction: column;
    justify-content: end;
    text-align: center;
}

.chart-bar__fill {
    min-height: 14px;
    background: #9fb5cd;
    border-radius: 3px 3px 0 0;
    transition: background 150ms ease, transform 150ms ease;
}

.chart-bar:hover .chart-bar__fill { background: var(--pm-blue); transform: scaleX(1.04); }
.chart-bar__label { margin-top: 8px; color: var(--pm-muted); font-family: var(--pm-mono); font-size: 10px; }
.chart-bar__fill--40 { height: 40%; }
.chart-bar__fill--50 { height: 50%; }
.chart-bar__fill--65 { height: 65%; }
.chart-bar__fill--70 { height: 70%; }
.chart-bar__fill--85 { height: 85%; }

.machine-grid { padding: 14px; }

.machine-card {
    min-height: 112px;
    padding: 13px;
    background: var(--pm-paper);
    border: 1px solid var(--pm-line);
    border-radius: 4px;
}

.machine-card strong,
.machine-card span { display: block; }
.machine-card strong { font-family: var(--pm-mono); font-size: 11px; }
.machine-card > span { margin-top: 5px; color: var(--pm-muted); font-size: 10px; }
.machine-card__state { display: flex !important; align-items: center; gap: 6px; margin-top: 18px !important; color: var(--pm-ink) !important; }

.table-card { margin-top: 16px; overflow: hidden; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th,
.table td { padding: 12px 15px; border-bottom: 1px solid var(--pm-line); text-align: left; white-space: nowrap; }
.table th { background: var(--pm-paper); }
.table td { font-size: 12px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfc; }

.work-list__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.work-list__phase-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.work-list__phase-legend > span:not(.section-label) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pm-slate);
    font-size: 10px;
    font-weight: 600;
}

.work-phase-filter { display: flex; overflow-x: auto; gap: 6px; padding: 10px 13px; background: #f8fafb; border-top: 1px solid var(--pm-line); border-bottom: 1px solid var(--pm-line); scrollbar-width: thin; }
.work-phase-filter button { display: inline-flex; min-height: 34px; flex: 0 0 auto; align-items: center; gap: 6px; padding: 6px 10px; cursor: pointer; color: var(--pm-slate); background: #fff; border: 1px solid var(--pm-line-strong); border-radius: 999px; font-size: 11px; font-weight: 700; transition: color 150ms ease,background 150ms ease,border-color 150ms ease; }
.work-phase-filter button:hover { color: var(--pm-blue); border-color: #9fb7cd; }
.work-phase-filter button.is-active { color: #fff; background: var(--pm-blue); border-color: var(--pm-blue); box-shadow: 0 4px 10px rgba(46,95,145,.16); }
.work-phase-filter button b { display: inline-grid; min-width: 20px; height: 20px; place-items: center; padding: 0 5px; color: var(--pm-muted); background: var(--pm-paper); border-radius: 999px; font-family: var(--pm-mono); font-size: 9px; }
.work-phase-filter button.is-active b { color: var(--pm-blue); background: #fff; }
.work-phase-filter .material-symbols-outlined { font-size: 17px; }
.empty-state--compact { min-height: 170px; }

.work-table { min-width: 1540px; }
.work-table__actions { min-width: 222px; }
.work-queue-hint { align-items: center; background: #edf5fb; border-bottom: 1px solid #cbddeb; color: #45617e; display: flex; font-size: 12px; gap: 8px; line-height: 1.4; padding: 9px 14px; }
.work-queue-hint > .material-symbols-outlined { color: var(--pm-blue); font-size: 19px; }
.work-queue-hint strong { color: #284e76; }
.work-queue-hint.is-success { background: #edf9f4; color: #137554; }
.work-queue-hint.is-success strong { color: #087356; }
.work-queue-hint.is-error { background: #fff1f2; color: #a42d43; }
.work-queue-hint.is-error strong { color: #a11f39; }
.work-queue-controls { display: inline-flex; gap: 3px; margin-right: 6px; vertical-align: middle; }
.work-queue-controls .icon-button { color: #55718c; height: 32px; width: 32px; }
.work-queue-controls .icon-button:hover { background: #e8f1f8; color: var(--pm-blue); }
.work-queue-handle { cursor: grab; }
.work-queue-handle:active { cursor: grabbing; }
.work-table tr.is-dragging { opacity: .45; }
.work-table tr.is-drag-over td { box-shadow: inset 0 3px 0 var(--pm-blue); }
.work-table__phase { width: 92px; text-align: center !important; }
.work-table__description { min-width: 230px; white-space: normal !important; }
.work-table__machines { width: 180px; min-width: 180px; white-space: normal !important; }
.machine-assignment { display: flex; align-items: center; gap: 5px; color: var(--pm-ink); font-size: 11px; font-weight: 700; }
.machine-assignment + .machine-assignment { margin-top: 5px; }
.machine-assignment .material-symbols-outlined { color: var(--pm-blue); font-size: 17px; }
.machine-assignment--empty { color: var(--pm-muted); font-weight: 600; }
.machine-assignment--empty .material-symbols-outlined { color: #96a1af; }
.machine-assignment-warning { display: block; margin-top: 5px; color: var(--pm-warning); font-size: 9px; font-weight: 700; }
.work-number { display: block; color: var(--pm-navy); font-family: var(--pm-mono); font-size: 15px; font-weight: 700; }
.work-number:hover,.work-title-link:hover { color: var(--pm-blue); text-decoration: underline; text-underline-offset: 3px; }
.work-date { font-family: var(--pm-mono); font-size: 11px; font-weight: 600; }
.work-table .work-date { font-size: 12px; }
.work-date.is-overdue { color: var(--pm-danger); }
.archive-table { min-width: 1040px; }
.archive-quantity { display: block; font-family: var(--pm-mono); font-weight: 700; }
.archive-delivered { display: inline-flex; align-items: center; gap: 6px; color: #17704a; font-weight: 700; }
.archive-delivered .material-symbols-outlined { font-size: 18px; }
.paper-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.paper-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255,255,255,.7); }
.paper-state--missing { color: #a52d3f; background: #fbe7eb; }
.paper-state--ordered { color: #96600c; background: #fff0cf; }
.paper-state--ready { color: #17704a; background: #dff4e9; }

.priority-flag {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    font-family: var(--pm-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.priority-flag .material-symbols-outlined { font-size: 14px; }
.priority-flag--high { color: #80500b; background: var(--pm-warning-bg); }
.priority-flag--urgent { color: #fff; background: var(--pm-danger); box-shadow: 0 4px 10px rgba(195,57,79,.2); }

.phase-status {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--pm-line);
    border-radius: 50%;
    background: #fff;
}

.phase-dot {
    display: inline-block;
    width: 11px;
    height: 11px;
    flex: 0 0 11px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(31, 43, 59, 0.06);
}

.phase-dot--done { background: var(--pm-success); }
.phase-dot--pending { background: var(--pm-danger); }
.phase-dot--issue { background: var(--pm-warning); }
.phase-status--done { background: var(--pm-success-bg); border-color: rgba(29, 139, 104, 0.22); }
.phase-status--pending { background: var(--pm-danger-bg); border-color: rgba(195, 57, 79, 0.18); }
.phase-status--issue { background: var(--pm-warning-bg); border-color: rgba(190, 126, 21, 0.24); }
.table__id { font-family: var(--pm-mono); font-weight: 600; }
.table__actions { text-align: right !important; }

.badge { gap: 6px; padding: 4px 8px; }
.badge--success { color: #0e684d; background: var(--pm-success-bg); }
.badge--info { color: #244b72; background: var(--pm-info-bg); }
.badge--warning { color: #84530e; background: var(--pm-warning-bg); }
.badge--danger { color: #92263d; background: var(--pm-danger-bg); }
.badge--neutral { color: var(--pm-slate); background: #edf0f3; }

.component-section { margin-top: 26px; }
.component-section__title { margin: 0 0 12px; padding-bottom: 9px; border-bottom: 1px solid var(--pm-line); font-size: 16px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.swatch { min-height: 86px; padding: 10px; color: #fff; border-radius: 4px; font-family: var(--pm-mono); font-size: 9px; }
.swatch--navy { background: var(--pm-navy); }
.swatch--blue { background: var(--pm-blue); }
.swatch--success { background: var(--pm-success); }
.swatch--warning { background: var(--pm-warning); }
.swatch--danger { background: var(--pm-danger); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; align-content: start; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--pm-muted); font-family: var(--pm-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 39px;
    padding: 8px 10px;
    color: var(--pm-ink);
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: var(--pm-radius);
    outline: 0;
    font-size: 12px;
}

.field textarea { min-height: 90px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--pm-blue); box-shadow: 0 0 0 3px rgba(46, 95, 145, 0.12); }
.field input:disabled { color: var(--pm-muted); background: var(--pm-paper); }
[data-date-input] { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.field__error { color: var(--pm-danger); font-size: 10px; }
.field-help { color: var(--pm-muted); font-size: 11px; }
.field-help a { color: var(--pm-blue); font-weight: 700; }
.field-help a:hover { text-decoration: underline; }
.field.has-error input,
.field.has-error select { border-color: var(--pm-danger); }

.button-row { display: flex; flex-wrap: wrap; gap: 9px; }
.alert { display: flex; align-items: start; gap: 10px; padding: 13px; border-left: 3px solid; border-radius: 0 var(--pm-radius) var(--pm-radius) 0; font-size: 11px; }
.alert + .alert { margin-top: 9px; }
.alert strong,
.alert span { display: block; }
.alert strong { margin-bottom: 2px; font-size: 11px; }
.alert--info { color: #244b72; background: var(--pm-info-bg); border-color: var(--pm-blue); }
.alert--success { color: #0e684d; background: var(--pm-success-bg); border-color: var(--pm-success); }
.alert--warning { color: #84530e; background: var(--pm-warning-bg); border-color: var(--pm-warning); }
.alert--danger { color: #92263d; background: var(--pm-danger-bg); border-color: var(--pm-danger); }

.empty-state { padding: 42px 20px; text-align: center; }
.empty-state .material-symbols-outlined { color: #9ca7b5; font-size: 38px; }
.empty-state h3 { margin: 8px 0 4px; font-size: 14px; }
.empty-state p { margin: 0 0 14px; color: var(--pm-muted); font-size: 11px; }

.modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(7, 15, 27, 0.7);
    backdrop-filter: blur(3px);
}

.modal__dialog { width: min(100%, 480px); background: #fff; border-radius: var(--pm-radius); box-shadow: var(--pm-shadow); }
.modal__header,
.modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.modal__header { border-bottom: 1px solid var(--pm-line); }
.modal__header h2 { margin: 0; font-size: 15px; }
.modal__body { padding: 18px 16px; color: var(--pm-muted); font-size: 12px; }
.modal__footer { justify-content: flex-end; background: var(--pm-paper); border-top: 1px solid var(--pm-line); }

.pm-dialog { z-index: 1000; }
.pm-dialog .modal__body > p { margin: 0; }
.pm-dialog__field { margin-top: 16px; }
.pm-dialog__field > span { color: var(--pm-slate); font-family: var(--pm-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.pm-dialog__field input { width: 100%; }
.pm-dialog__field input.has-error { border-color: var(--pm-danger); box-shadow: 0 0 0 3px rgba(197,56,85,.1); }

@media (max-width: 560px) {
    .pm-dialog { padding: 12px; }
    .pm-dialog .modal__footer { display: grid; grid-template-columns: 1fr 1fr; }
    .pm-dialog .modal__footer .button { justify-content: center; }
}

.client-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 0.65fr)) minmax(260px, 1.4fr);
    gap: 12px;
}

.client-summary__item {
    display: grid;
    min-height: 112px;
    align-content: center;
    padding: 15px;
}

.client-summary__item strong {
    margin-top: 8px;
    font-family: var(--pm-mono);
    font-size: 24px;
    line-height: 1;
}

.client-summary__item small {
    margin-top: 7px;
    color: var(--pm-muted);
    font-size: 9px;
}

.client-summary__note {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 13px;
    padding: 18px;
    color: #dfe9f5;
    background: var(--pm-navy);
    border-radius: var(--pm-radius);
}

.client-summary__note::after {
    position: absolute;
    right: -44px;
    width: 130px;
    height: 130px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.client-summary__note > .material-symbols-outlined {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #e9b85e;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
}

.client-summary__note strong,
.client-summary__note span { display: block; }
.client-summary__note strong { font-size: 11px; }
.client-summary__note div span { max-width: 260px; margin-top: 3px; color: #93a3b8; font-size: 9px; }

.client-list { margin-top: 18px; }
.client-toolbar { min-height: 72px; }
.client-toolbar__actions { display: flex; align-items: center; gap: 9px; }

.search-field {
    display: flex;
    width: min(320px, 34vw);
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
}

.search-field:focus-within {
    border-color: var(--pm-blue);
    box-shadow: 0 0 0 3px rgba(46, 95, 145, 0.1);
}

.search-field .material-symbols-outlined { color: var(--pm-muted); font-size: 18px; }
.search-field input { width: 100%; padding: 0; background: transparent; border: 0; outline: 0; font-size: 11px; }
.client-name,
.client-code,
.client-contact { display: block; }
.client-name { font-weight: 700; }
.client-code { margin-top: 2px; color: var(--pm-muted); font-family: var(--pm-mono); font-size: 9px; }
.client-contact { margin-top: 2px; color: var(--pm-muted); font-size: 9px; }
a.client-contact:hover { color: var(--pm-blue); text-decoration: underline; }

.table-pagination {
    display: flex;
    min-height: 53px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: var(--pm-muted);
    background: #fafbfc;
    border-top: 1px solid var(--pm-line);
    font-size: 10px;
}

.modal__dialog--wide {
    display: flex;
    width: min(1120px, 96vw);
    max-height: calc(100vh - 32px);
    flex-direction: column;
}

.modal__dialog--wide > form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.modal__body--scroll {
    overflow-y: auto;
    padding: 0;
}

.client-form__header { flex: 0 0 auto; padding: 16px 20px; }
.client-form__header .section-label { margin: 0 0 2px; }

.form-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 16px 20px 0;
    padding: 10px 12px;
    color: #244b72;
    background: var(--pm-info-bg);
    border: 1px solid #cfe0f0;
    border-radius: var(--pm-radius);
    font-size: 10px;
}

.form-notice .material-symbols-outlined { font-size: 18px; }

.form-section {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 22px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--pm-line);
}

.form-section:last-child { border-bottom: 0; }

.form-section__heading {
    display: grid;
    grid-template-columns: 32px 1fr;
    align-content: start;
    gap: 9px;
}

.form-section__heading--action {
    grid-template-columns: 32px 1fr;
}

.form-section__heading--action .button {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
}

.form-section__number {
    display: grid;
    width: 32px;
    height: 25px;
    place-items: center;
    color: #7a591b;
    background: #fff2d8;
    border-radius: 3px;
    font-family: var(--pm-mono);
    font-size: 9px;
    font-weight: 600;
}

.form-section__heading h3 {
    margin: 1px 0 0;
    font-size: 12px;
}

.form-section__heading p {
    margin: 4px 0 0;
    color: var(--pm-muted);
    font-size: 9px;
}

.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--span-2 { grid-column: span 2; }
.field--span-3 { grid-column: span 3; }

.repeater-list {
    display: grid;
    gap: 12px;
}

.repeatable-card {
    padding: 14px;
    background: #fafbfc;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
}

.repeatable-card__top {
    display: flex;
    min-height: 34px;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
    border-bottom: 1px solid var(--pm-line);
}

.repeatable-card__top strong { font-size: 10px; }
.repeatable-card__top .icon-button { width: 27px; height: 27px; color: var(--pm-danger); }
.repeatable-card__top .material-symbols-outlined { font-size: 17px; }

.check-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    padding-top: 7px;
}

.check-row label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--pm-slate);
    font-size: 10px;
}

.check-row input { width: 15px; height: 15px; accent-color: var(--pm-blue); }

.client-form__footer {
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 12px 20px;
}

.client-form__footer > span { color: var(--pm-muted); font-size: 9px; }

.form-notice--page { margin: 0 0 14px; }

.client-form-page {
    overflow: hidden;
}

.work-form {
    display: grid;
    gap: 12px;
    overflow: visible;
    background: transparent;
    border: 0;
}

.work-form > .form-section,
.work-form > .print-readiness,
.work-form > .materials-overview,
.work-form > .client-form-actions {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
}

.work-form > .form-section { border-bottom: 1px solid var(--pm-line); }
.work-form > .print-readiness { background: #f7fafc; }

.materials-overview { display: grid; gap: 13px; padding: 18px 20px; }
.materials-overview > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.materials-overview > header h3 { margin: 2px 0 0; font-size: 15px; }
.materials-overview > header p { margin: 3px 0 0; color: var(--pm-muted); font-size: 11px; }
.materials-overview__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.materials-overview__actions .button .material-symbols-outlined { font-size: 17px; }
.materials-overview__badge { padding: 6px 9px; color: #85560c; background: #fff0cf; border-radius: 999px; font-size: 10px; font-weight: 700; }
.materials-overview__badge.is-ready { color: #17704a; background: #dff4e9; }
.materials-overview__grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(330px,.8fr); gap: 12px; }
.materials-overview__panel { overflow: hidden; background: #fbfcfd; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.materials-overview__panel > header { display: flex; align-items: center; gap: 9px; padding: 11px 13px; background: #f2f6fa; border-bottom: 1px solid var(--pm-line); }
.materials-overview__panel > header > .material-symbols-outlined { display: grid; width: 30px; height: 30px; place-items: center; color: var(--pm-blue); background: #e8f0f7; border-radius: 5px; font-size: 18px; }
.materials-overview__panel > header strong,.materials-overview__panel > header small { display: block; }
.materials-overview__panel > header strong { font-size: 12px; }
.materials-overview__panel > header small { margin-top: 1px; color: var(--pm-muted); font-size: 10px; }
.materials-overview__panel--plates > header > .material-symbols-outlined { color: #8a5b0e; background: #fff0cf; }
.materials-overview__rows { display: grid; }
.materials-overview__empty { padding: 15px 13px; color: var(--pm-muted); font-size: 11px; }
.materials-overview__row { display: grid; grid-template-columns: minmax(95px,.55fr) minmax(190px,1.5fr) minmax(170px,1fr) auto; align-items: center; gap: 10px; padding: 10px 13px; border-top: 1px solid var(--pm-line); }
.materials-overview__panel--plates .materials-overview__row { grid-template-columns: minmax(70px,.5fr) minmax(120px,1fr) minmax(70px,.55fr) minmax(135px,.9fr); }
.materials-overview__row:first-child { border-top: 0; }
.materials-overview__row.is-missing { background: #fff8f9; }
.materials-overview__component { justify-self: start; padding: 0; color: var(--pm-blue); background: transparent; border: 0; font-size: 11px; font-weight: 700; cursor: pointer; text-align: left; }
.materials-overview__component:hover { text-decoration: underline; }
.materials-overview__detail { display: grid; gap: 2px; min-width: 0; }
.materials-overview__detail strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.materials-overview__detail small { color: var(--pm-muted); font-size: 9px; }
.materials-overview__quantity { color: var(--pm-slate); font-size: 11px; font-weight: 700; }
.materials-overview__status { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.materials-overview__status--missing { color: #a52d3f; background: #fbe7eb; }
.materials-overview__status--ordered { color: #96600c; background: #fff0cf; }
.materials-overview__status--ready { color: #17704a; background: #dff4e9; }
.materials-overview__status--neutral { color: #657383; background: #e9edf1; }
.materials-overview__status-select { width: 100%; min-width: 145px; height: 34px; padding: 0 30px 0 9px; color: var(--pm-slate); background-color: #fff; border: 1px solid var(--pm-line-strong); border-radius: 6px; font-size: 10px; font-weight: 700; }
.materials-overview__status-select--missing { color: #a52d3f; background-color: #fff4f6; border-color: #ecc8ce; }
.materials-overview__status-select--ordered { color: #8a590d; background-color: #fff8e9; border-color: #ead5a9; }
.materials-overview__status-select--ready { color: #176543; background-color: #eff9f4; border-color: #b9dfca; }
.materials-overview__status-select--neutral { color: #536270; background-color: #f1f3f5; border-color: #d6dde3; }
.component-material-card--paper > .paper-order-summary { display: none; }

.client-form-actions {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    color: var(--pm-muted);
    background: #fafbfc;
    border-top: 1px solid var(--pm-line);
    font-size: 9px;
}

.page-alert { margin-bottom: 14px; }
.error-list { margin: 6px 0 0; padding-left: 18px; }
.error-list li + li { margin-top: 3px; }

.row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.row-actions form { margin: 0; }
.table-cell-wrap { min-width: 220px; max-width: 360px; white-space: normal !important; }
.table__group-row td { padding: 9px 14px !important; color: #244f78; background: #eaf2f9 !important; border-top: 1px solid #c7d9e8; border-bottom: 1px solid #c7d9e8; font-family: var(--pm-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.table__group-row .material-symbols-outlined { margin-right: 8px; vertical-align: -4px; color: var(--pm-blue); font-size: 17px; }

.machine-format-preview { display: flex; min-height: 67px; align-items: center; gap: 9px; align-self: end; padding: 10px; color: var(--pm-muted); background: var(--pm-paper); border: 1px dashed var(--pm-line); border-radius: var(--pm-radius); }
.machine-format-preview .material-symbols-outlined { color: var(--pm-blue); }
.operation-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.operation-option { display: flex; align-items: start; gap: 9px; padding: 12px; cursor: pointer; background: #fafbfc; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.operation-option:has(input:checked) { background: var(--pm-info-bg); border-color: #a9c5df; }
.operation-option input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--pm-blue); }
.operation-option strong,.operation-option small { display: block; }
.operation-option strong { font-size: 13px; }
.operation-option small { margin-top: 3px; color: var(--pm-muted); font-size: 11px; }
.empty-inline { grid-column: 1/-1; padding: 16px; color: var(--pm-muted); background: var(--pm-paper); border: 1px dashed var(--pm-line); border-radius: var(--pm-radius); }

.config-index { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; margin-bottom: 24px; }
.config-index a { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); font-weight: 700; }
.config-index a:hover { border-color: var(--pm-blue); }
.config-index strong { display: grid; min-width: 28px; height: 28px; place-items: center; color: var(--pm-blue); background: var(--pm-info-bg); border-radius: 50%; font-family: var(--pm-mono); font-size: 11px; }
.config-section { margin-top: 30px; scroll-margin-top: 90px; }
.config-section__heading { margin-bottom: 12px; }
.config-section__heading h2 { margin: 2px 0; font-size: 21px; }
.config-section__heading p:last-child { margin: 0; color: var(--pm-muted); }
.config-layout { display: grid; grid-template-columns: minmax(280px,.65fr) minmax(0,1.6fr); gap: 14px; align-items: start; }
.config-form { overflow: hidden; }
.config-form header { padding: 14px 16px; background: #fafbfc; border-bottom: 1px solid var(--pm-line); }
.config-form header h3 { margin: 0; font-size: 16px; }
.config-form > .form-grid { padding: 16px; }
.config-form footer { display: flex; gap: 8px; padding: 12px 16px; background: #fafbfc; border-top: 1px solid var(--pm-line); }
.operation-fields-config { display: grid; gap: 10px; margin: 0 16px 16px; padding: 13px; background: #f3f7fb; border: 1px solid #cbdbe8; border-radius: var(--pm-radius); }
.operation-fields-config > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0; background: transparent; border: 0; }
.operation-fields-config > header > div { display: grid; gap: 2px; }
.operation-fields-config > header strong { color: var(--pm-navy); font-size: 13px; }
.operation-fields-config > header p { margin: 0; color: var(--pm-muted); font-size: 10px; }
.operation-fields-config__list { display: grid; gap: 9px; }
.operation-field-config { overflow: hidden; background: #fff; border: 1px solid #d7e2eb; border-radius: 7px; }
.operation-field-config > header { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; color: var(--pm-blue); background: #f8fafc; border-bottom: 1px solid var(--pm-line); font-family: var(--pm-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.operation-field-config > header .icon-button { width: 28px; height: 28px; color: var(--pm-danger); }
.operation-field-config__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 10px; }
.operation-field-config > footer { display: flex; flex-wrap: wrap; gap: 16px; padding: 8px 10px; background: #fafbfc; border-top: 1px solid var(--pm-line); color: var(--pm-muted); font-size: 11px; }
.operation-field-config > footer label { display: flex; align-items: center; gap: 6px; }
.operator-layout { align-items: start; }
.operator-function-repeater { display: grid; gap: 10px; }
.operator-function-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.operator-function-heading > div { display: grid; gap: 3px; }
.operator-function-list { display: grid; gap: 8px; }
.operator-function-row { display: grid; grid-template-columns: minmax(0,1fr) 38px; align-items: center; gap: 8px; }
.operator-function-row .icon-button { color: var(--pm-danger); border: 1px solid var(--pm-line); }
.operator-function-badges { display: flex; flex-wrap: wrap; gap: 5px; min-width: 210px; }
.operator-list .table-wrap { min-height: 190px; }
.sidebar-simulator { display: grid; gap: 6px; margin: 10px 14px 14px; padding: 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: 7px; }
.sidebar-simulator label { color: #91a2b8; font-family: var(--pm-mono); font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-simulator select { min-width: 0; height: 36px; padding: 0 29px 0 9px; color: #eaf0f7; background-color: #14263d; border-color: #30445e; font-size: 10px; }
.sidebar-simulator small { color: #74879e; font-size: 9px; line-height: 1.35; }
.operator-view-chip { display: flex; align-items: center; gap: 10px; min-width: 230px; padding: 10px 13px; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.operator-view-chip > .material-symbols-outlined { color: var(--pm-blue); }
.operator-view-chip div { display: grid; gap: 1px; }
.operator-view-chip strong { color: var(--pm-navy); font-size: 12px; }
.operator-view-chip small { color: var(--pm-muted); font-size: 10px; }
.operator-queue-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 10px; margin-bottom: 14px; }
.operator-queue-summary article { display: grid; gap: 3px; padding: 14px 16px; border-left: 3px solid var(--pm-blue); }
.operator-queue-summary strong { color: var(--pm-navy); font-family: var(--pm-mono); font-size: 24px; }
.operator-queue-summary small { color: var(--pm-muted); font-size: 10px; }
.operator-phase { display: inline-flex; align-items: center; gap: 6px; color: var(--pm-blue); font-weight: 700; white-space: nowrap; }
.operator-phase .material-symbols-outlined { font-size: 18px; }
.production-blockage { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.production-blockages { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.production-blockage .material-symbols-outlined { font-size: 14px; font-variation-settings: "FILL" 1, "wght" 550, "GRAD" 0, "opsz" 20; }
.production-blockage-empty { color: #a3adba; }

.complaint-form { overflow: hidden; }
.complaint-work-grid { grid-template-columns: .7fr 1.2fr 1.6fr; }
.complaint-solutions-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.complaint-form textarea { min-height: 112px; resize: vertical; }
.complaint-number { display: inline-flex; padding: 5px 8px; color: #9b2945; background: #fce8ed; border: 1px solid #f4cbd5; border-radius: 4px; font-family: var(--pm-mono); font-size: 10px; font-weight: 700; white-space: nowrap; }
.complaint-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 10px; margin-bottom: 14px; }
.complaint-summary article { display: grid; gap: 3px; padding: 14px 16px; border-left: 3px solid #b63a59; }
.complaint-summary strong { color: var(--pm-navy); font-family: var(--pm-mono); font-size: 24px; }
.complaint-summary small { color: var(--pm-muted); font-size: 10px; }
.complaint-summary__total { display: flex !important; align-items: center; justify-content: space-between; gap: 24px; }
.complaint-summary__copy,.complaint-summary__cost { display: grid; gap: 3px; }
.complaint-summary__cost { min-width: 150px; text-align: right; }
.complaint-summary__cost strong { font-size: 20px; white-space: nowrap; }
.complaints-table { table-layout: fixed; }
.complaints-table th,.complaints-table td { overflow: hidden; white-space: normal; vertical-align: top; }
.complaints-table th:nth-child(1) { width: 64px; }
.complaints-table th:nth-child(2) { width: 160px; }
.complaints-table th:nth-child(3) { width: 195px; }
.complaints-table th:nth-child(4) { width: 205px; }
.complaints-table th:nth-child(6) { width: 110px; }
.complaints-table th:nth-child(7) { width: 205px; }
.complaints-table .table__actions { overflow: visible; white-space: nowrap; }
.complaints-table td:nth-child(4) .badge { white-space: nowrap; }
.complaint-row-actions { justify-content: flex-end; flex-wrap: nowrap; gap: 6px; }
.complaint-row-actions form { flex: 0 0 auto; margin: 0; }
.complaint-copy,.complaint-solutions { min-width: 0; }
.complaint-copy strong,.complaint-copy span,.complaint-solutions span { display: block; }
.complaint-copy strong { margin-bottom: 4px; color: var(--pm-navy); }
.complaint-copy span { color: var(--pm-muted); line-height: 1.45; }
.complaint-copy--compact span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.complaint-cost { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: var(--pm-ink); font-size: 10px; }
.complaint-cost b { color: var(--pm-blue); font-family: var(--pm-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.complaint-solutions { display: grid; gap: 7px; }
.complaint-solutions span { color: var(--pm-ink); line-height: 1.4; }
.complaint-solutions b { margin-right: 6px; color: var(--pm-blue); font-family: var(--pm-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.operator-work-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 18px 20px; border-left: 4px solid var(--pm-blue); }
.operator-work-hero h2 { margin: 3px 0; font-size: 22px; }
.operator-work-hero p { margin: 0; color: var(--pm-muted); font-size: 12px; }
.operator-work-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.operator-work-facts--print { grid-template-columns: repeat(4,minmax(0,1fr)); }
.operator-work-facts--dispatch { grid-template-columns: repeat(5,minmax(0,1fr)); }
.operator-work-facts article { display: grid; gap: 3px; padding: 14px 16px; }
.operator-work-facts span { color: var(--pm-muted); font-family: var(--pm-mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.operator-work-facts strong { color: var(--pm-navy); font-size: 14px; }
.operator-work-facts small { color: var(--pm-muted); font-size: 10px; }
.operator-work-facts__machine { border-left: 3px solid var(--pm-blue); }
.operator-work-description { display: grid; gap: 7px; margin-bottom: 12px; padding: 16px 18px; }
.operator-work-description p { margin: 0; line-height: 1.65; }
.operator-dispatch-packaging { display: grid; gap: 0; margin-bottom: 12px; overflow: hidden; border-left: 4px solid var(--pm-blue); }
.operator-dispatch-packaging > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: #f2f6fa; border-bottom: 1px solid var(--pm-line); }
.operator-dispatch-packaging > header .material-symbols-outlined { color: var(--pm-blue); }
.operator-dispatch-packaging > header div { display: grid; gap: 2px; }
.operator-dispatch-packaging > header .button { margin-left: auto; }
.operator-dispatch-packaging > header strong { color: var(--pm-navy); font-size: 14px; }
.operator-dispatch-packaging > header span { color: var(--pm-muted); font-size: 10px; }
.operator-dispatch-packaging__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.operator-dispatch-packaging__grid > div { display: grid; gap: 4px; min-width: 0; padding: 13px 16px; border-right: 1px solid var(--pm-line); }
.operator-dispatch-packaging__grid > div:last-child { border-right: 0; }
.operator-dispatch-packaging__grid span { color: var(--pm-muted); font-family: var(--pm-mono); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.operator-dispatch-packaging__grid strong { overflow-wrap: anywhere; color: var(--pm-navy); font-size: 13px; }
.operator-dispatch-packaging__notes { display: grid; gap: 5px; padding: 14px 16px; background: #fafbfc; border-top: 1px solid var(--pm-line); }
.operator-dispatch-packaging__notes span { color: var(--pm-muted); font-family: var(--pm-mono); font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.operator-dispatch-packaging__notes p { margin: 0; line-height: 1.55; }
.dispatch-label-form { padding: 13px 16px; }
.dispatch-label-form__content { display: grid; grid-template-columns: 132px minmax(250px,1.35fr) minmax(172px,.65fr) max-content; align-items: end; gap: 12px; }
.dispatch-label-form__model { min-width: 0; }
.dispatch-label-form .field input,
.dispatch-label-form .field select,
.dispatch-label-form__quantity .field-static-value { box-sizing: border-box; height: 38px; min-height: 38px; padding: 6px 9px; font-size: 12px; }
.dispatch-label-form__quantity .field-static-value { white-space: nowrap; }
.dispatch-label-form__range > div { display: grid; grid-template-columns: minmax(0,1fr) max-content minmax(0,1fr); align-items: center; gap: 6px; }
.dispatch-label-form__range span { color: var(--pm-muted); font-size: 11px; }
.dispatch-label-form__range input { min-width: 0; padding: 6px 8px; }
.dispatch-label-form .button { margin-bottom: 0; white-space: nowrap; }
.field-static-value { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border: 1px solid var(--pm-line); border-radius: 5px; background: #f6f8fb; color: var(--pm-navy); font-weight: 700; }
.production-time-history--dispatch .production-time-history__quantity { display: none; }
.work-deliveries { margin-bottom: 12px; overflow: hidden; }
.work-deliveries__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: #f2f6fa; border-bottom: 1px solid var(--pm-line); }
.work-deliveries__header > div { display: grid; gap: 2px; }
.work-deliveries__header h2 { margin: 1px 0; font-size: 17px; }
.work-deliveries__header > div > span { color: var(--pm-muted); font-size: 10px; }
.work-deliveries__totals { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); background: var(--pm-line); gap: 1px; border-bottom: 1px solid var(--pm-line); }
.work-deliveries__totals > div { display: grid; gap: 3px; padding: 13px 18px; background: #fff; }
.work-deliveries__totals span { color: var(--pm-muted); font-family: var(--pm-mono); font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.work-deliveries__totals strong { color: var(--pm-navy); font-family: var(--pm-mono); font-size: 20px; font-variant-numeric: tabular-nums; }
.work-deliveries__totals .is-delivered strong,.work-deliveries__totals .is-complete strong { color: var(--pm-success); }
.work-deliveries__totals .is-remaining strong { color: #ad7212; }
.work-deliveries__empty,.work-deliveries__complete { display: flex; align-items: center; gap: 11px; padding: 16px 18px; }
.work-deliveries__empty { color: var(--pm-muted); }
.work-deliveries__complete { color: #0e684d; background: var(--pm-success-bg); border-top: 1px solid #b8dfd0; }
.work-deliveries__empty > .material-symbols-outlined,.work-deliveries__complete > .material-symbols-outlined { font-size: 27px; }
.work-deliveries__empty > div,.work-deliveries__complete > div { display: grid; gap: 2px; }
.work-deliveries__empty strong,.work-deliveries__complete strong { color: var(--pm-navy); font-size: 13px; }
.work-deliveries__empty span,.work-deliveries__complete span { font-size: 10px; }
.delivery-table__actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.delivery-table__actions form { margin: 0; }
.delivery-table__actions .icon-button { width: 32px; height: 32px; color: var(--pm-danger); }
.admin-delivery-history { overflow: hidden; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.admin-delivery-history > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; background: #f2f6fa; border-bottom: 1px solid var(--pm-line); }
.admin-delivery-history > header h4 { margin: 2px 0 0; color: var(--pm-navy); font-size: 14px; }
.admin-delivery-history > header > span { color: var(--pm-muted); font-size: 10px; }
.operator-task-card { margin-bottom: 12px; }
.operator-next-step { display: flex; align-items: center; gap: 11px; padding: 14px 16px; color: #76500f; background: #fff6e5; border: 1px solid #edd7ad; border-radius: var(--pm-radius); }
.operator-next-step > .material-symbols-outlined { font-size: 25px; }
.operator-next-step div { display: grid; gap: 2px; }
.operator-next-step strong { font-size: 12px; }
.operator-next-step span { font-size: 11px; }

.production-clock { position: relative; margin-bottom: 12px; overflow: hidden; border-top: 3px solid var(--pm-blue); }
.production-clock.is-active { border-top-color: var(--pm-success); box-shadow: 0 10px 28px rgba(22,132,98,.1); }
.production-clock__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; border-bottom: 1px solid var(--pm-line); }
.production-clock__header h2 { margin: 3px 0 0; font-size: 19px; }
.production-clock__total { display: grid; min-width: 150px; gap: 2px; text-align: right; }
.production-clock__total span { color: var(--pm-muted); font-family: var(--pm-mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.production-clock__total strong { color: var(--pm-navy); font-family: var(--pm-mono); font-size: 19px; font-variant-numeric: tabular-nums; }
.production-gate { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding: 12px 20px; background: var(--pm-paper); border-bottom: 1px solid var(--pm-line); }
.production-gate__item { display: flex; align-items: center; gap: 9px; min-height: 52px; padding: 9px 11px; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.production-gate__item > .material-symbols-outlined { color: var(--pm-muted); }
.production-gate__item div { display: grid; gap: 1px; }
.production-gate__item strong { font-size: 11px; }
.production-gate__item span { color: var(--pm-muted); font-size: 9px; }
.production-gate__item.is-ready { background: var(--pm-success-bg); border-color: #b8dfd0; }
.production-gate__item.is-ready > .material-symbols-outlined,.production-gate__item.is-ready strong { color: var(--pm-success); }
.production-gate__item.is-waiting { background: var(--pm-warning-bg); border-color: #edd7ad; }
.production-gate__item.is-waiting > .material-symbols-outlined,.production-gate__item.is-waiting strong { color: #8a590f; }
.production-clock__setup,.production-clock__other { display: flex; align-items: center; gap: 13px; margin: 18px 20px; padding: 15px 16px; color: #76500f; background: var(--pm-warning-bg); border: 1px solid #edd7ad; border-radius: var(--pm-radius); }
.production-clock__setup > .material-symbols-outlined,.production-clock__other > .material-symbols-outlined { flex: 0 0 auto; font-size: 27px; }
.production-clock__setup div,.production-clock__other div { display: grid; flex: 1; gap: 2px; }
.production-clock__setup strong,.production-clock__other strong { color: var(--pm-ink); font-size: 13px; }
.production-clock__setup span,.production-clock__other span { font-size: 11px; }
.production-clock__setup.is-ready { color: #0e684d; background: var(--pm-success-bg); border-color: #b8dfd0; }
.production-clock__setup.is-ready > .material-symbols-outlined,.production-clock__setup.is-ready strong { color: var(--pm-success); }
.production-clock__start { display: grid; grid-template-columns: minmax(260px,1fr) auto auto; align-items: end; gap: 10px; padding: 18px 20px; }
.production-clock__start-button,.production-clock__manual-button { min-height: 42px; }
.production-clock__running { display: grid; grid-template-columns: minmax(240px,1fr) auto minmax(300px,auto); align-items: center; gap: 24px; padding: 22px 20px; background: linear-gradient(100deg,rgba(231,245,239,.75),#fff 48%); }
.production-clock__running.is-paused { background:linear-gradient(100deg,var(--pm-warning-bg),#fff 52%); }
.production-clock__identity { display: flex; align-items: center; gap: 12px; }
.production-clock__identity div { display: grid; gap: 3px; }
.production-clock__identity span { color: var(--pm-navy); font-size: 14px; font-weight: 700; }
.production-clock__identity small { color: var(--pm-muted); font-size: 10px; }
.production-clock__pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--pm-success); box-shadow: 0 0 0 0 rgba(22,132,98,.35); animation: production-pulse 1.8s infinite; }
.production-clock__running.is-paused .production-clock__pulse { background:var(--pm-warning); box-shadow:none; animation:none; }
.production-clock__stop-reason { display:flex!important; align-items:center; gap:4px; color:#8a590b!important; font-weight:700; }.production-clock__stop-reason .material-symbols-outlined { font-size:15px; }
.production-clock__display { color: var(--pm-navy); font-family: var(--pm-mono); font-size: clamp(28px,3vw,42px); font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.production-clock__actions { display: flex; justify-content: flex-end; gap: 8px; }
.production-clock__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; background: var(--pm-paper); border-top: 1px solid var(--pm-line); }
.production-clock__footer > div { display: flex; align-items: center; gap: 8px; color: var(--pm-muted); font-size: 11px; }
.production-clock__footer > div .material-symbols-outlined { color: var(--pm-success); }
.button--warning { color:#6d4306; background:var(--pm-warning-bg); border-color:#e7c784; }.button--warning:hover { color:#fff; background:var(--pm-warning); border-color:var(--pm-warning); }
.machine-stops { margin-top:16px; }.machine-stops .table-card__header > span { color:var(--pm-muted); font-size:11px; }
.machine-stop-status { display:flex; align-items:center; gap:14px; margin:16px 0 18px; padding:16px 18px; border:1px solid #efc4cc; border-left:4px solid var(--pm-danger); border-radius:var(--pm-radius); background:var(--pm-danger-bg); }
.machine-stop-status__icon { color:var(--pm-danger); font-size:30px; }
.machine-stop-status > div { display:grid; gap:3px; }
.machine-stop-status .section-label { margin:0; color:#92263d; }
.machine-stop-status strong { color:var(--pm-ink); font-size:14px; }
.machine-stop-status > div > span { color:var(--pm-muted); font-size:11px; }
.production-time-history { margin-bottom: 12px; }
.production-time-history .table-card__header > strong,.time-value { font-family: var(--pm-mono); font-variant-numeric: tabular-nums; }
.production-manual-modal { width: min(100%,600px); background: #fff; border-radius: var(--pm-radius); box-shadow: var(--pm-shadow); }
.production-manual-modal .modal__description { margin: 0 0 16px; line-height: 1.6; }
.phase-pending-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.phase-pending-list li { display: flex; align-items: center; gap: 9px; padding: 10px 12px; color: #76500f; background: var(--pm-warning-bg); border: 1px solid #edd7ad; border-radius: var(--pm-radius); }
.phase-pending-list .material-symbols-outlined { flex: 0 0 auto; font-size: 19px; }
.phase-pending-list strong { color: var(--pm-ink); font-size: 13px; }
.plate-reworks { margin-bottom: 12px; }
.plate-reworks__actions { display: flex; align-items: center; gap: 14px; }
.plate-reworks__total { color: var(--pm-muted); font-size: 12px; white-space: nowrap; }
.plate-reworks__total strong { color: var(--pm-navy); font-family: var(--pm-mono); font-size: 18px; }
.plate-reworks__empty { display: flex; align-items: center; gap: 12px; padding: 18px 20px; color: #0e684d; background: #f8fcfa; }
.plate-reworks__empty > .material-symbols-outlined { font-size: 25px; }
.plate-reworks__empty div { display: grid; gap: 2px; }
.plate-reworks__empty strong { color: var(--pm-ink); font-size: 13px; }
.plate-reworks__empty span { font-size: 11px; }
.plate-reworks__row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; white-space: nowrap; }
.plate-reworks__row-actions form { margin: 0; }
@keyframes production-pulse { 0% { box-shadow: 0 0 0 0 rgba(22,132,98,.36); } 70% { box-shadow: 0 0 0 9px rgba(22,132,98,0); } 100% { box-shadow: 0 0 0 0 rgba(22,132,98,0); } }

.equipment-type-groups { display: grid; gap: 18px; }
.equipment-type-group { overflow: hidden; }
.equipment-type-group > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; color: #fff; background: var(--pm-navy); }
.equipment-type-group > header h2 { margin: 2px 0 0; font-size: 19px; }
.equipment-type-group > header .section-label { color: #91a0b5; }
.equipment-type-group > header .badge { color: #dfe9f5; background: rgba(255,255,255,.1); }
.empty-state--compact { padding: 24px 16px; }
.parameter-form-page { max-width: 820px; margin: 0 auto; overflow: hidden; }
.parameter-form-page__body { padding: 22px; }
.app-shell .field-help { font-size: 12px; }

.form-section--stack { grid-template-columns: 230px minmax(0,1fr); }
.form-section--stack > :not(.form-section__heading) { grid-column: 2; }
.client-autocomplete { position: relative; }
.client-autocomplete__input { display: flex; align-items: center; background: #fff; border: 1px solid var(--pm-line-strong); border-radius: var(--pm-radius); }
.client-autocomplete__input:focus-within { border-color: var(--pm-blue); box-shadow: 0 0 0 3px rgba(46,95,145,.12); }
.client-autocomplete__input .material-symbols-outlined { margin-left: 10px; color: var(--pm-muted); font-size: 19px; }
.client-autocomplete__input input { border: 0; box-shadow: none !important; }
.client-autocomplete__results { position: absolute; z-index: 30; top: calc(100% + 5px); right: 0; left: 0; max-height: 290px; overflow-y: auto; padding: 5px; background: #fff; border: 1px solid var(--pm-line-strong); border-radius: var(--pm-radius); box-shadow: 0 16px 35px rgba(22,34,48,.15); }
.client-autocomplete__option { display: grid; width: 100%; gap: 2px; padding: 10px 11px; color: var(--pm-slate); text-align: left; background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.client-autocomplete__option:hover,.client-autocomplete__option.is-active { background: var(--pm-info-bg); }
.client-autocomplete__option strong { font-size: 13px; }
.client-autocomplete__option span,.client-autocomplete__empty { color: var(--pm-muted); font-size: 11px; }
.client-autocomplete__empty { display: block; padding: 12px; }
.work-request-grid { display: grid; grid-template-columns: repeat(24,minmax(0,1fr)); gap: 14px; }
.work-request-grid > .field { min-width: 0; }
.work-field--client { grid-column: span 7; }
.work-field--contact { grid-column: span 6; }
.work-field--quote { grid-column: span 4; }
.work-field--reference { grid-column: span 3; }
.work-field--delivery-method { grid-column: span 4; }
.work-field--type { grid-column: span 5; }
.work-field--title { grid-column: span 6; }
.work-field--quantity,.work-field--pages { grid-column: span 3; }
.work-field--fold { grid-column: span 3; }
.work-field--value { grid-column: span 4; }
.work-field--description { grid-column: 1 / -1; }
.work-field--entry,.work-field--delivery,.work-field--priority { grid-column: span 4; }
.work-field--phase { grid-column: span 12; }
.work-situation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.94);
    border: 1px solid var(--pm-line);
    border-left: 3px solid var(--pm-blue);
    border-radius: var(--pm-radius);
}
.work-situation__copy { display: flex; min-width: 0; align-items: center; gap: 11px; }
.work-situation__copy > .material-symbols-outlined { color: var(--pm-blue); font-size: 22px; }
.work-situation__copy > div { display: grid; gap: 2px; }
.work-situation__copy .section-label { margin: 0; }
.work-situation__copy strong { color: var(--pm-ink); font-size: 13px; }
.work-situation__copy span:not(.section-label) { color: var(--pm-muted); font-size: 12px; }
.work-situation__actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.work-situation--blocked { background: var(--pm-danger-bg); border-color: #efbcc6; border-left-color: var(--pm-danger); }
.work-situation--blocked .work-situation__copy > .material-symbols-outlined { color: var(--pm-danger); }
.work-situation--cancelled { background: #f0f2f4; border-color: #d2d8df; border-left-color: var(--pm-slate); }
.work-situation--cancelled .work-situation__copy > .material-symbols-outlined { color: var(--pm-slate); }
.work-exception-note { display: flex; max-width: 300px; align-items: center; gap: 5px; margin-top: 5px; color: var(--pm-danger); font-size: 10px; font-weight: 700; }
.work-exception-note .material-symbols-outlined { flex: 0 0 auto; font-size: 15px; }
.work-components,.work-operations { display: grid; gap: 12px; }
.work-piece { overflow: hidden; background: #fff; border: 1px solid var(--pm-line-strong); border-radius: var(--pm-radius); box-shadow: 0 7px 18px rgba(19,35,52,.05); }
.work-piece.is-material-target { border-color: var(--pm-blue); box-shadow: 0 0 0 4px rgba(46,95,145,.13),0 7px 18px rgba(19,35,52,.08); }
.work-piece__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; background: linear-gradient(90deg,#f5f8fb,#fff); border-bottom: 1px solid var(--pm-line); }
.work-piece__header > div { display: grid; gap: 2px; }
.work-piece__number { color: var(--pm-blue); font-family: var(--pm-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.work-piece__header strong { font-size: 15px; }
.material-statuses { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.material-status { width: fit-content; padding: 2px 6px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.material-status--pending { color: #657383; background: #e9edf1; }
.material-status--missing { color: #a52d3f; background: #fbe7eb; }
.material-status--ordered { color: #96600c; background: #fff0cf; }
.material-status--ready { color: #17704a; background: #dff4e9; }
.work-piece__body { display: grid; gap: 17px; padding: 16px; }
.component-basics-grid { grid-template-columns: minmax(0,2fr) minmax(0,.7fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.25fr); }
.component-detachable { min-height: 40px; align-self: end; }
.component-production-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding-top: 15px; border-top: 1px solid var(--pm-line); }
.component-production-group { display: grid; min-width: 0; gap: 10px; padding-right: 14px; }
.component-production-group--colors { padding-right: 0; padding-left: 14px; border-left: 1px solid var(--pm-line-strong); }
.component-production-group h4 { margin: 0; font-size: 13px; }
.component-format-grid,.component-colors-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.work-piece__subsection { display: grid; gap: 10px; padding-top: 15px; border-top: 1px solid var(--pm-line); }
.work-piece__subsection h4 { margin: 0; font-size: 13px; }
.work-piece__subheading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.work-piece__subheading p { margin: 3px 0 0; color: var(--pm-muted); font-size: 11px; }
.component-materials { gap: 12px; }
.component-material-card { display: grid; gap: 12px; padding: 14px; background: #fbfcfd; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.component-material-card > header { display: flex; align-items: center; gap: 9px; }
.component-material-card h5 { margin: 0; color: var(--pm-navy); font-size: 12px; }
.component-material-card header p { margin: 2px 0 0; color: var(--pm-muted); font-size: 10px; }
.component-material-card__icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; color: var(--pm-blue); background: #e8f0f7; border-radius: 5px; font-size: 18px; }
.component-material-card--paper { border-left: 4px solid #4578a8; }
.paper-details-grid { grid-template-columns: minmax(0,2fr) minmax(0,.65fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr); }
.paper-formats { display: grid; grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr); align-items: stretch; gap: 12px; padding-top: 12px; border-top: 1px solid var(--pm-line); }
.paper-format-block { display: grid; min-width: 0; gap: 10px; padding: 12px; background: #fff; border: 1px solid #d7e2eb; border-radius: var(--pm-radius); }
.paper-format-block > header { display: flex; align-items: center; gap: 9px; }
.paper-format-block .component-material-card__fields { align-self: end; }
.paper-format-block > .component-material-card__fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.paper-format-flow { align-self: center; color: var(--pm-blue); font-size: 22px; text-align: center; }
.paper-order-summary { display: grid; gap: 10px; padding: 13px; background: #f3f7fb; border: 1px solid #cbdbe8; border-radius: var(--pm-radius); }
.paper-order-summary > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paper-order-summary > header > div { display: grid; gap: 2px; }
.paper-order-summary > header strong { color: var(--pm-navy); font-size: 13px; }
.paper-order-summary__status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.paper-order-summary__status--missing { color: #a52d3f; background: #fbe7eb; }
.paper-order-summary__status--ordered { color: #96600c; background: #fff0cf; }
.paper-order-summary__status--ready { color: #17704a; background: #dff4e9; }
.paper-order-summary__content { display: grid; gap: 9px; }
.paper-order-summary__rows { display: grid; gap: 7px; }
.paper-order-summary__row { display: grid; grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); align-items: center; gap: 9px; padding: 10px 11px; background: #fff; border: 1px solid #d7e2eb; border-radius: 6px; }
.paper-order-summary__row > div { display: grid; gap: 2px; min-width: 0; }
.paper-order-summary__row strong { color: var(--pm-slate); font-size: 12px; }
.paper-order-summary__row small { color: var(--pm-muted); font-size: 10px; }
.paper-order-summary__row > .material-symbols-outlined { color: var(--pm-blue); font-size: 18px; text-align: center; }
.paper-order-summary__row.has-error { background: #fff7f8; border-color: #ecc8ce; }
.paper-order-summary__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; color: #174c72; background: #e5f0f8; border-radius: 6px; }
.paper-order-summary__total span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.paper-order-summary__total strong { font-size: 14px; }
.paper-order-summary__message { margin: 0; padding: 9px 10px; color: var(--pm-muted); background: rgba(255,255,255,.7); border-radius: 5px; font-size: 10px; }
.paper-order-summary__message--warning { color: #85560c; background: #fff5df; }
.paper-order-summary__message--danger { color: #a52d3f; background: #fbe7eb; }
.component-materials__row { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 12px; }
.component-materials__row--plates { grid-template-columns: 1fr; }
.component-material-card--format { border-left: 4px solid #788896; }
.component-material-card--plates { align-content: start; border-left: 4px solid #ad7d27; }
.component-material-card--plates .component-material-card__icon { color: #8a5b0e; background: #fff0cf; }
.component-material-card__fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.print-plans-section { padding: 16px; background: #f7fafc; border: 1px solid #d6e1eb; border-radius: var(--pm-radius); }
.print-plans { display: grid; gap: 10px; counter-reset: print-plan; }
.print-plan { overflow: hidden; background: #fff; border: 1px solid #c9d7e4; border-left: 4px solid var(--pm-blue); border-radius: var(--pm-radius); }
.print-plan[open] { border-color: #aebfd0; box-shadow: 0 6px 16px rgba(19,35,52,.06); }
.print-plan__header { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 11px 8px 13px; cursor: pointer; list-style: none; background: #f2f6fa; user-select: none; }
.print-plan__header::-webkit-details-marker { display: none; }
.print-plan__identity { display: grid; min-width: 0; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 2px 9px; }
.print-plan__identity span { color: var(--pm-blue); font-family: var(--pm-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.print-plan__identity small { grid-column: 2; overflow: hidden; color: var(--pm-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.print-plan__header strong { font-size: 13px; }
.print-plan__actions { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.print-plan__actions .button .material-symbols-outlined { font-size: 16px; }
.print-plan__header .icon-button { width: 30px; height: 30px; color: var(--pm-danger); }
.print-plan__chevron { color: var(--pm-muted); font-size: 21px; transition: transform 150ms ease; }
.print-plan[open] .print-plan__chevron { transform: rotate(180deg); }
.print-plan__body { padding: 13px; border-top: 1px solid var(--pm-line); }
.phase-source-note { display: flex; align-items: center; gap: 11px; padding: 14px; color: #244b72; background: var(--pm-info-bg); border: 1px solid #cfe0f0; border-radius: var(--pm-radius); }
.phase-source-note .material-symbols-outlined { font-size: 23px; }
.phase-source-note strong,.phase-source-note span { display: block; }
.phase-source-note strong { font-size: 13px; }
.phase-source-note span { margin-top: 2px; color: var(--pm-muted); font-size: 11px; }
.phase-source-note--success { color: #176543; background: #eff9f4; border-color: #b9dfca; }
.phase-source-note--route { color: #31536f; background: #f2f7fb; border-color: #c8d9e7; }

.print-readiness { padding: 18px 20px; background: #f7fafc; border-bottom: 1px solid var(--pm-line); }
.print-readiness > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.print-readiness h3 { margin: 2px 0 0; font-size: 15px; }
.work-phase-overview > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.work-phase-overview h3 strong { color: var(--pm-blue); }
.work-phase-sequence { display: grid; grid-auto-columns: minmax(120px,1fr); grid-auto-flow: column; overflow-x: auto; padding: 5px 0 7px; scrollbar-width: thin; }
.work-phase-step { position: relative; display: grid; justify-items: center; gap: 7px; min-width: 0; padding: 0 6px; color: var(--pm-muted); text-align: center; }
.work-phase-step::after { position: absolute; z-index: 0; top: 17px; left: calc(50% + 19px); width: calc(100% - 38px); height: 2px; content: ''; background: #d8e0e7; }
.work-phase-step:last-child::after { display: none; }
.work-phase-step__marker { position: relative; z-index: 1; display: grid; width: 36px; height: 36px; place-items: center; background: #fff; border: 2px solid #cfd8e1; border-radius: 50%; }
.work-phase-step__marker .material-symbols-outlined { font-size: 18px; }
.work-phase-step__copy { display: grid; gap: 2px; min-width: 0; }
.work-phase-step__copy strong { overflow: hidden; color: var(--pm-slate); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.work-phase-step__copy small { font-size: 9px; font-weight: 600; }
.work-phase-step.is-complete { color: #17704a; }
.work-phase-step.is-complete::after { background: #77c19b; }
.work-phase-step.is-complete .work-phase-step__marker { color: #fff; background: #21865b; border-color: #21865b; }
.work-phase-step.is-current { color: #285f91; }
.work-phase-step.is-current .work-phase-step__marker { color: #fff; background: var(--pm-blue); border-color: var(--pm-blue); box-shadow: 0 0 0 5px rgba(46,95,145,.12); }
.work-phase-step.is-current .work-phase-step__copy strong { color: var(--pm-blue); }
.print-readiness__divider { height: 1px; margin: 17px -20px; background: var(--pm-line); }
.readiness-badge { padding: 6px 9px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.readiness-badge--blocked { color: #9a4f08; background: #fff0d6; }
.readiness-badge--waiting { color: #285f91; background: #e4eff9; }
.readiness-badge--ready { color: #17704a; background: #dff4e9; }
.print-readiness__checks { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.readiness-check { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 10px; color: var(--pm-muted); background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.readiness-check > .material-symbols-outlined { flex: 0 0 auto; font-size: 20px; }
.readiness-check strong,.readiness-check small { display: block; }
.readiness-check strong { color: var(--pm-slate); font-size: 11px; }
.readiness-check small { margin-top: 2px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.readiness-check.is-ready { color: #17704a; background: #f1faf5; border-color: #b9dfca; }
.readiness-check.is-ready strong { color: #155f40; }
.print-readiness > p { margin: 10px 0 0; color: var(--pm-muted); font-size: 11px; }
.work-operation { display: grid; gap: 11px; padding: 12px; background: #fafbfc; border: 1px solid var(--pm-line); border-left: 4px solid #4578a8; border-radius: var(--pm-radius); }
.work-operation__sequence { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; color: var(--pm-blue); border-bottom: 1px solid var(--pm-line); font-family: var(--pm-mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.work-operation__sequence[hidden] { display: none; }
.work-operation__sequence > div { display: flex; gap: 4px; }
.work-operation__sequence .icon-button { width: 28px; height: 28px; color: var(--pm-blue); }
.work-operation__sequence .icon-button:disabled { opacity: .3; cursor: default; }
.work-operation__main { display: grid; grid-template-columns: repeat(3,minmax(160px,1fr)) 34px; align-items: end; gap: 10px; }
.work-operation.is-single-component .work-operation__main { grid-template-columns: repeat(2,minmax(180px,1fr)) 34px; }
.work-operation.is-manual .work-operation__main { grid-template-columns: repeat(2,minmax(180px,1fr)) 34px; }
.work-operation.is-manual.is-single-component .work-operation__main { grid-template-columns: minmax(240px,1fr) 34px; }
.work-operation__main > .icon-button { width: 34px; height: 34px; color: var(--pm-danger); }
.work-operation__details { grid-template-columns: repeat(4,minmax(0,1fr)); }
.manual-operation-note { display: flex; align-items: center; gap: 8px; padding: 9px 11px; color: #20573f; background: #eef8f2; border: 1px solid #c8e6d4; border-radius: 7px; font-size: .86rem; }
.manual-operation-note[hidden] { display: none; }
[data-operation-production-field][hidden] { display: none; }
.manual-operation-note .material-symbols-outlined { font-size: 18px; color: #168454; }
.plate-derived-note { align-items: center; background: #eef5fb; border: 1px solid #c9dceb; border-radius: 7px; color: #285b82; display: flex; font-size: .86rem; gap: 8px; padding: 9px 11px; }
.plate-derived-note[hidden] { display: none; }
.plate-derived-note .material-symbols-outlined { color: #28699e; font-size: 18px; }
.work-operation.is-plate-derived .work-operation__main { grid-template-columns: repeat(3,minmax(180px,1fr)) 34px; }
.work-operation.is-plate-derived [data-operation-select],
.work-operation.is-plate-derived [data-operation-destination] { background-color: #f4f7fa; }
.operation-characteristics { display: grid; }
.operation-characteristics__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.packaging-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.dispatch-packaging { display: grid; gap: 13px; margin-top: 2px; padding: 14px; background: #f7fafc; border: 1px solid #d6e1eb; border-left: 4px solid var(--pm-blue); border-radius: var(--pm-radius); }
.dispatch-packaging > header { display: flex; align-items: center; gap: 10px; }
.dispatch-packaging > header > .material-symbols-outlined { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; color: var(--pm-blue); background: var(--pm-info-bg); border-radius: 7px; font-size: 19px; }
.dispatch-packaging > header > div { display: grid; gap: 2px; }
.dispatch-packaging > header strong { color: var(--pm-navy); font-size: 13px; }
.dispatch-packaging > header span { color: var(--pm-muted); font-size: 10px; }

.production-plan { display: grid; gap: 9px; }
.production-time-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; overflow: hidden; background: var(--pm-line); border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.production-time-summary > span { display: grid; gap: 2px; padding: 10px 12px; background: #fff; }
.production-time-summary small { color: var(--pm-muted); font-family: var(--pm-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.production-time-summary strong { font-family: var(--pm-mono); font-size: 16px; }
.production-time-summary strong.is-over { color: var(--pm-danger); }
.production-time-summary strong.is-under { color: var(--pm-success); }
.production-phase { overflow: hidden; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); }
.production-phase[open] { border-color: #c5d5e5; box-shadow: 0 8px 20px rgba(19,35,52,.05); }
.production-phase > summary { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 11px; padding: 12px 14px; cursor: pointer; list-style: none; background: #fafbfc; }
.production-phase > summary::-webkit-details-marker { display: none; }
.production-phase > summary strong,.production-phase > summary small { display: block; }
.production-phase > summary strong { font-size: 13px; }
.production-phase > summary small { margin-top: 2px; color: var(--pm-muted); font-size: 10px; }
.production-phase > summary > .material-symbols-outlined { color: var(--pm-muted); transition: transform 150ms ease; }
.production-phase[open] > summary > .material-symbols-outlined { transform: rotate(180deg); }
.production-phase__index { display: grid; width: 30px; height: 30px; place-items: center; color: var(--pm-blue); background: var(--pm-info-bg); border-radius: 50%; font-family: var(--pm-mono); font-size: 10px; font-weight: 700; }
.production-phase__body { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--pm-line); }
.production-phase__body > .button { justify-self: start; }
.phase-print-plans { overflow: hidden; background: #f7fafc; border: 1px solid #d6e1eb; border-radius: var(--pm-radius); }
.phase-print-plans > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-bottom: 1px solid #d6e1eb; }
.phase-print-plans > header div { display: grid; gap: 2px; }
.phase-print-plans > header strong { color: var(--pm-navy); font-size: 13px; }
.phase-print-plans > header span { color: var(--pm-muted); font-size: 11px; }
.phase-print-plans > header small { flex: 0 0 auto; color: var(--pm-blue); font-family: var(--pm-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.phase-print-plans__list { display: grid; gap: 8px; padding: 10px; }
.phase-print-plan { min-width: 0; padding: 10px 13px; background: #fff; border: 1px solid #c9d7e4; border-left: 4px solid var(--pm-blue); border-radius: var(--pm-radius); }
.phase-print-plan__identity { display: grid; min-width: 0; grid-template-columns: auto minmax(0,1fr); align-items: baseline; gap: 2px 9px; }
.phase-print-plan__identity span { color: var(--pm-blue); font-family: var(--pm-mono); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.phase-print-plan__identity strong { overflow: hidden; color: var(--pm-navy); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.phase-print-plan__identity small { grid-column: 2; overflow: hidden; color: var(--pm-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.phase-print-plans > .empty-inline { margin: 10px; }

.address-link-control {
    margin: -3px 0 4px;
    padding: 9px 10px;
    background: var(--pm-info-bg);
    border: 1px solid #cfe0f0;
    border-radius: var(--pm-radius);
}

.repeatable-card.is-address-linked .field input:disabled {
    color: var(--pm-muted);
    background: #edf1f5;
    border-style: dashed;
}

.footer {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 30px;
    color: var(--pm-muted);
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid var(--pm-line);
    font-size: 10px;
}

.footer__meta { font-family: var(--pm-mono); font-size: 9px; text-transform: uppercase; }

/* Legibilidade global da área de trabalho. O menu lateral mantém a escala original. */
.app-shell { font-size: 15px; }
.app-shell .breadcrumb { font-size: 14px; }
.app-shell .user-chip__copy strong { font-size: 13px; }
.app-shell .user-chip__copy small { font-size: 11px; }
.app-shell .dropdown button { font-size: 14px; }
.app-shell .eyebrow,
.app-shell .section-label,
.app-shell .table th { font-size: 12px; }
.app-shell .page-heading__description { font-size: 15px; }
.app-shell .button { font-size: 14px; }
.app-shell .button--small { font-size: 12px; }
.app-shell .environment-badge,
.app-shell .badge { font-size: 11px; }
.app-shell .metric-card__detail { font-size: 12px; }
.app-shell .card__header h2,
.app-shell .card__header h3,
.app-shell .table-card__header h2 { font-size: 16px; }
.app-shell .chart-bar__label { font-size: 12px; }
.app-shell .machine-card strong { font-size: 13px; }
.app-shell .machine-card > span { font-size: 12px; }
.app-shell .table td { font-size: 14px; }
.app-shell .component-section__title { font-size: 18px; }
.app-shell .swatch { font-size: 11px; }
.app-shell .field label { font-size: 11px; }
.app-shell .field input,
.app-shell .field select,
.app-shell .field textarea { font-size: 14px; }
.app-shell .field__error { font-size: 12px; }
.app-shell .alert,
.app-shell .alert strong { font-size: 13px; }
.app-shell .empty-state h3 { font-size: 16px; }
.app-shell .empty-state p { font-size: 13px; }
.app-shell .modal__header h2 { font-size: 17px; }
.app-shell .modal__body { font-size: 14px; }
.app-shell .client-summary__item small { font-size: 11px; }
.app-shell .client-summary__note strong { font-size: 13px; }
.app-shell .client-summary__note div span { font-size: 11px; }
.app-shell .search-field input { font-size: 13px; }
.app-shell .client-code { font-size: 11px; }
.app-shell .client-contact { font-size: 12px; }
.app-shell .table-pagination { font-size: 12px; }
.app-shell .form-notice { font-size: 12px; }
.app-shell .form-section__number { font-size: 11px; }
.app-shell .form-section__heading h3 { font-size: 14px; }
.app-shell .form-section__heading p { font-size: 11px; }
.app-shell .repeatable-card__top strong { font-size: 13px; }
.app-shell .check-row label { font-size: 12px; }
.app-shell .client-form-actions,
.app-shell .client-form__footer > span { font-size: 11px; }
.app-shell .footer { font-size: 12px; }
.app-shell .footer__meta { font-size: 11px; }

/* Dashboard administrativo: leitura por exceção, produção e valor. */
.dashboard-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:18px; }
.dashboard-heading h1 { margin:2px 0 3px; font-size:clamp(30px,3vw,44px); line-height:1.06; letter-spacing:-.055em; }
.dashboard-heading .page-heading__description { max-width:820px; margin:0; }
.dashboard-controlbar { display:flex; min-height:52px; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; padding:7px; background:rgba(255,255,255,.92); border:1px solid var(--pm-line); border-radius:var(--pm-radius); }
.dashboard-view-switch,.dashboard-period-switch { display:flex; align-items:center; gap:5px; }
.dashboard-view-switch a,.dashboard-period-switch a { display:inline-flex; min-height:36px; align-items:center; justify-content:center; gap:7px; padding:7px 12px; color:var(--pm-slate); border:1px solid transparent; border-radius:4px; font-size:12px; font-weight:800; }
.dashboard-view-switch a:hover,.dashboard-period-switch a:hover { color:var(--pm-blue); background:var(--pm-info-bg); }
.dashboard-view-switch a.is-active { color:#fff; background:var(--pm-navy); box-shadow:0 6px 14px rgba(11,23,41,.16); }
.dashboard-period-switch a { min-width:66px; border-color:var(--pm-line); }
.dashboard-period-switch a.is-active { color:#fff; background:var(--pm-blue); border-color:var(--pm-blue); box-shadow:0 4px 10px rgba(46,95,145,.18); }
.dashboard-view-switch .material-symbols-outlined { font-size:18px; }
.dashboard-alerts,.dashboard-block { overflow:hidden; margin-bottom:16px; background:rgba(255,255,255,.96); border:1px solid var(--pm-line); border-radius:var(--pm-radius); }
.dashboard-alerts { padding:15px; border-top:3px solid var(--pm-danger); }
.dashboard-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.dashboard-section-heading--padded { min-height:68px; padding:14px 17px; background:#fafbfc; border-bottom:1px solid var(--pm-line); }
.dashboard-section-heading h2 { margin:1px 0 0; font-size:17px; letter-spacing:-.025em; }
.dashboard-section-heading > a { display:inline-flex; align-items:center; gap:5px; color:var(--pm-blue); font-size:12px; font-weight:800; }
.dashboard-section-heading > a .material-symbols-outlined { font-size:17px; }
.dashboard-section-count { display:inline-grid; min-width:32px; height:32px; place-items:center; color:var(--pm-danger); background:var(--pm-danger-bg); border-radius:50%; font-family:var(--pm-mono); font-size:12px; font-weight:700; }
.dashboard-alert-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:9px; margin-top:13px; }
.dashboard-alert { display:grid; min-height:72px; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:12px; border:1px solid var(--pm-line); border-left-width:3px; border-radius:4px; transition:transform 140ms ease,box-shadow 140ms ease; }
.dashboard-alert:hover { transform:translateY(-1px); box-shadow:0 8px 20px rgba(11,23,41,.08); }
.dashboard-alert--danger { background:linear-gradient(90deg,var(--pm-danger-bg),#fff 72%); border-left-color:var(--pm-danger); }
.dashboard-alert--warning { background:linear-gradient(90deg,var(--pm-warning-bg),#fff 72%); border-left-color:var(--pm-warning); }
.dashboard-alert > .material-symbols-outlined:first-child { color:var(--pm-danger); font-size:23px; }
.dashboard-alert--warning > .material-symbols-outlined:first-child { color:var(--pm-warning); }
.dashboard-alert > .material-symbols-outlined:last-child { color:var(--pm-muted); font-size:18px; }
.dashboard-alert strong,.dashboard-alert span { display:block; }
.dashboard-alert strong { font-size:12px; }
.dashboard-alert div span { margin-top:2px; color:var(--pm-muted); font-size:10px; }
.dashboard-clear { display:flex; align-items:center; gap:11px; margin-top:13px; padding:12px 14px; color:var(--pm-success); background:var(--pm-success-bg); border:1px solid #b5dfcd; border-radius:4px; }
.dashboard-clear > .material-symbols-outlined { font-size:25px; }
.dashboard-clear strong,.dashboard-clear span { display:block; }
.dashboard-clear div span { color:#397460; font-size:11px; }
.dashboard-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.dashboard-metric { position:relative; min-height:126px; overflow:hidden; padding:16px; background:#fff; border:1px solid var(--pm-line); border-top:3px solid var(--pm-blue); border-radius:var(--pm-radius); }
.dashboard-metric::after { position:absolute; right:-24px; bottom:-38px; width:100px; height:100px; content:""; opacity:.6; background:var(--pm-info-bg); border-radius:50%; }
.dashboard-metric--danger { border-top-color:var(--pm-danger); }.dashboard-metric--danger::after { background:var(--pm-danger-bg); }
.dashboard-metric--warning { border-top-color:var(--pm-warning); }.dashboard-metric--warning::after { background:var(--pm-warning-bg); }
.dashboard-metric--success { border-top-color:var(--pm-success); }.dashboard-metric--success::after { background:var(--pm-success-bg); }
.dashboard-metric--navy { border-top-color:var(--pm-navy); }
.dashboard-metric__label { display:flex; align-items:center; gap:7px; color:var(--pm-slate); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.dashboard-metric__label .material-symbols-outlined { font-size:19px; }
.dashboard-metric > strong { position:relative; z-index:1; display:block; margin-top:12px; font-family:var(--pm-mono); font-size:25px; letter-spacing:-.055em; }
.dashboard-metric > small { position:relative; z-index:1; display:block; margin-top:4px; color:var(--pm-muted); font-size:10px; }
.dashboard-phase-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.dashboard-phase-card { min-width:0; padding:16px; border-right:1px solid var(--pm-line); }.dashboard-phase-card:last-child { border-right:0; }
.dashboard-phase-card__top { display:flex; align-items:center; justify-content:space-between; }
.dashboard-phase-card__icon { display:inline-grid; width:34px; height:34px; place-items:center; color:var(--pm-blue); background:var(--pm-info-bg); border-radius:4px; font-size:19px; }
.dashboard-phase-card__total { font-family:var(--pm-mono); font-size:27px; font-weight:700; }
.dashboard-phase-card h3 { min-height:42px; margin:13px 0 8px; font-size:14px; }
.dashboard-phase-card__split { display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:8px 0; border-top:1px solid var(--pm-line); border-bottom:1px solid var(--pm-line); }
.dashboard-phase-card__split span { color:var(--pm-muted); font-size:9px; }.dashboard-phase-card__split b { display:block; color:var(--pm-ink); font-family:var(--pm-mono); font-size:13px; }
.dashboard-phase-load { display:grid; grid-template-columns:1fr auto; align-items:center; gap:4px 8px; margin-top:9px; padding:9px; background:#f7f9fc; border:1px solid var(--pm-line); border-radius:4px; }
.dashboard-phase-load span:first-child small,.dashboard-phase-load span:first-child strong { display:block; }.dashboard-phase-load span:first-child small { color:var(--pm-muted); font-size:8px; text-transform:uppercase; letter-spacing:.06em; }.dashboard-phase-load span:first-child strong { margin-top:1px; font-family:var(--pm-mono); font-size:14px; }.dashboard-phase-load > small { grid-column:1 / -1; color:var(--pm-muted); font-size:8px; }
.dashboard-load { display:inline-flex; width:max-content; min-height:23px; align-items:center; justify-content:center; padding:3px 8px; border:1px solid transparent; border-radius:999px; font-family:var(--pm-mono); font-size:8px; font-weight:800; white-space:nowrap; }
.dashboard-load--normal { color:var(--pm-success); background:var(--pm-success-bg); border-color:#b9dfcf; }.dashboard-load--high { color:#96600c; background:var(--pm-warning-bg); border-color:#efd29e; }.dashboard-load--critical { color:var(--pm-danger); background:var(--pm-danger-bg); border-color:#efbdc8; }.dashboard-load--unknown { color:var(--pm-blue); background:var(--pm-info-bg); border-color:#bfd0e2; }
.dashboard-phase-card dl { margin:9px 0 0; }.dashboard-phase-card dl > div { display:flex; justify-content:space-between; gap:8px; margin-top:5px; }
.dashboard-phase-card dt { color:var(--pm-muted); font-size:9px; }.dashboard-phase-card dd { margin:0; font-family:var(--pm-mono); font-size:9px; font-weight:700; text-align:right; }.dashboard-phase-card dd a { color:var(--pm-blue); }
.dashboard-two-column { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(390px,1fr); gap:16px; }.dashboard-two-column--quality { grid-template-columns:1fr 1fr; }
.dashboard-machine-list,.dashboard-risk-list,.dashboard-quality-list { min-height:210px; }
.dashboard-machine-area + .dashboard-machine-area { border-top: 1px solid var(--pm-line); }
.dashboard-machine-area > h3 { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0; padding:8px 16px; color:#244f78; background:#eaf2f9; border-left:3px solid var(--pm-blue); font-family:var(--pm-mono); font-size:10px; letter-spacing:.07em; text-transform:uppercase; }
.dashboard-machine-area > h3 small { color:#315d87; font:inherit; letter-spacing:.04em; text-transform:none; white-space:nowrap; }
.dashboard-machine-row { display:grid; min-height:70px; grid-template-columns:18px minmax(145px,1fr) 70px 120px 115px auto 18px; align-items:center; gap:10px; padding:9px 16px; border-bottom:1px solid var(--pm-line); }
.dashboard-machine-row:last-child { border-bottom:0; }.dashboard-machine-row:hover { background:#f8fafc; }.dashboard-machine-row.is-unavailable { background:var(--pm-danger-bg); }
.dashboard-machine-row strong,.dashboard-machine-row small,.dashboard-machine-row b { display:block; }.dashboard-machine-row strong { font-family:var(--pm-mono); font-size:11px; }.dashboard-machine-row small { color:var(--pm-muted); font-size:9px; }.dashboard-machine-row b { font-family:var(--pm-mono); font-size:13px; }.dashboard-machine-row > .material-symbols-outlined { color:var(--pm-muted); font-size:18px; }
.dashboard-queue-note { margin:4px 0 0; color:var(--pm-muted); font-size:9px; }.dashboard-queue-footnote { display:flex; align-items:center; gap:6px; margin:0; padding:9px 16px; color:var(--pm-muted); background:#fafbfc; border-top:1px solid var(--pm-line); font-size:9px; }.dashboard-queue-footnote .material-symbols-outlined { color:var(--pm-blue); font-size:16px; }
.dashboard-risk-row { display:grid; min-height:73px; grid-template-columns:60px minmax(150px,1fr) minmax(160px,1fr) 84px; align-items:center; gap:10px; padding:10px 14px; border-bottom:1px solid var(--pm-line); border-left:3px solid var(--pm-warning); }
.dashboard-risk-row--danger { border-left-color:var(--pm-danger); }.dashboard-risk-row--success { border-left-color:var(--pm-success); background:#fbfefc; }.dashboard-risk-row:last-child { border-bottom:0; }.dashboard-risk-row:hover { background:#fafbfc; }
.dashboard-risk-row span,.dashboard-risk-row strong,.dashboard-risk-row small { display:block; }.dashboard-risk-row__op,.dashboard-risk-row__date { font-family:var(--pm-mono); font-size:10px; font-weight:700; }.dashboard-risk-row strong { font-size:11px; }.dashboard-risk-row small { color:var(--pm-muted); font-size:9px; }.dashboard-risk-row__reason { color:var(--pm-warning); font-size:9px; font-weight:700; }.dashboard-risk-row--danger .dashboard-risk-row__reason { color:var(--pm-danger); }
.dashboard-risk-row--success .dashboard-risk-row__reason { color:var(--pm-success); }
.dashboard-table { margin-bottom:16px; }.dashboard-table .table-card__header > span { color:var(--pm-muted); font-size:11px; }.dashboard-table__subline { display:block; margin-top:2px; color:var(--pm-muted); font-size:10px; }
.dashboard-value-total { font-family:var(--pm-mono); font-size:19px; font-weight:700; }.dashboard-value-total small { display:block; color:var(--pm-muted); font-family:var(--pm-font); font-size:9px; font-weight:600; text-align:right; }.dashboard-value-total--danger { color:var(--pm-danger); }
.dashboard-value-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }.dashboard-value-grid article { padding:20px 17px; border-right:1px solid var(--pm-line); }.dashboard-value-grid article:last-child { border-right:0; }
.dashboard-value-grid span,.dashboard-value-grid strong,.dashboard-value-grid small { display:block; }.dashboard-value-grid span { min-height:36px; color:var(--pm-slate); font-size:10px; font-weight:800; }.dashboard-value-grid strong { font-family:var(--pm-mono); font-size:18px; }.dashboard-value-grid small { margin-top:4px; color:var(--pm-muted); font-size:9px; }
.dashboard-data-warning { display:flex; align-items:center; gap:8px; padding:10px 17px; color:#80500b; background:var(--pm-warning-bg); border-top:1px solid #f1d6a9; font-size:11px; }.dashboard-data-warning .material-symbols-outlined { font-size:19px; }
.dashboard-quality-list > div:not(.empty-state) { display:flex; min-height:62px; align-items:center; justify-content:space-between; gap:12px; padding:11px 17px; border-bottom:1px solid var(--pm-line); }.dashboard-quality-list > div:last-child { border-bottom:0; }
.dashboard-quality-list strong,.dashboard-quality-list small { display:block; }.dashboard-quality-list strong { font-size:12px; }.dashboard-quality-list small { color:var(--pm-muted); font-size:10px; }.dashboard-quality-list b { font-family:var(--pm-mono); font-size:13px; }
.dashboard-ranking-card { border-top:3px solid var(--pm-blue); }
.dashboard-ranking-card > .dashboard-section-heading > .material-symbols-outlined { display:grid; width:38px; height:38px; place-items:center; color:var(--pm-blue); background:var(--pm-info-bg); border-radius:50%; font-size:21px; }
.dashboard-ranking-list { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
.dashboard-ranking-row { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto auto; column-gap:10px; row-gap:2px; min-width:0; padding:16px; border-right:1px solid var(--pm-line); }
.dashboard-ranking-row:last-child { border-right:0; }
.dashboard-ranking-row__position { display:grid; grid-row:1 / span 2; width:28px; height:28px; place-items:center; align-self:center; color:var(--pm-blue); background:var(--pm-info-bg); border-radius:50%; font-family:var(--pm-mono); font-size:11px; font-weight:700; }
.dashboard-ranking-row > div { min-width:0; }.dashboard-ranking-row strong { display:block; overflow:hidden; color:var(--pm-navy); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.dashboard-ranking-row div small { display:block; margin-top:3px; color:var(--pm-muted); font-size:9px; }
.dashboard-ranking-row > b { grid-column:1 / -1; margin-top:7px; color:var(--pm-ink); font-family:var(--pm-mono); font-size:16px; line-height:1; }.dashboard-ranking-row__unit { grid-column:1 / -1; color:var(--pm-muted); font-size:9px; }
.dashboard-method-card__body { display:grid; gap:11px; padding:16px; }.dashboard-method-card__body > div { display:flex; align-items:flex-start; gap:10px; padding:11px; background:var(--pm-paper); border:1px solid var(--pm-line); border-radius:4px; }.dashboard-method-card__body .material-symbols-outlined { color:var(--pm-blue); font-size:21px; }.dashboard-method-card__body p { margin:0; }.dashboard-method-card__body strong,.dashboard-method-card__body small { display:block; }.dashboard-method-card__body strong { font-size:11px; }.dashboard-method-card__body small { margin-top:2px; color:var(--pm-muted); font-size:10px; }
.dashboard-cost-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:0 16px 16px; }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid { grid-template-columns: 1fr; }
    .client-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .client-summary__note { grid-column: 1 / -1; }
    .config-layout { grid-template-columns: 1fr; }
    .dispatch-label-form__content { grid-template-columns: 132px minmax(250px,1fr) max-content; }
    .dispatch-label-form__model { grid-column: span 2; }
    .print-readiness__checks { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .packaging-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .operator-dispatch-packaging__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .paper-details-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .paper-details-grid > .field:first-child { grid-column: 1 / -1; }
    .work-operation__details { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .operation-characteristics__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .component-basics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .component-basics-grid > .field:first-of-type,.component-detachable { grid-column: 1 / -1; }
    .component-production-specs { grid-template-columns: 1fr; gap: 15px; }
    .component-production-group { padding-right: 0; }
    .component-production-group--colors { padding-top: 15px; padding-left: 0; border-top: 1px solid var(--pm-line); border-left: 0; }
    .materials-overview__grid { grid-template-columns: 1fr; }
    .work-request-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
    .work-field--client,.work-field--title,.work-field--description { grid-column: 1 / -1; }
    .work-field--contact,.work-field--type,.work-field--reference,.work-field--quote { grid-column: span 3; }
    .work-field--delivery-method { grid-column: span 3; }
    .work-field--phase { grid-column: 1 / -1; }
    .work-field--quantity,.work-field--pages,.work-field--fold,.work-field--value,.work-field--entry,.work-field--delivery,.work-field--priority { grid-column: span 3; }
    .dashboard-alert-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-phase-grid,.dashboard-value-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .dashboard-ranking-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.dashboard-ranking-row { border-bottom:1px solid var(--pm-line); }.dashboard-ranking-row:nth-child(2n) { border-right:0; }
    .dashboard-phase-card,.dashboard-value-grid article { border-bottom:1px solid var(--pm-line); }
    .dashboard-two-column,.dashboard-two-column--quality { grid-template-columns:1fr; }
}

@media (max-width: 900px) {
    .operator-work-facts { grid-template-columns: 1fr; }
    .operator-work-hero { align-items: flex-start; flex-direction: column; }
    .production-clock__start { grid-template-columns: 1fr 1fr; }
    .production-clock__start .field { grid-column: 1 / -1; }
    .production-clock__running { grid-template-columns: 1fr auto; }
    .production-clock__actions { grid-column: 1 / -1; justify-content: flex-start; }
    .operator-view-chip { width: 100%; min-width: 0; }
    .paper-formats { grid-template-columns: 1fr; }
    .paper-format-flow { transform: rotate(90deg); }
    .component-format-grid,.component-colors-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sidebar { transform: translateX(-100%); transition: transform 220ms ease; }
    .sidebar-is-open .sidebar { transform: translateX(0); box-shadow: var(--pm-shadow); }
    .sidebar__close { display: inline-grid; }
    .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; background: rgba(7, 15, 27, 0.54); }
    .sidebar-is-open .sidebar-backdrop { display: block; }
    .app-shell { margin-left: 0; }
    .topbar__menu { display: inline-grid; }
    .component-materials__row { grid-template-columns: 1fr; }
    .dashboard-heading { align-items:flex-start; flex-direction:column; }
    .dashboard-controlbar { align-items:stretch; flex-direction:column; }
    .dashboard-view-switch,.dashboard-period-switch { overflow-x:auto; }
    .dashboard-view-switch a { flex:1 0 auto; }
    .dashboard-machine-row { grid-template-columns:18px minmax(160px,1fr) 105px 100px auto 18px; }
    .dashboard-machine-row > span:nth-child(3) { display:none; }
}

@media (max-width: 680px) {
    .topbar { padding: 0 16px; }
    .environment-badge,
    .user-chip__copy,
    .user-chip > .material-symbols-outlined,
    .breadcrumb span:first-child,
    .breadcrumb .material-symbols-outlined { display: none; }
    .page { padding: 22px 16px; }
    .page-heading { align-items: start; flex-direction: column; }
    .work-situation { align-items: stretch; flex-direction: column; }
    .work-situation__actions { justify-content: stretch; }
    .work-situation__actions .button { flex: 1 1 auto; }
    .dispatch-label-form__content { grid-template-columns: 1fr; align-items: stretch; }
    .dispatch-label-form__model { grid-column: auto; }
    .dispatch-label-form .button { justify-content: center; }
    .stats-grid,
    .component-grid,
    .form-grid { grid-template-columns: 1fr; }
    .field--full { grid-column: auto; }
    .swatches { grid-template-columns: repeat(2, 1fr); }
    .footer { align-items: start; padding: 16px; flex-direction: column; }
    .client-summary { grid-template-columns: 1fr; }
    .client-summary__note { grid-column: auto; }
    .client-toolbar { align-items: start; flex-direction: column; }
    .client-toolbar__actions { width: 100%; }
    .search-field { width: 100%; }
    .client-toolbar__actions .button { flex: 0 0 auto; }
    .form-section { grid-template-columns: 1fr; padding: 20px 16px; }
    .form-section--stack > :not(.form-section__heading) { grid-column: 1; }
    .form-section__heading--action .button { grid-column: 1 / -1; }
    .form-grid--three { grid-template-columns: 1fr; }
    .work-request-grid { grid-template-columns: 1fr; }
    .work-request-grid > .field { grid-column: 1; }
    .field--span-2,
    .field--span-3 { grid-column: auto; }
    .client-form__footer { align-items: stretch; flex-direction: column; }
    .client-form__footer .button-row { width: 100%; }
    .client-form__footer .button { flex: 1; }
    .client-form-actions { align-items: stretch; flex-direction: column; }
    .client-form-actions .button { flex: 1; }
    .operation-picker,.config-index { grid-template-columns: 1fr; }
    .operation-fields-config > header { align-items: stretch; flex-direction: column; }
    .operation-field-config__grid,.operation-characteristics__grid { grid-template-columns: 1fr; }
    .work-operation__main,
    .work-operation.is-plate-derived .work-operation__main { grid-template-columns: 1fr; }
    .work-piece__header,.work-piece__subheading { align-items: stretch; flex-direction: column; }
    .component-material-card__fields { grid-template-columns: 1fr; }
    .paper-format-block > .component-material-card__fields { grid-template-columns: 1fr; }
    .paper-order-summary > header,.paper-order-summary__total { align-items: flex-start; flex-direction: column; }
    .paper-order-summary__row { grid-template-columns: 1fr; }
    .paper-order-summary__row > .material-symbols-outlined { transform: rotate(90deg); }
    .materials-overview > header { align-items: flex-start; flex-direction: column; }
    .materials-overview__actions { width: 100%; justify-content: space-between; }
    .materials-overview__row,.materials-overview__panel--plates .materials-overview__row { grid-template-columns: 1fr; gap: 5px; }
    .materials-overview__detail strong { white-space: normal; }
    .print-plan__header { align-items: start; }
	    .print-plan__identity { grid-template-columns: 1fr; }
	    .print-plan__identity small { grid-column: 1; }
	    .phase-print-plans > header { align-items: flex-start; flex-direction: column; }
	    .phase-print-plan__identity { grid-template-columns: 1fr; }
	    .phase-print-plan__identity small { grid-column: 1; white-space: normal; }
	    .print-plan__actions .button { width: 32px; overflow: hidden; padding: 0; font-size: 0; }
    .print-plan__actions .button .material-symbols-outlined { margin: 0; }
    .print-readiness > header { align-items: start; flex-direction: column; }
    .print-readiness__checks { grid-template-columns: 1fr; }
    .production-clock__header,.production-clock__footer,.production-clock__other { align-items: stretch; flex-direction: column; }
    .production-clock__total { text-align: left; }
    .production-clock__start,.production-clock__running { grid-template-columns: 1fr; }
    .production-clock__start .field,.production-clock__actions { grid-column: 1; }
    .production-clock__start .button,.production-clock__actions .button,.production-clock__footer .button { width: 100%; }
    .production-clock__display { font-size: 34px; }
    .production-clock__actions { flex-direction: column; }
    .production-gate { grid-template-columns: 1fr; }
    .operator-dispatch-packaging__grid { grid-template-columns: 1fr; }
    .operator-dispatch-packaging__grid > div { border-right: 0; border-bottom: 1px solid var(--pm-line); }
    .operator-dispatch-packaging__grid > div:last-child { border-bottom: 0; }
    .work-deliveries__header { align-items: stretch; flex-direction: column; }
    .work-deliveries__header .button { width: 100%; }
    .work-deliveries__totals { grid-template-columns: 1fr; }
    .plate-reworks .table-card__header,.plate-reworks__actions { align-items: stretch; flex-direction: column; }
    .plate-reworks__actions .button { width: 100%; }
    .dashboard-alert-grid,.dashboard-metrics,.dashboard-phase-grid,.dashboard-value-grid,.dashboard-ranking-list { grid-template-columns:1fr; }
    .dashboard-ranking-row { border-right:0; }
    .dashboard-phase-card,.dashboard-value-grid article { border-right:0; }
    .dashboard-risk-row { grid-template-columns:58px 1fr 75px; }
    .dashboard-risk-row__reason { grid-column:2 / -1; }
    .dashboard-machine-row { grid-template-columns:16px 1fr auto 16px; }
    .dashboard-machine-row > span:nth-child(3),.dashboard-machine-row > span:nth-child(5),.dashboard-machine-row > span:nth-child(6) { display:none; }
}

.production-result-summary {
    align-items: center;
    background: var(--pm-info-bg);
    border: 1px solid var(--pm-line);
    border-left: 3px solid var(--pm-blue);
    border-radius: var(--pm-radius-sm);
    display: flex;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 14px;
}
.production-result-summary span { color: var(--pm-muted); }
.production-result-summary strong { color: var(--pm-navy); font-size: 18px; }
.production-result-plan {
    background: #f7f9fb;
    border: 1px solid var(--pm-line);
    border-radius: var(--pm-radius);
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
}
.production-result-plan > div { border-right: 1px solid var(--pm-line); display: grid; gap: 3px; padding: 11px 14px; }
.production-result-plan > div:last-child { border-right: 0; }
.production-result-plan span { color: var(--pm-muted); font-size: 12px; }
.production-result-plan strong { color: var(--pm-navy); font-family: var(--pm-mono); font-size: 17px; }
.production-result-plan--single { grid-template-columns: 1fr; }
.production-result-plan--double { grid-template-columns: repeat(2,minmax(0,1fr)); }
.table-subline { color: var(--pm-muted); display: block; margin-top: 3px; white-space: nowrap; }

/* Ficha de produção A4 */
.production-sheet { display: grid; gap: 28px; margin-inline: auto; max-width: 1120px; }
.production-sheet__page {
    background: #fff;
    border: 1px solid #c9d3df;
    box-shadow: 0 10px 30px rgba(15,36,61,.08);
    color: #162236;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 1440px;
    padding: 28px;
}
.production-sheet__masthead { align-items: stretch; border: 2px solid #172c46; display: grid; grid-template-columns: 1fr 230px; }
.production-sheet__masthead > div { display: grid; gap: 2px; padding: 15px 18px; }
.production-sheet__masthead > div:last-child { background: #172c46; color: #fff; text-align: right; }
.production-sheet__masthead span { font-family: var(--pm-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.production-sheet__masthead strong { font-size: 22px; }
.production-sheet__masthead b { font-family: var(--pm-mono); font-size: 25px; }
.production-sheet__brand { color: #2371aa; font-weight: 700; }
.production-sheet__masthead--compact strong { font-size: 19px; }
.production-sheet__section-title { align-items: center; background: #eaf2f9; border-left: 4px solid #28699e; display: flex; gap: 9px; min-height: 38px; padding: 7px 12px; }
.production-sheet__section-title > span { color: #28699e; font-family: var(--pm-mono); font-size: 11px; font-weight: 700; }
.production-sheet__section-title strong { font-size: 15px; }
.production-sheet__section-title em { color: #40536b; font-family: var(--pm-mono); font-size: 10px; font-style: normal; margin-left: auto; }
.production-sheet__facts { border: 1px solid #bac7d5; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; }
.production-sheet__facts--work { grid-template-columns: repeat(3,minmax(0,1fr)); }
.production-sheet__facts > div { border-bottom: 1px solid #d7dfe7; border-right: 1px solid #d7dfe7; min-height: 54px; padding: 7px 10px; }
.production-sheet__facts dt { color: #607188; font-family: var(--pm-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.production-sheet__facts dd { font-size: 12px; font-weight: 650; line-height: 1.45; margin: 4px 0 0; }
.production-sheet__facts dd small { color: #6e7d91; display: block; font-size: 9px; font-weight: 500; }
.production-sheet__facts .production-sheet__fact--wide { grid-column: span 2; }
.production-sheet__facts .production-sheet__fact--full { grid-column: 1/-1; min-height: 64px; }
.production-sheet__facts--dispatch { grid-template-columns: repeat(4,minmax(0,1fr)); }
.production-sheet__table-wrap { border: 1px solid #bac7d5; overflow: hidden; }
.production-sheet__table { border-collapse: collapse; table-layout: fixed; width: 100%; }
.production-sheet__table th { background: #edf1f5; color: #40536b; font-family: var(--pm-mono); font-size: 8px; letter-spacing: .07em; padding: 7px 6px; text-align: left; text-transform: uppercase; }
.production-sheet__table td { border-right: 1px solid #d7dfe7; border-top: 1px solid #d7dfe7; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; padding: 7px 6px; vertical-align: top; }
.production-sheet__table td:last-child,.production-sheet__table th:last-child { border-right: 0; }
.production-sheet__table td strong { font-size: 9px; }
.production-sheet__table td small { color: #6e7d91; display: block; font-size: 8px; margin-top: 2px; }
.production-sheet__table--times th,.production-sheet__table--times td { font-size: 8px; }
.production-sheet__empty { color: #758397; padding-block: 16px !important; text-align: center; }
.production-sheet__empty--space { height: 64px; }
.production-sheet__subheading { color: #24374f; font-size: 12px; margin: 2px 0 -6px; }
.production-sheet__subheading--phase-summary { margin-top: 1px; }
.production-sheet__phase-summary { margin-bottom: 1px; }
.production-sheet__table--phase-summary th,
.production-sheet__table--phase-summary td { text-align: center; }
.production-sheet__table--phase-summary th[scope="row"] { width: 76px; color: #526b86; font-size: 8px; text-align: left; }
.production-sheet__table--phase-summary .production-sheet__phase-summary-label { width: 76px; }
.production-sheet__table--phase-summary td { color: #183452; font-family: var(--pm-mono); font-size: 11px; font-weight: 700; padding-block: 8px; }
.production-sheet__table--phase-summary-difference th,
.production-sheet__table--phase-summary-difference td { border-top: 1px solid #afc2d5; }
.production-sheet__table--phase-summary .production-sheet__phase-summary-difference td.is-over { color: #b4233d !important; background: #fff0f2 !important; }
.production-sheet__table--phase-summary .production-sheet__phase-summary-difference td.is-under { color: #08795b !important; background: #e9f8f1 !important; }
.production-sheet__table--phase-summary .production-sheet__phase-summary-difference td.is-on-target { color: #32628f !important; }
.production-sheet__table--phase-summary .production-sheet__phase-summary-difference td.is-pending { color: #8292a6 !important; font-family: inherit; font-weight: 500; }
.production-sheet__notes { border: 1px solid #bac7d5; font-size: 10px; line-height: 1.5; min-height: 110px; padding: 10px; }
.production-sheet__signatures { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; margin-top: 22px; }
.production-sheet__signatures > div { display: grid; gap: 16px; }
.production-sheet__signatures span { font-size: 10px; font-weight: 700; }
.production-sheet__signatures b { border-bottom: 1px solid #65758a; min-height: 30px; }
.production-sheet__signatures small { color: #718096; font-size: 8px; }
.production-sheet__page-footer { border-top: 1px solid #bac7d5; color: #64758a; display: flex; font-family: var(--pm-mono); font-size: 8px; justify-content: space-between; margin-top: auto; padding-top: 8px; text-transform: uppercase; }

@media (max-width: 900px) {
    .production-sheet__page { min-height: 0; padding: 18px; }
    .production-sheet__facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .production-sheet__table { min-width: 800px; }
    .production-sheet__table-wrap { overflow-x: auto; }
}

.procurement-summary { grid-template-columns: repeat(3,minmax(180px,1fr)); margin-bottom: 16px; }
.procurement-summary__item { min-height: 96px; border-top: 3px solid var(--pm-line); }
.procurement-summary__item--danger { border-top-color: var(--pm-danger); }
.procurement-summary__item--warning { border-top-color: var(--pm-warning); }
.procurement-summary__item--success { border-top-color: var(--pm-success); }
.procurement-status-form { display: grid; gap: 6px; min-width: 150px; }
.procurement-status-form select { width: 100%; min-width: 170px; padding: 6px 34px 6px 10px; color: var(--pm-ink); background: #fff; border: 1px solid #cfd6df; border-radius: var(--pm-radius); outline: 0; font-size: 12px; }
.procurement-status-form select:focus { border-color: var(--pm-blue); box-shadow: 0 0 0 3px rgba(46,95,145,.12); }
.procurement-status-form .button { justify-content: center; }
.procurement-status-form + .badge { margin-top: 7px; }
.procurement-format { display: flex; align-items: center; gap: 5px; white-space: nowrap; font-size: 10px; }
.procurement-format .material-symbols-outlined { color: var(--pm-blue); font-size: 16px; }
.procurement-table .table td { vertical-align: top; }
.paper-label-page { min-height: 100vh; padding: 26px; background: #e8edf4; }
.paper-label { width: min(100%, 860px); margin: 0 auto; }
.paper-label__actions { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.paper-label__sheet { overflow: hidden; min-height: 1040px; padding: 34px; background: #fff; border: 1px solid #c6d4e4; box-shadow: 0 14px 36px rgba(7,24,48,.16); }
.paper-label__fold-zone { height: 100mm; background: #fff; }
.paper-label__header { display: grid; grid-template-columns: 1fr 180px; border: 2px solid var(--pm-navy); }
.paper-label__header > div { padding: 22px; }
.paper-label__brand,.paper-label__header p,.paper-label__identity span,.paper-label__material dt,.paper-label__quantities span,.paper-label__format small,.paper-label__instruction small { display: block; font-family: var(--pm-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.paper-label__brand { color: var(--pm-blue); }
.paper-label__header h1 { margin: 7px 0 5px; font-size: 28px; }
.paper-label__header p { color: var(--pm-muted); font-family: var(--pm-sans); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.paper-label__op { display: grid; align-content: center; background: var(--pm-navy); color: #fff; text-align: right; }
.paper-label__op span { font-family: var(--pm-mono); font-size: 10px; letter-spacing: .1em; }
.paper-label__op strong { margin-top: 5px; font-family: var(--pm-mono); font-size: 30px; }
.paper-label__identity { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 12px; border: 1px solid var(--pm-line); }
.paper-label__identity > div { min-height: 57px; padding: 10px 14px; }
.paper-label__identity > div + div { border-left: 1px solid var(--pm-line); }
.paper-label__identity strong { display: block; margin-top: 6px; font-size: 15px; }
.paper-label__material { margin-top: 12px; border: 1px solid #9fc4e7; border-left: 4px solid var(--pm-blue); }
.paper-label__section-title { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid #c9ddee; background: #edf6ff; }
.paper-label__section-title small { display: block; color: var(--pm-blue); font-family: var(--pm-mono); font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.paper-label__section-title h2 { margin: 2px 0 0; font-size: 15px; }
.paper-label__section-title .badge { margin-left: auto; }
.paper-label__material dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; }
.paper-label__material dl > div { padding: 10px 14px; }
.paper-label__material dl > div + div { border-left: 1px solid var(--pm-line); }
.paper-label__material dt { color: var(--pm-muted); }
.paper-label__material dd { margin: 6px 0 0; font-size: 15px; font-weight: 700; }
.paper-label__quantities { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; border: 1px solid var(--pm-line); }
.paper-label__quantities > div { min-height: 92px; padding: 12px 15px; }
.paper-label__quantities > div + div { border-left: 1px solid var(--pm-line); }
.paper-label__quantities strong { display: block; margin-top: 8px; color: var(--pm-navy); font-family: var(--pm-mono); font-size: 25px; }
.paper-label__quantities small,.paper-label__format span { display: block; margin-top: 3px; color: var(--pm-muted); font-size: 11px; }
.paper-label__formats { display: grid; grid-template-columns: 1fr 38px 1fr; align-items: stretch; margin-top: 12px; }
.paper-label__format { padding: 11px 14px; border: 1px solid var(--pm-line); }
.paper-label__format strong { display: block; margin-top: 5px; font-family: var(--pm-mono); font-size: 19px; }
.paper-label__arrow { align-self: center; justify-self: center; color: var(--pm-blue); font-size: 28px; }
.paper-label__instruction { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px; color: #245176; background: #eef7ff; border: 1px solid #a7cae8; }
.paper-label__instruction > .material-symbols-outlined { font-size: 21px; }
.paper-label__instruction strong { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; }
.paper-label__footer { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 8px; color: var(--pm-muted); border-top: 1px solid var(--pm-line); font-family: var(--pm-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }

@media print {
    @page { size: A4 portrait; margin: 8mm; }
    html,body { background: #fff !important; }
    body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sidebar,.sidebar-backdrop,.topbar,.footer,.production-sheet-toolbar,.page-alert { display: none !important; }
    .app-shell { margin: 0 !important; }
    .page { padding: 0 !important; }
    .production-sheet { display: block; max-width: none; }
    .production-sheet__page { border: 0; box-shadow: none; gap: 3mm; min-height: 277mm; padding: 0; page-break-after: always; break-after: page; }
    .production-sheet__page:last-child { page-break-after: auto; break-after: auto; }
    .production-sheet__masthead,.production-sheet__section-title,.production-sheet__facts,.production-sheet__table-wrap,.production-sheet__notes { break-inside: avoid; }
    .production-sheet__table-wrap { overflow: visible !important; }
    .production-sheet__table { min-width: 0 !important; width: 100% !important; }
    .production-sheet__facts--work { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .production-sheet__facts--dispatch { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .production-sheet__table th,
    .production-sheet__table td { hyphens: auto; overflow: hidden; overflow-wrap: anywhere; white-space: normal; word-break: normal; }
    .production-sheet__masthead > div { padding: 3mm 4mm; }
    .production-sheet__section-title { min-height: 7mm; padding: 1.5mm 3mm; }
    .production-sheet__facts > div { min-height: 10mm; padding: 1.5mm 2mm; }
    .production-sheet__table th { padding: 1.2mm; }
    .production-sheet__table td { padding: 1.35mm 1.2mm; }
    @page { size: A4 portrait; margin: 10mm; }
    .paper-label-page { padding: 0; background: #fff; }
    .paper-label { width: 100%; margin: 0; }
    .paper-label__actions { display: none !important; }
    .paper-label__sheet { min-height: 0; padding: 0; border: 0; box-shadow: none; }
    .paper-label__fold-zone { height: 100mm; }
    .paper-label__header { grid-template-columns: 1fr 165px; }
    .paper-label__header > div { padding: 16px; }
    .paper-label__header h1 { font-size: 24px; }
    .paper-label__header p { font-size: 11px; }
    .paper-label__op strong { font-size: 26px; }
}

@media (max-width: 720px) {
    .production-result-plan { grid-template-columns: 1fr; }
    .production-result-plan > div { border-bottom: 1px solid var(--pm-line); border-right: 0; }
    .production-result-plan > div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.company-form__fields {
    border: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.company-form__fields:disabled {
    opacity: 1;
}

.company-form__fields:disabled input,
.company-form__fields:disabled select,
.company-form__fields:disabled textarea {
    color: var(--ink, #10243e);
    -webkit-text-fill-color: var(--ink, #10243e);
    background: #f8fafc;
    cursor: default;
}

/* Chapas não se aplicam quando todos os planos do componente são digitais. */
.component-material-card--plates.is-not-applicable {
    border-left-color: #16845d;
    background: #f2fbf6;
}

.component-material-card--plates.is-not-applicable .component-material-card__icon {
    color: #087556;
    background: #dcf3e7;
}

.component-material-card__automatic-note {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0 0;
    color: #087556;
    font-size: 12px;
    font-weight: 700;
}

.component-material-card__automatic-note .material-symbols-outlined {
    font-size: 16px;
}
