/* Manufacturing cockpit — exception strip, MPS schedule board, workbench cards */
.mfg-exception-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a237e 0%, #283593 40%, #3949ab 100%);
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.25);
}
.mfg-exception-strip__title {
    width: 100%;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
}
.mfg-exception-strip__warn {
    width: 100%;
    font-size: 12px;
    color: #ffecb3;
    margin-bottom: 4px;
}
.mfg-exception-strip__warn i { margin-right: 6px; }
.mfg-exception-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}
.mfg-exception-chip:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.mfg-exception-chip--alert {
    background: rgba(244, 67, 54, 0.35);
    border-color: rgba(255, 255, 255, 0.35);
}
.mfg-exception-chip__n {
    font-weight: 700;
    font-size: 15px;
}
.mfg-exception-strip--bench {
    margin-top: -12px;
    margin-bottom: 20px;
    border-radius: 0 0 12px 12px;
    padding-top: 10px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 55%, #1976d2 100%);
}
/* Production workbench: view switcher only (no KPI signal chips) */
.mfg-exception-strip--bench-only {
    margin-bottom: 24px;
    border-radius: 16px;
    padding: 16px 18px 18px;
    background: linear-gradient(125deg, #0c4a6e 0%, #0369a1 42%, #0ea5e9 100%);
    box-shadow: 0 4px 6px rgba(12, 74, 110, 0.15), 0 20px 40px rgba(3, 105, 161, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.mfg-exception-strip--bench-only .mfg-exception-chip {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-weight: 600;
    padding: 10px 16px;
}
.mfg-exception-strip--bench-only .mfg-exception-chip:hover {
    background: rgba(255, 255, 255, 0.26);
}
.mfg-exception-strip--bench-only .mfg-exception-chip--active {
    background: #fff;
    color: #0369a1;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.mfg-exception-strip__bench-title {
    width: 100%;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 10px;
}
.mfg-exception-strip__sub {
    width: 100%;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}
.mfg-exception-chip--active {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.mfg-dashboard-chart-wrap {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
}
.mfg-dashboard-chart-wrap h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #37474f;
}
.mfg-dashboard-chart-empty {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mfg-dashboard-chart-empty-hint {
    margin: 0;
    font-size: 13px;
    color: #78909c;
    text-align: center;
    max-width: 280px;
    line-height: 1.45;
}
/* MPS resource schedule */
.mps-schedule-page { max-width: 1400px; margin: 0 auto; }
.mps-schedule-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.mps-schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #546e7a;
    margin-bottom: 12px;
}
.mps-schedule-board {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: auto;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}
.mps-schedule-grid-header {
    display: grid;
    grid-template-columns: 180px repeat(14, minmax(64px, 1fr));
    min-width: 720px;
    border-bottom: 1px solid #cfd8dc;
}
.mps-schedule-line-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-width: 720px;
    border-bottom: 1px solid #eceff1;
}
.mps-schedule-line-row:last-child {
    border-bottom: none;
}
.mps-schedule-track {
    position: relative;
    min-height: 48px;
    width: 100%;
    min-width: 0;
}
.mps-schedule-track-bg {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.mps-schedule-day-bg {
    border-right: 1px solid #f0f0f0;
    background: #fff;
}
.mps-schedule-day-bg.mps-schedule-day--weekend {
    background: #fffaf0;
}
.mps-schedule-track-bars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.mps-schedule-bar-span {
    position: absolute;
    top: 8px;
    height: 32px;
    margin: 0;
    padding: 6px 8px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: auto;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.mps-schedule-bar-span--default {
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.35);
}
.mps-schedule-bar-span:hover {
    filter: brightness(1.06);
}
.mps-schedule-grid {
    display: grid;
    min-width: 720px;
}
.mps-schedule-corner {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #eceff1;
    border-bottom: 1px solid #cfd8dc;
    border-right: 1px solid #cfd8dc;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    color: #455a64;
}
.mps-schedule-day {
    padding: 8px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #546e7a;
    border-bottom: 1px solid #cfd8dc;
    border-right: 1px solid #eceff1;
    background: #fafafa;
}
.mps-schedule-day--weekend { background: #fff8e1; color: #f57f17; }
.mps-schedule-line-row .mps-schedule-resource {
    border-bottom: none;
}
.mps-schedule-resource {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid #eceff1;
    border-right: 1px solid #cfd8dc;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #263238;
    min-width: 160px;
}
.mps-schedule-cell {
    position: relative;
    min-height: 44px;
    border-bottom: 1px solid #eceff1;
    border-right: 1px solid #f5f5f5;
    background: #fff;
}
.mps-schedule-bar {
    position: absolute;
    top: 6px;
    left: 2px;
    right: 2px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(90deg, #1976d2, #42a5f5);
    color: #fff;
    font-size: 11px;
    padding: 6px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(25, 118, 210, 0.35);
}
.mps-schedule-bar:hover { filter: brightness(1.05); }
.mrp-workbench-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 8px;
}
.pw-overview-shell.mrp-workbench-grid {
    margin-top: 4px;
}
.mrp-workbench-card {
    border-radius: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}
.mrp-workbench-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0284c7, #22d3ee);
    opacity: 0.85;
}
.mrp-workbench-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06), 0 20px 44px rgba(15, 23, 42, 0.1);
}
.mrp-workbench-card h3 {
    margin: 6px 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.mrp-workbench-card .big {
    font-size: 2rem;
    font-weight: 800;
    color: #0369a1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.mrp-workbench-card a,
.mrp-workbench-card button.btn-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none;
}
.mrp-workbench-card a:hover,
.mrp-workbench-card button.btn-link:hover { text-decoration: underline; color: #0369a1; }

.mrp-workbench-charts {
    margin-top: 28px;
    padding: 22px 24px 26px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
}
.mrp-workbench-charts > h3 {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
