.ma-panel{background:#fff;border:1px solid #dce3ec;border-radius:14px;padding:24px;margin:0 0 20px;color:#263447;font-family:system-ui,sans-serif}.ma-panel h2{font-size:23px;font-weight:700;margin:0 0 8px}.ma-panel h3{font-size:18px;font-weight:700;margin:0}.ma-muted{color:#63758c;font-size:14px;margin:8px 0 16px}.ma-heading,.ma-summary,.ma-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ma-heading{justify-content:space-between;margin-bottom:18px}.ma-panel button{padding:9px 14px;background:#edf2f8;border:1px solid #d8e1ed;border-radius:8px;color:#28405d;font-size:14px;cursor:pointer}.ma-panel button:disabled{opacity:.45;cursor:not-allowed}.ma-panel button:focus-visible,.ma-panel input:focus-visible,.ma-panel select:focus-visible{outline:3px solid #96baff;outline-offset:2px}.ma-panel .ma-primary{background:#2357bf;border-color:#2357bf;color:white;font-weight:600}.ma-panel input:not([type=checkbox]),.ma-panel select,.ma-panel textarea{border:1px solid #cbd6e4;border-radius:7px;padding:7px;background:white;color:#263447}.ma-summary{background:#f1f6fd;padding:18px;border-radius:10px;margin-bottom:18px}.ma-summary strong{font-size:24px}.ma-summary button{margin-left:auto}.ma-table-wrap{overflow-x:auto;margin-top:16px}.ma-table{width:100%;border-collapse:collapse;font-size:14px}.ma-table th,.ma-table td{padding:12px;text-align:left;border-bottom:1px solid #e4eaf1;white-space:nowrap}.ma-table thead{background:#f5f7fa;color:#52667f}.ma-table input{width:110px}.ma-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:7px;font-size:13px;font-weight:650;background:#edf0f4;color:#65758b}.ma-status-complete{background:#dff3e8;color:#19713c}.ma-status-returned,.ma-status-stale{background:#fff0d7;color:#885817}.ma-error{color:#a33226;background:#fff0ed;border-radius:7px;padding:12px;margin:12px 0;white-space:normal}.ma-success{color:#187043;background:#e9f7ef;padding:10px;border-radius:7px}.ma-reason{display:block;white-space:normal;max-width:320px;color:#8d5a21;margin-top:6px}.ma-detail{border-top:2px solid #dfe7f1;margin-top:24px;padding-top:20px}.ma-return{display:flex;align-items:flex-end;gap:12px;margin-top:20px}.ma-return label{flex:1}.ma-return textarea{display:block;width:100%;height:80px;margin-top:8px}.ma-notice{display:flex;justify-content:space-between;gap:18px;border-bottom:1px solid #e1e8f0;padding:18px 12px}.ma-notice p{margin:8px 0}.ma-unread{background:#f1f6ff;border-left:3px solid #2d65ce}.ma-notice small{color:#75869a}.ma-employment{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid #edf1f5}.ma-panel details{margin-top:24px}.ma-panel summary{cursor:pointer;font-weight:600}.ma-banner{padding:12px 18px;background:#e9f1ff;border:1px solid #c8d9f3;border-radius:9px;margin-bottom:16px;color:#254c87;cursor:pointer;width:100%;text-align:left}@media(max-width:700px){.ma-panel{padding:16px}.ma-summary button{margin-left:0;width:100%}.ma-heading{align-items:flex-start}.ma-return,.ma-notice{flex-direction:column}.ma-table td,.ma-table th{padding:10px}}
.ma-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin:14px 0}.ma-people label{display:flex;align-items:center;gap:8px;padding:11px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer}

/* Preserve readable controls when the viewport narrows or text is enlarged. */
.ma-completion-row{display:flex;align-items:center;gap:12px 24px;flex-wrap:wrap}
.ma-completion-copy{flex:1 1 24rem;min-width:0;margin:0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.ma-completion-copy .ma-badge{vertical-align:middle;white-space:nowrap}
.ma-completion-actions{margin-left:auto;justify-content:flex-end;gap:10px}
.ma-completion-actions button{flex:0 0 auto;white-space:nowrap}
.attendance-page{width:100%;max-width:80rem;min-width:0}
.attendance-table-scroll{max-width:100%;overflow:auto}
.attendance-table-scroll:focus-visible{outline:3px solid #96baff;outline-offset:-3px}
.attendance-time-table{min-width:76rem}
.attendance-time-column{width:16rem;min-width:16rem;white-space:nowrap}
.attendance-time-value{display:block;box-sizing:border-box;width:15rem;min-width:15rem;max-width:none;font-size:1rem;line-height:1.5}
input.attendance-time-value{min-height:2.5rem;font-variant-numeric:tabular-nums}
span.attendance-time-value{white-space:normal;overflow-wrap:anywhere}
.ma-table input[type=time]{width:14rem;min-width:14rem;font-size:1rem;min-height:2.5rem}
@media(max-width:480px){.ma-completion-actions{width:100%;gap:8px}.ma-completion-actions button{padding:9px 10px}}

.attendance-save-bar>.ma-panel{margin:0;border:0;border-top:1px solid #e4eaf1;border-radius:0;background:#f9fafb;padding:16px}
.ma-panel .ma-save-attendance{background:#1e293b;border-color:#1e293b;color:#fff;font-weight:600}
.ma-panel .ma-save-attendance:hover{background:#334155}

.attendance-remarks-column{min-width:22rem}.attendance-leave-remarks,.ma-table .ma-leave-remarks{white-space:pre-line;min-width:22rem;line-height:1.7;overflow-wrap:anywhere}.ma-table .ma-leave-remarks{color:#9f392f}.ma-actual-punch{display:block;white-space:nowrap;color:#52667f;font-size:12px;margin-bottom:4px}
