:root{--green:#153f36;--accent:#c5e5ac;--bg:#f2f5f4;--line:#dfe7e3;--text:#203a32;--muted:#53685e}
body{background:var(--bg);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
aside{box-shadow:4px 0 24px #163e3205}.brand{font-size:28px}.workspace{font-weight:700;letter-spacing:1.6px}
nav{gap:5px}nav button{border-radius:11px;min-height:46px;font-size:13px;transition:background .15s,color .15s}nav button.active{background:#e3efe8;color:#153f36;box-shadow:inset 3px 0 #28785f}nav button:hover{background:#edf4ef}
header{min-height:76px;background:#ffffffed}.head-right{gap:14px}.head-right>.avatar{width:38px;height:38px}.breadcrumb{font-size:13px}.breadcrumb b{font-weight:600}
main{padding:28px 32px 40px;max-width:1600px}.demo{margin-bottom:24px;padding:10px 14px;background:#e8f1eb;border:1px solid #dbe8df;border-radius:10px;flex-wrap:wrap}.demo span:last-child{margin-left:0;color:#365846}.demo .text-button{margin-left:12px}
h1{font-size:30px;line-height:1.3;letter-spacing:-.8px}h2{font-size:17px;line-height:1.45}h3{font-size:15px}.title-row{margin-bottom:24px}.title-row p{font-size:14px;margin-top:5px}
.panel,.stat,.login-card{border:1px solid var(--line);border-radius:16px;box-shadow:0 3px 12px #183b2c04}.panel-heading{padding:20px 22px;background:#ffffff}.panel-body{padding:22px}.panel-heading small{display:block;font-size:12px;margin-top:4px;color:var(--muted)}
.stats{gap:16px}.stat{padding:22px;position:relative}.stat-label{font-size:13px;font-weight:600}.stat-value{font-size:32px;color:#173f32;line-height:1.25}.stat-note{font-size:12px}.stat-symbol{background:#eaf3ed;color:#2c7659;border-radius:9px}
.button{border-radius:10px;min-height:42px;padding:11px 16px;font-size:13px;box-shadow:0 2px 4px #163e3208;transition:background .15s,box-shadow .15s}.button:hover{box-shadow:0 3px 9px #163e3215}.button.small{font-size:12px;min-height:36px}.button.light{color:#365b48;border-color:#d8e3dc}.text-button{font-size:13px;font-weight:600}.button:disabled{box-shadow:none}
.badge{font-size:11px;font-weight:600;border-radius:7px;padding:6px 10px}.badge.done{background:#e5f3e9;color:#236d43}.badge.review{background:#fff3d7;color:#8a600b}.badge.late{background:#ffebeb;color:#ae3434}
th{font-size:11px;letter-spacing:.5px;padding:15px 20px;background:#f7faf8;color:#4d6356}td{padding:17px 20px;font-size:13px}tbody tr:hover{background:#fbfdfb}.task-title{font-size:13px;line-height:1.5}.employee small,.task-sub{font-size:11px;color:#617267}.employee b{font-size:13px}.employee-card{padding:24px}.summary-line{font-size:13px}
label{font-size:13px;font-weight:500}label input,label select,label textarea,.search,.month-input{border-color:#d5e1d9;border-radius:10px;min-height:44px;padding:11px 13px;background:#fff;font-size:14px}label input:focus,label select:focus,label textarea:focus{outline:2px solid #7ebca1;outline-offset:1px}.search{min-width:0}.tabs{border-radius:10px}.tabs button{font-size:13px}.info{border-radius:12px;line-height:1.7}.hint{font-size:12px}
dialog{border:1px solid #d9e3dc;border-radius:18px;box-shadow:0 20px 70px #102d3230;width:min(640px,calc(100vw - 32px));max-height:90dvh}dialog::backdrop{background:#18352e66;backdrop-filter:blur(3px)}.dialog-head{position:sticky;top:0;background:white;z-index:2;padding-bottom:12px}.dialog-head h2{font-size:19px}.form-footer{border-top:1px solid var(--line);padding-top:18px}.report{padding:20px 22px}.report p{margin-top:8px;color:#334f40}
#chat-messages{background:#f8fbf9}#chat-messages .report{background:#fff;border:1px solid #e2eae4;border-radius:12px;margin:14px}.chat-receipt{font-size:12px;color:#577060}#chat-form{border-top:1px solid var(--line)}.welcome-panel{border-radius:16px;background:linear-gradient(135deg,#153f36,#23634f)}footer{color:#617267;padding-top:18px}
@media(min-width:721px) and (max-width:1100px){aside{width:215px;padding-left:16px;padding-right:16px}.shell{margin-left:215px}main{padding:24px}.dashboard-grid{grid-template-columns:1fr}.employee-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.date{display:none}}
@media(max-width:720px){
 aside{width:100%;padding:10px 16px;border-bottom:1px solid #dce6df;box-shadow:0 3px 14px #183b2c08}.brand{font-size:25px}.mark{width:34px;height:34px;font-size:24px}.mobile-menu-toggle{border:1px solid #d6e4d8;background:#edf5ee}.shell{margin-left:0}
 header{min-height:62px;padding:10px 14px;flex-wrap:wrap;gap:8px}.breadcrumb{flex:1;min-width:90px;font-size:12px}.head-right{gap:9px}.date{display:none}.head-right .button{min-height:40px;padding:8px 11px;font-size:12px}.head-right .avatar{width:34px;height:34px}
 main{padding:18px 14px 30px}.demo{padding:9px 11px;margin-bottom:20px;font-size:11px}.title-row{gap:14px;margin-bottom:20px}h1{font-size:25px}.title-row p{font-size:14px}.panel,.stat{border-radius:14px}.panel-heading,.panel-body,.report{padding:16px}.panel-heading{gap:10px}.panel-heading small{font-size:12px}
 .stats{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:15px}.stat-value{font-size:26px}.stat-label{font-size:12px}.stat-note{font-size:11px}.stat-value small{font-size:11px}.stat-symbol{padding:4px 6px}
 .button,.button.small{min-height:44px;font-size:14px;padding:10px 14px}.actions{gap:8px}.employee-grid,.lower-grid,.dashboard-grid{grid-template-columns:minmax(0,1fr)}.team-item{padding:16px;gap:12px}.team-item>.button{flex:0 1 auto}.employee b{font-size:14px}.employee small,.task-sub{font-size:12px}
 label{font-size:14px}label input,label select,label textarea,.search,.month-input{font-size:16px;min-height:46px}.form-grid{grid-template-columns:minmax(0,1fr)}dialog{width:calc(100vw - 20px);margin:auto;padding:18px;max-height:92dvh}.dialog-head h2{font-size:18px}.form-footer{position:sticky;bottom:-18px;background:#fff;padding-bottom:12px;z-index:2}.form-footer .button{min-width:100px}th{font-size:11px}td{font-size:14px}.table-wrap{border-radius:0 0 14px 14px}
 #chat-messages .report{margin:10px;padding:14px}.chat-receipt{gap:8px!important}.report-top b{font-size:14px}.report-top small{font-size:11px}.report p{font-size:15px}#chat-text{min-height:95px}footer{padding:18px 14px;line-height:1.6}
}
@media(max-width:360px){.stats{grid-template-columns:1fr}.stat-value{font-size:28px}.head-right .button{font-size:11px;padding:8px}.breadcrumb{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Names must never collapse into individual letters inside table columns. */
td .employee{min-width:180px}td .employee>div{min-width:130px;flex:1}td .employee b,td .employee small{overflow-wrap:normal;word-break:normal;white-space:normal}
@media(max-width:720px){
 .table-wrap table.task-data{display:block;width:100%;min-width:0;border-collapse:separate}
 .task-data thead{display:none}.task-data tbody{display:block;padding:10px;background:#f2f6f3}
 .task-data tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;background:#fff;border:1px solid #dfe8e1;border-radius:12px;padding:16px;margin-bottom:12px}
 .task-data tr:last-child{margin-bottom:0}.task-data td{display:block;padding:0;border:0!important;min-width:0;font-size:14px}
 .task-data td:nth-child(1),.task-data td:nth-child(2),.task-data td:nth-child(6){grid-column:1/-1}
 .task-data td:nth-child(1){padding-bottom:10px;border-bottom:1px solid #e6ede8!important}.task-data .task-title{font-size:16px;text-align:left;min-height:0;line-height:1.5;overflow-wrap:break-word}
 .task-data td:nth-child(2){padding-bottom:6px}.task-data .employee{min-width:0;gap:10px;align-items:center}.task-data .employee>div{min-width:0;flex:1}.task-data .employee b{font-size:15px;white-space:normal;word-break:normal;overflow-wrap:normal}.task-data .employee small{font-size:12px;white-space:normal;word-break:normal;overflow-wrap:normal;line-height:1.5}
 .task-data .employee .avatar{width:36px;height:36px;flex-shrink:0}.task-data td:nth-child(3)::before{content:'Status';display:block;font-size:11px;color:#53685e;margin-bottom:5px}.task-data td:nth-child(4)::before{content:'Sarflangan vaqt';display:block;font-size:11px;color:#53685e;margin-bottom:5px}.task-data td:nth-child(5)::before{content:'Muddat';display:block;font-size:11px;color:#53685e;margin-bottom:5px}
 .task-data td:nth-child(6){display:flex;flex-wrap:wrap;gap:8px;padding-top:8px}.task-data td:nth-child(6) .button{flex:1;min-width:100px}.task-data td.empty{grid-column:1/-1;padding:20px}
}

.task-status-filter{display:flex;align-items:center;gap:10px;white-space:nowrap;margin:0}.task-status-filter select{width:auto;min-width:165px;margin:0}.toolbar .search{min-width:180px;flex:1}@media(max-width:720px){.task-status-filter{width:100%}.task-status-filter select{flex:1;min-width:0}.toolbar .search{flex-basis:100%}}
