body {
    background: #2b3e50;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ebebeb;
    -webkit-tap-highlight-color: transparent;
}

.production-tablet-page {
    touch-action: manipulation;
}

.container-tablet {
    max-width: 1400px;
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
}

.pb-tablet-safe {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.order-info-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.main-info-card .info-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #5a6c7d;
}

.main-info-card .info-item:last-child {
    border-bottom: none;
}

.main-info-card .info-item label {
    font-weight: 600;
    color: #bdc3c7;
    margin: 0;
}

.main-info-card .info-item span {
    color: #ebebeb;
    text-align: right;
}

.btn-touch {
    min-height: 48px;
    font-size: 1.05rem;
    padding: 0.7rem 1.25rem;
    width: 100%;
}

.btn-touch-centered {
    width: auto;
    min-width: 200px;
    max-width: 360px;
}

.execution-header-compact {
    padding: 0.45rem 0;
    margin-bottom: 0;
}

.execution-header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.execution-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 44px;
}

.execution-header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.stats-badge {
    background: #2b3e50;
    color: #5bc0de;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid #5bc0de;
    white-space: nowrap;
}

.production-workstation-badge {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-release-header {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0.45rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    max-width: 100%;
    white-space: nowrap;
}

@media (min-width: 576px) {
    .execution-header-inner {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .execution-header-row {
        flex: 1;
        min-width: 0;
    }

    .execution-header-actions {
        width: auto;
        flex-shrink: 0;
    }
}

.btn-back-compact {
    flex-shrink: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    min-height: 40px;
    line-height: 1.2;
}

.order-info-header-compact {
    flex: 1;
    min-width: 0;
    gap: 0.35rem 0.5rem;
    flex-wrap: wrap;
    align-items: baseline;
}

.order-info-header-compact .order-number {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    margin-right: 0;
    flex-shrink: 0;
}

.order-info-header-compact .order-name {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1 1 100%;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    word-break: break-word;
}

.card-header-compact,
.card-header-compact-static {
    padding: 0.55rem 0.85rem;
}

.card-header-compact {
    cursor: pointer;
    user-select: none;
}

.card-header-compact:hover {
    background: #657585;
}

.card-header-compact-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-title-compact {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #ebebeb;
}

.card-header-summary {
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #bdc3c7;
    line-height: 1.35;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
}

.summary-sep {
    opacity: 0.65;
}

.order-status-inline {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    text-transform: none;
    letter-spacing: 0;
}

.collapse-chevron {
    font-size: 0.7rem;
    color: #bdc3c7;
    transition: transform 0.2s ease;
}

.collapsed-toggle[aria-expanded="true"] .collapse-chevron {
    transform: rotate(180deg);
}

.card-body-compact {
    padding: 0.75rem 0.85rem 0.85rem;
}

.main-info-collapsible .info-item {
    padding: 0.4rem 0;
    font-size: 0.92rem;
}

.weight-card-compact .card-body-compact {
    padding: 0.65rem 0.85rem 0.85rem;
}

.weight-compact-layout {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.weight-display-compact {
    text-align: center;
    padding: 0;
}

.weight-display-compact .weight-value {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    margin: 0;
    border-width: 1px;
    border-radius: 8px;
}

.weight-display-compact .weight-number {
    font-size: 2.35rem;
    line-height: 1;
}

.weight-display-compact .weight-unit {
    font-size: 1rem;
    margin-left: 0.25rem;
}

.weight-meta-compact {
    display: grid;
    grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr);
    gap: 0.45rem 0.75rem;
}

.weight-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.weight-meta-item-wide {
    grid-column: 1 / -1;
}

.weight-meta-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.weight-meta-value {
    font-size: 0.95rem;
    color: #ebebeb;
    word-break: break-word;
}

.accept-weight-centered {
    display: flex;
    justify-content: center;
    margin-top: 0.15rem;
}

.action-buttons-tablet {
    flex-direction: column;
    align-items: center;
}

.action-buttons-tablet .btn {
    width: auto;
    min-width: 200px;
    max-width: 360px;
}

.btn-touch-sm {
    min-height: 44px;
    padding: 0.5rem 0.85rem;
    font-size: 0.95rem;
}

.form-switch-lg .form-check-input {
    width: 3rem;
    height: 1.55rem;
    cursor: pointer;
}

.form-switch-lg .form-check-label {
    font-size: 1rem;
    cursor: pointer;
    padding-left: 0.35rem;
}

.header {
    background: #4e5d6c;
    border-bottom: 1px solid #5a6c7d;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.header h1 {
    color: #ebebeb;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.header h3 {
    color: #ebebeb;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.header .info {
    color: #bdc3c7;
    text-align: center;
    margin-top: 0.5rem;
}

.order-number {
    background: #df691a;
    color: #ebebeb;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.order-details {
    background: #4e5d6c;
    border: 1px solid #5a6c7d;
    border-radius: 5px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.order-details h2 {
    color: #ebebeb;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #df691a;
    padding-bottom: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #5a6c7d;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #bdc3c7;
    min-width: 200px;
}

.detail-value {
    font-weight: 500;
    color: #ebebeb;
    text-align: right;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-новое {
    background: #2b3e50;
    color: #5bc0de;
    border: 1px solid #5bc0de;
}

.status-в-работе {
    background: #2b3e50;
    color: #f0ad4e;
    border: 1px solid #f0ad4e;
}

.status-завершено {
    background: #2b3e50;
    color: #5cb85c;
    border: 1px solid #5cb85c;
}

.status-готово {
    background: #2b3e50;
    color: #28a745;
    border: 1px solid #28a745;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 1.1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    min-width: 220px;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #df691a;
    color: #ebebeb;
}

.btn-secondary {
    background: #5a6c7d;
    color: #ebebeb;
}

.btn-success {
    background: #5cb85c;
    color: #ebebeb;
}

.btn-danger {
    background: #d9534f;
    color: #ebebeb;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #5bc0de;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #46b8da;
    text-decoration: underline;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid #ebebeb;
    color: #ebebeb;
    border-radius: 5px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.error-message {
    background: #2b3e50;
    border: 1px solid #d9534f;
    color: #d9534f;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin: 2rem 0;
}

.recipe-components {
    margin-top: 1.5rem;
}

.recipe-components h5 {
    color: #ebebeb;
    margin-bottom: 1rem;
    font-weight: 600;
}

.table {
    background: #4e5d6c;
    border: 1px solid #5a6c7d;
    border-radius: 5px;
    overflow: hidden;
}

.table thead th {
    background: #5a6c7d;
    color: #ebebeb;
    border-bottom: 1px solid #5a6c7d;
    font-weight: 600;
    padding: 0.75rem;
}

.table tbody td {
    color: #ebebeb;
    border-bottom: 1px solid #5a6c7d;
    padding: 0.75rem;
}

.table tbody tr:hover {
    background: #5a6c7d;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #4e5d6c;
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background: #5a6c7d;
}

.alert {
    border-radius: 5px;
    border: 1px solid #5a6c7d;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-info {
    background: #2b3e50;
    color: #5bc0de;
    border-color: #5bc0de;
}

.alert-warning {
    background: #2b3e50;
    color: #f0ad4e;
    border-color: #f0ad4e;
}

.alert-success {
    background: #2b3e50;
    color: #5cb85c;
    border-color: #5cb85c;
}

.alert-danger {
    background: #2b3e50;
    color: #d9534f;
    border-color: #d9534f;
}

.max-width-card {
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #4e5d6c;
    border: 1px solid #5a6c7d;
    border-radius: 5px;
    margin-bottom: 0.75rem;
}

.card-header {
    background: #5a6c7d;
    color: #ebebeb;
    border-radius: 5px 5px 0 0;
    border-bottom: 1px solid #5a6c7d;
    padding: 1rem;
}

.card-header h3 {
    color: #ebebeb;
    font-weight: 600;
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 2rem;
    color: #ebebeb;
}

.form-select {
    background-color: #4e5d6c;
    border: 1px solid #5a6c7d;
    color: #ebebeb;
    border-radius: 5px;
    padding: 0.5rem 2.25rem 0.5rem 0.5rem;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-select:focus {
    background: #5a6c7d;
    border-color: #df691a;
    color: #ebebeb;
    box-shadow: 0 0 0 0.2rem rgba(223, 105, 26, 0.25);
}

.form-select option {
    background: #4e5d6c;
    color: #ebebeb;
}

.weighing-status {
    min-width: 120px;
}

/* Стили для карточки веса */
.weight-display {
    text-align: center;
    padding: 1rem;
}

.weight-display h4 {
    color: #bdc3c7;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.weight-value {
    background: #4e5d6c;
    border: 2px solid #5a6c7d;
    border-radius: 10px;
    padding: 2rem;
    margin: 1rem 0;
    display: inline-block;
    min-width: 200px;
}

.weight-number {
    font-size: 3rem;
    font-weight: 700;
    color: #df691a;
    display: block;
    line-height: 1;
}

.weight-unit {
    font-size: 1.5rem;
    color: #bdc3c7;
    font-weight: 500;
    margin-left: 0.5rem;
}

.weight-info {
    padding: 1rem;
}

.weight-info .info-item {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #5a6c7d;
}

.weight-info .info-item:last-child {
    border-bottom: none;
}

.weight-info .info-item label {
    font-weight: 600;
    color: #bdc3c7;
    display: block;
    margin-bottom: 0.25rem;
}

.weight-info .info-item span {
    font-weight: 500;
    color: #ebebeb;
}

/* Статусы соединения */
.status-connected {
    background: #27ae60;
    color: #ebebeb;
    border: 1px solid #27ae60;
}

.status-disconnected {
    background: #e74c3c;
    color: #ebebeb;
    border: 1px solid #e74c3c;
}

/* Анимация для обновления веса */
.weight-number {
    transition: all 0.3s ease;
}

.weight-number.updated {
    animation: weightUpdate 0.5s ease-in-out;
}

@keyframes weightUpdate {
    0% {
        transform: scale(1);
        color: #df691a;
    }
    50% {
        transform: scale(1.1);
        color: #f39c12;
    }
    100% {
        transform: scale(1);
        color: #df691a;
    }
}

.weight-display .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* Планшеты: карточный вид компонентов рецепта */
@media (max-width: 1024px) {
    .execution-header {
        margin-bottom: 0;
        padding: 0.4rem 0;
    }

    .btn-back-tablet {
        width: auto;
    }

    .weight-card-tablet {
        position: sticky;
        top: 0;
        z-index: 20;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .weight-display-compact .weight-number {
        font-size: 2.1rem;
    }

    .accept-weight-wrap .btn-touch-centered {
        width: 100%;
        max-width: 320px;
    }

    .recipe-table-wrap {
        overflow: visible;
    }

    .recipe-components-table thead {
        display: none;
    }

    .recipe-components-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #5a6c7d;
        border-radius: 8px;
        padding: 0.75rem 1rem;
        background: #4e5d6c;
    }

    .recipe-components-table tbody tr.component-row-selected {
        border-color: #6d7f92;
        box-shadow: inset 3px 0 0 rgba(223, 105, 26, 0.55);
        background: #556575;
    }

    .recipe-components-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.55rem 0;
        border: none;
        border-bottom: 1px solid rgba(90, 108, 125, 0.5);
        text-align: right;
    }

    .recipe-components-table tbody td:last-child {
        border-bottom: none;
    }

    .recipe-components-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #bdc3c7;
        text-align: left;
        flex: 0 0 42%;
        font-size: 0.9rem;
    }

    .recipe-components-table .packages-cell {
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .recipe-components-table .packages-cell .accept-packages-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .component-row.clickable-row {
        min-height: 48px;
    }

    .modal-dialog {
        max-width: min(560px, calc(100vw - 2rem));
        margin: 1rem auto;
    }

    .modal-footer {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .modal-footer .btn {
        flex: 1 1 45%;
        min-height: 48px;
        font-size: 1.05rem;
    }

    #preparationCompleteBtn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .order-details {
        padding: 1rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }

    .weight-value {
        min-width: 150px;
        padding: 1.5rem;
    }
    
    .weight-number {
        font-size: 2.5rem;
    }
    
    .weight-unit {
        font-size: 1.2rem;
    }
    
    .weight-display h4 {
        font-size: 1rem;
    }
} 

.recipe-components tbody tr {
    cursor: pointer;
}

.packages-cell {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.packages-cell .accept-packages-btn {
    white-space: nowrap;
}

.accept-packages-btn.btn-outline-primary {
    color: #f5f5f5;
    border: 1px solid #df691a;
    background-color: rgba(223, 105, 26, 0.22);
    font-weight: 600;
}

.accept-packages-btn.btn-outline-primary:hover:not(:disabled),
.accept-packages-btn.btn-outline-primary:focus:not(:disabled) {
    color: #fff;
    background-color: #df691a;
    border-color: #df691a;
    box-shadow: none;
}

.accept-packages-btn.btn-outline-primary:disabled {
    color: #c8d0d8;
    border-color: #7a8a9a;
    background-color: rgba(90, 108, 125, 0.35);
    opacity: 1;
}

.component-row.component-row-selected .accept-packages-btn.btn-outline-primary:not(:disabled) {
    background-color: rgba(223, 105, 26, 0.3);
}

.component-row.completed-component .accept-packages-btn.btn-outline-primary:disabled {
    color: #5a6268;
    border-color: #868e96;
    background-color: rgba(108, 117, 125, 0.25);
}

.recipe-components tbody tr.clickable-row:hover:not(.component-row-selected):not(.completed-component):not(.table-muted) {
    background-color: #556575 !important;
}

.component-row.component-row-selected {
    background-color: #556575 !important;
    box-shadow: inset 3px 0 0 rgba(223, 105, 26, 0.55);
}

.component-row.component-row-selected td {
    color: #ebebeb;
}

/* Стили для строгой последовательности взвешивания */
.component-row.table-muted {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Стили для неактивных завершенных компонентов */
.component-row.completed-component {
    opacity: 0.9 !important;
    background-color: #9a9a9b !important;
    color: #171818 !important;
    pointer-events: none !important;
}

.component-row.completed-component:hover {
    background-color: #f8f9fa !important;
    cursor: not-allowed !important;
}

.component-row.completed-component td {
    color: #495057 !important;
}

.component-row.completed-component .badge {
    opacity: 0.8 !important;
}

/* Стили для неактивных кнопок в завершенных компонентах */
.component-row.completed-component .accept-packages-btn {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.component-row.completed-component .accept-packages-btn:hover {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Стили для неактивных кнопок в недоступных строках */
.component-row.table-muted .accept-packages-btn {
    opacity: 0.5 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.component-row.table-muted .accept-packages-btn:hover {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Стили для индикатора загрузки */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(75, 109, 124, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-radius: 5px;
}

.recipe-components {
    position: relative;
}

/* Стили для модальных окон */
.modal-content {
    background: #4e5d6c;
    border: 1px solid #5a6c7d;
    color: #ebebeb;
}

.modal-header {
    background: #2b3e50;
    border-bottom: 1px solid #5a6c7d;
    color: #ebebeb;
}

.modal-header .close {
    color: #ebebeb;
    opacity: 0.7;
}

.modal-header .btn-close {
    color: #ebebeb;
    opacity: 0.85;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.25rem -0.25rem auto;
}

.modal-header .btn-close:hover,
.modal-header .close:hover {
    opacity: 1;
}

.modal-body {
    background: #4e5d6c;
    color: #ebebeb;
}

.modal-footer {
    background: #2b3e50;
    border-top: 1px solid #5a6c7d;
}

.modal-footer-centered {
    justify-content: center;
}

.modal-footer-centered .btn {
    flex: 0 0 auto;
}

.modal-title {
    color: #ebebeb;
    font-weight: 600;
}

/* Убрали стили для иконок, так как используем только текст */

/* Анимация появления модальных окон */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Стили для кнопок отладки весов */
.weight-display .btn-sm {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.weight-display .btn-warning {
    background-color: #f39c12;
    border-color: #f39c12;
    color: #fff;
}

.weight-display .btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

.weight-display .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.weight-stub-banner {
    text-align: center;
    margin-top: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    background: rgba(240, 173, 78, 0.15);
    border: 1px dashed #f0ad4e;
    color: #f0ad4e;
    font-size: 0.85rem;
}

.fpw-weight-tolerances-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.75rem;
}

.fpw-weight-tolerances-row .weight-meta-item {
    align-items: center;
    text-align: center;
}

.fpw-weight-tolerances-row .weight-meta-label,
.fpw-weight-tolerances-row .weight-meta-value {
    white-space: nowrap;
}

.fpw-batch-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.fpw-batch-label {
    font-weight: 600;
    color: #bdc3c7;
    margin: 0;
    text-align: center;
}

.fpw-batch-input {
    width: 33.333%;
    min-width: 5rem;
    max-width: 8rem;
    min-height: 44px;
    background: #2b3e50;
    border: 1px solid #5a6c7d;
    color: #ebebeb;
    text-align: center;
}

.execution-header-inner-fpw {
    gap: 0.35rem;
    flex-direction: column;
    align-items: stretch;
}

@media (min-width: 576px) {
    .execution-header-inner-fpw {
        flex-direction: column;
        align-items: stretch;
    }
}

.execution-header-inner-fpw .execution-header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.execution-header-inner-fpw .execution-header-actions {
    margin-left: auto;
    width: auto;
    flex-shrink: 0;
}

.execution-header-inner-fpw .execution-order-name-full {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    width: 100%;
    padding-top: 0.15rem;
    text-align: center;
}

.execution-header-inner-unified {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}

.execution-header-actions-row,
.execution-header-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
    min-height: 44px;
}

.execution-header-meta-row .order-number {
    margin-right: 0;
}

.execution-header-arm {
    margin-left: auto;
    flex-shrink: 1;
    min-width: 0;
    max-width: 65%;
    display: flex;
    justify-content: flex-end;
}

.execution-header-inner-unified .execution-order-name-full {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    width: 100%;
    padding-top: 0.15rem;
    text-align: center;
}

.execution-header-stats {
    margin-top: 0;
    justify-content: center;
} 