/* ── Prepress Studio Layout ── */

.prepress-upload-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(59,130,246,0.08);
    color: var(--blue);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s;
}
.prepress-upload-btn:hover { background: rgba(59,130,246,0.18); }

.pf-status {
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.pf-pass { background: rgba(16,185,129,0.18); color: var(--mud-palette-success); }
.pf-fail { background: rgba(239,68,68,0.18); color: var(--mud-palette-error); }

.pf-chip {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    white-space: nowrap;
    flex-shrink: 0;
}
.pf-chip--stale { background: rgba(239,68,68,0.12); color: var(--mud-palette-error); border-color: rgba(239,68,68,0.3); }
.pf-chip--unrun { background: rgba(255,152,0,0.12); color: #FF9800; border-color: rgba(255,152,0,0.3); }
.pf-chip--quick { background: rgba(59,130,246,0.12); color: var(--blue); border-color: rgba(59,130,246,0.3); }

/* C3/D4: brief posla iz naloga — cinjenica, ne polje */
.prepress-order-brief__title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}
.prepress-order-brief__line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.pf-file-chip {
    font-size: 10px;
    color: var(--text-muted);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

/* Preflight checks list (in tool panel area when Preflight active) */
.pf-checks-panel {
    flex-shrink: 0;
    max-height: 32%;
    overflow-y: auto;
    border-bottom: 1px solid var(--glass-border);
    padding: 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}

.pf-checks-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Canvas area: fills remaining vertical space */
.prepress-canvas-area {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--bg-base);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    position: relative;
}

/* ── Toolbar ── */
.prepress-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px;
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
    flex-wrap: nowrap;
}

.prepress-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 6px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    min-width: 44px;
    flex-shrink: 0;
}

.prepress-tool-btn:hover {
    background: rgba(59,130,246,0.1);
    border-color: var(--blue);
    color: var(--blue);
}

.prepress-tool-btn.active {
    background: rgba(59,130,246,0.15);
    border-color: var(--blue);
    color: var(--blue);
}

.prepress-tool-btn.disabled,
.prepress-tool-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.prepress-tool-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.prepress-tool-btn--print {
    flex-shrink: 0;
    background: rgba(16,185,129,0.14);
    border-color: rgba(16,185,129,0.6);
    color: var(--mud-palette-success);
    margin-left: 4px;
}
.prepress-tool-btn--print:hover {
    background: rgba(16,185,129,0.28);
    border-color: var(--mud-palette-success);
    color: var(--mud-palette-success);
}

.prepress-tool-btn--fullscreen {
    flex-shrink: 0;
    margin-left: 4px;
    padding: 4px 8px;
}

/* ── Preview ── */
.prepress-preview-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prepress-preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 12px;
}

.prepress-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
}

.prepress-preview-canvas-wrap {
    flex: 1;
    overflow: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12px;
    min-height: 0;
}

#prepress-preview-canvas {
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    max-width: 100%;
    height: auto;
}

/* ── Panel components ── */
.panel-section {
    margin-bottom: 12px;
}

.panel-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.panel-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    gap: 8px;
    text-align: center;
}

/* ── Preflight results ── */
.pdf-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 11px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

.info-label { color: var(--text-muted); }
.info-value { color: var(--text-primary); font-weight: 500; }

.check-group { margin-bottom: 8px; }

.check-group-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
    padding-left: 4px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    border-left: 2px solid transparent;
}

.check-item--error   { border-left-color: var(--mud-palette-error); }
.check-item--warning { border-left-color: #FF9800; }
.check-item--pass    { border-left-color: var(--mud-palette-success); }
.check-item--info    { border-left-color: var(--blue); }

.check-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.check-msg  { font-size: 11px; color: var(--text-primary); line-height: 1.4; }
.check-fix  { font-size: 10px; color: #80CBC4; }

/* ── Booklet Preview ── */
.booklet-preview-container {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow-y: auto;
}

.preview-header {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--blue);
}

.preview-sheets {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.booklet-sheet-display {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.sheet-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 300px;
    height: 200px;
}

.page-box {
    background: #fff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

/* ── Nesting & Tools ── */
.nesting-item-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    margin-bottom: 4px;
}

.nesting-orientation-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.nesting-orientation-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 10px;
}

.nesting-orientation-card.selected {
    border-color: var(--blue);
}

.nesting-orientation-card.best {
    border-color: var(--green);
}

.nesting-orientation-card .noc-title {
    font-weight: 700;
    font-size: 11px;
}

.nesting-orientation-card .noc-grid,
.nesting-orientation-card .noc-items,
.nesting-orientation-card .noc-waste {
    color: var(--text-muted);
}

.nesting-best-sheet-table {
    width: 100%;
    margin-top: 8px;
    font-size: 10px;
    border-collapse: collapse;
}

.nesting-best-sheet-table th,
.nesting-best-sheet-table td {
    padding: 4px 6px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.nesting-best-sheet-table tbody tr {
    cursor: pointer;
}

.nesting-best-sheet-table tbody tr:hover {
    background: rgba(255,255,255,0.05);
}

.nesting-best-sheet-table tbody tr.current {
    background: rgba(37,99,235,0.12);
}

.nesting-sheet-pager {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin: 6px 0;
}

.prepress-control-zone .mud-numeric-field-input {
    font-size: 11px !important;
}

.prepress-control-zone .mud-input-control > .mud-input-control-input-container > .mud-input-label-outlined {
    font-size: 10px !important;
}

/* ── Info Bar FAIL chip clickable ─────────────────────────────────── */
.pf-status.pf-fail {
    cursor: pointer;
    text-decoration: underline dotted;
}

.overlay-toggle {
    padding: 2px 8px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.15s;
}
.overlay-toggle:hover {
    background: rgba(59,130,246,0.1);
    border-color: var(--blue);
    color: var(--blue);
}
.overlay-toggle.active {
    background: rgba(59,130,246,0.18);
    border-color: var(--blue);
    color: var(--blue);
}

.overlay-separator {
    width: 1px;
    height: 16px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* ── Preflight summary bar ── */
.pf-checks-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.pf-checks-summary .pf-status {
    cursor: pointer;
    user-select: none;
}

/* ── Check item actions (fix buttons) ── */
.check-item__actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-self: flex-start;
    margin-left: auto;
}

.fix-btn {
    white-space: nowrap;
    font-size: 10px !important;
    padding: 2px 8px !important;
    min-width: unset !important;
    line-height: 1.4 !important;
}

/* ── Compare view ── */
.prepress-compare-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 8px;
    padding: 12px;
}

.prepress-compare-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.prepress-compare-header .text-muted {
    color: var(--text-muted);
    font-size: 11px;
}

.prepress-compare-panels {
    display: flex;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.prepress-compare-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.15);
}

.prepress-compare-panel-header {
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Poređenje bez originala — radnik mora da vidi da leva strana nedostaje, ne prazno platno. */
.prepress-compare-empty {
    position: absolute;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.8;
    text-align: center;
    padding: 0 12px;
}

.prepress-compare-panel-content {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    overflow: hidden;
}

.compare-canvas {
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* ── C8/D9: "ALATI" meni (MudMenu) — zamenio pet dropdown grupa ──────── */
.prepress-tool-btn--menu {
    flex-direction: row;
    gap: 4px;
    padding: 4px 8px;
}
.prepress-toolbar-menu-heading {
    display: block;
    padding: 6px 12px 2px;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}
.prepress-toolbar-menu-item--active {
    color: var(--blue);
    font-weight: 700;
}
.prepress-toolbar-file-info {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    white-space: nowrap;
    margin-left: 8px;
}
.prepress-toolbar-file-name {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prepress-toolbar-file-summary {
    color: var(--text-muted);
    flex-shrink: 0;
}
.prepress-toolbar__spacer {
    flex: 1;
}
.prepress-toolbar-copies-summary {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    margin-right: 8px;
}

/* ── Glass card (shared surface) ──────────────────────────────────── */
.glass-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

/* ── Workbench layout (Batch 1) ───────────────────────────────── */
.prepress-workbench {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: var(--bg-base);
}

/* ── Fullscreen (isti obrazac kao DesignStudio .ds-fullscreen) ──────── */
.prepress-workbench.prepress-fullscreen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1150;
}

.dashboard-page:has(.prepress-fullscreen) .topbar,
.dashboard-page:has(.prepress-fullscreen) .bottom-bar {
    display: none !important;
}

/*
 * C7/D8: uzrok F2 — .dashboard-tool/.dashboard-col/.dashboard-content-layer imaju
 * backdrop-filter (containing block za position:fixed potomke) + overflow:hidden, pa se
 * .prepress-fullscreen (position:fixed, 100vw/100vh) pozicionira i odseca u odnosu na njih
 * umesto na viewport. Pravilo vazi SAMO dok je fullscreen aktivan — glass izgled u normalnom
 * radu ostaje netaknut. Isti obrazac resava i DesignStudio .ds-fullscreen (dele istog roditelja).
 */
.dashboard-page:has(.prepress-fullscreen) .dashboard-tool,
.dashboard-page:has(.prepress-fullscreen) .dashboard-col,
.dashboard-page:has(.prepress-fullscreen) .dashboard-content-layer,
.dashboard-page:has(.ds-fullscreen) .dashboard-tool,
.dashboard-page:has(.ds-fullscreen) .dashboard-col,
.dashboard-page:has(.ds-fullscreen) .dashboard-content-layer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow: visible !important;
    filter: none !important;
    transform: none !important;
}

.prepress-workbench__body {
    display: grid;
    grid-template-columns: 280px 1fr;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.prepress-control-zone {
    display: flex;
    flex-direction: column;
    width: var(--pcz-width, 280px);
    min-width: 240px;
    max-width: 400px;
    border-right: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.06);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.pcz-resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    cursor: col-resize;
    z-index: 10;
    background: transparent;
    transition: background 0.15s;
}
.pcz-resize-handle:hover,
.pcz-resize-handle.active {
    background: var(--mud-palette-primary);
}

.prepress-control-zone .mud-input {
    min-height: 36px;
    height: 40px;
    display: flex;
    align-items: center;
}

.prepress-control-zone .mud-input-control {
    height: 40px;
}

.prepress-control-zone .mud-input-label-outlined {
    font-size: 10px !important;
}

.prepress-control-zone .mud-input-slot {
    font-size: 11px !important;
}

.pcz-section {
    flex-shrink: 0;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pcz-section--grow {
    flex-shrink: 1;
    overflow-y: auto;
    min-height: 40px;
}

.pcz-section:last-child {
    border-bottom: none;
}

.pcz-overlay-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    padding: 2px 0;
}

.pcz-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.pcz-actions .mud-button {
    height: 36px;
    font-size: 11px !important;
    text-transform: none !important;
}

.prepress-canvas-zone {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    contain: layout size style;
}

.prepress-canvas-zone .prepress-canvas-area {
    contain: layout size style;
}

/* ── Batch 2: Sidebar panel-section overrides ─────────────────────────── */
.prepress-control-zone .panel-section {
    padding: 0;
    border-bottom: none;
}

.prepress-control-zone .panel-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

/* Sidebar upload button: full width, centered */
.prepress-control-zone .prepress-upload-btn {
    width: 100%;
    justify-content: center;
}

/* Overlay toggle buttons sized for sidebar */
.pcz-overlay-bar .overlay-toggle {
    font-size: 10px;
    padding: 3px 7px;
    min-width: 28px;
}

/* ── Batch 3: Sidebar narrow-width fixes (280px scope) ──────────────────── */

/* Numeric field rows side-by-side: na 280px sidebar wrap-uju se u novi red */
.prepress-control-zone .panel-section .d-flex.gap-2,
.prepress-control-zone .panel-section [style*="display:flex"][style*="gap:8px"],
.prepress-control-zone .panel-section [style*="display:flex"][style*="gap:6px"] {
    flex-wrap: wrap;
    gap: 6px !important; /* overrides inline style from MudBlazor */
}

/* MudNumericField input ne sme da prelije sidebar */
.prepress-control-zone .pcz-section .mud-input,
.prepress-control-zone .pcz-section .mud-input-control {
    min-width: 0;
    max-width: 100%;
}

/* Sidebar select dropdown ne sme da pređe granicu sidebar-a horizontalno */
.prepress-control-zone .mud-select .mud-popover {
    max-width: 260px;
}

/* PdfTools "tool-card" u sidebar-u: kompaktnije */
.prepress-control-zone .tool-card {
    padding: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    margin-bottom: 8px;
}

.prepress-control-zone .tool-card__header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Step&Repeat preview SVG: full-width unutar sidebar-a */
.prepress-control-zone svg[viewBox] {
    max-width: 100%;
    height: auto;
}

/* Booklet result table: skroluje horizontalno unutar sidebar-a */
.prepress-control-zone .booklet-table-container {
    max-width: 100%;
    overflow-x: auto;
}

/* ── Batch 3: Canvas zoom & overflow ──────────────────────────────────────── */

/* Canvas-wrap mora da skroluje kad je _scale > fit */
.prepress-canvas-zone .prepress-preview-canvas-wrap {
    overflow: auto;
    /* contain:strict na .prepress-canvas-area znači da scroll-bar stoji unutra */
}

/* ── Flow Rail (PrepressFlowRail) ──────────────────────────────────────────── */

.flow-rail {
    padding: 10px 16px;
    margin: 8px 8px 0 8px;
    border-radius: 8px;
}

.flow-steps {
    display: flex;
    align-items: stretch;
    gap: 0;
}

/* C5/T5.3: status posla, desno od koraka trake */
.flow-status-chip {
    margin-left: auto;
    align-self: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    white-space: nowrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    min-width: 100px;
    flex: 1;
    border-radius: 6px;
    transition: background 0.2s;
    position: relative;
}

.flow-step:hover {
    background: rgba(0,0,0,0.03);
}

.flow-step.active {
    background: rgba(59,130,246,0.08);
}

.flow-step-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    background: var(--bg-base);
    border: 2px solid var(--glass-border);
    transition: all 0.2s;
}

.flow-step.active .flow-step-indicator {
    color: #2563EB;
    border-color: #2563EB;
    background: rgba(37,99,235,0.08);
}

.flow-step.done .flow-step-indicator {
    color: #2E7D32;
    border-color: #2E7D32;
    background: rgba(46,125,50,0.08);
}

.flow-step.warned .flow-step-indicator {
    color: #E65100;
    border-color: #E65100;
    background: rgba(230,81,0,0.08);
}

.flow-step.skipped .flow-step-indicator {
    color: var(--text-muted);
    border-color: var(--text-muted);
    opacity: 0.6;
}

.flow-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-step.active .flow-step-label {
    color: #2563EB;
}

.flow-step.done .flow-step-label {
    color: #2E7D32;
}

.flow-step.warned .flow-step-label {
    color: #E65100;
}

.flow-step-summary {
    font-size: 10px;
    color: var(--text-muted);
    text-align: center;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-step.active .flow-step-summary,
.flow-step.done .flow-step-summary,
.flow-step.warned .flow-step-summary {
    color: var(--text-primary);
}

.flow-connector {
    width: 40px;
    height: 2px;
    background: var(--glass-border);
    margin-top: 22px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.flow-connector.done {
    background: #2E7D32;
}

.flow-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
}

.flow-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.flow-chip:hover {
    background: rgba(0,0,0,0.04);
}

.flow-chip.predlozen {
    border-color: #2563EB;
    color: #2563EB;
}

.flow-chip.uradjen {
    border-color: #2E7D32;
    color: #2E7D32;
}

.flow-chip.zastareo {
    border-color: #E65100;
    color: #E65100;
}

.flow-next-step {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.flow-next-step strong {
    color: var(--text-primary);
}

.flow-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 0 0 0;
    border-top: 1px solid var(--glass-border);
    justify-content: center;
}

/* ── Print Queue ─────────────────────────────────────────────────── */
.print-queue-empty {
    text-align: center;
    padding: 24px;
    color: var(--mud-palette-text-secondary);
    font-size: 13px;
}

.pq-item-body {
    flex: 1;
    min-width: 0;
}

.pq-item-name {
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pq-item-status {
    font-size: 11px;
}

.pf-no-file-msg {
    font-size: 11px;
    color: var(--text-muted);
}

.pcz-sheet-custom {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}



/* ══ SPEC-08 F4 — Komad → Tabak → Ploča ═══════════════════════════════════════════
   Jedna linija iznad radne ploče, uvek vidljiva. Nivo do kog se nije stiglo je prigušen,
   preskočen je prekrižen — ne sakriven, jer sakriven korak izgleda kao propušten. */
.prepress-hierarchy {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.75);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 12px;
    color: #CBD5E1;
}

.prepress-hierarchy .ph-level {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.prepress-hierarchy .ph-name {
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #64748B;
    white-space: nowrap;
}

.prepress-hierarchy .ph-value {
    font-weight: 600;
    color: #E2E8F0;
    white-space: nowrap;
}

.prepress-hierarchy .ph-note { color: #64748B; white-space: nowrap; }
.prepress-hierarchy .ph-ok { color: #4ADE80; white-space: nowrap; }
.prepress-hierarchy .ph-warn { color: #FCA5A5; }
.prepress-hierarchy .ph-arrow { color: #475569; }

.prepress-hierarchy .ph-pending .ph-value,
.prepress-hierarchy .ph-pending .ph-name { opacity: 0.55; }

.prepress-hierarchy .ph-skipped .ph-name { text-decoration: line-through; opacity: 0.5; }
.prepress-hierarchy .ph-skipped .ph-note { opacity: 0.6; }

.prepress-hierarchy .ph-warn-level .ph-name,
.prepress-hierarchy .ph-warn-level .ph-value { color: #FCA5A5; }

.prepress-hierarchy .ph-tech {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(139, 92, 246, 0.16);
    color: #C4B5FD;
    white-space: nowrap;
}


/* ══ SPEC-09 K3 — soft-proof i gamut ═══════════════════════════════════════════════ */
.soft-proof-panel .soft-proof-preview {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 4px;
    overflow: hidden;
    background: #FFFFFF;
}

.soft-proof-panel .soft-proof-preview img { display: block; width: 100%; height: auto; }

.soft-proof-panel .gamut-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.soft-proof-panel .gamut-swatch {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 4px;
    background-image:
        linear-gradient(45deg, #33415580 25%, transparent 25%),
        linear-gradient(-45deg, #33415580 25%, transparent 25%);
    background-size: 8px 8px;
}

.soft-proof-panel .gamut-note {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    color: #94A3B8;
}
