#scheduleModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    overflow-y: auto;
}

.modal-box {
    background: white;
    margin: 3% auto;
    padding: 30px;
    width: 92%;
    max-width: 1000px;
    border-radius: 10px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f64fd6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 13px;
}

.modal-close:hover {
    background: #d43ab8;
}

.grid-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.station-input {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border: 2px solid #00cc00;
    border-radius: 6px;
    background: #e6ffe6;
    color: #000;
    width: 200px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.grid-title-bar {
    background: #2e77f9;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    font-family: 'Montserrat', Arial, sans-serif;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.grid-title-bar:hover {
    background: #012666;
}

.grid-add-btn {
    font-size: 12px;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid #003366;
    background: white;
    color: #f64fd6;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
}

.grid-add-btn:hover {
    background: #f64fd6;
    color: white;
}

.grid-wrap {
    overflow-x: auto;
}

#daypartGrid {
    border-collapse: collapse;
    min-width: 100%;
    font-size: 12px;
    font-family: 'Montserrat', Arial, sans-serif;
    table-layout: fixed;
}

#daypartGrid th {
    background: #f64fd6;
    color: white;
    padding: 7px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    border: 1px solid #000000;
    white-space: nowrap;
}

#daypartGrid th.lft {
    text-align: left;
    padding-left: 8px;
    width: 150px;
}

#daypartGrid td {
    border: 1px solid #ccc;
    padding: 0;
    background: white;
    vertical-align: middle;
}

#daypartGrid tr:nth-child(even) td {
    background: #f5f9ff;
}

#daypartGrid tr:hover td {
    background: #eef4ff;
}

#daypartGrid td.dp-name input,
#daypartGrid td.num-cell input,
#daypartGrid td.rate-cell input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #000;
    padding: 6px 4px;
    font-family: 'Montserrat', Arial, sans-serif;
    text-align: center;
}

#daypartGrid td.dp-name input {
    text-align: left;
    padding-left: 8px;
    font-weight: 600;
}

#daypartGrid td.dp-name input:focus,
#daypartGrid td.num-cell input:focus,
#daypartGrid td.rate-cell input:focus,
#daypartGrid td.sel-cell select:focus {
    background: #dceaff;
    outline: none;
}

#daypartGrid td.sel-cell select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #000;
    padding: 6px 2px;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    text-align: center;
}

#daypartGrid td.cost-cell input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 12px;
    color: #cc0000;
    font-weight: 600;
    padding: 6px 4px;
    text-align: center;
    font-family: 'Montserrat', Arial, sans-serif;
}

#daypartGrid td.cost-cell input:focus {
    background: #dceaff;
    outline: none;
}

#daypartGrid td.del-cell {
    text-align: center;
    padding: 3px;
    width: 36px;
}

.del-row-btn {
    font-size: 12px;
    padding: 3px 8px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid #ccc;
    background: white;
    color: #cc0000;
    font-family: 'Montserrat', Arial, sans-serif;
}

.del-row-btn:hover {
    background: #cc0000;
    color: white;
}

#daypartGrid td.ads-week {
    padding: 0 !important;
}

#daypartGrid td.ads-week .ads-value {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}
