@charset "utf-8";

:root {
    --primary-sidebar: #10103C;
    --primary-active: #1e40af;
    --sub-sidebar-bg: #f8fafc;
    --main-bg: #f4f6f9;
    --card-bg: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-card: #eef2f6;
    
    --sidebar-width-primary: 180px;
    --sidebar-width-sub: 180px;
    --header-height: 56px;
    --bottom-nav-height: 60px;

    --brand-blue: #10103C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--main-bg);
    color: var(--text-primary);
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

#app-container {
    display: flex;
    width: 100vw;
    max-width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.scroll-container::-webkit-scrollbar { width: 6px; }
.scroll-container::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.scroll-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.scroll-container::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.sidebar-primary {
    width: var(--sidebar-width-primary);
    height: 100%;
    background-color: var(--primary-sidebar);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    transition: transform 0.25s ease;
}

.brand-logo { padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; }
.btn-close-drawer { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

.nav-primary { list-style: none; padding: 10px 0; flex: 1; overflow-y: auto; }
.nav-primary .nav-item { display: flex; align-items: center; padding: 12px 18px; color: rgba(255, 255, 255, 0.75); cursor: pointer; gap: 10px; font-size: 13.5px; font-weight: 500; }
.nav-primary .nav-item.active { background-color: var(--primary-active); color: #ffffff; font-weight: 700; border-left: 3px solid #38bdf8; }
.nav-icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

.sidebar-bottom {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    background-color: var(--primary-sidebar);
}

.btn-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-sidebar-logout:hover { color: #ffffff; background-color: rgba(255, 255, 255, 0.12); }
.logout-icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logout-text { line-height: 1; }

.sidebar-sub { width: var(--sidebar-width-sub); height: 100%; background-color: var(--sub-sidebar-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; flex-shrink: 0; }
.sub-header { padding: 20px 16px 14px; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.sub-menu-list { list-style: none; padding: 0 10px; }
.sub-menu-list .sub-item { padding: 10px 14px; font-size: 13px; color: var(--text-secondary); border-radius: 8px; cursor: pointer; margin-bottom: 4px; }
.sub-menu-list .sub-item.active { background-color: #ffffff; color: var(--text-primary); font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }

.main-wrapper { flex: 1; display: flex; flex-direction: column; height: 100%; overflow: hidden; min-width: 0; width: 100%; }
.top-header { height: var(--header-height); background-color: #ffffff; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink: 0; }
.header-left { display: flex; align-items: center; gap: 10px; }
.mobile-hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--text-primary); }
.page-title { font-size: 15px; font-weight: 700; color: #111827; }
.header-right { display: flex; align-items: center; gap: 10px; }

.content-body { flex: 1; padding: 24px; overflow-y: auto; overflow-x: hidden; background-color: var(--main-bg); min-width: 0; width: 100%; }
.content-panel { display: none; width: 100%; }
.content-panel.active { display: block; }

.card-box { 
    background: #ffffff; 
    border-radius: 14px; 
    border: 1px solid var(--border-card); 
    padding: 20px; 
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.btn-blue { background: var(--brand-blue); color: #fff; border: none; padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.btn-blue-sm { background: var(--brand-blue); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-outline-sm { background: #fff; border: 1px solid var(--border-color); color: var(--text-secondary); padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; font-weight: 600; }
.btn-del-sm { background: none; border: none; color: #ef4444; font-size: 14px; cursor: pointer; font-weight: bold; }

.btn-edit-blue {
    display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border: 1px solid #bfdbfe; color: #2563eb; background-color: #ffffff; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-del-red {
    display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border: 1px solid #fecaca; color: #ef4444; background-color: #ffffff; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer;
}

/* 엑셀 & 리사이클 아이콘 버튼 전용 스타일 */
.btn-icon-excel, .btn-icon-recycle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.15s ease;
    padding: 0;
    box-sizing: border-box;
}
.btn-icon-excel {
    border: 1px solid #86efac;
    background: #f0fdf4;
}
.btn-icon-excel:hover {
    background: #dcfce7;
    border-color: #4ade80;
}
.btn-icon-recycle {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #64748b;
}
.btn-icon-recycle:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}
.btn-icon-recycle svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dash-hero-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.dash-date-text { font-size: 13px; font-weight: 500; color: #64748b; margin-bottom: 4px; }
.dash-welcome-title { font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: -0.5px; }
.dash-welcome-sub { font-size: 13.5px; color: #475569; margin-top: 6px; }
.dash-welcome-sub strong { color: #10103C; font-weight: 800; }

.dash-hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-hero-white {
    display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; color: #334155; font-size: 13px; font-weight: 600; cursor: pointer;
}
.btn-hero-dark {
    display: inline-flex; align-items: center; padding: 9px 18px; background: #10103C; border: none; border-radius: 10px; color: #ffffff; font-size: 13px; font-weight: 700; cursor: pointer;
}

.hero-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.hero-stat-card { background: #ffffff; border-radius: 16px; border: 1px solid #eef2f6; padding: 20px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.stat-icon-circle { width: 36px; height: 36px; border-radius: 10px; background: #f0fdf4; display: flex; align-items: center; justify-content: center; }
.badge-pill { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.badge-pill.green { background: #dcfce7; color: #15803d; }
.badge-pill.purple { background: #f3e8ff; color: #7e22ce; }
.badge-pill.red { background: #fee2e2; color: #dc2626; }
.badge-pill.gray { background: #f1f5f9; color: #64748b; }
.stat-label { font-size: 13px; color: #64748b; font-weight: 600; }
.stat-val { font-size: 26px; font-weight: 800; color: #0f172a; margin: 4px 0 2px 0; }
.stat-unit { font-size: 14px; font-weight: 600; color: #475569; }
.stat-desc { font-size: 11.5px; color: #94a3b8; }

.dash-main-two-col { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.25fr); gap: 20px; align-items: start; }
.card-box-clean { background: #ffffff; border-radius: 16px; border: 1px solid #eef2f6; padding: 22px; width: 100%; box-sizing: border-box; }

/* 대시보드 캘린더 & 오늘의 시간표 2열 배치 스타일 */
.dash-cal-tt-grid {
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    gap: 20px !important;
    align-items: stretch !important;
    width: 100% !important;
}

.dash-cal-side-pane {
    width: 100% !important;
    padding-bottom: 0 !important;
    padding-right: 18px !important;
    border-bottom: none !important;
    border-right: 1px solid #f1f5f9 !important;
}

.dash-tt-side-pane {
    width: 100% !important;
    min-height: 240px !important;
    display: flex !important;
    flex-direction: column !important;
}

#dashTodaySlotsList {
    flex: 1 !important;
    max-height: 240px !important;
    overflow-y: auto !important;
}

.timetable-matrix-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 20px;
    align-items: start;
}

.timetable-scroll-box {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.timetable-cell-scroll {
    max-height: 140px;
    overflow-y: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
}
.timetable-cell-scroll::-webkit-scrollbar { width: 4px; }
.timetable-cell-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.timetable-cell-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.chart-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.chart-title-sub { font-size: 13px; color: #64748b; font-weight: 600; }
.chart-main-val { font-size: 24px; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.segmented-control { display: flex; background: #f1f5f9; padding: 3px; border-radius: 8px; gap: 2px; }
.seg-btn { border: none; background: transparent; padding: 5px 12px; font-size: 12px; font-weight: 600; color: #64748b; border-radius: 6px; cursor: pointer; }
.seg-btn.active { background: #ffffff; color: #0f172a; font-weight: 700; }
.chart-canvas-wrap { height: 220px; width: 100%; position: relative; }
.chart-legend-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f8fafc; font-size: 12px; color: #64748b; }
.chart-legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend-row i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.todo-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.todo-title { font-size: 15px; font-weight: 700; color: #0f172a; }
.btn-text-link { background: none; border: none; font-size: 12.5px; color: #64748b; cursor: pointer; font-weight: 600; }
.btn-text-link:hover { color: #10103C; }
.todo-list { display: flex; flex-direction: column; gap: 10px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; cursor: pointer; user-select: none; }
.todo-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: #10103C; }
.todo-text { flex: 1; font-size: 13px; font-weight: 600; color: #1e293b; }
.todo-text.strike { text-decoration: line-through; color: #94a3b8; }
.todo-tags { display: flex; gap: 4px; }
.tag-badge { font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 700; }
.tag-badge.red { background: #fee2e2; color: #dc2626; }
.tag-badge.purple { background: #f3e8ff; color: #7e22ce; }
.tag-badge.green { background: #dcfce7; color: #15803d; }
.tag-badge.gray { background: #f1f5f9; color: #64748b; }

.timeline-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.timeline-header h3 { font-size: 15px; font-weight: 700; color: #0f172a; }
.timeline-list { display: flex; flex-direction: column; gap: 16px; position: relative; }
.timeline-item { display: flex; gap: 12px; align-items: flex-start; }
.tl-icon-box { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; background: #f1f5f9; }
.tl-icon-box.check { background: #dcfce7; color: #15803d; }
.tl-body { flex: 1; }
.tl-title { font-size: 13px; font-weight: 600; color: #1e293b; line-height: 1.4; }
.tl-time { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }

.dash-summary-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.summary-card-sm { background: #fff; border-radius: 10px; padding: 14px; border: 1px solid var(--border-card); }
.summary-card-sm .lbl { font-size: 11.5px; color: var(--text-secondary); }
.summary-card-sm .val { font-size: 20px; font-weight: 700; margin-top: 4px; }

.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-purple { background-color: #8b5cf6; }
.dot-green { background-color: #10b981; }
.dot-gray { background-color: #94a3b8; }

.student-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.student-list .student-item {
    display: flex !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; min-height: 52px !important; padding: 10px 14px !important; background-color: #ffffff; border: 1px solid var(--border-card); border-radius: 8px; cursor: pointer;
}
.student-list .student-item.active { border: 1.5px solid #10103C !important; background-color: #e2fbe8; font-weight: 600; }

.detail-tab-nav { display: flex; gap: 16px; border-bottom: 1px solid var(--border-color); margin-bottom: 18px; font-size: 13.5px; overflow-x: auto; }
.detail-tab-nav .st-tab-item { padding: 6px 4px 10px 4px; color: var(--text-secondary); cursor: pointer; white-space: nowrap; font-weight: 500; border-bottom: 2px solid transparent; }
.detail-tab-nav .st-tab-item.active { font-weight: 700; color: #10103C; border-bottom: 2px solid #10103C; }

.pay-toggle-wrapper { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.pay-toggle-btn { cursor: pointer; user-select: none; }
.pay-toggle-btn input[type="checkbox"] { display: none; }
.pay-badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.badge-unpaid { border: 1px solid #e2e8f0; color: #64748b; background: #fff; }
.badge-paid { border: 1px solid #10b981; color: #fff; background: #10b981; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-window { background: #fff; width: 90%; max-width: 440px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 15px; font-weight: 700; }
.btn-close-modal { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-muted); }
.modal-body { padding: 20px; }
.modal-body .form-group { margin-bottom: 12px; }
.modal-body label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 600; }
.modal-body input[type="text"], .modal-body input[type="password"], .modal-body input[type="date"], .modal-body input[type="number"], .modal-body select, .modal-body textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 12.5px; outline: none; background: #fff;
}
.modal-footer { padding: 12px 20px; background: #f9fafb; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 8px; }

.calendar-grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; gap: 2px; width: 100%; }
.calendar-grid-7 > div { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 4px 0; }

.mobile-sub-menu { display: none; }
.bottom-nav { display: none; }
.drawer-overlay { display: none; }

@media (max-width: 1200px) {
    .dash-main-two-col {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {
    .sidebar-sub { display: none !important; }
    .hero-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .timetable-matrix-grid { grid-template-columns: 1fr !important; }
    .mobile-sub-menu { 
        display: flex !important; 
        padding: 10px 14px; 
        background: #fff; 
        border-bottom: 1px solid var(--border-color); 
        overflow-x: auto; 
        white-space: nowrap; 
        gap: 8px; 
        max-width: 100vw;
        box-sizing: border-box;
    }
    .mobile-sub-chip { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-color); background: #fff; font-size: 12px; color: var(--text-secondary); cursor: pointer; }
    .mobile-sub-chip.active { background: #10103C; color: #fff; border-color: #10103C; font-weight: 700; }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative;
    }

    #app-container, .main-wrapper, .content-body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .content-body { padding: 14px 12px 76px 12px !important; }
    .sidebar-primary { position: fixed !important; top: 0; left: 0; bottom: 0; height: 100% !important; z-index: 100000 !important; transform: translateX(-100%); }
    .sidebar-primary.open { transform: translateX(0); }
    .mobile-hamburger { display: block; }
    .btn-close-drawer { display: block; }
    .drawer-overlay { z-index: 99998 !important; }

    .hero-stat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; margin-bottom: 16px !important; }
    .makeup-layout-grid, .profile-container { grid-template-columns: 1fr !important; }
    .panel-two-col { flex-direction: column !important; }
    .panel-two-col .side-col, .panel-two-col .main-col { width: 100% !important; }

    .dash-cal-tt-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .dash-cal-side-pane {
        padding-right: 0 !important;
        padding-bottom: 16px !important;
        border-right: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .mobile-sub-menu {
        max-width: 100vw !important;
        box-sizing: border-box !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mobile-sub-menu::-webkit-scrollbar { display: none; }

    .schedule-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }
    #panel-dash-1 .card-box {
        padding: 14px 12px !important;
        margin-bottom: 12px !important;
    }
    #scheduleCalGrid {
        display: grid !important;
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 2px !important;
        font-size: 11.5px !important;
        text-align: center !important;
    }
    #scheduleCalGrid > div {
        min-height: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 11px !important;
    }
    #scheduleTable {
        min-width: 100% !important;
        width: 100% !important;
        font-size: 11.5px !important;
        table-layout: fixed !important;
    }
    #scheduleTable th, #scheduleTable td {
        padding: 8px 4px !important;
        line-height: 1.35 !important;
        word-break: break-all !important;
    }
    #scheduleTable th:nth-child(1), #scheduleTable td:nth-child(1) { width: 74px !important; font-size: 11px !important; }
    #scheduleTable th:nth-child(2), #scheduleTable td:nth-child(2) { width: auto !important; }
    #scheduleTable th:nth-child(3), #scheduleTable td:nth-child(3) { width: 75px !important; }
    #scheduleTable th:nth-child(4), #scheduleTable td:nth-child(4) { width: 55px !important; }
    #scheduleTable th:nth-child(5), #scheduleTable td:nth-child(5) { width: 38px !important; text-align: center !important; }
    #scheduleTable .btn-del-red { padding: 2px 6px !important; font-size: 11px !important; }

    .student-list, #studentList, #progressStudentList {
        max-height: 220px !important;
        overflow-y: auto !important;
        gap: 6px !important;
    }
    .student-list .student-item {
        min-height: 42px !important;
        padding: 6px 10px !important;
    }
    .student-list .student-item .st-name { font-size: 12.5px !important; }
    .student-list .student-item .st-info { font-size: 10.5px !important; margin-top: 1px !important; }

    .progress-form-grid {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .progress-form-grid select, .progress-form-grid input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    #mainProgressTable, #progressTable {
        min-width: 680px !important;
        width: 100% !important;
        font-size: 11.5px !important;
        table-layout: auto !important;
    }
    #mainProgressTable th, #mainProgressTable td,
    #progressTable th, #progressTable td {
        padding: 8px 6px !important;
        line-height: 1.4 !important;
        vertical-align: middle !important;
    }
    #mainProgressTable th:nth-child(1), #progressTable th:nth-child(1),
    #mainProgressTable td:nth-child(1), #progressTable td:nth-child(1) { width: 50px !important; white-space: nowrap !important; }
    #mainProgressTable th:nth-child(2), #progressTable th:nth-child(2),
    #mainProgressTable td:nth-child(2), #progressTable td:nth-child(2) { width: 70px !important; white-space: nowrap !important; }
    #mainProgressTable th:nth-child(3), #progressTable th:nth-child(3),
    #mainProgressTable td:nth-child(3), #progressTable td:nth-child(3) { width: 110px !important; }
    #mainProgressTable th:nth-child(4), #progressTable th:nth-child(4),
    #mainProgressTable td:nth-child(4), #progressTable td:nth-child(4) { width: 120px !important; }
    #mainProgressTable th:nth-child(5), #progressTable th:nth-child(5),
    #mainProgressTable td:nth-child(5), #progressTable td:nth-child(5) { width: 100px !important; }
    #mainProgressTable th:nth-child(6), #progressTable th:nth-child(6),
    #mainProgressTable td:nth-child(6), #progressTable td:nth-child(6) {
        min-width: 150px !important;
        white-space: normal !important;
        word-break: keep-all !important;
    }
    #mainProgressTable th:nth-child(7), #progressTable th:nth-child(7),
    #mainProgressTable td:nth-child(7), #progressTable td:nth-child(7) { width: 60px !important; white-space: nowrap !important; text-align: center !important; }
    .main-col .card-box > div[style*="overflow-x:auto"] {
        max-height: 260px !important;
        overflow-y: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 8px !important;
    }

    .timetable-matrix-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .timetable-teacher-nav { 
        display: flex;
        overflow-x: auto; 
        white-space: nowrap; 
        padding-bottom: 8px; 
        gap: 6px !important;
        scrollbar-width: none;
    }
    .timetable-teacher-nav::-webkit-scrollbar { display: none; }
    .btn-teacher-tab {
        padding: 6px 12px !important;
        font-size: 12px !important;
        flex-shrink: 0;
    }
    .card-box {
        padding: 14px 10px !important;
        margin-bottom: 14px !important;
    }
    .timetable-scroll-box table {
        min-width: 100% !important;
        font-size: 11.5px !important;
    }
    .timetable-scroll-box th, 
    .timetable-scroll-box td {
        padding: 8px 3px !important;
    }
    .timetable-cell-scroll {
        max-height: 120px !important;
    }

    .mypage-layout-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
    }
    #panel-mypage-0 .card-box,
    #panel-mypage-1 .card-box {
        padding: 16px 14px !important;
        margin-bottom: 12px !important;
    }
    #panel-mypage-0 .card-box div[style*="background:#eff6ff"] {
        flex: 1 1 calc(50% - 8px) !important;
        min-width: 130px !important;
        padding: 8px 12px !important;
        box-sizing: border-box !important;
    }
    #panel-mypage-0 table,
    #staffWorkHistoryTable {
        font-size: 11.5px !important;
        min-width: 100% !important;
    }
    #panel-mypage-0 table th,
    #panel-mypage-0 table td,
    #staffWorkHistoryTable th,
    #staffWorkHistoryTable td {
        padding: 8px 6px !important;
        white-space: nowrap !important;
    }

    .bottom-nav {
        display: flex !important; position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
        width: 100% !important; height: 60px !important; background-color: #10103C !important; z-index: 99990 !important; justify-content: space-around; align-items: center;
    }
    .bottom-nav-item { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; flex: 1; height: 100%; color: #8da49e !important; font-size: 11px; text-decoration: none; cursor: pointer; }
    .bottom-nav-item svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
    .bottom-nav-item.active { color: #ffffff !important; font-weight: 700; }
}

/* 엑셀 & 리사이클 아이콘 버튼 스타일 */
.btn-icon-excel, .btn-icon-recycle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 0;
}

.btn-icon-excel:hover {
    background: #f0fdf4;
    border-color: #86efac;
}

.btn-icon-recycle {
    color: #64748b;
}

.btn-icon-recycle:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.btn-icon-excel svg, .btn-icon-recycle svg {
    display: block;
}