
:root {
 color-scheme:light;
 --adorable-logo-green:#00594F; --adorable-canvas:#F4F6F5; --adorable-header:#FFFFFF;
 --adorable-section:#EEF3F1; --adorable-card:#FFFFFF; --adorable-border:#CBD8D2;
 --adorable-text:#172D27; --adorable-text-secondary:#52675F; --adorable-accent:#00594F;
 --adorable-comparison:#38685A; --adorable-highlight:#007D70; --adorable-warning:#805400;
 --adorable-danger:#B42332; --adorable-logo-surface:#F7FAF9; --adorable-logo-border:#D9E7E3;
 --bg:var(--adorable-canvas); --surface:var(--adorable-card); --surface2:var(--adorable-section);
 --line:var(--adorable-border); --text:var(--adorable-text); --muted:var(--adorable-text-secondary);
 --brand:var(--adorable-accent); --brandSoft:var(--adorable-section); --blue:var(--adorable-comparison);
 --amber:var(--adorable-warning); --red:var(--adorable-danger); --shadow:0 6px 18px #00000018;
}
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 90% 0,rgba(50,163,107,.11),transparent 28rem),var(--bg); color:var(--text); font-family:Roboto,"Segoe UI","Myanmar Text","Noto Sans Myanmar",Arial,sans-serif; font-size:16px; }
button,input,select { font:inherit; }
button { color:inherit; }
.hidden { display:none !important; }
.shell { width:min(1180px,calc(100% - 28px)); margin:24px auto 90px; }
.topbar { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:18px; }
.brand { display:flex; align-items:center; gap:12px; }
.brand h1 { font-size:1.05rem; margin:0; }
.brand p { color:var(--muted); font-size:.8rem; margin:2px 0 0; }
.user-chip { display:flex; align-items:center; gap:8px; max-width:48%; padding:8px 12px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--muted); font-size:.8rem; }
.user-chip span:last-child { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.status-dot { width:8px; height:8px; flex:0 0 auto; border-radius:50%; background:var(--brand); }
.card { background:rgba(25,31,39,.96); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }
.signin-panel { min-height:360px; padding:clamp(24px,6vw,56px); display:grid; align-content:center; justify-items:start; max-width:760px; margin:8vh auto; }
.signin-panel h2 { font-size:clamp(1.8rem,5vw,2.7rem); margin:8px 0; }
.signin-panel p { max-width:560px; color:var(--muted); line-height:1.65; margin:0 0 24px; }
.eyebrow { color:#7fd4a6; text-transform:uppercase; letter-spacing:.08em; font-size:.76rem; font-weight:700; }
.primary-button,.secondary-button,.icon-button { border-radius:11px; border:1px solid transparent; padding:11px 16px; cursor:pointer; }
.primary-button { background:var(--brand); color:#fff; font-weight:600; }
.secondary-button { margin-top:8px; background:var(--surface2); border-color:var(--line); }
.config-help { margin-top:16px; padding:11px 13px; border-left:3px solid var(--amber); background:rgba(239,180,77,.10); color:#f5d79f; font-size:.82rem; }
.toolbar { position:sticky; top:10px; z-index:20; display:flex; align-items:center; gap:8px; padding:11px; border:1px solid var(--line); border-radius:15px; background:rgba(25,31,39,.9); backdrop-filter:blur(16px); box-shadow:var(--shadow); }
.nav { display:flex; flex:1; gap:5px; overflow-x:auto; scrollbar-width:none; }
.nav::-webkit-scrollbar { display:none; }
.nav-button { border:0; border-radius:10px; background:transparent; color:var(--muted); padding:10px 14px; cursor:pointer; white-space:nowrap; }
.nav-button:hover { color:var(--text); background:var(--surface2); }
.nav-button.active { color:#fff; background:var(--brand); font-weight:600; }
.control { min-height:42px; padding:9px 11px; color:var(--text); border:1px solid var(--line); border-radius:10px; background:var(--surface2); }
.icon-button { min-width:42px; background:var(--surface2); border-color:var(--line); }
.notice { margin:16px 0; padding:12px 15px; border-radius:11px; font-size:.86rem; }
.notice.info { color:#cfe1ff; border:1px solid rgba(77,143,242,.35); background:rgba(77,143,242,.11); }
.notice.error { color:#ffd0d0; border:1px solid rgba(239,112,112,.38); background:rgba(239,112,112,.12); }
.view { display:none; }
.view.active { display:block; }
.summary-strip { display:grid; grid-template-columns:1fr auto; gap:20px; align-items:center; padding:22px; }
.summary-strip h2 { font-size:clamp(1.45rem,4vw,2.1rem); margin:7px 0 0; }
.gate { min-width:290px; padding:14px 16px; border:1px solid rgba(50,163,107,.3); border-radius:12px; background:var(--brandSoft); }
.gate small { display:block; color:#afe4c7; }
.gate strong { display:block; margin-top:5px; font-size:.92rem; }
.kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:13px 0; }
.kpi { padding:17px; min-height:126px; }
.kpi span { color:var(--muted); font-size:.8rem; }
.kpi strong { display:block; margin-top:9px; font-size:clamp(1.05rem,2.2vw,1.52rem); }
.kpi small { display:block; margin-top:4px; color:var(--muted); font-size:.75rem; line-height:1.45; }
.two-column { display:grid; grid-template-columns:1.05fr .95fr; gap:13px; margin-bottom:13px; }
.section { padding:19px; margin-bottom:13px; }
.section-heading,.view-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:15px; }
.section-heading h3,.view-heading h2 { margin:0; }
.section-heading h3 { font-size:1rem; }
.view-heading h2 { font-size:1.3rem; }
.section-heading p,.view-heading p { margin:4px 0 0; color:var(--muted); font-size:.78rem; }
.pill { padding:5px 9px; border-radius:999px; background:rgba(174,184,197,.12); color:#cbd2db; font-size:.7rem; font-weight:600; white-space:nowrap; }
.pill.amber { color:#ffdfa0; background:rgba(239,180,77,.15); }
.pill.green { color:#b5edcd; background:rgba(50,163,107,.16); }
.stack { display:grid; gap:9px; }
.action { width:100%; text-align:left; padding:13px; border:1px solid var(--line); border-left:3px solid var(--line); border-radius:11px; background:var(--surface2); cursor:pointer; }
.action.warning { border-left-color:var(--amber); }
.action strong { display:block; font-size:.84rem; }
.action span { display:block; margin-top:4px; color:var(--muted); font-size:.75rem; line-height:1.5; }
.control-row { display:flex; justify-content:space-between; gap:18px; padding:10px 0; border-bottom:1px solid var(--line); font-size:.8rem; }
.control-row:last-child { border-bottom:0; }
.control-row span:first-child { color:var(--muted); }
.control-row span:last-child { text-align:right; }
.cost-row { display:grid; grid-template-columns:1fr auto; gap:6px 12px; font-size:.8rem; }
.cost-row .muted { color:var(--muted); font-size:.74rem; }
.bar { grid-column:1/-1; height:8px; overflow:hidden; border-radius:999px; background:var(--surface2); }
.bar-fill { height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--brand),#67cb98); }
.view-heading { align-items:flex-end; margin-top:20px; }
.filters { display:flex; gap:8px; }
.filters .control { min-width:210px; }
.table-wrap { overflow:auto; margin-bottom:13px; }
table { width:100%; min-width:860px; border-collapse:collapse; }
th { position:sticky; top:0; z-index:1; padding:12px; color:var(--muted); background:var(--surface2); text-align:left; font-size:.72rem; font-weight:600; }
td { padding:12px; border-top:1px solid var(--line); font-size:.78rem; }
.right,.money { text-align:right; font-variant-numeric:tabular-nums; }
.status-text { color:var(--muted); max-width:270px; }
.gl-card { padding:16px; }
.gl-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:12px; }
.gl-head strong { font-size:.86rem; }
.gl-head span { color:var(--muted); font-size:.72rem; }
.journal { display:grid; grid-template-columns:1fr auto; gap:8px; font-size:.78rem; }
.journal .account { color:var(--muted); }
.journal .amount { font-weight:600; font-variant-numeric:tabular-nums; }
.locked { width:100%; margin-top:13px; padding:12px; border:1px solid var(--line); border-radius:11px; color:var(--muted); background:var(--surface2); cursor:not-allowed; }
.empty { padding:26px; color:var(--muted); text-align:center; }
.mobile-field-label { display:none; }
.attendance-controls { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0; }
.attendance-field { display:flex; flex-direction:column; gap:7px; font-size:.8rem; color:var(--muted); min-width:0; }
.attendance-field input,.attendance-field select { width:100%; min-width:0; }
.attendance-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.attendance-card { padding:18px; margin-bottom:12px; min-width:0; overflow-wrap:anywhere; }
.attendance-card h3 { margin:0 0 5px; }
.attendance-card .attendance-field { margin-top:12px; }
.attendance-status-buttons { display:grid; grid-template-columns:1fr 1.5fr .7fr; gap:6px; }
.status-choice { padding:12px 8px; min-height:48px; background:var(--surface2); border:1px solid var(--line); border-radius:10px; cursor:pointer; font-size:.8rem; }
.status-choice[aria-pressed=true] { background:#206e48; border-color:#7fd4a6; color:white; }
button:disabled { opacity:.55; cursor:not-allowed; }
.attendance-status,.attendance-count { color:#b5edcd; }
.muted { color:var(--muted); }
#attendanceArea { margin-top:20px; }
#notice:empty { display:none; }
.role-nav { flex-wrap:wrap; overflow:visible; }
.role-nav .nav-button { white-space:normal; font-size:.8rem; }
#demoTools select { max-width:185px; font-size:.75rem; }
@media(max-width:840px) {
  .toolbar .nav.role-nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .attendance-cards { grid-template-columns:minmax(0,1fr); }
  #attendanceArea { margin:14px 9px; }
  .attendance-controls > * { flex:1 1 140px; }
  #demoTools { flex:1; min-width:0; }
}
.filter-label { display:flex; flex-direction:column; gap:5px; color:var(--muted); font-size:.78rem; }
.filters { align-items:flex-end; }
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid #7fd4a6; outline-offset:3px; }
.record-value,.gl-card,.notice,.action,.control-row,.kpi,.pill { overflow-wrap:anywhere; min-width:0; }
summary { cursor:pointer; }
@media(max-width:840px){ .toolbar{align-items:stretch;flex-wrap:wrap}.nav{width:100%;order:1}.control{flex:1}.summary-strip{grid-template-columns:1fr}.gate{min-width:0}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.two-column{grid-template-columns:1fr}.view-heading{align-items:stretch;flex-direction:column}.filters{flex-direction:column}.filters .control{width:100%} }
@media(max-width:480px){ body{font-size:15px}.shell{width:100%;margin-top:0}.topbar{padding:13px 13px 0}.user-chip span:last-child{display:none}.toolbar{top:0;border-radius:0 0 14px 14px;border-left:0;border-right:0}.notice,.view{margin-left:9px;margin-right:9px}.summary-strip,.section,.kpi{padding:14px}.kpis{gap:8px}.brand p{display:none}.signin-panel{margin:12vh 10px}.control-row{flex-direction:column;gap:4px}.control-row span:last-child{text-align:left} }
@media(max-width:840px) {
  .toolbar .nav { flex:0 0 100%; order:2; width:100%; min-width:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px; overflow:visible; }
  .nav-button { min-width:0; min-height:44px; padding:10px 3px; font-size:.8rem; }
  .toolbar > .control { min-width:0; flex:1; }
  .toolbar > .icon-button { flex:0 0 44px; }
  .filters { align-items:stretch; width:100%; }
  .filter-label,.filters .control { width:100%; min-width:0; }
  .table-wrap { overflow:visible; border:0; background:transparent; box-shadow:none; }
  table { display:block; width:100%; min-width:0; }
  thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  tbody { display:grid; gap:12px; }
  tr { display:block; min-width:0; padding:8px 14px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
  td { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:12px; width:auto; max-width:none; padding:10px 0; text-align:left; }
  td:first-child { border-top:0; }
  .mobile-field-label { display:block; color:var(--muted); font-weight:500; }
  .record-value { display:block; overflow-wrap:anywhere; }
  td.money .record-value { text-align:right; }
  td.empty { display:block; }
  .pill { white-space:normal; }
  .journal { grid-template-columns:minmax(0,1fr) auto; }
}

/* Central theme and responsive interaction layer. Original brand assets pending verification. */
body { background:var(--bg); line-height:1.5; }
.shell { width:min(1280px,calc(100% - 40px)); margin:24px auto 64px; }
.topbar { background:var(--adorable-header); padding:20px; border:1px solid var(--line); border-radius:16px; flex-wrap:wrap; }
.brand { min-width:0; flex:1 1 360px; }
.brand h1 { font-size:1.2rem; }
.brand p { display:block; }
.user-chip { max-width:100%; border-radius:10px; }
.user-chip span:last-child { display:block; white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
.identity { min-width:0; }
.identity small { display:block; color:var(--adorable-comparison); margin-top:4px; }
.card { background:var(--surface); }
.signin-panel { margin:40px auto; min-height:420px; }
.eyebrow { color:var(--adorable-comparison); }
button,input,select,summary { min-height:44px; }
button { line-height:1.4; }
.primary-button,.nav-button.active { color:var(--adorable-canvas); background:var(--brand); font-weight:700; }
.nav-button.active { box-shadow:inset 0 -4px 0 var(--text); text-decoration:underline; text-underline-offset:4px; }
.toolbar { position:static; background:var(--adorable-header); backdrop-filter:none; flex-wrap:wrap; padding:14px; }
.nav,.role-nav { flex:1 1 100%; flex-wrap:wrap; overflow:visible; order:0; }
.nav-button,.role-nav .nav-button { font-size:.875rem; white-space:normal; padding:12px 16px; }
.toolbar .secondary-button { margin:0; }
.control { min-height:44px; }
.notice { line-height:1.65; font-size:.94rem; }
.notice.info { background:var(--adorable-section); color:var(--text); border:1px solid var(--adorable-comparison); }
.notice.warning,.config-help { background:var(--adorable-section); color:var(--amber); border:1px solid var(--amber); }
.notice.error { color:var(--red); background:var(--adorable-section); border:1px solid var(--red); }
#authStatus:empty { display:none; }
.signin-panel #authStatus { width:100%; margin:0 0 18px; }
.kpi { padding:20px; }
.kpi span,.kpi small { font-size:.875rem; }
.kpi strong { font-size:clamp(1.25rem,2vw,1.65rem); font-variant-numeric:tabular-nums; }
.gate { border-color:var(--line); }
.gate small,.attendance-status,.attendance-count { color:var(--adorable-comparison); }
.section-heading p,.view-heading p,.action span,.control-row,td,.journal,.status-text { font-size:.9rem; }
.action strong,.gl-head strong { font-size:1rem; }
.pill { color:var(--text); background:var(--surface2); white-space:normal; }
.pill.amber { color:var(--amber); background:var(--surface2); }
.pill.green { color:var(--adorable-comparison); background:var(--surface2); }
.bar-fill { background:var(--adorable-comparison); }
.status-text { max-width:none; }
.gl-head { flex-wrap:wrap; }
.gl-head span { font-size:.875rem; }
.journal { grid-template-columns:minmax(0,1fr) minmax(0,auto); padding:14px 0; border-block:1px solid var(--line); }
.journal .amount { overflow-wrap:anywhere; text-align:right; }
.filters { flex-wrap:wrap; }
.attendance-status-buttons { grid-template-columns:repeat(3,minmax(0,1fr)); }
.status-choice { font-size:.9rem; }
.status-choice[aria-pressed=true] { background:var(--brand); border-color:var(--text); color:var(--bg); box-shadow:inset 0 -3px var(--text); font-weight:700; }
button:disabled { opacity:1; color:var(--muted); background:var(--surface2); border:1px dashed var(--muted); }
button:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible { outline:3px solid var(--adorable-highlight); outline-offset:3px; }
summary { padding:10px 0; }
@media(max-width:1000px) { .kpis{grid-template-columns:repeat(2,minmax(0,1fr))} .two-column{grid-template-columns:1fr} }
@media(max-width:840px) { .toolbar .nav,.toolbar .nav.role-nav{display:flex;flex-wrap:wrap;order:0;gap:8px} .nav-button{flex:1 1 130px} .toolbar > .icon-button{flex:0 1 auto} .attendance-controls{gap:16px} .attendance-status-buttons{grid-template-columns:1fr} .filters .control{min-width:0} }
@media(max-width:480px) {
 .shell{width:calc(100% - 24px);margin:12px auto 40px} .topbar{padding:16px;gap:16px}
 .brand{flex-basis:100%} .brand h1{font-size:1.05rem} .brand p{font-size:.8rem}
 .user-chip{width:100%} .user-chip span:last-child{display:block} .toolbar{border:1px solid var(--line);border-radius:14px}
 .signin-panel{margin:20px 0;padding:24px;min-height:0} .signin-panel h2{font-size:1.8rem}
 .signin-panel button{width:100%} .notice,.view{margin-left:0;margin-right:0} #attendanceArea{margin:16px 0}
 .kpis{grid-template-columns:minmax(0,1fr);gap:12px} .kpi{min-height:0;padding:18px}
 .section-heading{flex-wrap:wrap} td{grid-template-columns:minmax(0,1fr);gap:4px} td.money .record-value{text-align:left}
 .journal{grid-template-columns:minmax(0,1fr)} .journal .amount{text-align:left;margin-bottom:8px}
 .toolbar>*{max-width:100%} .toolbar .nav .nav-button{padding:12px 10px}
}
@media(max-width:480px) {
 .toolbar #demoTools { flex:1 1 100%; width:100%; }
 .toolbar #demoTools select { width:100%; max-width:none; font-size:.875rem; }
 .toolbar > #periodSelect { flex:1 1 100%; width:100%; }
 .toolbar > #refreshButton,.toolbar > #signOutButton { flex:1 1 120px; }
}

/* Owner-approved header refinement: frame only the horizontal artwork's blank margins.
   The original JPEG files and the logo artwork itself remain unchanged. */
.brand-logo { display:block; flex:0 0 250px; width:250px; padding:0; background:var(--adorable-logo-surface); border:1px solid var(--adorable-logo-border); border-radius:10px; overflow:hidden; }
.brand-logo img { display:block; width:100%; height:64px; object-fit:cover; object-position:50% 50%; }
.brand { gap:24px; }
.brand-copy { padding-left:24px; border-left:1px solid var(--line); }
.brand h1 { font-size:1.25rem; letter-spacing:-.02em; }
.brand p { font-size:.8rem; margin-top:5px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:840px) {
 .brand-logo { flex-basis:64px; width:64px; padding:3px; border-radius:50%; }
 .brand-logo img { height:auto; object-fit:contain; }
 .brand { gap:14px; }
 .brand-copy { border:0; padding:0; min-width:0; }
 .brand h1 { font-size:1.15rem; }
}

/* Attendance Phase 2: status labels and icons accompany every colour. */
:root { --attendance-present:#7FB8AD; --attendance-leave:#8DBBFF; --attendance-absent:#F4B740; --attendance-awp:#FF6B6B; --attendance-unmarked:#AEC3BD; --attendance-special:#D1AEFF; }
.attendance-card { border-left:5px solid var(--attendance-unmarked); min-width:0; }
.attendance-card[data-status=present] { border-left-color:var(--attendance-present); }
.attendance-card[data-status=absent] { border-left-color:var(--attendance-absent); }
.attendance-card[data-status=awp] { border-left-color:var(--attendance-awp); }
.attendance-card[data-status=special] { border-left-color:var(--attendance-special); }
.attendance-card h3,.attendance-card small,.attendance-status { overflow-wrap:anywhere; }
.attendance-status { font-weight:700; }
.attendance-progress { display:flex; flex-wrap:wrap; gap:8px 16px; padding:14px; background:var(--adorable-header); border:1px solid var(--line); border-radius:10px; margin:16px 0; }
.progress-item { font-size:.875rem; overflow-wrap:anywhere; }
.readiness { flex-basis:100%; font-size:.9rem; }
.employee-filters { display:flex; flex-wrap:wrap; gap:8px; }
.employee-filters button { min-height:44px; margin:0; }
.employee-filters [aria-pressed=true] { border:2px solid var(--adorable-highlight); text-decoration:underline; }
.preview-write-notice { font-weight:700; }
.attendance-controls>* { min-width:0; }
@media(max-width:480px) { .attendance-cards { grid-template-columns:minmax(0,1fr); } .employee-filters button { flex:1 1 130px; } .attendance-progress { gap:4px 12px; } .attendance-card input,.attendance-card select { max-width:100%; min-width:0; } }

#unmarkedCount { position:sticky; top:0; z-index:3; background:var(--adorable-header); padding:10px 12px; border:1px solid var(--line); border-radius:8px; }

.attendance-bulk-action { margin:12px 0; }
.bulk-confirmation { margin:8px 0 0; padding:16px; border-color:var(--adorable-warning); }
.bulk-confirmation p { margin:0 0 12px; }
.bulk-confirmation button { margin:4px 8px 4px 0; min-height:44px; }

.holiday-feedback { margin:12px 0; overflow-wrap:anywhere; }
.holiday-feedback:focus-visible,[id^="holiday-SAMPLE-"]:focus-visible { outline:3px solid var(--adorable-highlight); outline-offset:3px; }

/* Stable section navigation: selection never raises or overlays adjacent labels. */
#roleNav { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr)); gap:8px; align-items:stretch; }
#roleNav .nav-button { min-width:0; min-height:48px; margin:0; border:1px solid transparent; line-height:1.5; box-shadow:none; transform:none; text-decoration:none; overflow-wrap:anywhere; }
#roleNav .nav-button.active { background:var(--surface2); color:var(--text); border-color:var(--brand); box-shadow:inset 3px 0 0 var(--brand); }
#roleNav .nav-button:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
.attendance-report-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:20px 0; }
.attendance-chart { min-width:0; padding:24px; }
.attendance-chart h3 { margin:0 0 12px; }
.report-caption { color:var(--muted); line-height:1.6; overflow-wrap:anywhere; }
.report-bar-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 16px; margin:20px 0; align-items:center; }
.report-bar-row span { overflow-wrap:anywhere; }
.report-meter { display:block; grid-column:1 / -1; width:100%; height:18px; accent-color:var(--brand); }
.report-meter::-webkit-meter-bar { background:var(--surface2); border:1px solid var(--line); border-radius:5px; }
.report-meter::-webkit-meter-optimum-value { background:var(--brand); }
.attendance-controls > button { align-self:end; min-height:44px; }
@media(max-width:840px) { .attendance-report-grid { grid-template-columns:minmax(0,1fr); } }
@media(max-width:480px) { #roleNav { grid-template-columns:repeat(2,minmax(0,1fr)); } .attendance-chart { padding:16px; } }

/* Final attendance review: consistent targets, wrapping and separated actions. */
#attendanceArea button,.toolbar > button { min-height:48px; max-width:100%; padding:12px 16px; line-height:1.5; white-space:normal; overflow-wrap:anywhere; vertical-align:middle; }
#attendanceHost > button { margin:8px 12px 8px 0; }
.attendance-controls { align-items:end; }
.attendance-controls > button { margin:0; }
.attendance-status-buttons { gap:12px; align-items:stretch; }
.status-choice[aria-pressed=true] { box-shadow:none; outline:0; border-color:var(--text); }
.status-choice:focus-visible { outline:3px solid var(--adorable-highlight); outline-offset:3px; }
#unmarkedCount { position:static; }
@media(max-width:480px) { #attendanceHost > button { display:block; width:100%; margin:12px 0; } .attendance-controls > button { width:100%; } }

.language-control { display: grid; gap: .35rem; min-width: 8rem; }
html[lang="my"] body { font-family: "Myanmar Text", "Noto Sans Myanmar", sans-serif; line-height: 1.7; }

[lang="my"] { font-family: "Myanmar Text", "Noto Sans Myanmar", sans-serif; line-height: 1.7; }
.language-control { min-width: 0; max-width: 100%; }
.language-control .notice { max-width: 24rem; white-space: normal; }


/* Bilingual reading hierarchy: compact utilities, comfortable Myanmar controls. */
.header-tools { display:flex; align-items:center; gap:12px; flex-wrap:wrap; min-width:0; }
.header-tools .language-control { gap:4px; font-size:.8rem; }
.header-tools .secondary-button { margin:0; color:var(--text); text-decoration:none; font-size:.875rem; }
.header-tools select { min-width:120px; }
html[lang="my"] .nav-button,html[lang="my"] .status-choice { font-size:.95rem; line-height:1.85; letter-spacing:normal; }
html[lang="my"] .notice { line-height:1.9; }
html[lang="my"] .attendance-field { line-height:1.85; }
.attendance-card { padding:24px; }
.attendance-card h3 { margin-top:0; margin-bottom:8px; }
.attendance-card .attendance-field { margin-top:16px; }
.attendance-progress { gap:12px; }
.progress-item { padding:6px 10px; border-radius:6px; background:var(--surface2); }
.header-tools .language-control .notice { flex-basis:100%; }
@media(max-width:840px) {
 .topbar { flex-wrap:wrap; gap:16px; }
 .topbar .brand { flex:1 1 100%; }
 .header-tools { flex:1 1 220px; }
 .topbar .user-chip { max-width:100%; }
}
@media(max-width:480px) {
 .topbar .header-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; gap:12px; }
 .header-tools .language-control span { font-size:.75rem; }
 .header-tools select { min-width:0; width:100%; }
 .header-tools .secondary-button { align-self:end; padding:12px; }
 .topbar .user-chip { width:100%; margin:0; }
 .attendance-card { padding:18px; }
 html[lang="my"] #roleNav { grid-template-columns:repeat(2,minmax(0,1fr)); }
}


/* Let the brand keep a readable title instead of squeezing between utilities. */
.topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.topbar .brand { min-width:0; grid-column:1 / -1; }
.topbar .brand-copy { min-width:0; flex:1; }
.topbar .brand-copy h1 { overflow-wrap:normal; }
.topbar .header-tools { grid-column:1; }
.topbar .user-chip { grid-column:2; max-width:100%; }
@media(min-width:1200px) {
 .topbar { grid-template-columns:minmax(0,1fr) auto auto; }
 .topbar .brand { grid-column:1; }
 .topbar .header-tools { grid-column:2; }
 .topbar .user-chip { grid-column:3; }
}
@media(max-width:600px) {
 .topbar { grid-template-columns:minmax(0,1fr); }
 .topbar .brand,.topbar .header-tools,.topbar .user-chip { grid-column:1; }
}

/* Task-based guidance: readable on narrow screens and keyboard accessible. */
.user-guide { max-width: 960px; }
.guide-intro { color: var(--muted); }
.guide-task, .attendance-help { border: 1px solid var(--border, #285c53); border-radius: 12px; margin-block: 12px; }
.guide-task summary, .attendance-help summary { cursor: pointer; padding: 16px; font-weight: 600; overflow-wrap: anywhere; }
.guide-task summary:focus-visible, .attendance-help summary:focus-visible { outline: 3px solid #20bba7; outline-offset: 3px; }
.guide-task[open] summary { border-bottom: 1px solid var(--border, #285c53); }
.guide-task-body { padding: 8px 20px 20px; line-height: 1.8; }
.guide-task-body li { margin-block: 12px; padding-inline-start: 4px; }
.attendance-help > p { padding: 0 16px 12px; }
@media (max-width: 600px) { .guide-task-body { padding-inline: 14px; } .guide-task-body ol, .guide-task-body ul { padding-inline-start: 24px; } }

/* Readable records and a compact, consistently aligned application header. */
.topbar { gap:20px; padding:20px 24px; border-radius:12px; }
.topbar .header-tools { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.topbar .header-tools .secondary-button { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:10px 16px; }
.topbar .language-control { display:grid; gap:5px; min-width:120px; }
.topbar .language-control select { min-height:44px; margin:0; }
.topbar .user-chip { align-self:end; min-height:44px; padding:10px 14px; }
.submission-history-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 20px; padding:16px 0; border-bottom:1px solid var(--line); }
.submission-history-main h4 { margin:0 0 5px; font-size:1rem; }
.submission-history-main p { margin:0; }
.submission-history-state { display:grid; align-content:start; gap:5px; text-align:right; }
.submission-history-details { grid-column:1 / -1; font-size:.85rem; }
.submission-history-details summary { cursor:pointer; color:var(--muted); width:fit-content; padding:5px 0; }
.submission-history-details summary:focus-visible { outline:2px solid var(--brand); outline-offset:4px; }
.record-reference { overflow-wrap:anywhere; font-family:monospace; padding:10px; background:var(--surface2); }
@media(max-width:600px) {
 .topbar { padding:16px; gap:16px; }
 .topbar .header-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); width:100%; }
 .topbar .language-control { min-width:0; }
 .topbar .user-chip { justify-self:start; }
 .submission-history-row { grid-template-columns:minmax(0,1fr); gap:8px; }
 .submission-history-state { display:flex; gap:12px; text-align:left; flex-wrap:wrap; }
}

/* Handoff theme: quiet surfaces, clear hierarchy and consistent touch targets. */
body { background:var(--bg); color:var(--text); }
.shell { width:min(1360px,calc(100% - 48px)); margin:24px auto 64px; }
.topbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:16px 24px; border:0; border-bottom:3px solid var(--brand); border-radius:8px; padding:20px 24px; box-shadow:0 2px 8px #173e2810; }
.topbar .brand { grid-column:1; grid-row:1; gap:20px; }
.topbar .brand-logo { flex:0 0 220px; width:220px; border:0; border-radius:0; background:#fff; }
.topbar .brand-logo img { height:60px; object-fit:cover; object-position:center; }
.topbar .brand-copy { padding-left:20px; border-left:1px solid var(--line); }
.topbar .brand-copy h1 { font-size:1.2rem; line-height:1.4; }
.topbar .brand-copy p { font-size:.8rem; line-height:1.5; }
.topbar .header-tools { grid-column:2; grid-row:1; align-items:flex-end; justify-content:flex-end; }
.topbar .user-chip { grid-column:1 / -1; grid-row:2; justify-self:end; background:transparent; border:0; min-height:0; padding:0; font-size:.78rem; }
.topbar .identity { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.topbar .identity small { margin:0; }
.toolbar { border:1px solid var(--line); border-radius:8px; padding:12px; box-shadow:none; gap:10px; }
#roleNav { display:flex; flex-wrap:wrap; gap:4px; padding-bottom:10px; border-bottom:1px solid var(--line); }
#roleNav .nav-button { flex:0 1 auto; padding:10px 14px; min-height:44px; border-radius:6px; color:var(--muted); }
#roleNav .nav-button.active { background:#E4F1EB; color:#004C43; border-color:#A9CABE; box-shadow:inset 0 -3px #00594F; }
.card { border-radius:8px; box-shadow:0 1px 3px #173e2808; }
.primary-button { color:#fff; background:#00594F; border-color:#00594F; }
.primary-button:hover:not(:disabled) { background:#00453E; }
.secondary-button,.icon-button { background:#fff; color:var(--text); border:1px solid #B8CAC1; border-radius:6px; }
.secondary-button:hover:not(:disabled),.icon-button:hover:not(:disabled) { background:#EEF3F1; }
.control { background:#fff; border-color:#A7BCB1; border-radius:6px; }
button:disabled { color:#66786F; background:#F0F3F1; border:1px solid #D1DCD5; cursor:not-allowed; }
.notice { border-radius:6px; padding:12px 16px; }
.notice.info { background:#EDF4F1; border:1px solid #CFDED5; color:#274B3E; }
.notice.warning,.config-help { background:#FFF8E8; border:1px solid #EAD29B; color:#795200; }
.notice.error { background:#FFF1F2; border:1px solid #EAB8BF; color:#A52232; }
.kpi { border-top:3px solid #ACCDBF; min-height:110px; padding:18px 20px; }
.kpi strong { color:#133D30; font-size:1.65rem; letter-spacing:-.03em; }
.attendance-controls { background:#fff; border:1px solid var(--line); padding:16px; border-radius:8px; align-items:end; }
.attendance-field { font-size:.875rem; font-weight:500; }
.attendance-status-buttons { display:flex; flex-wrap:wrap; gap:8px; }
.attendance-status-buttons .status-choice { flex:1 1 100px; border-radius:6px; background:#fff; }
.status-choice[aria-pressed=true] { background:#00594F; color:#fff; border-color:#00594F; box-shadow:none; }
.attendance-card { border-left-width:3px; }
.attendance-card h3 { font-size:1.05rem; }
.attendance-help,.guide-task { border-radius:6px; background:#fff; }
.report-meter { height:14px; }
th { color:#395A4C; background:#EDF3EF; font-size:.8rem; }
td { font-size:.9rem; padding:14px 12px; }
tbody tr:nth-child(even) { background:#FAFCFB; }
tbody tr:hover { background:#F0F6F2; }
.submission-history-row { background:#fff; padding:16px; border:1px solid var(--line); border-bottom:0; }
.submission-history-row:last-child { border-bottom:1px solid var(--line); }
a { color:#00594F; }
@media(max-width:1000px) {
 .topbar { grid-template-columns:minmax(0,1fr); }
 .topbar .brand { grid-column:1; grid-row:1; }
 .topbar .header-tools { grid-column:1; grid-row:2; justify-content:flex-start; }
 .topbar .user-chip { grid-column:1; grid-row:3; justify-self:start; }
}
@media(max-width:600px) {
 .shell { width:calc(100% - 24px); margin:12px auto 40px; }
 .topbar { padding:16px; gap:14px; }
 .topbar .brand { flex-wrap:wrap; gap:10px; }
 .topbar .brand-logo { flex-basis:180px; width:180px; }
 .topbar .brand-logo img { height:49px; }
 .topbar .brand-copy { flex-basis:100%; border:0; padding:0; }
 .topbar .brand-copy h1 { font-size:1.1rem; }
 .topbar .header-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 #roleNav .nav-button { flex:1 1 130px; }
 .attendance-controls { padding:12px; }
 .kpi { padding:14px; }
 .kpi strong { font-size:1.3rem; }
 .notice,.view { margin-left:0; margin-right:0; }
}
.attendance-status-buttons .status-choice[aria-pressed=true] { background:#00594F; color:#fff; border-color:#00594F; }
/* Vector logo keeps the original proportions without cropping or font substitution. */
.topbar .brand-logo img { height:auto; width:100%; object-fit:contain; }

/* Invoice-inspired header: brand first, utilities second, one quiet dividing rule. */
.topbar { padding:20px 24px 14px; gap:8px 24px; border-radius:4px; border-bottom:2px solid #143D3E; box-shadow:none; }
.topbar .brand { align-items:center; min-width:0; }
.topbar .brand-logo { padding:8px 0; flex-shrink:0; }
.topbar .brand-copy { min-width:0; }
.topbar .brand-copy h1 { color:#143D3E; font-weight:650; letter-spacing:-.015em; }
.topbar .brand-copy p { max-width:38ch; color:#52675F; }
.topbar .header-tools { gap:10px; }
.topbar .header-tools a { margin:0; white-space:nowrap; }
.topbar .language-control > span { font-size:.75rem; line-height:1.5; }
.topbar .user-chip { color:#52675F; line-height:1.5; }
@media(max-width:1000px) { .topbar { gap:14px; } }
@media(max-width:600px) {
 .topbar { padding:16px; }
 .topbar .brand-logo { width:200px; flex-basis:200px; max-width:100%; padding:4px 0 8px; }
 .topbar .brand-copy h1 { margin:0; }
 .topbar .header-tools { align-items:end; }
 .topbar .header-tools a { white-space:normal; }
}

/* Dark appearance changes presentation only; shared layout and states stay intact. */
:root[data-theme=dark] {
 color-scheme:dark;
 --adorable-canvas:#101B18; --adorable-header:#172620; --adorable-section:#1D3028; --adorable-card:#172620;
 --adorable-border:#496254; --adorable-text:#EDF4EF; --adorable-text-secondary:#BACDBF;
 --adorable-accent:#78CFB1; --adorable-comparison:#9FCDB7; --adorable-highlight:#93E6C6;
 --adorable-warning:#F4CA73; --adorable-danger:#FF9EA9;
}
[data-theme=dark] .topbar { border-color:var(--line); }
[data-theme=dark] .topbar .brand-logo { background:#fff; padding:8px; border-radius:4px; }
[data-theme=dark] .topbar .brand-copy h1,[data-theme=dark] .kpi strong { color:var(--text); }
[data-theme=dark] .topbar .brand-copy p,[data-theme=dark] .topbar .user-chip { color:var(--muted); }
[data-theme=dark] .secondary-button,[data-theme=dark] .icon-button,[data-theme=dark] .control,
[data-theme=dark] .attendance-controls,[data-theme=dark] .attendance-help,[data-theme=dark] .guide-task,
[data-theme=dark] .submission-history-row,[data-theme=dark] .attendance-status-buttons .status-choice { background:var(--surface); color:var(--text); border-color:var(--line); }
[data-theme=dark] .primary-button,[data-theme=dark] .attendance-status-buttons .status-choice[aria-pressed=true] { background:#78CFB1; color:#10251C; border-color:#78CFB1; }
[data-theme=dark] .primary-button:hover:not(:disabled) { background:#9FE0C6; }
[data-theme=dark] .secondary-button:hover:not(:disabled),[data-theme=dark] .icon-button:hover:not(:disabled) { background:var(--surface2); }
[data-theme=dark] #roleNav .nav-button.active { background:#294C3D; color:#DDF6E9; border-color:#78CFB1; box-shadow:inset 0 -3px #78CFB1; }
[data-theme=dark] .notice.info { background:#20392E; color:#D2E9DD; border-color:#496254; }
[data-theme=dark] .notice.warning,[data-theme=dark] .config-help { background:#392F1B; color:#F4CA73; border-color:#786334; }
[data-theme=dark] .notice.error { background:#3D242A; color:#FFB1BB; border-color:#885560; }
[data-theme=dark] th { background:#223B2F; color:#CEE3D6; }
[data-theme=dark] tbody tr:nth-child(even) { background:#1B2E25; }
[data-theme=dark] tbody tr:hover { background:#294536; }
[data-theme=dark] button:disabled { color:#A8BBB0; background:#24342C; border-color:#52665A; }
[data-theme=dark] a { color:#A0E2C6; }
.topbar .theme-control { min-width:95px; }
@media(max-width:600px) { .topbar .header-tools { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .topbar .header-tools > a { grid-column:1 / -1; justify-self:start; } }

.feedback-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}
.feedback-status:empty{display:none}

/* Give the original brand artwork a readable, consistent signature in both themes. */
.topbar { padding:24px; gap:12px 28px; border-radius:10px; }
.topbar .brand { gap:24px; }
.topbar .brand-logo,
[data-theme=dark] .topbar .brand-logo { box-sizing:border-box; flex:0 0 300px; width:300px; max-width:100%; padding:18px 16px; background:#fff; border:1px solid #dce5df; border-radius:6px; }
.topbar .brand-logo img { display:block; width:100%; height:auto; object-fit:contain; }
.topbar .brand-copy { padding-left:0; border-left:0; }
.topbar .brand-copy h1 { font-size:1.125rem; font-weight:600; line-height:1.4; }
.topbar .brand-copy p { margin-top:6px; font-size:.8rem; max-width:26ch; line-height:1.6; }
.topbar .header-tools { align-items:end; }
.topbar .user-chip { max-width:100%; }
@media (max-width:1100px) {
 .topbar { grid-template-columns:minmax(0,1fr); }
 .topbar .brand { grid-column:1; grid-row:1; }
 .topbar .header-tools { grid-column:1; grid-row:2; justify-content:flex-start; padding-top:14px; border-top:1px solid var(--line); }
 .topbar .user-chip { grid-column:1; grid-row:3; justify-self:start; }
}
@media (max-width:600px) {
 .topbar { padding:18px; gap:14px; }
 .topbar .brand { gap:14px; }
 .topbar .brand-logo,
 [data-theme=dark] .topbar .brand-logo { flex-basis:280px; width:280px; padding:16px 14px; }
 .topbar .brand-copy { flex-basis:100%; }
 .topbar .brand-copy p { max-width:none; }
}

/* Account actions stay with the signed-in identity, away from daily work controls. */
.topbar .user-chip { flex-wrap:wrap; gap:12px; }
.topbar #signOutButton { flex:0 0 auto; margin:0 0 0 8px; min-height:44px; font-size:.85rem; }
.topbar .identity { min-width:0; overflow-wrap:anywhere; }
@media(max-width:600px) { .topbar .user-chip { width:100%; } .topbar .identity { flex:1; } .topbar #signOutButton { margin-left:0; } }

.topbar #signOutButton { display:none; }
.shell:has(> #app:not(.hidden)) .topbar #signOutButton { display:inline-flex; align-items:center; justify-content:center; }

/* Invoice-style brand masthead: open artwork, with utilities on their own surface. */
.topbar,
[data-theme=dark] .topbar { background:#fff; border:0; border-bottom:3px solid #143D3E; border-radius:0; padding:28px 24px 18px; gap:16px 28px; }
.topbar .brand { gap:28px; }
.topbar .brand-logo,
[data-theme=dark] .topbar .brand-logo { flex:0 0 380px; width:380px; padding:0; border:0; border-radius:0; background:transparent; }
.topbar .brand-copy h1,
[data-theme=dark] .topbar .brand-copy h1 { color:#143D3E; }
.topbar .brand-copy p,
[data-theme=dark] .topbar .brand-copy p { color:#52675F; }
.topbar .header-tools { background:#EDF4F1; padding:12px; border-radius:4px; color:#143D3E; }
.topbar .header-tools .control,
.topbar .header-tools a,
.topbar #signOutButton { background:#fff; color:#143D3E; border-color:#9EB5AA; }
.topbar .user-chip,
[data-theme=dark] .topbar .user-chip { color:#35584A; }
.topbar .status-dot { background:#00594F; }
@media(max-width:1200px) {
 .topbar { grid-template-columns:minmax(0,1fr); }
 .topbar .brand { grid-column:1; grid-row:1; }
 .topbar .header-tools { grid-column:1; grid-row:2; justify-content:flex-start; border:0; }
 .topbar .user-chip { grid-column:1; grid-row:3; justify-self:start; }
}
@media(max-width:600px) {
 .topbar,
 [data-theme=dark] .topbar { padding:22px 18px 16px; gap:16px; }
 .topbar .brand-logo,
 [data-theme=dark] .topbar .brand-logo { flex-basis:100%; width:100%; max-width:380px; padding:0; }
 .topbar .brand { gap:16px; }
 .topbar .header-tools { padding:12px; }
}

/* Dark masthead uses the same original artwork as a light brand signature. */
[data-theme=dark] .topbar { background:#101F1B; border-bottom-color:#42665A; }
[data-theme=dark] .topbar .brand-logo { background:transparent; }
[data-theme=dark] .topbar .brand-logo img { filter:brightness(0) invert(1); opacity:.96; }
[data-theme=dark] .topbar .brand-copy h1 { color:#F1F6F3; }
[data-theme=dark] .topbar .brand-copy p { color:#AEC3B9; }
[data-theme=dark] .topbar .header-tools { background:transparent; }
[data-theme=dark] .topbar .language-control > span { color:#AEC3B9; }
[data-theme=dark] .topbar .header-tools .control,
[data-theme=dark] .topbar .header-tools a,
[data-theme=dark] .topbar #signOutButton { background:#192D25; color:#EDF5F0; border-color:#4C695C; }
[data-theme=dark] .topbar .user-chip { color:#AEC3B9; }
[data-theme=dark] .topbar .status-dot { background:#79CEB2; }

/* Compact application frame: brand, utilities and account have distinct positions. */
.topbar,
[data-theme=dark] .topbar { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; padding:24px 28px; gap:12px 32px; border:1px solid var(--line); border-radius:18px; }
.topbar .brand { grid-column:1; grid-row:1 / 3; display:flex; flex-direction:column; align-items:flex-start; gap:14px; }
.topbar .brand-logo,
[data-theme=dark] .topbar .brand-logo { width:320px; max-width:100%; flex:0 0 auto; }
.topbar .brand-copy { padding:0; }
.topbar .brand-copy h1 { font-size:1rem; line-height:1.4; letter-spacing:0; }
.topbar .brand-copy p { max-width:none; margin-top:3px; font-size:.75rem; }
.topbar .header-tools { grid-column:2; grid-row:1; padding:0; background:transparent; gap:10px; justify-content:flex-end; align-items:end; border:0; }
.topbar .header-tools .control,.topbar .header-tools a { border-radius:10px; }
.topbar .user-chip { grid-column:2; grid-row:2; justify-self:end; align-self:center; }
.topbar #signOutButton { border-radius:10px; }
.card,.attendance-controls,.attendance-card { border-radius:14px; }
.toolbar { border-radius:14px; padding:14px; }
#roleNav { gap:6px; }
#roleNav .navigation-group { position:relative; min-width:0; max-width:100%; }
#roleNav .navigation-group > summary { cursor:pointer; list-style-position:inside; }
#roleNav .navigation-group[open] { flex-basis:100%; }
#roleNav .navigation-group-items { display:flex; flex-wrap:wrap; gap:6px; padding:8px 0; border-top:1px solid var(--line); }
#roleNav .navigation-group-items .nav-button { white-space:normal; }

#roleNav .nav-button { border-radius:9px; }
#roleNav .nav-button.active { box-shadow:none; font-weight:650; }
.primary-button,.secondary-button,.icon-button,.control { border-radius:9px; }
.kpi { border-top-width:1px; }
.signin-panel { margin:44px auto; border-radius:20px; }
@media(max-width:800px) {
 .topbar,
 [data-theme=dark] .topbar { grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto auto; padding:22px; gap:20px; }
 .topbar .brand { grid-column:1; grid-row:1; }
 .topbar .header-tools { grid-column:1; grid-row:2; justify-content:flex-start; }
 .topbar .user-chip { grid-column:1; grid-row:3; justify-self:start; }
}
@media(max-width:600px) {
 .topbar .header-tools { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:8px; }
 .topbar .header-tools > a { grid-column:auto; justify-self:stretch; padding:11px 12px; }
 .topbar .language-control,.topbar .theme-control { min-width:0; }
 .topbar .brand-copy { flex-basis:auto; }
 .topbar .brand-logo,
 [data-theme=dark] .topbar .brand-logo { width:100%; max-width:320px; }
}
@media(max-width:360px) {
 .topbar .header-tools { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .topbar .header-tools > a { grid-column:1 / -1; justify-self:start; }
}

/* Feedback fields and long responses remain readable at narrow widths. */
.feedback-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; max-width:860px; margin:24px 0; }
.feedback-form .attendance-field { display:grid; gap:8px; min-width:0; }
.feedback-form .attendance-field:last-child { grid-column:1 / -1; }
.feedback-form textarea { min-height:140px; resize:vertical; line-height:1.7; }
.feedback-status { overflow-wrap:anywhere; }
.feedback-actions button { min-height:44px; }
.topbar .identity span { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:600px) { .feedback-form { grid-template-columns:minmax(0,1fr); gap:16px; } .control { font-size:1rem; } }

a:focus-visible,textarea:focus-visible { outline:3px solid var(--brand); outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important; } }

.payroll-slips { display:none; }
@media print {
 @page { size:A4 portrait; margin:8mm; }
 body.printing-payroll * { visibility:hidden; }
 body.printing-payroll .payroll-slips,body.printing-payroll .payroll-slips * { visibility:visible; }
 body.printing-payroll .payroll-slips { display:block; position:absolute; inset:0; width:100%; color:#0c3432; background:#fff; font-family:Roboto,"Segoe UI","Myanmar Text","Noto Sans Myanmar",Arial,sans-serif; }
 .payroll-slip-page { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,minmax(0,1fr)); gap:3mm; width:194mm; height:279mm; break-after:page; page-break-after:always; }
 .payroll-slip-page:last-child { break-after:auto; page-break-after:auto; }
 .payroll-slip { min-width:0; min-height:0; padding:3mm; border:1px solid #5b7773; border-radius:2mm; overflow:hidden; font-size:7.6pt; line-height:1.22; break-inside:avoid; page-break-inside:avoid; }
 .payroll-slip-brand { display:flex; align-items:center; justify-content:space-between; gap:3mm; padding-bottom:1.5mm; border-bottom:1px solid #0f4542; }
 .payroll-slip-brand img { display:block; width:41mm; max-height:9mm; object-fit:contain; object-position:left center; }
 .payroll-slip-heading { display:grid; justify-items:end; gap:.5mm; text-align:right; white-space:nowrap; }
 .payroll-slip-heading strong { font-size:10pt; letter-spacing:.05em; }
 .payroll-slip-heading span { font-size:6.7pt; }
 .payroll-slip-identity { display:grid; grid-template-columns:19mm minmax(0,1fr); gap:.7mm 2mm; margin:1.5mm 0; }
 .payroll-slip-identity dt,.payroll-slip-identity dd { margin:0; min-width:0; overflow-wrap:anywhere; }
 .payroll-slip-identity dt { color:#456461; }
 .payroll-slip-identity dd { font-weight:700; }
 .payroll-slip-amounts h3 { margin:1mm 0 .5mm; padding:.7mm 1mm; color:#fff; background:#0f4542; font-size:7pt; letter-spacing:.08em; }
 .payroll-slip-amounts p { display:flex; justify-content:space-between; gap:2mm; margin:0; padding:.55mm 1mm; border-bottom:1px solid #d9e2e0; }
 .payroll-slip-amounts p strong { flex:none; font-variant-numeric:tabular-nums; white-space:nowrap; }
 .payroll-slip-amounts .payroll-slip-total { margin-top:.7mm; padding:1mm; border:0; color:#fff; background:#0f4542; font-size:8pt; }
 .payroll-slip-signatures { display:grid; grid-template-columns:1fr 1fr; gap:6mm; margin-top:4mm; }
 .payroll-slip-signatures span { padding-top:2.3mm; border-top:1px solid #5b7773; color:#456461; }
 .payroll-slip small { display:block; margin-top:1mm; color:#5b6665; font-size:5.8pt; }
}

.accountant-report { margin-top:28px; min-width:0; }
.accountant-table-scroll { max-width:100%; max-height:min(72vh,720px); overflow:auto; margin:16px 0; border:1px solid var(--line); border-radius:10px; }
.accountant-table-scroll th { position:sticky; top:0; z-index:2; background:var(--surface2); box-shadow:0 1px 0 var(--line); }
.accountant-table-scroll:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }

/* Employee directory: scan first, then open one controlled effective-date edit. */
.employee-directory { margin:20px 0; }
.employee-directory > .attendance-field { max-width:420px; margin:12px 0; }
.employee-directory-scroll { border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.employee-directory-table { min-width:1040px; }
.employee-directory-table th,.employee-directory-table td { vertical-align:middle; }
.employee-directory-table .secondary-button { margin:0; white-space:nowrap; }
.employee-directory-editor td { padding:0 14px 14px; background:var(--surface2); }
.employee-quick-edit { padding:14px; border-left:3px solid var(--brand); }
.employee-quick-edit > p { margin:0; color:var(--muted); }
.employee-quick-edit .attendance-controls { margin:12px 0; }
@media(max-width:840px) {
 .employee-directory-scroll { overflow:visible; border:0; background:transparent; }
 .employee-directory-table { min-width:0; }
 .employee-directory-table tr:not(.employee-directory-editor) td::before { content:attr(data-label); color:var(--muted); font-weight:600; }
 .employee-directory-table .employee-directory-editor { padding:0; border:0; }
 .employee-directory-table .employee-directory-editor td { display:block; padding:0; }
 .employee-directory-table .employee-directory-editor td::before { content:none; }
}
.accountant-table { width:100%; min-width:680px; border-collapse:collapse; }
.accountant-table caption { text-align:left; font-size:1.1rem; font-weight:700; padding:10px 0; }
.accountant-table th,.accountant-table td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; }
.accountant-table th:first-child,.accountant-table td:first-child,.accountant-table th:nth-child(2),.accountant-table td:nth-child(2) { text-align:left; }
.accountant-table tfoot { font-weight:700; background:var(--surface2); }

/* Payroll review keeps spreadsheet columns on small screens; scroll inside the table. */
.payroll-review-table,.accountant-table { display:table; }
.payroll-review-table { min-width:1100px; }
.payroll-review-table thead,.accountant-table thead { display:table-header-group; position:static; width:auto; height:auto; overflow:visible; clip-path:none; }
.payroll-review-table tbody,.accountant-table tbody { display:table-row-group; }
.payroll-review-table tr,.accountant-table tr { display:table-row; padding:0; border:0; border-radius:0; }
.payroll-review-table th,.payroll-review-table td,.accountant-table th,.accountant-table td { display:table-cell; width:auto; max-width:none; }

/* Keep the primary monthly decisions visible before detailed payroll tables. */
.payroll-action-guide { margin:18px 0 24px; padding:18px; border:1px solid var(--line); border-left:4px solid var(--brand); border-radius:14px; background:var(--surface2); }
.payroll-action-guide h3 { margin-top:0; }
.payroll-action-guide button { margin:8px 10px 4px 0; }
.payroll-action-guide p:last-child { margin-bottom:0; color:var(--muted); }
