.production-content {
    min-width: 0;
    padding: 20px 22px 34px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 400;
}

.production-content .topbar {
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.production-content .topbar h1 {
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -.025em;
}

.production-content .topbar .eyebrow {
    margin-bottom: 4px;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .12em;
}

.production-content .topbar .muted {
    margin-top: 5px;
    font-size: 12px;
}

.production-content .user-badge {
    padding: 8px 11px;
    border-radius: 10px;
}

.production-content .user-badge span {
    font-size: 12px;
    font-weight: 600;
}

.production-content .user-badge small {
    font-size: 10px;
}

.production-summary {
    gap: 8px;
    margin-bottom: 10px;
}

.production-summary article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(32, 80, 137, .035);
}

.production-summary span {
    min-width: 0;
    margin: 0;
    font-size: 11px;
    font-weight: 450;
}

.production-summary strong {
    margin-left: 10px;
    font-size: 19px;
    font-weight: 650;
    line-height: 1;
}

.production-toolbar {
    grid-template-columns: minmax(260px, 1.5fr) minmax(170px, .55fr) auto;
    gap: 9px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
}

.production-toolbar label,
.production-dialog label {
    gap: 5px;
    font-size: 11px;
    font-weight: 550;
}

.production-toolbar input,
.production-toolbar select {
    min-height: 35px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.production-actions {
    gap: 7px;
}

.production-actions button {
    min-height: 35px;
    margin: 0;
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
}

.production-error {
    margin-bottom: 10px;
}

.orders-list {
    gap: 8px;
}

.production-loading,
.production-empty {
    padding: 24px 16px;
    border-radius: 10px;
    font-size: 12px;
}

.production-order {
    border-radius: 10px;
    box-shadow: 0 3px 11px rgba(32, 80, 137, .045);
}

.production-order-main {
    grid-template-columns: minmax(230px, 1.55fr) 90px 105px minmax(150px, .75fr) auto;
    gap: 12px;
    padding: 9px 11px;
    background: linear-gradient(180deg, #fff, #fbfcfe);
}

.production-order-kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.production-order-title h2 {
    margin: 3px 0 2px;
    overflow: hidden;
    color: #192f45;
    font-size: 15px;
    font-weight: 620;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.production-order-title p {
    margin: 0;
    overflow: hidden;
    color: #667687;
    font-size: 11px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.production-order-number {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .025em;
}

.production-order-metric {
    min-width: 0;
}

.production-order-metric span,
.production-order-metric small {
    display: block;
    margin: 0;
    color: #718091;
    font-size: 10px;
    line-height: 1.2;
}

.production-order-metric strong {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #263f58;
    font-size: 12px;
    font-weight: 560;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.production-order-metric.danger strong,
.production-order-metric.danger small {
    color: #a84238;
}

.production-order-actions {
    display: flex;
    justify-content: flex-end;
}

.production-order-actions button {
    min-height: 30px;
    margin: 0;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
}

.production-status {
    max-width: 100%;
    padding: 3px 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}

.production-order-note {
    padding: 5px 11px;
    border-top: 1px solid #edf1f5;
    background: #fff9ea;
    color: #6f603c;
    font-size: 11px;
    line-height: 1.35;
    white-space: pre-line;
}

.production-order-details {
    padding: 0;
    border-top: 1px solid #e8edf3;
}

.production-items-empty {
    padding: 8px 11px;
    color: #8995a2;
    font-size: 10px;
}

.production-items-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.production-items-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.production-items-table th {
    padding: 4px 8px;
    border-bottom: 1px solid #e5ebf1;
    background: #f5f8fb;
    color: #6f7e8e;
    font-size: 10px;
    font-weight: 550;
    line-height: 1.2;
    text-align: left;
}

.production-items-table td {
    padding: 4px 8px;
    border-bottom: 1px solid #edf1f5;
    color: #2d4359;
    font-size: 11px;
    line-height: 1.25;
    vertical-align: top;
}

.production-items-table tbody tr:last-child td {
    border-bottom: 0;
}

.production-items-table tbody tr:hover td {
    background: #f9fbfd;
}

.production-items-table th:nth-child(1) { width: 58px; }
.production-items-table th:nth-child(2) { width: auto; }
.production-items-table th:nth-child(3) { width: 90px; }
.production-items-table th:nth-child(4) { width: 145px; }
.production-items-table th:nth-child(5) { width: 120px; }

.production-item-number {
    color: #205089 !important;
    font-weight: 650;
    white-space: nowrap;
}

.production-item-info strong,
.production-item-info small,
.production-item-info span,
.production-item-dates span {
    display: block;
}

.production-item-info strong {
    color: #1c354e;
    font-size: 12px;
    font-weight: 600;
}

.production-item-info small,
.production-item-dates span {
    margin-top: 0;
    color: #68798a;
    font-size: 10px;
}

.production-item-info {
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
}

.production-item-specifications {
    margin-top: 1px;
    color: #40556a;
    font-size: 11px;
    line-height: 1.2;
    white-space: pre-line;
}

.production-item-notes {
    margin-top: 1px !important;
    color: #806329 !important;
    font-weight: 500;
    line-height: 1.2;
}

.production-item-quantity {
    white-space: nowrap;
}

.production-item-quantity strong {
    color: #203a54;
    font-size: 12px;
    font-weight: 620;
}

.production-item-quantity span {
    margin-left: 3px;
    color: #7c8997;
    font-size: 10px;
}

.production-dialog {
    border-radius: 18px;
}

.production-dialog form {
    padding: 22px;
}

.production-form-grid {
    gap: 13px;
}

@media (max-width: 1100px) {
    .production-order-main {
        grid-template-columns: minmax(210px, 1.4fr) 88px 105px minmax(135px, .7fr);
    }

    .production-order-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .production-content {
        padding: 14px 11px 28px;
    }

    .production-summary {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .production-summary article {
        padding: 8px 10px;
    }

    .production-summary strong {
        font-size: 17px;
    }

    .production-toolbar {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .production-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .production-order-main {
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        padding: 9px;
    }

    .production-order-title,
    .production-order-actions {
        grid-column: 1 / -1;
    }

    .production-order-title h2,
    .production-order-title p {
        white-space: normal;
    }

    .production-items-table {
        min-width: 780px;
    }

    .production-form-grid {
        grid-template-columns: 1fr;
    }

    .production-form-grid .wide {
        grid-column: auto;
    }

    .production-dialog form {
        padding: 17px;
    }
}
