:root{color:#18231d;font-synthesis:none;--green:#176b3a;--green-2:#eaf4ed;--line:#dbe3de;--muted:#66736b;--weekend:#fff4f3;--saturday:#f2f6f8;background:#f7faf8;font-family:Inter,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{background:#f7faf8;min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;padding:18px}.topbar,.workspace,footer{max-width:1560px;margin:auto}.topbar{border:1px solid var(--line);background:#fff;border-radius:10px 10px 0 0;align-items:center;gap:28px;height:74px;padding:0 20px;display:flex}.brand{color:var(--green);letter-spacing:-1px;font-family:Georgia,serif;font-size:34px;font-weight:700}.department{align-items:center;gap:10px;margin-right:auto;display:flex}.department span,.profile>span{color:var(--muted);font-size:13px}.department select{background:0 0;border:0;outline:none;min-width:190px;font-weight:650}.month-switch{align-items:center;gap:14px;display:flex}.month-switch button,.icon{border:1px solid var(--line);background:#fff;border-radius:7px;place-items:center;width:38px;height:38px;display:grid}.month-switch strong{text-align:center;min-width:150px}.profile{align-items:center;gap:10px;font-size:14px;display:flex}.profile b{color:var(--green);background:var(--green-2);border:1px solid #b8d7c1;border-radius:6px;padding:8px 11px}.divider{border-left:1px solid var(--line);height:28px}.workspace{border:1px solid var(--line);background:#fff;border-top:0;min-height:650px}.tabs{border-bottom:1px solid var(--line);height:66px;padding:0 14px;display:flex}.tabs button{color:#4c5951;background:0 0;border:0;border-bottom:3px solid #0000;align-items:center;gap:9px;padding:0 20px;display:flex}.tabs button.active{color:var(--green);border-bottom-color:var(--green);font-weight:700}.toolbar{border-bottom:1px solid var(--line);align-items:center;gap:10px;min-height:76px;padding:14px;display:flex}.toolbar button,.file-button,.primary{border:1px solid var(--line);color:#24342a;background:#fff;border-radius:7px;align-items:center;gap:8px;height:42px;padding:0 14px;display:inline-flex}.toolbar button:hover,.file-button:hover{color:var(--green);border-color:#8ab49a}.toolbar-spacer{flex:1}.search{border:1px solid var(--line);color:#758078;border-radius:7px;align-items:center;gap:9px;width:245px;height:42px;padding:0 12px;display:flex}.search input{border:0;outline:0;width:100%}.table-scroll{scrollbar-color:#9ea7a1 transparent;overflow-x:auto}.timesheet{border-collapse:collapse;width:100%;min-width:1510px;font-size:12px}.timesheet th,.timesheet td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center}.timesheet thead th{background:#fbfcfb;min-width:38px;height:72px}.timesheet th small{color:var(--muted);margin-top:9px;font-weight:500;display:block}.timesheet .employee-col{z-index:3;text-align:left;min-width:245px;padding-left:16px;position:sticky;left:0}.employee-cell{z-index:2;background:#fff;min-width:245px;padding:12px 16px;position:sticky;left:0;text-align:left!important}.employee-cell strong,.employee-cell span,.employee-cell small{display:block}.employee-cell strong{margin-bottom:6px;font-size:13px}.employee-cell span{color:var(--muted);margin-bottom:10px}.employee-cell small{color:var(--green);font-weight:650}.weekend:nth-of-type(n){background:var(--weekend)!important}.day-input{text-align:center;background:#fff;border:1px solid #0000;border-radius:5px;outline:none;width:32px;height:42px}.day-input:hover{border-color:#c7d3cb}.day-input:focus{border-color:var(--green);box-shadow:0 0 0 2px #d8ecdf}.day-input.B{background:#fff7dd}.day-input.О{background:#edf2ff}.day-input.Н,.day-input.invalid{color:#b3221d;background:#ffe8e6}.day-input.В{background:#edf1f3}.result{min-width:92px;font-weight:700}.result.money{color:#153d26;min-width:118px}.kpi-input{border:0;border-bottom:1px solid var(--line);text-align:center;width:70px;padding:7px}.timesheet tfoot{background:#f2f7f3;height:62px;font-weight:800}.timesheet tfoot td:first-child{text-align:left;background:#f2f7f3;padding-left:20px;position:sticky;left:0}.metrics{border-top:12px solid #f7faf8;grid-template-columns:repeat(6,1fr);padding:16px 8px;display:grid}.metric{border-right:1px solid var(--line);flex-direction:column;justify-content:center;align-items:center;min-height:70px;display:flex}.metric:last-child{border:0}.metric span{color:var(--muted);margin-bottom:10px;font-size:12px}.metric strong{font-size:18px}.metric.good strong,.positive{color:var(--green)}.metric.warn strong,.negative{color:#b04135}footer{height:68px;color:var(--muted);justify-content:space-between;align-items:center;padding:0 16px;font-size:12px;display:flex}footer>span:last-child{align-items:center;gap:14px;display:flex}.primary{background:var(--green)!important;color:#fff!important;border-color:var(--green)!important}.panel{padding:28px}.section-head{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.section-head h1{margin:0 0 7px;font-size:25px}.section-head p{color:var(--muted);margin:0}.section-head>div:last-child{gap:10px;display:flex}.file-button{cursor:pointer}.file-button input{display:none}.simple-table-wrap{overflow:auto}.simple-table{border-collapse:collapse;background:#fff;width:100%}.simple-table th{text-align:left;color:#617067;background:#f5f8f6;font-size:12px}.simple-table th,.simple-table td{border-bottom:1px solid var(--line);padding:12px}.simple-table input,.simple-table select{border:1px solid var(--line);background:#fff;border-radius:6px;width:100%;height:38px;padding:0 9px}.simple-table td:first-child{min-width:210px}.simple-table td:nth-child(2){min-width:180px}.simple-table .danger{color:#b12c25}.empty{text-align:center;color:var(--muted);padding:60px!important}.toast{color:#fff;background:#173e27;border-radius:8px;padding:13px 18px;animation:.2s toast-in;position:fixed;bottom:28px;right:28px;box-shadow:0 10px 30px #173e2733}@keyframes toast-in{0%{opacity:0;transform:translateY(10px)}}@media (width<=1050px){.app-shell{padding:0}.topbar{border-radius:0;gap:14px}.department span,.profile>span,.profile .divider,.profile strong{display:none}.metrics{grid-template-columns:repeat(3,1fr);gap:12px}.metric:nth-child(3){border:0}}@media (width<=720px){.topbar{flex-wrap:wrap;height:auto;min-height:120px;padding:14px}.brand{font-size:28px}.department{order:3;width:100%}.department select{flex:1}.profile{margin-left:auto}.month-switch strong{min-width:110px}.workspace{border-left:0;border-right:0}.tabs{overflow:auto}.tabs button{white-space:nowrap;padding:0 14px}.toolbar{flex-wrap:wrap}.search{width:100%}.toolbar-spacer{display:none}.metrics{grid-template-columns:repeat(2,1fr)}.metric:nth-child(2n){border:0}.panel{padding:18px}.section-head{flex-direction:column;align-items:flex-start;gap:18px}.section-head>div:last-child{flex-wrap:wrap}footer{flex-direction:column;align-items:flex-start;gap:10px;height:auto;padding:18px}}.department select:disabled{color:#18231d;cursor:not-allowed;opacity:1}.profile select{border:1px solid var(--line);background:#fff;border-radius:6px;outline:none;max-width:190px;padding:7px 8px}.profile b{white-space:nowrap}.profile b.role-manager{color:#815111;background:#fff6df;border-color:#ead4a2}.profile b.role-admin{color:#5b3891;background:#f4effd;border-color:#d8c9ef}.simple-table input[readonly]{color:#354239;cursor:default;background:0 0;border-color:#0000}.access-note{color:#76511c;background:#fff9ea;border:1px solid #ead4a2;border-radius:7px;align-items:center;margin:-8px 0 18px;padding:11px 14px;font-size:13px;display:flex}.employee-cell em{color:#607269;margin:-5px 0 7px;font-size:11px;font-style:normal;display:block}.hierarchy-legend,.hierarchy-row{grid-template-columns:minmax(240px,1.35fr) minmax(180px,1fr) minmax(210px,1fr) 150px 86px;align-items:center;min-width:980px;display:grid}.hierarchy-legend{color:#617067;border-bottom:1px solid var(--line);background:#f5f8f6;padding:11px 0;font-size:12px;font-weight:700}.hierarchy-legend span{padding:0 12px}.hierarchy-list{border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px;overflow-x:auto}.hierarchy-row{border-bottom:1px solid var(--line);min-height:72px}.hierarchy-row:last-child{border-bottom:0}.hierarchy-row>div{padding:10px 12px}.hierarchy-row input,.hierarchy-row select,.user-access-card input,.user-access-card select{border:1px solid var(--line);background:#fff;border-radius:6px;width:100%;height:38px;padding:0 9px}.hierarchy-name{align-items:center;gap:8px;display:flex}.tree-mark{color:var(--green);text-align:center;flex:0 0 18px}.muted{color:var(--muted)}.employee-count{flex-direction:column;gap:4px;display:flex}.employee-count strong{color:var(--green);font-size:18px}.employee-count small{color:var(--muted);line-height:1.3}.manager-picker{gap:7px;display:grid}.manager-tags{flex-wrap:wrap;gap:5px;display:flex}.manager-tags>span{color:#275c3a;background:var(--green-2);border-radius:5px;align-items:center;gap:5px;padding:5px 7px;font-size:12px;display:inline-flex}.manager-tags button{color:#617067;background:0 0;border:0;padding:0;font-size:16px;line-height:1}.manager-tags small{color:var(--muted)}.row-actions,.user-main{align-items:center;gap:8px;display:flex}.user-access-list{gap:14px;display:grid}.user-access-card{border:1px solid var(--line);background:#fbfcfb;border-radius:9px;padding:18px}.user-main{grid-template-columns:minmax(240px,1.5fr) minmax(190px,.75fr) 40px;align-items:end;display:grid}.user-main label>span,.user-scope>strong{color:var(--muted);margin-bottom:7px;font-size:12px;display:block}.user-scope{border-top:1px solid var(--line);margin-top:16px;padding-top:14px}.scope-checks{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px 12px;display:grid}.scope-checks label{background:#fff;border-radius:6px;align-items:center;gap:8px;min-height:34px;padding:5px 8px;display:flex}.scope-checks input{width:16px;height:16px}.all-access{color:#275c3a;background:var(--green-2);border-radius:6px;padding:10px 12px}.employees-table td:nth-child(3){min-width:190px}.employees-table td:nth-child(4){min-width:130px}.pagination{min-height:58px;color:var(--muted);border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:9px 16px;font-size:13px;display:flex}.pagination>div{align-items:center;gap:10px;display:flex}.pagination button{color:#24342a;border:1px solid var(--line);background:#fff;border-radius:6px;align-items:center;gap:5px;height:36px;padding:0 11px;display:inline-flex}.pagination button:disabled{cursor:not-allowed;opacity:.45}.pagination strong{color:#354239;text-align:center;min-width:52px}.timesheet{table-layout:fixed;width:max-content;min-width:0;font-size:10px}.timesheet col.employee-column-size{width:215px}.timesheet col.day-column-size{width:28px}.timesheet col.result-column-size{width:82px}.timesheet .employee-col,.timesheet .employee-cell{width:215px;min-width:215px;max-width:215px}.timesheet thead th{min-width:0;height:30px;line-height:1}.timesheet th small{display:none}.timesheet tbody tr{height:54px}.employee-cell{padding:5px 7px}.employee-cell strong,.employee-cell span,.employee-cell em,.employee-cell small{text-overflow:ellipsis;white-space:nowrap;margin:0 0 2px;line-height:1.1;overflow:hidden}.employee-cell strong{font-size:11px}.employee-cell span,.employee-cell em,.employee-cell small{font-size:9px}.timesheet .employee-cell small{display:none}.timesheet .day-input{border-radius:3px;width:26px;height:24px;padding:0 1px!important}.result{min-width:0}.timesheet tfoot{height:36px}@media (width<=1050px){.profile select{max-width:150px}}@media (width<=720px){.profile select{max-width:130px}.profile b{display:none}.user-main{grid-template-columns:1fr 40px}.user-main label:first-child{grid-column:1/-1}.pagination{flex-direction:column;align-items:flex-start}}
