/* Shared layout for price-schedule ADD/EDIT dialogs (match Product Price Export form) */

.pp-schedule-dialog-shell {
    max-height: 78vh;
    overflow-y: auto;
    width: 100%;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 8px;
}

.pp-schedule-card {
    border-radius: 18px;
    border: 1px solid rgba(17, 138, 178, .18);
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    overflow: hidden;
    background: #ffffff;
}

.pp-schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0f7ea8 0%, #118ab2 45%, #20a4c8 100%);
    color: #ffffff;
}

.pp-schedule-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

.pp-schedule-subtitle {
    font-size: 12px;
    opacity: .9;
    margin-top: 2px;
}

.pp-section {
    border: 1px solid rgba(17, 138, 178, .14);
    border-radius: 16px;
    background: #ffffff;
    padding: 12px;
    margin-bottom: 12px;
}

.pp-soft-section {
    background: #f0f9ff;
}

.pp-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f6f91;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.pp-section-title::before {
    content: "";
    width: 5px;
    height: 18px;
    border-radius: 999px;
    background: #118ab2;
    display: inline-block;
    flex-shrink: 0;
}

.pp-action-button {
    min-width: 42px;
    height: 36px;
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: 0 6px 16px rgba(17, 138, 178, .22);
}

.pp-dialog-actions-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    background: #ffffff;
}

.pp-dialog-actions-bar .mud-button-root {
    border-radius: 10px;
    min-width: 90px;
    font-weight: 700;
}

.pp-schedule-dialog-shell .custom-label label,
.pp-schedule-dialog-shell .custom-label .mud-input-label {
    font-weight: 700 !important;
    color: #118AB2 !important;
    font-size: 12px !important;
}

.pp-schedule-dialog-shell .mud-input-root,
.pp-schedule-dialog-shell .mud-select,
.pp-schedule-dialog-shell .mud-picker-input-button {
    font-size: 13px;
}

.pp-schedule-dialog-shell .mud-input-control {
    margin-top: 2px;
    margin-bottom: 2px;
}

.text-right-input input,
.pp-schedule-dialog-shell .text-right input {
    text-align: right !important;
}

/* LCC Hãng tàu — COC / SOC toggle (match form_lcc_hang_tau) */
.lcc-toggle-row {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.lcc-toggle-btn {
    flex: 1;
    height: 38px;
    border-radius: 8px !important;
    border: 1px solid #c9c9c9 !important;
    background: #fff !important;
    color: #1a1a1a !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-weight: 500 !important;
}

.lcc-toggle-btn.lcc-active-coc {
    background: #e6f1fb !important;
    color: #185fa5 !important;
    border-color: #2e75b6 !important;
    font-weight: 700 !important;
}

.lcc-toggle-btn.lcc-active-soc {
    background: #eaf3de !important;
    color: #3b6d11 !important;
    border-color: #3b6d11 !important;
    font-weight: 700 !important;
}

.lcc-section-coc {
    background: #f5f9fd !important;
    border-color: rgba(46, 117, 182, .25) !important;
}

.lcc-section-soc {
    background: #f2f8ea !important;
    border-color: rgba(59, 109, 17, .25) !important;
}

.lcc-section-soc .pp-section-title {
    color: #3b6d11;
}

.lcc-section-soc .pp-section-title::before {
    background: #3b6d11;
}

.lcc-label-highlight {
    color: #185fa5 !important;
    font-weight: 700 !important;
}

.lcc-note {
    font-weight: 400;
    color: #9b9b9b;
    text-transform: none;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    .pp-schedule-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .pp-dialog-actions-bar {
        justify-content: stretch;
    }

        .pp-dialog-actions-bar .mud-button-root {
            flex: 1;
        }

    .lcc-toggle-row {
        flex-direction: column;
    }
}
