/* REV622: additive workflow workspace; no styling changes to legacy attendance matrix. */
#th-app-sidebar .th-side-nav .th622-nav{display:flex;align-items:center;gap:11px;border:1px solid #e8cbd0;background:#fff6f7;color:#842738;border-radius:10px;padding:10px 12px;margin:10px 4px;font:750 12px/1.3 system-ui,sans-serif;cursor:pointer;width:calc(100% - 8px);text-align:left}
#th-app-sidebar .th-side-nav .th622-nav:hover,#th-app-sidebar .th-side-nav .th622-nav:focus-visible{outline:2px solid #bc7d8a;outline-offset:2px;background:#faebee}
#th-app-sidebar .th-side-nav .th622-nav span:first-child{font-size:18px}
#th622-workspace{position:fixed;inset:0;z-index:2147483201;color:#23364e;font:13px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif}
#th622-workspace *{box-sizing:border-box}
#th622-workspace .th622-mask{position:absolute;inset:0;background:#0a1828a8;backdrop-filter:blur(3px)}
#th622-workspace .th622-window{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(1180px,97vw);max-height:94dvh;display:flex;flex-direction:column;overflow:hidden;border-radius:16px;border:1px solid #dce3ee;background:white;box-shadow:0 25px 75px #09162e55}
#th622-workspace .th622-head{display:flex;justify-content:space-between;align-items:start;gap:12px;background:linear-gradient(112deg,#fff8f8,#f6f9fc);padding:18px 23px;border-bottom:1px solid #e5eaf0}
#th622-workspace .th622-head small{color:#8a2836;font-size:10px;font-weight:850;letter-spacing:.1em}
#th622-workspace h2{font-size:23px;margin:3px 0;color:#1c2c42;font-weight:850}
#th622-workspace h3{font-size:19px;margin:6px 0 8px;color:#203851}
#th622-workspace .th622-head p{font-size:12px;margin:0;color:#65738a}
#th622-workspace .th622-cross{border:0;border-radius:9px;width:40px;height:39px;font-size:25px;background:#f4e4e6;color:#8b2633;cursor:pointer}
#th622-workspace .th622-tabs{display:flex;gap:5px;padding:10px 15px;border-bottom:1px solid #e2e9f2;overflow:auto;flex-shrink:0}
#th622-workspace .th622-tabs button{white-space:nowrap;background:#f3f6fa;color:#455b73;border:1px solid transparent;padding:9px 13px;border-radius:9px;cursor:pointer;font-size:12px;font-weight:750}
#th622-workspace .th622-tabs button.active{background:#862d3c;color:white;border-color:#862d3c}
#th622-workspace .th622-notice{margin:11px 16px 0;background:#fff6e7;border:1px solid #ecd7af;padding:11px 13px;border-radius:9px;color:#775222;font-size:11px}
#th622-workspace .th622-body{padding:15px 19px 20px;overflow-y:auto;min-height:0}
#th622-workspace .th622-subtitle{font-size:12px;color:#68778d;max-width:930px;margin:0 0 15px}
#th622-workspace .th622-filter{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:13px;align-items:end}
#th622-workspace .th622-filter label{flex:1;min-width:150px}
#th622-workspace label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:650;color:#3c5269}
#th622-workspace input,#th622-workspace select,#th622-workspace textarea{color:#1b324a;width:100%;min-height:38px;padding:7px 9px;border:1px solid #d1dbe7;background:#fff;border-radius:8px;font:550 12px system-ui,sans-serif}
#th622-workspace input:focus,#th622-workspace select:focus,#th622-workspace textarea:focus{outline:2px solid #97bddb;outline-offset:0}
#th622-workspace .th622-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:12px 0}
#th622-workspace .th622-actions b{font-size:12px;font-weight:650;color:#42617b}
#th622-workspace button{cursor:pointer}
#th622-workspace .th622-actions button,#th622-workspace .th622-sign button,#th622-workspace .th622-foot button,#th622-workspace .th622-table button{background:#fff;color:#344e67;border:1px solid #cad7e6;padding:9px 12px;border-radius:9px;font:750 12px system-ui,sans-serif}
#th622-workspace .th622-actions button.th622-primary{color:white;background:#862d3c;border-color:#862d3c}
#th622-workspace button:disabled{cursor:not-allowed;opacity:.43}
#th622-workspace .th622-tablewrap{max-height:45dvh;overflow:auto;border:1px solid #dce5ef;border-radius:10px}
#th622-workspace .th622-table{width:100%;min-width:970px;border-collapse:separate;border-spacing:0;background:white}
#th622-workspace .th622-table th{position:sticky;top:0;background:#f0f4f9;padding:10px 5px;color:#344b65;text-align:left;font-weight:800;font-size:11px;z-index:2}
#th622-workspace .th622-table td{padding:6px 5px;border-bottom:1px solid #e7edf4;vertical-align:top}
#th622-workspace .th622-table select{font-size:11px;min-width:75px}
#th622-workspace .th622-table td:nth-child(2) select{min-width:140px}
#th622-workspace .th622-table td:nth-child(9) select{min-width:155px}
#th622-workspace .th622-table td:nth-child(9) input{margin-top:5px}
#th622-workspace .th622-table button{font-size:18px;color:#ad253a;background:#fff3f4;padding:4px 10px}
#th622-workspace .th622-tip{font-size:11px;color:#687d92;margin:10px 0}
#th622-workspace .th622-list{min-height:75px;max-height:230px;overflow:auto;margin:10px 0;padding:5px;border:1px solid #dfe7f0;border-radius:10px;background:#f9fbfd}
#th622-workspace .th622-doc{display:flex;flex-direction:row;gap:13px;align-items:center;padding:9px 11px;border-bottom:1px solid #dfe7f0;cursor:pointer}
#th622-workspace .th622-doc input{width:19px;height:19px;min-height:0;flex:0 0 auto}
#th622-workspace .th622-doc span{display:flex;flex-direction:column}
#th622-workspace .th622-doc small{font-size:11px;color:#6c7d91}
#th622-workspace .th622-sign{display:grid;grid-template-columns:minmax(180px,1fr) minmax(360px,3fr) auto;gap:10px;align-items:end;margin:13px 0}
#th622-workspace canvas{display:block;width:100%;height:130px;border-radius:10px;border:2px dashed #bbcce1;background:#fff;touch-action:none}
#th622-workspace #th622-message{padding:10px 12px;margin:17px 0 0;border-radius:9px;color:#24563f;background:#edf7f1;min-height:37px;font-size:12px}
#th622-workspace #th622-message[data-error=true]{background:#fff0f2;color:#8c1d35}
#th622-workspace .th622-foot{flex-shrink:0;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 17px;background:#f7f9fc;border-top:1px solid #e1e8f1;font-size:11px;color:#677990}
#th622-workspace .th618-report{background:white;border:1px solid #dde6f0;border-radius:11px;padding:16px;margin:15px 0;overflow:auto;font-size:12px}
#th622-workspace .th618-report table{min-width:800px;width:100%;border-collapse:collapse}
#th622-workspace .th618-report th,#th622-workspace .th618-report td{border:1px solid #dce5ef;padding:8px;vertical-align:top}
#th622-workspace .th618-report th{background:#edf2f7}
#th622-workspace .th618-report td small{display:block}
#th622-workspace .th618-report .th618-watermark{color:#9c2636;border:1px solid #e4b2bb;background:#fff5f6;padding:6px;font-weight:900;letter-spacing:.08em;text-align:center}
#th622-workspace .th618-document-header{display:flex;justify-content:space-between;gap:12px;border-bottom:2px solid #324964}
#th622-workspace .th618-document-header h2{font-size:18px}
#th622-workspace .th618-meta{display:flex;flex-direction:column;gap:3px;font-size:11px}
#th622-workspace .th618-summary{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0}
#th622-workspace .th618-warnings{color:#98273a;font-size:11px;font-weight:650}
@media(max-width:800px){#th622-workspace .th622-window{width:100vw;max-height:100dvh;height:100dvh;border-radius:0}#th622-workspace .th622-head{padding:13px}#th622-workspace .th622-head h2{font-size:19px}#th622-workspace .th622-sign{grid-template-columns:1fr}#th622-workspace .th622-filter label{min-width:120px}#th622-workspace .th622-notice{margin:7px 10px}#th622-workspace .th622-body{padding:10px}}
@media print{body>*:not(#th622-workspace){display:none!important}#th622-workspace{position:static;inset:auto}#th622-workspace .th622-mask,#th622-workspace .th622-head,#th622-workspace .th622-tabs,#th622-workspace .th622-notice,#th622-workspace .th622-foot,#th622-workspace .th622-actions,#th622-workspace #th622-message{display:none!important}#th622-workspace .th622-window{position:static;transform:none;width:100%;max-height:none;overflow:visible;box-shadow:none;border:0}#th622-workspace .th622-body{overflow:visible}#th622-workspace .th618-report{border:0;page-break-inside:auto}}

button.th622-context-spl{background:#fff7f8!important;color:#872b3a!important;border:1px solid #d9b5bb!important;border-radius:8px!important;padding:9px 13px!important;cursor:pointer!important;font:750 12px/1.2 system-ui,sans-serif!important;min-height:36px!important}
button.th622-context-spl:hover,button.th622-context-spl:focus-visible{background:#fbe9ec!important;outline:2px solid #b57983!important}
