.today-shift-section {
    margin: 22px 0;
    padding: 20px;
    border: 1px solid #dce6f1;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(32, 80, 137, .08);
    text-align: left;
}

.today-shift-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.today-shift-heading h2 {
    margin: 3px 0 0;
    font-size: 22px;
}

.today-shift-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #eef2f6;
    color: #657383;
    font-size: 12px;
    font-weight: 800;
}

.today-shift-status.working {
    background: #eaf3fc;
    color: #205089;
}

.today-shift-status.completed {
    background: #e9f5ef;
    color: #176b57;
}

.today-shift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.today-shift-metric {
    min-width: 0;
    padding: 14px;
    border: 1px solid #e2e9f1;
    border-radius: 14px;
    background: #f8fafd;
}

.today-shift-metric.wide {
    grid-column: 1 / -1;
}

.today-shift-metric span {
    display: block;
    margin-bottom: 6px;
    color: #788594;
    font-size: 12px;
}

.today-shift-metric strong {
    display: block;
    color: #193a5c;
    font-size: 18px;
    line-height: 1.25;
}

.today-shift-metric small {
    display: block;
    margin-top: 5px;
    color: #8a95a2;
    font-size: 11px;
}

.today-shift-note {
    margin: 14px 2px 0;
    color: #68798a;
    font-size: 13px;
    line-height: 1.45;
}

.today-shift-note.warning {
    padding: 10px 12px;
    border-radius: 11px;
    background: #fff4d8;
    color: #805e00;
}

.today-shift-error {
    margin: 12px 0 0;
    color: #a33b32;
    font-size: 13px;
}

/* Full-width placement inside the employee dashboard grid */
#today-shift-section {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
}

.today-shift-heading,
.today-shift-grid,
.today-shift-note {
    min-width: 0;
}

/* Multiple work intervals */
.today-shift-intervals {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e2e9f1;
    border-radius: 15px;
    background: #f8fafd;
}

.today-shift-intervals-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.today-shift-intervals-heading strong {
    color: #193a5c;
    font-size: 14px;
}

.today-shift-intervals-heading span {
    color: #8a95a2;
    font-size: 11px;
}

.today-shift-intervals-list {
    display: grid;
    gap: 8px;
}

.today-shift-interval {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px;
    border-radius: 11px;
    background: #ffffff;
}

.today-shift-interval.open {
    background: #edf5fc;
}

.today-shift-interval-number {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eaf2fa;
    color: #205089;
    font-size: 12px;
    font-weight: 800;
}

.today-shift-interval strong {
    min-width: 0;
    color: #193a5c;
    font-size: 14px;
}

.today-shift-interval-duration {
    color: #788594;
    font-size: 12px;
    white-space: nowrap;
}

.today-shift-interval.open .today-shift-interval-duration {
    color: #205089;
    font-weight: 800;
}

@media (max-width: 380px) {
    .today-shift-interval {
        grid-template-columns: 24px minmax(0, 1fr);
    }

    .today-shift-interval-duration {
        grid-column: 2;
    }
}
