.erp-page {
    background: #f7f9fc;
    padding: 20px;
    min-height: calc(100vh - 64px);
}

.erp-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e6eaf0;
    padding: 18px;
    margin-bottom: 16px;
}

.erp-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #3a4b5c;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.erp-card-title .mud-icon-root {
    font-size: 18px;
    color: #4f7cff;
}

.erp-card .mud-input-control {
    margin-bottom: 4px;
}

.erp-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    align-items: start;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-12 { grid-column: span 12; }

.erp-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.erp-four-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}

.erp-total-box {
    background: #f1f6ff;
    border: 1px solid #dce6ff;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.erp-total-box .mud-input-control {
    margin-bottom: 0;
}

.erp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 12px 0;
}

.erp-actions-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.erp-actions-right {
    display: flex;
    gap: 8px;
}

.erp-header-bar {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e6eaf0;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.erp-header-bar .mud-chip {
    font-weight: 600;
}

.erp-charges-shipper {
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 14px;
    background: #fafcff;
}

.erp-charges-shipper .erp-card-title {
    color: #1565c0;
}

.erp-charges-receiver {
    border: 1px solid #ffccbc;
    border-radius: 8px;
    padding: 14px;
    background: #fffaf8;
}

.erp-charges-receiver .erp-card-title {
    color: #e65100;
}

.erp-charges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.erp-charges-header .erp-card-title {
    margin-bottom: 0;
}

.erp-warning-bar {
    margin-bottom: 16px;
}

.erp-proceed-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.erp-proceed-trigger {
    cursor: not-allowed;
}

.erp-page .mud-input {
    font-size: 13px;
}

.erp-page .mud-input-label {
    color: #5c6b7a;
}

.erp-page .mud-table {
    border-radius: 6px;
}

.erp-page .mud-paper {
    box-shadow: none;
}

.erp-card .mud-divider {
    margin: 12px 0;
}

.erp-section-divider {
    border: none;
    border-top: 1px solid #e6eaf0;
    margin: 12px 0;
}

.erp-instructions-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.erp-instructions-list .mud-input-control-boolean-input {
    margin: 0;
}

.erp-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .erp-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .col-1 { grid-column: span 2; }
    .col-2 { grid-column: span 3; }
    .col-3 { grid-column: span 3; }
    .col-4 { grid-column: span 3; }
}

@media (max-width: 900px) {
    .erp-grid {
        grid-template-columns: 1fr 1fr;
    }
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-12 {
        grid-column: span 1;
    }
    .col-12 {
        grid-column: span 2;
    }
    .erp-two-col {
        grid-template-columns: 1fr;
    }
    .erp-four-col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .erp-page {
        padding: 10px;
    }
    .erp-card {
        padding: 12px;
    }
    .erp-grid {
        grid-template-columns: 1fr;
    }
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
    .col-7, .col-8, .col-9, .col-10, .col-12 {
        grid-column: span 1;
    }
    .erp-two-col, .erp-four-col {
        grid-template-columns: 1fr;
    }
    .erp-actions {
        flex-direction: column;
    }
}
