/* 我的班表（pages/hrMySchedule.js）：員工只看自己的班，今天／週／月三個分頁。
   手機優先：單欄、卡片式；電腦上同樣的版面放在左側，最寬 640px。 */

.my-schedule {
    max-width: 640px;
}

.my-schedule-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
}

.my-schedule-tab {
    flex: 1;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0;
}

.my-schedule-tab.active {
    color: #111827;
    border-bottom-color: var(--primary-color, #2563eb);
}

.my-schedule-date {
    margin: 4px 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* 一筆班 */
.my-shift-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.my-shift {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 12px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--primary-color, #2563eb);
    border-radius: 8px;
}

.my-shift-time {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.my-shift-note {
    color: #6b7280;
    font-size: 14px;
}

.my-schedule-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 16px;
    background: white;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
    text-align: center;
}

.my-schedule-empty strong {
    color: #374151;
}

/* 上一段／下一段 */
.my-schedule-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.my-schedule-nav button {
    width: 40px;
    height: 40px;
    padding: 0;
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    font-size: 20px;
    line-height: 1;
}

.my-schedule-nav-title {
    font-size: 16px;
}

.my-schedule-back-today {
    display: block;
    margin: -4px 0 8px auto;
    padding: 0;
}

/* 週：七天一列一列 */
.my-schedule-week {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.my-schedule-day {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #f3f4f6;
}

.my-schedule-day:last-child {
    border-bottom: none;
}

.my-schedule-day.is-today {
    background: #ecfdf5;
}

.my-schedule-day-head {
    flex: 0 0 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #6b7280;
    font-size: 12px;
}

.my-schedule-day-head strong {
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
}

.my-schedule-day.is-today .my-schedule-day-head strong {
    color: var(--primary-color, #2563eb);
}

.my-schedule-day-body {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.my-schedule-day-body .my-shift-list {
    width: 100%;
}

.my-schedule-none {
    color: #9ca3af;
    font-size: 14px;
}

/* 月：小月曆，有班的日子下面一個點 */
.my-schedule-month {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
}

.my-schedule-weekdays,
.my-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.my-schedule-weekdays span {
    padding: 4px 0 8px;
    color: #6b7280;
    font-size: 12px;
    text-align: center;
}

.my-schedule-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    padding: 2px 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #111827;
    font-size: 14px;
    cursor: pointer;
}

.my-schedule-cell.is-other-month {
    color: #c4c8cf;
}

.my-schedule-cell.is-today .my-schedule-cell-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
    color: white;
    font-weight: 700;
}

.my-schedule-cell.is-selected {
    border-color: var(--primary-color, #2563eb);
}

.my-schedule-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
}

.my-schedule-dot.is-empty {
    background: transparent;
}

.my-schedule-legend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 2px 12px;
    color: #6b7280;
    font-size: 13px;
}
