[hidden]{display:none!important}.backend-login{max-width:430px;margin:10vh auto;padding:32px;background:#fff;border:1px solid #dce4ee;border-radius:18px}.backend-login h1{font-size:25px}.backend-login input{width:100%}.backend-login label{display:block;margin:18px 0 6px}.backend-login .btn{margin-top:20px;width:100%}.backend-badge{color:#315efb;font-size:12px}.sidebar{background:#fff;color:#24364d;border-right:1px solid #e4eaf3}.brand{background:#2d69cd;color:white;min-height:106px}.sidebar .bottom{border-color:#e4eaf3;color:#667991}.navitem{font-size:15px;padding:16px;color:#344965}.navitem.active{background:#eaf0fb;color:#2869d7}.backend-head{display:flex;align-items:center;gap:16px}.backend-head select{max-width:240px}.main h2{font-size:24px;margin:0 0 8px}.muted{font-size:12px}.toolbar{display:flex;gap:10px;align-items:center;margin:20px 0;flex-wrap:wrap}input,select,textarea{border:1px solid #d7dfeb;border-radius:7px;padding:10px 12px;background:white;color:#24364d;max-width:100%}textarea{min-height:74px;width:100%;resize:vertical}table{border-collapse:collapse;width:100%;font-size:13px}th,td{padding:13px 12px;border-bottom:1px solid #edf0f5;text-align:left}th{color:#72819a;background:#f7f9fc;font-weight:500}.table-wrap{overflow:auto}td .linkbtn{margin-right:10px}.card .pad{min-width:0}#overlay{position:fixed;inset:0;background:#17283c55;z-index:100;display:flex;justify-content:flex-end}.drawer{background:white;width:660px;max-width:100%;height:100vh;display:flex;flex-direction:column;box-shadow:-12px 0 40px #13253c22}.drawer.wide{width:calc(100vw - 70px)}.drawer>header{padding:24px 28px;border-bottom:1px solid #e4eaf3;display:flex;justify-content:space-between;align-items:center}.drawer h2{margin:0;font-size:22px}.drawer section{padding:24px 28px;overflow:auto;flex:1}.drawer footer{padding:18px 28px;border-top:1px solid #e4eaf3;display:flex;gap:10px;align-items:center;justify-content:flex-end}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:block;font-size:12px;color:#687991}.field input,.field select{display:block;width:100%;margin-top:7px}.field.full{grid-column:1/-1}.salary-row{display:grid;grid-template-columns:1fr 150px 50px;align-items:center;gap:12px;margin:12px 0}.salary-row input{width:100%}.salary-row small{display:block;color:#8190a6}.row-error,.error{color:#ba3333;background:#fff1f1;border-radius:6px;padding:10px;margin:10px 0;white-space:pre-wrap}.error:empty{display:none}.success{color:#187c63}.detail{background:#f6f8fc;border:1px solid #e3e9f1;padding:14px;border-radius:8px;margin:12px 0}.detail p{margin:6px 0}.preview{border:1px solid #b6c9ed;background:#f3f7ff;padding:16px;margin-top:16px}.rowfields{min-width:150px}.import-table{min-width:1400px}.import-table input,.import-table select{width:155px;font-size:12px}.import-table .short{width:110px}.import-table td{vertical-align:top}.faint{color:#8894a7}.inline-check{display:inline-flex;align-items:center;gap:7px}.history{border-left:3px solid #dbe5f5;padding:10px 16px;margin:16px 0}.history h3{margin:0 0 6px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#24364d;color:#fff;padding:12px 22px;border-radius:9px;z-index:200;max-width:80vw}.source-boundary{font-size:12px;padding:12px 20px;background:#fff6e4;color:#805d23}.item-line{display:flex;gap:14px;align-items:center;border-bottom:1px solid #e9edf4;padding:14px 0}.item-line>div{flex:1}.item-line input{width:auto}.readonly{color:#78899e}.noresult{text-align:center;padding:40px;color:#8190a6}.release{font-size:10px;word-break:break-all;margin-top:10px}.drawer footer .muted{margin-right:auto}.btn:disabled{cursor:wait}@media(max-width:760px){.sidebar{width:164px}.shell{margin-left:164px}.main{padding:18px}.topbar{padding:12px}.controls{display:block}.drawer.wide{width:100vw}.formgrid{grid-template-columns:1fr}.salary-row{grid-template-columns:1fr 100px 44px}}
/* Keep the existing C shell proportions while avoiding inherited prototype logo wrapping. */
.sidebar .brand{display:block;padding:24px 18px;min-height:100px;width:auto}.sidebar .brand strong{display:block;white-space:nowrap;font-size:17px}.sidebar .brand small{display:block;font-size:10px;margin-top:6px;letter-spacing:0}.drawer .btn{white-space:nowrap}.drawer .error{flex-shrink:0}
body.drawer-open{overflow:hidden}.drawer{position:relative;inset:auto;margin:0;top:0;height:100dvh;max-height:100dvh;border-radius:0}.drawer>header,.drawer>footer{flex-shrink:0}.drawer>section{min-height:0}.drawer footer{position:static}.drawer #salary-preview{scroll-margin:12px}
#overlay{padding:0;align-items:stretch}
.task-people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:320px;overflow:auto;padding:12px;border:1px solid #dce4f0;border-radius:8px}.task-person{display:flex;align-items:center;gap:8px;padding:8px}.task-person input{width:18px;height:18px}.toolbar label{display:grid;gap:6px}@media(max-width:700px){.task-people{grid-template-columns:1fr}}
#correction-entries fieldset {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;border:1px solid #dce3f0;border-radius:12px;padding:18px;margin:16px 0}
#correction-entries label {display:flex;flex-direction:column;gap:7px;min-width:0}
#correction-entries label:last-child {flex-direction:row;align-items:center}
#correction-entries input:not([type=checkbox]),#correction-entries select {width:100%;box-sizing:border-box}
#correction-reason,#correction-finance-reason {display:block;width:100%;box-sizing:border-box;margin:10px 0 18px}
#ax-employees {max-height:300px;overflow:auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#ax-employees .item-line {justify-content:flex-start;gap:8px;margin:0}
#ax-preview pre {white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto}
[data-sf-row] input:not([type=checkbox]),[data-sf-row] select {min-width:130px;width:100%;box-sizing:border-box}
@media(max-width:800px){#correction-entries fieldset,#ax-employees {grid-template-columns:1fr}}
/* Multi-date review keeps editable facts in one table; preview is a separate explicit step. */
.ag-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(300px,1.5fr);gap:24px}.ag-calendar{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;max-width:420px}.ag-calendar b{text-align:center}.ag-calendar label{display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid #dce4f0;padding:10px 2px;border-radius:6px;cursor:pointer}.ag-calendar label:has(input:checked){background:#edf3ff;border-color:#3972df}.ag-calendar input{width:16px;height:16px}.ag-table{overflow:auto;max-height:480px;border:1px solid #dce4f0}.ag-table table{min-width:1030px;width:100%}.ag-table thead{position:sticky;top:0;background:#f3f6fc;z-index:1}.ag-table input:not([type=checkbox]){width:100%;min-width:85px;box-sizing:border-box}.ag-table td:last-child input{min-width:220px}.ag-table select{min-width:116px}.ag-table small{display:block;color:#64748b;max-width:180px;overflow-wrap:anywhere}.ag-table tr:has(input[type=checkbox]:not(:checked)){background:#f1f3f5;color:#667}.ag-attestation{display:flex;align-items:center;gap:8px;margin:20px 0}.ag-attestation input{width:18px;height:18px}#ag-preview{scroll-margin:14px}@media(max-width:800px){.ag-layout{grid-template-columns:1fr}}

.ag-table td{display:table-cell;vertical-align:top;white-space:normal}.ag-table td:last-child{width:320px;min-width:320px}.ag-table td:last-child input,.ag-table td:last-child select{display:block;width:100%;min-width:0;box-sizing:border-box}.ag-table td:last-child label{display:block;margin:8px 0}.ag-table td:last-child small{max-width:320px;margin-top:6px}
