body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    background: #f5f5f7;
    color: #1d1d1f;
}
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}
h1 {
    text-align: center;
    font-weight: 600;
}
.options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.load-form input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.table, table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
th, td {
    border-bottom: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}
.segments-open .segment,
.segments-pharm .segment {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.segments-pharm .time-range {
    min-width: 120px;
    align-self: center;
}
input[type="time"], select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.section-options .pharmacist-option {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}
.ph-select {
    color:#fff;
}
.add-segment, .add-pharm {
    padding: 6px 12px;
    background-color: #007aff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-segment:hover, .add-pharm:hover {
    background-color: #0051c3;
}
.summary table {width:100%; border-collapse: collapse;}
.summary th, .summary td {border-bottom:1px solid #ccc; padding:8px; text-align:center;}
.message {color: green;}
.error {color: red;}
.code-info {text-align: center; margin-top: 20px;}
.open-hours {margin-top:10px; text-align:center;}
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    opacity: 0;
    transition: opacity .5s;
    z-index: 1000;
}
.toast.show {opacity:1;}
.toast.error {background:#f44336;}

.help-button {
    z-index: 1002;
}

.help-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
    z-index: 1000;
}

.help-overlay.show {
    opacity: 1;
    visibility: visible;
}

.help-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 320px;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform .3s;
    z-index: 1001;
    padding: 20px;
    overflow-y: auto;
}

.help-sidebar.open {
    transform: translateX(0);
}

.close-help {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}
