:root{font-family:Tahoma,Arial,sans-serif;color:#163c36;background:#f3f6f5;line-height:1.7}*{box-sizing:border-box}body{margin:0}header{background:white;border-bottom:3px solid #27806c;display:flex;align-items:center;gap:24px;padding:22px 5%}header img{width:110px}h1{font-size:26px;margin:0}h2{font-size:22px}p{margin:0;color:#657b76}#account{margin-right:auto}main{max-width:1300px;margin:25px auto;padding:0 24px}section#login{max-width:460px;margin:70px auto;background:white;padding:30px;border-radius:16px}nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:25px}button{background:#187b66;color:white;border:0;border-radius:8px;padding:10px 18px;font:inherit;cursor:pointer}nav button{background:white;color:#28574e;border:1px solid #d9e4e0}nav button.active{background:#187b66;color:white}input,select{font:inherit;width:100%;padding:9px;border:1px solid #b7ccc6;border-radius:7px;background:white}label{display:block;font-size:14px;margin-bottom:13px}form{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));background:white;padding:20px;border-radius:12px;margin:16px 0}#login form{display:block;padding:0}form button{align-self:end;margin-bottom:13px}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.card{background:white;border:1px solid #dce7e2;padding:22px;border-radius:12px}.card strong{display:block;font-size:32px;color:#137761}.tablewrap{overflow:auto;background:white;border-radius:12px;margin:20px 0}table{border-collapse:collapse;width:100%;font-size:14px;white-space:nowrap}th,td{text-align:right;padding:13px;border-bottom:1px solid #e2ebe7}th{background:#eaf2ef}tr.low{background:#fff2dc}.tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.tools input,.tools select{max-width:240px}.hint{background:#e8f3ee;padding:18px;border-radius:10px}.error{background:#ffe3df;color:#9b2920;padding:12px}.success{background:#dcf4e8;padding:12px}footer{text-align:center;padding:25px;color:#657b76;font-size:13px}button:focus-visible,a:focus-visible{outline:3px solid #d89d32;outline-offset:3px}[hidden]{display:none!important}@media(max-width:700px){header{gap:12px;padding:16px}header img{width:70px}h1{font-size:20px}.cards{grid-template-columns:repeat(2,1fr)}main{padding:0 12px}#account{font-size:12px}}@media print{@page{size:A4 landscape;margin:12mm}body{background:white;color:black}header{padding:0 0 12px}nav,form,.tools,button,#message,footer{display:none!important}main{margin:10px 0;padding:0;max-width:none}.tablewrap{overflow:visible}table{white-space:normal;font-size:11px}th,td{padding:7px}thead{display:table-header-group}tr{break-inside:avoid}.cards{margin:12px 0}.card{padding:10px}.card strong{font-size:20px}}

.record-search{max-width:420px;margin:12px 0}dialog{border:1px solid #cdded9;border-radius:18px;max-width:560px;width:90%;color:#183d43}dialog::backdrop{background:#102e3680}dialog form{display:grid;gap:14px}.dialog-error{color:#9b2525}tbody tr[hidden]{display:none!important}@media print{.record-search{display:none}}

.employee-dialog{max-width:900px;max-height:90vh}.employee-dialog th{min-width:140px}.employee-dialog td{white-space:normal}

.headcount-tools{margin:16px 0}.headcount-tools label{min-width:240px;margin:0}.headcount-caption{margin-bottom:16px}.headcount-grid{display:grid;grid-template-columns:1fr;gap:20px;margin:22px 0}.headcount-panel{background:white;border:1px solid #dce7e2;border-radius:16px;padding:20px}.headcount-panel h2{margin-top:0}.headcount-panel table{white-space:normal}.headcount-panel td:first-child{width:55%;min-width:180px}.headcount-panel progress{width:100%;min-width:90px;accent-color:#187b66}.headcount-panel td:nth-child(2),.headcount-panel td:nth-child(3){white-space:nowrap}.headcount-panel .tablewrap{margin:10px 0}@media print{.headcount-panel{padding:8px;break-inside:auto}.headcount-tools{display:none}.headcount-panel progress{display:none}.headcount-panel th:last-child,.headcount-panel td:last-child{display:none}}
.org-actions{display:flex;gap:6px;flex-wrap:wrap}.danger{background:#fff1f1;color:#a71919;border:1px solid #e4b7b7}dialog{max-width:95vw;width:min(1000px,95vw);max-height:90vh}dialog::backdrop{background:#0006}.dialog-error{color:#a71919}pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:600px}.transfer-select{width:20px;height:20px}.tools label{display:flex;align-items:center;gap:8px}.tools input[type=checkbox]{width:20px} @media print{.org-actions,.transfer-select{display:none}}
