/* 탭 중심 업무 화면 및 7일 예약 매트릭스 */
.tab-nav{position:sticky;top:58px;z-index:25;display:flex;gap:7px;overflow-x:auto;padding:9px 2px 12px;background:#f3f6fb;border-bottom:1px solid #e1e8f0;margin-bottom:12px;scrollbar-width:thin}
.tab-nav button{flex:0 0 auto;width:auto;min-height:40px;margin:0;padding:8px 15px;border:1px solid #d8e1ed;border-radius:10px;background:#fff;color:#344256;font-size:13px;font-weight:700;white-space:nowrap}
.tab-nav button.active{background:#1d4ed8;border-color:#1d4ed8;box-shadow:0 3px 9px #1d4ed82b}
#appCard{min-height:60vh}.workspace-hidden{display:none!important}.schedule-controls{display:grid;grid-template-columns:auto minmax(130px,1fr) auto;align-items:end;margin:12px 0}.schedule-controls label{margin:0}.schedule-controls button{width:auto;margin:0;padding:8px 12px}
.schedule-matrix-wrap{width:100%;overflow:auto;border:1px solid #dce4ef;border-radius:12px;background:#fff}
#scheduleList .schedule-matrix{min-width:680px}
.schedule-matrix{border-collapse:separate;border-spacing:0;width:100%;min-width:840px;table-layout:fixed}
.schedule-matrix th,.schedule-matrix td{border-right:1px solid #e5eaf2;border-bottom:1px solid #e5eaf2;padding:9px;vertical-align:top;text-align:left}
.schedule-matrix th{position:sticky;top:0;background:#f3f6fb;font-size:12px;color:#334155;z-index:2}
.schedule-matrix th:first-child{left:0;z-index:3;width:125px;min-width:125px;max-width:125px}.schedule-matrix td:first-child{position:sticky;left:0;background:#f8fafc;z-index:1;width:125px;min-width:125px;max-width:125px;font-weight:800}
.schedule-matrix tr:last-child td{border-bottom:0}.schedule-matrix th:last-child,.schedule-matrix td:last-child{border-right:0}
.schedule-day{font-weight:800;font-size:13px}.schedule-day small{display:block;color:#64748b;font-weight:500}
.schedule-cell{min-height:76px}.schedule-booking{padding:8px;margin:0 0 6px;border-radius:8px;background:#eaf1ff;border-left:3px solid #2563eb;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.schedule-booking.in-use{background:#e8f7ee;border-left-color:#16a34a}.schedule-booking.cancelled{opacity:.55;text-decoration:line-through}.schedule-booking .time{font-weight:800;font-variant-numeric:tabular-nums}.schedule-booking .who{font-weight:700;color:#243247}.schedule-booking .purpose{color:#475569}.schedule-blocked{padding:7px;margin-bottom:5px;border-radius:7px;background:#fff4d6;color:#854d0e;font-size:11px;line-height:1.4}.schedule-free{color:#94a3b8;font-size:12px}.schedule-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#64748b;margin:8px 0}.schedule-legend span{display:flex;align-items:center;gap:5px}.legend-dot{width:9px;height:9px;border-radius:3px;background:#2563eb}.legend-dot.used{background:#16a34a}.legend-dot.blocked{background:#d97706}
@media(max-width:680px){.tab-nav{top:48px;margin:0 -4px 10px;padding:8px 4px}.tab-nav button{min-height:42px;padding:8px 12px;font-size:12px}.schedule-controls{grid-template-columns:1fr 1fr}.schedule-controls label{grid-column:1/-1;grid-row:1}.schedule-controls input{grid-column:1/-1;grid-row:2}.schedule-controls button{grid-row:3}.schedule-matrix{min-width:840px}.schedule-matrix th:first-child,.schedule-matrix td:first-child{width:110px;min-width:110px;max-width:110px}.schedule-matrix th,.schedule-matrix td{padding:7px}.card{scroll-margin-top:110px}}



/* Keep upper, horizontally scrollable role menus; never override hidden. */
.tab-nav button:hover:not(:disabled):not(.active){border-color:#1d4ed8;color:#1d4ed8}
.tab-nav button[hidden]{display:none!important}
#scheduleSection>.section-head h2::before{background:#1d4ed8}
#myReservationsSection>.section-head h2::before{background:#0e7490}
.schedule-matrix-wrap{border-color:var(--ui-border)}
.schedule-matrix th{background:#eef2f8;color:#1f2937}
.schedule-booking{box-shadow:0 1px 2px #0f172a10}
.schedule-legend{padding:4px 0}

/* Candidate: 탭 내비게이션 */

.tab-nav{top:var(--header-h);background:#f3f5f9ee;backdrop-filter:blur(8px);border-bottom:1px solid var(--line);padding:8px 2px;margin-bottom:14px;gap:6px;scrollbar-width:none}
.tab-nav::-webkit-scrollbar{display:none}
.tab-nav button{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line-2);color:#334155;border-radius:999px;min-height:38px;padding:7px 14px;font-size:13.5px;font-weight:700;box-shadow:none}
.tab-nav button::before{font-size:14px;line-height:1}
.tab-nav button:hover{border-color:var(--brand-600);color:var(--brand-600);filter:none}
.tab-nav button.active{background:var(--brand-600);border-color:var(--brand-600);color:#fff;box-shadow:0 3px 10px #1d4ed833}
.tab-nav button[data-tab=adminDashboard]::before{content:"📊"}
.tab-nav button[data-tab=scheduleSection]::before{content:"🗓️"}
.tab-nav button[data-tab=reservationArea]::before{content:"➕"}
.tab-nav button[data-tab=myReservationsSection]::before{content:"📌"}
.tab-nav button[data-tab=tripSection]::before{content:"🚗"}
.tab-nav button[data-tab=tripLogsSection]::before{content:"📒"}
.tab-nav button[data-tab=adminArea]::before{content:"👥"}
.tab-nav button[data-tab=vehicleAdmin]::before,.tab-nav button[data-tab=vehicleOverview]::before{content:"🚘"}
.tab-nav button[data-tab=unavailableAdmin]::before{content:"⛔"}


/* Candidate: 예약 현황 / 표 */

.schedule-controls{background:#f8fafc;border:1px solid var(--line);border-radius:12px}

.schedule-matrix th{background:#eef2f8;color:#1f2937;border-bottom:2px solid var(--line-2)}
.schedule-matrix td:first-child{background:#f8fafc;box-shadow:2px 0 0 #e2e8f0}
.schedule-matrix th.is-today{background:var(--brand-100);color:#1e3a8a;box-shadow:inset 0 3px 0 var(--brand-600)}
.schedule-matrix td.is-today{background:#f5f9ff}
.schedule-matrix tbody tr:hover td:not(:first-child){background:#fafcff}
.schedule-matrix td.is-today:hover{background:#eaf2ff}
.schedule-booking{border-radius:8px;box-shadow:0 1px 2px #0f172a10;border-left-width:4px}
.schedule-booking .time{font-size:12.5px}
.schedule-free{opacity:.8}
.schedule-legend{padding:6px 2px}
