/* 新版風格 (跟週課表新版同一套)：大圓角卡片、粗體大標題、藍色重點、膠囊頁籤、寬鬆的表格與表單。
   只在 html[data-style="nw"] 時生效；上方「新版 / 舊版」切換，記在瀏覽器 (ui_style)。配色 (暗 / 亮) 另外切換，兩者可混搭。 */
html[data-style="nw"]{--nw-acc:#4d8dff;--nw-r:14px}

/* 頁面標題 */
html[data-style="nw"] .main h4{font-size:1.75rem;font-weight:800;letter-spacing:.01em;line-height:1.2}
html[data-style="nw"] h4>.bi:first-child{color:var(--nw-acc)!important}
html[data-style="nw"] h5:not(.modal-title){font-weight:800}

/* 卡片 */
html[data-style="nw"] .card{border-radius:var(--nw-r)}
html[data-style="nw"]:not([data-ui="light"]) .card{background:rgba(33,37,41,.94);border-color:rgba(255,255,255,.12)}
html[data-style="nw"]:not([data-ui="light"]) .card .table{--bs-table-bg:transparent;--bs-table-striped-bg:rgba(255,255,255,.03)}
html[data-style="nw"]:not([data-ui="light"]) .card .scroll-y>table>thead>tr>th,html[data-style="nw"]:not([data-ui="light"]) .card .scroll-y>.table>thead>tr>th{background:#262a2f}
html[data-style="nw"] .card>.card-header{background:transparent;font-size:1.05rem;font-weight:800;padding:.85rem 1.25rem;border-bottom:1px solid var(--bs-border-color)}
html[data-style="nw"] .card>.card-header:first-child{border-radius:calc(var(--nw-r) - 1px) calc(var(--nw-r) - 1px) 0 0}
html[data-style="nw"] .card>.card-header .small,html[data-style="nw"] .card>.card-header small{font-weight:400}
html[data-style="nw"] .card>.card-header .btn{font-weight:600}
html[data-style="nw"] .card>.card-body:not([class*=" p-"]):not([class*=" py-"]):not([class*=" px-"]){padding:1.1rem 1.25rem}
html[data-style="nw"] .card>.card-footer{background:transparent;border-radius:0 0 calc(var(--nw-r) - 1px) calc(var(--nw-r) - 1px)}
html[data-style="nw"] .modal-content{border-radius:var(--nw-r)}
html[data-style="nw"] .modal-header .modal-title{font-weight:800}
html[data-style="nw"] .dropdown-menu{border-radius:10px}
html[data-style="nw"] .alert{border-radius:12px}

/* 大數字 (儀表板統計等) */
html[data-style="nw"] .fs-1.fw-bold,html[data-style="nw"] .fs-2.fw-bold,html[data-style="nw"] .fs-3.fw-bold{font-weight:800!important;font-variant-numeric:tabular-nums;letter-spacing:-.01em}

/* 頁籤 → 膠囊分段 (像週課表的教室頁籤) */
html[data-style="nw"] .nav-tabs,html[data-style="nw"] .nav-pills{display:inline-flex;flex-wrap:wrap;gap:4px;padding:3px;border:1px solid var(--bs-border-color);border-radius:10px;background:var(--bs-tertiary-bg);max-width:100%}
html[data-style="nw"] .nav-tabs .nav-link,html[data-style="nw"] .nav-pills .nav-link{border:0!important;border-radius:7px!important;margin:0!important;padding:.3rem .85rem;font-weight:700;font-size:.9rem;color:var(--bs-secondary-color);background:none;box-shadow:none!important;translate:none!important;filter:none!important}
html[data-style="nw"] .nav-tabs .nav-link:hover,html[data-style="nw"] .nav-pills .nav-link:hover{color:var(--bs-emphasis-color);background:rgba(77,141,255,.12)}
html[data-style="nw"] .nav-tabs .nav-link.active,html[data-style="nw"] .nav-pills .nav-link.active{background:#0d6efd!important;color:#fff!important}
html[data-style="nw"] .nav-tabs .nav-link.active small,html[data-style="nw"] .nav-tabs .nav-link.active .text-muted{color:#fff!important;opacity:.85}

/* 表格：表頭淡字、列距寬鬆、細分隔線、滑過反白 */
html[data-style="nw"] .table>thead>tr>th{font-size:.8rem;font-weight:700;color:var(--bs-secondary-color);letter-spacing:.03em;border-bottom-width:1px}
html[data-style="nw"] .table:not(.table-sm)>tbody>tr>td{padding-top:.6rem;padding-bottom:.6rem}
html[data-style="nw"] .table>tbody>tr:hover>td{background:rgba(77,141,255,.06)}
html[data-style="nw"] .table td{font-variant-numeric:tabular-nums}

/* 表單：標籤淡色、輸入框圓角 */
html[data-style="nw"] .form-label{color:var(--bs-secondary-color);font-size:.9rem;margin-bottom:.3rem}
html[data-style="nw"] .form-control,html[data-style="nw"] .form-select{border-radius:8px}
html[data-style="nw"] .input-group>.form-control,html[data-style="nw"] .input-group>.form-select{border-radius:0}
html[data-style="nw"] .input-group>:first-child{border-top-left-radius:8px!important;border-bottom-left-radius:8px!important}
html[data-style="nw"] .input-group>:last-child{border-top-right-radius:8px!important;border-bottom-right-radius:8px!important}
html[data-style="nw"] .form-switch .form-check-input{width:2.4em;height:1.3em}

/* 按鈕：主要按鈕粗體、圓角一致 */
html[data-style="nw"] .btn{border-radius:8px}
html[data-style="nw"] .btn-group>.btn{border-radius:0}
html[data-style="nw"] .btn-group>.btn:first-child{border-top-left-radius:8px;border-bottom-left-radius:8px}
html[data-style="nw"] .btn-group>.btn:last-child{border-top-right-radius:8px;border-bottom-right-radius:8px}
html[data-style="nw"] .btn-primary{font-weight:700}

/* 切換鈕 */
.style-tg{white-space:nowrap}
@media (max-width:768px){
  html[data-style="nw"] .main h4{font-size:1.4rem}
  html[data-style="nw"] .card>.card-header{padding:.7rem 1rem}
  html[data-style="nw"] .card>.card-body:not([class*=" p-"]):not([class*=" py-"]):not([class*=" px-"]){padding:.9rem 1rem}
  .style-tg span{display:none}
}
