// ==============================
// Layout: Outline container
// ==============================
.Outline {
    width: 1302px;
}

// ==============================
// Top row: pickers + stat cards
// ==============================
.workorder {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    min-height: 84px;
}

.top-pickers {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
}

.stats {
    margin-left: 20px;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.stat-card {
    width: 155px;
    padding: 12px 14px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-align: left;
    border-left: 4px solid transparent;
}

.stat-label {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.stat-sub {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.blue  { border-left-color: #3b82f6; }
.green { border-left-color: #22c55e; }
.orange{ border-left-color: #f59e0b; }
.teal  { border-left-color: #14b8a6; }

// ==============================
// Pattern Info Bar
// ==============================
.Pattern {
    margin-top: 20px;
    width: 100%;
}

.info-bar {
    display: flex;
    gap: 40px;
    padding: 10px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.info-field {
    min-width: 140px;
}

.info-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
}

.info-sub {
    font-size: 11px;
    font-weight: 400;
    color: #6b7280;
}

// ==============================
// Shift Row
// ==============================
.Shift {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 20px;
    gap: 0;
    width: 100%;
    min-height: 60px;
}

// ==============================
// WO Table
// ==============================
.wo-table-wrapper {
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

.wo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;

    thead tr {
        background: #fff;
        border-bottom: 2px solid #e5e7eb;
    }

    th {
        padding: 10px 12px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: #6b7280;
        white-space: nowrap;
    }

    td {
        padding: 10px 12px;
        color: #111827;
        border-bottom: 1px solid #f3f4f6;
        white-space: nowrap;
    }

    tbody tr:hover {
        background: #f9fafb;
    }

    .row-selected {
        background: #f0f4ff;
        border-left: 3px solid #6366f1;

        td {
            color: #3730a3;
            font-weight: 500;
        }
    }

    .num-col {
        text-align: right;
        padding-right: 20px;
    }
}

// ==============================
// Bottom Production Cards
// ==============================
.TodayProductionEntry {
    display: flex;
    flex-direction: row;
    margin-top: 24px;
    gap: 20px;
    width: 100%;
}

.prod-card {
    border-radius: 10px;
    padding: 16px 18px;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    flex: 0 0 440px;
}

.prod-card-right {
    flex: 1 1 auto;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 14px;
}

.boxes-grid {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 16px;
    align-items: start;
}

.left-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-row {
    width: 100%;
}

.right-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.pr-right {
    min-width: 160px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    gap: 12px;
}

.summary-label {
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.summary-value {
    color: #111827;
    font-weight: 600;
    white-space: nowrap;
}

// Production Results specific
.production-results-grid {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 16px;
    align-items: start;
}

.pr-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pr-input-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pr-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.pr-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.pr-value-box {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    min-width: 60px;
    text-align: center;
}

.pr-unit {
    font-size: 11px;
    color: #9ca3af;
    margin-top: -6px;
}

// ==============================
// Rejection Breakdown
// ==============================
.rejection-card {
    background: #f9fafb;
    padding: 20px 22px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    width: calc(100% - 44px);
    margin: 20px 0;
}

.rej-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.rejection-types {
    display: flex;
    gap: 28px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.rej-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;

    input[type="checkbox"] {
        width: 15px;
        height: 15px;
        accent-color: #6366f1;
        cursor: pointer;
    }
}

.qty {
    width: 56px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    text-align: center;
    font-size: 13px;
    color: #111827;
}

.form-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.rej-field {
    display: flex;
    flex-direction: column;
    min-width: 240px;
}