
/* =============== SOURCE 01: site.css =============== */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap');
:root{font-family:Arial,Helvetica,sans-serif;color:#17243a;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}a{color:#1756b5;text-decoration:none}a:hover{text-decoration:underline}.site-header{background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 6px #15263b08;position:sticky;top:0;z-index:5}.header-inner,.container{max-width:1250px;margin:auto;padding:0 22px}.header-inner{min-height:74px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:12px;align-items:center;color:#133768;font-size:20px;font-weight:800}.brand small{display:block;color:#687b92;font-weight:400;font-size:12px;margin-top:3px}.brand-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:#fff;background:linear-gradient(145deg,#1369d6,#17428c)}.header-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;font-size:14px}.login-button{color:white!important;background:#1760ce;border-radius:9px;padding:12px 16px;font-weight:700}.pill-outline{border:1px solid #d7e1ee;padding:10px 13px;border-radius:9px}.container{padding-top:22px;padding-bottom:50px}.hero{text-align:center;margin:22px 0 32px}.slogan{color:#cf1717;font-weight:700;font-size:18px;margin:3px 0}.slogan.secondary{font-size:17px}.hero h1{font-size:30px;line-height:1.35;letter-spacing:.3px;color:#10458b}.hero h1 span{font-size:23px}.muted{color:#69798e}.app-grid,.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.app-card,.panel,.subpanel{border-radius:14px;background:#fff;border:1px solid #dde5ef;box-shadow:0 2px 9px #13284408}.app-card{padding:28px;min-height:210px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;transition:transform .12s,box-shadow .12s}.app-card:hover{transform:translateY(-2px);text-decoration:none;box-shadow:0 5px 21px #13284418}.app-card h2{font-size:20px;color:#154783;margin:10px 0}.app-card p{margin:2px 0;color:#667b8e}.app-symbol{font-size:38px;color:#1a65ce}.card-cta{font-weight:700;margin-top:18px}.inactive{opacity:.6}.panel{padding:20px 22px;margin:16px 0 22px}.panel h3,.panel h2{margin-top:0;color:#143b75}.subpanel{padding:16px}.narrow{max-width:700px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tabs a{color:#344d67;background:white;border:1px solid #d8e0ed;border-radius:9px;padding:10px 14px;font-size:14px}.tabs a.active{background:#145bd0;color:white;border-color:#145bd0}input,select,textarea,button{font-family:inherit;font-size:14px}input,select,textarea{display:block;border:1px solid #cfdae8;border-radius:9px;padding:11px 12px;max-width:100%;width:100%;background:#fff;color:#1b304b}input[type=checkbox]{width:auto;display:inline-block}label{font-weight:600;font-size:14px;display:block;margin:8px 0}.inline{font-weight:400;display:block}.inline input{vertical-align:middle;margin:0 7px 0 0}button{background:#1760ce;border:1px solid #1760ce;color:#fff;padding:11px 17px;border-radius:9px;cursor:pointer;font-weight:700;min-height:42px}button:hover{background:#0d4da8}button.outline,button.ghost{background:white;color:#1a62bb;border-color:#d4e0f1}button.danger{background:#af2828;border-color:#af2828}.small{font-size:12px;padding:6px 10px;min-height:32px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px;align-items:end}.form-grid button{justify-self:start}.wide{grid-column:span 2}.filter{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.filter input,.filter select{width:auto;min-width:135px}.filter label{min-width:120px}.inlineform{display:inline-flex;vertical-align:middle;gap:8px}.tablewrap{overflow-x:auto;border:1px solid #e1e8f2;border-radius:10px;margin:12px 0}table{border-collapse:collapse;width:100%;font-size:13px;min-width:740px}td,th{padding:11px 12px;text-align:left;border-bottom:1px solid #e4ebf4;vertical-align:top}th{background:#ecf3fd;color:#174b90;font-weight:700;white-space:nowrap}tr.morning{background:#fff}tr.afternoon{background:#fffbe8}tr.makeup{background:#e8f5e9}.notice{padding:12px 16px;background:#e8f8ee;color:#176035;border:1px solid #c1e5d0;border-radius:10px;margin-bottom:20px}.error{background:#fff2f1;color:#a51b1b;border-color:#f6cccc;padding:12px}.detail{display:grid;grid-template-columns:130px 1fr;gap:14px;margin:25px 0}.pagination a{padding:8px}.subpanel p{color:#69798e}.subpanel h4{margin:0 0 12px}footer{border-top:1px solid #dce5ef;background:#fff;font-size:12px;color:#6b7c90}footer .container{padding-top:20px;padding-bottom:20px;display:flex;justify-content:space-between}textarea{min-height:100px;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #7ab3ff;outline-offset:1px}@media(max-width:780px){.header-inner,.container{padding-left:12px;padding-right:12px}.header-inner{align-items:start;padding-top:12px;padding-bottom:12px;flex-wrap:wrap}.header-actions{gap:9px;justify-content:space-between;width:100%;font-size:16px}.header-actions a{padding:9px 7px}.brand{font-size:21px}.brand small{font-size:14px}.hero h1{font-size:25px}.hero h1 span{font-size:21px}.hero .slogan{font-size:20px}.slogan.secondary{font-size:19px}.app-grid,.grid{grid-template-columns:1fr}.app-card{min-height:160px;padding:18px}.app-card h2{font-size:22px}.app-card p{font-size:18px}.panel{padding:14px 12px}.panel h2{font-size:24px}.panel h3{font-size:22px}body{font-size:20px;line-height:1.5}table{font-size:17px}td,th{padding:13px 11px}.tabs a{font-size:18px;padding:12px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.filter{flex-direction:column;align-items:stretch}.filter input,.filter select,.filter label{width:100%}button,input,select,textarea,label{font-size:19px}button{min-height:48px}.small{font-size:17px;min-height:44px}.muted{font-size:17px}.detail{grid-template-columns:1fr;gap:5px}}

/* RC2: cảnh báo lỗi nhập và trạng thái vô hiệu hóa trường chọn người. */
.import-alert{background:#fff3e8;border:1px solid #f1c6a1;border-radius:9px;padding:12px 14px;color:#8f3c0b;font-weight:600}
#teacher-import-field[hidden]{display:none!important}
#bang-doi-chieu{border-color:#a9c8f5;scroll-margin-top:100px}
#bang-doi-chieu h4{margin-top:20px;margin-bottom:8px;color:#163f78}
/* RC3: task management, mobile-first */
.app-card.maintenance{background:#fff8ed;border-color:#f4d7b2}.maintenance-tag{color:#9a4d11;font-weight:700;font-size:13px;margin-top:12px}
.task-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.task-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.task-stat{padding:17px;background:#fff;border:1px solid #dde5ef;border-radius:13px}.task-stat strong{display:block;font-size:27px;color:#164d87;margin-top:5px}.task-stat span{color:#687b92;font-size:13px}.task-tag{display:inline-block;border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700;background:#e9f2fb;color:#194e84;white-space:nowrap}.task-tag.late{background:#fee9e8;color:#9e2424}.task-tag.done{background:#e4f5e9;color:#136839}.task-board{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:14px}.task-card{border:1px solid #dfe8f2;padding:14px;border-radius:11px;background:#fff;margin:10px 0}.task-card h3{font-size:16px;margin:3px 0 8px}.task-card p{margin:5px 0}.task-progress{background:#e4ecf5;height:8px;border-radius:10px;overflow:hidden;margin:9px 0}.task-progress>div{height:100%;background:#2480bd}.task-inline{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.task-inline label{margin:0}.task-inline input[type=number]{max-width:95px}.task-note{padding:12px;border-left:3px solid #cbddeb;background:#f6faff;margin:12px 0;border-radius:5px}.task-chip-link{border:1px solid #dae4f0;padding:8px 11px;border-radius:8px;display:inline-block;background:white}.task-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.task-setting-row{display:flex;align-items:center;gap:9px;font-size:13px}.task-setting-row input{flex:none}.task-file{display:inline-block;margin:5px 10px 5px 0}.task-list-title{font-size:14px;font-weight:700}.task-config-note{color:#905317;background:#fff3e4;border:1px solid #f1dbba;padding:12px;border-radius:10px}
@media(max-width:780px){.task-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.task-board,.task-admin-grid{grid-template-columns:1fr}.task-card h3{font-size:19px}.task-tag{font-size:14px}.task-inline input[type=number]{max-width:110px}.task-stat span{font-size:16px}.task-card p{font-size:16px}}

/* RC3.1 - compact density across shared Admin, Schedule, Assets and Tasks.
   Preserve comfortable, finger-friendly controls on smaller screens. */
@media (min-width: 781px) {
 .panel { padding: 16px 20px; margin: 12px 0 16px; }
 .subpanel { padding: 12px 14px; }
 .form-grid { gap: 8px 14px; }
 .panel label { margin-top: 5px; margin-bottom: 5px; line-height: 1.35; }
 .panel input:not([type=checkbox]):not([type=radio]):not([type=file]),
 .panel select { padding: 7px 9px; min-height: 35px; }
 .panel button { padding: 7px 13px; min-height: 36px; }
 .panel button.small { padding: 4px 9px; min-height: 30px; }
 .panel textarea { padding: 8px 10px; }
 .tabs { margin: 12px 0; gap: 7px; }
 .tabs a { padding: 8px 11px; }
 .task-card { padding: 11px 12px; margin: 7px 0; }
 .task-stat { padding: 12px 14px; }
 .task-stats { margin: 12px 0; }
 .task-setting-row { margin: 3px 0 !important; padding: 3px 0; line-height: 1.35; }
}
/* Compact tables in all modules. */
.tablewrap table { line-height: 1.3; }
.tablewrap td, .tablewrap th { padding: 6px 9px; vertical-align: middle; }
.tablewrap td label { margin: 0; line-height: 1.3; }
.tablewrap td form { margin: 0; }
.tablewrap td input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.tablewrap td select { padding: 5px 8px; min-height: 32px; border-radius: 6px; }
.tablewrap td input[type=checkbox] { margin: 0; vertical-align: middle; width: 16px; height: 16px; }
.tablewrap td button { padding: 5px 9px; min-height: 32px; }
.task-setting-row { gap: 8px; }
.task-setting-row input[type=checkbox] { width: 17px; height: 17px; margin: 0; }
@media (max-width: 780px) {
 .tablewrap td, .tablewrap th { padding: 8px 9px; }
 .tablewrap td input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
 .tablewrap td select, .tablewrap td button { min-height: 40px; padding: 7px 9px; }
 .tablewrap td input[type=checkbox] { width: 20px; height: 20px; }
 .panel label.inline { margin: 5px 0; }
 .task-setting-row { margin: 5px 0 !important; padding: 4px 0; line-height: 1.4; }
}

/* RC4 header and shared compact banner */
.site-header .header-inner{min-height:82px}.school-logo{width:69px;height:69px;object-fit:contain;flex:none}.brand{gap:12px;max-width:min(750px,70%)}.school-title{display:block}.school-title strong{display:block;font-size:17px;color:#133e73;line-height:1.35;letter-spacing:.1px}.school-title small{display:block;font-size:17px;color:#c72127;font-weight:800;text-align:center;margin-top:3px}.hero{margin:4px 0 22px}.hero .slogan,.hero .slogan.secondary{color:#143d75;font-style:italic;font-weight:700;font-size:17px;margin:3px 0}.hero h1{margin-top:16px}.header-actions .home-link{border:1px solid #c9d9eb;background:#f4f9ff;padding:8px 11px;border-radius:8px;font-weight:700}.task-file-rows{display:grid;gap:9px;grid-column:1/-1}.task-file-entry{border:1px solid #e0e7f1;border-radius:9px;padding:8px 10px}.task-file-entry input{width:100%;max-width:600px}.task-type-note{color:#6a7e92;font-size:12px}.task-note-green{color:#196e42;font-weight:700}.task-note-red{color:#b33232;font-weight:700}.task-note-orange{color:#ab6411;font-weight:700}.task-group{border:1px solid #dfe8f3;border-radius:10px;padding:12px;margin-top:10px}.task-group h4{margin:3px 0 9px}.task-group .grid{row-gap:2px}.task-group .inline{margin:2px 0}.report-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px}.report-filters label{min-width:160px}.print-report h2{margin-bottom:10px}.header-actions{justify-content:flex-end}
@media(max-width:780px){.brand{max-width:100%}.school-logo{width:55px;height:55px}.school-title strong,.school-title small{font-size:13px}.site-header .header-inner{min-height:unset}.hero .slogan,.hero .slogan.secondary{font-size:16px}}
@media print{.site-header,nav.tabs,button,.report-filters,footer,.no-print{display:none!important}.panel{border:0;box-shadow:none}.container{max-width:100%}body{background:white;color:black}.tablewrap{overflow:visible}}

.school-title strong{ text-align:center }.site-header .header-inner{gap:15px}.hero{margin-top:0}.container{padding-top:12px}

/* RC4.1: institutional Roboto typography and compact assignment documents. */
body,button,input,select,textarea,table {font-family:Roboto,Arial,Helvetica,sans-serif;}
body{font-weight:400;letter-spacing:0;}
h1,h2,h3,h4,th,.school-title {font-weight:700;letter-spacing:0;}
.task-file-rows{gap:4px;margin:4px 0 6px;}
.task-file-rows h4{margin:0 0 2px;}
.task-file-rows > p.muted{margin:2px 0 4px;line-height:1.3;}
.task-file-entry{padding:5px 8px;margin:2px 0;}
#assignment-file-list{display:grid;gap:5px;}
.rc41-daybox{border:1px solid #dce6f0;border-radius:10px;padding:12px;margin:12px 0;}
.rc41-dayhead{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:7px;}
.rc41-dayhead h3{margin:0;font-size:16px;}
.rc41-today h3{color:#ca202b;}
.rc41-lesson{padding:7px 9px;border:1px solid #e0e9f1;border-radius:7px;margin:6px 0;font-weight:400;}
.rc41-lesson label{display:flex;align-items:start;gap:8px;margin:0;}
.rc41-lesson label input{margin-top:3px;flex:none;}
.rc41-absence-choices{grid-column:1/-1;border:1px solid #e1e8f2;border-radius:10px;padding:10px;}
.rc41-daybox .tablewrap{margin:4px 0 0;}
.rc41-admin-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.rc41-admin-modules .subpanel{margin:0;}
.rc41-perm-matrix{min-width:780px;}
.rc41-perm-matrix td{vertical-align:middle;}
.rc41-perm-matrix label{margin:0;}
@media(max-width:780px){.rc41-admin-modules{grid-template-columns:1fr}.rc41-daybox{padding:9px}}
@media print{
 .print-report,.print-report *{font-family:Arial,Helvetica,sans-serif!important;font-size:13px!important;line-height:1.4!important;font-weight:400!important;letter-spacing:0!important}
 .print-report h2,.print-report h3,.print-report h4,.print-report strong,.print-report b,.print-report th{font-weight:700!important}
 .print-report .tablewrap table{min-width:0!important;width:100%!important;table-layout:fixed!important}
 .print-report td,.print-report th{padding:4px 5px!important;overflow-wrap:anywhere!important;white-space:normal!important}
 .print-report tr{break-inside:avoid;page-break-inside:avoid}
 .print-report .task-stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}
 @page{size:A4 landscape;margin:12mm}
}

/* RC4.2 – Quiet, uniform typography; easy-to-scan module administration */
#rc41-permission-center .rc41-daybox {background:#fffbea;border-color:#e6dfaf;margin:14px 0;padding:14px;}
#rc41-permission-center .rc41-daybox table{background:#fff;}
#rc41-permission-center .rc41-perm-matrix td{text-align:center;}
#rc41-permission-center .rc41-perm-matrix td input[type=checkbox]{width:16px;height:16px;}
#rc41-permission-center .rc41-perm-matrix th[scope=row]{white-space:nowrap;text-align:left;font-weight:400;}
#rc41-permission-center .rc41-perm-matrix th:not([scope=row]){font-weight:400;}
#rc41-permission-center .rc41-perm-matrix label{font-size:0;}
#rc41-permission-center .rc41-perm-matrix .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.tablewrap td,.tablewrap th {font-weight:400;}
.tablewrap td strong,.tablewrap td b {font-weight:400;}
.task-list-title{font-weight:400;}
.task-list-title.rc42-attention,.rc42-unread-label{color:#cf2739!important;font-weight:400;}
.rc42-duty{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:14px;margin:3px 0 8px;color:#bc2632;font-weight:400;}
.rc42-duty span:first-child{color:#263e5a;}
.rc42-duty .rc42-separator{color:#91a1b3;}
.rc42-drive-ok{color:#187747;}
.rc42-backup-row{display:inline-block;margin:4px 9px 4px 0;}
.rc42-danger-form{margin:12px 0;padding:10px;border:1px solid #efdada;border-radius:9px;}
.rc42-danger-form input{min-width:250px;}
#rc42-system,#rc42-storage,#rc42-backup{background:#fffbea;border-color:#e7dfad;}
@media(max-width:780px){
 .rc41-daybox .tablewrap th,.rc41-daybox .tablewrap td{font-size:16px!important;font-weight:400!important;line-height:1.38;}
 .rc41-daybox .tablewrap td strong{font-weight:400!important;}
 .rc42-duty{font-size:16px;}
 .rc41-perm-matrix th,.rc41-perm-matrix td{font-weight:400!important;}
}

.task-stat:nth-child(3) strong{color:#cb2736;}
.task-tag.late{font-weight:400;}

/* RC4.2 UI hotfix - consistent task-module typography (PC + mobile).
   Scoped to logged-in Task Management pages; no effects on other modules. */
main.container:has(nav.tabs a[href*="cong-viec"]) {
  --task-text-main: #171717;
  color: var(--task-text-main);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}
main.container:has(nav.tabs a[href*="cong-viec"]) :is(
  .panel p, .panel .muted, .panel .detail, .panel .detail strong,
  .panel .detail span, .panel label, .panel .task-group label,
  .panel .task-note, .panel .task-note strong, .panel .task-note b,
  .panel .task-setting-row, .panel .task-file,
  .panel .tablewrap td, .panel .tablewrap th,
  .panel .tablewrap td a, .panel .tablewrap td .muted,
  .panel .tablewrap td strong, .panel .tablewrap td b,
  .task-card p, .task-stat span
) {
  color: var(--task-text-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}
main.container:has(nav.tabs a[href*="cong-viec"]) :is(input, select, textarea, button, .tabs a) {
  font-size: 16px;
  font-weight: 400;
}
main.container:has(nav.tabs a[href*="cong-viec"]) :is(h2, h3, h4) {
  color: var(--task-text-main);
}
main.container:has(nav.tabs a[href*="cong-viec"]) .tabs a {
  color: var(--task-text-main);
}
main.container:has(nav.tabs a[href*="cong-viec"]) .tabs a.active {
  color: #fff;
}
main.container:has(nav.tabs a[href*="cong-viec"]) .task-tag {
  color: var(--task-text-main);
  font-size: 16px;
  font-weight: 400;
}
main.container:has(nav.tabs a[href*="cong-viec"]) .task-list-title {
  color: var(--task-text-main);
  font-size: 16px;
  font-weight: 400;
}
main.container:has(nav.tabs a[href*="cong-viec"]) .task-stat strong {
  color: var(--task-text-main);
}
/* Attention/overdue/unread stays red, as requested. */
main.container:has(nav.tabs a[href*="cong-viec"]) :is(
  .task-list-title.rc42-attention, .rc42-unread-label,
  .task-tag.late, .task-note-red, .task-note-orange
) {
  color: #c72732 !important;
  font-weight: 400;
}
main.container:has(nav.tabs a[href*="cong-viec"]) .task-stat:nth-child(3) strong {
  color: #c72732;
}
/* Mobile: override the old 20px body / 19px form / 17px table scale. */
@media (max-width: 780px) {
  main.container:has(nav.tabs a[href*="cong-viec"]) {
    font-size: 16px;
  }
  main.container:has(nav.tabs a[href*="cong-viec"]) :is(
    .panel, .panel .tablewrap table,
    .panel .tablewrap td, .panel .tablewrap th,
    .panel .tablewrap td .muted, .panel .task-card,
    .panel .task-card p, .panel .task-tag,
    .panel .task-note, .panel label, .panel .muted,
    .task-stat span, .tabs a
  ) {
    font-size: 16px;
    font-weight: 400;
  }
}

/* RC4.3: Mobile ergonomics and clearer task metadata */
@media (max-width:780px){
 .site-header .header-inner{display:flex;flex-direction:column;align-items:center;gap:5px;padding:5px 7px;min-height:0}
 .site-header .brand{max-width:100%;width:100%;justify-content:center;gap:6px}
 .site-header .school-logo{width:42px;height:42px}
 .site-header .school-title{min-width:0;flex:1}
 .site-header .school-title strong{font-size:clamp(9px,2.55vw,13px);line-height:1.2}
 .site-header .school-title small{font-size:clamp(10px,2.9vw,13px);margin-top:0;line-height:1.2}
 .site-header .header-actions{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:2px;width:100%;font-size:clamp(10px,3vw,14px)}
 .site-header .header-actions :is(a,button,.home-link){display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 4px;border:1px solid #d5e0ef;border-radius:6px;font-size:inherit;font-weight:400;color:#194672;background:#f8fbff;white-space:nowrap;line-height:1.2}
 .site-header .header-actions form{display:contents}
 .hero .slogan,.hero .slogan.secondary{font-size:clamp(9px,2.5vw,14px)!important;white-space:nowrap;letter-spacing:-.25px;margin:2px 0}
 main.container h2{font-size:clamp(16px,4vw,20px);line-height:1.22}
 .detail{grid-template-columns:minmax(100px,41%) minmax(0,1fr)!important;gap:8px 7px;align-items:start;margin:15px 0}
 .detail :is(strong,span){font-size:16px!important;font-weight:400!important;line-height:1.4;overflow-wrap:anywhere}
 .detail strong:after{content:':' }
 .rc41-daybox .tablewrap table{min-width:630px;table-layout:fixed}
 .rc41-daybox .tablewrap th:nth-child(1){width:55px}.rc41-daybox .tablewrap th:nth-child(2){width:65px}
 .rc41-daybox .tablewrap th:nth-child(3),.rc41-daybox .tablewrap th:nth-child(4),.rc41-daybox .tablewrap th:nth-child(6){width:110px}
 .rc41-daybox .tablewrap th:nth-child(5){width:155px}
 .rc41-daybox .tablewrap td{overflow-wrap:anywhere}
}
.rc43-makeup-session{padding:6px 0;border-bottom:1px solid #dde6ef;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.rc43-makeup-detail td{background:#f6fafc}
.rc43-inline-edit summary{cursor:pointer;color:#185cb6}
.rc43-done{color:#267445}
.rc43-guest-menu{margin-top:14px}
.rc43-guest-menu a{display:inline-block;padding:9px 12px;border:1px solid #dae5f1;border-radius:6px;margin:3px;font-size:14px}
.rc43-guest-menu a.is-locked{color:#66798d}

/* RC4.3: desktop list retains compact 14px titles, 13px supporting rows. */
@media(min-width:781px){main.container:has(nav.tabs a[href*="cong-viec"]) .task-list-title{font-size:14px}main.container:has(nav.tabs a[href*="cong-viec"]) .tablewrap td,main.container:has(nav.tabs a[href*="cong-viec"]) .tablewrap th{font-size:13px}}

/* RC4.4: public task listings, access reports and team administration */
.rc44-public-task{border:1px solid #dae4ef;border-radius:9px;padding:10px 13px;margin:9px 0;background:#fff}
.rc44-public-task h4{margin:0 0 5px;color:#173d70;font-size:14px;font-weight:600}
.rc44-public-task p{font-size:14px;margin:5px 0;overflow-wrap:anywhere;font-weight:400}
.rc44-team-actions{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:10px 0}
.rc44-team-actions form{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:0}
.rc44-admin-tabs{margin:12px 0 20px;display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:780px){.rc44-public-task h4,.rc44-public-task p{font-size:16px}}


/* KTTH RC4.6 – compact, readable mobile UI and persistent user font/density scale.
   Desktop unchanged. Values can be changed on the phone using A− / A+. */
:root{--ktth-mob-scale:1}
.mobile-scale-panel{display:none}
@media(max-width:780px){
 /* Login visibility fix: older RC4.3 header rule incorrectly painted blue-on-pale. */
 .site-header .header-actions a.login-button,
 .site-header .header-actions a.login-button:link,
 .site-header .header-actions a.login-button:visited{
   color:#fff!important;background:#135ccc!important;border:1px solid #135ccc!important;
   opacity:1!important;font-weight:500!important;min-height:32px!important;
   padding:6px 10px!important;white-space:nowrap!important;
 }
 .site-header .header-inner{padding-bottom:4px;}
 .mobile-scale-panel{display:flex;align-items:center;justify-content:center;gap:7px;
   margin:0 auto;padding:2px 10px 6px;max-width:1250px;font-family:Roboto,Arial,sans-serif;
   color:#355475;}
 .mobile-scale-panel .mobile-scale-label{font-size:11px;font-weight:400;margin-right:3px;}
 .mobile-scale-panel button{min-height:29px!important;padding:4px 9px!important;
   border-radius:7px!important;border:1px solid #cbd9ea!important;
   background:#fff!important;color:#174f91!important;font-size:12px!important;
   line-height:1!important;font-weight:500!important;}
 .mobile-scale-panel button:disabled{opacity:.35!important;cursor:not-allowed;}
 .mobile-scale-panel output{min-width:45px;text-align:center;font-size:12px;font-weight:500;}
 /* Shared content density: only mobile; headings remain more prominent. */
 body main.container{font-size:calc(15px * var(--ktth-mob-scale));line-height:1.4;}
 body main.container .panel{padding:calc(10px * var(--ktth-mob-scale)) calc(10px * var(--ktth-mob-scale));
   margin:calc(9px * var(--ktth-mob-scale)) 0 calc(12px * var(--ktth-mob-scale));}
 body main.container :is(.panel h2,.panel h3){font-size:calc(18px * var(--ktth-mob-scale))!important;
   line-height:1.3;margin-bottom:calc(9px * var(--ktth-mob-scale));}
 body main.container :is(.panel p,.panel .muted){font-size:calc(14px * var(--ktth-mob-scale))!important;
   line-height:1.4;margin-top:6px;margin-bottom:6px;}
 body main.container nav.tabs{gap:6px;margin:9px 0 11px;}
 body main.container nav.tabs a{font-size:calc(14px * var(--ktth-mob-scale))!important;
   font-weight:400!important;padding:calc(7px * var(--ktth-mob-scale)) calc(9px * var(--ktth-mob-scale))!important;
   line-height:1.25;}
 body main.container :is(.tablewrap th,.tablewrap td){font-size:calc(14px * var(--ktth-mob-scale))!important;
   padding:calc(7px * var(--ktth-mob-scale)) calc(6px * var(--ktth-mob-scale))!important;
   font-weight:400!important;line-height:1.35;}
 body main.container :is(.panel label,.panel .form-grid label){font-size:calc(13px * var(--ktth-mob-scale))!important;
   font-weight:500!important;margin:3px 0!important;line-height:1.3;}
 body main.container :is(input,select,textarea){font-size:max(16px, calc(16px * var(--ktth-mob-scale)))!important;padding:calc(7px * var(--ktth-mob-scale)) 9px!important;
   min-height:calc(36px * var(--ktth-mob-scale))!important;border-radius:7px!important;}
 body main.container button{font-size:calc(14px * var(--ktth-mob-scale))!important;
   min-height:calc(36px * var(--ktth-mob-scale))!important;
   padding:calc(7px * var(--ktth-mob-scale)) calc(11px * var(--ktth-mob-scale))!important;}
 /* Schedule: two compact filter columns on phones rather than five full-width rows. */
 body[data-ktth-app="schedule"] main.container form.filter{
   display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
   gap:calc(7px * var(--ktth-mob-scale)) 9px!important;align-items:end!important;}
 body[data-ktth-app="schedule"] main.container form.filter label{
   min-width:0!important;width:100%!important;margin:0!important;}
 body[data-ktth-app="schedule"] main.container form.filter :is(input,select){
   width:100%!important;min-width:0!important;max-width:100%!important;}
 body[data-ktth-app="schedule"] main.container form.filter button{
   grid-column:1/-1;width:100%!important;margin:0!important;}
 body[data-ktth-app="schedule"] main.container .rc41-daybox{padding:7px!important;margin:8px 0!important;}
 body[data-ktth-app="schedule"] main.container .rc41-dayhead h3{font-size:calc(15px * var(--ktth-mob-scale))!important;}
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap :is(th,td){
   font-size:calc(13px * var(--ktth-mob-scale))!important;font-weight:400!important;}
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap{
   overflow-x:auto!important;-webkit-overflow-scrolling:touch;
 }
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap table{
   min-width:780px!important;width:max-content!important;table-layout:fixed!important;
 }
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap :is(th,td){
   overflow-wrap:normal!important;word-break:normal!important;white-space:normal!important;
   hyphens:none!important;vertical-align:top!important;
 }
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap :is(th,td):nth-child(1){
   width:58px!important;min-width:58px!important;white-space:nowrap!important;
 }
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap :is(th,td):nth-child(2){
   width:68px!important;min-width:68px!important;white-space:nowrap!important;
 }
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap :is(th,td):nth-child(3){
   width:150px!important;min-width:150px!important;
 }
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap :is(th,td):nth-child(4){
   width:118px!important;min-width:118px!important;
 }
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap :is(th,td):nth-child(5){
   width:150px!important;min-width:150px!important;
 }
 body[data-ktth-app="schedule"] main.container .rc41-daybox .tablewrap :is(th,td):nth-child(6){
   width:236px!important;min-width:236px!important;
 }
 /* Tasks: compact counters, subtitles and buttons; don't recolor warning states. */
 body[data-ktth-app="tasks"] main.container{font-size:calc(15px * var(--ktth-mob-scale))!important;}
 body[data-ktth-app="tasks"] main.container .task-stats{gap:8px!important;margin:10px 0!important;}
 body[data-ktth-app="tasks"] main.container .task-stat{padding:calc(10px * var(--ktth-mob-scale))!important;}
 body[data-ktth-app="tasks"] main.container .task-stat span{
   font-size:calc(13px * var(--ktth-mob-scale))!important;font-weight:400!important;}
 body[data-ktth-app="tasks"] main.container .task-stat strong{
   font-size:calc(22px * var(--ktth-mob-scale))!important;line-height:1.2!important;}
 body[data-ktth-app="tasks"] main.container :is(.task-list-title,.task-tag,.panel .tablewrap td .muted){
   font-size:calc(14px * var(--ktth-mob-scale))!important;font-weight:400!important;}
 body[data-ktth-app="tasks"] main.container :is(.panel .task-card p,.panel .task-note,.panel .detail span,.panel .detail strong){
   font-size:calc(15px * var(--ktth-mob-scale))!important;font-weight:400!important;}
 body[data-ktth-app="tasks"] main.container .detail{grid-template-columns:minmax(96px,42%) minmax(0,1fr)!important;
   gap:7px!important;margin:10px 0!important;}
 body[data-ktth-app="tasks"] main.container .task-card{padding:9px!important;margin:7px 0!important;}
 /* Home cards: reduce unnecessary mobile vertical space. */
 body[data-ktth-app="home"] main.container .hero{margin:9px 0 14px;}
 body[data-ktth-app="home"] main.container .hero h1{font-size:calc(23px * var(--ktth-mob-scale))!important;line-height:1.2;}
 body[data-ktth-app="home"] main.container .hero h1 span{font-size:calc(18px * var(--ktth-mob-scale))!important;}
 body[data-ktth-app="home"] main.container .app-card{min-height:126px!important;padding:12px!important;}
 body[data-ktth-app="home"] main.container .app-card h2{font-size:calc(18px * var(--ktth-mob-scale))!important;}
 body[data-ktth-app="home"] main.container .app-card p{font-size:calc(14px * var(--ktth-mob-scale))!important;}
 body[data-ktth-app="home"] main.container .app-symbol{font-size:calc(26px * var(--ktth-mob-scale))!important;}
}


/* =============== SOURCE 02: mobile-portal.css =============== */
/* KTTH V2.0 RC4.7 – SCN-inspired 3-app Mobile portal and 3-column function menus.
   STRICTLY mobile-only. PC renderers, PHP endpoints, data, authorizations unchanged. */
.ktth-m-portal,.ktth-m-module,.ktth-m-bottom{display:none}
@media screen and (max-width:780px){
 :root{--ktth-m-blue:#1e63ba;--ktth-m-purple:#7250a4;--ktth-m-green:#177448}
 body{overflow-x:hidden;background:#eef3f7}
 body main.container{min-width:0;max-width:100%;padding:10px 10px calc(105px + env(safe-area-inset-bottom,0px));}
 body main.container .hero,
 body main.container .app-grid{display:none!important}
 body main.container .ktth-m-portal{display:block;margin:6px 0 15px;}
 .ktth-m-home-title{border-radius:13px 13px 0 0;background:linear-gradient(135deg,#164c93,#226bb8);color:#fff;text-align:center;padding:20px 12px 15px;}
 .ktth-m-kicker{font-family:Roboto,Arial,sans-serif;color:#cde2ff;letter-spacing:1.1px;font-size:11px;font-weight:700}
 body main.container .ktth-m-home-title h2{font-family:Roboto,Arial,sans-serif;color:#fff!important;font-size:20px!important;line-height:1.25!important;margin:7px 0!important;}
 body main.container .ktth-m-home-title p{color:#e5f2ff!important;font-size:12px!important;margin:3px 0!important}
 .ktth-m-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:13px 7px 16px;background:#fff;border:1px solid #dee8f2;border-top:0;border-radius:0 0 13px 13px;box-shadow:0 4px 15px #143a6220}
 .ktth-m-app,.ktth-m-feature{min-width:0;text-decoration:none!important;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#fff;border:1px solid #e0e7ef;box-shadow:0 2px 5px #193e5814;color:#193d68;border-radius:12px;gap:9px;overflow-wrap:anywhere;word-break:normal}
 .ktth-m-app{min-height:137px;padding:13px 4px 10px}
 .ktth-m-app strong{font-size:11px;font-family:Roboto,Arial,sans-serif;font-weight:700;line-height:1.32;max-width:100%;}
 .ktth-m-app-icon,.ktth-m-feature-icon{display:grid;place-items:center;flex-shrink:0;border-radius:13px;background:#e6f0ff;color:#1d63be}
 .ktth-m-app-icon{width:52px;height:52px}
 .ktth-m-app-icon svg{width:30px;height:30px}
 .ktth-m-badge{font-size:9px;line-height:1.1;color:#ac2831}
 .ktth-m-green .ktth-m-app-icon,.ktth-m-green .ktth-m-feature-icon{color:#198552;background:#e4f5eb}
 .ktth-m-purple .ktth-m-app-icon,.ktth-m-purple .ktth-m-feature-icon{color:#7650b0;background:#f0e8fb}
 .ktth-m-teal .ktth-m-feature-icon{color:#08758c;background:#e4f4f7}
 .ktth-m-red .ktth-m-feature-icon{color:#c63b41;background:#fff0f1}
 .ktth-m-amber .ktth-m-feature-icon{color:#c77c18;background:#fff3de}
 .ktth-m-home-foot{text-align:center;color:#6c7f92;font-size:11px;margin:11px 0!important}
 .ktth-m-module{display:block;margin:-2px -10px 12px;background:#f1f5f8;padding:0 10px 12px;}
 .ktth-m-module-head{display:flex;align-items:center;gap:10px;margin:0 -10px;padding:9px 12px;background:linear-gradient(120deg,#154f9b,#246ab8);min-height:68px;color:white}
 .ktth-m-module.ktth-m-purple .ktth-m-module-head{background:linear-gradient(120deg,#563c91,#8161b4)}
 .ktth-m-module.ktth-m-green .ktth-m-module-head{background:linear-gradient(120deg,#0f6040,#1c855a)}
 .ktth-m-back{width:38px;height:39px;display:grid;place-items:center;color:white!important;border:1px solid #ffffff5b;background:#ffffff12;border-radius:9px;flex-shrink:0}
 .ktth-m-back svg{width:22px;height:22px}
 .ktth-m-module-heading{min-width:0;flex:1;font-family:Roboto,Arial,sans-serif;line-height:1.3}
 .ktth-m-module-heading small{display:block;font-size:11px;color:#eaf1fb;font-weight:500}
 .ktth-m-module-heading strong{display:block;font-size:15px;font-weight:700;color:white;overflow-wrap:anywhere}
 .ktth-m-module-icon{width:38px;height:38px;display:grid;place-items:center;color:#fff;background:#ffffff23;border:1px solid #ffffff4b;border-radius:10px;flex-shrink:0}
 .ktth-m-module-icon svg{width:24px;height:24px}
 .ktth-m-maintenance{background:#fffbea;color:#885f16;border:1px solid #ebdba9;border-radius:9px;padding:16px;margin:12px 0;}
 .ktth-m-menu-caption{font:700 11px/1.35 Roboto,Arial,sans-serif;letter-spacing:.8px;color:#3c5872;padding:13px 2px 8px}
 .ktth-m-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;}
 .ktth-m-feature{min-height:109px;padding:10px 4px 8px;font:600 12px/1.3 Roboto,Arial,sans-serif}
 .ktth-m-feature-icon{width:42px;height:42px}
 .ktth-m-feature-icon svg{width:27px;height:27px}
 body[data-ktth-mobile-menu="yes"] main.container .ktth-app-legacy{display:none!important}
 body main.container .ktth-app-legacy{min-width:0}
 body main.container .ktth-app-legacy > nav.tabs,
 body main.container .ktth-app-legacy > h2,
 body main.container .ktth-app-legacy > p.muted{display:none!important}
 /* The module's own detail screen remains fully functional, with native inner controls. */
 body main.container .ktth-app-legacy > .panel:first-child{margin-top:4px}
 body main.container .ktth-app-legacy .tablewrap{max-width:100%;overscroll-behavior-x:contain}
 body main.container .ktth-app-legacy .tablewrap table{max-width:none}
 .ktth-m-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:60;background:white;border-top:1px solid #d9e4ee;padding:7px 5px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 -3px 14px #1e3f5717;}
 .ktth-m-bottom a{color:#63778a!important;display:flex;flex-direction:column;align-items:center;gap:2px;justify-content:center;min-width:0;text-decoration:none!important;font-family:Roboto,Arial,sans-serif}
 .ktth-m-bottom a span{width:34px;height:32px;border-radius:9px;display:grid;place-items:center}
 .ktth-m-bottom svg{width:20px;height:20px}
 .ktth-m-bottom a small{font-size:10px;font-weight:600;white-space:nowrap;letter-spacing:-.25px}
 .ktth-m-bottom a.current{color:#175ba5!important}
 .ktth-m-bottom a.current span{background:#eaf2ff}
 body footer{margin-bottom:calc(69px + env(safe-area-inset-bottom,0px))}
 /* Header remains compact and functional; auth, sign-out and font controls retained. */
 .site-header{position:relative;z-index:4}
 .site-header .header-inner{padding-top:7px;padding-bottom:3px}
 .site-header .brand{min-height:36px}
 .site-header .school-logo{width:37px;height:37px;object-fit:contain}
 .site-header .school-title strong{font-size:10px!important}
 .site-header .school-title small{font-size:10px!important}
 .site-header .header-actions{font-size:11px!important;gap:4px!important}
 .site-header .header-actions :is(a,button,.home-link){font-size:11px!important;min-height:29px!important}
 body main.container .ktth-m-app-grid .ktth-m-app:hover,
 body main.container .ktth-m-feature-grid .ktth-m-feature:hover{border-color:#8db6e0;background:#f8fbff}
}
@media screen and (max-width:350px){
 .ktth-m-app-grid,.ktth-m-feature-grid{gap:6px}
 .ktth-m-app{min-height:128px;padding:9px 3px}
 .ktth-m-app strong,.ktth-m-feature{font-size:10.5px}
 .ktth-m-feature-icon{width:40px;height:40px}
 .ktth-m-bottom a small{font-size:9px}
}
@media print{.ktth-m-portal,.ktth-m-module,.ktth-m-bottom{display:none!important}.ktth-app-legacy{display:block!important}}


/* =============== SOURCE 03: rc48-compact.css =============== */
/* KTTH RC4.8 – Compact content and navigation.
   Only cross-device change: header brand appears on Home portal only.
   All other layout refinements are MOBILE ONLY; underlying business actions untouched. */
.ktth-m-account,.ktth-m-leave-summary{display:none}
body[data-ktth-onhome="no"] .site-header .brand{display:none!important}
body[data-ktth-onhome="no"] .site-header .header-inner{justify-content:flex-end;min-height:0;padding-top:7px;padding-bottom:7px}
/* Keep desktop user actions, school brand is shown on Home only. */
@media screen and (max-width:780px){
 html,body{max-width:100%;overflow-x:hidden}
 body[data-ktth-onhome="no"] .site-header{display:none!important}
 body[data-ktth-onhome="yes"] .site-header{margin:0!important;padding:0!important;box-shadow:none!important}
 body[data-ktth-onhome="yes"] .site-header .header-inner{display:flex!important;flex-direction:row!important;justify-content:center;align-items:center!important;padding:8px 9px!important;gap:4px!important;min-height:0!important}
 body[data-ktth-onhome="yes"] .site-header .brand{width:100%;max-width:100%!important;margin:auto!important;display:flex;gap:7px!important;min-width:0;justify-content:center;text-decoration:none!important}
 body[data-ktth-onhome="yes"] .site-header .school-logo{width:34px!important;height:34px!important;flex-shrink:0}
 body[data-ktth-onhome="yes"] .site-header .school-title{min-width:0;line-height:1.15!important;flex:none;max-width:calc(100% - 44px)}
 body[data-ktth-onhome="yes"] .site-header .school-title strong{font-size:clamp(9px,2.35vw,11px)!important;text-align:center;line-height:1.25!important}
 body[data-ktth-onhome="yes"] .site-header .school-title small{font-size:clamp(9px,2.4vw,11px)!important;text-align:center;line-height:1.25!important;margin-top:1px!important}
 /* User, logout and sizing have been consolidated in bottom-right Quản trị/Tài khoản. */
 body[data-ktth-onhome="yes"] .site-header .header-actions,
 .site-header > .mobile-scale-panel{display:none!important}
 body main.container{padding-top:5px!important}
 .ktth-m-home-title{padding:10px 10px 9px!important;border-radius:11px 11px 0 0!important}
 .ktth-m-home-title .ktth-m-kicker,.ktth-m-home-title>p{display:none!important}
 body main.container .ktth-m-home-title h2{margin:1px 0!important;font-size:17px!important;line-height:1.2!important;letter-spacing:.3px}
 .ktth-m-app-grid{padding:9px 7px 10px!important;gap:7px!important}
 .ktth-m-app{min-height:108px!important;padding:8px 3px!important;gap:6px!important}
 .ktth-m-app-icon{width:42px!important;height:42px!important}
 .ktth-m-app-icon svg{width:25px!important;height:25px!important}
 .ktth-m-app strong{font-size:11px!important;line-height:1.28!important}
 .ktth-m-home-foot{display:none}
 .ktth-m-module-head{min-height:53px!important;padding:7px 10px!important;gap:7px!important}
 .ktth-m-module-heading small{font-size:10px!important;line-height:1.1}
 .ktth-m-module-heading strong{font-size:14px!important;line-height:1.3}
 .ktth-m-module-icon{width:34px!important;height:34px!important}
 .ktth-m-back{width:35px!important;height:35px!important}
 body footer{display:none!important}
 /* Mobile schedule view: 2 compact columns, 3 rows; no duplicate captions for common filters. */
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-panel{padding:8px!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter{
   display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
   gap:5px 7px!important;align-items:end!important;margin:0 0 8px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter label{min-width:0!important;width:100%!important;margin:0!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter .ktth-m-filter-label{display:none!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter input,
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter select{
   width:100%!important;min-width:0!important;max-width:100%!important;
   box-sizing:border-box!important;height:35px!important;min-height:35px!important;
   font-size:16px!important;padding:5px 6px!important;line-height:1.15!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter .ktth-m-filter-teacher{font-size:0!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter .ktth-m-filter-teacher select{font-size:16px!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter button{
  min-width:0!important;width:100%!important;grid-column:auto!important;
  height:35px!important;min-height:35px!important;padding:4px 6px!important;font-size:14px!important;
 }
 /* Leave and makeup report filters: retain all criteria but compact and readable. */
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-panel{padding:9px 8px!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-panel>h3{font-size:16px!important;line-height:1.25!important;margin:0 0 7px!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-description{display:none!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-filters{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px 8px!important;margin:0 0 8px!important;align-items:end!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-filters label{
  display:block!important;min-width:0!important;width:100%!important;margin:0!important;
  font-size:11px!important;line-height:1.1!important;font-weight:600!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-filters :is(input,select){
  box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;
  min-height:35px!important;height:35px!important;font-size:16px!important;line-height:1.1!important;
  padding:5px 6px!important;margin-top:3px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-filters button{
  grid-column:auto!important;width:100%!important;margin:0!important;min-height:35px!important;height:35px!important;
  padding:5px!important;font-size:13px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-textsummary{display:none!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:10px 0 8px;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary>div{
  border:1px solid #dfe7ee;border-radius:7px;background:#f6f9fc;
  display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px 2px;gap:1px;min-width:0;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary strong{font-size:17px!important;color:#154f93;line-height:1.15}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary span{font-size:10px!important;color:#47586b;text-align:center;line-height:1.25}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-panel>.inlineform.no-print{
  display:inline-flex!important;max-width:50%;margin:4px 3px 7px 0!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-panel>.inlineform.no-print button,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-panel>button.ghost.no-print{
  font-size:13px!important;padding:6px 10px!important;min-height:35px!important;margin-bottom:7px;
 }
 /* Leave report as vertical records on mobile. All action forms remain in the original markup. */
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table{
  border:0!important;overflow:visible!important;max-width:100%!important;margin:3px 0 10px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table table,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody{
  display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table thead{display:none!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail){
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 7px;
  background:#fff;border:1px solid #dce5ef;border-radius:9px;padding:10px 9px 7px;
  margin:8px 0 0;min-width:0;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td{
  display:block!important;padding:0!important;margin:0!important;min-width:0!important;
  border:0!important;overflow-wrap:anywhere!important;white-space:normal!important;
  color:#23374e;font-size:13px!important;line-height:1.3!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:before{
  display:block;font-size:10px;line-height:1.2;color:#69798d;font-weight:500;margin-bottom:1px;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:first-child{
  grid-column:1/-1;font-weight:700!important;font-size:14px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:nth-child(2):before{content:'Ngày nghỉ'}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:nth-child(3):before{content:'Buổi / Tiết'}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:nth-child(4){grid-column:1/-1}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:nth-child(4):before{content:'Lớp / Môn'}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:nth-child(5):before{content:'Tiến độ'}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:nth-child(6):before{content:'Trạng thái'}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>.rc43-makeup-detail{
  display:block!important;min-width:0!important;margin:0 0 7px!important;
  background:#f5f9fd!important;border:1px solid #dce5ef;border-top:0;
  border-radius:0 0 9px 9px;padding:6px 10px 9px;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>.rc43-makeup-detail>td{
  display:block!important;border:0!important;padding:0!important;min-width:0!important;
  max-width:100%!important;overflow-wrap:anywhere!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-line{display:block!important;font-size:13px!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-line>.muted{
  display:block!important;font-size:13px!important;font-weight:600!important;line-height:1.35!important;
  color:#4e627b!important;margin:0 0 4px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-session{
  display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-width:0;
  font-size:13px!important;line-height:1.35!important;padding:5px 0!important;overflow-wrap:anywhere;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-session form{max-width:100%!important}
 /* Account and admin controls now live behind bottom-right Quản trị. */
 body[data-ktth-mobile-account="yes"] main.container>.ktth-m-account{display:block!important;margin:10px 0 20px}
 .ktth-m-account h2{font:700 16px/1.3 Roboto,Arial,sans-serif;color:#154b89;display:flex;align-items:center;gap:8px;margin:0 0 12px}
 .ktth-m-account h2 svg{width:21px;height:21px}
 .ktth-m-account-card{background:#fff;border:1px solid #dce5ee;border-radius:12px;padding:13px;margin:9px 0}
 .ktth-m-account-user{display:flex;gap:10px;align-items:center}
 .ktth-m-account-user>svg{width:35px;height:35px;color:#1d5ca8}
 .ktth-m-account-user strong,.ktth-m-account-user small{display:block;overflow-wrap:anywhere}
 .ktth-m-account-user strong{font-size:16px}
 .ktth-m-account-user small{font-size:12px;color:#63778a}
 .ktth-m-account-card p{overflow-wrap:anywhere;font-size:13px!important}
 .ktth-m-account-link{padding:12px 6px;display:flex;gap:11px;align-items:center;border-top:1px solid #edf0f3;color:#164f9b!important;text-decoration:none!important;font-size:14px}
 .ktth-m-account-link svg{width:20px;height:20px;flex-shrink:0}
 .ktth-m-account .mobile-scale-panel{display:flex!important;justify-content:flex-start;flex-wrap:wrap;padding:8px 0 0;gap:7px;margin:0}
 .ktth-m-account .ktth-m-logout{width:100%;background:#a82127!important;border-color:#a82127!important;color:#fff!important}
}
@media screen and (max-width:350px){
 body[data-ktth-app="schedule"] main.container .ktth-m-schedule-filter,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-filters{gap:5px!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-filters :is(input,select){padding-left:4px!important;padding-right:4px!important}
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary span{font-size:9px!important}
}
@media print{
 .ktth-m-account,.ktth-m-leave-summary{display:none!important}
 .ktth-m-leave-textsummary{display:block!important}
 .ktth-m-leave-description{display:block!important}
 body[data-ktth-onhome="no"] .site-header .brand{display:none!important}
}


/* =============== SOURCE 04: rc49-mobile.css =============== */
/* KTTH RC4.9 – consistent compact Mobile typography and leave/makeup layout.
   Desktop is unchanged. Only CSS presentation; no data/schema changes. */
.ktth-rc49-export-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:8px 0 12px}
.ktth-rc49-export-actions .inlineform {margin:0;display:flex;align-items:center}
.ktth-rc49-export-actions button {margin:0}
@media screen and (max-width:780px) {
 :root {--ktth-rc49-text:calc(13px * var(--ktth-mob-scale, 1));--ktth-rc49-title:#174b83}
 /* A single ordinary text scale across all three applications. Reserve 16px for native
    input/select content to prevent Safari automatic zoom when the user focuses a field. */
 body main.container,body[data-ktth-app="tasks"] main.container {font-size:var(--ktth-rc49-text)!important;line-height:1.35!important}
 body main.container :is(.panel,.subpanel,.task-card,.detail,.task-group,.task-note){font-size:var(--ktth-rc49-text)!important;line-height:1.35!important}
 body main.container :is(.panel h2,.panel h3,.panel h4,.subpanel h4,.task-card h3,.task-board h3){
  font-size:var(--ktth-rc49-text)!important;line-height:1.3!important;
  font-weight:700!important;color:var(--ktth-rc49-title)!important;margin:0 0 7px!important;
 }
 body main.container :is(.panel p,.panel .muted,.panel li,.task-card p,.task-note,.detail strong,.detail span){
  font-size:var(--ktth-rc49-text)!important;line-height:1.35!important;
 }
 body main.container :is(.panel label,.panel .form-grid label,.panel .filter label){
  font-size:var(--ktth-rc49-text)!important;line-height:1.3!important;
 }
 body main.container :is(.panel button,.subpanel button,nav.tabs a){
  font-size:var(--ktth-rc49-text)!important;line-height:1.25!important;
 }
 body main.container :is(.panel .tablewrap td,.panel .tablewrap th,.panel .tablewrap td a){
  font-size:var(--ktth-rc49-text)!important;line-height:1.35!important;
 }
 body[data-ktth-app="tasks"] main.container :is(.task-stat strong,.task-stat span,.task-list-title,.task-card p,.task-tag,.task-note,.task-setting-row){
  font-size:var(--ktth-rc49-text)!important;line-height:1.3!important;
 }
 body[data-ktth-app="assets"] main.container :is(.panel p,.panel label,.tablewrap td,.tablewrap th){
  font-size:var(--ktth-rc49-text)!important;
 }
 /* Leave/makeup report: the legacy reporting-period control remains available on PC,
    but the mobile script derives it from semester, month or completed date range. */
 body[data-ktth-app="schedule"] main.container #ktth-rc49-leave-filters .ktth-rc49-desktop-period{
  display:none!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-panel>h3{
  font-size:var(--ktth-rc49-text)!important;color:var(--ktth-rc49-title)!important;
  font-weight:700!important;line-height:1.25!important;margin:0 0 7px!important;
 }
 body[data-ktth-app="schedule"] main.container #ktth-rc49-leave-filters{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px 8px!important;align-items:end!important;margin:0 0 9px!important;
 }
 body[data-ktth-app="schedule"] main.container #ktth-rc49-leave-filters label{
  display:block!important;min-width:0!important;max-width:100%!important;width:100%!important;
  font-size:var(--ktth-rc49-text)!important;font-weight:700!important;color:var(--ktth-rc49-title)!important;
  line-height:1.1!important;margin:0!important;
 }
 body[data-ktth-app="schedule"] main.container #ktth-rc49-leave-filters :is(input,select){
  display:block!important;box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;
  height:35px!important;min-height:35px!important;padding:4px 6px!important;margin:3px 0 0!important;
  font-size:max(16px,calc(16px * var(--ktth-mob-scale,1)))!important;
  font-weight:400!important;line-height:1.1!important;letter-spacing:-.3px;
 }
 body[data-ktth-app="schedule"] main.container #ktth-rc49-leave-filters button{
  width:100%!important;min-width:0!important;min-height:35px!important;height:35px!important;
  margin:0!important;padding:4px!important;font-size:var(--ktth-rc49-text)!important;
 }
 /* Counters should never become larger than ordinary copy; compact three-per-row grid. */
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;margin:8px 0 9px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary>div{
  min-width:0!important;padding:5px 3px!important;gap:1px!important;border-radius:7px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary strong,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary span{
  font-size:var(--ktth-rc49-text)!important;line-height:1.15!important;text-align:center!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary strong{
  font-weight:700!important;color:var(--ktth-rc49-title)!important;
 }
 /* Aligned export / print controls: exactly one row on normal phones, same height and baseline. */
 body[data-ktth-app="schedule"] main.container .ktth-rc49-export-actions{
  display:flex!important;align-items:stretch!important;justify-content:flex-start!important;
  gap:7px!important;flex-wrap:nowrap!important;margin:5px 0 10px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-rc49-export-actions form{
  display:flex!important;align-items:stretch!important;width:auto!important;max-width:none!important;
  margin:0!important;padding:0!important;flex:0 0 auto;
 }
 body[data-ktth-app="schedule"] main.container .ktth-rc49-export-actions button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;flex:0 0 auto!important;height:35px!important;min-height:35px!important;
  padding:6px 11px!important;margin:0!important;border-radius:8px!important;
  font-size:var(--ktth-rc49-text)!important;line-height:1.1!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:first-child,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-line,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-line>.muted,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-session{
  font-size:var(--ktth-rc49-text)!important;line-height:1.3!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:first-child,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-line>.muted{
  color:var(--ktth-rc49-title)!important;font-weight:700!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table tbody>tr:not(.rc43-makeup-detail)>td:before{
  font-size:calc(12px * var(--ktth-mob-scale,1))!important;
 }
}
@media print{
 .ktth-rc49-export-actions{display:none!important}
}


/* =============== SOURCE 05: rc410-unified.css =============== */
/* KTTH V2 RC4.10: unified mobile controls across Schedule, Tasks and Assets.
   Desktop layout changes are limited to the Schedule menu. No database changes. */
:root{--ktth-410-blue:#174b83}
/* PC: one equal-width, blue navigation row. Hide no permissions: markup still handles access. */
@media screen and (min-width:781px){
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs{
  display:flex!important;flex-wrap:nowrap!important;gap:6px!important;width:100%;
  margin:10px 0 12px!important;overflow-x:auto;scrollbar-width:thin;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a{
  display:flex!important;flex:1 1 0!important;min-width:0!important;
  min-height:37px;box-sizing:border-box;text-align:center;align-items:center;justify-content:center;
  padding:7px 5px!important;margin:0!important;line-height:1.2!important;
  font-size:13px!important;font-weight:700!important;white-space:nowrap;
  border:1px solid #1959a3!important;background:#1b61b8!important;color:#fff!important;
  border-radius:7px!important;text-decoration:none!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a.active,
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a[aria-current="page"]{
  background:#093f86!important;border-color:#093f86!important;color:#fff!important;
  box-shadow:inset 0 -3px 0 #83b8f5;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a:focus-visible{
  outline:3px solid #6db3ff!important;outline-offset:-2px;
 }
}
@media screen and (max-width:780px){
 :root{--ktth-410-body:calc(14px * var(--ktth-mob-scale,1));--ktth-410-field:16px;--ktth-410-control-height:36px}
 body[data-ktth-onhome="no"] main.container{
  font-size:var(--ktth-410-body)!important;line-height:1.35!important;
 }
 /* Labels and all section headings use one text size; hierarchy via weight + blue. */
 body[data-ktth-onhome="no"] main.container :is(
  .panel h2,.panel h3,.panel h4,.subpanel h2,.subpanel h3,.subpanel h4,
  .task-card h2,.task-card h3,.task-card h4,.task-board h3,
  .task-group h3,.task-list-title
 ){
  font-size:var(--ktth-410-body)!important;line-height:1.3!important;
  font-weight:700!important;color:var(--ktth-410-blue)!important;
  margin-top:0!important;margin-bottom:7px!important;
 }
 body[data-ktth-onhome="no"] main.container :is(
  .panel p,.panel li,.panel .muted,.subpanel p,.task-card p,.task-note,
  .task-stat,.task-tag,.task-setting-row,.detail,.detail span,
  .tablewrap th,.tablewrap td,.tablewrap td a,
  .rc43-makeup-line,.rc43-makeup-session
 ){
  font-size:var(--ktth-410-body)!important;line-height:1.34!important;
 }
 body[data-ktth-onhome="no"] main.container :is(.panel label,.subpanel label,.form-grid label,.filter label){
  font-size:var(--ktth-410-body)!important;line-height:1.25!important;
  font-weight:700!important;color:var(--ktth-410-blue)!important;
 }
 /* Consistent field geometry: 16px avoids iPhone Safari zoom when focused. */
 body[data-ktth-onhome="no"] main.container :is(.panel,.subpanel) :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="submit"]):not([type="button"]),
  select,textarea
 ){
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  font-family:Roboto,Arial,Helvetica,sans-serif!important;
  font-size:var(--ktth-410-field)!important;font-weight:400!important;
  line-height:1.22!important;letter-spacing:-.2px;
  min-height:var(--ktth-410-control-height)!important;
  padding:6px 8px!important;margin-top:4px!important;
  border-radius:8px!important;
 }
 body[data-ktth-onhome="no"] main.container :is(.panel,.subpanel) :is(input:not([type="file"]),select){
  overflow:hidden;text-overflow:ellipsis;
 }
 body[data-ktth-onhome="no"] main.container :is(.panel,.subpanel) :is(input:not([type="file"]),select):not([multiple]){
  height:var(--ktth-410-control-height)!important;
 }
 body[data-ktth-onhome="no"] main.container :is(.panel,.subpanel) textarea{
  height:auto!important;min-height:75px!important;resize:vertical;
 }
 body[data-ktth-onhome="no"] main.container :is(.panel,.subpanel) input[type="file"]{
  font-size:var(--ktth-410-body)!important;width:100%!important;min-width:0!important;
 }
 body[data-ktth-onhome="no"] main.container :is(.panel,.subpanel) :is(button,.small,.task-chip-link){
  font-size:var(--ktth-410-body)!important;line-height:1.2!important;
  min-height:var(--ktth-410-control-height)!important;
  padding:7px 10px!important;
 }
 body[data-ktth-onhome="no"] main.container :is(.panel,.subpanel) :is(.form-grid,.filter){
  row-gap:7px!important;column-gap:8px!important;
 }
 body[data-ktth-onhome="no"] main.container :is(.panel,.subpanel) :is(.form-grid,.filter) label{
  min-width:0!important;max-width:100%!important;
 }
 /* Where tables are kept for reference, don't let typography expand row heights. */
 body[data-ktth-onhome="no"] main.container .tablewrap :is(th,td){
  font-size:var(--ktth-410-body)!important;padding:7px 7px!important;
 }
 /* Schedule day/week and absence report: specifically override RC4.8/RC4.9 larger controls. */
 body[data-ktth-app="schedule"] main.container :is(.ktth-m-schedule-filter,#ktth-rc49-leave-filters){
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  align-items:end!important;gap:7px 8px!important;
 }
 body[data-ktth-app="schedule"] main.container :is(.ktth-m-schedule-filter,#ktth-rc49-leave-filters)>label{
  min-width:0!important;max-width:100%!important;width:100%!important;
  font-size:var(--ktth-410-body)!important;line-height:1.25!important;
  color:var(--ktth-410-blue)!important;font-weight:700!important;
 }
 body[data-ktth-app="schedule"] main.container :is(.ktth-m-schedule-filter,#ktth-rc49-leave-filters) :is(input,select){
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  height:var(--ktth-410-control-height)!important;min-height:var(--ktth-410-control-height)!important;
  font-size:16px!important;padding:5px 7px!important;letter-spacing:-.2px;
 }
 body[data-ktth-app="schedule"] main.container :is(.ktth-m-schedule-filter,#ktth-rc49-leave-filters)>button{
  height:var(--ktth-410-control-height)!important;min-height:var(--ktth-410-control-height)!important;
  width:100%!important;min-width:0!important;margin:0!important;
  font-size:var(--ktth-410-body)!important;
 }
 /* Results and metrics share the same font scale; numbers never balloon. */
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary :is(strong,span),
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-line>.muted,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-session{
  font-size:var(--ktth-410-body)!important;line-height:1.25!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary strong,
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-table .rc43-makeup-line>.muted{
  color:var(--ktth-410-blue)!important;font-weight:700!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-m-leave-summary>div{
  padding:5px 3px!important;min-width:0!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-rc49-export-actions{
  display:flex!important;align-items:stretch!important;gap:8px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-rc49-export-actions :is(button,form){
  margin:0!important;min-height:var(--ktth-410-control-height)!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-rc49-export-actions button{
  height:var(--ktth-410-control-height)!important;
  min-height:var(--ktth-410-control-height)!important;
  padding:6px 10px!important;display:inline-flex!important;
  align-items:center!important;justify-content:center!important;
  font-size:var(--ktth-410-body)!important;line-height:1.1!important;
 }
 /* Schedule table cells and KPI statistics - use standard text throughout. */
 body[data-ktth-onhome="no"] main.container :is(.task-stat strong,.task-stat span,.task-stats strong,.task-stats span){
  font-size:var(--ktth-410-body)!important;line-height:1.25!important;
 }
}
/* Two-column date pickers on narrow phones would clip Vietnamese locale text;
   let those date fields have their own full row instead of spilling off-screen. */
@media screen and (max-width:355px){
 body[data-ktth-app="schedule"] main.container :is(.ktth-m-schedule-filter,#ktth-rc49-leave-filters)>label:has(input[type="date"]){
  grid-column:1/-1;
 }
}
@media print{
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs a{background:white!important;color:black!important;border-color:#bbb!important}
}


/* =============== SOURCE 06: rc411-date-compact.css =============== */
/* KTTH RC4.11 — every date/date-time/month field on Mobile.
   Display is compact DD/MM/YYYY; original native input remains intact for
   Safari/Android date picker, HTML form submission and validation.
   Desktop intentionally untouched. */
@media screen and (max-width: 780px) {
  :root { --ktth-date-height:36px; }
  body[data-ktth-onhome="no"] .ktth-date-compact {
    position:relative!important;
    display:flex!important;
    box-sizing:border-box!important;
    align-items:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:var(--ktth-date-height)!important;
    min-height:var(--ktth-date-height)!important;
    max-height:var(--ktth-date-height)!important;
    padding:0 30px 0 9px!important;
    margin:4px 0 0!important;
    overflow:hidden!important;
    background:#fff!important;
    border:1px solid #c9d7e8!important;
    border-radius:8px!important;
    vertical-align:middle!important;
    font-size:14px!important;
    line-height:1.2!important;
    font-weight:400!important;
  }
  body[data-ktth-onhome="no"] .ktth-date-compact:focus-within {
    outline:2px solid #7ab3ff!important;
    outline-offset:1px!important;
  }
  body[data-ktth-onhome="no"] .ktth-date-compact__text {
    flex:1 1 auto!important;min-width:0!important;
    color:#1b304b!important;font-size:14px!important;font-weight:400!important;
    letter-spacing:0!important;line-height:1.2!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    text-align:left!important;pointer-events:none!important;
    margin:0!important;padding:0!important;
  }
  body[data-ktth-onhome="no"] .ktth-date-compact__text.is-empty {
    color:#738398!important;
  }
  body[data-ktth-onhome="no"] .ktth-date-compact__icon {
    position:absolute!important;right:9px!important;top:50%!important;
    width:15px!important;height:15px!important;transform:translateY(-50%)!important;
    color:#516b8a!important;pointer-events:none!important;
  }
  /* Keep the real date input above the short display for the actual native picker.
     A transparent 16px input prevents focus-zoom while keeping JS/form semantics. */
  body[data-ktth-onhome="no"] .ktth-date-compact > input:is([type="date"],[type="datetime-local"],[type="month"]) {
    position:absolute!important;inset:0!important;z-index:2!important;
    display:block!important;box-sizing:border-box!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:100%!important;min-height:0!important;max-height:100%!important;
    padding:0!important;margin:0!important;
    border:0!important;border-radius:0!important;
    background:transparent!important;
    opacity:0.005!important;
    font-size:16px!important;line-height:normal!important;
    cursor:pointer!important;pointer-events:auto!important;
    -webkit-appearance:auto!important;appearance:auto!important;
  }
  body[data-ktth-onhome="no"] .ktth-date-compact > input:disabled {
    cursor:not-allowed!important;
  }
  body[data-ktth-onhome="no"] .ktth-date-compact:has(> input:disabled) {
    opacity:.6!important;
  }
}


/* =============== SOURCE 07: rc412-menus.css =============== */
/* KTTH V2.0 RC4.12 – shared menu style and clearly scoped administration.
   Works with the existing RC4.11 mobile date controls; this file does not style native date pickers. */
:root{--ktth412-blue:#1b61b8;--ktth412-active:#083f86;--ktth412-outline:#bfd4ec}
@media screen and (min-width:781px){
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy>nav.tabs,
 body[data-ktth-app="assets"] main.container .ktth-app-legacy>nav.tabs,
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs{
  display:flex!important;flex-wrap:nowrap!important;align-items:stretch;
  width:100%;gap:6px!important;margin:10px 0 14px!important;
  overflow-x:auto;scrollbar-width:thin;
 }
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy>nav.tabs>a,
 body[data-ktth-app="assets"] main.container .ktth-app-legacy>nav.tabs>a,
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a{
  display:flex!important;flex:1 1 0!important;min-width:100px!important;min-height:40px;
  box-sizing:border-box;align-items:center;justify-content:center;
  padding:7px 6px!important;margin:0!important;
  font-size:13px!important;line-height:1.25!important;font-weight:700!important;
  text-align:center!important;text-decoration:none!important;
  background:var(--ktth412-blue)!important;color:#fff!important;
  border:1px solid #2359a1!important;border-radius:7px!important;white-space:normal;
 }
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy>nav.tabs>a.active,
 body[data-ktth-app="assets"] main.container .ktth-app-legacy>nav.tabs>a.active,
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a.active{
  background:var(--ktth412-active)!important;color:#fff!important;
  border-color:var(--ktth412-active)!important;box-shadow:inset 0 -3px 0 #85baff;
 }
}
.ktth-rc412-settings,.ktth-rc412-common{min-width:0;max-width:100%}
.ktth-rc412-settings{overflow-wrap:anywhere}
.ktth-rc412-settings>h3,.ktth-rc412-common>h2{color:#164977}
.ktth-rc412-config-nav,.ktth-rc412-admin-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 18px}
.ktth-rc412-config-nav>a,.ktth-rc412-admin-nav>a{
 min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;
 background:#e9f2fc;color:#154b83;border:1px solid #bcd4ee;border-radius:9px;
 padding:8px;text-align:center;text-decoration:none;font-weight:700;line-height:1.3;
}
.ktth-rc412-config-nav>a.active,.ktth-rc412-admin-nav>a.active{
 background:#165db0;color:#fff;border-color:#165db0;
}
.ktth-rc412-role{border:1px solid #d4e2ef;border-radius:9px;background:#f9fcff;padding:14px;margin:12px 0}
.ktth-rc412-role h4{margin:0 0 10px;color:#15518c}
.ktth-rc412-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:10px 0 13px}
.ktth-rc412-check-grid label{display:flex;align-items:center;gap:7px;margin:0;min-width:0;font-size:14px!important;font-weight:500!important;color:#183953!important}
.ktth-rc412-check-grid input[type=checkbox]{flex:0 0 auto}
.ktth-rc412-common>p.muted{margin:6px 0}
.ktth-rc412-common .panel{min-width:0}
.ktth-rc412-perm-link{display:block;padding:5px 2px;font-size:13px}
.ktth-rc412-common .tablewrap{max-width:100%}
@media screen and (max-width:780px){
 body main.container .ktth-rc412-common>h2{font-size:16px!important;margin:6px 0!important}
 body main.container .ktth-rc412-common>p.muted{font-size:13px!important}
 body main.container .ktth-rc412-settings>h3{font-size:16px!important}
 .ktth-rc412-config-nav,.ktth-rc412-admin-nav{gap:7px;margin:10px 0 14px}
 .ktth-rc412-config-nav>a,.ktth-rc412-admin-nav>a{
  min-height:68px;padding:9px 3px;font-size:12px!important;line-height:1.28;
 }
 .ktth-rc412-role{padding:10px;margin:10px 0}
 .ktth-rc412-check-grid{grid-template-columns:minmax(0,1fr);gap:8px}
 .ktth-rc412-settings select,.ktth-rc412-settings input:not([type=checkbox]):not([type=radio]){
  max-width:100%;min-width:0;box-sizing:border-box;
 }
 body main.container .ktth-rc412-common .tablewrap{overflow-x:auto;max-width:100%}
 body main.container .ktth-rc412-common>.panel{margin-top:8px}
}


/* =============== SOURCE 08: rc413-pc.css =============== */
/* KTTH V2.0 RC4.13 – desktop-only refinement of the application portal.
   Do not override the RC4.11 mobile native date handling. */
@media screen and (min-width: 781px) {
  /* The institution logo and name live in the shared header on every route. */
  body[data-ktth-onhome="yes"] .ktth-rc413-home-hero {
    margin: 12px auto 20px;
    text-align: center;
  }
  body[data-ktth-onhome="yes"] .ktth-rc413-home-hero h1 {
    margin: 6px auto 0;
    line-height: 1.3;
  }
  /* Home: footer motto, not a duplicated introduction above the apps. */
  footer .ktth-rc413-footer {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 2.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding-top: 10px;
    padding-bottom: 10px;
    box-sizing: border-box;
  }
  footer .ktth-rc413-credit { grid-column: 1; justify-self: start; font-size: 12px; }
  footer .ktth-rc413-motto {
    grid-column: 2;
    justify-self: center;
    text-align: center;
    color: #163f7b;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.55;
    overflow-wrap: break-word;
  }
  /* The heading of each module is already represented by the selected item
     or a section heading below the blue horizontal menu. */
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > h2:first-child,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > h2:first-child,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > h2:first-child {display:none !important;}
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > h2:first-child + p.muted {display:none !important;}
  body[data-ktth-app="schedule"] main.container .ktth-rc413-schedule-heading {
    margin: 4px 0 15px;
    color: #124a87;
    font-size: 18px;
    font-weight: 700;
  }
  /* The primary module navigation: a single consistent blue strip,
     compact links packed to the left (no equal-width stretching). */
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs {
    display:flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content:flex-start !important;
    gap: 3px !important;
    width:100%;
    box-sizing:border-box;
    padding: 5px 8px !important;
    margin: 0 0 14px !important;
    background: #0953ad;
    border: 1px solid #0950a5;
    border-radius: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    width:auto !important;
    min-height: 36px !important;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin:0 !important;
    padding: 7px 15px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: transparent !important;
    color: white !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color .14s ease, box-shadow .14s ease;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a:hover,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a:hover,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a:hover {
    background: #438be0 !important;
    color: #fff !important;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a.active,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a.active,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a.active {
    background: #063d88 !important;
    color: white !important;
    box-shadow: inset 0 -3px 0 #97c8ff !important;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a:focus-visible,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a:focus-visible,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a:focus-visible {
    outline: 2px solid white;
    outline-offset: -3px;
  }
  body main.container .ktth-app-legacy > nav.tabs > a.ktth-rc413-home {
    background: #17477f !important;
    margin-right: 7px !important;
    border-right: 1px solid #a8c9ed !important;
  }
}
@media screen and (max-width: 780px) {
  /* Keep RC4.11 date and RC4.12 mobile navigation exactly as verified. */
  .ktth-rc413-motto { display:none !important; }
  .ktth-rc413-schedule-heading { display:none !important; }
}
@media print { .ktth-rc413-motto { display:none !important; } }


/* =============== SOURCE 09: rc414-pc.css =============== */
/* KTTH V2.0 RC4.14 — PC-only header/menu corrections (built upon RC4.13).
   Fix the outdated RC4.8 cross-device hide rule by explicitly showing the school identity on desktop.
   Do not change Mobile RC4.11 date controls or navigation. */
@media screen and (min-width: 781px) {
  /* RC4.8 hid the brand on all non-Home pages; make it visible on every PC route. */
  body[data-ktth-onhome="no"] .site-header .brand,
  body[data-ktth-onhome="yes"] .site-header .brand {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    max-width: min(750px, 70%) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  body[data-ktth-onhome="no"] .site-header .header-inner,
  body[data-ktth-onhome="yes"] .site-header .header-inner {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 77px !important;
    gap: 15px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  .site-header .brand .school-logo {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
  }
  .site-header .brand .school-title {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .site-header .brand .school-title strong,
  .site-header .brand .school-title small { display: block !important; }
  .site-header .header-actions {flex-shrink: 0 !important;}

  /* All three application menus: left-packed dark-blue buttons, consistent uppercase.
     Selected item stays medium blue; hovering any item turns it bright blue. */
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 5px 8px !important;
    background: #0750a7 !important;
    overflow-x: auto !important;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 14px !important;
    margin: 0 !important;
    background-color: #052d70 !important;
    color: #fff !important;
    border: 1px solid #164f9e !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    transition: background-color .14s ease, box-shadow .14s ease !important;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a.active,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a.active,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a.active {
    background-color: #087bc5 !important;
    border-color: #0b8eda !important;
    box-shadow: inset 0 -2px 0 #bce8ff !important;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a:hover,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a:hover,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a:hover,
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a.active:hover,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a.active:hover,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a.active:hover {
    background-color: #3296df !important;
    border-color: #60b0ee !important;
    color: #fff !important;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs > a:focus-visible,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs > a:focus-visible,
  body[data-ktth-app="assets"] main.container .ktth-app-legacy > nav.tabs > a:focus-visible {
    outline: 2px solid #fff !important;
    outline-offset: -3px !important;
  }
  /* Home button must look exactly like other menu items (RC4.13 made it different). */
  body main.container .ktth-app-legacy > nav.tabs > a.ktth-rc413-home {
    margin-right: 0 !important;
    border-right: 1px solid #164f9e !important;
  }
}
@media screen and (max-width: 780px) {
  /* Deliberately no rules: preserve RC4.11+ Mobile styles and date pickers. */
}


/* =============== SOURCE 10: rc415-theme.css =============== */
/* KTTH V2.0 RC4.15 – option 3 (cyan/teal) approved for desktop app menus.
   Mobile navigation, forms, date picker and business logic remain as in RC4.11–RC4.14. */
@media screen and (min-width:781px){
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy>nav.tabs,
 body[data-ktth-app="assets"] main.container .ktth-app-legacy>nav.tabs{
  background:#079fc5!important;
  border:1px solid #0698bf!important;
  padding:7px 9px!important;
  gap:6px!important;
  justify-content:flex-start!important;
  border-radius:8px!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy>nav.tabs>a,
 body[data-ktth-app="assets"] main.container .ktth-app-legacy>nav.tabs>a{
  background:#087da0!important;
  border:1px solid #087998!important;
  color:#fff!important;
  border-radius:6px!important;
  height:38px!important;
  min-height:38px!important;
  padding:7px 14px!important;
  box-shadow:none!important;
  font-size:12px!important;
  font-weight:700!important;
  text-transform:uppercase!important;
  transition:background-color .15s ease,color .15s ease,border-color .15s ease!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a.active,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy>nav.tabs>a.active,
 body[data-ktth-app="assets"] main.container .ktth-app-legacy>nav.tabs>a.active{
  background:#8aeef4!important;
  border-color:#e3ffff!important;
  color:#064367!important;
  box-shadow:inset 0 -2px 0 #0b95b7!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a:hover,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy>nav.tabs>a:hover,
 body[data-ktth-app="assets"] main.container .ktth-app-legacy>nav.tabs>a:hover{
  background:#4bcde4!important;
  color:#073e5c!important;
  border-color:#aafaff!important;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy>nav.tabs>a:focus-visible,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy>nav.tabs>a:focus-visible,
 body[data-ktth-app="assets"] main.container .ktth-app-legacy>nav.tabs>a:focus-visible{
  outline:3px solid #fff!important;outline-offset:1px!important;
 }
 body main.container .ktth-app-legacy>nav.tabs>a.ktth-rc413-home{
  background:#087da0!important;
  border:1px solid #087998!important;
  margin-right:0!important;
 }
 body main.container .ktth-app-legacy>nav.tabs>a.ktth-rc413-home:hover{
  background:#4bcde4!important;color:#073e5c!important;
 }
}
/* Admin home is a true separate landing page: no repeated full menu in details. */
.ktth-rc415-admin {width:100%;min-width:0;margin:10px auto 24px;}
.ktth-rc415-admin-head{background:linear-gradient(110deg,#0782a4,#06a8c9);color:#fff;border-radius:12px 12px 0 0;padding:19px 20px;}
.ktth-rc415-admin-head h2{font-size:21px!important;margin:0 0 7px!important;color:#fff!important;letter-spacing:.025em;}
.ktth-rc415-admin-head p{font-size:14px;line-height:1.5;margin:0;max-width:900px;color:#eefcff;}
.ktth-rc415-admin-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;padding:18px;border:1px solid #cce1e9;border-top:0;border-radius:0 0 12px 12px;background:#f8fcfe;}
.ktth-rc415-admin-tile{
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
 min-height:125px;min-width:0;padding:12px 8px;border:1px solid #c5dce7;border-radius:11px;
 background:#fff;color:#075175;text-align:center;text-decoration:none!important;
 box-shadow:0 2px 7px rgba(19,66,92,.065);
 transition:transform .13s ease,border-color .13s ease,background-color .13s ease,box-shadow .13s ease;
}
.ktth-rc415-admin-tile:hover,.ktth-rc415-admin-tile:focus-visible{
 background:#dafbff;color:#064865;border-color:#17a6c4;
 box-shadow:0 4px 13px rgba(6,132,166,.18);transform:translateY(-2px);
}
.ktth-rc415-admin-tile:active{background:#a9f2f9;transform:translateY(0);}
.ktth-rc415-admin-tile-icon{display:grid;place-items:center;width:47px;height:47px;background:#e0f8fb;border-radius:12px;color:#0789a9;}
.ktth-rc415-admin-tile-icon svg{width:26px;height:26px;}
.ktth-rc415-admin-tile-label{font-size:14px;line-height:1.35;font-weight:750;overflow-wrap:anywhere;}
.ktth-rc415-admin-breadcrumb{
 display:flex;gap:12px;align-items:center;justify-content:flex-start;flex-wrap:wrap;
 min-height:55px;padding:9px 13px;margin-bottom:14px;border-radius:9px;
 color:#fff;background:#079fc5;
}
.ktth-rc415-admin-breadcrumb>a{
 display:inline-flex;gap:7px;align-items:center;padding:9px 12px;border-radius:6px;
 border:1px solid #087998;background:#087da0;color:#fff!important;text-decoration:none!important;font-size:13px;font-weight:700;
}
.ktth-rc415-admin-breadcrumb>a:hover,.ktth-rc415-admin-breadcrumb>a:focus-visible{background:#4bcde4;color:#063e57!important;}
.ktth-rc415-admin-breadcrumb>a svg{width:18px;height:18px;}
.ktth-rc415-admin-breadcrumb>strong{font-size:14px;letter-spacing:.01em;text-transform:uppercase;}
.ktth-rc415-admin-detail{min-width:0;max-width:100%;}
.ktth-rc415-admin-detail>.panel{margin:0 0 14px;}
@media screen and (max-width:780px){
 .ktth-rc415-admin{margin:3px auto 20px;}
 .ktth-rc415-admin-head{padding:12px 13px;border-radius:10px 10px 0 0;}
 .ktth-rc415-admin-head h2{font-size:16px!important;margin:0 0 5px!important;}
 .ktth-rc415-admin-head p{font-size:12px;line-height:1.45;}
 .ktth-rc415-admin-tiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px;border-radius:0 0 10px 10px;}
 .ktth-rc415-admin-tile{min-height:93px;gap:7px;padding:9px 3px;border-radius:9px;}
 .ktth-rc415-admin-tile-icon{width:37px;height:37px;border-radius:9px;}
 .ktth-rc415-admin-tile-icon svg{width:22px;height:22px;}
 .ktth-rc415-admin-tile-label{font-size:12px;line-height:1.25;}
 .ktth-rc415-admin-breadcrumb{gap:6px;min-height:46px;padding:5px 7px;}
 .ktth-rc415-admin-breadcrumb>a{padding:8px;font-size:12px;}
 .ktth-rc415-admin-breadcrumb>strong{font-size:12px;}
}
@media print{.ktth-rc415-admin-head,.ktth-rc415-admin-tiles,.ktth-rc415-admin-breadcrumb{display:none!important;}}


/* =============== SOURCE 11: rc416-home-links.css =============== */
/* KTTH RC4.16 - Cổng ứng dụng số & Liên kết. Presentation only. */
.ktth-rc416-links-pc{display:block;margin:18px 0 26px;}
.ktth-rc416-links-title{margin:0;padding:12px 18px;border-radius:12px 12px 0 0;background:#1763a3;color:#fff;font-size:20px;font-weight:750;text-align:center;letter-spacing:.01em;}
.ktth-rc416-links-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;border:1px solid #dbe7f3;border-top:0;border-radius:0 0 12px 12px;background:#fff;}
.ktth-rc416-links-grid .ktth-rc416-link-card{min-width:0;min-height:152px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:19px 10px;border:1px solid #d5e3f0;border-radius:12px;box-shadow:0 3px 10px rgba(33,66,100,.075);text-decoration:none;}
.ktth-rc416-link-card .app-symbol{display:flex;align-items:center;justify-content:center;height:43px;margin:0 auto;color:#1464bc;}
.ktth-rc416-link-card .app-symbol svg{width:34px;height:34px;stroke-width:1.85;}
.ktth-rc416-link-card .ktth-rc416-symbol-message{color:#258454;}
.ktth-rc416-link-card h2{font-size:17px!important;margin:3px 0!important;}
.ktth-rc416-link-card .card-cta{margin:0!important;}
.ktth-rc416-link-card:hover,.ktth-rc416-link-card:focus-visible{border-color:#53b8ce;background:#f0fcff;}
.ktth-rc416-app-grid .app-card p{display:none!important;}
@media screen and (min-width:781px){
 .ktth-rc416-app-grid .app-card{min-height:156px!important;padding-top:18px!important;padding-bottom:18px!important;}
 .ktth-rc416-app-grid .app-card h2{margin:9px 0 8px!important;}
 .ktth-rc416-app-grid .app-card.inactive{opacity:.7;}
}
@media screen and (max-width:780px){
 body main.container .ktth-rc416-links-pc{display:none!important;}
 body main.container .ktth-rc416-mobile-links{display:block!important;margin:14px 0 17px!important;}
 body main.container .ktth-rc416-mobile-links .ktth-m-home-title{background:linear-gradient(120deg,#15589d,#2672bb);padding:12px 8px!important;}
 body main.container .ktth-rc416-mobile-links .ktth-m-home-title h2{font-size:17px!important;margin:2px 0!important;}
 body main.container .ktth-rc416-mobile-link-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px 10px 14px;}
 body main.container .ktth-rc416-mobile-link{min-height:113px!important;gap:7px;padding:13px 5px 11px!important;}
 body main.container .ktth-rc416-mobile-link strong{font-size:12px!important;line-height:1.25;}
 body main.container .ktth-rc416-mobile-link .ktth-m-app-icon{width:45px;height:45px;}
 body main.container .ktth-rc416-mobile-link .ktth-m-app-icon svg{width:27px;height:27px;}
 body main.container .ktth-m-portal:first-of-type .ktth-m-home-title{padding:13px 10px!important;}
 body main.container .ktth-m-portal:first-of-type .ktth-m-home-title h2{margin:2px 0!important;}
}
@media print{.ktth-rc416-links-pc,.ktth-rc416-mobile-links{display:none!important;}}


/* =============== SOURCE 12: rc417-home-banner.css =============== */
/* KTTH RC4.17 - Chỉ điều chỉnh giao diện trang chủ, kế thừa RC4.16.
   Tiêu đề CỔNG ỨNG DỤNG SỐ có kích thước bằng LIÊN KẾT.
   Khoa Kinh tế - Tổng hợp là dòng phụ ngay trong thanh xanh.
   Không thay đổi nghiệp vụ, liên kết, phân quyền, các ứng dụng con. */
@media screen and (min-width:781px) {
  body[data-ktth-app="home"] main.container .ktth-rc417-apps-pc{
    display:block;
    margin:14px 0 18px;
    border-radius:12px;
    overflow:hidden;
  }
  body[data-ktth-app="home"] main.container .ktth-rc417-apps-title{
    margin:0;
    padding:10px 16px 11px;
    background:#1763a3;
    color:#fff;
    text-align:center;
    border-radius:12px 12px 0 0;
  }
  body[data-ktth-app="home"] main.container .ktth-rc417-apps-title h1{
    margin:0!important;
    font:750 20px/1.35 Arial,Helvetica,sans-serif!important;
    color:#fff!important;
    letter-spacing:.01em;
  }
  body[data-ktth-app="home"] main.container .ktth-rc417-apps-title p{
    margin:3px 0 0!important;
    color:#fff!important;
    font:500 14px/1.3 Arial,Helvetica,sans-serif!important;
  }
  body[data-ktth-app="home"] main.container .ktth-rc417-apps-pc .ktth-rc416-app-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:12px;
    padding:15px;
    background:#fff;
    border:1px solid #dbe7f3;
    border-top:0;
    border-radius:0 0 12px 12px;
  }
  body[data-ktth-app="home"] main.container .ktth-rc417-apps-pc .ktth-rc416-app-grid .app-card{
    min-width:0;
    min-height:151px!important;
  }
  body[data-ktth-app="home"] main.container .ktth-rc416-links-pc{
    margin-top:16px;
  }
}
@media screen and (max-width:780px) {
  /* Chỉ mobile portal được hiển thị; không nhân đôi trang PC. */
  body[data-ktth-app="home"] main.container .ktth-rc417-apps-pc{display:none!important;}
  body[data-ktth-app="home"] main.container .ktth-rc417-mobile-title{
    padding:10px 8px 11px!important;
    background:linear-gradient(120deg,#15589d,#2672bb);
  }
  body[data-ktth-app="home"] main.container .ktth-rc417-mobile-title h2{
    margin:2px 0!important;
    color:#fff!important;
    font-size:17px!important;
    font-weight:750!important;
    line-height:1.3!important;
  }
  body[data-ktth-app="home"] main.container .ktth-rc417-mobile-title p{
    display:block!important;
    margin:2px 0 0!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:500!important;
    line-height:1.3!important;
  }
  /* Hai thanh tiêu đề dùng cùng cỡ chữ và nhịp căn giữa. */
  body[data-ktth-app="home"] main.container .ktth-rc416-mobile-links .ktth-m-home-title h2{
    font-size:17px!important;
    font-weight:750!important;
    line-height:1.3!important;
  }
}
@media print { .ktth-rc417-apps-pc{display:none!important;} }


/* =============== SOURCE 13: rc418-work-calendar.css =============== */
/* RC4.18 - isolated calendar styles; no existing component overrides. */
.ktth-wc{margin:14px 0 18px;border:1px solid #d5e3f2;border-radius:11px;background:#fff;overflow:hidden;font-family:Arial,Helvetica,sans-serif;color:#102b52}
.ktth-wc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;background:#1763a3;color:white;min-height:43px}
.ktth-wc-head h2{display:flex;align-items:center;gap:7px;color:inherit!important;font-size:17px!important;line-height:1.2!important;margin:0!important;white-space:nowrap}
.ktth-wc-head svg{width:18px;height:18px;flex:none}
.ktth-wc-controls{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;min-width:0}
.ktth-wc-controls strong{font-size:12px;color:white;font-weight:650}
.ktth-wc-controls>a{display:inline-flex;align-items:center;justify-content:center;color:white;text-decoration:none;border:1px solid #b6d4ee;border-radius:5px;width:23px;height:24px;font-weight:700;font-size:20px;line-height:1}
.ktth-wc-date{display:flex;align-items:center;gap:1px;position:relative;margin:0}
.ktth-wc-date-label{display:none}
.ktth-wc-date input{box-sizing:border-box;width:117px;height:25px;min-height:25px;font-size:11px;line-height:1;margin:0!important;padding:2px 3px;border:1px solid #b6d4ee;border-radius:5px;background:white;color:#06477d;color-scheme:light}
.ktth-wc-origin{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;padding:5px 10px;background:#f2f7fd;border-bottom:1px solid #dbe8f5;font-size:11px;line-height:1.35}
.ktth-wc-origin span{color:#526985}
.ktth-wc-empty{padding:12px;color:#4b6078;font-size:13px}
.ktth-wc-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;line-height:1.22}
.ktth-wc-table th,.ktth-wc-table td{border:1px solid #cfdeec;padding:4px 6px!important;text-align:left;vertical-align:middle;overflow-wrap:anywhere;white-space:normal;height:auto!important;min-height:0!important}
.ktth-wc-table thead th{background:#d5eaff;text-align:center;color:#073d75;font-weight:700}
.ktth-wc-table th:nth-child(1){width:12%}.ktth-wc-table th:nth-child(2){width:8%}.ktth-wc-table th:nth-child(3){width:34%}.ktth-wc-table th:nth-child(4){width:17%}.ktth-wc-table th:nth-child(5){width:29%}
.ktth-wc-day{background:#e9f3fd;font-weight:700;color:#054681;text-align:center!important}
.ktth-wc-time{font-weight:700;text-align:center!important;white-space:nowrap!important}
.ktth-wc-none{color:#62768b;font-style:italic}
.ktth-wc-mobile{display:none}
@media(max-width:780px){
 .ktth-wc{margin:10px 0 14px;border-radius:9px}
 .ktth-wc-head{min-height:38px;padding:5px 6px;gap:3px}
 .ktth-wc-head h2{font-size:12px!important;letter-spacing:-.15px;gap:3px}
 .ktth-wc-head h2 svg{width:14px;height:14px}
 .ktth-wc-controls{font-size:10px;gap:3px}
 .ktth-wc-controls strong{font-size:10px;letter-spacing:-.3px}
 .ktth-wc-controls>a{width:18px;height:21px;font-size:16px}
 .ktth-wc-date input{width:27px;min-width:27px;height:23px;min-height:23px;color:transparent;font-size:0;padding:0 1px;cursor:pointer}
 .ktth-wc-date input::-webkit-calendar-picker-indicator{margin:0;width:17px;opacity:1;cursor:pointer}
 .ktth-wc-origin{padding:4px 7px;font-size:10px}
 .ktth-wc-table-wrap{display:none}
 .ktth-wc-mobile{display:block;padding:6px}
 .ktth-wc-group{margin:0 0 5px;border:1px solid #d3e3f3;border-radius:6px;overflow:hidden}
 .ktth-wc-group summary{cursor:pointer;background:#d7eafb;padding:6px 8px;font-weight:700;font-size:12px;line-height:1.25;list-style-position:inside}
 .ktth-wc-group summary span{float:right;font-size:10px;color:#526985;font-weight:500}
 .ktth-wc-entry{display:grid;grid-template-columns:42px minmax(0,1fr);gap:7px;padding:5px 6px;border-top:1px solid #e3ecf4;line-height:1.24;font-size:11px;overflow-wrap:anywhere}
 .ktth-wc-entry time{align-self:start;padding:3px 2px;text-align:center;background:#e4f0ff;border-radius:4px;color:#073e77;font-weight:700;font-size:10px}
 .ktth-wc-entry strong{font-size:11px;line-height:1.25;font-weight:650}
 .ktth-wc-entry p{font-size:10.5px;line-height:1.25;margin:3px 0 0!important;color:#40566f}
 .ktth-wc-group .ktth-wc-none{font-size:11px;margin:0;padding:6px 10px}
}
@media(max-width:355px){.ktth-wc-head h2{font-size:11px!important}.ktth-wc-controls strong{font-size:9px}.ktth-wc-controls>a{width:15px}}

/* RC4.20: harden responsive visibility against unrelated PC/mobile theme overrides. */
@media (min-width:781px){
  .ktth-wc .ktth-wc-table-wrap{display:block!important}
  .ktth-wc .ktth-wc-mobile{display:none!important}
}
@media (max-width:780px){
  .ktth-wc .ktth-wc-table-wrap{display:none!important}
  .ktth-wc .ktth-wc-mobile{display:block!important}
}
/* Today's row/group: subtle yellow, compact height unchanged. */
.ktth-wc .ktth-wc-table tr.ktth-wc-today > th,
.ktth-wc .ktth-wc-table tr.ktth-wc-today > td{background:#fff4c8!important}
.ktth-wc .ktth-wc-table tr.ktth-wc-today > th.ktth-wc-day{background:#ffeaa7!important}
.ktth-wc .ktth-wc-mobile details.ktth-wc-today > summary{background:#ffeaa7!important}
.ktth-wc .ktth-wc-mobile details.ktth-wc-today > .ktth-wc-entry,
.ktth-wc .ktth-wc-mobile details.ktth-wc-today > .ktth-wc-none{background:#fff8df!important}


/* =============== SOURCE 14: rc423-tasks.css =============== */
/* KTTH RC4.23: compact tables, compact four-setting tabs, grouped collaboration */
.ktth-rc423-config-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
.ktth-rc423-config-nav>a{min-width:0!important;width:auto!important;padding:9px 6px!important;font-size:12px!important;text-align:center!important}
.ktth-collab-by-team{margin-top:10px;border:1px solid #d6e4f4;border-radius:8px;padding:10px 12px}
.ktth-collab-row{display:grid;grid-template-columns:minmax(130px,27%) 1fr;gap:9px;padding:5px 0;border-top:1px solid #e8edf5;line-height:1.4}
.ktth-collab-row:first-of-type{margin-top:6px}
.ktth-team-heading{margin:15px 0 6px!important;padding:7px 10px;background:#e8f2ff;border-radius:6px;color:#0e4c91}
.ktth-team-total{margin:10px 0 0;font-size:13px}
body[data-ktth-app=tasks] .tablewrap td,body[data-ktth-app=tasks] .tablewrap th{padding:5px 8px!important;vertical-align:middle}
@media(max-width:680px){.ktth-rc423-config-nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ktth-collab-row{grid-template-columns:1fr;gap:2px}}

/* RC4.24: three distinct evidence upload controls, without changing backend proof[] processing. */
.ktth-rc424-proof{margin:7px 0 9px}
.ktth-rc424-proof-title{font-size:13px;margin-bottom:5px}
.ktth-rc424-proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ktth-rc424-proof-grid label{display:block;min-width:0;font-size:12px}
.ktth-rc424-proof-grid input[type=file]{width:100%;min-width:0;box-sizing:border-box;margin-top:3px;padding:5px;font-size:12px}
@media(max-width:680px){.ktth-rc424-proof-grid{grid-template-columns:1fr;gap:6px}}

/* KTTH RC4.49: Unified personnel list, four columns, totals below. */
body[data-ktth-app="tasks"] .ktth-staff-panel .ktth-staff-table{width:100%;table-layout:auto}
body[data-ktth-app="tasks"] .ktth-staff-table th:first-child,
body[data-ktth-app="tasks"] .ktth-staff-table td:first-child{width:52px;text-align:center;white-space:nowrap}
body[data-ktth-app="tasks"] .ktth-staff-table :is(th,td):nth-child(2){width:31%}
body[data-ktth-app="tasks"] .ktth-staff-table :is(th,td):nth-child(3){width:25%}
body[data-ktth-app="tasks"] .ktth-staff-summary{margin-top:12px;border-top:1px solid #d9e6ef;padding:11px 4px 1px}
body[data-ktth-app="tasks"] .ktth-staff-summary h4{margin:0 0 6px;font-size:14px;color:#154a79}
body[data-ktth-app="tasks"] .ktth-staff-summary p{margin:5px 0}
body[data-ktth-app="tasks"] .ktth-staff-dept{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0}
body[data-ktth-app="tasks"] .ktth-staff-dept span{padding:5px 9px;background:#edf5fb;border:1px solid #d9e7f4;border-radius:6px}
body[data-ktth-app="tasks"] .ktth-staff-manage details>summary{cursor:pointer;font-weight:650;color:#205a88}


/* =============== SOURCE 15: rc447-sidebar.css =============== */
/* RC4.47: Make Schedule and Tasks PC layout match Assets RC4.43.
   Add a desktop-only sidebar; DO NOT wrap or move the original legacy content.
   This preserves the original Mobile DOM, CSS selectors, business logic and forms. */
.ktth-uni-sidebar{display:none}
@media screen and (min-width:851px){
 body[data-ktth-app="schedule"] main.container,
 body[data-ktth-app="tasks"] main.container{max-width:1250px;}
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy{
  position:relative;box-sizing:border-box;min-height:560px;
  margin:8px 0 24px;padding:14px 16px 22px 206px;
  background:#f5f8fc;border:1px solid #d9e5ef;border-radius:12px;overflow:hidden;
  font-size:13px;line-height:1.4;color:#17243a;
 }
 body[data-ktth-app="schedule"] main.container .ktth-uni-sidebar,
 body[data-ktth-app="tasks"] main.container .ktth-uni-sidebar{
  position:absolute;left:0;top:0;bottom:0;width:190px;
  display:block;background:#1d659e;padding:8px 10px;color:#fff;min-width:0;
 }
 .ktth-uni-sidebar .side-links{display:block;overflow:visible}
 .ktth-uni-sidebar .side-group{position:relative}
 .ktth-uni-sidebar .side-link{
  display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;
  padding:7px 9px;border-radius:7px;margin:2px 0;font-size:12px;font-weight:650;
  line-height:1.35;white-space:normal;
 }
 .ktth-uni-sidebar .side-link:hover{background:#ffffff30;color:#fff}
 .ktth-uni-sidebar .side-link.active{background:#27b7dc;color:#073b56}
 .ktth-uni-sidebar .side-ico{width:20px;text-align:center;font-size:17px;flex:none}
 .ktth-uni-sidebar .side-children{display:block;position:relative;margin:0 0 5px;padding:2px 0 4px}
 .ktth-uni-sidebar .side-children::before{
  content:"";position:absolute;left:19px;top:0;bottom:17px;border-left:1px solid #a6dff1;pointer-events:none;
 }
 .ktth-uni-sidebar .side-sub{
  position:relative;display:flex;padding:5px 5px 5px 39px;margin:2px 0;
  font-size:12px;font-weight:550;line-height:1.35;min-height:28px;white-space:normal;
 }
 .ktth-uni-sidebar .side-sub::before{
  content:"";position:absolute;left:19px;top:0;width:15px;height:50%;border-left:1px solid #a6dff1;
  border-bottom:1px solid #a6dff1;border-bottom-left-radius:5px;pointer-events:none;
 }
 .ktth-uni-sidebar .side-sub:last-child::before{background:#1d659e}
 .ktth-uni-sidebar .side-sub::after{
  content:"";position:absolute;left:35px;top:calc(50% - 2px);width:4px;height:4px;
  border-radius:50%;background:#d9f2fa;pointer-events:none;
 }
 .ktth-uni-sidebar .side-sub.sub-active{background:#bcecf7;color:#073b56;font-weight:800}
 /* Navigation is moved visually to the left. Hide only the old PC horizontal tabs.
    Keep the original nodes so the mobile UI and JS continue working unchanged. */
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.tabs,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy > nav.tabs,
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy > nav.ktth-dn-admin-nav,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy > h2,
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy > h2,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy > h2 + p.muted{display:none!important;}
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy .panel,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .panel{
  background:#fff;border:1px solid #d8e5f0;border-radius:9px;
  margin:0 0 14px;padding:16px 20px;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy .tablewrap,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap{overflow-x:auto;max-width:100%;}
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy .tablewrap table,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap table{width:100%;font-size:13px;}
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy .tablewrap :is(td,th),
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap :is(td,th){
  padding:6px 9px;font-size:13px!important;line-height:1.35;vertical-align:middle;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy .tablewrap th,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap th{background:#eaf3fb}
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy .panel :is(h2,h3),
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .panel :is(h2,h3){
  color:#06456d;font-size:17px;line-height:1.35;font-weight:700;
 }
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy .panel :is(label,p,.muted),
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .panel :is(label,p,.muted){font-size:13px;line-height:1.4;}
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy .form-grid,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .form-grid{max-width:100%;}
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .task-stats{margin:0 0 14px;gap:12px;}
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .task-stat{
  background:#fff;border:1px solid #d8e5f0;border-radius:9px;padding:12px 14px;
 }
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .task-stat span{font-size:13px}
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .task-stat strong{font-size:25px}
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .task-list-title{font-size:13px}
}
@media print{
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy{
  min-height:0!important;margin:0!important;padding:0!important;
  border:0!important;background:white!important;overflow:visible!important;
 }
 .ktth-uni-sidebar{display:none!important}
}


/* =============== SOURCE 16: rc448-schedule.css =============== */
/* KTTH RC4.48 — PC+Mobile: schedule check marker and duty roster weekday grouping. */
.ktth-rc448-duty-table tr.ktth-duty-day-base>td {background:#ffffff!important;}
.ktth-rc448-duty-table tr.ktth-duty-day-alt>td {background:#eaf4fb!important;}
.ktth-rc448-duty-table tr:hover>td {background:#d9effb!important;}
.ktth-rc445-grid :is(th,td):last-child {text-align:center!important;width:54px;min-width:54px;padding-left:4px!important;padding-right:4px!important;}
.ktth-rc448-check-yes{display:inline-block;font-size:20px;font-weight:900;color:#168449;line-height:1;vertical-align:middle;}
@media screen and (max-width:780px){
 body[data-ktth-app="schedule"] .ktth-rc445-grid :is(th,td):last-child {font-size:13px;}
}


/* =============== SOURCE 17: rc450-tasks.css =============== */
/* KTTH RC4.50 - Two typography sizes on desktop Task Management only.
   App content/controls/statistics: 16px; data tables and sidebar: 13px.
   No styles are applied to Schedule, Assets, or the Mobile UI. */
@media screen and (min-width:851px){
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy *{
    font-size:16px!important;
  }
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy{
    line-height:1.45;
  }
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy :is(input,select,textarea,button){
    font-size:16px!important;
    line-height:1.4;
  }
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy table,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy table *{
    font-size:13px!important;
  }
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar *{
    font-size:13px!important;
  }
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-ico{
    font-size:16px!important;
  }
  /* Settings navigation already lives at sidebar level 2 on desktop. */
  body[data-ktth-app="tasks"] main.container .ktth-rc412-settings > .ktth-rc412-config-nav{
    display:none!important;
  }
  /* Prevent long select values or date controls from pushing beyond the card. */
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy :is(.report-filters,.form-grid) > label{
    min-width:0;
  }
}


/* =============== SOURCE 18: rc452-kpi.css =============== */
/* KTTH RC4.52: Five equal KPI tiles on PC; all other task dashboards keep their layout. */
@media screen and (min-width:851px){
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .print-report .task-stats.ktth-rc452-kpi-stats{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%;
 }
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy .print-report .ktth-rc452-kpi-stats .task-stat{
  min-width:0;
  box-sizing:border-box;
  padding:12px!important;
 }
}
@media print{
 .print-report .ktth-rc452-kpi-stats{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important;}
 .print-report .ktth-rc452-kpi-stats .task-stat{min-width:0;}
}


/* =============== SOURCE 19: rc453-typography.css =============== */
/* KTTH RC4.53 - Two readable font sizes throughout both desktop apps.
 * 16px for text, headings, forms, summary metrics; 13px for tables and the left menu.
 * PC only; Mobile unchanged. Load after older CSS. */
@media screen and (min-width:851px){
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy,
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy,
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy *,
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy * {
  font-size:16px!important;
 }
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy :is(input,select,option,textarea,button),
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy :is(input,select,option,textarea,button) {
  font-size:16px!important;
 }
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy :is(table,table *),
 body[data-ktth-app="schedule"] main.container .ktth-app-legacy :is(table,table *) {
  font-size:13px!important;
 }
 body[data-ktth-app="tasks"] main.container .ktth-uni-sidebar,
 body[data-ktth-app="schedule"] main.container .ktth-uni-sidebar,
 body[data-ktth-app="tasks"] main.container .ktth-uni-sidebar *,
 body[data-ktth-app="schedule"] main.container .ktth-uni-sidebar * {
  font-size:13px!important;
 }
 body[data-ktth-app="tasks"] main.container .ktth-uni-sidebar .side-ico,
 body[data-ktth-app="schedule"] main.container .ktth-uni-sidebar .side-ico {
  font-size:16px!important;
 }
 body[data-ktth-app="tasks"] main.container .rc453-faculty-form {gap:12px;}
 body[data-ktth-app="tasks"] main.container .rc453-faculty-form .rc453-leader {align-self:center;}
 body[data-ktth-app="tasks"] main.container .rc453-faculty-form .rc453-leader input {width:auto;}
 body[data-ktth-app="tasks"] main.container .rc453-faculty-form .rc453-actions {display:flex;align-items:center;gap:12px;flex-wrap:wrap;}
 body[data-ktth-app="tasks"] main.container .rc453-team-manage {margin-top:18px;border:1px solid #d9e5ef;border-radius:8px;padding:12px;}
}


/* =============== SOURCE 20: rc454-typography.css =============== */
/* KTTH RC4.54 — Exactly three font sizes on desktop throughout KTTH.
   13px: all data tables and table cells.
   14px: values of text fields, select options, date controls and textareas.
   16px: all other content, headings, metrics, labels, buttons and sidebar.
   Applies to PC only. Mobile view intentionally unchanged. */
@media screen and (min-width:851px) {
  body, body *, body *::before, body *::after,
  body[data-ktth-app] main.container .ktth-app-legacy,
  body[data-ktth-app] main.container .ktth-app-legacy *,
  body[data-ktth-app] main.container .ktth-uni-sidebar,
  body[data-ktth-app] main.container .ktth-uni-sidebar * {
    font-size:16px!important;
  }
  body :is(table,table *, .tablewrap table, .tablewrap table *),
  body[data-ktth-app] main.container .ktth-app-legacy :is(table,table *),
  body[data-ktth-app] main.container .ktth-uni-sidebar table * {
    font-size:13px!important;
  }
  body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select,option,textarea),
  body[data-ktth-app] main.container .ktth-app-legacy :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select,option,textarea),
  body[data-ktth-app] main.container .ktth-app-legacy table :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,option,textarea){
    font-size:14px!important;
  }
  /* Reset browser's smaller date subfield fonts where supported. */
  body input[type="date"]::-webkit-datetime-edit,
  body input[type="time"]::-webkit-datetime-edit,
  body input[type="datetime-local"]::-webkit-datetime-edit {font-size:14px!important;}
  /* New staff settings: only role assignment & team management here. */
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .rc454-faculty-intro {line-height:1.5;}
}

.rc454-sim-banner{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;background:#fff5dc;border:1px solid #e8bd68;border-radius:9px;padding:10px 14px;margin:8px 0;color:#60431e}
.rc454-sim-banner span{flex:1;min-width:180px}
.rc454-sim-banner form{margin:0}
.rc454-sim-panel .task-inline{align-items:end;gap:12px}
.rc454-sim-panel .task-inline label.inline{max-width:340px}


/* =============== SOURCE 21: rc455-sidebar-menu.css =============== */
/* KTTH RC4.55 — Desktop left sidebar typography, all three applications.
   Level 1: uppercase; level 2: lowercase.
   Exactly 14px and normal weight (400) in both levels including their icons.
   No changes to mobile sidebar, existing sidebar sizes, colors, or navigation.
   Loaded after RC4.54 to override older !important typography rules. */
@media screen and (min-width:851px) {
  /* Shared sidebar: Lich giang vien + Dieu hanh cong viec. */
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .ktth-uni-sidebar :is(a.side-link, a.side-link *),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar :is(a.side-link, a.side-link *),
  /* Assets' sidebar: same typography even though its original style is inline. */
  body[data-ktth-app="assets"] main.container .ktth-asset-layout .ktth-asset-sidebar :is(a.side-link, a.side-link *) {
    font-size:14px!important;
    font-weight:400!important;
    letter-spacing:normal!important;
  }

  /* Main menu labels. Icons do not contain human-readable text. */
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-group > a.side-link:not(.side-sub),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-group > a.side-link:not(.side-sub),
  body[data-ktth-app="assets"] main.container .ktth-asset-layout .ktth-asset-sidebar .side-group > a.side-link:not(.side-sub) {
    text-transform:uppercase!important;
  }

  /* RC4.61: preserve natural Vietnamese capitalization from menu data. */
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children a.side-sub,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children a.side-sub,
  body[data-ktth-app="assets"] main.container .ktth-asset-layout .ktth-asset-sidebar .side-children a.side-sub {
    text-transform:none!important;
    font-size:14px!important;
    font-weight:400!important;
  }
}


/* RC4.60: unified PC sidebar + work-list status colours; appended to RC4.58 combined CSS. */
@media screen and (min-width:851px) {
 body[data-ktth-app="tasks"] .ktth-uni-sidebar .side-group > .side-link:not(.side-sub),
 body[data-ktth-app="schedule"] .ktth-uni-sidebar .side-group > .side-link:not(.side-sub),
 body[data-ktth-app="assets"] .ktth-asset-sidebar .side-group > .side-link:not(.side-sub) {
   font-size:14px!important;font-weight:400!important;text-transform:uppercase!important;
 }
 body[data-ktth-app="tasks"] .ktth-uni-sidebar .side-children .side-sub,
 body[data-ktth-app="schedule"] .ktth-uni-sidebar .side-children .side-sub,
 body[data-ktth-app="assets"] .ktth-asset-sidebar .side-children .side-sub {
   font-size:14px!important;font-weight:400!important;text-transform:none!important;
   padding-left:36px!important;position:relative;
 }
 body[data-ktth-app="tasks"] .ktth-uni-sidebar .side-children::before,
 body[data-ktth-app="schedule"] .ktth-uni-sidebar .side-children::before,
 body[data-ktth-app="assets"] .ktth-asset-sidebar .side-children::before,
 body[data-ktth-app="tasks"] .ktth-uni-sidebar .side-children .side-sub::before,
 body[data-ktth-app="schedule"] .ktth-uni-sidebar .side-children .side-sub::before,
 body[data-ktth-app="assets"] .ktth-asset-sidebar .side-children .side-sub::before {
   display:none!important;content:none!important;border:0!important;
 }
 body[data-ktth-app="tasks"] .ktth-uni-sidebar .side-children .side-sub::after,
 body[data-ktth-app="schedule"] .ktth-uni-sidebar .side-children .side-sub::after,
 body[data-ktth-app="assets"] .ktth-asset-sidebar .side-children .side-sub::after {
   display:block!important;content:""!important;position:absolute;left:21px;top:calc(50% - 3px);
   width:6px;height:6px;background:currentColor!important;border-radius:0!important;
 }
 body[data-ktth-app="tasks"] .ktth-uni-sidebar .side-children .side-sub.sub-active,
 body[data-ktth-app="schedule"] .ktth-uni-sidebar .side-children .side-sub.sub-active,
 body[data-ktth-app="assets"] .ktth-asset-sidebar .side-children .side-sub.sub-active {
   font-weight:400!important;
 }
 body[data-ktth-app="tasks"] .ktth-app-legacy .task-list-title.rc460-task-done,
 body[data-ktth-app="tasks"] .ktth-app-legacy .task-list-title.rc460-task-done.rc42-attention {
   color:#1d659e!important;
 }
 body[data-ktth-app="tasks"] .ktth-app-legacy .task-list-title.rc460-task-submitted,
 body[data-ktth-app="tasks"] .ktth-app-legacy .task-list-title.rc460-task-submitted.rc42-attention {
   color:#16733b!important;
 }
 body[data-ktth-app="tasks"] .ktth-app-legacy .task-list-title.rc460-task-late,
 body[data-ktth-app="tasks"] .ktth-app-legacy .task-list-title.rc460-task-late.rc42-attention {
   color:#c62828!important;
 }
}

@media screen and (min-width:851px){
 body[data-ktth-app="tasks"] .ktth-app-legacy .task-tag.rc460-requested {
   background:#e4f5e9!important;color:#16733b!important;
 }
}

/* RC4.61: enforce title case, square bullet and remove inherited tree glyphs on PC. */
@media screen and (min-width:851px){
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children a.side-sub,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children a.side-sub,
  body[data-ktth-app="assets"] main.container .ktth-asset-layout .ktth-asset-sidebar .side-children a.side-sub{
    font-size:14px!important;font-weight:400!important;text-transform:none!important;
    padding-left:36px!important;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children::before,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children::before,
  body[data-ktth-app="assets"] main.container .ktth-asset-layout .ktth-asset-sidebar .side-children::before,
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children .side-sub::before,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children .side-sub::before,
  body[data-ktth-app="assets"] main.container .ktth-asset-layout .ktth-asset-sidebar .side-children .side-sub::before{
    display:none!important;content:none!important;border:0!important;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children a.side-sub::after,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .ktth-uni-sidebar .side-children a.side-sub::after,
  body[data-ktth-app="assets"] main.container .ktth-asset-layout .ktth-asset-sidebar .side-children a.side-sub::after{
    display:block!important;content:""!important;position:absolute;left:21px;top:calc(50% - 3px);
    width:6px;height:6px;background:currentColor!important;border-radius:0!important;
  }
}


/* RC4.62 — centralize faculty admin and make task status visually unambiguous.
   Keep the established 13px data table typography on PC and existing Mobile scale. */
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row {
  --rc462-work:#344a5e;
  --rc462-soft:#eef3f7;
}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-work-approved {--rc462-work:#1d659e;--rc462-soft:#e8f1fa;}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-work-submitted {--rc462-work:#16733b;--rc462-soft:#e4f5e9;}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-work-overdue {--rc462-work:#c62828;--rc462-soft:#fff0ef;}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-work-returned {--rc462-work:#a05a13;--rc462-soft:#fff4e1;}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-work-cancelled {--rc462-work:#7a8492;--rc462-soft:#f0f2f4;}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row > td:first-child {
  box-shadow:inset 3px 0 0 var(--rc462-work);
}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row a.task-list-title,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row a.task-list-title.rc42-attention,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-approved,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-submitted,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-overdue,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-returned,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-active,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-cancelled {
  color:var(--rc462-work)!important;
  font-weight:400!important;
}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-approved,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-submitted,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-overdue,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-returned,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-active,
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .task-tag.rc462-work-cancelled {
  background:var(--rc462-soft)!important;
}
/* Preserve a red 'Mới' indicator, without recoloring an approved task red. */
body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap tr.rc462-task-row .rc42-unread-label{color:#c62828!important;}


/* KTTH RC4.63 — consistent PC content width and typography; Mobile untouched.
   Keeps RC4.58 consolidated stylesheet and RC4.62 business status colors. */
@media screen and (min-width:851px){
  html{scrollbar-gutter:stable;}
  body[data-ktth-app="schedule"] main.container,
  body[data-ktth-app="tasks"] main.container{box-sizing:border-box;width:100%;max-width:1250px;}
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy{
    box-sizing:border-box;width:100%;max-width:100%;min-width:0;
    overflow:hidden;display:flow-root;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy > :not(.ktth-uni-sidebar),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy > :not(.ktth-uni-sidebar){
    box-sizing:border-box;max-width:100%;min-width:0;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .panel,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .panel{
    box-sizing:border-box;width:100%;max-width:100%;min-width:0;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .tablewrap,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap{
    box-sizing:border-box;width:100%;max-width:100%;min-width:0;overflow-x:auto;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy :is(.form-grid,.filter),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy :is(.form-grid,.filter){max-width:100%;min-width:0;}
  /* General PC buttons: 16px, regular weight, sentence case, aligned with fields. */
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy button:not(.side-parent),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy button:not(.side-parent),
  body main.container .ktth-rc415-admin button{
    font-size:16px!important;font-weight:400!important;text-transform:none!important;
    letter-spacing:normal!important;line-height:1.25;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea){font-size:14px!important;font-weight:400!important;}
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .panel :is(label,p,.muted),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .panel :is(label,p,.muted){font-weight:400!important;}
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .panel :is(h2,h3,h4),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .panel :is(h2,h3,h4){font-weight:700!important;}
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .tablewrap :is(td,th),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap :is(td,th){font-size:13px!important;font-weight:400!important;}
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .tablewrap button,
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy .tablewrap button{font-size:16px!important;font-weight:400!important;}
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .form-grid{align-items:end;}
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .form-grid>label{margin:0;min-width:0;}
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .form-grid>button,
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy .filter>button{
    align-self:end;min-height:42px;height:42px;margin:0;white-space:nowrap;
  }
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy input[type="file"]{height:42px;box-sizing:border-box;padding:6px;}
  /* The heading "Quản trị" only expands/collapses; it is not a duplicate navigation page. */
  body[data-ktth-app="schedule"] main.container .ktth-uni-sidebar button.side-parent,
  body[data-ktth-app="tasks"] main.container .ktth-uni-sidebar button.side-parent{
    display:flex;width:100%;height:auto;min-height:0;box-sizing:border-box;
    padding:7px 9px;margin:2px 0;border:0;outline-offset:2px;
    border-radius:7px;background:transparent;color:#fff;text-align:left;
    align-items:center;justify-content:flex-start;gap:10px;
    font-size:14px!important;font-weight:400!important;line-height:1.35;
    text-transform:uppercase!important;cursor:pointer;
  }
  body[data-ktth-app="schedule"] main.container .ktth-uni-sidebar button.side-parent.active,
  body[data-ktth-app="tasks"] main.container .ktth-uni-sidebar button.side-parent.active{background:#27b7dc;color:#073b56;}
  /* RC4.65: children are permanently visible; collapse rule removed. */
  /* A single fixed-width department table; never push its actions beneath other columns. */
  body main.container .ktth-rc415-admin .rc463-dept-scroll{width:100%;max-width:100%;overflow-x:auto;}
  body main.container .ktth-rc415-admin .rc463-dept-table{
    width:100%;min-width:900px;table-layout:fixed;border-collapse:collapse;
  }
  body main.container .ktth-rc415-admin .rc463-dept-table :is(th,td){
    box-sizing:border-box;padding:7px 9px;vertical-align:middle;
    overflow-wrap:break-word;word-break:normal;font-size:13px!important;font-weight:400!important;
  }
  body main.container .ktth-rc415-admin .rc463-dept-table .rc463-dept-rename{
    width:100%;display:flex;align-items:center;gap:6px;flex-wrap:nowrap;margin:0;
  }
  body main.container .ktth-rc415-admin .rc463-dept-rename input{min-width:0;flex:1;width:1%;font-size:14px!important;}
  body main.container .ktth-rc415-admin .rc463-dept-table button{white-space:nowrap;flex:none;}
  body main.container .ktth-rc415-admin .rc463-dept-table td:last-child form{margin:0;}
  body main.container .ktth-rc415-admin .filter :is(label,button){font-weight:400!important;}
  body main.container .ktth-rc415-admin .filter button{align-self:end;}
}


@media screen and (min-width:851px){
  /* Ordinary emphasized HTML text should not create another visual font weight. */
  body[data-ktth-app="schedule"] main.container .ktth-app-legacy :is(p,label,td,button) :is(b,strong),
  body[data-ktth-app="tasks"] main.container .ktth-app-legacy :is(p,label,td,button) :is(b,strong){font-weight:400!important;}
}

/* RC4.64: final desktop sidebar/filters alignment; no Mobile changes. */
@media screen and (min-width:851px){
 body[data-ktth-app="tasks"] main.container .report-filters{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:end!important;gap:12px!important;max-width:100%;
 }
 body[data-ktth-app="tasks"] main.container .report-filters>label{
  display:flex!important;flex-direction:column;min-width:0!important;
  margin:0!important;align-self:end;font-weight:400!important;font-size:16px!important;
 }
 body[data-ktth-app="tasks"] main.container .report-filters :is(input,select){
  width:100%!important;min-width:0!important;box-sizing:border-box!important;
  height:42px!important;font-size:14px!important;font-weight:400!important;
 }
 body[data-ktth-app="tasks"] main.container .report-filters>button{
  align-self:end!important;width:max-content;max-width:100%;height:42px!important;
  min-height:42px!important;margin:0!important;font-weight:400!important;font-size:16px!important;
 }
 body[data-ktth-app="tasks"] main.container #task-types form.filter{
  display:flex!important;flex-wrap:wrap;align-items:flex-end!important;gap:10px!important;
 }
 body[data-ktth-app="tasks"] main.container #task-types form.filter>label{
  display:flex!important;flex-direction:column;align-self:flex-end!important;
  margin:0!important;font-size:16px!important;font-weight:400!important;
 }
 body[data-ktth-app="tasks"] main.container #task-types form.filter>label input{
  height:42px!important;box-sizing:border-box!important;font-size:14px!important;
 }
 body[data-ktth-app="tasks"] main.container #task-types form.filter>button{
  align-self:flex-end!important;margin:0!important;min-height:42px!important;
  height:42px!important;font-size:16px!important;font-weight:400!important;
 }
 /* Asset menu parent is a button, not a second navigation link. */
 body[data-ktth-app="assets"] .ktth-asset-sidebar button.side-parent{
  display:flex!important;align-items:center;gap:10px;box-sizing:border-box;
  width:100%;appearance:none;background:transparent;border:0;color:#fff;
  text-align:left;cursor:pointer;padding:8px 9px;margin:2px 0;border-radius:7px;
  font-family:inherit;font-size:14px!important;font-weight:400!important;
 }
 body[data-ktth-app="assets"] .ktth-asset-sidebar button.side-parent.active{background:#27b7dc;color:#073b56}
 /* RC4.65: submenu collapse selectors removed for all three modules. */
}


/* ============================================================
   KTTH RC4.65 — fixed desktop sidebar, consistent typography
   All three applications: schedule, tasks, assets.
   Parent labels are non-interactive. Every submenu remains visible.
   Mobile styling is deliberately unchanged.
   ============================================================ */
@media screen and (min-width:851px) {
  body:is([data-ktth-app="schedule"],[data-ktth-app="tasks"],[data-ktth-app="assets"])
    main.container :is(.ktth-uni-sidebar,.ktth-asset-sidebar) .side-group > .side-children {
    display:block!important;
    visibility:visible!important;
    height:auto!important;
    max-height:none!important;
    opacity:1!important;
  }
  /* One consistent font, size, weight and line-height for EVERY link/heading/label. */
  body:is([data-ktth-app="schedule"],[data-ktth-app="tasks"],[data-ktth-app="assets"])
    main.container :is(.ktth-uni-sidebar,.ktth-asset-sidebar)
    :is(.side-group > .side-link,.side-group > .side-link *, .side-children > .side-link,.side-children > .side-link *) {
    font-family:Roboto,Arial,Helvetica,sans-serif!important;
    font-size:14px!important;
    font-weight:400!important;
    font-style:normal!important;
    line-height:1.4!important;
    letter-spacing:0!important;
    text-shadow:none!important;
  }
  body:is([data-ktth-app="schedule"],[data-ktth-app="tasks"],[data-ktth-app="assets"])
    main.container :is(.ktth-uni-sidebar,.ktth-asset-sidebar) .side-group > .side-link:not(.side-sub) {
    text-transform:uppercase!important;
  }
  body:is([data-ktth-app="schedule"],[data-ktth-app="tasks"],[data-ktth-app="assets"])
    main.container :is(.ktth-uni-sidebar,.ktth-asset-sidebar) .side-children > .side-sub {
    text-transform:none!important;
  }
  /* Group headings are plain text, NOT expandable buttons or hyperlinks. */
  body:is([data-ktth-app="schedule"],[data-ktth-app="tasks"],[data-ktth-app="assets"])
    main.container :is(.ktth-uni-sidebar,.ktth-asset-sidebar) .side-group > div.side-parent {
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    box-sizing:border-box!important;
    width:100%!important;
    margin:2px 0!important;
    padding:7px 9px!important;
    border:0!important;
    border-radius:7px!important;
    background:transparent;
    color:#fff;
    cursor:default!important;
    user-select:text;
  }
  body:is([data-ktth-app="schedule"],[data-ktth-app="tasks"],[data-ktth-app="assets"])
    main.container :is(.ktth-uni-sidebar,.ktth-asset-sidebar) .side-group > div.side-parent.active {
    background:#27b7dc!important;
    color:#073b56!important;
  }
  body:is([data-ktth-app="schedule"],[data-ktth-app="tasks"],[data-ktth-app="assets"])
    main.container :is(.ktth-uni-sidebar,.ktth-asset-sidebar) .side-group > div.side-parent:hover {
    cursor:default!important;
  }
  /* Icons retain a fixed width, so labels line up consistently. */
  body:is([data-ktth-app="schedule"],[data-ktth-app="tasks"],[data-ktth-app="assets"])
    main.container :is(.ktth-uni-sidebar,.ktth-asset-sidebar) .side-group > .side-link > .side-ico {
    display:inline-block!important;
    width:20px!important;
    min-width:20px!important;
    flex:none!important;
    text-align:center!important;
  }
}

/* STANDALONE: shared work management UI */
@media(min-width:781px){
 .ktth-uni-sidebar .side-link, .ktth-uni-sidebar .side-children a,
 .ktth-uni-sidebar .side-parent{font-family:Arial,Roboto,sans-serif!important;font-size:14px!important;font-weight:400!important;line-height:1.4!important}
 .ktth-uni-sidebar .side-parent{cursor:default!important;pointer-events:none!important}
 .ktth-uni-sidebar .side-children{display:block!important;height:auto!important;visibility:visible!important}
 .ktth-uni-sidebar .side-children a{font-weight:400!important}
}
body[data-ktth-app="tasks"] main.container{max-width:1220px!important}
.standalone-brand{display:flex;align-items:center;gap:12px}
.standalone-symbol{display:grid;place-items:center;width:48px;height:48px;border-radius:11px;background:#1d659e;color:#fff;font-size:20px;font-weight:400}
.standalone-header{padding:12px 0;border-bottom:1px solid #e1e8f0;background:#fff}
.standalone-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
.standalone-header h1{margin:0;font-size:16px;font-weight:600;color:#1a4564}
.standalone-header small{font-size:13px;color:#5b6977}
.standalone-header nav{display:flex;gap:14px;flex-wrap:wrap}
.standalone-header nav a{text-decoration:none;color:#1b608f}
.standalone-intro{padding:24px}

/* Standalone navigation for phones */
.standalone-mobile-links{display:none}
@media(max-width:780px){
 .standalone-header-inner{align-items:flex-start;flex-wrap:wrap}
 .standalone-header nav{font-size:14px;gap:8px}
 .standalone-mobile-links{display:flex;gap:6px;overflow-x:auto;white-space:nowrap;padding:10px 0;position:relative}
 .standalone-mobile-links a{flex:0 0 auto;padding:8px 11px;color:#1d659e;background:#ebf3fa;border:1px solid #c8d9e8;border-radius:8px;text-decoration:none;font-size:14px}
 .ktth-uni-sidebar{display:none!important}
 main.container{max-width:100%;box-sizing:border-box}
}

/* Standalone tasks v1.1: restore the desktop KTTH UI and keep brand independent. */
.standalone-header-inner{min-height:76px}
.standalone-brand .school-title{display:block}
.standalone-brand .school-title strong{display:block;text-align:left;color:#16436b;font-size:16px;font-weight:600;line-height:1.3}
.standalone-brand .school-title small{display:block;text-align:left;font-size:13px;font-weight:400;color:#c12b32;margin-top:3px}
.standalone-header nav.header-actions{display:flex;align-items:center;gap:12px}
.standalone-header nav.header-actions a{padding:7px 10px;border-radius:6px}
.standalone-header nav.header-actions a:hover{background:#e9f3f9;text-decoration:none}
.standalone-header nav.header-actions form{margin:0}
.standalone-header nav.header-actions button{font-size:14px;font-weight:400;min-height:36px;padding:7px 12px}
body[data-ktth-app="tasks"] main.container .ktth-app-legacy{width:100%;max-width:100%}
@media(max-width:850px){
 .standalone-header-inner{flex-wrap:wrap;gap:6px}
 .standalone-header nav.header-actions{width:100%;justify-content:flex-end;gap:4px}
 .standalone-header nav.header-actions a{padding:5px 7px}
}

/* PHONG TAI CHINH 1.2: two-line organization header and simplified staff forms. */
.standalone-brand .school-title strong{font-family:Arial,Roboto,sans-serif;font-size:16px;font-weight:600;line-height:1.35}
.standalone-brand .school-title small{font-family:Arial,Roboto,sans-serif;font-size:16px;font-weight:400;line-height:1.35;color:#b4232f}
.ktth-rc415-admin-tiles .ktth-rc415-admin-tile-label{font-weight:400}
@media(min-width:781px){
 body[data-ktth-app="tasks"] main.container .ktth-app-legacy{width:100%;min-width:0;max-width:100%}
 body[data-ktth-app="tasks"] .ktth-app-legacy .tablewrap{min-width:0;max-width:100%;overflow-x:auto}
}


/* Giao việc Tài chính v1.2.1: Danh mục + căn chỉnh thao tác nhiệm vụ. */
@media screen and (min-width:781px){
 body[data-ktth-app="tasks"] main.container .rc121-task-save{display:flex;align-items:flex-end;justify-content:flex-start;min-width:0;align-self:stretch}
 body[data-ktth-app="tasks"] main.container .rc121-task-save button{margin:0;height:42px;min-height:42px;align-self:flex-end;white-space:nowrap}
 body[data-ktth-app="tasks"] main.container .rc121-task-description{align-self:stretch}
 body[data-ktth-app="tasks"] main.container .rc121-task-description textarea{min-height:102px}
 body[data-ktth-app="tasks"] main.container .rc42-danger-form{display:flex;align-items:flex-end;justify-content:flex-start;gap:12px;flex-wrap:wrap}
 body[data-ktth-app="tasks"] main.container .rc42-danger-form label{display:flex;flex-direction:column;align-self:flex-end;min-width:250px;margin:0}
 body[data-ktth-app="tasks"] main.container .rc42-danger-form input{height:42px;box-sizing:border-box;margin:0}
 body[data-ktth-app="tasks"] main.container .rc42-danger-form button{height:42px;min-height:42px;align-self:flex-end;margin:0;white-space:nowrap}
 body[data-ktth-app="tasks"] main.container .rc121-type-add{display:flex;align-items:flex-end;gap:12px}
 body[data-ktth-app="tasks"] main.container .rc121-type-add label{display:flex;flex-direction:column;margin:0;font-weight:400}
 body[data-ktth-app="tasks"] main.container .rc121-type-add input{height:42px;min-width:250px;margin:0}
 body[data-ktth-app="tasks"] main.container .rc121-type-add button{height:42px;min-height:42px;margin:0;align-self:flex-end;font-weight:400}
}
body[data-ktth-app="tasks"] main.container .rc121-types-table{min-width:740px;table-layout:fixed}
body[data-ktth-app="tasks"] main.container .rc121-types-table td{vertical-align:middle}
body[data-ktth-app="tasks"] main.container .rc121-types-table input:not([type="hidden"]){width:100%;box-sizing:border-box;min-width:0;max-width:100%;height:38px;margin:0;font-weight:400}
body[data-ktth-app="tasks"] main.container .rc121-types-table form{margin:0}
body[data-ktth-app="tasks"] main.container .rc121-type-buttons{display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
body[data-ktth-app="tasks"] main.container .rc121-type-buttons button{white-space:nowrap;min-height:36px;padding:6px 10px;font-weight:400}
body[data-ktth-app="tasks"] main.container .rc121-deleted-types{margin-top:18px}
body[data-ktth-app="tasks"] main.container .rc121-deleted-types summary{cursor:pointer}
@media screen and (max-width:780px){
 body[data-ktth-app="tasks"] main.container .rc121-task-save{display:flex;align-items:flex-end}
 body[data-ktth-app="tasks"] main.container .rc42-danger-form{align-items:flex-end}
 body[data-ktth-app="tasks"] main.container .rc121-types-table input{min-width:0!important}
}
