.ws-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-12px 0 24px;padding:10px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.ws-nav button{background:transparent;color:#52635a;border-radius:9px;padding:9px 12px;font-weight:600}.ws-nav button:hover,.ws-nav button.active{background:var(--pale);color:var(--green)}.ws-nav-label{padding:0 6px 0 12px;color:var(--muted);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.08em}.ws-page{display:none}.ws-page.active{display:block}.ws-intro{display:flex;align-items:baseline;gap:8px;min-width:0;max-width:100%;margin:0 0 14px;white-space:nowrap;overflow:hidden}.ws-intro>.eyebrow{flex:0 1 auto;min-width:0;max-width:20%;margin:0;font-size:10px;line-height:1.2;overflow:hidden;text-overflow:ellipsis}.ws-intro>.eyebrow::after,.ws-intro>.ws-title::after{content:"|";display:inline-block;margin-left:8px;color:#a5b6b0;font-weight:500}.ws-intro>.ws-title{flex:0 1 auto;min-width:0;max-width:35%;font-size:18px;line-height:1.25;letter-spacing:-.025em;margin:0;overflow:hidden;text-overflow:ellipsis}.ws-intro>.ws-lead{flex:1 1 auto;min-width:0;color:var(--muted);margin:0;max-width:none;font-size:12px;line-height:1.35;overflow:hidden;text-overflow:ellipsis}.ws-card{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow);margin-bottom:15px}.ws-card{background:white;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow);margin-bottom:15px}.ws-card h2,.ws-card h3{margin:0 0 12px;letter-spacing:-.02em}.ws-card p{color:#52635a}.ws-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ws-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.ws-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ws-fact{background:#f6f8f6;padding:13px;border-radius:11px}.ws-fact small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.ws-fact strong{display:block;margin-top:5px;overflow-wrap:anywhere}.ws-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.ws-secondary{background:#eef3ef;color:#385546;border-radius:9px;padding:10px 13px;font-weight:650}.ws-form{display:none}.ws-form.show{display:block}.ws-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ws-field{display:flex;flex-direction:column;gap:5px}.ws-field.full{grid-column:1/-1}.ws-field label{font-size:12px;font-weight:700;color:#52635a}.ws-field input,.ws-field select,.ws-field textarea{font:inherit;border:1px solid var(--line);border-radius:9px;padding:10px 11px;color:var(--ink);background:white}.ws-field textarea{min-height:90px;resize:vertical}.ws-tip{border-left:3px solid #a9cdb8;background:#f5faf6;padding:12px 14px;border-radius:0 10px 10px 0;color:#4d6457;font-size:13px}.ws-list{display:grid;gap:12px}.ws-item{background:white;border:1px solid var(--line);border-radius:15px;padding:17px 18px;box-shadow:var(--shadow)}.ws-item-top{display:flex;justify-content:space-between;gap:14px;align-items:start}.ws-item h3{margin:0 0 5px}.ws-item p{margin:8px 0;color:#53645b;white-space:pre-wrap}.ws-meta{display:flex;gap:8px 14px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:8px 0}.ws-pill{display:inline-flex;align-items:center;background:#edf4ef;color:#426653;padding:4px 9px;border-radius:99px;font-size:11px;font-weight:700}.ws-pill.open{background:#eaf1fb;color:#456da2}.ws-pill.closed,.ws-pill.done{background:#eaf5ef;color:var(--green)}.ws-item-buttons{display:flex;gap:6px}.ws-item-buttons button{background:#f1f4f1;color:#53645b;padding:7px 9px;border-radius:8px;font-size:12px;font-weight:650}.ws-progress{height:8px;background:#edf1ed;border-radius:99px;overflow:hidden;margin:9px 0}.ws-progress span{display:block;height:100%;background:#36906d;border-radius:99px}.ws-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 10px}.ws-section-title h2{margin:0}.ws-empty{padding:35px 18px;text-align:center;color:var(--muted);background:#fbfcfb;border:1px dashed #d9e2dc;border-radius:14px}.ws-milestones{margin:8px 0 0;padding-left:19px;color:#53645b}.ws-milestones li{margin:5px 0}.ws-person-private{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.ws-private-item{background:#f6f8f6;padding:10px 12px;border-radius:9px}.ws-private-item small{display:block;color:var(--muted);font-size:11px}.ws-private-item span{display:block;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.ws-status{font-size:12px;color:var(--muted);margin-left:auto}
@media(max-width:760px){.ws-nav{flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;margin:-5px 0 18px}.ws-nav-label{padding-left:7px}.ws-nav button{padding:8px 9px;font-size:13px}.ws-grid,.ws-grid.three,.ws-facts,.ws-form-grid,.ws-person-private{grid-template-columns:1fr}.ws-field.full{grid-column:auto}.ws-card{padding:16px}.ws-item-top{align-items:start;flex-direction:column}.ws-title{font-size:25px}}
.ws-guide-section,.ws-person{background:#fff;border:1px solid var(--line);border-radius:14px;padding:0 16px;box-shadow:var(--shadow)}.ws-guide-section summary,.ws-person summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;padding:16px 2px}.ws-guide-section summary::-webkit-details-marker,.ws-person summary::-webkit-details-marker{display:none}.ws-guide-section summary strong,.ws-person summary strong{display:block}.ws-guide-section summary small,.ws-person summary small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.ws-guide-arrow{color:var(--green);font-size:20px;transition:transform .18s}.ws-guide-section[open] .ws-guide-arrow,.ws-person[open] .ws-guide-arrow{transform:rotate(180deg)}.ws-guide-content,.ws-person-details{border-top:1px solid var(--line);padding:12px 2px 16px;color:#52635a}.ws-guide-content ul{padding-left:20px;margin:0 0 12px}.ws-guide-content li{margin:7px 0}.ws-guide-content a{color:var(--green);font-weight:650}.ws-person-summary{min-width:0}.ws-person-summary strong{font-size:15px}.ws-person-details>.ws-secondary{margin-top:12px}.comment-attach{display:inline-flex;align-items:center;padding:9px 12px;background:#eef3ef;color:#385546;border-radius:9px;font-weight:650;cursor:pointer}.comment-image-captions{display:grid;gap:8px;width:100%}.comment-caption{display:grid;gap:5px;color:var(--muted);font-size:12px}.comment-caption input{font:inherit;padding:9px;border:1px solid var(--line);border-radius:8px}.comment-image{display:grid;gap:4px;margin-top:9px;max-width:260px}.comment-image img{max-width:100%;max-height:220px;object-fit:cover;border-radius:9px}.comment-image small{color:var(--muted)}
.comment-form{flex-wrap:wrap}.comment-form textarea{flex:1 1 100%;width:100%}.comment-form .primary{margin-left:auto}
.detail-created{display:flex;gap:6px 16px;flex-wrap:wrap;margin:8px 0}.image-item img,.comment-image img{cursor:zoom-in}.image-viewer{z-index:1000;background:rgba(12,17,14,.94);align-items:center;justify-content:center}.image-viewer figure{margin:0;max-width:min(90vw,1200px);max-height:88vh;display:flex;flex-direction:column;align-items:center;gap:10px}.image-viewer figure img{display:block;max-width:88vw;max-height:80vh;object-fit:contain}.image-viewer figcaption{color:#fff;text-align:center;font-size:14px}.image-viewer-close,.image-viewer-nav{position:absolute;background:rgba(255,255,255,.16);color:#fff;border-radius:50%;width:46px;height:46px;font-size:30px;display:grid;place-items:center}.image-viewer-close{right:22px;top:20px}.image-viewer-nav.previous{left:22px}.image-viewer-nav.next{right:22px}@media(max-width:600px){.image-viewer-nav{width:40px;height:40px}.image-viewer-nav.previous{left:8px}.image-viewer-nav.next{right:8px}.image-viewer-close{right:10px;top:10px}}
.task-head,.task{grid-template-columns:minmax(170px,2fr) minmax(100px,.9fr) minmax(110px,1fr) minmax(100px,.9fr) 70px 120px 110px 95px 30px;min-width:1000px}.panel{overflow-x:auto}.task-creator,.task-created{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.task-thumb{width:58px;height:48px;border:1px solid var(--line);border-radius:8px;overflow:hidden;padding:0;background:#f3f6f3;display:grid;place-items:center;color:var(--muted)}.task-thumb img{width:100%;height:100%;object-fit:cover}.empty-thumb{font-size:12px}.detail-cover-button{margin-top:4px;background:#edf4ef;color:#456153;border-radius:7px;padding:4px 6px;font-size:10px}.detail-cover-button.selected{background:#dff0e5;color:var(--green);font-weight:700}@media(max-width:760px){.task-head{display:none}.task{min-width:0;grid-template-columns:minmax(0,1fr) auto}.task .task-main{grid-column:1;grid-row:1}.task .person{grid-column:1;grid-row:2}.task .task-creator{grid-column:1;grid-row:3}.task .task-created{grid-column:1;grid-row:4}.task .task-thumb{grid-column:2;grid-row:1/3;align-self:start}.task .status-wrap{grid-column:1;grid-row:5}.task .desktop-date{display:none}.task .priority{grid-column:2;grid-row:3;text-align:right}.task .delete{grid-column:2;grid-row:4;justify-self:end}}
.ws-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-task{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:8px 0}.dashboard-task span{color:var(--muted)}@media(max-width:760px){.ws-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Collapsible three-level workspace navigation */
.ws-nav{display:block;margin:-12px 0 24px;padding:0;overflow:hidden}
.ws-nav details>summary{list-style:none;cursor:pointer;user-select:none}
.ws-nav details>summary::-webkit-details-marker{display:none}
.ws-nav>.nav-root>summary{padding:12px 16px;font-weight:750;color:var(--green);background:#f8fbf8;border-bottom:1px solid var(--line)}
.nav-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:8px;padding:10px}
.nav-group{align-self:start;border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden}
.nav-group>summary{padding:10px 11px;font-size:13px;font-weight:700;color:#40584b}
.nav-group[open]>summary{background:#f7faf7;border-bottom:1px solid var(--line)}
.nav-leaves{display:grid;gap:3px;padding:5px}
.ws-nav .nav-leaves button{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:8px 9px;font-size:12px;font-weight:600}
.nav-leaves button span{width:19px;text-align:center;font-size:14px}
.nav-leaves button.active{background:var(--pale);color:var(--green)}
/* Task board: compact columns with an expandable full quick view */
.task-head,.task{grid-template-columns:82px minmax(175px,2fr) 64px minmax(120px,1fr) 110px 130px 110px 34px;min-width:980px;gap:10px}
.task-head{padding-top:11px;padding-bottom:11px}
.task-entry{border-top:1px solid var(--line)}
.task-entry .task{border-top:0;min-height:66px}
.task-code{font-size:12px;font-weight:750;color:#52685b;font-variant-numeric:tabular-nums}
.task-name{min-width:0;overflow-wrap:anywhere}
.task-thumb{flex:none}
.quick-toggle{width:30px;height:30px;border-radius:50%;background:#edf4ef;color:#426653;font-size:22px;line-height:1}
.quick-toggle:hover,.quick-toggle[aria-expanded=true]{background:#dceee2;color:var(--green)}
.task-expanded{padding:15px 20px 18px;background:#f8faf8;border-top:1px solid var(--line)}
.task-expanded[hidden]{display:none}
.task-expanded-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.task-expanded-head>div{display:flex;align-items:center;gap:8px}
.task-full-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.task-full-grid>div{min-width:0;padding:10px 11px;background:white;border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}
.task-full-grid small{display:block;margin-bottom:4px;color:var(--muted);font-size:11px}
.task-full-grid strong{display:block;font-size:13px}
.task-full-grid .instruction-preview{grid-column:1/-1}
.instruction-preview>div{max-height:105px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;color:#405248;font-size:13px;line-height:1.55}
.instruction-preview p{margin:0 0 4px}
.instruction-preview ul,.instruction-preview ol{margin:3px 0;padding-left:22px}
.rich-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:7px;border:1px solid var(--line);border-bottom:0;border-radius:9px 9px 0 0;background:#f8faf8}
.rich-toolbar button{min-width:30px;padding:6px 8px;border:1px solid #e4eae5;border-radius:6px;background:white;color:#405248;font-size:12px}
.rich-toolbar button:hover{background:var(--pale);color:var(--green)}
.rich-toolbar select{min-width:105px;padding:5px;border:1px solid #e4eae5;border-radius:6px;background:white;font:inherit;font-size:12px}
.rich-editor{min-height:190px;padding:12px 14px;border:1px solid var(--line);border-radius:0 0 9px 9px;background:white;outline:none;overflow-wrap:anywhere}
.rich-editor:focus{border-color:#80b99f;box-shadow:0 0 0 3px #19745612}
.rich-editor:empty:before{content:attr(data-placeholder);color:#9aa59e;pointer-events:none}
.rich-editor h1,.rich-editor h2,.rich-editor h3{margin:8px 0}
@media(max-width:760px){.ws-nav{margin:-5px 0 18px}.nav-groups{grid-template-columns:1fr 1fr;gap:6px;padding:8px}.nav-group>summary{font-size:12px;padding:9px}.ws-nav .nav-leaves button{font-size:11px;padding:7px 6px}.task-head,.task{min-width:980px}.task-expanded{padding:12px}.task-full-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task-full-grid .instruction-preview{grid-column:1/-1}.task-expanded-head{align-items:flex-start}.rich-editor{min-height:160px}}#taskForm.modal{width:min(860px,100%)}
.detail-instructions{padding:12px 14px;background:#f8faf8;border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
.detail-instructions p{margin:0 0 8px}.detail-instructions ul,.detail-instructions ol{padding-left:22px}
.detail-instructions a{color:var(--green);text-decoration:underline}.toolbar{gap:16px}
.tabs{flex-wrap:nowrap;white-space:nowrap;gap:5px}
.tabs .tab{white-space:nowrap;padding:8px 10px}
.tabs .tab span{display:inline-block;margin-right:3px}
.group-tools{flex-wrap:nowrap;gap:9px;min-width:0}
.group-tools select,.manage-groups,.group-tools .search{flex:none;white-space:nowrap}
.group-tools select{min-width:145px;max-width:190px}
.task-head span{white-space:nowrap}
@media(max-width:760px){.tabs{width:100%;overflow-x:auto}.group-tools{width:100%;overflow-x:auto;padding:2px 0}.group-tools .search{min-width:205px}}.toolbar{gap:16px}
.tabs{flex-wrap:nowrap;white-space:nowrap;gap:5px}
.tabs .tab{white-space:nowrap;padding:8px 10px}
.tabs .tab span{display:inline-block;margin-right:3px}
.group-tools{flex-wrap:nowrap;gap:9px;min-width:0}
.group-tools select,.manage-groups,.group-tools .search{flex:none;white-space:nowrap}
.group-tools select{min-width:145px;max-width:190px}
.task-head span{white-space:nowrap}
@media(max-width:760px){.tabs{width:100%;overflow-x:auto}.group-tools{width:100%;overflow-x:auto;padding:2px 0}.group-tools .search{min-width:205px}}.task .task-name .task-title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.task .person span:last-child,.task .date,.task .priority{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}/* Compact task columns: keep identifiers and row content on one line */
.task-head,.task{grid-template-columns:70px minmax(115px,2fr) 52px minmax(100px,1fr) 92px 116px 88px 30px;min-width:830px;gap:5px;padding-left:12px;padding-right:12px}
.task-head{padding-top:9px;padding-bottom:9px;font-size:10px;letter-spacing:.04em}
.task-code{width:70px;max-width:70px;font-size:11px;letter-spacing:-.025em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.task .person span:last-child,.task .date,.task .priority,.task-head span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.task .task-thumb{width:46px;height:38px}
.task .badge{padding:4px 7px;font-size:11px}
@media(max-width:760px){.task-head,.task{min-width:830px;gap:5px;padding-left:10px;padding-right:10px}}.dashboard-task-card{overflow:hidden}
.ws-grid:has(.dashboard-task-card){grid-template-columns:1fr}
.dashboard-task-list{max-width:100%;overflow-x:auto}
.dashboard-task-head,.dashboard-task-row{display:grid;grid-template-columns:66px minmax(135px,2fr) minmax(105px,1.15fr) 92px 105px 88px;align-items:center;gap:5px;min-width:680px;padding:8px 5px}
.dashboard-task-head{border-bottom:1px solid var(--line);color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.03em;text-transform:uppercase}
.dashboard-task-row{border-bottom:1px solid #edf1ed;font-size:12px;color:#53645b}
.dashboard-task-row>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-task-row strong{color:var(--ink)}
.dashboard-task-code{font-size:11px;font-weight:750;color:#52685b;letter-spacing:-.025em}.dashboard-task-row .dashboard-status-select{width:92px;max-width:100%;padding:4px 16px 4px 6px;border:0;border-radius:7px;font-family:inherit;font-size:10px;font-weight:600;line-height:1.3;cursor:pointer;white-space:nowrap}
.dashboard-task-row .dashboard-status-select.todo{background:#eff1ef;color:#63716a}
.dashboard-task-row .dashboard-status-select.doing{background:#eaf1fb;color:#456da2}
.dashboard-task-row .dashboard-status-select.done{background:#eaf5ef;color:#197456}/* The inline app theme also defines these selectors; keep the task table grid authoritative. */
.panel{overflow-x:auto!important}
.task-head,.task{display:grid!important;grid-template-columns:70px minmax(155px,2fr) 52px minmax(120px,1fr) 95px 118px 90px 30px!important;min-width:830px!important;gap:5px!important;padding-left:12px!important;padding-right:12px!important}
.task-head{padding-top:9px!important;padding-bottom:9px!important}
.task-head span{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.task .task-code{width:70px;max-width:70px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tabs{display:flex!important;align-items:center;flex:0 0 175px;gap:7px;white-space:nowrap}
.status-filter-label{font-size:11px;color:var(--muted);font-weight:700;white-space:nowrap}
#statusFilter{width:145px;max-width:145px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;white-space:nowrap}
@media(max-width:760px){.task-head{display:grid!important}.task-head,.task{min-width:830px!important;grid-template-columns:70px minmax(155px,2fr) 52px minmax(120px,1fr) 95px 118px 90px 30px!important}.tabs{flex:1 0 auto}.toolbar{overflow-x:auto}}/* Keep task columns tightly grouped instead of stretching the title column. */
.task-head,.task{grid-template-columns:72px minmax(180px,220px) 56px 140px 95px 112px 94px 30px!important;min-width:885px!important;column-gap:6px!important;row-gap:5px!important;justify-content:start!important}
@media(max-width:760px){.task-head,.task{grid-template-columns:72px minmax(180px,220px) 56px 140px 95px 112px 94px 30px!important;min-width:885px!important;column-gap:6px!important}}.overview-filters{flex:0 0 auto!important;width:auto!important;gap:6px!important;white-space:nowrap}
.overview-filters #statusFilter,.overview-filters #projectFilter{flex:0 0 145px;width:145px;max-width:145px}
.overview-filters .status-filter-label{margin-left:3px}
@media(max-width:760px){.overview-filters{width:max-content!important;flex:0 0 auto!important}.overview-filters #statusFilter,.overview-filters #projectFilter{flex:0 0 145px}}
.detail-modal{width:min(850px,100%)}
.task-detail-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.task-detail-facts>div{min-width:0;padding:9px 11px;background:#f7f9f7;border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}
.task-detail-facts small{display:block;color:var(--muted);font-size:11px;margin-bottom:3px}
.task-detail-facts strong{display:block;font-size:13px}
#detailMeta .tag-list{margin:8px 0 12px}
#detailNotes{white-space:pre-wrap;min-height:36px;margin-bottom:14px}
.project-board-card{overflow:hidden}
.project-order-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.project-order-actions button{min-width:30px;padding:6px 8px;border-radius:7px;background:#f0f4f0;color:#4b6254;font-weight:700}
.project-order-actions button:disabled{opacity:.35;cursor:default}
.project-task-section{margin-top:20px;padding-top:12px;border-top:1px solid var(--line)}
.project-task-section .ws-section-title{margin-top:0}
.project-task-list{overflow-x:auto;border:1px solid var(--line);border-radius:10px}
.project-task-head,.project-task-row{display:grid;grid-template-columns:90px minmax(160px,2fr) minmax(120px,1.2fr) 100px 130px 72px;align-items:center;gap:8px;min-width:760px;padding:9px 11px}
.project-task-head{background:#f7f9f7;color:var(--muted);font-size:10px;font-weight:750;text-transform:uppercase;white-space:nowrap}
.project-task-row{border-top:1px solid var(--line);font-size:12px;color:#53645b}
.project-task-row>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-task-open{padding:0;background:transparent;color:var(--green);font-weight:650;text-align:left;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.project-task-empty{padding:16px}
@media(max-width:760px){.task-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-modal{padding:18px}}/* Header sync state and live Vietnam calendar */
.top-brand-line{display:flex;align-items:center;gap:16px;min-width:0;flex-wrap:wrap}
.sync-pill{display:inline-flex;align-items:center;gap:7px;max-width:230px;padding:8px 11px;border:1px solid #dce8df;border-radius:999px;background:#f3f8f4;color:#426653;font-size:11px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sync-pill:before{content:"";width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#77877c}
.sync-pill[data-state="online"]{background:#e8f8ed;border-color:#a9ddb8;color:#176f3a}.sync-pill[data-state="online"]:before{background:#25a957}
.sync-pill[data-state="pending"]{background:#fff7e8;border-color:#f0e0bb;color:#876523}.sync-pill[data-state="pending"]:before{background:#d49a2a;animation:sync-pulse 1.3s infinite}
.sync-pill[data-state="error"]{background:#fff0ee;border-color:#f0d2cd;color:#a9473c}.sync-pill[data-state="error"]:before{background:#c94c40}
.sync-pill[data-state="offline"]{background:#f0f3f0;color:#66746c}
@keyframes sync-pulse{50%{opacity:.35}}
.header-clock{display:flex;align-items:center;gap:9px 12px;flex-wrap:wrap;color:#58685f;font-size:11px}
.header-clock strong{color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.header-clock span{white-space:nowrap}
/* Wider, clearly grouped task details */
.detail-modal{width:min(1240px,96vw)!important;max-width:1240px;max-height:calc(100dvh - 28px);padding:28px 32px}
.detail-head{position:sticky;top:-28px;z-index:1;padding:8px 0 14px;background:white;border-bottom:1px solid var(--line);margin-bottom:12px}
.detail-head h2{font-size:25px}
.detail-section{margin:14px 0 18px;padding:14px 16px;background:#fbfcfb;border:1px solid var(--line);border-radius:13px}
.detail-section h3{margin:0 0 11px;color:#40594a;font-size:14px;letter-spacing:-.01em}
.task-detail-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0}
.task-detail-facts>div{background:white;padding:10px 12px}
.detail-modal>h3{margin:20px 0 9px;color:#40594a;font-size:15px}
.detail-instructions{min-height:50px}
/* One consistent modern select style across the app */
select:not(.badge):not(.dashboard-status-select){appearance:none!important;-webkit-appearance:none!important;border:1px solid #dce5de!important;border-radius:10px!important;background-color:#fff!important;background-image:linear-gradient(45deg,transparent 50%,#68776e 50%),linear-gradient(135deg,#68776e 50%,transparent 50%)!important;background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%!important;background-size:5px 5px,5px 5px!important;background-repeat:no-repeat!important;color:#26372e!important;font-family:inherit!important;box-shadow:0 1px 2px #183c2d08;transition:border-color .15s ease,box-shadow .15s ease!important}
select:not(.badge):not(.dashboard-status-select):hover{border-color:#a9bfb0!important}
select:not(.badge):not(.dashboard-status-select):focus-visible{outline:none!important;border-color:#4e9a73!important;box-shadow:0 0 0 3px #1974561c!important}
select:not(.badge):not(.dashboard-status-select) option{background:#fff;color:#26372e}
#statusFilter,#projectFilter{padding-right:31px!important}
/* Dashboard task table including its project */
.dashboard-task-head,.dashboard-task-row{grid-template-columns:66px minmax(170px,1.6fr) minmax(130px,1.1fr) minmax(110px,1fr) 92px 105px 88px;min-width:830px}
@media(max-width:760px){.top{align-items:flex-start;gap:12px;flex-direction:column}.top-brand-line{gap:8px 11px}.header-clock{gap:5px 10px}.sync-pill{padding:7px 9px;font-size:10px}.detail-modal{width:96vw!important;max-height:calc(100dvh - 20px);padding:18px 16px}.detail-head{top:-18px}.task-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-section{padding:11px}.dashboard-task-head,.dashboard-task-row{min-width:830px}}@media(max-width:760px){.top{align-items:flex-start!important;gap:12px!important;flex-direction:column!important}.detail-modal{padding:18px 16px!important}}/* Detail window: keep only the title/code bar sticky. */
.detail-head{position:relative!important;top:auto!important;z-index:auto!important;padding:0!important;background:transparent!important;border:0!important;margin:0 0 10px!important}
.detail-head-actions{position:absolute;top:0;right:0;z-index:5}
.detail-title-row{position:sticky;top:0;z-index:4;display:flex;align-items:center;gap:12px;min-height:54px;padding:8px 48px 10px 0;background:#fff;border-bottom:1px solid var(--line)}
.detail-title-row h2{min-width:0;margin:0;font-size:25px;overflow-wrap:anywhere}
.detail-code-badge{margin-left:auto;flex:0 0 auto;padding:7px 11px;border:1px solid #d8e7dd;border-radius:9px;background:#eff7f1;color:#197456;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.detail-head-actions .iconbtn{width:36px;height:36px;background:#f1f5f2;color:#40594a}
.task-detail-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 16px}
.task-detail-facts>div{min-height:68px;display:flex;flex-direction:column;justify-content:center;padding:11px 13px;background:#fbfcfb;border:1px solid var(--line);border-radius:10px}
.task-detail-facts small{font-size:11px;line-height:1.3;color:#718078;margin-bottom:5px}
.task-detail-facts strong{font-size:13px;line-height:1.4;color:#26372e;overflow-wrap:anywhere}
.task-detail-facts .detail-wide{grid-column:1/-1}
.task-full-grid .full-width{grid-column:1/-1}
/* Unified sizes and spacing for filter controls */
#groupFilter,#statusFilter,#projectFilter{flex:0 0 170px!important;width:170px!important;min-width:170px!important;max-width:170px!important;height:42px!important;padding:0 32px 0 11px!important;font-size:12px!important}
.overview-filters{flex:0 1 auto!important;width:auto!important;min-width:0!important;gap:8px!important}
.group-tools{gap:8px!important;align-items:center}
.group-tools .manage-groups{height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px}
.group-tools .search{height:42px;min-width:210px;padding:0 12px}
.toolbar{gap:12px!important}
@media(max-width:760px){.detail-title-row h2{font-size:20px}.task-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.task-detail-facts>div{min-height:62px;padding:9px}.overview-filters{width:max-content!important;flex:0 0 auto!important}.overview-filters #statusFilter,.overview-filters #projectFilter{flex:0 0 170px!important}.group-tools{overflow-x:auto}.toolbar{overflow-x:auto}}.task-head,.task{grid-template-columns:70px minmax(165px,175px) 56px 140px 125px 95px 112px 94px 30px!important;min-width:970px!important;column-gap:6px!important;justify-content:start!important}
.task-project{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#53645b}
@media(max-width:760px){.task-head,.task{grid-template-columns:70px minmax(165px,175px) 56px 140px 125px 95px 112px 94px 30px!important;min-width:970px!important}}
/* Task pinning, manual order, and deadline countdown */
.task-head,.task{grid-template-columns:70px minmax(165px,175px) 56px 140px 125px 95px 112px 94px 112px 92px!important;min-width:1110px!important;column-gap:6px!important;justify-content:start!important}
.task .task-actions{display:flex;flex-direction:row!important;align-items:center;justify-content:flex-end;gap:3px;white-space:nowrap}.task .task-actions button{width:24px;height:28px;padding:0;border-radius:7px;background:transparent;color:#66766c;font-size:14px}.task .task-actions button:hover{background:#edf4ef;color:var(--green)}.task .task-actions .pin-task.is-pinned{color:#197456}.task .task-actions .quick-toggle{width:26px;height:26px;font-size:20px}
.remaining-time{display:inline-flex;align-items:center;min-height:24px;padding:3px 7px;border-radius:7px;background:#eff5f0;color:#426653;font-size:11px;font-weight:650;white-space:nowrap}.remaining-time.urgent{background:#ffe1df;color:#b42318;animation:remaining-alert 1s ease-in-out infinite}.task-remaining{min-width:0}.detail-actions{justify-content:space-between}.task-expanded .remaining-time{margin-top:2px}
@keyframes remaining-alert{0%,100%{background:#ffe1df;box-shadow:0 0 0 0 #dc262622}50%{background:#ffb9b3;box-shadow:0 0 0 4px #dc262622}}
.dashboard-task-head,.dashboard-task-row{grid-template-columns:66px minmax(165px,1.5fr) minmax(120px,1.1fr) minmax(105px,1fr) 85px 110px 85px 115px;min-width:910px}
.project-task-head,.project-task-row{grid-template-columns:80px minmax(150px,1.7fr) minmax(110px,1fr) 95px 105px 115px;min-width:800px}
@media(max-width:760px){.task-head,.task{grid-template-columns:70px minmax(165px,175px) 56px 140px 125px 95px 112px 94px 112px 92px!important;min-width:1110px!important}.dashboard-task-head,.dashboard-task-row{min-width:910px}.project-task-head,.project-task-row{min-width:870px}}

.quick-section-title{grid-column:1/-1;padding:8px 2px 4px;border-bottom:1px solid var(--line);color:#197456;font-size:12px;font-weight:750;letter-spacing:.02em}.task-full-grid .quick-title{grid-column:span 2}.remaining-time.late{background:#fff0e6;color:#aa431e}
/* Guni Workspace administration */
.admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:18px;align-items:start}.admin-sidebar{position:sticky;top:18px;display:grid;gap:5px;padding:9px;background:#fff;border:1px solid var(--line);border-radius:15px}.admin-tab{display:flex;align-items:center;gap:10px;width:100%;padding:11px 12px;border:0;border-radius:9px;background:transparent;color:var(--ink);text-align:left;font:inherit;font-size:13px;font-weight:650;cursor:pointer}.admin-tab span{width:20px;text-align:center;color:var(--green);font-size:16px}.admin-tab:hover,.admin-tab.active{background:#eaf4ef;color:var(--green)}.admin-content{min-width:0;display:grid;gap:16px}.admin-heading,.admin-save-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.admin-heading h2{margin:0 0 5px;font-size:19px}.admin-heading p,.admin-help{margin:0;color:var(--muted);font-size:13px;line-height:1.55}.admin-stats .ws-card{padding:18px}.admin-invite{display:grid;grid-template-columns:minmax(200px,1fr) 190px auto;align-items:end;gap:12px}.admin-invite label{display:grid;gap:6px;font-size:12px;font-weight:650}.admin-invite input,.admin-invite select,.admin-table select{width:100%;min-height:40px;padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit}.admin-help{margin-top:12px}.admin-status{min-height:18px;margin-top:10px;color:var(--muted);font-size:12px}.admin-status.is-message{color:var(--green);font-weight:650}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;font-size:13px}.admin-table th,.admin-table td{padding:12px 13px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.admin-table th{color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.admin-table td:first-child{min-width:190px}.admin-table td strong,.admin-table td small{display:block}.admin-table td small{margin-top:3px;color:var(--muted);font-size:11px}.admin-table tr:last-child td{border-bottom:0}.admin-table select{min-width:150px;min-height:34px;padding:6px 9px}.admin-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:99px;background:#f1f3f1;color:#556159;font-size:11px;font-weight:700}.admin-badge.enabled{background:#e7f4ec;color:#167452}.admin-badge.disabled{background:#fff0ed;color:#b44938}.admin-empty{text-align:center!important;padding:25px!important;color:var(--muted)}.admin-setup-note{padding:13px 15px;border:1px solid #eddfbd;border-radius:12px;background:#fff9eb;color:#765e2e;font-size:12px;line-height:1.6}.admin-role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.admin-role-grid .ws-card{padding:20px}.admin-role-grid h3{margin:10px 0 6px}.admin-role-grid p,.admin-role-grid li{color:var(--muted);font-size:13px;line-height:1.6}.admin-role-grid ul{padding-left:20px}.admin-role-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf5f0;color:var(--green);font-size:20px}.admin-role-icon.admin-role-owner{background:#f0ecfa;color:#68549a}.admin-inline-link{padding:0;border:0;background:none;color:var(--green);font:inherit;font-weight:700;cursor:pointer}.admin-feature-list{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}.admin-feature{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) 44px;align-items:center;gap:12px;padding:13px 16px;border-bottom:1px solid var(--line);cursor:pointer}.admin-feature-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#f1f6f2;color:var(--green);font-weight:700}.admin-feature-copy strong,.admin-feature-copy small{display:block}.admin-feature-copy strong{font-size:13px}.admin-feature-copy small{margin-top:3px;color:var(--muted);font-size:11px}.admin-feature input{position:absolute;right:18px;width:38px;height:22px;opacity:0;cursor:pointer}.admin-switch{position:relative;width:38px;height:22px;border-radius:99px;background:#cbd2ce;transition:.2s}.admin-switch:after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:.2s}.admin-feature input:checked+.admin-switch{background:var(--green)}.admin-feature input:checked+.admin-switch:after{transform:translateX(16px)}.admin-feature input:focus-visible+.admin-switch{outline:3px solid #77bba0}.admin-save-row{padding:14px 16px;color:var(--muted);font-size:12px}.admin-config-form{margin:0}.admin-config-form .ws-field label small{display:block;color:var(--muted);font-size:10px;font-weight:400}.admin-security-card{border-left:4px solid #d9b85a}.admin-security-card h3{margin-top:0}.admin-file-label{display:inline-flex;cursor:pointer}.admin-file-label:hover{background:#eaf4ef}.admin-inline-link:hover{text-decoration:underline}
.admin-invite{grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-role-card .ws-section-title{align-items:flex-start}.admin-role-card .ws-section-title>div:last-child{display:flex;flex-wrap:wrap;gap:6px}.admin-role-summary{display:flex;flex-wrap:wrap;gap:6px}.admin-role-summary span{padding:5px 8px;border-radius:99px;background:#edf5f0;color:#23694f;font-size:11px}.admin-role-editor{display:grid;gap:16px}.admin-permission-table th:first-child{min-width:180px}.admin-permission-table td{text-align:center}.admin-permission-table input,.admin-scope input{width:17px;height:17px;accent-color:var(--green)}.admin-scope{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;border:1px solid var(--line);border-radius:12px}.admin-scope h3,.admin-scope p{grid-column:1/-1;margin:0}.admin-scope label{font-size:13px}.admin-role-card .danger{color:#b44938}
@media(max-width:760px){.admin-layout{grid-template-columns:1fr;gap:12px}.admin-sidebar{position:static;display:flex;overflow:auto;white-space:nowrap}.admin-tab{width:auto;flex:0 0 auto}.admin-tab span{width:auto}.admin-invite{grid-template-columns:1fr!important}.admin-role-grid{grid-template-columns:1fr}.admin-save-row{align-items:flex-start;flex-direction:column}.admin-table th,.admin-table td{padding:10px}.admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-scope{grid-template-columns:1fr}.admin-role-card .ws-section-title{flex-direction:column}}
.password-input-wrap{position:relative;display:block;width:100%;min-width:0}.password-input-wrap>input{box-sizing:border-box;width:100%;padding-right:46px!important}.password-visibility-toggle{position:absolute;top:50%;right:7px;display:grid;place-items:center;width:32px;height:32px;padding:6px;transform:translateY(-50%);border:0;border-radius:8px;background:transparent;color:#68776f;cursor:pointer}.password-visibility-toggle:hover{background:#edf5f0;color:var(--green)}.password-visibility-toggle:focus-visible{outline:2px solid var(--green);outline-offset:1px}.password-visibility-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.staff-avatar-editor{display:flex;align-items:center;gap:14px;margin:10px 0 16px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fbfcfb}.staff-avatar-editor>div:last-child{display:grid;gap:5px}.staff-avatar-editor input{font:inherit;font-size:12px}.staff-avatar-preview,.ws-person-avatar{display:grid;place-items:center;flex:none;overflow:hidden;border-radius:50%;background:#e9f3ed;color:#277458;font-weight:750}.staff-avatar-preview{width:76px;height:76px}.staff-avatar-preview img,.ws-person-avatar img{width:100%;height:100%;object-fit:cover}.ws-person summary{display:grid;grid-template-columns:48px minmax(150px,1.4fr) minmax(100px,.7fr) minmax(130px,.9fr) 20px;align-items:center;gap:14px}.ws-person-avatar{width:46px;height:46px;font-size:13px}.ws-person-summary{min-width:0}.ws-person-summary strong,.ws-person-summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-person-cell{display:grid;gap:4px;min-width:0}.ws-person-cell small{color:var(--muted);font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.04em}.ws-person-cell strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.ws-person .ws-guide-arrow{justify-self:end}@media(max-width:760px){.ws-person summary{grid-template-columns:44px minmax(0,1fr) 20px;gap:8px}.ws-person-avatar{grid-column:1;grid-row:1/4;width:40px;height:40px}.ws-person-summary{grid-column:2;grid-row:1}.ws-person-cell{grid-column:2;display:flex;align-items:center;gap:7px}.ws-person-cell:nth-of-type(3){grid-row:2}.ws-person-cell:nth-of-type(4){grid-row:3}.ws-person-cell strong{font-size:12px}.ws-person .ws-guide-arrow{grid-column:3;grid-row:1}}

.ws-person-table-head{display:grid;grid-template-columns:48px minmax(150px,1.4fr) minmax(100px,.7fr) minmax(130px,.9fr) 20px;gap:14px;padding:0 18px 3px;color:var(--muted);font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.ws-person-table-head span:nth-child(n+3){padding-left:1px}@media(max-width:760px){.ws-person-table-head{display:none}}

.staff-account-panel{margin:14px 0;padding:15px;border:1px solid #cfe1d6;border-radius:12px;background:#f7fbf8}.staff-account-panel h3{margin:0 0 5px;color:#246c50}.staff-account-panel p{margin:0 0 12px;color:var(--muted);font-size:12px}.staff-account-controls{display:grid;grid-template-columns:minmax(170px,1fr) minmax(150px,.8fr) auto;align-items:end;gap:10px;margin-top:9px}.staff-account-controls label{display:grid;gap:5px;font-size:12px;font-weight:650}.staff-account-controls input,.staff-account-controls select{min-height:39px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit}.staff-account-controls button{min-height:39px;white-space:nowrap}@media(max-width:760px){.staff-account-controls{grid-template-columns:1fr}.staff-account-controls button{width:100%}}

.tag-picker .tag-chip,.task-name .tag-chip,.task-full-grid .tag-chip,#detailMeta .tag-chip{border-color:color-mix(in srgb,var(--tag-color,#287a5d) 32%,white);background:color-mix(in srgb,var(--tag-color,#287a5d) 11%,white);color:var(--tag-color,#287a5d)}

.tag-manager-row .tag-chip{border-color:color-mix(in srgb,var(--tag-color,#287a5d) 32%,white);background:color-mix(in srgb,var(--tag-color,#287a5d) 11%,white);color:var(--tag-color,#287a5d)}

.tag-picker{gap:7px;padding:9px}.tag-choice-row{display:grid;grid-template-columns:minmax(140px,1.1fr) auto minmax(140px,1fr) 38px auto;align-items:center;gap:8px}.tag-choice-row select,.tag-choice-row input:not([type=color]){width:100%;min-width:0;height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:13px}.tag-choice-or{color:var(--muted);font-size:11px;white-space:nowrap}.tag-color-pick{display:flex;align-items:center;justify-content:center}.tag-color-pick input{width:36px;height:36px;padding:2px;border:1px solid var(--line);border-radius:8px;background:#fff}.tag-create-button{height:38px;padding:8px 12px;white-space:nowrap}.tag-selected-list{display:flex;min-height:24px;flex-wrap:wrap;gap:6px}.tag-selected-chip{padding:4px 8px}.tag-selected-chip span{font-size:14px;line-height:1}.tag-picker-empty{color:var(--muted);font-size:11px}@media(max-width:640px){.tag-choice-row{grid-template-columns:minmax(0,1fr) 38px}.tag-choice-row select,.tag-choice-or{grid-column:1/-1}.tag-choice-or{text-align:center}.tag-choice-row input:not([type=color]){grid-column:1}.tag-choice-row .tag-color-pick{grid-column:2}.tag-choice-row .tag-create-button{grid-column:1/-1;width:100%}}

/* Bảng công việc: chia cột đồng đều để nhãn và dữ liệu thẳng hàng. */
.task-head,.task{grid-template-columns:repeat(10,minmax(110px,1fr))!important;min-width:1200px!important;column-gap:10px!important;justify-content:stretch!important}
.task-head>* ,.task>*{min-width:0}
.task .task-title,.task .task-meta,.task .person,.task .date,.task .priority{overflow-wrap:anywhere}
/* Biểu mẫu tạo/chỉnh sửa dùng trọn khung nhìn, phần nội dung tự cuộn. */
#overlay{padding:0;place-items:stretch}
#taskForm.modal{width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border-radius:0;overflow:auto;padding:clamp(16px,2.5vw,32px)}
@media(max-width:760px){.task-head,.task{min-width:1200px!important}#taskForm.modal{padding:16px 14px calc(16px + env(safe-area-inset-bottom))}}

/* Quick access in the application header and nested navigation */
.top{align-items:center;gap:16px}.account{display:flex;align-items:center;gap:10px;min-width:0}.quick-search-wrap{display:flex;align-items:center;gap:8px;width:min(340px,34vw);height:42px;padding:0 8px 0 12px;background:#f8fbfb;border:1px solid #dce7e9;border-radius:13px;color:#668087}.quick-search-wrap input{min-width:0;flex:1;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font:inherit;font-size:13px}.quick-search-wrap button{padding:7px 11px;border-radius:9px;background:#e5f7d0;color:#174b52;font-weight:700;font-size:12px}.notification-wrap{position:relative}.notification-bell{position:relative;display:grid;place-items:center;width:42px;height:42px;border:1px solid #dce7e9;border-radius:13px;background:white;color:#174b52}.notification-bell-icon{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.notification-count{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:99px;background:#c5ef49;color:#183b3c;font-size:10px;line-height:18px;font-weight:800}.notification-panel{position:absolute;z-index:20;right:0;top:50px;width:min(330px,calc(100vw - 28px));max-height:65vh;overflow:auto;padding:14px;background:white;border:1px solid #dce7e9;border-radius:16px;box-shadow:0 18px 50px #12383f24}.notification-panel strong{display:block;margin-bottom:9px;color:#12383f}.notification-panel p{margin:4px 0;color:#668087;font-size:13px}.notification-panel button{display:block;width:100%;padding:10px 8px;text-align:left;background:white;border-top:1px solid #edf1f2;color:#12383f}.notification-panel button:hover{background:#f4f8f8}.notification-panel button span,.notification-panel button small{display:block}.notification-panel button small{margin-top:3px;color:#71868b;font-size:11px}.nav-subgroup{padding:0 8px 6px}.nav-subgroup summary{list-style:none;cursor:pointer;display:flex;gap:8px;align-items:center;padding:8px 9px;border-radius:8px;color:#31575d;font-size:12px;font-weight:650}.nav-subgroup summary:hover,.nav-subgroup[open] summary{background:#f3f8f6}.nav-subgroup summary::-webkit-details-marker{display:none}.nav-subgroup>div{display:grid;gap:2px;padding-left:18px}.nav-subgroup button{width:100%;text-align:left;background:transparent;color:#526e72;border-radius:7px;padding:7px 9px;font:inherit;font-size:12px}.nav-subgroup button:hover{background:#e5f7d0;color:#174b52}.ws-attendance-quick{display:inline-flex;padding:8px 11px;border-radius:9px;background:#e5f7d0;color:#174b52;font-size:12px;font-weight:750;text-decoration:none}
@media(max-width:760px){.top{align-items:flex-start;flex-wrap:wrap;gap:10px}.top-brand-line{width:100%}.account{width:100%;order:2}.quick-search-wrap{width:auto;flex:1}.notification-wrap{flex:none}.notification-bell{width:40px;height:40px}.logout{flex:none}.nav-groups{grid-template-columns:1fr 1fr}.nav-group{min-width:0}.nav-leaves button{overflow-wrap:anywhere}}
.admin-corner{position:relative;flex:none}.admin-corner>summary{list-style:none;cursor:pointer;padding:10px 12px;border:1px solid #dce7e9;border-radius:12px;background:#fff;color:#174b52;font-size:13px;font-weight:750;white-space:nowrap}.admin-corner>summary::-webkit-details-marker{display:none}.admin-corner[open]>summary{background:#e5f7d0}.admin-corner-menu{position:absolute;right:0;top:48px;z-index:25;display:grid;gap:3px;width:260px;padding:9px;background:#fff;border:1px solid #dce7e9;border-radius:14px;box-shadow:0 18px 50px #12383f24}.admin-corner-menu button{padding:10px;text-align:left;background:transparent;border-radius:8px;color:#31575d;font-size:13px}.admin-corner-menu button:hover{background:#e5f7d0;color:#174b52}
@media(max-width:760px){.admin-corner-menu{left:0;right:auto;top:46px;width:min(260px,calc(100vw - 28px))}}
.task-list.kanban .task-head,.task-list.calendar .task-head{display:none}.task-kanban-board{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:12px;overflow-x:auto;padding:12px}.task-kanban-lane,.task-calendar-group{min-width:240px;padding:12px;border:1px solid #dce7e9;border-radius:14px;background:#f4f8f8}.task-kanban-lane h3,.task-calendar-group h3{display:flex;justify-content:space-between;margin:0 0 10px;color:#174b52;font-size:14px}.task-kanban-lane h3 small{padding:2px 7px;border-radius:99px;background:#e5f7d0}.task-kanban-lane .task-entry{margin-bottom:8px;padding:10px;border:1px solid #dce7e9;border-radius:12px;background:#fff}.task-kanban-lane .task{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;min-width:0!important;padding:8px!important;border:0!important}.task-kanban-lane .task-name,.task-kanban-lane .task-main{grid-column:1/-1}.task-kanban-lane .task-thumb{width:42px;height:36px}.task-calendar-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:10px;padding:12px}.task-calendar-group .task-entry{margin:6px 0;padding:10px;background:#fff;border:1px solid #dce7e9;border-radius:11px}.task-calendar-group .task{display:grid!important;grid-template-columns:1fr 1fr!important;min-width:0!important;gap:6px!important;padding:7px!important;border:0!important}.task-calendar-group .task-name{grid-column:1/-1}.task-kanban-lane .task-expanded,.task-calendar-group .task-expanded{grid-column:1/-1}.task-list.list .task-entry{border-bottom:1px solid var(--line)}.task-list.list .task{padding-top:9px;padding-bottom:9px}
body[data-board-view="kanban"] .task-head,body[data-board-view="calendar"] .task-head{display:none!important}#list.task-list{overflow:auto}.task-kanban-board{align-items:start}.task-kanban-lane .task-entry{box-shadow:0 3px 10px #12383f0a}
.group-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;max-width:100%}.group-tools select{flex:0 1 150px;min-width:120px}.group-tools input.search{flex:1 1 190px;min-width:190px}.toolbar{align-items:flex-start}.overview-filters{flex-wrap:wrap;align-items:center}.overview-filters select{min-width:150px;border:1px solid #dce7e9;border-radius:10px;padding:9px;background:#f9fbfb;color:#174b52}.task-kanban-board{min-width:840px}.task-calendar-board{min-width:600px}
@media(max-width:760px){.group-tools{justify-content:stretch}.group-tools select{flex:1 1 45%;min-width:140px}.group-tools input.search{flex:1 1 100%;min-width:0}.toolbar{align-items:stretch}.overview-filters select{flex:1;min-width:120px}}
.module-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px;padding:6px;background:#f0f5f5;border:1px solid #dce7e9;border-radius:13px;width:max-content;max-width:100%}.module-tabs button{padding:9px 15px;border-radius:9px;background:transparent;color:#587179;font-weight:700;font-size:13px;white-space:nowrap}.module-tabs button.active{background:#174b52;color:#fff;box-shadow:0 4px 10px #174b5224}@media(max-width:600px){.module-tabs{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.module-tabs button{padding:9px 7px}}
.checklist-intro{display:flex;align-items:center;justify-content:space-between;gap:20px}.checklist-intro>div:first-child{min-width:0}.checklist-intro .module-tabs{flex:none;margin:0 0 0 auto}@media(max-width:760px){.checklist-intro{align-items:flex-start;flex-direction:column;gap:12px}.checklist-intro .module-tabs{margin:0;width:100%}}
.objective-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.objective-dashboard article{padding:14px 16px;border:1px solid #dce7e9;border-radius:14px;background:#fff;box-shadow:0 5px 16px #12383f0a}.objective-dashboard small{display:block;color:#668087;font-size:12px}.objective-dashboard strong{display:block;margin-top:4px;color:#174b52;font-size:24px}.objective-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.objective-filters{display:flex;gap:8px;flex-wrap:wrap}.objective-filters select,.objective-filters input{padding:9px 11px;border:1px solid #dce7e9;border-radius:10px;background:#fff;font:inherit}.objective-tree{display:grid;gap:12px}.objective-card{padding:16px 18px;margin-left:calc(var(--objective-depth,0)*18px);border:1px solid #dce7e9;border-left:4px solid #74b98f;border-radius:15px;background:#fff;box-shadow:0 8px 22px #12383f0a;min-width:0}.objective-card[hidden]{display:none}.objective-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.objective-card h3{margin:4px 0;color:#12383f}.objective-card-head p{margin:4px 0;color:#668087;font-size:13px}.objective-breadcrumb{font-size:11px;color:#668087}.objective-status{white-space:nowrap;padding:5px 9px;border-radius:99px;background:#e5f7d0;color:#365c2e;font-size:11px;font-weight:750}.objective-status.pending{background:#fff2d7;color:#8a5c13}.objective-measures{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:13px}.objective-measures>div{padding:9px 10px;border-radius:10px;background:#f4f8f8;min-width:0}.objective-measures small,.objective-measures strong{display:block}.objective-measures small{color:#668087;font-size:10px}.objective-measures strong{margin-top:4px;color:#174b52;font-size:13px;overflow-wrap:anywhere}.objective-meta{display:flex;flex-wrap:wrap;gap:8px 15px;margin:10px 0;color:#587179;font-size:12px}.objective-actions{display:flex;flex-wrap:wrap;gap:6px}.objective-actions button,.objective-report-row button{padding:7px 10px;border-radius:8px;background:#edf3f3;color:#31575d;font-size:12px;font-weight:650}.objective-actions button:hover,.objective-report-row button:hover{background:#e5f7d0}.objective-children{display:grid;gap:9px;margin:13px 0 0 10px;padding-left:14px;border-left:2px solid #dce7e9}.objective-child-heading{font-size:12px;color:#668087;font-weight:750}.objective-child-heading span{margin-left:5px;color:#174b52}.objective-history{margin-top:10px;padding:10px;border-radius:10px;background:#f8fbfb}.objective-history summary{cursor:pointer;font-size:12px;color:#31575d;font-weight:700}.objective-report-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #e5ecee}.objective-report-row>div:first-child{display:grid;gap:4px}.objective-report-row small,.objective-report-row a{font-size:11px;color:#668087}.objective-report-row a{color:#174b52}@media(max-width:760px){.objective-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.objective-card{margin-left:calc(var(--objective-depth,0)*8px);padding:13px}.objective-measures{grid-template-columns:repeat(2,minmax(0,1fr))}.objective-card-head{flex-direction:column}.objective-toolbar{align-items:stretch}.objective-filters>*{flex:1;min-width:130px}.objective-report-row{flex-direction:column}}
.objective-kpi-option{padding:11px 13px;border:1px solid #dce7e9;border-radius:10px;background:#f7faf9}.objective-kpi-option label{display:flex;align-items:center;gap:8px;color:#174b52;font-weight:700}.objective-kpi-option input{width:17px;height:17px;accent-color:#174b52}.objective-kpi-option small{display:block;margin:4px 0 0 25px;color:#668087;font-size:11px}.kpi-objective-link{display:inline-flex;margin-top:5px;padding:5px 8px;border:0;border-radius:8px;background:#e5f7d0;color:#315c31;font-size:11px;font-weight:700;cursor:pointer}
.record-code{display:inline-block;margin-right:7px;padding:3px 7px;border-radius:7px;background:#e5f0f2;color:#174b52;font:700 11px/1.4 ui-monospace,Consolas,monospace;vertical-align:middle;letter-spacing:.02em}
.objective-unit-row{display:flex;gap:8px;align-items:center}.objective-unit-row input{min-width:0;flex:1}.objective-unit-row button{white-space:nowrap}.objective-numeric-field[hidden]{display:none}
.app-unit-row{display:flex;gap:6px;align-items:center;margin-top:6px}.app-unit-row input{flex:1;min-width:0;padding:7px 9px;font-size:12px}.app-unit-row button{padding:7px 9px;font-size:11px;white-space:nowrap}
.app-form-popup{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(12,34,39,.54);backdrop-filter:blur(5px)}.app-form-popup-dialog{display:flex;flex-direction:column;width:min(980px,96vw);max-height:min(94dvh,980px);overflow:hidden;border:1px solid #dce7e9;border-radius:20px;background:#f5f8f7;box-shadow:0 24px 80px #071e2380}.app-form-popup-bar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;border-bottom:1px solid #dce7e9;background:#fff;color:#174b52}.app-form-popup-bar strong{font-size:16px}.app-form-popup-close{width:36px;height:36px;border-radius:10px;background:#edf3f3;color:#174b52;font-size:25px;line-height:1}.app-form-popup-dialog>.ws-form{display:block;width:100%;max-width:none;max-height:calc(min(94dvh,980px) - 62px);overflow:auto;margin:0;border:0;border-radius:0;box-shadow:none}.app-form-popup-dialog>.ws-form[hidden]{display:block!important}@media(max-width:700px){.app-form-popup{padding:0;align-items:stretch}.app-form-popup-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}.app-form-popup-bar{padding:10px 14px}.app-form-popup-dialog>.ws-form{max-height:calc(100dvh - 58px);padding:14px}.app-form-popup-dialog>.ws-form .ws-form-grid{grid-template-columns:minmax(0,1fr)}.app-form-popup-dialog>.ws-form .ws-field.full{grid-column:auto}}
.app-form-popup-dialog>.admin-invite,.app-form-popup-dialog>.admin-role-editor{display:grid;gap:14px;width:100%;max-width:none;max-height:calc(min(94dvh,980px) - 62px);overflow:auto;margin:0;padding:18px;border:0;border-radius:0;box-shadow:none;background:#fff}.app-form-popup-dialog>.admin-role-editor{display:grid;grid-template-columns:minmax(0,1fr)}

@media(max-width:700px){.app-form-popup-dialog>.admin-invite,.app-form-popup-dialog>.admin-role-editor{max-height:calc(100dvh - 58px);padding:14px}}

.admin-invite[hidden],.admin-role-editor[hidden]{display:none!important}

.app-form-popup-dialog form>h2:first-child{display:none}
.module-view-toolbar{display:flex;justify-content:flex-end;margin:0 0 10px}.module-view-toolbar label{display:flex;align-items:center;gap:8px;color:#668087;font-size:12px;font-weight:650}.module-view-toolbar select{min-width:250px;padding:9px 34px 9px 12px;border:1px solid #dce7e9;border-radius:10px;background:#fff;color:#174b52;font:inherit;font-size:12px}.view-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));align-items:start;gap:12px}.view-grid>.ws-item,.view-grid>.objective-card,.view-grid>.admin-role-card{margin:0;min-width:0}.view-card-list>.ws-item,.view-card-list>.objective-card,.view-card-list>.admin-role-card{border-radius:16px;box-shadow:0 8px 22px #12383f0c}.view-grouped-list{display:grid!important;gap:14px}.module-view-group{min-width:0}.module-view-group-title{margin:0 0 8px;padding:8px 11px;border-radius:9px;background:#edf4f1;color:#31575d;font-size:13px}.module-view-group-items{display:grid;gap:10px}.view-accordion{display:grid!important;gap:9px}.view-accordion-toggle{float:right;position:relative;z-index:1;width:28px;height:28px;margin:0 0 4px 8px;border-radius:8px;background:#eaf3ef;color:#174b52;font-size:17px}.view-collapsed>:not(.view-accordion-toggle):not(.ws-item-top):not(.objective-card-head):not(h3){display:none!important}.view-horizontal-list{display:flex!important;gap:12px;overflow-x:auto;padding:2px 0 12px;scroll-snap-type:x proximity}.view-horizontal-list>.ws-item,.view-horizontal-list>.objective-card,.view-horizontal-list>.admin-role-card{flex:0 0 min(360px,86vw);margin:0;scroll-snap-align:start}.view-data-grid{display:grid!important;gap:0;border:1px solid #dce7e9;border-radius:12px;overflow-x:auto;background:#fff}.view-data-grid>.ws-item,.view-data-grid>.objective-card,.view-data-grid>.admin-role-card{display:block;margin:0;border:0;border-bottom:1px solid #e5ecee;border-radius:0;box-shadow:none}.view-data-grid>.ws-item:nth-child(even),.view-data-grid>.admin-role-card:nth-child(even){background:#f8fbfa}.view-data-grid>.ws-item:last-child,.view-data-grid>.admin-role-card:last-child{border-bottom:0}.view-data-grid .objective-card{margin-left:0}.view-data-grid>.module-view-group{min-width:650px}.view-data-grid .module-view-group-items{gap:0}
@media(max-width:700px){.module-view-toolbar{justify-content:stretch}.module-view-toolbar label{width:100%;justify-content:space-between}.module-view-toolbar select{min-width:0;flex:1;max-width:75vw}.view-grid{grid-template-columns:minmax(0,1fr)!important}.view-horizontal-list>.ws-item,.view-horizontal-list>.objective-card,.view-horizontal-list>.admin-role-card{flex-basis:88vw}}
.task-grouped-board{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;align-items:start;padding:12px}.task-grouped-board .task-calendar-group{min-width:0}.task-grouped-board .task-entry{margin:6px 0;padding:10px;border:1px solid #dce7e9;border-radius:11px;background:#fff}.task-grouped-board .task{display:grid!important;grid-template-columns:1fr 1fr!important;min-width:0!important;gap:6px!important;padding:7px!important;border:0!important}.task-grouped-board .task-name{grid-column:1/-1}.task-list.card-list .task-entry{margin:8px;padding:9px;border:1px solid #dce7e9;border-radius:12px;background:#fff;box-shadow:0 4px 12px #12383f0a}.task-list.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));align-items:start;gap:10px;padding:8px}.task-list.grid .task-entry{min-width:0;padding:8px;border:1px solid #dce7e9;border-radius:12px;background:#fff}.task-list.grid .task{display:grid!important;grid-template-columns:1fr 1fr!important;min-width:0!important;gap:6px!important;padding:7px!important;border:0!important}.task-list.grid .task-name,.task-list.grid .task-main{grid-column:1/-1}.task-list.horizontal-list{display:flex;gap:10px;overflow-x:auto;padding:8px}.task-list.horizontal-list .task-entry{flex:0 0 min(850px,90vw);border:1px solid #dce7e9;border-radius:12px;background:#fff}.task-list.accordion .task-entry{position:relative}.task-view-toggle{position:absolute;z-index:2;right:7px;top:7px;width:28px;height:28px;border-radius:8px;background:#edf4f1;color:#174b52;font-size:18px}.task-entry.view-collapsed .task-expanded,.task-entry.view-collapsed .task-comments,.task-entry.view-collapsed .task-details{display:none!important}
@media(max-width:700px){.task-list.grid{grid-template-columns:minmax(0,1fr)}.task-list.horizontal-list .task-entry{flex-basis:90vw}}

/* Community groups and internal feed */
.community-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:8px 0 24px}.community-toolbar{display:flex;gap:12px;align-items:center;margin-bottom:18px}.community-toolbar input{flex:1;min-width:180px}.community-toolbar select,.community-toolbar input,.community-group input,.community-group select,.community-group textarea,.community-post input,.community-post select,.community-post textarea,.community-dialog input,.community-dialog select,.community-dialog textarea{border:1px solid #dce5df;border-radius:12px;padding:11px 13px;font:inherit;background:#fff;color:#17332c}.community-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px}.community-group,.community-post{border:1px solid #e0e8e3;border-radius:18px}.community-card-title,.community-post-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.community-card-title>div{flex:1}.community-card-title h2,.community-post-heading h2{font-size:19px;margin:0}.community-icon{font-size:25px;background:#eaf5ef;border-radius:14px;padding:12px}.community-meta{display:flex;gap:8px 18px;flex-wrap:wrap;color:#73817b;font-size:13px;margin:10px 0}.community-meta span+span:before{content:'·';margin-right:12px;color:#b1beb7}.community-actions,.community-dialog-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.community-actions button,.community-post-heading>button,.community-links button,.community-comments button,.community-dialog-actions button,.community-links button{border:1px solid #dce6e0;border-radius:10px;background:#fff;padding:8px 12px;color:#176c54;cursor:pointer}.community-feed{display:grid;gap:16px;max-width:1050px}.community-post-heading{align-items:flex-start}.community-post-heading>div{flex:1}.community-post-heading h2{margin:9px 0}.community-post-body{font-size:15px;line-height:1.65;margin:16px 0;overflow-wrap:anywhere}.community-image{display:block;max-width:min(100%,680px);max-height:460px;object-fit:contain;border-radius:14px;margin:10px 0}.community-links{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;background:#f5faf7;border-radius:12px}.community-comments{border-top:1px solid #edf1ee;margin-top:15px;padding-top:8px}.community-comments h3{font-size:15px}.community-comments p{padding:7px 0;border-bottom:1px solid #f0f3f1}.community-comments small{color:#77827d}.community-comments form{display:flex;gap:8px}.community-comments input{flex:1;min-width:0}.community-publish-control{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px dashed #c8dbd0;background:#f6faf7;border-radius:12px;margin:12px 0;color:#35574b;font-size:14px}.community-publish-control input{accent-color:#16785e}.community-backdrop{position:fixed;inset:0;z-index:10050;background:#102a2480;display:grid;place-items:center;padding:18px}.community-dialog{background:#fff;width:min(720px,100%);max-height:min(92dvh,940px);overflow:auto;border-radius:22px;box-shadow:0 24px 80px #102a2438;padding:26px}.community-dialog form{display:grid;gap:14px}.community-dialog h2{margin:0 0 6px}.community-dialog label{display:grid;gap:7px;font-weight:600;color:#2c493e}.community-dialog label small{font-weight:400;color:#697970}.community-dialog input,.community-dialog textarea,.community-dialog select{width:100%;box-sizing:border-box}.community-dialog select[multiple]{min-height:145px}.community-dialog .community-form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.community-dialog .community-check{display:flex;align-items:center;flex-direction:row;font-weight:500}.community-dialog .community-check input{width:auto}.community-dialog-actions{justify-content:flex-end}.community-dialog-actions .primary{background:#14785c;color:white;border:0}.community-group[hidden]{display:none}
@media(max-width:700px){.community-heading{align-items:flex-start;flex-direction:column}.community-toolbar{align-items:stretch;flex-direction:column}.community-dialog{padding:18px;border-radius:18px}.community-dialog .community-form-row{grid-template-columns:1fr}.community-comments form{flex-direction:column}}

/* Rich comments: image attachments, emoji and organization mentions */
.community-comment{padding:10px 0;border-bottom:1px solid #edf1ee;overflow-wrap:anywhere}.community-comment-time{color:#839089;font-size:11px;margin-left:8px}.community-edited-note{font-size:10px;color:#87948e;margin-left:5px;font-style:italic}.community-edit-comment{font-size:11px!important;padding:3px 7px!important;border:0!important;color:#647b70!important;background:transparent!important}.community-comment-image{display:block;max-width:min(100%,360px);max-height:280px;object-fit:contain;margin:8px 0;border-radius:12px;border:1px solid #e7ece9}.community-comments form{display:grid;gap:8px;position:relative}.community-comments form>textarea{width:100%;resize:vertical;min-height:58px;box-sizing:border-box;border:1px solid #dce5df;border-radius:12px;padding:10px 12px;font:inherit}.community-comment-compose{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.community-emoji-row{display:flex;gap:3px}.community-emoji-row button{padding:5px 7px;border:0;background:#f2f6f3;border-radius:9px;cursor:pointer;font-size:17px}.community-image-pick{position:relative;display:inline-flex;align-items:center;cursor:pointer;color:#176c54;background:#eff7f2;border-radius:9px;padding:7px 10px;font-size:13px}.community-comment-compose>button[type=submit]{margin-left:auto;background:#176c54;color:#fff;border:0;border-radius:9px;padding:8px 14px;cursor:pointer}.community-comment-compose>[data-cancel-comment]{border:1px solid #dce5df;border-radius:9px;padding:8px 12px;background:#fff;cursor:pointer}.community-mention-suggestions{position:absolute;z-index:4;bottom:100%;left:0;max-height:240px;overflow:auto;min-width:min(100%,320px);display:grid;background:#fff;border:1px solid #dce5df;border-radius:12px;box-shadow:0 12px 35px #1e3c3122}.community-mention-suggestions[hidden]{display:none}.community-mention-suggestions button{display:flex;flex-direction:column;align-items:flex-start;border:0;border-bottom:1px solid #edf1ee;background:#fff;padding:9px 12px;cursor:pointer}.community-mention-suggestions button:hover{background:#f0f7f3}.community-mention-suggestions small{color:#78857f;font-size:11px}

/* Fullscreen comment image viewer and draft attachment preview */
.community-comment-image-open{display:inline-grid;justify-items:start;max-width:100%;padding:0!important;border:0!important;background:transparent!important;text-align:left;cursor:zoom-in}.community-comment-image-open small{display:block;color:#68776f;font-size:12px;padding:4px 2px}.community-image-preview{position:relative;display:flex;align-items:center;justify-content:center;min-height:80px;max-height:250px;background:#f3f7f4;border:1px solid #e0e8e3;border-radius:13px;padding:8px}.community-image-preview[hidden]{display:none}.community-image-preview img{max-width:100%;max-height:225px;object-fit:contain;border-radius:8px}.community-image-preview button{position:absolute;right:12px;top:12px;width:32px;height:32px;border:0;border-radius:50%;background:#1a2c27d9;color:#fff;font-size:22px;line-height:1;cursor:pointer}.community-image-description{display:grid;gap:5px;color:#65736d;font-size:12px}.community-image-description[hidden]{display:none!important}.community-image-description input{padding:8px 10px;border:1px solid #dce5df;border-radius:10px;font:inherit}.community-image-viewer{position:fixed;inset:0;z-index:10100;background:#07110ff2;display:flex;align-items:center;justify-content:center;padding:0}.community-image-viewer figure{margin:0;width:100vw;height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center}.community-image-viewer img{display:block;width:100vw;height:calc(100dvh - 36px);object-fit:contain}.community-image-viewer figcaption{max-width:92vw;color:#fff;text-align:center;padding:8px 12px;font-size:14px}.community-image-viewer-close{position:fixed;right:18px;top:16px;z-index:1;width:44px;height:44px;border:1px solid #ffffff6b;border-radius:50%;background:#12231e;color:#fff;font-size:30px;line-height:1;cursor:pointer}

/* Size image popup to its natural pixel dimensions, capped by the viewport. */
.community-image-viewer{padding:12px}.community-image-viewer figure{width:auto;height:auto;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.community-image-viewer img{width:auto;height:auto;max-width:calc(100vw - 24px);max-height:calc(100dvh - 64px);object-fit:contain}.community-post-image-open{display:inline-grid;justify-items:start;max-width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:zoom-in}.community-post-image-open small{color:#62746b;font-size:12px}

/* Admin system diagnostics */
.system-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;color:#68766f;font-size:13px}.system-report-toolbar>div{display:flex;gap:8px}.system-report-alert{padding:14px 16px;border-radius:13px;margin-bottom:16px;font-weight:650}.system-report-alert.warning{background:#fff6dc;color:#76550d;border:1px solid #f2d88d}.system-report-alert.critical{background:#fff0ed;color:#9b3425;border:1px solid #efb2a5}.system-health-cards>.ws-card{min-width:0}.system-health-cards .ws-card>small{display:block;color:#74827b;margin-bottom:10px}.system-health-cards .ws-card>strong{display:block;margin:3px 0 8px}.system-health-cards .ws-card>p,.system-report-note,.system-report-footnote{color:#708078;font-size:13px;line-height:1.55}.system-health-badge{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:650;background:#f0f2f1;color:#596760}.system-health-badge:before{content:'';width:7px;height:7px;border-radius:50%;background:currentColor}.system-health-badge.online{background:#e8f5ee;color:#16714f}.system-health-badge.pending{background:#fff5db;color:#8b6500}.system-health-badge.offline{background:#eef1f1;color:#596760}.system-health-badge.error{background:#ffedeb;color:#af342c}.system-storage-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px;margin:18px 0}.system-storage-values>div{display:grid;gap:5px}.system-storage-values small{font-size:12px;color:#75817b}.system-storage-values strong{font-size:18px;color:#18372d}.system-storage-bar{height:11px;border-radius:99px;background:#edf2ee;overflow:hidden}.system-storage-bar span{height:100%;display:block;border-radius:inherit;background:#21845e;transition:width .3s ease}.system-storage-bar span.warning{background:#e4ad37}.system-storage-bar span.critical{background:#d64b3f}.system-threshold{display:flex;align-items:center;gap:8px;color:#5e6f67;font-size:13px;margin-top:14px}.system-threshold input{width:76px;padding:7px 8px;border:1px solid #dce5df;border-radius:9px}.system-dashboard-link{display:inline-flex;text-decoration:none;margin-top:5px}.system-module-card{margin-top:16px}.system-module-card>.ws-section-title p{margin:5px 0;color:#75817b}.system-events{display:grid;gap:8px}.system-event{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid #edf1ee}.system-event strong{font-weight:550;flex:1}.system-event small{color:#78857f}.system-report-footnote{margin:14px 2px}.system-storage-cards{margin-top:16px}.system-report-footnote{background:#f5f8f6;padding:12px 14px;border-radius:12px}
@media(max-width:700px){.system-report-toolbar{align-items:flex-start;flex-direction:column}.system-health-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.system-event{align-items:flex-start}.system-report-toolbar>div{width:100%}.system-report-toolbar button{flex:1}}@media(max-width:420px){.system-health-cards{grid-template-columns:1fr}}

/* Keep the administrator menu reachable above open workspace dialogs. */
.top{position:relative;z-index:10020}.admin-corner{z-index:10022}.admin-corner-menu{z-index:10023}.admin-corner>summary{position:relative;z-index:1;pointer-events:auto}
/* Account menu and live Supabase state */
.sync-pill[data-state="online"]:before{background:#20a66a;animation:sync-live-pulse 1.6s ease-out infinite}
@keyframes sync-live-pulse{0%{box-shadow:0 0 0 0 #20a66a88}70%{box-shadow:0 0 0 7px #20a66a00}100%{box-shadow:0 0 0 0 #20a66a00}}
.account-menu-wrap{position:relative;z-index:10024}
.account>#logoutBtn{display:none!important}
.account-profile-button{display:flex;align-items:center;gap:9px;max-width:230px;padding:5px 9px 5px 5px;border:1px solid #dce7e9;border-radius:13px;background:#fff;color:#12383f;text-align:left}
.account-profile-button:hover,.account-profile-button[aria-expanded="true"]{border-color:#b9d6c7;background:#f8fbf9}
.account-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;overflow:hidden;border-radius:11px;background:#e5f7d0;color:#174b52;font-size:11px;font-weight:850}
.account-avatar img{width:100%;height:100%;object-fit:cover}
.account-profile-copy{display:grid;min-width:0;line-height:1.25}.account-profile-copy strong{overflow:hidden;max-width:145px;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.account-profile-copy small{overflow:hidden;max-width:145px;text-overflow:ellipsis;white-space:nowrap;color:#71868b;font-size:10px}
.account-chevron{margin-left:auto;color:#71868b;font-size:14px}
.account-menu-panel{position:absolute;top:calc(100% + 9px);right:0;z-index:10030;width:min(370px,calc(100vw - 24px));max-height:min(78dvh,720px);overflow:auto;padding:16px;border:1px solid #dce7e9;border-radius:17px;background:#fff;box-shadow:0 20px 55px #12383f26}
.account-menu-panel[hidden]{display:none}.account-menu-panel>header{display:flex;align-items:center;gap:11px;padding-bottom:13px;border-bottom:1px solid #edf1f2}.account-avatar-large{width:44px;height:44px;border-radius:14px;font-size:13px}.account-menu-panel>header>div:last-child{display:grid;min-width:0}.account-menu-panel>header strong{color:#12383f;font-size:14px}.account-menu-panel>header small{overflow:hidden;color:#71868b;font-size:11px;text-overflow:ellipsis}
.account-access-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:13px 0}.account-access-summary>span,.account-access-summary>div{display:grid;gap:3px;min-width:0}.account-access-summary>div{grid-column:1/-1;padding:9px 10px;border-radius:10px;background:#f5f8f6}.account-access-summary b{color:#71868b;font-size:10px;font-weight:650}.account-access-summary strong{overflow-wrap:anywhere;color:#315b4c;font-size:11px}.account-access-summary p{margin:0;color:#536f65;font-size:10px;line-height:1.5}
#accountProfileForm{display:grid;gap:9px;padding-top:12px;border-top:1px solid #edf1f2}#accountProfileForm label{display:grid;gap:4px;color:#567168;font-size:10px;font-weight:700}#accountProfileForm input{width:100%;min-width:0;padding:9px 10px;border:1px solid #dce7e9;border-radius:9px;background:#fff;color:#24483e;font:inherit;font-size:12px}#accountProfileForm .primary{padding:10px 12px;font-size:11px}
.account-menu-note{color:#71868b;font-size:9px;line-height:1.45}.account-menu-panel #accountProfileStatus{min-height:0;color:#9e6530;font-size:10px}.account-menu-panel #accountProfileStatus:empty{display:none}.account-menu-panel #accountProfileStatus[data-state="success"]{color:#197456}.account-menu-panel #accountProfileStatus[data-state="error"]{color:#b74438}
.account-logout{width:100%;margin-top:10px;padding:10px;border:1px solid #f0dcda;border-radius:10px;background:#fff8f7;color:#a84b42;font-size:11px;font-weight:750;text-align:left}
@media(max-width:760px){.account-profile-button{max-width:180px}.account-profile-copy strong,.account-profile-copy small{max-width:105px}.account-menu-panel{right:0;width:min(370px,calc(100vw - 20px));max-height:70dvh}.account{justify-content:flex-end;flex-wrap:wrap}.account-menu-wrap{flex:none}}

/* Explicit button control for the administrator menu. */
.admin-corner>button#adminToggle{list-style:none;cursor:pointer;padding:10px 12px;border:1px solid #dce7e9;border-radius:12px;background:#fff;color:#174b52;font:inherit;font-size:13px;font-weight:750;white-space:nowrap}.admin-corner[data-open="true"]>button#adminToggle{background:#e5f7d0}.admin-corner-menu[hidden]{display:none!important}

.admin-menu-icon{display:inline-grid;place-items:center;width:22px;min-width:22px;margin-right:9px;font-size:15px;line-height:1}.admin-corner-menu button{display:flex;align-items:center;gap:0}.admin-corner-menu button span:last-child{flex:1}
.project-linked-goals{margin:16px 0;padding:14px;border:1px solid #dce7e9;border-radius:14px;background:#f8fbfa}.project-linked-goals>.ws-section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 8px}.project-linked-goals .ws-section-title h3{margin:0;color:#174b52;font-size:15px}.project-linked-objectives{display:grid;gap:7px;margin-top:10px}.project-linked-objective{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 12px;border:1px solid #e2ebea;border-radius:10px;background:#fff}.project-linked-objective>div{min-width:0}.project-linked-objective strong,.project-linked-objective small{display:block}.project-linked-objective strong{color:#174b52;font-size:13px}.project-linked-objective small{margin-top:4px;color:#668087;font-size:11px;overflow-wrap:anywhere}.project-linked-objective>span{font-size:14px;font-weight:750;color:#17775d;white-space:nowrap}.project-linked-objective>small{font-size:11px;color:#668087;white-space:nowrap}.project-linked-objective.child{margin-left:22px;background:#fbfdfc}.project-linked-goals .ws-item-buttons{align-items:center}.project-linked-goals .ws-item-buttons button{padding:7px 10px;border-radius:9px;background:#e9f3ef;color:#175b4c;font-size:12px;font-weight:700}.project-task-section>.ws-section-title .ws-item-buttons{display:flex;align-items:center;gap:8px}.project-task-section>.ws-section-title button{padding:7px 10px;border-radius:9px;background:#e9f3ef;color:#175b4c;font-size:12px;font-weight:700}
@media(max-width:700px){.project-linked-objective{grid-template-columns:minmax(0,1fr) auto}.project-linked-objective>small{grid-column:1/-1}.project-linked-objective.child{margin-left:10px}.project-linked-goals{padding:10px}}

.project-kpi-list{margin:12px 0;padding:13px;border:1px solid #dce7e9;border-radius:12px;background:#fff}.project-kpi-list h4{margin:0 0 10px;color:#174b52}.project-kpi-head,.project-kpi-row{display:grid;grid-template-columns:1fr 2fr 1fr 1fr 1.2fr;gap:10px;align-items:center}.project-kpi-head{padding:8px;background:#f2f7f5;color:#668087;font-size:11px;font-weight:700}.project-kpi-row{padding:9px 8px;border-bottom:1px solid #edf1f1;font-size:12px}.project-kpi-row:last-child{border-bottom:0}.project-kpi-row>*{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){.project-kpi-head{display:none}.project-kpi-row{grid-template-columns:1fr 1fr}.project-kpi-row>*:nth-child(2){grid-column:1/-1}}
.project-composer{margin-top:18px;padding:15px;border:1px solid #d9e6e2;border-radius:16px;background:#f8fbfa}.project-composer-heading h3{margin:0;color:#174b52}.project-composer-heading p{margin:5px 0 12px;color:#668087;font-size:12px}.project-composer-sections{display:grid;gap:9px}.project-composer-section{min-width:0;border:1px solid #dce7e9;border-radius:12px;background:#fff;overflow:hidden}.project-composer-section>summary{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;cursor:pointer;color:#174b52;font-weight:750;list-style:none}.project-composer-section>summary::-webkit-details-marker{display:none}.project-composer-section>summary span{min-width:26px;padding:3px 8px;border-radius:99px;background:#e9f3ef;text-align:center;font-size:11px}.project-draft-list{display:grid;gap:6px;padding:0 10px 8px}.project-draft-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 9px;border:1px solid #e6eded;border-radius:10px;background:#fbfdfc}.project-draft-code{padding:4px 6px;border-radius:6px;background:#edf3f3;color:#31575d;font-size:10px;font-weight:800;white-space:nowrap}.project-draft-main{min-width:0}.project-draft-main strong,.project-draft-main small{display:block;overflow:hidden;text-overflow:ellipsis}.project-draft-main strong{color:#183f43;font-size:12px;white-space:nowrap}.project-draft-main small{margin-top:3px;color:#6b8285;font-size:10px;white-space:nowrap}.project-draft-actions{display:flex;gap:3px}.project-draft-actions button{width:26px;height:26px;padding:0;border-radius:7px;background:#edf4f1;color:#31575d;font-weight:750}.project-draft-actions button:last-child{background:#fbefed;color:#9a4335}.project-draft-empty{padding:8px 4px;color:#839497;font-size:11px}.project-add-draft{margin:0 10px 10px;padding:8px 11px;border-radius:9px;background:#eff5f2;color:#17624d;font-size:12px;font-weight:700}.project-draft-editor{padding:12px 14px;border-top:1px solid #edf1f1;background:#fbfdfc}.project-draft-editor[hidden]{display:none}.project-draft-editor .ws-field small{display:block;color:#73878a;font-size:10px}.project-auto-kpi{display:flex;align-items:center;gap:8px;font-weight:700}.project-auto-kpi input{width:auto}.project-create-form{max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}.project-create-form>.actions{position:sticky;bottom:0;padding:10px 0 2px;background:#fff}@media(max-width:700px){.project-composer{padding:10px}.project-draft-row{gap:6px;padding:7px}.project-draft-code{font-size:9px}.project-draft-actions button{width:24px;height:24px}.project-create-form{max-height:calc(100dvh - 50px)}}

/* Integrated team chat */
.chat-app{display:grid;grid-template-columns:260px minmax(0,1fr) 230px;min-height:min(760px,calc(100dvh - 180px));height:calc(100dvh - 190px);max-height:900px;overflow:hidden;border:1px solid #dce7e4;border-radius:20px;background:#fff;box-shadow:0 18px 48px #183f4310}.chat-sidebar{display:flex;flex-direction:column;min-width:0;border-right:1px solid #e7eeee;background:#f8fbfa}.chat-sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:20px 16px 12px}.chat-sidebar-head .eyebrow{font-size:10px}.chat-sidebar-head h1{margin:5px 0 0;color:#174b52;font-size:22px}.chat-new-channel{width:36px;height:36px;border:0;border-radius:11px;background:#16785e;color:white;font-size:22px;cursor:pointer}.chat-search{display:flex;align-items:center;gap:8px;margin:0 12px 14px;padding:9px 11px;border:1px solid #e0e9e7;border-radius:11px;background:white;color:#67817d}.chat-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:12px}.chat-channel-section{flex:1;overflow-y:auto;padding:4px 9px}.chat-channel-section>small{display:block;padding:8px;color:#829693;font-size:10px;font-weight:800;letter-spacing:.08em}.chat-channel{display:flex;width:100%;align-items:center;gap:10px;margin:2px 0;padding:10px;border:0;border-radius:11px;background:transparent;color:#385b5a;text-align:left;cursor:pointer}.chat-channel:hover,.chat-channel.active{background:#e7f3ee;color:#12684f}.chat-channel>span:first-child{font-size:17px}.chat-channel-text{flex:1;min-width:0}.chat-channel-text strong,.chat-channel-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-channel-text strong{font-size:12px}.chat-channel-text small{margin-top:3px;color:#829693;font-size:10px}.chat-channel i{width:7px;height:7px;border-radius:50%;background:#36b882}.chat-no-channels{padding:10px;color:#829693;font-size:12px}.chat-new-channel-wide{margin:10px 12px;padding:10px;border:1px dashed #c8d9d4;border-radius:10px;background:transparent;color:#176b57;font-size:12px;font-weight:700;cursor:pointer}.chat-sync-note{padding:12px 14px;border-top:1px solid #e7eeee;color:#18815f;font-size:10px}.chat-sync-note.local{color:#a8791e}.chat-main{display:flex;flex-direction:column;min-width:0;background:#fff}.chat-header{display:flex;align-items:center;gap:12px;min-height:75px;padding:14px 20px;border-bottom:1px solid #e8efed}.chat-channel-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eaf4ef;font-size:20px}.chat-channel-heading{flex:1;min-width:0}.chat-channel-heading h2,.chat-header h2{margin:0;color:#173e40;font-size:16px}.chat-channel-heading p,.chat-header p{margin:4px 0 0;color:#829693;font-size:11px}.chat-head-action{width:35px;height:35px;border:1px solid #e3ebe9;border-radius:10px;background:#fff;color:#416965;font-size:20px;cursor:pointer}.chat-message-list{flex:1;overflow:auto;padding:18px clamp(14px,3vw,34px);background:linear-gradient(180deg,#fff,#fcfefd)}.chat-message{display:flex;align-items:flex-start;gap:10px;margin:0 0 18px}.chat-avatar{display:grid;flex:none;place-items:center;width:32px;height:32px;border-radius:11px;background:#d8eae4;color:#216a56;font-size:12px;font-weight:800}.chat-message-body{min-width:0;max-width:min(86%,680px)}.chat-message.mine{flex-direction:row-reverse}.chat-message.mine .chat-message-body{display:flex;flex-direction:column;align-items:flex-end}.chat-message-meta{display:flex;align-items:center;gap:9px;margin:0 2px 5px;color:#345756;font-size:11px}.chat-message-meta time{color:#9aa9a6;font-size:10px}.chat-bubble{padding:10px 13px;border:1px solid #e9efed;border-radius:4px 14px 14px;background:#f5f8f7;color:#264746;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.chat-message.mine .chat-bubble{border-color:#d9eee5;border-radius:14px 4px 14px 14px;background:#e9f6ef}.chat-mention{color:#087b60;font-weight:750}.chat-reply-quote{max-width:100%;margin:0 0 5px;padding:6px 9px;border-left:3px solid #54a78b;border-radius:4px;background:#f5f8f7;color:#708582;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-message-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px}.chat-message-actions>button{padding:3px 6px;border:0;border-radius:7px;background:transparent;color:#829693;font-size:10px;cursor:pointer}.chat-message-actions>button:hover{background:#eff5f2;color:#216a56}.chat-reaction-list{display:flex;gap:4px}.chat-reaction-list button{border:1px solid #e3ebe9;border-radius:20px;background:white;cursor:pointer}.chat-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}.chat-image-thumb{width:170px;padding:5px;border:1px solid #e0e9e7;border-radius:12px;background:#fff;text-align:left;cursor:zoom-in}.chat-image-thumb img{display:block;width:100%;height:115px;border-radius:8px;object-fit:cover}.chat-image-thumb span{display:block;padding:5px 2px 1px;overflow:hidden;color:#6c817e;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.chat-file{display:block;padding:9px 11px;border:1px solid #e1e9e7;border-radius:10px;background:#f8fbfa;color:#276653;font-size:11px;text-decoration:none}.chat-empty-messages{display:flex;height:100%;min-height:200px;flex-direction:column;align-items:center;justify-content:center;color:#778c88;text-align:center}.chat-empty-messages span{font-size:32px}.chat-empty-messages strong{margin-top:10px;color:#315653;font-size:14px}.chat-empty-messages small{margin-top:5px;font-size:11px}.chat-composer-wrap{padding:12px 18px 13px;border-top:1px solid #e9efed;background:#fff}.chat-composer{display:flex;align-items:flex-end;gap:8px;padding:7px;border:1px solid #dfe9e6;border-radius:15px;background:#fbfdfc}.chat-composer>button{flex:none;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:#4f7770;font-size:20px;cursor:pointer}.chat-composer>button:hover{background:#edf5f1}.chat-composer textarea{flex:1;min-width:0;max-height:120px;resize:vertical;padding:9px 4px;border:0;outline:0;background:transparent;color:#244645;font:inherit;font-size:13px}.chat-composer .chat-send{width:auto;padding:0 13px;background:#14785c;color:white;font-size:12px;font-weight:750}.chat-composer-hint{display:block;margin:7px 4px 0;color:#99a8a5;font-size:9px}.chat-replying{display:flex;align-items:center;gap:6px;margin:0 0 8px;padding:7px 10px;border-radius:9px;background:#eff7f3;color:#568074;font-size:11px}.chat-replying button{margin-left:auto;border:0;background:transparent;color:#62857c;font-size:18px;cursor:pointer}.chat-pending-files{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:7px}.chat-pending-files span{padding:5px 7px;border-radius:7px;background:#edf5f1;color:#4b7167;font-size:10px}.chat-pending-files button{border:0;background:transparent;color:#995b50;cursor:pointer}.chat-info{padding:18px 13px;border-left:1px solid #e8efed;background:#fbfdfc}.chat-info-card{margin:0 0 10px;padding:13px;border:1px solid #e8efed;border-radius:13px;background:#fff}.chat-info-card>span{font-size:20px}.chat-info-card h3{margin:8px 0 5px;color:#315653;font-size:12px}.chat-info-card strong{color:#315653;font-size:12px}.chat-info-card p{margin:6px 0 0;color:#81938f;font-size:10px;line-height:1.5}.chat-loading,.chat-load-error{padding:30px;color:#5e7974}.chat-load-error{margin:30px;padding:20px;border:1px solid #ead6d2;border-radius:14px;background:#fff9f7}.chat-dialog,.chat-lightbox{max-width:calc(100vw - 28px);border:0;border-radius:18px;box-shadow:0 24px 80px #102e2b44}.chat-dialog{width:min(500px,calc(100vw - 28px));padding:0}.chat-dialog::backdrop,.chat-lightbox::backdrop{background:#102d2bcc;backdrop-filter:blur(4px)}.chat-dialog-form{display:grid;gap:13px;padding:20px}.chat-dialog-form header{display:flex;align-items:center;justify-content:space-between}.chat-dialog-form header h2{margin:4px 0;color:#174b52}.chat-dialog-form header button{border:0;background:transparent;color:#708783;font-size:25px;cursor:pointer}.chat-dialog-form>label{display:grid;gap:6px;color:#476763;font-size:12px;font-weight:700}.chat-dialog-form input,.chat-dialog-form select{width:100%;min-width:0;padding:10px 11px;border:1px solid #dce7e4;border-radius:10px;background:#fff;color:#345956;font:inherit;font-size:12px}.chat-dialog-form label small{color:#829693;font-size:10px;font-weight:400}.chat-dialog-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.chat-lightbox{position:fixed;inset:50% auto auto 50%;width:max-content;max-width:min(94vw,1200px);max-height:92dvh;padding:14px;transform:translate(-50%,-50%);background:#122f32;text-align:right}.chat-lightbox>button{position:absolute;top:7px;right:9px;width:34px;height:34px;border:0;border-radius:50%;background:#ffffffdb;color:#1d393a;font-size:24px;cursor:pointer}.chat-lightbox img{display:block;max-width:min(90vw,1150px);max-height:82dvh;object-fit:contain}.chat-lightbox p{margin:8px 3px 0;color:white;text-align:left;font-size:12px}.chat-lightbox[open]{display:block}@media(max-width:1050px){.chat-app{grid-template-columns:235px minmax(0,1fr);height:calc(100dvh - 160px)}.chat-info{display:none}}@media(max-width:650px){.chat-app{display:flex;flex-direction:column;height:calc(100dvh - 145px);min-height:510px;border-radius:14px}.chat-sidebar{flex:none;max-height:220px;border-right:0;border-bottom:1px solid #e7eeee}.chat-sidebar-head{padding:10px 12px 8px}.chat-sidebar-head h1{font-size:18px}.chat-search{margin-bottom:5px;padding:7px 9px}.chat-channel-section{display:flex;gap:5px;max-height:64px;overflow:auto;padding:2px 8px}.chat-channel-section>small{display:none}.chat-channel{width:auto;min-width:max-content;padding:7px 9px}.chat-channel-text small{display:none}.chat-new-channel-wide{display:none}.chat-sync-note{padding:6px 10px;font-size:9px}.chat-main{flex:1;min-height:0}.chat-header{min-height:60px;padding:9px 12px}.chat-message-list{padding:14px 10px}.chat-message-body{max-width:88%}.chat-composer-wrap{padding:8px 8px calc(8px + env(safe-area-inset-bottom))}.chat-composer{gap:3px}.chat-composer>button{width:31px;height:34px}.chat-composer .chat-send{padding:0 9px}.chat-composer-hint{font-size:8px}.chat-image-thumb{width:140px}.chat-image-thumb img{height:90px}.chat-dialog-form{padding:15px}.chat-dialog-actions>*{flex:1}}
.chat-emoji-dialog,.community-emoji-dialog{width:min(380px,calc(100vw - 24px));max-height:min(510px,80dvh);padding:12px;border:1px solid #dce7e4;border-radius:17px;background:#fff;box-shadow:0 24px 70px #102e2b44}.chat-emoji-dialog::backdrop,.community-emoji-dialog::backdrop{background:#102d2b66;backdrop-filter:blur(2px)}.chat-emoji-dialog header,.community-emoji-dialog header{display:flex;justify-content:space-between;align-items:center;color:#315653}.chat-emoji-dialog header button,.community-emoji-dialog header button{width:30px;height:30px;border:0;border-radius:9px;background:#f2f7f5;color:#506e67;font-size:20px;cursor:pointer}.chat-emoji-dialog input,.community-emoji-dialog input{box-sizing:border-box;width:100%;margin:9px 0;padding:9px 10px;border:1px solid #dce7e4;border-radius:10px;font:inherit;font-size:12px}.chat-emoji-dialog nav,.community-emoji-dialog nav{display:flex;gap:4px;overflow-x:auto;padding-bottom:8px}.chat-emoji-dialog nav button,.community-emoji-dialog nav button{flex:none;padding:6px 8px;border:0;border-radius:8px;background:#f3f7f5;color:#6e8580;font-size:10px;cursor:pointer}.chat-emoji-dialog nav button[aria-pressed="true"],.community-emoji-dialog nav button[aria-pressed="true"]{background:#e3f3eb;color:#176c54}.chat-emoji-grid,.community-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));max-height:300px;overflow:auto;gap:3px}.chat-emoji-grid button,.community-emoji-grid button{display:grid;place-items:center;min-width:0;aspect-ratio:1;border:0;border-radius:9px;background:transparent;font-size:23px;cursor:pointer}.chat-emoji-grid button:hover,.community-emoji-grid button:hover{background:#eff6f2;transform:scale(1.08)}.chat-emoji-grid button[hidden],.community-emoji-grid button[hidden]{display:none}.chat-emoji-dialog[open],.community-emoji-dialog[open]{position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%)}.chat-reaction-list button[aria-pressed="true"],.community-reaction-pill[aria-pressed="true"]{border-color:#91c6ae;background:#e8f6ee;color:#12684f}.chat-reaction-list button small{font-size:9px}.community-emoji-open,.community-comment-reactions>button:first-child{border:1px solid #dce6e0!important;border-radius:9px!important;background:#f5f8f6!important;color:#496e64!important;padding:6px 9px!important;font-size:12px!important;cursor:pointer}.community-comment-reactions{display:flex;align-items:center;gap:5px;margin:6px 0}.community-reaction-pill{padding:4px 8px!important;border-radius:18px!important;background:#f6faf7!important;color:#43685d!important;font-size:12px!important}.community-comment-reactions .community-reaction-pill{font-size:11px!important}
/* Professional groups hub and group spaces */
.group-hub{display:grid;gap:14px}.group-hub-toolbar{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #e1e9e6;border-radius:15px;background:#fff}.group-search{display:flex;align-items:center;gap:8px;min-width:170px;padding:9px 11px;border:1px solid #e2eae7;border-radius:10px;background:#fff;color:#6c8580}.group-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:12px}.group-hub-toolbar>.group-search{flex:1}.group-hub-toolbar>select{max-width:190px;padding:9px 11px;border:1px solid #e2eae7;border-radius:10px;background:white;color:#42625d;font:inherit;font-size:11px}.group-view-switch{display:flex;gap:3px;padding:3px;border-radius:10px;background:#f1f6f3}.group-view-switch button{width:31px;height:29px;border:0;border-radius:8px;background:transparent;color:#719087;font-size:17px;cursor:pointer}.group-view-switch button[aria-pressed="true"]{background:#fff;color:#16785e;box-shadow:0 1px 4px #20433a17}.group-hub-summary{display:flex;justify-content:space-between;align-items:center;color:#7b8d89;font-size:11px}.group-hub-summary strong{color:#315653;font-size:13px}.group-hub-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));align-items:stretch}.community-group-hub-card{padding:0!important;overflow:hidden;background:white}.group-cover{position:relative;display:grid;place-items:center;width:100%;height:128px;border:0;border-radius:0;background:linear-gradient(125deg,#d4eee2,#83bfa9 54%,#386f65);background-position:center;background-size:cover;color:#fff;font-size:42px;cursor:pointer}.group-cover:before{position:absolute;inset:0;background:linear-gradient(0deg,#102e2a40,transparent 65%);content:''}.group-cover>span{position:relative;text-shadow:0 2px 6px #224b4440}.group-cover>i{position:absolute;right:10px;bottom:9px;padding:5px 8px;border:1px solid #ffffff62;border-radius:8px;background:#143e3a9e;color:#fff;font-size:9px;font-style:normal;font-weight:700;backdrop-filter:blur(6px)}.group-card-main{padding:13px 15px 14px}.group-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.group-card-title h2{margin:0;color:#244e49;font-size:16px}.group-card-title small{display:block;margin-top:4px;color:#81918d;font-size:10px}.group-favorite{width:31px;height:31px;border:1px solid #e6eeea;border-radius:9px;background:#fff;color:#96a6a1;font-size:18px;cursor:pointer}.group-favorite.saved{border-color:#f1e5bd;background:#fffaf0;color:#c99124}.group-card-description{display:-webkit-box;min-height:35px;margin:10px 0;color:#607a74;font-size:11px;line-height:1.55;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.group-card-stats{display:flex;gap:9px;flex-wrap:wrap;padding:9px 0;border-top:1px solid #eff3f1;border-bottom:1px solid #eff3f1;color:#728983;font-size:9px}.group-card-activity{display:flex;align-items:center;gap:7px;min-height:35px;color:#7c908a;font-size:9px}.group-card-activity strong{color:#4e6d65}.group-avatar-mini{display:inline-grid;flex:none;place-items:center;width:27px;height:27px;border-radius:9px;background:#e6f2ec;color:#276c58;font-size:10px;font-weight:800}.community-group-hub-card .community-actions{margin-top:8px}.community-group-hub-card .community-actions button{padding:7px 10px;font-size:10px}.community-group-hub-card .community-actions .primary{border:0;background:#17795d;color:#fff}.group-hub-grid.list-view{grid-template-columns:1fr}.group-hub-grid.list-view .community-group-hub-card{display:grid;grid-template-columns:190px minmax(0,1fr)}.group-hub-grid.list-view .group-cover{height:100%;min-height:190px}.group-empty{grid-column:1/-1;display:grid;justify-items:center;padding:35px;text-align:center}.group-empty>span,.group-tab-empty>span{font-size:34px}.group-empty strong,.group-tab-empty strong{margin-top:7px;color:#315653}.group-empty p,.group-tab-empty p{color:#81938f;font-size:12px}.group-detail-page{display:grid;gap:12px}.group-back-link{width:max-content;padding:5px 0;border:0;background:transparent;color:#538076;font-size:12px;cursor:pointer}.group-detail-cover{position:relative;min-height:230px;overflow:hidden;border-radius:20px;background:linear-gradient(120deg,#153f3d,#1d765c 60%,#a6d182);background-position:center;background-size:cover;color:white}.group-detail-cover:before{position:absolute;inset:0;background:linear-gradient(90deg,#092e2be8,#0e4039bb 52%,#16443b55);content:''}.group-detail-cover-overlay{position:relative;display:flex;align-items:flex-end;gap:15px;min-height:230px;padding:24px 27px}.group-detail-icon{display:grid;place-items:center;flex:none;width:64px;height:64px;border:1px solid #ffffff75;border-radius:20px;background:#ffffff26;font-size:35px;backdrop-filter:blur(8px)}.group-detail-cover-overlay>div:nth-child(2){flex:1;min-width:0}.group-detail-label{margin-bottom:7px;color:#d7f1e5;font-size:10px;font-weight:700}.group-detail-cover h1{margin:0;color:#fff;font-size:clamp(22px,3vw,32px)}.group-detail-cover p{max-width:660px;margin:6px 0;color:#e5f3ec;font-size:12px;line-height:1.5}.group-detail-stats{display:flex;gap:12px;flex-wrap:wrap;color:#e1f2e9;font-size:10px}.group-detail-actions{display:flex;flex-direction:column;gap:7px}.group-detail-actions button{padding:9px 12px;border:1px solid #ffffff80;border-radius:10px;background:#ffffff21;color:#fff;font-size:11px;font-weight:700;white-space:nowrap;cursor:pointer}.group-detail-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #dfe9e4;background:#fff}.group-detail-tabs button{position:relative;flex:none;padding:12px 15px;border:0;background:transparent;color:#6e8580;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.group-detail-tabs button.active{color:#14765a}.group-detail-tabs button.active:after{position:absolute;right:10px;bottom:0;left:10px;height:3px;border-radius:4px 4px 0 0;background:#198064;content:''}.group-detail-tabs button small{padding:2px 5px;border-radius:8px;background:#eef4f1;font-size:9px}.group-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;align-items:start;gap:14px}.group-post-column{display:grid;gap:12px}.group-post-start{display:flex;align-items:center;gap:9px;padding:12px 14px;border:1px solid #e2eae7;border-radius:14px;background:#fff}.group-post-start button{flex:1;padding:10px 12px;border:1px solid #e5ece9;border-radius:22px;background:#f6f9f7;color:#879893;text-align:left;font:inherit;font-size:12px;cursor:pointer}.group-post-column .community-post{margin:0}.group-detail-aside{display:grid;gap:10px}.group-detail-aside .ws-card{padding:14px}.group-detail-aside h3{margin:0 0 10px;color:#345c54;font-size:12px}.group-detail-aside p{margin:0;color:#83938f;font-size:10px}.group-pinned-link,.group-detail-aside>section>button{display:block;width:100%;margin-top:7px;padding:7px 8px;border:0;border-radius:8px;background:#f4f8f5;color:#477066;text-align:left;font:inherit;font-size:10px;cursor:pointer}.group-member-compact{display:flex;align-items:center;gap:8px;margin:8px 0;color:#45645d;font-size:10px}.group-member-compact>span:last-child{display:grid;gap:2px}.group-member-compact small{color:#92a19d;font-size:9px}.group-tab-content{display:grid;max-width:900px;gap:12px}.group-tab-content .ws-card,.group-members-panel,.group-files-panel,.group-events-layout>.ws-card{padding:20px}.group-tab-content h2,.group-members-panel h2,.group-files-panel h2,.group-events-layout h2{margin:0;color:#315653;font-size:17px}.group-tab-content p,.group-members-panel header p,.group-files-panel>p,.group-events-layout header p{color:#7d908b;font-size:12px;line-height:1.6}.group-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}.group-info-grid>div{display:grid;gap:4px;padding:11px;border-radius:10px;background:#f6f9f7}.group-info-grid small{color:#82938f;font-size:10px}.group-info-grid strong{color:#41655d;font-size:11px}.group-members-panel header,.group-events-layout header{display:flex;align-items:center;justify-content:space-between;gap:12px}.group-members-panel header p,.group-events-layout header p{margin:4px 0 0}.group-members-panel>.group-search{max-width:420px;margin:13px 0}.group-member-list{display:grid}.group-member-row{display:flex;align-items:center;gap:10px;padding:11px 2px;border-top:1px solid #edf2ef}.group-member-row>div{display:grid;flex:1;gap:3px;min-width:0}.group-member-row>div strong{overflow:hidden;color:#3f625a;font-size:12px;text-overflow:ellipsis}.group-member-row>div small{overflow:hidden;color:#8b9b96;font-size:10px;text-overflow:ellipsis}.group-role-badge{padding:5px 8px;border-radius:10px;background:#edf6f0;color:#52806e;font-size:9px}.group-member-row select{max-width:130px;padding:6px;border:1px solid #e0e9e5;border-radius:8px;background:white;color:#68827a;font-size:10px}.group-member-row>button{width:26px;height:26px;border:0;border-radius:7px;background:#fff1ee;color:#a75d4f;font-size:17px;cursor:pointer}.group-file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-top:14px}.group-file-grid>button{display:grid;gap:5px;padding:7px;border:1px solid #e5ece9;border-radius:11px;background:#fff;text-align:left;cursor:zoom-in}.group-file-grid img{width:100%;height:110px;border-radius:8px;object-fit:cover}.group-file-grid span{overflow:hidden;color:#4b6e63;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.group-file-grid small{color:#93a19d;font-size:9px}.group-events-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:start;gap:12px}.group-event-row{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid #edf2ef}.group-event-row time{display:grid;flex:none;justify-items:center;width:45px;padding:7px 4px;border-radius:10px;background:#eaf5ef;color:#33745d}.group-event-row time strong{font-size:17px}.group-event-row time small{font-size:9px}.group-event-row>div{flex:1}.group-event-row>div>strong{color:#42645c;font-size:12px}.group-event-row>div>small{display:block;margin-top:4px;color:#8c9a96;font-size:10px}.group-event-row p{margin:5px 0 0;color:#768b84;font-size:10px}.group-event-row>button{border:0;background:transparent;color:#ac786d;font-size:19px;cursor:pointer}.group-event-form{display:grid;gap:10px;padding:16px!important}.group-event-form h3{margin:0;color:#315653;font-size:13px}.group-event-form label{display:grid;gap:5px;color:#6c817b;font-size:10px}.group-event-form input,.group-event-form textarea{width:100%;box-sizing:border-box;padding:8px;border:1px solid #dfe8e4;border-radius:8px;font:inherit;font-size:11px}.group-tab-empty{display:grid;justify-items:center;padding:38px 20px;text-align:center}.group-form-head h2{margin:4px 0;color:#315653}.group-form-head p{margin:0;color:#85958f;font-size:11px}.group-cover-preview{height:130px;border-radius:12px;background-color:#eaf3ee;background-position:center;background-size:cover}.group-members-panel .group-member-row[hidden]{display:none}
@media(max-width:900px){.group-detail-layout{grid-template-columns:minmax(0,1fr)}.group-detail-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.group-events-layout{grid-template-columns:1fr}.group-event-form{grid-template-columns:repeat(2,minmax(0,1fr))}.group-event-form h3,.group-event-form>label:first-of-type,.group-event-form>label:nth-last-of-type(1){grid-column:1/-1}}
@media(max-width:650px){.group-hub-toolbar{flex-wrap:wrap}.group-hub-toolbar>.group-search{flex-basis:100%}.group-hub-toolbar>select{flex:1;max-width:none}.group-hub-grid.list-view .community-group-hub-card{grid-template-columns:110px minmax(0,1fr)}.group-hub-grid.list-view .group-cover{min-height:100%}.group-card-main{padding:10px}.group-card-stats{gap:6px}.group-detail-cover,.group-detail-cover-overlay{min-height:210px}.group-detail-cover-overlay{align-items:flex-start;flex-wrap:wrap;padding:18px}.group-detail-icon{width:45px;height:45px;border-radius:14px;font-size:25px}.group-detail-cover-overlay>div:nth-child(2){flex-basis:calc(100% - 65px)}.group-detail-actions{width:100%;flex-direction:row}.group-detail-actions button{padding:7px 9px}.group-detail-tabs button{padding:10px 11px;font-size:10px}.group-detail-aside{grid-template-columns:1fr}.group-info-grid{grid-template-columns:1fr}.group-member-row{gap:6px}.group-role-badge{font-size:8px}.group-member-row select{max-width:92px}.group-member-row>button{flex:none}.group-event-form{grid-template-columns:1fr}.group-event-form>*{grid-column:auto!important}}
/* Compact, anchored emoji popovers */
.chat-emoji-dialog,.community-emoji-dialog{position:fixed;z-index:11020;width:min(300px,calc(100vw - 20px));max-height:min(360px,calc(100dvh - 20px));margin:0;padding:10px;overflow:hidden;border:1px solid #dce7e4;border-radius:14px;background:#fff;box-shadow:0 12px 34px #173d342b;transform:none}.chat-emoji-dialog[hidden],.community-emoji-dialog[hidden]{display:none!important}.chat-emoji-dialog header,.community-emoji-dialog header{font-size:12px}.chat-emoji-dialog input,.community-emoji-dialog input{margin:7px 0;padding:7px 9px}.chat-emoji-dialog nav,.community-emoji-dialog nav{padding-bottom:6px}.chat-emoji-dialog nav button,.community-emoji-dialog nav button{padding:5px 7px}.chat-emoji-grid,.community-emoji-grid{max-height:min(210px,42dvh);grid-template-columns:repeat(8,minmax(0,1fr));gap:2px}.chat-emoji-grid button,.community-emoji-grid button{font-size:21px;border-radius:7px}
/* Horizontal, top-level navigation */
.ws-nav{position:relative;z-index:30;display:block;overflow:visible;margin:-12px 0 24px;padding:0;border:0;background:transparent;box-shadow:none}.ws-nav>.nav-root>summary{display:none}.ws-nav>.nav-root{display:block}.nav-groups{display:flex;align-items:center;gap:4px;padding:5px;overflow:visible;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}.nav-group{position:relative;align-self:center;flex:none;overflow:visible;border:0;border-radius:10px;background:transparent}.nav-group>summary{padding:9px 11px;border-radius:9px;color:#45615a;font-size:12px;font-weight:750;white-space:nowrap}.nav-group:hover>summary,.nav-group[open]>summary{background:#e8f4ed;color:#126c51}.nav-leaves{display:none;position:absolute;top:calc(100% + 5px);left:0;z-index:100;width:min(290px,calc(100vw - 22px));max-height:min(70dvh,520px);grid-template-columns:1fr;gap:2px;overflow:auto;padding:8px;border:1px solid #dce8e2;border-radius:13px;background:#fff;box-shadow:0 16px 42px #173f3524}.nav-group[open]>.nav-leaves{display:grid}.ws-nav .nav-leaves button{width:100%;padding:9px 10px;border-radius:8px;font-size:12px}.ws-nav .nav-leaves button:hover,.ws-nav .nav-leaves button.active{background:#eaf5ef;color:#116d51}@media(max-width:760px){.ws-nav{margin:-5px 0 18px}.nav-groups{width:max-content;min-width:100%;max-width:100%;overflow:visible}.nav-group>summary{padding:8px 9px;font-size:11px}.nav-leaves{position:fixed;top:auto;left:10px;max-height:65dvh}}
/* Real calendar workspace */
.calendar-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:6px 0 20px}.calendar-page-head h1{margin:5px 0}.calendar-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 15px}.calendar-stats article{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:13px 16px;border:1px solid #e1eae6;border-radius:14px;background:#fff}.calendar-stats small{color:#81928d;font-size:10px}.calendar-stats strong{grid-column:2;grid-row:1/3;align-self:center;color:#245b4d;font-size:24px}.calendar-stats strong.alert{color:#c6443c}.calendar-stats span{color:#9aa7a2;font-size:9px}.calendar-board{overflow:hidden;border:1px solid #dfe8e4;border-radius:17px;background:#fff;box-shadow:0 8px 28px #153b3210}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-bottom:1px solid #e8efec}.calendar-date-navigation,.calendar-controls{display:flex;align-items:center;gap:7px}.calendar-date-navigation>button{min-width:34px;height:34px;border:1px solid #e1e9e5;border-radius:9px;background:#fff;color:#4a6c63;font-size:19px;cursor:pointer}.calendar-date-navigation>button[data-calendar-today]{padding:0 10px;font-size:10px;font-weight:700}.calendar-date-navigation h2{min-width:150px;margin:0 0 0 5px;color:#234f45;font-size:15px}.calendar-controls select{max-width:160px;padding:8px 9px;border:1px solid #dfe8e4;border-radius:9px;background:white;color:#4a685f;font:inherit;font-size:10px}.calendar-view-tabs{display:flex;gap:2px;padding:3px;border-radius:10px;background:#f2f6f4}.calendar-view-tabs button{padding:6px 9px;border:0;border-radius:7px;background:transparent;color:#758983;font-size:10px;cursor:pointer}.calendar-view-tabs button.active{background:#fff;color:#176c53;box-shadow:0 1px 4px #20423a17;font-weight:750}.calendar-legend{display:flex;gap:10px;flex-wrap:wrap;padding:9px 13px;border-bottom:1px solid #edf2ef}.calendar-legend span{display:flex;align-items:center;gap:4px;color:#82938d;font-size:9px}.calendar-legend i{font-style:normal}.calendar-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-bottom:1px solid #e9efec;background:#f8faf9}.calendar-weekdays span{padding:8px;text-align:right;color:#80928b;font-size:9px;font-weight:800}.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.calendar-day{min-height:112px;padding:5px;border-right:1px solid #edf1ef;border-bottom:1px solid #edf1ef;background:#fff}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#fafcfb}.calendar-day-number{display:flex;justify-content:space-between;align-items:center;width:100%;padding:3px 5px;border:0;background:transparent;color:#5e766e;text-align:left;font-size:10px;cursor:pointer}.calendar-day-number span{opacity:0;color:#16805e;font-size:14px}.calendar-day:hover .calendar-day-number span{opacity:1}.calendar-day.is-today .calendar-day-number{color:#147658;font-weight:850}.calendar-day.is-today .calendar-day-number:first-letter{display:inline-block;padding:2px 5px;border-radius:50%;background:#e2f4e9}.calendar-day-items{display:grid;gap:3px}.calendar-event-card{display:flex;align-items:flex-start;gap:5px;width:100%;min-width:0;padding:4px 5px;border:0;border-left:3px solid #739389;border-radius:4px;background:#f1f6f3;color:#395e54;text-align:left;cursor:pointer}.calendar-event-card>span:last-child{display:grid;min-width:0;gap:2px}.calendar-event-card strong{display:block;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.calendar-event-card small{overflow:hidden;color:#82928d;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.kind-task{border-left-color:#d49942;background:#fff8e9}.kind-project{border-left-color:#6a80c5;background:#f1f3fb}.kind-leave{border-left-color:#58a987;background:#edf8f2}.kind-meeting{border-left-color:#bb79ae;background:#fbf2f9}.calendar-more{padding:2px 5px;color:#84938e;font-size:8px}.calendar-grid.day-mode .calendar-day{min-height:360px}.calendar-grid.day-mode .calendar-weekdays{display:none}.calendar-grid.day-mode .calendar-days{grid-template-columns:1fr}.calendar-grid.day-mode .calendar-event-card{padding:9px;font-size:12px}.calendar-agenda{display:grid;max-height:600px;overflow:auto}.calendar-agenda>section{display:grid;grid-template-columns:95px minmax(0,1fr);align-items:center;gap:10px;padding:10px 14px;border-bottom:1px solid #eef2f0}.calendar-agenda time{color:#6d837b;font-size:10px}.calendar-agenda .calendar-event-card{padding:9px 11px}.calendar-agenda .calendar-event-card strong{font-size:11px}.calendar-empty{padding:30px;text-align:center;color:#91a09a;font-size:12px}.calendar-bottom-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:12px;margin-top:12px}.calendar-bottom-grid .ws-card{padding:14px}.calendar-bottom-grid h2{margin:0 0 9px;color:#315c50;font-size:13px}.calendar-upcoming>button{display:flex;align-items:center;gap:9px;width:100%;padding:8px 2px;border:0;border-top:1px solid #edf2ef;background:transparent;text-align:left;color:#47675e;cursor:pointer}.calendar-upcoming>button time{min-width:45px;color:#73877f;font-size:9px}.calendar-upcoming>button span{display:grid;gap:3px;font-size:10px}.calendar-upcoming>button small{color:#92a09b;font-size:9px}.calendar-upcoming p,.calendar-help p{color:#81938b;font-size:10px;line-height:1.6}.calendar-help>button{padding:7px 9px;border:1px solid #e2eae6;border-radius:8px;background:#f7faf8;color:#869690;font-size:9px}.calendar-dialog,.calendar-detail-dialog{width:min(760px,calc(100vw - 22px));max-height:calc(100dvh - 24px);overflow:auto;padding:0;border:1px solid #dfe8e4;border-radius:18px;background:#fff;box-shadow:0 20px 70px #123a3040}.calendar-dialog::backdrop,.calendar-detail-dialog::backdrop{background:#0e2b2680;backdrop-filter:blur(3px)}.calendar-dialog form{padding:19px}.calendar-dialog header,.calendar-detail-dialog>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.calendar-dialog header h2,.calendar-detail-dialog h2{margin:4px 0;color:#24574a;font-size:19px}.calendar-dialog header button,.calendar-detail-dialog>header button{width:32px;height:32px;border:0;border-radius:9px;background:#f2f6f4;color:#70847c;font-size:21px;cursor:pointer}.calendar-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.calendar-field{display:grid;gap:5px;min-width:0;color:#526f65;font-size:10px;font-weight:700}.calendar-field.full{grid-column:1/-1}.calendar-field input,.calendar-field select,.calendar-field textarea{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #dfe8e4;border-radius:9px;background:#fff;color:#395b51;font:inherit;font-size:11px}.calendar-field select[multiple]{height:82px}.calendar-field small{color:#91a09b;font-size:9px;font-weight:400}.calendar-check{display:flex;align-items:center;gap:8px}.calendar-check input{width:auto}.calendar-dialog footer,.calendar-detail-dialog footer{display:flex;justify-content:flex-end;gap:7px;margin-top:15px;padding-top:12px;border-top:1px solid #edf2ef}.calendar-delete{border:1px solid #f0d5d1;border-radius:9px;background:#fff7f5;color:#b14c40;padding:8px 11px;font-size:10px}.calendar-detail-dialog{padding:18px}.calendar-type-pill{padding:5px 9px;border-radius:20px;background:#e9f5ee;color:#35725d;font-size:10px}.calendar-detail-dialog>p{color:#627a71;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.calendar-detail-date{font-weight:750}.calendar-linked-item{padding:8px 10px;border:1px solid #dce9e2;border-radius:9px;background:#f5faf7;color:#2f7259;font-size:10px;cursor:pointer}.calendar-attendees{margin-top:15px;padding-top:11px;border-top:1px solid #edf1ef}.calendar-attendees h3{color:#42665a;font-size:12px}.calendar-attendees>div{display:flex;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid #f0f4f2;font-size:10px}.calendar-attendees>div span:first-child{flex:1;color:#557369}.calendar-attendees>div span:nth-child(2){color:#879690}.calendar-attendees>div button{padding:5px 7px;border:1px solid #dfe8e3;border-radius:7px;background:#fff;color:#56736a;font-size:9px}.calendar-attendees>small{color:#899991;font-size:10px}
@media(max-width:850px){.calendar-toolbar{align-items:flex-start;flex-direction:column}.calendar-controls{width:100%;justify-content:space-between}.calendar-bottom-grid{grid-template-columns:1fr}.calendar-day{min-height:95px}.calendar-legend{gap:7px}}
@media(max-width:620px){.calendar-page-head{align-items:flex-start;flex-direction:column}.calendar-page-head>.primary{width:100%}.calendar-stats{gap:6px}.calendar-stats article{padding:9px}.calendar-stats strong{font-size:20px}.calendar-toolbar{padding:10px}.calendar-date-navigation{width:100%;gap:4px}.calendar-date-navigation h2{min-width:0;flex:1;font-size:13px}.calendar-controls{align-items:flex-start;flex-direction:column}.calendar-controls select{width:100%;max-width:none}.calendar-view-tabs{width:100%;justify-content:space-between}.calendar-view-tabs button{flex:1}.calendar-day{min-height:76px;padding:3px}.calendar-day-number{padding:3px;font-size:9px}.calendar-event-card{gap:2px;padding:3px;border-left-width:2px}.calendar-event-card>span:first-child{font-size:9px}.calendar-event-card strong{font-size:8px}.calendar-event-card small{display:none}.calendar-day-items{gap:2px}.calendar-more{padding:1px;font-size:7px}.calendar-legend span{font-size:8px}.calendar-form-grid{grid-template-columns:1fr}.calendar-field.full{grid-column:auto}.calendar-dialog form{padding:14px}.calendar-dialog footer{position:sticky;bottom:0;background:#fff}.calendar-dialog footer button{flex:1}.calendar-detail-dialog{padding:14px}.calendar-agenda>section{grid-template-columns:70px minmax(0,1fr);gap:7px;padding:8px}.nav-groups{gap:2px}.nav-group>summary{font-size:10px;padding:7px 8px}}

.calendar-controls input[type=search]{min-width:170px;padding:9px 11px;border:1px solid #dfe8e4;border-radius:10px;background:#fff;color:#395b51;font:inherit;font-size:11px}.calendar-controls input[type=search]:focus{outline:2px solid #d4eee2;border-color:#6fb498}@media(max-width:620px){.calendar-controls input[type=search]{width:100%;box-sizing:border-box}}

@media(max-width:760px){.nav-groups{overflow-x:auto;scrollbar-width:thin}}
/* Navigation layout: overview links stay horizontal; other groups return to cards */
.ws-nav{position:relative;z-index:30;display:block;overflow:visible;margin:-12px 0 24px;padding:0;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.ws-nav>.nav-root>summary{display:block;padding:12px 16px;font-weight:750;color:var(--green);background:#f8fbf8;border-bottom:1px solid var(--line)}
.nav-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:8px;padding:10px;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.nav-group{position:relative;align-self:start;overflow:hidden;border:1px solid var(--line);border-radius:11px;background:#fff}
.nav-group>summary{padding:10px 11px;border-radius:0;color:#40584b;font-size:13px;font-weight:700;white-space:normal}
.nav-group[open]>summary{background:#f7faf7;border-bottom:1px solid var(--line)}
.nav-group>.nav-leaves,.nav-group[open]>.nav-leaves{display:grid;position:static;top:auto;left:auto;width:auto;max-height:none;grid-template-columns:1fr;gap:3px;overflow:visible;padding:5px;border:0;border-radius:0;background:#fff;box-shadow:none}
.nav-group:not([open]):not(.overview-nav)>.nav-leaves{display:none}
.nav-group.overview-nav{grid-column:1/-1;align-self:stretch;overflow:visible;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.nav-group.overview-nav>summary{display:none}
.nav-group.overview-nav>.nav-leaves{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;overflow-x:auto;padding:8px 10px;border:0;background:transparent;scrollbar-width:thin}
.nav-group.overview-nav .nav-leaves button{flex:0 0 auto;width:auto;white-space:nowrap;padding:9px 12px}
@media(max-width:760px){.ws-nav{margin:-5px 0 18px}.nav-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px}.nav-group.overview-nav{grid-column:1/-1}.nav-group.overview-nav>.nav-leaves{overflow-x:auto}.nav-group>summary{font-size:12px;padding:9px}.ws-nav .nav-leaves button{font-size:11px;padding:7px 8px}}
/* Final nav sizing: overview strip first, five balanced module cards below */
.ws-nav{display:block;width:100%;box-sizing:border-box;margin:-12px 0 24px;padding:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.nav-groups{display:grid;width:100%;box-sizing:border-box;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.nav-group.overview-nav{grid-column:1/-1;min-width:0;margin-bottom:2px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.nav-group.overview-nav>.nav-leaves{min-width:0;justify-content:flex-start}
.nav-group.overview-nav .nav-leaves button b{font-size:12px;font-weight:650}
@media(max-width:1199px){.nav-groups{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.ws-nav{margin:-5px 0 18px}.nav-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.nav-group.overview-nav{grid-column:1/-1}.nav-group.overview-nav>.nav-leaves{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:3px;padding:7px 2px;overflow:hidden}.nav-group.overview-nav .nav-leaves button{display:flex;flex:1 1 0;align-items:center;justify-content:center;min-width:0;width:auto;padding:9px 3px}.nav-group.overview-nav .nav-leaves button span{width:auto;margin:0;font-size:19px}.nav-group.overview-nav .nav-leaves button b{display:none}}
@media(max-width:390px){.nav-groups{gap:5px}.nav-group>summary{font-size:11px;padding:8px 7px}}
/* Collapsed module groups show a clear expand affordance */
.nav-group:not(.overview-nav)>summary{display:flex;align-items:center;justify-content:space-between;gap:7px}
.nav-group:not(.overview-nav)>summary::after{content:'＋';flex:none;color:#7d9188;font-size:15px;font-weight:500}
.nav-group:not(.overview-nav)[open]>summary::after{content:'−'}
.nav-group:not(.overview-nav):not([open])>.nav-leaves{display:none}
@media(max-width:760px){.nav-group.overview-nav .nav-leaves button[aria-label="Thông báo - Đôn đốc - Nhắc nhở"] span{font-size:19px}}
/* Payroll workspace */
.payroll-tabs{display:flex;gap:6px;overflow:auto;margin:0 0 14px;padding:5px;border:1px solid #e0e9e5;border-radius:12px;background:#fff}.payroll-tabs button,.payroll-secondary{border:1px solid #e0e9e5;border-radius:9px;background:#fff;color:#4a6960;padding:8px 11px;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.payroll-tabs button.active{border-color:#d2e8dc;background:#eaf5ee;color:#176d51}.payroll-toolbar{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:0 0 13px;padding:12px;border:1px solid #e1eae6;border-radius:13px;background:#fff}.payroll-toolbar p{flex:1 1 220px;margin:0;color:#72867f;font-size:11px}.payroll-toolbar label,.payroll-form-grid label{display:grid;gap:5px;color:#567168;font-size:10px;font-weight:750}.payroll-toolbar input,.payroll-form-grid input,.payroll-form-grid select,.payroll-notes textarea{box-sizing:border-box;width:100%;min-width:0;padding:9px 10px;border:1px solid #dfe8e4;border-radius:9px;background:white;color:#355a4e;font:inherit;font-size:11px}.payroll-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:14px}.payroll-stats article{display:grid;gap:6px;padding:12px;border:1px solid #e2ebe7;border-radius:12px;background:#fff}.payroll-stats small{color:#82938e;font-size:10px}.payroll-stats strong{color:#205d4d;font-size:17px}.payroll-batch-list,.payroll-profile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),1fr));gap:11px}.payroll-card{min-width:0;padding:14px;border:1px solid #e0e9e5;border-radius:14px;background:#fff;box-shadow:0 4px 15px #163d3510}.payroll-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding-bottom:10px;border-bottom:1px solid #edf2ef}.payroll-code{display:inline-flex;padding:3px 7px;border-radius:6px;background:#edf4f0;color:#4c7565;font-size:9px;font-weight:800}.payroll-card h3{margin:5px 0 2px;color:#285649;font-size:14px}.payroll-card header small{color:#82938d;font-size:9px}.payroll-status{flex:none;padding:5px 8px;border-radius:20px;background:#f2f5f3;color:#6b8179;font-size:9px;font-weight:750}.payroll-status.status-Đã-thanh-toán,.payroll-status.status-Đã-duyệt{background:#e7f4eb;color:#22704d}.payroll-status.status-Chờ-duyệt{background:#fff4db;color:#99702a}.payroll-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;padding:10px 0}.payroll-detail-grid span{display:flex;justify-content:space-between;gap:8px;color:#81918b;font-size:9px}.payroll-detail-grid b{color:#395d52;font-size:10px;text-align:right}.payroll-card-note{margin:0;color:#7f8d88;font-size:10px}.payroll-card>footer,.payroll-modal footer{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px;padding-top:9px;border-top:1px solid #edf2ef}.payroll-delete{border:1px solid #f1dedb;border-radius:9px;background:#fff8f6;color:#ad5b4f;padding:7px 9px;font-size:10px;cursor:pointer}.payroll-modal{width:min(1020px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:16px;box-shadow:0 24px 80px #183c353d}.payroll-modal::backdrop{background:#152d2890;backdrop-filter:blur(3px)}.payroll-modal form{max-height:calc(100dvh - 24px);overflow:auto;padding:19px}.payroll-modal form>header{position:sticky;top:-19px;z-index:3;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:-19px -19px 14px;padding:17px 19px 12px;border-bottom:1px solid #e9f0ec;background:#fff}.payroll-modal h2{margin:4px 0;color:#245849;font-size:18px}.payroll-modal header p{margin:3px 0;color:#82918b;font-size:10px}.payroll-close{width:33px;height:33px;border:0;border-radius:9px;background:#f1f5f2;color:#59756a;font-size:20px;cursor:pointer}.payroll-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.payroll-form-grid .full{grid-column:1/-1}.payroll-form-grid small,.payroll-muted{color:#82918b;font-size:9px;font-weight:400}.payroll-section{margin-top:13px;padding:12px;border:1px solid #e5ede9;border-radius:12px;background:#fbfdfb}.payroll-section h3{margin:0 0 5px;color:#376456;font-size:12px}.payroll-section p{margin:0 0 9px;color:#81928b;font-size:9px}.payroll-table-wrap{overflow:auto;border:1px solid #e5ece8;border-radius:9px;background:white}.payroll-table-wrap table{width:100%;min-width:760px;border-collapse:collapse}.payroll-table-wrap th,.payroll-table-wrap td{padding:5px;border-bottom:1px solid #edf1ef;text-align:left}.payroll-table-wrap th{background:#f2f7f4;color:#6d847b;font-size:9px}.payroll-table-wrap input{box-sizing:border-box;width:100%;min-width:85px;padding:6px;border:1px solid #e2eae6;border-radius:6px;font:inherit;font-size:9px}.payroll-remove-row{border:0;background:transparent;color:#b75c52;font-size:16px;cursor:pointer}.payroll-linked-summary{margin:7px 0;padding:8px;border-radius:8px;background:#f0f7f2;color:#55746a;font-size:10px}.payroll-calc-preview{margin:11px 0 5px;padding:10px;border-radius:9px;background:#eaf5ee;color:#476d5d;font-size:10px}.payroll-calc-preview strong{color:#176748}.payroll-notes{display:grid;gap:5px;margin-top:12px;color:#567168;font-size:10px;font-weight:700}.payroll-policy{grid-column:1/-1}.payroll-policy>.primary{margin-top:10px}.payroll-policy p{margin:8px 0 0}.payroll-profile-grid>.ws-empty{grid-column:1/-1}
@media(max-width:760px){.payroll-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-form-grid{grid-template-columns:1fr}.payroll-form-grid .full{grid-column:auto}.payroll-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}.payroll-modal form{height:100%;max-height:none;box-sizing:border-box;padding:13px}.payroll-modal form>header{top:-13px;margin:-13px -13px 12px;padding:12px 13px}.payroll-toolbar{align-items:stretch}.payroll-toolbar>.primary,.payroll-toolbar>.payroll-secondary{flex:1}}

.payroll-workflow{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 14px;padding:11px 13px;border:1px solid #e0e9e5;border-radius:12px;background:#f7faf8;color:#688078;font-size:10px;font-weight:750}.payroll-workflow span{padding:6px 9px;border-radius:20px;background:#edf1ef}.payroll-workflow span.done{background:#e4f3e9;color:#176d51}.payroll-workflow i{font-style:normal;color:#a6b5ae}.payroll-audit-list{display:grid;gap:8px;margin:12px 0 22px}.payroll-audit-list>div{display:grid;grid-template-columns:minmax(130px,1fr) 2fr auto;align-items:center;gap:10px;padding:10px;border:1px solid #e6ede9;border-radius:9px;background:#fff;font-size:10px}.payroll-audit-list span{color:#71847c}.payroll-audit-list small{color:#87958f;text-align:right}@media(max-width:760px){.payroll-audit-list>div{grid-template-columns:1fr}.payroll-audit-list small{text-align:left}.payroll-workflow{align-items:flex-start}.payroll-workflow i{display:none}}

/* Organization: branches, departments and staff assignment */
.org-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.org-stats article{display:grid;gap:8px;padding:16px;border:1px solid #e0e9e5;border-radius:16px;background:#fff}.org-stats small{color:#71847c}.org-stats strong{font-size:26px;color:#164c47}.org-tabs{display:flex;gap:8px;overflow:auto;padding:4px 0 12px;border-bottom:1px solid #e3ebe7}.org-tabs button,.org-card-links button{flex:0 0 auto;padding:9px 13px;border:1px solid #dce7e1;border-radius:12px;background:#fff;color:#36584f;font-weight:700;cursor:pointer}.org-tabs button.active{border-color:#146c59;background:#e8f4ef;color:#0b6b54}.org-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:14px 0}.org-toolbar input[type=search]{flex:1 1 260px;min-width:180px}.org-toolbar select,.org-toolbar input{min-height:42px;padding:9px 12px;border:1px solid #dce7e1;border-radius:12px;background:#fff}.org-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.org-card{padding:18px;border:1px solid #e0e9e5;border-radius:18px;background:#fff;box-shadow:0 8px 24px #1a4e4010}.org-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.org-card h3{margin:5px 0;font-size:19px}.org-card header small,.org-card p{color:#74847d}.org-code,.org-code-badge{display:inline-flex;padding:4px 8px;border-radius:8px;background:#e9f3ef;color:#146c59;font-size:11px;font-weight:800}.org-status{display:inline-flex;padding:5px 9px;border-radius:20px;background:#fff3df;color:#946313;font-size:11px;font-weight:750;white-space:nowrap}.org-status.active{background:#e4f4eb;color:#15714d}.org-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}.org-metrics span{display:grid;gap:4px;color:#71847c;font-size:12px}.org-metrics b{color:#243b34}.org-card-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.org-card footer{display:flex;gap:8px;border-top:1px solid #edf1ef;padding-top:12px}.org-card footer button{font-size:12px}.org-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.org-form-grid>label{display:grid;gap:6px;color:#425b52;font-size:13px;font-weight:700}.org-form-grid input,.org-form-grid select,.org-form-grid textarea{width:100%;min-height:42px;padding:10px 12px;border:1px solid #dce7e1;border-radius:11px;background:#fff;font:inherit}.org-form-grid textarea{resize:vertical}.org-form-grid .full{grid-column:1/-1}.org-check-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.org-check-grid label{display:flex;align-items:center;gap:7px;padding:9px;border:1px solid #e4ece8;border-radius:10px;background:#fafcfb;font-size:12px}.org-modal{width:min(900px,calc(100vw - 32px));max-height:min(92dvh,900px);padding:0;border:1px solid #dce7e1;border-radius:20px;box-shadow:0 24px 90px #132f2940}.org-modal::backdrop{background:#142a2680;backdrop-filter:blur(3px)}.org-modal form{display:grid;gap:15px;max-height:min(92dvh,900px);overflow:auto;padding:22px}.org-modal form>header{position:sticky;top:-22px;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;margin:-22px -22px 0;padding:18px 22px;background:#fff;border-bottom:1px solid #e5ece8}.org-modal h2{margin:4px 0}.org-modal footer{position:sticky;bottom:-22px;display:flex;justify-content:flex-end;gap:8px;margin:0 -22px -22px;padding:14px 22px;background:#fff;border-top:1px solid #e5ece8}.org-table-wrap{overflow:auto}.org-table{width:100%;border-collapse:collapse;white-space:nowrap}.org-table th,.org-table td{padding:12px;border-bottom:1px solid #e8eeeb;text-align:left}.org-table th{color:#71847c;font-size:11px;text-transform:uppercase}.org-chart-company,.org-chart-branch{display:grid;justify-items:center;gap:14px;padding:16px}.org-chart-root,.org-chart-units{display:flex;justify-content:center;align-items:stretch;gap:12px;flex-wrap:wrap}.org-chart-root>div,.org-chart-units>div,.org-chart-branch>div{min-width:180px;padding:15px;border:1px solid #dfe9e4;border-radius:14px;background:#fff;text-align:center}.org-chart-root strong,.org-chart-units strong,.org-chart-branch strong{display:block;margin-bottom:6px;color:#155d4d}.org-position-tags{display:flex;gap:8px;flex-wrap:wrap}.org-position-tags span{padding:7px 10px;border-radius:20px;background:#edf4f0;color:#315a4d;font-size:12px}.org-audit-list{display:grid;gap:8px}.org-audit-list article{display:grid;grid-template-columns:160px 1fr auto;gap:12px;padding:12px;border:1px solid #e5ece8;border-radius:12px;background:#fff}.org-audit-list small{color:#7b8983}.org-help{padding:13px;border-radius:12px;background:#f2f7f4;color:#64766e;font-size:12px}@media(max-width:760px){.org-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.org-card-list{grid-template-columns:1fr}.org-form-grid{grid-template-columns:1fr}.org-form-grid .full{grid-column:auto}.org-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.org-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.org-modal form{height:100%;max-height:none;padding:14px}.org-modal form>header{top:-14px;margin:-14px -14px 0;padding:13px 14px}.org-modal footer{bottom:-14px;margin:0 -14px -14px;padding:12px 14px}.org-audit-list article{grid-template-columns:1fr;gap:5px}.org-toolbar>*{flex:1 1 100%}}
.payroll-view-tools{display:flex;justify-content:flex-end;margin:-5px 0 12px}.payroll-view-tools label{display:flex;align-items:center;gap:8px;color:#637c73;font-size:11px;font-weight:700}.payroll-view-tools select{min-width:190px;padding:9px 34px 9px 11px;border:1px solid #dfe8e4;border-radius:10px;background:#fff;color:#355a4e;font:inherit;font-size:11px;box-shadow:0 2px 8px #163d350a}.payroll-batch-list[data-view-mode="vertical"],.payroll-profile-grid[data-view-mode="vertical"],.payroll-profile-grid[data-view-mode="grouped"],.payroll-batch-list[data-view-mode="grouped"],.payroll-profile-grid[data-view-mode="accordion"],.payroll-batch-list[data-view-mode="accordion"]{grid-template-columns:minmax(0,1fr)}.payroll-profile-grid[data-view-mode="grid"],.payroll-batch-list[data-view-mode="grid"]{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px}.payroll-profile-grid[data-view-mode="grouped"] .payroll-card,.payroll-batch-list[data-view-mode="grouped"] .payroll-card{border-left:4px solid #76ae94;background:linear-gradient(100deg,#f7fbf8,#fff 24%)}.payroll-profile-grid[data-view-mode="horizontal"],.payroll-batch-list[data-view-mode="horizontal"]{display:flex;align-items:stretch;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x mandatory}.payroll-profile-grid[data-view-mode="horizontal"]>.payroll-card,.payroll-batch-list[data-view-mode="horizontal"]>.payroll-card{flex:0 0 min(390px,86vw);scroll-snap-align:start}.payroll-profile-grid[data-view-mode="accordion"] .payroll-card:not(.expanded) .payroll-detail-grid,.payroll-batch-list[data-view-mode="accordion"] .payroll-card:not(.expanded) .payroll-detail-grid,.payroll-profile-grid[data-view-mode="accordion"] .payroll-card:not(.expanded) .payroll-card-note,.payroll-batch-list[data-view-mode="accordion"] .payroll-card:not(.expanded) .payroll-card-note{display:none}.payroll-profile-grid[data-view-mode="accordion"] .payroll-card,.payroll-batch-list[data-view-mode="accordion"] .payroll-card{cursor:pointer}.payroll-profile-grid[data-view-mode="table"],.payroll-batch-list[data-view-mode="table"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #e0e9e5;border-radius:12px;overflow:hidden;background:#fff}.payroll-profile-grid[data-view-mode="table"] .payroll-card,.payroll-batch-list[data-view-mode="table"] .payroll-card{display:grid;grid-template-columns:minmax(160px,1.1fr) minmax(240px,1.8fr);align-items:center;gap:8px 14px;padding:10px 12px;border:0;border-bottom:1px solid #e8efeb;border-radius:0;box-shadow:none}.payroll-profile-grid[data-view-mode="table"] .payroll-card>header,.payroll-batch-list[data-view-mode="table"] .payroll-card>header{grid-row:span 2;align-self:center;border:0}.payroll-profile-grid[data-view-mode="table"] .payroll-detail-grid,.payroll-batch-list[data-view-mode="table"] .payroll-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0}.payroll-profile-grid[data-view-mode="table"] .payroll-card>footer,.payroll-batch-list[data-view-mode="table"] .payroll-card>footer{grid-column:1/-1;justify-content:flex-start;margin:0;padding-top:6px}.payroll-profile-grid[data-view-mode="table"] .payroll-card-note,.payroll-batch-list[data-view-mode="table"] .payroll-card-note{grid-column:1/-1}.payroll-profile-grid[data-view-mode="table"]>.ws-empty,.payroll-batch-list[data-view-mode="table"]>.ws-empty{grid-column:1/-1;padding:20px}@media(max-width:650px){.payroll-view-tools{justify-content:stretch}.payroll-view-tools label{width:100%;justify-content:space-between}.payroll-view-tools select{flex:1;min-width:0}.payroll-profile-grid[data-view-mode="table"],.payroll-batch-list[data-view-mode="table"]{grid-template-columns:1fr}.payroll-profile-grid[data-view-mode="table"] .payroll-card,.payroll-batch-list[data-view-mode="table"] .payroll-card{grid-template-columns:minmax(0,1fr)}.payroll-profile-grid[data-view-mode="table"] .payroll-card>header,.payroll-batch-list[data-view-mode="table"] .payroll-card>header{grid-row:auto}}
.payroll-view-group{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),1fr));gap:10px;grid-column:1/-1;padding:10px;border:1px solid #e5ece8;border-radius:12px;background:#f8fbf9}.payroll-view-group>h3{grid-column:1/-1;margin:0 0 2px;color:#547368;font-size:12px}.payroll-view-group .payroll-card{height:100%}
.payroll-audit-list[data-view-mode="vertical"]{display:grid;grid-template-columns:1fr;gap:7px}.payroll-audit-list[data-view-mode="cards"],.payroll-audit-list[data-view-mode="grid"]{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:8px}.payroll-audit-list[data-view-mode="grouped"]{display:grid;grid-template-columns:1fr;gap:7px}.payroll-audit-list[data-view-mode="grouped"]>div{border-left:4px solid #76ae94;background:#f8fbf9}.payroll-audit-list[data-view-mode="horizontal"]{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x mandatory}.payroll-audit-list[data-view-mode="horizontal"]>div{flex:0 0 min(340px,85vw);scroll-snap-align:start}.payroll-audit-list[data-view-mode="table"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #e5ece8;border-radius:10px;overflow:hidden}.payroll-audit-list[data-view-mode="table"]>div{border-radius:0;border-width:0 1px 1px 0}.payroll-audit-list[data-view-mode="accordion"]>div{cursor:pointer}.payroll-audit-list[data-view-mode="accordion"]>div:not(.expanded)>span,.payroll-audit-list[data-view-mode="accordion"]>div:not(.expanded)>small{display:none}@media(max-width:650px){.payroll-audit-list[data-view-mode="table"]{grid-template-columns:1fr}}

.recruit-candidates{margin-top:18px;padding-top:14px;border-top:1px solid #e7eeea}.recruit-candidates>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.recruit-candidate-list{display:grid;gap:8px;margin:10px 0}.recruit-candidate{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px;border:1px solid #e3ebe7;border-radius:12px;background:#fbfdfc}.recruit-candidate>div{display:grid;gap:4px}.recruit-candidate small{color:#71847c}.recruit-candidate select{min-width:150px}.recruit-candidate-form{padding:14px;border:1px solid #dce8e2;border-radius:14px;background:#f7faf8}.org-position-tags span{display:inline-flex;align-items:center;gap:8px}.org-position-tags button{border:0;background:transparent;color:#126c56;font-size:11px;font-weight:800;cursor:pointer}@media(max-width:760px){.recruit-candidate{display:grid}.recruit-candidate select{width:100%}}

.org-role-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.org-role-summary article{display:grid;gap:5px;padding:14px;border:1px solid #e0e9e5;border-radius:14px;background:#fff}.org-role-summary small,.org-role-summary span{color:#72847c;font-size:11px}.org-role-summary strong{font-size:24px;color:#176b54}.org-role-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 12px}.org-role-toolbar>div{flex:1 1 300px}.org-role-toolbar h2{margin:0 0 4px;color:#234d42}.org-role-toolbar p{margin:0;color:#788881;font-size:12px}.org-role-toolbar input{min-width:220px;padding:10px 12px;border:1px solid #dce7e1;border-radius:11px}.org-role-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}.org-role-card{display:grid;gap:12px;padding:16px;border:1px solid #e0e9e5;border-radius:16px;background:#fff;box-shadow:0 6px 20px #1a4e400c}.org-role-card>header{display:flex;justify-content:space-between;gap:10px}.org-role-card h3{margin:6px 0 3px;color:#214f44;font-size:17px}.org-role-card header small{color:#788881}.org-role-card p{margin:0;color:#63766d;font-size:12px;line-height:1.55}.org-role-meta,.org-role-tags{display:flex;gap:7px;flex-wrap:wrap}.org-role-meta span,.org-role-tags span{padding:6px 8px;border-radius:9px;background:#f3f7f4;color:#5d746a;font-size:10px}.org-role-card footer{padding-top:10px;border-top:1px solid #edf1ef}.org-role-help{margin:16px 0;padding:13px 15px;border:1px solid #e2ebe6;border-radius:13px;background:#fff}.org-role-help summary{color:#315f50;font-weight:750;cursor:pointer}.org-role-help .ws-grid{margin-top:10px}.recruit-filters{display:flex;gap:9px;margin:12px 0}.recruit-filters input,.recruit-filters select{min-height:42px;padding:9px 12px;border:1px solid #dce7e1;border-radius:11px;background:#fff}.recruit-filters input{flex:1}.recruit-code{display:inline-flex;padding:3px 7px;border-radius:6px;background:#edf4f0;color:#31705b;font-size:10px;vertical-align:middle}.recruit-stage-counts{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}.recruit-stage-counts span{display:flex;align-items:center;gap:5px;padding:4px 7px;border-radius:9px;background:#f3f7f4;color:#64776e;font-size:9px}.recruit-stage-counts b{color:#235b48}.recruit-candidate-actions{display:grid;justify-items:end;gap:6px;min-width:100px}.recruit-candidate-actions select{width:100%}@media(max-width:760px){.org-role-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.org-role-toolbar{align-items:stretch}.org-role-toolbar>*{width:100%}.recruit-filters{display:grid}.recruit-candidate-actions{justify-items:stretch;grid-template-columns:1fr 1fr}.recruit-candidate-actions select{grid-column:1/-1}}

.salary-component-editor{grid-column:1/-1;margin:14px 0;padding:14px;border:1px solid #dce8e2;border-radius:14px;background:#f8fbf9}.salary-component-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.salary-component-editor h3{margin:0;color:#285b4d;font-size:14px}.salary-component-editor p{margin:4px 0;color:#71847c;font-size:11px}.salary-component-list{display:grid;gap:10px}.salary-component-row{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;padding:12px;border:1px solid #e1eae6;border-radius:12px;background:#fff}.salary-component-row label{display:grid;gap:4px;color:#587168;font-size:10px;font-weight:700}.salary-component-row input:not([type=checkbox]),.salary-component-row select{box-sizing:border-box;min-width:0;width:100%;padding:8px;border:1px solid #dfe8e4;border-radius:8px;font:inherit;font-size:11px}.salary-component-row .salary-component-enabled{display:flex;align-items:center;gap:6px}.salary-component-remove{align-self:end}.payroll-component-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.payroll-component-chips span{padding:5px 7px;border-radius:8px;background:#f1f7f3;color:#60786e;font-size:9px}.payroll-component-chips b{color:#1f6c52}.payroll-component-result{display:block;margin-top:3px;color:#8a9992;font-size:8px}.payroll-config-modal .payroll-form-grid label[hidden]{display:none}@media(max-width:900px){.salary-component-row{grid-template-columns:repeat(3,minmax(120px,1fr))}}@media(max-width:620px){.salary-component-editor>header{display:grid}.salary-component-row{grid-template-columns:repeat(2,minmax(0,1fr))}.salary-component-row label{min-width:0}.salary-component-row select{font-size:10px}}

.payroll-scenario-section h2{margin:0;color:#234b3e;font-size:18px}.payroll-scenario-section .payroll-toolbar p{margin:4px 0;color:#71847c;font-size:12px}

.payroll-tabs button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:9px 13px}.payroll-toolbar>button,.payroll-toolbar>div+button{display:inline-flex;align-items:center;justify-content:center;gap:6px}.payroll-scenario-section .payroll-toolbar>div{flex:1 1 220px}.payroll-modal form>header h2{display:flex;align-items:center;gap:7px}.payroll-card>footer button{display:inline-flex;align-items:center;gap:5px}

/* Organization module display modes */
.view-grid>.org-card,.view-grid>.org-role-card,.view-grid>.org-chart-branch,.view-grid>.org-chart-unit{margin:0;min-width:0;align-self:start}
.view-card-list>.org-card,.view-card-list>.org-role-card,.view-card-list>.org-chart-branch,.view-card-list>.org-chart-unit{margin:0;border-radius:16px;box-shadow:0 8px 22px #12383f0c}
.view-horizontal-list>.org-card,.view-horizontal-list>.org-role-card,.view-horizontal-list>.org-chart-branch,.view-horizontal-list>.org-chart-unit{flex:0 0 min(360px,86vw);margin:0;scroll-snap-align:start}
.view-data-grid>.org-card,.view-data-grid>.org-role-card,.view-data-grid>.org-chart-branch,.view-data-grid>.org-chart-unit{display:block;margin:0;padding:12px 14px;border:0;border-bottom:1px solid #e5ecee;border-radius:0;box-shadow:none}
.view-data-grid>.org-card:nth-child(even),.view-data-grid>.org-role-card:nth-child(even),.view-data-grid>.org-chart-branch:nth-child(even),.view-data-grid>.org-chart-unit:nth-child(even){background:#f8fbfa}
.view-data-grid>.org-table{min-width:760px}
.view-collapsed.org-card>header,.view-collapsed.org-role-card>header,.view-collapsed.org-chart-branch>header{display:flex!important}
.view-collapsed.org-chart-unit>:nth-child(2){display:block!important}
.view-collapsed.org-chart-unit>:nth-child(2)~*{display:none!important}
@media(max-width:700px){.view-horizontal-list>.org-card,.view-horizontal-list>.org-role-card,.view-horizontal-list>.org-chart-branch,.view-horizontal-list>.org-chart-unit{flex-basis:88vw}}
.view-collapsed.org-audit-list>article>:first-of-type{display:block!important}

/* Modern organization chart */
.org-chart-shell{display:grid;gap:12px;min-width:0}
.org-chart-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid #dfe9e4;border-radius:16px;background:#fff}
.org-chart-lenses,.org-chart-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.org-chart-lenses button{padding:9px 13px;border:1px solid #e0e9e5;border-radius:11px;background:#f8fbf9;color:#48665b;font-weight:750;cursor:pointer}
.org-chart-lenses button.active{border-color:#176b54;background:#e7f3ed;color:#12583f;box-shadow:0 3px 10px #176b5416}
.org-chart-actions button{white-space:nowrap}
.org-chart-zoom-label{min-width:42px;text-align:center;color:#547268;font-size:12px;font-variant-numeric:tabular-nums}
.org-chart-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#70847a;font-size:11px}
.org-chart-legend span{display:flex;align-items:center;gap:6px}
.org-chart-legend i{width:8px;height:8px;border-radius:50%;background:#b5c0b9}
.org-chart-legend i.active{background:#15956d}
.org-chart-legend small{margin-left:auto}
.org-chart-viewport{overflow:auto;max-width:100%;padding:8px 4px 14px;border:1px solid #e3ece7;border-radius:18px;background:linear-gradient(180deg,#f6faf7,#fff 180px)}
.org-chart-root{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));align-items:start;justify-items:stretch;gap:16px;min-width:0;padding:14px;transform-origin:top left}
.org-chart-company{grid-column:1/-1;display:flex!important;justify-content:center;align-items:center;gap:12px;width:max-content;max-width:100%;margin:0 auto 6px;padding:14px 22px;border:1px solid #195c4b;border-radius:16px;background:linear-gradient(135deg,#104a40,#176e56);color:#fff;box-shadow:0 10px 24px #13583d22}
.org-chart-company-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#ffffff20;color:#fff;font-size:18px;font-weight:900}
.org-chart-company div{display:grid;gap:4px}
.org-chart-company strong{margin:0;color:#fff!important}
.org-chart-company small{color:#cce5d9}
.org-chart-branch{display:grid!important;align-content:start;justify-items:stretch;gap:0;min-width:0;padding:0;border:1px solid #d9e7e0;border-radius:17px;background:#fff;box-shadow:0 8px 25px #143d2d0b;transition:border-color .18s,box-shadow .18s,transform .18s}
.org-chart-branch>header,.org-chart-unit>header{display:flex;justify-content:flex-start;align-items:center;gap:9px;width:100%;padding:13px 14px;border-bottom:1px solid #e9f0ec;background:#f8fbf9;text-align:left}
.org-chart-branch>header{border-radius:17px 17px 0 0}
.org-chart-node-title{display:grid;gap:4px;min-width:0;flex:1}
.org-chart-node-title strong{margin:0;color:#174f40;font-size:14px;overflow-wrap:anywhere}
.org-chart-node-title small{color:#70847a;font-size:11px}
.org-chart-collapse{flex:0 0 28px;width:28px;height:28px;padding:0;border-radius:8px;background:#e8f3ed;color:#176b54;font-size:17px}
.org-chart-units{display:grid!important;justify-content:stretch;align-items:stretch;gap:9px;padding:10px}
.org-chart-unit{display:grid;gap:0;min-width:0;padding:0;border:1px solid #e0eae4;border-left:3px solid #a7c9b5;border-radius:13px;background:#fff;box-shadow:none;transition:border-color .18s,box-shadow .18s,transform .18s}
.org-chart-unit>header{padding:10px 11px;border-bottom:0;border-radius:11px;background:#fff}
.org-chart-unit .org-code{flex:0 0 auto}
.org-chart-content{display:grid;gap:9px;padding:0 12px 12px}
.org-chart-nested{display:grid;gap:9px;margin-left:7px;padding-left:12px;border-left:1px solid #dce9e1}
.org-chart-unit .org-status,.org-chart-branch .org-status{margin-left:auto}
.org-chart-node-actions{display:flex;justify-content:flex-end;gap:6px;padding:8px 11px;border-top:1px solid #edf2ee}
.org-chart-node-actions button{min-width:30px;min-height:30px;padding:4px 8px;border-radius:8px;background:#f2f7f4;color:#426353}
.org-chart-people{display:flex;align-items:stretch;gap:6px;flex-wrap:wrap}
.org-chart-person{display:flex;align-items:center;gap:7px;max-width:100%;padding:6px 8px;border:1px solid #edf2ee;border-radius:11px;background:#fbfdfb}
.org-chart-person>span:last-child{display:grid;min-width:0;gap:2px}
.org-chart-person b{color:#3e5b4d;font-size:11px;overflow-wrap:anywhere}
.org-chart-person small{color:#7a8d83;font-size:10px}
.org-chart-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:#e2f0e8;color:#27644c;font-size:10px;font-weight:800}
.org-chart-empty{grid-column:1/-1;padding:30px 16px;border:1px dashed #cadbd0;border-radius:14px;background:#fff;color:#74847b;text-align:center}
.org-chart-branch.is-collapsed>.org-chart-units,.org-chart-unit.is-collapsed>.org-chart-content{display:none!important}
.org-chart-branch.is-collapsed>header{border-radius:17px}
.org-chart-branch.is-dragging,.org-chart-unit.is-dragging{opacity:.45;transform:scale(.985)}
.org-chart-branch.drop-target,.org-chart-unit.drop-target{border-color:#1b9a70;box-shadow:0 0 0 3px #1b9a7020}
.org-chart-node-actions button:disabled{opacity:.35;cursor:not-allowed}
.org-chart-root.view-horizontal-list>.org-chart-company{flex:0 0 100%;grid-column:auto}
.org-chart-root.view-data-grid>.org-chart-company{width:auto;grid-column:1/-1}
.org-chart-root.view-accordion>.org-chart-company{grid-column:1/-1}
@media(max-width:760px){.org-chart-toolbar{align-items:stretch}.org-chart-lenses{display:grid;grid-template-columns:1fr 1fr}.org-chart-lenses button{padding:9px 6px;font-size:11px}.org-chart-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.org-chart-actions button{width:100%;padding:8px 6px;font-size:11px}.org-chart-legend small{width:100%;margin-left:0}.org-chart-root{grid-template-columns:minmax(0,1fr);padding:8px}.org-chart-company{width:100%;justify-content:flex-start}.org-chart-node-title strong{font-size:13px}.org-chart-branch,.org-chart-unit{width:100%}}
/* Organization chart layouts and controls */
.org-chart-unassigned{display:grid;gap:8px;padding:12px;border:1px dashed #cbdcd2;border-radius:14px;background:#f8fbf9}
.org-chart-unassigned>header{display:flex;justify-content:space-between;align-items:center;gap:8px;color:#49665a}
.org-chart-unassigned>header small{color:#7a8d83;font-size:11px}
.org-chart-root.view-vertical-list{grid-template-columns:minmax(0,1fr)!important}
.org-chart-root.view-card-list,.org-chart-root.view-grid,.org-chart-root.view-grouped-list{grid-template-columns:repeat(auto-fit,minmax(min(330px,100%),1fr))!important}
.org-chart-root.view-accordion{grid-template-columns:minmax(0,1fr)!important}
.org-chart-root.view-data-grid{grid-template-columns:minmax(0,1fr)!important;gap:0!important;padding:0!important;background:#fff}
.org-chart-root.view-data-grid>.org-chart-company{width:auto;margin:12px auto}
.org-chart-root.view-data-grid>.org-chart-branch,.org-chart-root.view-data-grid>.org-chart-unit{border-radius:0;box-shadow:none}
.org-chart-root.view-horizontal-list{display:flex!important;flex-flow:row nowrap;align-items:stretch;min-width:max-content;gap:12px}
.org-chart-root.view-horizontal-list>.org-chart-company{flex:0 0 260px;width:260px;margin:0;justify-content:flex-start}
.org-chart-root.view-horizontal-list>.org-chart-branch,.org-chart-root.view-horizontal-list>.org-chart-unit{flex:0 0 min(390px,84vw);width:min(390px,84vw);max-width:none}
.org-chart-root.view-horizontal-list>.org-chart-branch{align-self:stretch}
.org-chart-root.view-horizontal-list>.org-chart-unit{align-self:flex-start}
.org-chart-root .view-accordion-toggle{display:none!important}
.org-chart-root .org-chart-branch.view-collapsed>.org-chart-node-head,.org-chart-root .org-chart-unit.view-collapsed>.org-chart-node-head{display:flex!important}
.org-chart-root .org-chart-branch.view-collapsed>.org-chart-units,.org-chart-root .org-chart-unit.view-collapsed>.org-chart-content{display:none!important}
.org-chart-node-actions button:focus-visible,.org-chart-collapse:focus-visible,.org-chart-lenses button:focus-visible{outline:3px solid #37a47b;outline-offset:2px}
@media(max-width:760px){
  .org-chart-root.view-horizontal-list{min-width:max-content!important;padding:8px}
  .org-chart-root.view-horizontal-list>.org-chart-company{flex-basis:230px;width:230px}
  .org-chart-root.view-horizontal-list>.org-chart-branch,.org-chart-root.view-horizontal-list>.org-chart-unit{flex-basis:min(310px,82vw);width:min(310px,82vw)}
  .org-chart-root.view-data-grid>.org-chart-branch{min-width:0}
}
/* Chấm công - Xếp ca - Phép */
.sched-tabs{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:5px;margin:0 0 16px;border:1px solid #dce8e5;border-radius:15px;background:#fff;scrollbar-width:thin}
.sched-tabs button,.sched-request-tabs button{flex:0 0 auto;border:0;border-radius:10px;background:transparent;color:#49666b;padding:10px 14px;font:inherit;font-size:13px;font-weight:700;white-space:nowrap;cursor:pointer}
.sched-tabs button.active,.sched-request-tabs button.active{background:#e6f5ee;color:#117451;box-shadow:inset 0 0 0 1px #d2eadf}
.sched-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin:0 0 16px;padding:14px;border:1px solid #dce8e5;border-radius:16px;background:#fff}
.sched-toolbar-main,.sched-toolbar-actions{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}
.sched-toolbar-actions{justify-content:flex-end}
.sched-toolbar label,.sched-form-grid label,.sched-request-form>label{display:grid;gap:6px;color:#49666b;font-size:12px;font-weight:700}
.sched-toolbar input,.sched-toolbar select,.sched-form-grid input,.sched-form-grid select,.sched-form-grid textarea,.sched-request-form input,.sched-request-form select,.sched-request-form textarea{min-width:140px;min-height:39px;padding:8px 10px;border:1px solid #d9e5e2;border-radius:10px;background:#fbfdfc;color:#173c3d;font:inherit;font-size:13px}
.sched-toolbar-actions>span{align-self:center;color:#647b7f;font-size:12px}
.sched-view-toggle{display:flex;gap:3px;padding:3px;border:1px solid #e1e9e6;border-radius:11px;background:#f6f9f7}
.sched-view-toggle button{border:0;border-radius:8px;background:transparent;padding:8px 11px;color:#547075;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.sched-view-toggle button.active{background:#fff;color:#14795d;box-shadow:0 1px 4px #193b3517}
.sched-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.sched-stat{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;padding:15px 17px;border:1px solid #dce8e5;border-radius:15px;background:#fff}
.sched-stat>span{grid-row:span 3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e9f5ef;font-size:19px}
.sched-stat small{color:#688084;font-size:12px}.sched-stat strong{color:#163e3d;font-size:24px;line-height:1.2}.sched-stat em{color:#87999a;font-size:11px;font-style:normal}
.sched-overview-grid,.sched-template-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.sched-card,.sched-branch-panel{min-width:0;padding:16px;border:1px solid #dce8e5;border-radius:16px;background:#fff}
.sched-card>header,.sched-branch-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:-1px 0 12px}
.sched-card h2{margin:0;color:#163e3d;font-size:16px}.sched-card header p{margin:4px 0 0;color:#74898b;font-size:12px}
.sched-upcoming{display:flex;align-items:center;gap:10px;padding:11px 0;border-top:1px solid #edf2f0}
.sched-upcoming>div{flex:1;min-width:0}.sched-upcoming strong,.sched-upcoming small{display:block}.sched-upcoming strong{color:#24494a;font-size:13px}.sched-upcoming small{margin-top:3px;color:#718589;font-size:11px}
.sched-color-dot{display:inline-block;flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:var(--sched-color,#14795d)}
.sched-pill{display:inline-flex;align-items:center;white-space:nowrap;border-radius:99px;padding:5px 9px;background:#f0f4f2;color:#607578;font-size:10px;font-weight:750}
.sched-pill.good{background:#e5f5e9;color:#197344}.sched-pill.warn{background:#fff2d9;color:#98600c}.sched-pill.bad{background:#ffe6e4;color:#b33e36}
.sched-requests-summary{display:flex;flex-wrap:wrap;gap:8px}.sched-requests-summary span{padding:9px 11px;border-radius:10px;background:#f5f8f7;color:#4b696c;font-size:12px}
.sched-clock-card{margin:14px 0}.sched-clock-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.sched-clock-row>span{flex:1;min-width:200px;color:#315456;font-weight:700}
.sched-branch-panel{padding:0;margin:14px 0;overflow:hidden}.sched-branch-head{margin:0;padding:12px 15px;background:#f5f9f7;border-bottom:1px solid #e4ece8}.sched-branch-head>div:first-child{display:flex;align-items:center;gap:9px}.sched-branch-head>div:first-child>span{font-size:20px}.sched-branch-head strong,.sched-branch-head small{display:block}.sched-branch-head strong{color:#174743}.sched-branch-head small{margin-top:3px;color:#748a8c;font-size:11px}
.sched-grid-scroll{max-height:68vh;overflow:auto;overscroll-behavior:contain}.sched-grid{width:100%;min-width:840px;border-collapse:separate;border-spacing:0;table-layout:fixed}.sched-grid th,.sched-grid td{height:35px;padding:3px;border-right:1px solid #e9efec;border-bottom:1px solid #e9efec;text-align:center;font-size:11px}.sched-grid thead th{position:sticky;top:0;z-index:3;background:#e9f5ee;color:#315e57}.sched-grid thead th strong,.sched-grid thead th small{display:block}.sched-grid thead th strong{font-size:12px}.sched-grid thead th small{margin-top:3px;color:#728785;font-size:10px}.sched-grid thead th em{display:block;margin-top:3px;color:#a66810;font-size:9px;font-style:normal}.sched-grid .sched-time-head,.sched-grid .sched-time{position:sticky;left:0;z-index:4;width:68px;min-width:68px;background:#f4f7f5;color:#526a6c;font-weight:750}.sched-grid .sched-time-head{z-index:5;background:#e5eee9}.sched-cell{position:relative;min-width:88px}.sched-cell.has-leave{background:#fff8ea}.sched-slot{display:none;position:absolute;inset:2px;width:calc(100% - 4px);border:1px dashed #aacdbb;border-radius:6px;background:#f5fbf6;color:#31765a;cursor:pointer}.sched-cell:hover .sched-slot,.sched-slot:focus-visible{display:block}.sched-chip{position:relative;z-index:1;display:block;width:100%;margin:2px 0;padding:5px 6px;overflow:hidden;border:0;border-radius:5px;background:var(--sched-color,#176b54);color:#fff;text-align:left;text-overflow:ellipsis;white-space:nowrap;font:inherit;font-size:10px;font-weight:700;cursor:pointer}.sched-chip.has-conflict{box-shadow:inset 0 0 0 2px #f05b4c}.sched-chip b{float:right;color:#ffddd8}
.sched-legend{display:flex;flex-wrap:wrap;gap:13px;padding:8px 3px;color:#62797b;font-size:11px}.sched-legend small{color:#859698}
.sched-list,.sched-request-list,.sched-template-list{display:grid;gap:8px}.sched-list>article,.sched-request-list>article,.sched-template-list>article{display:flex;align-items:center;gap:12px;padding:11px;border:1px solid #e5ece9;border-radius:12px;background:#fff}.sched-list>article>div:nth-child(2),.sched-request-list>article>div:first-child,.sched-template-list>article>div{flex:1;min-width:0}.sched-list strong,.sched-list small,.sched-request-list strong,.sched-request-list small,.sched-template-list strong,.sched-template-list small,.sched-template-list em{display:block}.sched-list small,.sched-request-list small,.sched-template-list small{margin-top:4px;color:#728689;font-size:11px}.sched-request-list p{margin:5px 0 0;color:#526d70;font-size:12px;white-space:pre-wrap}.sched-template-list em{margin-top:4px;color:#859698;font-size:10px;font-style:normal}
.sched-request-tabs{display:flex;gap:6px;overflow:auto;padding:4px;margin-bottom:12px;border:1px solid #e0e9e5;border-radius:13px;background:#fff}.sched-request-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);gap:14px}.sched-request-form{display:grid;align-content:start;gap:12px}.sched-request-form h2{margin:0 0 4px}.sched-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.sched-form-grid .full{grid-column:1/-1}.sched-request-form>label{margin:2px 0}.sched-row-actions{display:flex;gap:6px}.sched-warnings{color:#a63d32;font-size:11px}.sched-attendance-table{overflow:auto;border:1px solid #dce8e5;border-radius:14px;background:#fff}.sched-attendance-table table{width:100%;min-width:760px;border-collapse:collapse}.sched-attendance-table th,.sched-attendance-table td{padding:11px 12px;border-bottom:1px solid #edf1ef;text-align:left;font-size:12px}.sched-attendance-table th{position:sticky;top:0;background:#f2f7f4;color:#506c6d;font-size:11px}.sched-table-empty{text-align:center!important;color:#788c8d;padding:28px!important}.sched-rules .primary{margin-top:12px}
.sched-modal{width:min(780px,calc(100vw - 28px));max-width:none;max-height:92vh;padding:0;overflow:hidden;border:1px solid #dce8e5;border-radius:18px;background:#fff;color:#173c3d;box-shadow:0 24px 80px #0e33352b}.sched-modal::backdrop{background:#0b2a2b77;backdrop-filter:blur(3px)}.sched-modal form{display:flex;flex-direction:column;max-height:92vh}.sched-modal form>header{display:flex;justify-content:space-between;align-items:center;padding:17px 20px;border-bottom:1px solid #e7eeeb;background:#f8fbf9}.sched-modal h2{margin:3px 0 0;font-size:19px}.sched-modal-close{width:34px;height:34px;border:0;border-radius:10px;background:#eaf1ed;color:#365657;font-size:23px;cursor:pointer}.sched-modal-body{overflow:auto;padding:18px 20px}.sched-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 20px;border-top:1px solid #e7eeeb;background:#fff}.sched-validation{margin-top:13px;padding:10px 12px;border-radius:10px;background:#f0f7f3;color:#24704e;font-size:12px}.sched-validation ul{margin:6px 0 0;padding-left:19px;color:#a04a36}.sched-help,.ws-help{color:#708587;font-size:12px}
@media(max-width:900px){.sched-toolbar{align-items:stretch;flex-direction:column}.sched-toolbar-actions{justify-content:flex-start}.sched-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sched-overview-grid,.sched-template-layout,.sched-request-layout{grid-template-columns:1fr}.sched-grid-scroll{max-height:65vh}}
@media(max-width:600px){.sched-tabs{gap:4px}.sched-tabs button{padding:9px 10px;font-size:12px}.sched-toolbar{padding:10px}.sched-toolbar-main{display:grid;grid-template-columns:1fr 1fr}.sched-toolbar-main label{min-width:0}.sched-toolbar-main input,.sched-toolbar-main select{min-width:0;width:100%}.sched-view-toggle{grid-column:1/-1;justify-content:space-between}.sched-view-toggle button{flex:1;padding:8px 5px}.sched-stats{gap:8px}.sched-stat{padding:11px}.sched-stat>span{width:32px;height:32px}.sched-stat strong{font-size:20px}.sched-form-grid{grid-template-columns:1fr}.sched-form-grid .full{grid-column:auto}.sched-modal{width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.sched-modal form{height:100dvh;max-height:100dvh}.sched-modal-body{flex:1;padding:14px}.sched-modal form>header,.sched-modal footer{padding:12px 14px}.sched-clock-row{align-items:stretch}.sched-clock-row>span{flex-basis:100%}.sched-list>article,.sched-request-list>article{align-items:flex-start;flex-wrap:wrap}.sched-row-actions{width:100%}}
.sched-grid .sched-leave-row th{height:30px;background:#fff6e5;color:#93621c;font-size:9px}.sched-leave-note{max-width:170px;height:auto!important;min-height:30px;background:#fffaf0;color:#87908a;font-size:9px!important;line-height:1.25}.sched-leave-note button{max-width:100%;padding:3px;border:0;background:transparent;color:#926017;text-align:left;font:inherit;font-weight:700;cursor:pointer;white-space:normal}.sched-leave-note button:hover{text-decoration:underline}
/* Reliable navigation group toggles */
.ws-nav .nav-group>summary{display:flex;align-items:center;cursor:pointer;pointer-events:auto;position:relative;z-index:2;user-select:none}
.ws-nav .nav-group:not(.overview-nav)>.nav-leaves{display:none}
.ws-nav .nav-group:not(.overview-nav)[open]>.nav-leaves{display:grid}
.ws-nav .nav-group.overview-nav>.nav-leaves{display:flex}
.ws-nav .nav-group>summary:focus-visible{outline:3px solid #37a47b;outline-offset:2px}

/* Unified finance workspace */
.finance-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}
.finance-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.finance-tabs{display:flex;gap:7px;overflow:auto;padding:7px;margin:12px 0 15px;background:#fff;border:1px solid var(--line);border-radius:15px;scrollbar-width:thin}
.finance-tabs button{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;border:0;border-radius:10px;padding:10px 13px;background:transparent;color:#4b5d55;font:inherit;font-weight:650;cursor:pointer;white-space:nowrap}
.finance-tabs button:hover{background:#f0f6f2}.finance-tabs button.active{background:#e6f4ed;color:#137b5b}.finance-overview-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:14px 0}
.finance-overview-strip article{display:grid;gap:7px;padding:15px 17px;background:#fff;border:1px solid var(--line);border-radius:14px;min-width:0}
.finance-overview-strip small,.finance-fund-card>small{color:var(--muted);font-size:.82rem}.finance-overview-strip strong{font-size:clamp(1rem,1.6vw,1.35rem);overflow-wrap:anywhere;color:#173c34}
.finance-filterbar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:14px 0;padding:12px 14px;background:#f9fbfa;border:1px solid var(--line);border-radius:13px}
.finance-filterbar label{display:grid;gap:5px;min-width:170px;color:#617169;font-size:.8rem;font-weight:650}.finance-filterbar select{min-height:39px;padding:7px 32px 7px 10px;border:1px solid #dce5df;border-radius:9px;background:#fff;color:#243b33;font:inherit}.finance-filter-note{margin:0 0 9px auto;color:var(--muted);font-size:.82rem}
.finance-content{padding:18px 0 6px}.finance-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0 13px}.finance-section-heading h2{margin:0;color:#173c34;font-size:1.15rem}.finance-section-heading p{margin:5px 0 0;color:var(--muted);font-size:.9rem}
.finance-lower-heading{margin-top:25px}.finance-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.finance-table{width:100%;min-width:870px;border-collapse:separate;border-spacing:0}.finance-table th{position:sticky;top:0;padding:12px 13px;background:#f5f8f6;color:#627169;text-align:left;font-size:.76rem;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}.finance-table td{padding:12px 13px;border-top:1px solid #edf1ee;color:#293f37;vertical-align:middle;font-size:.89rem}.finance-table td small{display:block;margin-top:4px;color:#85928c;font-size:.77rem}.finance-table tbody tr:hover{background:#fbfdfb}
.finance-row-actions{display:flex;gap:5px;flex-wrap:wrap;min-width:95px}.finance-row-actions button{padding:6px 8px;border:1px solid #dce6df;border-radius:8px;background:#fff;color:#23694f;font-size:.78rem;white-space:nowrap;cursor:pointer}.finance-row-actions button:hover{background:#e9f5ee}
.finance-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#fff4dd;color:#9a6710;font-size:.76rem;font-weight:700;white-space:nowrap}.finance-status.good{background:#e8f6ed;color:#20744e}.finance-status.bad{background:#fff0ed;color:#b33b31}.finance-status.muted{background:#eff2f0;color:#64736c}.finance-status.pending{background:#fff5df;color:#96650f}
.finance-type{display:inline-flex;padding:4px 8px;border-radius:7px;font-weight:700;font-size:.8rem}.finance-type.income{background:#e8f6ed;color:#18784f}.finance-type.expense{background:#fff0ed;color:#b33b31}.finance-amount{font-weight:750;white-space:nowrap}.finance-amount.income{color:#18784f}.finance-amount.expense{color:#a94237}
.finance-empty{padding:34px 20px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #cfdbd3;border-radius:14px}.finance-footnote{margin:14px 0;color:#819088;font-size:.82rem}.finance-callout{display:flex;gap:12px;margin:16px 0;padding:15px;border:1px solid #d9e9df;border-radius:13px;background:#f2faf5;color:#3d564b}.finance-callout>span{font-size:1.2rem}.finance-callout p{margin:5px 0 0;color:#6b7b73;line-height:1.5}
.finance-fund-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:12px}.finance-fund-card{padding:17px;border:1px solid var(--line);border-radius:15px;background:#fff}.finance-fund-top{display:flex;align-items:center;justify-content:space-between}.finance-fund-top>span{font-size:1.5rem}.finance-fund-card h3{margin:12px 0 4px;color:#183c34}.finance-fund-card p{margin:0 0 15px;color:var(--muted);font-size:.87rem}.finance-fund-card>strong{display:block;margin:0 0 3px;color:#137b5b;font-size:1.4rem}.finance-fund-meta{margin-top:13px;padding-top:10px;border-top:1px solid #edf1ee;color:#829087;font-size:.78rem}
.finance-period-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:15px 0 18px;padding:18px 20px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(120deg,#f0f8f3,#fff)}.finance-period-card h2{margin:3px 0;color:#173c34}.finance-period-card p{margin:4px 0 0;color:var(--muted)}
.finance-modal-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:18px;background:rgba(13,31,26,.56);backdrop-filter:blur(3px)}.finance-modal{display:flex;flex-direction:column;width:min(860px,96vw);max-height:min(92vh,920px);overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 24px 80px #102a2050}.finance-modal>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid var(--line)}.finance-modal>header h2{margin:3px 0 0;color:#173c34}.finance-modal-x{width:38px;height:38px;border:0;border-radius:11px;background:#f1f5f2;color:#50635a;font-size:1.55rem;cursor:pointer}.finance-modal-body{overflow:auto;padding:20px 22px}.finance-modal>footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid var(--line);background:#fbfcfb}.finance-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.finance-field{display:grid;gap:6px;min-width:0;color:#455a51;font-size:.84rem;font-weight:650}.finance-field.full{grid-column:1/-1}.finance-field input,.finance-field select,.finance-field textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d7e1da;border-radius:10px;background:#fff;color:#243b33;font:inherit;font-weight:450}.finance-field textarea{min-height:90px;resize:vertical}.finance-money-wrap{display:flex;align-items:center;border:1px solid #d7e1da;border-radius:10px;background:#fff}.finance-money-wrap input{border:0;box-shadow:none;min-width:0}.finance-money-wrap span{padding:0 12px;color:#849189}.finance-code-hint,.finance-approval-note{grid-column:1/-1;padding:10px 12px;border-radius:10px;background:#f3f7f4;color:#64736c;font-size:.82rem}.finance-code-hint strong{color:#177957}.finance-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.finance-category-list>div{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;border:1px solid var(--line);border-radius:10px}.finance-category-list button{border:0;background:transparent;color:#b14338;font-size:1.15rem;cursor:pointer}.finance-category-add{display:flex;align-items:flex-end;gap:10px;margin-top:16px}.finance-category-add .finance-field{flex:1}.finance-audit-list{display:grid;gap:8px}.finance-audit-list article{display:flex;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid #e7ede9;border-radius:10px}.finance-audit-list small{display:block;margin-top:4px;color:#7b8982;font-size:.78rem}
@media(max-width:900px){.finance-overview-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.finance-intro{align-items:flex-start;flex-direction:column}.finance-header-actions{justify-content:flex-start}.finance-filter-note{width:100%;margin:0}}
@media(max-width:620px){.finance-overview-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.finance-overview-strip article{padding:12px}.finance-tabs{margin-left:-4px;margin-right:-4px}.finance-tabs button{padding:9px 10px;font-size:.83rem}.finance-section-heading,.finance-period-card{align-items:flex-start;flex-direction:column}.finance-form-grid{grid-template-columns:1fr}.finance-field.full{grid-column:auto}.finance-modal-backdrop{display:block;padding:0;background:rgba(13,31,26,.58)}.finance-modal{width:100%;height:100%;max-height:100%;border-radius:0}.finance-modal>header{padding:14px 16px}.finance-modal-body{padding:16px}.finance-modal>footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.finance-category-list{grid-template-columns:1fr}.finance-category-add{align-items:stretch;flex-direction:column}.finance-filterbar{align-items:stretch}.finance-filterbar label{min-width:100%}}
.finance-secure-note{max-width:850px;margin:50px auto;padding:24px 28px;line-height:1.7;border:1px solid #efdcac;background:#fffaf0;color:#6a531e}
.finance-fund-actions{display:flex;justify-content:flex-end;margin-top:12px}.finance-fund-actions button{padding:7px 10px;border:1px solid #dce6df;border-radius:8px;background:#fff;color:#23694f;font-size:.8rem;cursor:pointer}
/* Hồ sơ nhân sự: bố cục rõ nhóm, popup linh hoạt PC/điện thoại */
#staffOverlay{padding:clamp(10px,3vw,34px);align-items:center}
#staffForm{width:min(1020px,100%);max-height:min(94dvh,1000px);padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #dce7e1;box-shadow:0 24px 80px rgba(19,52,41,.22)}
#staffForm>h2{position:sticky;top:0;z-index:5;margin:0;padding:20px 26px 12px;background:rgba(255,255,255,.97);border-bottom:1px solid #edf1ee;font-size:23px;letter-spacing:-.02em}
#staffForm>.privacy-note,#staffForm>#staffList,#staffForm>#staffAccountPanel,#staffForm>.staff-avatar-editor,#staffForm>.staff-form,#staffForm>.staff-documents,#staffForm>#staffError{margin-left:26px;margin-right:26px}
#staffForm>.privacy-note{margin-top:16px}
.staff-avatar-editor{display:flex;align-items:center;gap:16px;padding:14px 16px;border:1px solid #e1e9e4;border-radius:14px;background:linear-gradient(110deg,#f5faf7,#fff);margin-top:16px!important}
.staff-avatar-editor>div:last-child{display:grid;gap:7px}.staff-avatar-editor>div:last-child>label{font-weight:700;color:#284d3d}
.staff-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;padding:0;margin-top:6px!important}
.staff-form .field{min-width:0}.staff-form .field.full{grid-column:1/-1}.staff-form .field input,.staff-form .field select,.staff-form .field textarea{width:100%;min-width:0}
.staff-form-section{grid-column:1/-1;display:flex;align-items:center;gap:11px;margin:8px 0 0;padding:12px 14px;border:1px solid #e3ece6;border-radius:12px;background:#f7faf8}
.staff-form-section>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#e4f2e9;color:#167352;font-size:12px;font-weight:800}
.staff-form-section strong,.staff-form-section small{display:block}.staff-form-section strong{font-size:14px;color:#234b39}.staff-form-section small{margin-top:3px;color:#77867d;font-size:11px}
.staff-documents{display:grid;gap:12px;margin-top:12px!important;padding:0 0 4px}
.staff-document-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.staff-upload-card{display:grid;gap:7px;min-width:0;padding:14px;border:1px dashed #bfd4c7;border-radius:13px;background:#fbfdfb;color:#284d3d;cursor:pointer}
.staff-upload-card>span{font-size:13px;font-weight:750}.staff-upload-card>small{color:#7a8980;font-size:11px}.staff-upload-card input{width:100%;max-width:100%;font:inherit;font-size:12px;color:#53675c}
.staff-doc-preview-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:9px}
.staff-doc-item{display:flex;align-items:center;gap:10px;min-width:0;padding:9px 10px;border:1px solid #e3eae5;border-radius:11px;background:#fff}
.staff-doc-thumb{width:42px;height:42px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#eef5f0;color:#287a5d;font-size:18px}
.staff-doc-thumb img{width:100%;height:100%;object-fit:cover}.staff-doc-info{min-width:0;flex:1}.staff-doc-info strong,.staff-doc-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.staff-doc-info strong{font-size:12px;color:#334b3d}.staff-doc-info small{margin-top:3px;color:#7c8981;font-size:10px}.staff-doc-remove{border:0;background:transparent;color:#9c514c;font-size:18px;cursor:pointer}
#staffForm>.actions{position:sticky;bottom:0;z-index:5;margin:14px 0 0;padding:14px 26px calc(14px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #e8eeea}
.ws-person-documents{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.ws-person-documents a{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #e1e9e4;border-radius:10px;background:#fff;color:#315a45;text-decoration:none;font-size:12px;font-weight:650}.ws-person-documents img{width:36px;height:36px;object-fit:cover;border-radius:6px}
@media(max-width:680px){#staffOverlay{padding:7px;align-items:stretch}#staffForm{width:100%;height:calc(100dvh - 14px);max-height:calc(100dvh - 14px);min-height:0;border-radius:16px}#staffForm>h2{padding:16px 16px 11px;font-size:19px}#staffForm>.privacy-note,#staffForm>#staffList,#staffForm>#staffAccountPanel,#staffForm>.staff-avatar-editor,#staffForm>.staff-form,#staffForm>.staff-documents,#staffForm>#staffError{margin-left:15px;margin-right:15px}.staff-form{grid-template-columns:minmax(0,1fr);gap:11px}.staff-form .field.full,.staff-form-section{grid-column:1}.staff-document-upload-grid{grid-template-columns:1fr}.staff-upload-card{padding:12px}.staff-doc-preview-list{grid-template-columns:1fr}.staff-avatar-editor{align-items:flex-start;padding:11px}.staff-avatar-preview{width:62px;height:62px}#staffForm>.actions{padding:12px 15px calc(12px + env(safe-area-inset-bottom))}#staffForm>.actions button{flex:1}}
.staff-doc-open{display:flex;align-items:center;gap:10px;flex:1;min-width:0;color:inherit;text-decoration:none}.staff-doc-empty{padding:12px;border:1px dashed #dbe6df;border-radius:10px;color:#7b8980;font-size:12px}.ws-person-documents-section{margin:14px 0}.ws-person-documents-section>strong{display:block;margin-bottom:8px;color:#355d48;font-size:13px}.ws-person-documents a>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-person-documents a small{display:block;margin-top:3px;color:#7c8981;font-size:10px;font-weight:500}
#staffForm.modal{width:min(1020px,calc(100vw - 48px))!important;max-width:1020px!important;margin:auto}
#staffForm>.staff-form-section:first-child{margin-top:16px}
.ws-person-private{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ws-private-item{min-width:0;padding:12px 13px;border:1px solid #e8eee9;border-radius:11px;background:#fbfcfb}.ws-private-item small{font-size:10px;text-transform:uppercase;letter-spacing:.035em}.ws-private-item span{font-size:13px;color:#344b3d;line-height:1.5}
@media(max-width:760px){#staffForm.modal{width:calc(100vw - 16px)!important;max-width:none!important}.ws-person-private{grid-template-columns:1fr}}
/* HR directory: compact complete summary and CV-style profile */
.ws-person summary{grid-template-columns:48px minmax(150px,1.3fr) minmax(82px,.62fr) minmax(105px,.78fr) minmax(115px,.9fr) minmax(90px,.66fr) minmax(100px,.76fr) 20px;gap:10px}
.ws-person-table-head{grid-template-columns:48px minmax(150px,1.3fr) minmax(82px,.62fr) minmax(105px,.78fr) minmax(115px,.9fr) minmax(90px,.66fr) minmax(100px,.76fr) 20px;gap:10px}
.staff-cv{max-width:1240px;margin:0 auto;padding:12px 4px 4px}
.staff-cv-hero{display:flex;align-items:center;gap:18px;padding:22px 24px;border:1px solid #dce8df;border-radius:18px;background:linear-gradient(120deg,#f2f8f4,#fff 65%);box-shadow:0 10px 28px #143b2510}
.staff-cv-avatar{display:grid;place-items:center;flex:none;width:82px;height:82px;border-radius:22px;overflow:hidden;background:#dff0e5;color:#176c4f;font-size:24px;font-weight:800}
.staff-cv-avatar img{width:100%;height:100%;object-fit:cover}
.staff-cv-title{min-width:0;flex:1}.staff-cv-title small{color:#64806e;font-size:10px;font-weight:800;letter-spacing:.1em}.staff-cv-title h2{margin:5px 0;color:#173f2e;font-size:25px;letter-spacing:-.03em}.staff-cv-title p{margin:0;color:#5b7264;font-size:13px}
.staff-cv-status{align-self:flex-start;padding:7px 11px;border-radius:99px;background:#e4f4e9;color:#26724f;font-size:11px;font-weight:750;white-space:nowrap}
.staff-cv-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:15px}
.staff-cv-section{min-width:0;padding:17px 18px;border:1px solid #e4ebe6;border-radius:15px;background:#fff;box-shadow:0 6px 18px #143b2508}
.staff-cv-section h3{display:flex;align-items:center;gap:9px;margin:0 0 13px;color:#244d38;font-size:14px}.staff-cv-section h3>span{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#edf5ef;color:#247553}
.staff-cv-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px}.staff-cv-fact{min-width:0;padding-bottom:9px;border-bottom:1px solid #f0f3f0}.staff-cv-fact small{display:block;margin-bottom:4px;color:#809087;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.045em}.staff-cv-fact>span{display:block;color:#304c3b;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.staff-cv-actions{display:flex;justify-content:flex-end;margin-top:14px}
@media(max-width:900px){.ws-person summary,.ws-person-table-head{grid-template-columns:44px minmax(135px,1.2fr) minmax(75px,.6fr) minmax(95px,.8fr) minmax(100px,.85fr) minmax(80px,.6fr) minmax(90px,.7fr) 18px;gap:7px}.ws-person-cell strong{font-size:12px}}
@media(max-width:760px){.ws-person summary{grid-template-columns:42px minmax(0,1fr) minmax(0,1fr) 18px;grid-template-rows:auto auto auto auto;gap:5px 8px;padding:12px 0}.ws-person-avatar{grid-column:1;grid-row:1/5;width:40px;height:40px}.ws-person-summary{grid-column:2/4;grid-row:1}.ws-person summary>.ws-person-cell{display:flex;align-items:baseline;gap:4px;min-width:0;white-space:nowrap}.ws-person summary>.ws-person-cell::before{content:attr(data-label) ':';color:#87948b;font-size:9px;font-weight:700;flex:none}.ws-person summary>.ws-person-cell strong{font-size:11px}.ws-person summary>.ws-person-cell:nth-of-type(3){grid-column:2;grid-row:2}.ws-person summary>.ws-person-cell:nth-of-type(4){grid-column:3;grid-row:2}.ws-person summary>.ws-person-cell:nth-of-type(5){grid-column:2/4;grid-row:3}.ws-person summary>.ws-person-cell:nth-of-type(6){grid-column:2;grid-row:4}.ws-person summary>.ws-person-cell:nth-of-type(7){grid-column:3;grid-row:4}.ws-person .ws-guide-arrow{grid-column:4;grid-row:1}.staff-cv-hero{align-items:flex-start;gap:12px;padding:16px}.staff-cv-avatar{width:60px;height:60px;border-radius:17px;font-size:19px}.staff-cv-title h2{font-size:20px}.staff-cv-status{padding:5px 8px;font-size:10px}.staff-cv-sections{grid-template-columns:1fr;gap:10px}.staff-cv-section{padding:14px}.staff-cv-facts{gap:9px 11px}}
#staffForm.staff-browsing .staff-avatar-editor,#staffForm.staff-browsing>.staff-form,#staffForm.staff-browsing>#staffAccountPanel,#staffForm.staff-browsing>#staffDocPreviews,#staffForm.staff-browsing>.staff-doc-section,#staffForm.staff-browsing>#staffError{display:none!important}
.staff-manager-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin:4px 0 12px;border:1px solid #deebe2;border-radius:12px;background:#f5faf6}
.staff-manager-heading>div{display:grid;gap:4px}.staff-manager-heading strong{color:#214b36;font-size:14px}.staff-manager-heading small{color:#738278;font-size:12px}
@media(max-width:600px){.staff-manager-heading{align-items:flex-start;flex-direction:column}.staff-manager-heading button{width:100%}}
#staffForm.staff-browsing>.staff-documents{display:none!important}
/* Refreshed employee directory */
.staff-directory{display:grid;gap:16px}.staff-directory-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 2px 3px}.staff-directory-head .ws-title{margin:4px 0}.staff-add-main{flex:none;min-height:46px;padding:12px 17px;border-radius:12px;box-shadow:0 8px 18px #17694d20}
.staff-directory-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.staff-directory-stats article{display:flex;align-items:center;gap:12px;min-width:0;padding:15px 17px;background:#fff;border:1px solid #e2ebe4;border-radius:15px;box-shadow:0 5px 18px #173e2808}.staff-directory-stats article>span{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:#eef6f0;font-size:18px}.staff-directory-stats article div{display:grid;gap:3px}.staff-directory-stats small{color:#78877d;font-size:11px}.staff-directory-stats strong{color:#183d2c;font-size:22px;line-height:1.1}
.staff-directory-tools{display:flex;align-items:center;gap:9px;padding:12px;background:#fff;border:1px solid #e2ebe4;border-radius:14px;box-shadow:0 5px 18px #173e2808}.staff-directory-search{display:flex;align-items:center;gap:8px;flex:1;min-width:200px;padding:0 11px;border:1px solid #e1e8e3;border-radius:10px;background:#fbfcfb}.staff-directory-search>span{font-size:21px;color:#718579}.staff-directory-search input{width:100%;height:40px;border:0;outline:0;background:transparent;font:inherit;color:var(--ink)}.staff-directory-tools select{min-width:145px;max-width:210px;height:42px;padding:0 30px 0 11px;border:1px solid #e1e8e3;border-radius:10px;background:#fff;color:#385346;font:inherit;font-size:12px}.staff-directory-result{flex:none;padding:0 6px;color:#748177;font-size:11px;white-space:nowrap}.staff-directory-list{display:grid;gap:10px}.staff-directory-list .ws-person{padding:0 16px;border-radius:14px}.staff-directory-list .ws-person summary{padding:13px 0}.staff-directory-privacy{margin:0;color:#718078;font-size:11px}.staff-directory-empty{display:grid;justify-items:center;gap:7px;padding:48px 20px}.staff-directory-empty>span{font-size:28px}.staff-directory-empty strong{color:#315740;font-size:16px}.staff-directory-empty small{color:#75847a;font-size:12px}
@media(max-width:1000px){.staff-directory-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-directory-tools{flex-wrap:wrap}.staff-directory-search{flex-basis:100%}.staff-directory-tools select{flex:1;max-width:none}}
@media(max-width:760px){.staff-directory{gap:12px}.staff-directory-head{align-items:stretch;flex-direction:column;gap:12px}.staff-add-main{width:100%}.staff-directory-stats{gap:8px}.staff-directory-stats article{padding:11px;gap:9px}.staff-directory-stats article>span{width:34px;height:34px;font-size:16px}.staff-directory-stats strong{font-size:19px}.staff-directory-tools{gap:7px;padding:9px}.staff-directory-search{min-width:100%;flex-basis:100%}.staff-directory-tools select{min-width:calc(50% - 5px);font-size:11px}.staff-directory-result{margin-left:auto}.staff-directory-list .ws-person{padding:0 12px}}
.staff-directory-actions{display:flex;align-items:center;gap:8px;flex:none}.staff-manage-main{min-height:46px;padding:11px 15px;border:1px solid #dce7df;border-radius:12px;background:#fff;color:#355a43;font-weight:700}.staff-manage-main:hover{background:#f4f8f5}.staff-add-main{width:auto}
@media(max-width:760px){.staff-directory-actions{display:grid;grid-template-columns:1fr 1fr}.staff-directory-actions button{width:100%;min-height:44px;padding:9px;font-size:12px}}
#staffOverlay{z-index:12050!important;isolation:isolate;pointer-events:auto}
#staffOverlay.show{display:grid!important}
#staffOverlay>#staffForm{position:relative;z-index:1;pointer-events:auto}
#staffForm>#closeStaff,#staffForm .actions{position:relative;z-index:6;pointer-events:auto}

/* Keep the task editor above the fixed app header, menus, and other dialogs. */
#overlay{z-index:13000!important;isolation:isolate;pointer-events:auto}
#overlay.show{display:grid!important;visibility:visible!important;opacity:1!important}
#overlay>#taskForm{position:relative;z-index:1;pointer-events:auto}
#addBtn{position:relative;z-index:10024;pointer-events:auto}
#taskForm{position:relative}
#taskForm>.task-close{position:absolute;top:13px;right:16px;z-index:8;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid #dce7e9;border-radius:11px;background:#f6f9f8;color:#31575d;font-size:26px;line-height:1;cursor:pointer;pointer-events:auto}
#taskForm>.task-close:hover{background:#e5f7d0;color:#174b52}
#taskForm>h2{padding-right:68px}
#staffOverlay{z-index:13050!important}
.tag-chip[style*="--tag-color"]{background:color-mix(in srgb,var(--tag-color) 14%,white);color:var(--tag-color)}
.selected-tag-chip{display:inline-flex;align-items:center;gap:5px}
.selected-tag-chip button{display:inline-grid;place-items:center;width:19px;height:19px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:15px;line-height:1;cursor:pointer}
.selected-tag-chip button:hover{background:#00000012}
.tag-choice-row{grid-template-columns:minmax(150px,1.1fr) auto minmax(160px,1.2fr) 40px 92px;gap:8px}
.tag-choice-row .tag-create-button{width:92px;min-height:38px;padding:8px 10px;justify-self:stretch;line-height:1.1}
.tag-choice-or{text-align:center}
.tag-save-status{display:block;min-height:16px;margin-top:2px}
.tag-save-status[data-state="success"]{color:#18704f}
.tag-save-status[data-state="warning"]{color:#936700}
.tag-save-status[data-state="error"]{color:#b13a32}
@media(max-width:640px){.tag-choice-row .tag-create-button{grid-column:1/-1;width:min(100%,150px);justify-self:center}}

/* Focused workspace layout for projects, objectives and KPI */
.project-module-tabs{margin-top:16px;border:1px solid #e3ece8;border-radius:14px;background:#fff;overflow:hidden}
.project-module-tablist{display:flex;gap:6px;padding:8px;border-bottom:1px solid #e6eeea;background:#f7faf8;overflow-x:auto}
.project-module-tab{flex:0 0 auto;padding:9px 13px;border:1px solid transparent;border-radius:9px;background:transparent;color:#5c7470;font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}
.project-module-tab:hover{background:#edf5f0;color:#174b52}
.project-module-tab[aria-selected="true"]{border-color:#d8e9de;background:#eaf5ee;color:#176b54;box-shadow:0 2px 7px #174b520d}
.project-module-panels{padding:12px}
.project-module-panel[hidden]{display:none!important}
.project-module-panel>.project-linked-goals,.project-module-panel>.project-kpi-list,.project-module-panel>.ws-grid,.project-module-panel>.project-task-section{margin:0}
.project-module-panel>.project-kpi-list,.project-module-panel>.ws-grid,.project-module-panel>.project-task-section{margin-top:10px}
.kpi-summary{margin:12px 0}
.kpi-summary .ws-card{padding:14px 16px}
.kpi-summary .stat-num{font-size:24px}
.kpi-board-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) minmax(150px,220px) minmax(180px,260px);gap:9px;margin:12px 0;padding:12px;border:1px solid #e2ebe7;border-radius:13px;background:#f8fbf9}
.kpi-board-toolbar input,.kpi-board-toolbar select{min-width:0;min-height:42px;padding:9px 12px;border:1px solid #dce7e1;border-radius:10px;background:#fff;color:#174b52;font:inherit;font-size:12px}
.kpi-board-entry[hidden]{display:none!important}
.objective-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding:12px;border:1px solid #e2ebe7;border-radius:13px;background:#f8fbf9}
.objective-toolbar .ws-actions{margin:0}
.objective-filters{display:flex;align-items:center;gap:8px;flex:1;justify-content:flex-end}
.objective-filters select,.objective-filters input{min-width:0;min-height:40px;padding:8px 11px;border:1px solid #dce7e1;border-radius:10px;background:#fff;color:#174b52;font:inherit;font-size:12px}
.objective-filters input{width:min(280px,100%)}
@media(max-width:760px){.project-module-panels{padding:9px}.project-module-tablist{padding:6px}.project-module-tab{padding:8px 10px}.kpi-board-toolbar{grid-template-columns:1fr}.objective-toolbar{align-items:stretch;flex-direction:column}.objective-filters{justify-content:stretch;flex-direction:column}.objective-filters>*{width:100%}.objective-filters input{width:100%}}
.objective-linked-kpis{margin:10px 0 4px;border:1px solid #e3ece8;border-radius:10px;background:#f8fbf9}
.objective-linked-kpis>summary{padding:9px 11px;color:#315f50;font-size:12px;font-weight:750;cursor:pointer}
.objective-linked-kpi-list{display:grid;gap:7px;padding:0 9px 9px}
.objective-linked-kpi-list>div{display:grid;grid-template-columns:minmax(160px,1fr) minmax(140px,.65fr) minmax(190px,1fr);align-items:center;gap:10px;padding:9px 10px;border:1px solid #e6eeea;border-radius:9px;background:#fff}
.objective-linked-kpi-list strong{color:#174b52;font-size:12px}
.objective-linked-kpi-list span,.objective-linked-kpi-list small{color:#668087;font-size:11px}
.objective-focus{outline:3px solid #a8db6b;outline-offset:3px;transition:outline-color .4s ease}
@media(max-width:760px){.objective-linked-kpi-list>div{grid-template-columns:1fr;gap:4px}}
.kpi-board-toolbar{grid-template-columns:minmax(230px,1fr) repeat(3,minmax(145px,210px))}
@media(max-width:760px){.kpi-board-toolbar{grid-template-columns:1fr}}

/* Monthly attendance roster */
.roster-toolbar{align-items:center}.roster-count{align-self:end;padding:10px 6px;color:#657c7c;font-size:12px;font-weight:700}.roster-scroll{max-height:72vh;overflow:auto;border:1px solid #d5e2df;border-radius:14px;background:#fff;overscroll-behavior:contain}.roster-table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed}.roster-table th,.roster-table td{height:31px;min-width:43px;padding:2px 3px;border-right:1px solid #d9e3e0;border-bottom:1px solid #d9e3e0;text-align:center;font-size:10px;white-space:nowrap}.roster-table thead th{position:sticky;top:0;z-index:5;background:#15545a;color:#fff}.roster-table .roster-stt{width:36px;min-width:36px;left:0} .roster-table tbody .roster-stt{position:sticky;z-index:4;background:#fff}.roster-table .roster-name{width:145px;min-width:145px}.roster-table .roster-job{width:100px;min-width:100px}.roster-table .roster-type{width:95px;min-width:95px}.roster-table .roster-fixed{position:sticky;z-index:4;background:#f7faf9;color:#23474a}.roster-table thead .roster-fixed{z-index:8;background:#15545a;color:white}.roster-table .roster-stt{left:0}.roster-table .roster-name{left:36px}.roster-table .roster-job{left:181px}.roster-table tbody .roster-type{position:sticky;left:281px;z-index:3}.roster-table .roster-dayhead{width:43px;min-width:43px}.roster-table .roster-dayhead span,.roster-table .roster-dayhead b{display:block}.roster-table .roster-dayhead span{font-size:8px;color:#d0e6e2}.roster-table .roster-dayhead.is-sunday{background:#b95456}.roster-table .roster-sumhead{width:67px;min-width:67px;white-space:normal;line-height:1.15}.roster-identity{position:sticky;left:36px;z-index:3;width:145px;min-width:145px;background:#fff!important;color:#163d43!important;text-align:left!important;white-space:normal!important}.roster-identity small,.roster-identity strong,.roster-identity span{display:block}.roster-identity small{color:#728484}.roster-identity strong{font-size:11px}.roster-identity span{color:#718181}.roster-position{position:sticky;left:181px;z-index:3;width:100px;min-width:100px;background:#fff;color:#526a6c;white-space:normal!important}.roster-type{text-align:left!important;font-weight:800}.roster-row-schedule .roster-type,.roster-row-schedule .roster-cell{background:#eff8cf}.roster-row-attendance .roster-type,.roster-row-attendance .roster-cell{background:#ffead7}.roster-row-evaluation .roster-type,.roster-row-evaluation .roster-cell{background:#e2f0df}.roster-row-info .roster-type,.roster-row-info .roster-cell{background:#dcebf8}.roster-row-overtime .roster-type,.roster-row-overtime .roster-cell{background:#f7dddd}.roster-employee-start th,.roster-employee-start td{border-top:2px solid #526b68}.roster-cell select,.roster-cell input{width:100%;min-width:0;height:25px;padding:1px;border:0;border-radius:4px;background:transparent;color:#20474a;text-align:center;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.roster-cell select:focus,.roster-cell input:focus{outline:2px solid #188367;background:#fff}.roster-cell select:disabled,.roster-cell input:disabled{cursor:default;appearance:none}.roster-summary{background:#f6faf8;color:#24484a;font-weight:800}.roster-note{display:flex;gap:14px;flex-wrap:wrap;padding:12px 4px;color:#617777;font-size:11px}.roster-note b{color:#194b4e}.roster-codebook>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:16px;border:1px solid #dbe7e4;border-radius:14px;background:#f8fbfa}.roster-codebook h2,.roster-codebook h3{margin:0;color:#17484d}.roster-codebook header p{margin:5px 0 0;color:#718181;font-size:12px}.roster-codebook section{margin:12px 0;padding:14px;border:1px solid #dbe7e4;border-radius:14px;background:white}.roster-codebook section h3{margin:0 0 10px;font-size:15px}.roster-codebook .sched-attendance-table table{min-width:650px}.roster-codebook td:last-child{text-align:right;white-space:nowrap}
@media(max-width:700px){.roster-toolbar .sched-toolbar-main{grid-template-columns:1fr 1fr}.roster-count{grid-column:1/-1;padding:0}.roster-toolbar .sched-toolbar-actions{display:flex;flex-wrap:wrap}.roster-scroll{max-height:66vh}.roster-table .roster-name{width:112px;min-width:112px}.roster-table .roster-job{width:80px;min-width:80px}.roster-table .roster-type{width:88px;min-width:88px}.roster-identity{width:112px;min-width:112px}.roster-position{width:80px;min-width:80px}.roster-table .roster-name{left:36px}.roster-table .roster-job{left:148px}.roster-table tbody .roster-type{left:228px}.roster-table .roster-dayhead{width:39px;min-width:39px}.roster-table th,.roster-table td{height:30px;padding:1px;font-size:9px}.roster-cell select,.roster-cell input{height:24px;font-size:9px}.roster-codebook>header{align-items:flex-start;flex-direction:column}}
.roster-table thead .roster-type{position:sticky;left:281px;z-index:9}.roster-table tbody .roster-stt{left:0}@media(max-width:700px){.roster-table thead .roster-type{left:228px}}
.sched-qr-modal{width:min(94vw,560px)}.sched-qr-frame{position:relative;overflow:hidden;width:100%;aspect-ratio:4/3;border-radius:18px;background:#102e31}.sched-qr-frame video{width:100%;height:100%;object-fit:cover}.sched-qr-target{position:absolute;inset:18% 15%;border:3px solid #70e3ac;border-radius:18px;box-shadow:0 0 0 100vmax #061a1a55}.sched-qr-poster{display:flex;min-height:250px;align-items:center;justify-content:center;flex-direction:column;gap:10px;margin:16px 0;padding:18px;border:1px solid #d9e5e1;border-radius:16px;background:#f8fbfa;text-align:center}.sched-qr-poster svg{width:min(68vw,300px);height:auto;background:#fff}.sched-qr-poster strong{font-size:18px;color:#164e4b}.sched-qr-poster small{color:#6d8280}.sched-row-actions{display:flex;gap:8px;flex-wrap:wrap}.sched-qr-modal .sched-modal-body>label{display:grid;gap:7px;font-weight:700}.sched-qr-modal .sched-modal-body>label select{min-height:44px;border:1px solid #d5e2df;border-radius:10px;padding:8px 12px;background:#fff}@media print{body *{visibility:hidden!important}.sched-qr-modal,.sched-qr-modal *{visibility:visible!important}.sched-qr-modal{position:fixed;inset:0;width:100%;max-width:none;border:0;box-shadow:none}.sched-qr-modal header button,.sched-qr-modal footer,.sched-qr-modal .sched-row-actions,.sched-qr-modal .sched-help{display:none!important}.sched-qr-poster{border:0}}
.org-position-filters{display:grid;grid-template-columns:minmax(240px,1fr) minmax(170px,220px) minmax(170px,210px) auto;align-items:center;gap:10px;margin:14px 0}.org-position-filters input,.org-position-filters select{min-width:0;width:100%;min-height:44px;border:1px solid #dce7e1;border-radius:12px;background:#fff;padding:10px 13px;color:#27483e}.org-position-filters>span{color:#71827b;font-size:12px;white-space:nowrap}.org-position-workspace{display:grid;grid-template-columns:minmax(300px,0.78fr) minmax(0,1.65fr);gap:14px;align-items:start}.org-position-sidebar,.org-position-detail{min-width:0;border:1px solid #dce8e2;border-radius:18px;background:#fff;box-shadow:0 8px 26px #143c300b;overflow:hidden}.org-position-sidebar>header{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;background:#f4f8f5;border-bottom:1px solid #e5ede8;color:#244d40}.org-position-sidebar>header span,.org-jd-count{border-radius:999px;background:#e8f3ed;color:#1b7258;padding:5px 9px;font-size:11px;font-weight:750}.org-position-list{display:grid;gap:8px;padding:10px;max-height:700px;overflow:auto}.org-role-card.org-position-item{gap:0;padding:10px;border-radius:14px;box-shadow:none;transition:border-color .15s,background .15s}.org-role-card.org-position-item.selected{border-color:#7dc4a4;background:#f1faf5;box-shadow:0 0 0 2px #d9f0e3}.org-position-select{width:100%;display:flex;align-items:center;gap:10px;text-align:left;border:0;background:transparent;padding:3px;color:inherit;cursor:pointer}.org-position-item-copy{display:grid;gap:4px;min-width:0;flex:1}.org-position-item-copy b{font-size:13px;color:#244c40}.org-position-item-copy small{font-size:10px;color:#7a8982;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.org-position-state{font-size:9px;color:#8a7651;background:#fbf4e7;padding:5px 7px;border-radius:999px;white-space:nowrap}.org-position-state.complete{background:#e6f5ec;color:#16805c}.org-role-card.org-position-item footer{display:flex;gap:5px;margin-top:8px;padding:7px 0 0;border-top:1px solid #edf1ef}.org-position-item footer button{min-height:30px;padding:4px 8px;font-size:11px}.org-position-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 18px;border-bottom:1px solid #edf1ef}.org-position-titleline{display:flex;align-items:center;gap:8px}.org-position-detail-head h2{margin:9px 0 4px;color:#194f43;font-size:23px}.org-position-detail-head p{margin:0;color:#788881;font-size:12px}.org-position-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;padding:12px 18px;background:#fbfdfb}.org-position-meta>div{display:grid;gap:6px;padding:11px;border:1px solid #e8efea;border-radius:12px;background:#fff}.org-position-meta span{color:#7b8982;font-size:10px}.org-position-meta b{color:#315b4d;font-size:12px;overflow-wrap:anywhere}.org-jd-tabs{display:flex;gap:5px;padding:10px 14px 0;border-bottom:1px solid #e5ede8;overflow-x:auto}.org-jd-tabs button{flex:0 0 auto;border:0;border-bottom:2px solid transparent;background:transparent;padding:11px 12px;color:#6c7e75;font-size:12px;font-weight:700;cursor:pointer}.org-jd-tabs button.active{border-color:#178264;color:#147453;background:#f4faf6}.org-jd-panel{padding:18px}.org-jd-overview-grid,.org-jd-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.org-jd-section{min-width:0;padding:16px;border:1px solid #e5ede8;border-radius:14px;background:#fff}.org-jd-section h3{margin:0 0 11px;color:#315b4d;font-size:14px}.org-jd-section h4{margin:18px 0 8px;color:#315b4d}.org-jd-section p{margin:0;color:#687b72;font-size:12px;line-height:1.65}.org-jd-purpose{background:linear-gradient(140deg,#f0faf4,#fff)}.org-jd-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.org-jd-kpis div{display:grid;gap:4px;padding:9px 5px;text-align:center;border-radius:10px;background:#f4f8f5}.org-jd-kpis b{font-size:18px;color:#16805c}.org-jd-kpis span{font-size:9px;color:#71827b}.org-jd-bullets{display:grid;gap:8px;margin:0;padding-left:19px;color:#4d665b;font-size:12px;line-height:1.6}.org-jd-empty{color:#84928b!important;font-size:12px}.org-jd-tags{display:flex;gap:7px;flex-wrap:wrap}.org-jd-tags span{padding:7px 9px;border-radius:9px;background:#f2f7f4;color:#506c60;font-size:10px}.org-jd-wide{grid-column:1/-1}.org-jd-facts{display:grid;gap:9px}.org-jd-facts p{padding-bottom:8px;border-bottom:1px solid #edf1ef}.org-jd-section-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.org-jd-linked-list{display:grid;gap:7px}.org-jd-linked-list article{display:grid;grid-template-columns:minmax(80px,auto) 1fr auto;align-items:center;gap:12px;padding:11px;border:1px solid #e8efea;border-radius:11px;background:#fbfdfb}.org-jd-linked-list article b{color:#167456}.org-jd-linked-list article span{color:#375b4e;font-size:12px}.org-jd-linked-list article small{color:#7e8c85;font-size:10px}.org-jd-salary{font-size:20px!important;font-weight:800;color:#177554!important}.org-jd-timeline{display:grid;gap:0}.org-jd-timeline article{display:grid;grid-template-columns:14px 1fr;gap:10px;padding:0 0 16px}.org-jd-timeline i{width:9px;height:9px;margin:4px 0 0 2px;border-radius:50%;background:#20936b;box-shadow:0 0 0 4px #e6f5ec}.org-jd-timeline b{color:#315b4d;font-size:12px}.org-jd-timeline p{margin:4px 0}.org-jd-timeline small{color:#829089;font-size:10px}.org-jd-empty-state{display:grid;justify-items:center;text-align:center;gap:10px;padding:70px 20px}.org-jd-empty-state>span{font-size:38px}.org-jd-empty-state h3{margin:0;color:#315b4d}.org-jd-empty-state p{margin:0 0 8px;color:#788881;font-size:12px}
@media(max-width:900px){.org-position-workspace{grid-template-columns:minmax(240px,.75fr) minmax(0,1.3fr)}.org-position-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.org-position-filters{grid-template-columns:1fr 1fr}.org-position-filters input{grid-column:1/-1}}
@media(max-width:650px){.org-position-filters{grid-template-columns:1fr 1fr}.org-position-filters input{grid-column:1/-1}.org-position-workspace{grid-template-columns:1fr}.org-position-list{display:flex;max-height:none;overflow-x:auto;scroll-snap-type:x mandatory;padding:9px}.org-role-card.org-position-item{flex:0 0 min(84vw,330px);scroll-snap-align:start}.org-position-detail-head{align-items:flex-start;padding:16px;flex-direction:column}.org-position-detail-head h2{font-size:20px}.org-position-meta{padding:10px;gap:6px}.org-position-meta>div{padding:8px}.org-jd-panel{padding:10px}.org-jd-overview-grid,.org-jd-columns{grid-template-columns:1fr}.org-jd-wide{grid-column:auto}.org-jd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.org-jd-linked-list article{grid-template-columns:1fr auto}.org-jd-linked-list article span{grid-column:1/-1;grid-row:2}.org-jd-linked-list article small{grid-column:2;grid-row:1}.org-role-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.org-role-toolbar{align-items:stretch}.org-role-toolbar>div,.org-role-toolbar>button{width:100%}}
.staff-profile-workspace{display:grid;grid-template-columns:minmax(330px,.78fr) minmax(0,1.6fr);gap:14px;align-items:start}.staff-profile-sidebar,.staff-profile-detail{min-width:0;overflow:hidden;background:#fff;border:1px solid #dfe9e3;border-radius:18px;box-shadow:0 8px 26px #173d2b0b}.staff-profile-sidebar>header{display:flex;align-items:center;justify-content:space-between;padding:15px 16px;background:#f4f8f5;border-bottom:1px solid #e7ede9;color:#315b49}.staff-profile-sidebar>header span{padding:5px 9px;border-radius:999px;background:#e8f3ed;color:#197453;font-size:11px;font-weight:750}.staff-profile-list{display:grid;gap:8px;padding:10px;max-height:720px;overflow:auto}.staff-profile-row{min-width:0;padding:10px;border:1px solid #e2ebe5;border-radius:14px;background:#fff;transition:background .16s,border-color .16s}.staff-profile-row.selected{border-color:#8bc7a8;background:#f0f9f4;box-shadow:0 0 0 2px #dcefe3}.staff-profile-select{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer;color:inherit}.staff-profile-row-copy{display:grid;gap:4px;min-width:0;flex:1}.staff-profile-row-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#244d40;font-size:13px}.staff-profile-row-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a8981;font-size:10px}.staff-profile-status{flex:none;padding:5px 8px;border-radius:999px;background:#fbf3e5;color:#897248;font-size:9px;font-weight:700;white-space:nowrap}.staff-profile-status.active{background:#e6f5ec;color:#17805a}.staff-profile-detail-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 22px;border-bottom:1px solid #e9efeb}.staff-profile-title{display:flex;align-items:center;gap:14px;min-width:0}.staff-profile-avatar-large{display:grid;place-items:center;flex:none;width:68px;height:68px;overflow:hidden;border-radius:18px;background:#e9f4ed;color:#167557;font-size:18px;font-weight:800}.staff-profile-avatar-large img{width:100%;height:100%;object-fit:cover}.staff-profile-title-meta{display:flex;align-items:center;gap:8px}.staff-profile-title h2{margin:8px 0 4px;color:#194f43;font-size:22px}.staff-profile-title p{margin:0;color:#76867e;font-size:11px}.staff-profile-tabs{display:flex;gap:4px;padding:9px 14px 0;border-bottom:1px solid #e4ece7;overflow-x:auto}.staff-profile-tabs button{flex:0 0 auto;padding:11px 13px;border:0;border-bottom:2px solid transparent;background:transparent;color:#718178;font-size:12px;font-weight:700;cursor:pointer}.staff-profile-tabs button.active{border-color:#178264;background:#f3faf6;color:#147453}.staff-profile-panel{padding:17px}.staff-profile-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.staff-profile-section{min-width:0;padding:16px;border:1px solid #e4ece7;border-radius:14px;background:#fff}.staff-profile-section h3{margin:0 0 12px;color:#315b49;font-size:14px}.staff-profile-section p{margin:0;color:#657a6e;font-size:12px;line-height:1.6;white-space:pre-wrap}.staff-profile-purpose{background:linear-gradient(140deg,#f0faf4,#fff)}.staff-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.staff-profile-facts>div{display:grid;gap:5px;min-width:0;padding:10px;border-radius:10px;background:#f5f8f6}.staff-profile-facts small{color:#7b8982;font-size:9px;text-transform:uppercase;letter-spacing:.035em}.staff-profile-facts b{overflow-wrap:anywhere;color:#385b4d;font-size:12px;line-height:1.5}.staff-profile-empty{display:grid;justify-items:center;gap:10px;padding:75px 18px;text-align:center}.staff-profile-empty>span{font-size:40px;color:#198064}.staff-profile-empty h2{margin:0;color:#315b49}.staff-profile-empty p,.staff-profile-empty-note{margin:0;color:#7b8982;font-size:12px}.staff-profile-detail .ws-person-documents-section{margin:0}.staff-profile-detail .ws-person-documents{margin-bottom:0}
@media(max-width:900px){.staff-profile-workspace{grid-template-columns:minmax(260px,.8fr) minmax(0,1.35fr)}.staff-profile-detail-head{align-items:flex-start;flex-direction:column}}
@media(max-width:650px){.staff-profile-workspace{grid-template-columns:1fr}.staff-profile-list{display:flex;max-height:none;overflow-x:auto;scroll-snap-type:x mandatory;padding:9px}.staff-profile-row{flex:0 0 min(84vw,340px);scroll-snap-align:start}.staff-profile-detail-head{padding:14px}.staff-profile-title{align-items:flex-start;gap:10px}.staff-profile-avatar-large{width:54px;height:54px;border-radius:15px}.staff-profile-title h2{font-size:18px}.staff-profile-detail-head>.primary{width:100%}.staff-profile-panel{padding:10px}.staff-profile-overview{grid-template-columns:1fr;gap:9px}.staff-profile-section{padding:13px}.staff-profile-facts{gap:7px}.staff-profile-facts>div{padding:8px}.staff-profile-facts b{font-size:11px}}

.staff-directory-tools{display:grid!important;grid-template-columns:minmax(125px,.8fr) minmax(180px,2fr) minmax(125px,1fr) minmax(115px,.9fr) auto;gap:7px;padding:8px}.staff-directory-tools .staff-directory-status-filter{min-width:0;width:100%;max-width:none;height:36px;padding:0 28px 0 9px;font-size:11px}.staff-directory-search{min-width:0;flex:1 1 auto;flex-basis:auto;padding:0 9px}.staff-directory-search input{height:34px;font-size:12px}.staff-directory-search>span{font-size:18px}.staff-directory-tools>select:not(.staff-directory-status-filter){min-width:0;width:100%;max-width:none;height:36px;padding:0 26px 0 9px;font-size:11px}.staff-directory-result{font-size:10px;padding:0 3px}
@media(max-width:1000px){.staff-directory-tools{grid-template-columns:minmax(125px,.8fr) minmax(180px,1.7fr) minmax(120px,1fr) minmax(110px,.9fr) auto;flex-wrap:initial}.staff-directory-search{min-width:0;flex-basis:auto}}
@media(max-width:760px){.staff-directory-tools{grid-template-columns:minmax(115px,.8fr) minmax(150px,1.2fr);gap:6px;padding:7px}.staff-directory-search{grid-column:auto;min-width:0;flex-basis:auto}.staff-directory-tools .staff-directory-status-filter{min-width:0;grid-column:auto}.staff-directory-tools>select:not(.staff-directory-status-filter){min-width:0;grid-column:auto}.staff-directory-result{display:none}}
@media(max-width:360px){.staff-directory-tools{grid-template-columns:minmax(105px,.75fr) minmax(135px,1.25fr)}}

/* Staff profile tabs and privacy/document states */
.staff-profile-tabs{display:flex;gap:6px;overflow-x:auto;white-space:nowrap}.staff-profile-tabs button{flex:0 0 auto}.staff-private-hidden{color:#7b8982;font-weight:500;font-style:italic}.staff-sensitive-hint,.staff-document-status-note{margin:0 0 12px;color:#667a72;font-size:13px}.staff-doc-status-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.staff-document-state{display:inline-flex;align-items:center;border-radius:999px;padding:6px 11px;font-size:12px;font-weight:700}.staff-document-state.complete{background:#e5f6eb;color:#13764e}.staff-document-state.missing{background:#fff2d9;color:#94630b}.staff-document-state.warning{background:#ffe8e5;color:#b54136}.staff-doc-expiry{display:flex;align-items:center;gap:8px;margin-top:5px;color:#64766e;font-size:11px}.staff-doc-expiry input{max-width:150px;padding:5px 8px;font-size:12px}.staff-profile-section p{white-space:pre-wrap}.staff-legal-name{margin:-7px 0 6px!important;color:#667a72;font-size:13px}

.payroll-overtime-box{grid-column:1/-1;padding:13px;border:1px solid #d7e8df;border-radius:13px;background:linear-gradient(135deg,#f1f8f4,#fff)}.payroll-overtime-box h4{margin:0 0 10px;color:#175b4b;font-size:13px}.payroll-overtime-rate{display:grid;align-content:center;gap:4px;padding:9px 11px;border:1px solid #e1eae6;border-radius:10px;background:#fff;color:#587168;font-size:11px}.payroll-overtime-rate b{color:#176d51;font-size:15px}.payroll-overtime-rate small{color:#758981;font-size:10px}.payroll-overtime-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:9px}.payroll-overtime-summary>div{display:flex;justify-content:space-between;gap:10px;padding:9px 11px;border-radius:9px;background:#eaf4ee;color:#44675b;font-size:11px}.payroll-overtime-summary b{color:#145b49;white-space:nowrap}@media(max-width:760px){.payroll-overtime-summary{grid-template-columns:1fr}}
.payroll-modal{width:min(1480px,calc(100vw - 32px))}.payroll-record-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(370px,.9fr);gap:14px;align-items:start}.payroll-record-main{min-width:0}.payroll-record-tabs{position:sticky;top:49px;z-index:2;display:flex;gap:5px;overflow:auto;padding:6px;border:1px solid #e2ebe7;border-radius:12px;background:#f8fbf9}.payroll-record-tabs button{flex:0 0 auto;padding:9px 12px;border:0;border-radius:9px;background:transparent;color:#61796f;font:inherit;font-size:11px;font-weight:700;cursor:pointer}.payroll-record-tabs button.active{background:#e3f3e9;color:#08764f;box-shadow:inset 0 0 0 1px #bce2ce}.payroll-record-pane{padding:12px 0}.payroll-record-pane[hidden]{display:none}.payroll-record-pane>h3{margin:0 0 10px;color:#174e47;font-size:14px}.payroll-record-pane .payroll-section{margin-top:10px}.payroll-record-sidebar{display:grid;gap:12px;position:sticky;top:58px;max-height:calc(100dvh - 90px);overflow:auto;padding-right:2px}.payroll-record-summary,.payroll-insurance-card{padding:13px;border:1px solid #dfeae4;border-radius:13px;background:#fff;box-shadow:0 5px 18px #1743360b}.payroll-record-summary h3,.payroll-insurance-card h3{margin:0 0 10px;color:#174e47;font-size:13px}.payroll-summary-row{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border-bottom:1px solid #edf2ef;color:#63776f;font-size:10px}.payroll-summary-row b{color:#275c4a;text-align:right;white-space:nowrap}.payroll-summary-net{display:flex;justify-content:space-between;gap:10px;margin-top:9px;padding:10px;border-radius:9px;background:#e6f5e9;color:#12643c;font-size:11px;font-weight:800}.payroll-summary-net b{white-space:nowrap}.payroll-insurance-options{display:grid;gap:6px;margin-bottom:9px}.payroll-insurance-options h4{margin:0;color:#47665b;font-size:10px}.payroll-insurance-options label{display:flex;align-items:flex-start;gap:6px;padding:7px;border:1px solid #e2ebe6;border-radius:8px;background:#f9fbfa;color:#526e62;font-size:9px;line-height:1.35}.payroll-insurance-options input{margin:1px 0 0;accent-color:#138458}.payroll-insurance-table table{min-width:430px}.payroll-insurance-table th,.payroll-insurance-table td{padding:5px 4px;font-size:9px}.payroll-insurance-table input{min-width:48px;padding:4px}.payroll-product-section{margin-top:12px}.payroll-product-total{display:flex;justify-content:space-between;padding:9px;background:#eef7f1;color:#335b4a;font-size:11px}.payroll-product-total b{color:#087746}@media(max-width:1000px){.payroll-record-layout{grid-template-columns:1fr}.payroll-record-sidebar{position:static;max-height:none;overflow:visible;grid-template-columns:1fr 1fr}.payroll-record-summary{grid-column:1/-1}}@media(max-width:760px){.payroll-modal{width:100vw}.payroll-record-tabs{top:47px}.payroll-record-tabs button{padding:8px 10px;font-size:10px}.payroll-record-sidebar{grid-template-columns:1fr}.payroll-record-summary{grid-column:auto}.payroll-insurance-table table{min-width:540px}}
/* Mobile alignment: consistent page gutters, touch targets and centered dialogs. */
@media(max-width:760px){
  body{--mobile-gutter:14px}
  #app,#appShell,.app-shell,.workspace-shell,.workspace-main,main{min-width:0;max-width:100%;box-sizing:border-box}
  .workspace-main,#workspacePage,.workspace-page{padding-left:var(--mobile-gutter)!important;padding-right:var(--mobile-gutter)!important}
  .workspace-page>*{min-width:0;max-width:100%;box-sizing:border-box}
  select,input:not([type=checkbox]):not([type=radio]),button{box-sizing:border-box;min-height:42px}
  .filter-row,.toolbar,.module-toolbar,.list-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:stretch}
  .filter-row>*,.module-toolbar>select,.list-toolbar>select{min-width:0;max-width:100%;flex:1 1 145px}
  dialog[open],.modal[open],.pw-dialog[open],.community-dialog[open]{box-sizing:border-box;width:calc(100vw - 28px)!important;max-width:560px!important;max-height:calc(100dvh - 28px)!important;margin:auto!important;border-radius:18px;overflow:auto;overscroll-behavior:contain}
  dialog::backdrop{background:#102d2c99}
  .pw-dialog form,.modal form{min-width:0;box-sizing:border-box}
  .pw-dialog form>* , .modal form>*{max-width:100%;box-sizing:border-box}
  .pw-dialog footer,.modal footer,.dialog-actions{position:sticky;bottom:0;display:flex;gap:8px;padding:10px;background:#fff}
  .pw-dialog footer button,.modal footer button,.dialog-actions button{flex:1;min-width:0}
  .admin-demo-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-demo-actions>*{flex:1 1 180px}
}
@media(max-width:420px){body{--mobile-gutter:12px}.filter-row>*,.module-toolbar>select,.list-toolbar>select{flex-basis:100%}dialog[open],.modal[open],.pw-dialog[open],.community-dialog[open]{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important}}
.pi-workspace{display:grid;gap:18px;color:#163e43}.pi-heading{display:flex;justify-content:space-between;align-items:end;padding:8px 4px}.pi-heading h1{font-size:clamp(24px,2.2vw,34px);margin:8px 0}.pi-heading p,.pi-section-head p{margin:0;color:#70848a}.pi-tabs{display:flex;gap:8px;border-bottom:1px solid #dbe7e3;overflow:auto}.pi-tabs button{border:0;background:transparent;padding:13px 17px;color:#58716e;font-weight:700;white-space:nowrap;border-bottom:3px solid transparent}.pi-tabs button.active{color:#08775b;border-color:#11956d;background:#e9f5ef;border-radius:12px 12px 0 0}.pi-filters{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(210px,1fr) minmax(220px,1.2fr);gap:12px;align-items:end}.pi-filters label,.pi-modal label{display:grid;gap:6px;font-weight:650;color:#496267}.pi-filters input,.pi-filters select,.pi-modal input,.pi-modal select,.pi-modal textarea,.pi-table-wrap input{min-width:0;width:100%;box-sizing:border-box;border:1px solid #d5e3de;border-radius:11px;padding:10px 12px;background:#fff;color:#173d42;font:inherit}.pi-card{background:#fff;border:1px solid #dce8e4;border-radius:20px;padding:18px;box-shadow:0 8px 22px #183e4309}.pi-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.pi-section-head h2{font-size:19px;margin:0 0 5px}.pi-primary,.pi-secondary{border:1px solid #cfe0da;border-radius:12px;padding:11px 15px;font:inherit;font-weight:700;cursor:pointer}.pi-primary{background:#14545a;color:white;border-color:#14545a}.pi-secondary{margin-top:14px;background:#f3f8f5;color:#155e50}.pi-table-wrap{width:100%;overflow:auto;border:1px solid #e3ece8;border-radius:14px}.pi-table-wrap table{border-collapse:collapse;width:100%;min-width:920px}.pi-table-wrap th,.pi-table-wrap td{text-align:left;padding:11px 10px;border-bottom:1px solid #eaf0ed;vertical-align:middle}.pi-table-wrap th{background:#f1f7f4;color:#46605e;font-size:13px;white-space:nowrap}.pi-table-wrap td small{display:block;color:#748581;max-width:300px;margin-top:4px}.pi-table-wrap td button{border:1px solid #dbe8e2;border-radius:9px;padding:7px 10px;background:#f7faf8;color:#155f52;font-weight:650;cursor:pointer}.pi-table-wrap td button.danger{color:#a64040}.pi-empty{text-align:center!important;color:#748581;padding:28px!important}.pi-legacy{background:#f6faf8;border:1px solid #dce8e4;border-radius:16px;padding:14px}.pi-legacy>summary{font-weight:700;cursor:pointer}.pi-modal{position:fixed;inset:0;margin:auto;width:min(620px,calc(100vw - 28px));max-height:min(88dvh,850px);padding:0;border:0;border-radius:20px;box-shadow:0 20px 70px #102d3560;color:#173d42}.pi-modal::backdrop{background:#0d3038a0;backdrop-filter:blur(4px)}.pi-modal form{padding:20px;display:grid;gap:14px;max-height:inherit;overflow:auto}.pi-modal header,.pi-modal footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.pi-modal header{border-bottom:1px solid #e3ece8;padding-bottom:12px}.pi-modal header h2{margin:5px 0}.pi-modal header button{border:0;border-radius:10px;padding:9px 14px;font-size:22px;background:#eef5f1;color:#15545a}.pi-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.pi-check{display:flex!important;grid-template-columns:none!important;align-items:center}.pi-check input{width:auto}.pi-note{margin:0;background:#f1f7f4;border-radius:10px;padding:12px;color:#627975}@media(max-width:720px){.pi-filters{grid-template-columns:1fr 1fr}.pi-search{grid-column:1/-1}.pi-card{padding:13px;border-radius:15px}.pi-section-head{align-items:flex-start;flex-direction:column}.pi-form-grid{grid-template-columns:1fr}.pi-modal{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}.pi-modal form{padding:16px}.pi-tabs button{padding:11px 12px}}

/* KPI page heading compact, single-line hierarchy */
.pi-heading{padding:2px 4px}.pi-heading-line{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;overflow:hidden;color:#71847f;font-size:12px}.pi-heading-line h1{flex:0 0 auto;margin:0!important;font-size:17px!important;color:#163e43}.pi-heading-line .pi-heading-subtitle{flex:0 0 auto;color:#46605e;font-weight:650}.pi-heading-line p{min-width:0;margin:0;color:#70848a;text-overflow:ellipsis;overflow:hidden}.pi-heading-line>span,.pi-heading-line>b{flex:0 0 auto;color:#a4b3ae}.kpi-legacy-heading{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;overflow:hidden;margin:0 0 10px!important}.kpi-legacy-heading>*{flex:0 0 auto}.kpi-legacy-heading .ws-title{font-size:17px!important;margin:0!important}.kpi-legacy-heading .ws-lead{flex:1 1 auto;min-width:0;margin:0!important;font-size:12px;text-overflow:ellipsis;overflow:hidden}.kpi-legacy-heading>span,.kpi-legacy-heading>b{font-size:11px;color:#7a8e88;font-weight:600}@media(max-width:720px){.pi-heading-line{gap:5px;font-size:10px}.pi-heading-line h1,.kpi-legacy-heading .ws-title{font-size:14px!important}.pi-heading-line .pi-heading-subtitle{font-size:10px}.pi-heading-line p,.kpi-legacy-heading .ws-lead{font-size:10px}.pi-modal{overscroll-behavior:contain}}
.objective-numeric-field[hidden],.objective-qualitative-field[hidden],.objective-kpi-option[hidden]{display:none!important}.objective-quality-criteria{display:block;color:#627b75;margin:.4rem 0;white-space:pre-line}

.objective-participant-add{display:flex;align-items:center;gap:8px}.objective-participant-add select{flex:1;min-width:0}.objective-participant-picks{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}.objective-person-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 8px 5px 11px;border:1px solid #cfe3d7;border-radius:999px;background:#eef8f2;color:#175e4c;font-size:12px;font-weight:700}.objective-person-chip button{width:21px;height:21px;padding:0;border-radius:50%;background:#dcefe4;color:#175e4c;font-weight:800}.objective-empty-participants{color:var(--muted);font-size:12px}.objective-auto-children[aria-pressed="true"],.objective-auto-children.is-active{background:#dff4e7;color:#08724d;box-shadow:inset 0 0 0 1px #8bc6a5}.ws-intro>.eyebrow,.ws-intro>.ws-title,.ws-intro>.ws-lead{overflow-wrap:normal}.pi-heading-line{gap:6px;font-size:10px}.pi-heading-line h1,.kpi-legacy-heading .ws-title{font-size:15px!important}.pi-heading-line .pi-heading-subtitle{font-size:10px}.pi-heading-line p,.kpi-legacy-heading .ws-lead{font-size:10px}@media(max-width:720px){.ws-intro{gap:5px;margin-bottom:10px}.ws-intro>.eyebrow{max-width:23%;font-size:9px}.ws-intro>.eyebrow::after,.ws-intro>.ws-title::after{margin-left:5px}.ws-intro>.ws-title{max-width:38%;font-size:15px}.ws-intro>.ws-lead{font-size:10px}.objective-participant-add{align-items:stretch}.objective-participant-add button{white-space:nowrap}.pi-heading-line{gap:4px}.pi-heading-line h1,.kpi-legacy-heading .ws-title{font-size:13px!important}}

.my-work-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.my-work-tabs button{display:inline-flex;align-items:center;gap:8px;border:1px solid #d9e7e1;border-radius:12px;background:#fff;padding:10px 14px;color:#325b52;font:inherit;font-weight:700;cursor:pointer}.my-work-tabs button.active{background:#e7f5ec;border-color:#83c8a0;color:#087451}.my-work-tabs button span{display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:50%;background:#f0f6f2;font-size:12px}.my-work-tabs+.ws-card{margin-top:4px}

/* My Work: consolidated task and assigned-order workspace */
.my-work-page{display:grid;gap:16px;min-width:0}.my-work-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:4px 2px}.my-work-heading h2{font-size:clamp(24px,2vw,32px);letter-spacing:-.035em;color:#123e42;margin:7px 0 3px}.my-work-heading p{margin:0;color:#6e8384}.my-work-breadcrumb{font-size:10px;letter-spacing:.12em;font-weight:800;color:#1b8067}.my-work-breadcrumb span{color:#9aacab;margin:0 6px}.my-work-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.my-work-metrics article{display:flex;align-items:center;gap:12px;min-height:82px;padding:15px 17px;background:#fff;border:1px solid #dce8e5;border-radius:15px;box-shadow:0 5px 18px #16434808}.my-work-metrics i{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;font-style:normal;font-size:20px;font-weight:800}.my-work-metrics i.tasks{background:#e6f7ed;color:#078653}.my-work-metrics i.created{background:#e8f3ff;color:#3282c5}.my-work-metrics i.watching{background:#f1eaff;color:#7954bd}.my-work-metrics i.late{background:#fff0ef;color:#d74545}.my-work-metrics article span{display:grid;gap:2px}.my-work-metrics small{color:#687e7e;font-size:12px}.my-work-metrics strong{font-size:25px;line-height:1.1;color:#123e42}.my-work-panel{background:#fff;border:1px solid #dce8e5;border-radius:17px;overflow:hidden;box-shadow:0 7px 24px #16434808}.my-work-toolbar{padding:13px 16px;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #e7eeec}.my-work-tabs{display:flex;align-items:center;gap:5px;min-width:0;overflow:auto}.my-work-tabs button{display:flex;align-items:center;gap:8px;white-space:nowrap;background:transparent;color:#586e6e;padding:9px 11px;border-radius:10px;font-size:13px;font-weight:700}.my-work-tabs button.active{background:#e6f6ee;color:#087c59}.my-work-tabs button span{border-radius:99px;padding:2px 7px;background:#edf2f0;font-size:11px}.my-work-tabs button.active span{background:#d2eddf;color:#087c59}.my-work-search{width:min(260px,32%);min-width:185px;border:1px solid #dce8e5;border-radius:10px;padding:10px 12px;font:inherit;color:#173c3e;background:#fbfdfc}.my-work-archive-banner{margin:12px 15px 0;display:flex;align-items:center;gap:12px;padding:12px 15px;background:#eef8f3;border:1px solid #d3ecdf;border-radius:12px;color:#1d7258}.my-work-archive-banner>span{font-size:19px}.my-work-archive-banner div{display:grid;gap:2px;flex:1;min-width:0}.my-work-archive-banner strong{font-size:13px}.my-work-archive-banner small{font-size:11px;color:#6d8580}.my-work-archive-banner button,.my-work-aside button{background:transparent;color:#087c59;font-size:12px;font-weight:750;white-space:nowrap}.my-work-columns{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:14px;padding:14px}.my-work-list-panel{min-width:0}.my-work-list-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 9px}.my-work-list-heading h3{font-size:16px;margin:0;color:#173e42}.my-work-list-heading span{font-size:11px;color:#728584}.my-work-table-head,.my-work-row{display:grid;grid-template-columns:86px 70px minmax(170px,1.45fr) minmax(115px,1fr) minmax(115px,1fr) 84px 100px 55px;gap:8px;align-items:center}.my-work-table-head{padding:9px 10px;border-radius:9px;background:#f0f5f4;color:#536a69;font-size:10px;font-weight:800}.my-work-row{padding:10px 9px;min-height:58px;border-bottom:1px solid #e8eeec;font-size:11px;color:#314e4e}.my-work-row.is-overdue{background:#fff8f7}.my-work-row[hidden]{display:none}.my-work-type{font-size:9px;font-weight:800;color:#137d60;white-space:nowrap}.my-work-type.order{color:#347ab2}.my-work-code{font-size:10px;font-weight:750;color:#536c6d}.my-work-title{display:grid;gap:3px;min-width:0}.my-work-title strong{font-size:12px;color:#183e41;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-work-title small{font-size:10px;color:#718382;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-work-project,.my-work-person{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-work-deadline{font-size:10px;white-space:nowrap}.my-work-deadline.late{color:#d24444;font-weight:800}.my-work-status{justify-self:start;border-radius:99px;padding:5px 8px;background:#e9f6ed;color:#167a50;font-size:9px;font-weight:800;white-space:nowrap}.my-work-status.doing{background:#e4f3ef;color:#147c68}.my-work-status.todo{background:#e9f2ff;color:#2e73b5}.my-work-status.done{background:#eaf7eb;color:#428347}.my-work-status.order-status{background:#e8f3ff;color:#2c76b4}.my-work-row.is-overdue .my-work-status{background:#fff0ee;color:#cd4141}.my-work-row-actions{display:flex;justify-content:flex-end;gap:3px}.my-work-row-actions button{width:25px;height:25px;border-radius:7px;background:#f3f7f5;color:#41615b;font-weight:800}.my-work-row-actions button:hover{background:#e1f2e8;color:#087c59}.my-work-aside{display:grid;align-content:start;gap:12px}.my-work-aside>section{padding:12px;border:1px solid #e1eae7;border-radius:12px;background:#fff}.my-work-aside header{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:8px}.my-work-aside h3{font-size:13px;color:#173e42;margin:0}.my-work-event,.my-work-reminder{display:flex;align-items:center;gap:9px;padding:9px 0;border-top:1px solid #edf1f0;font-size:11px}.my-work-event time{min-width:48px;padding:4px 6px;border-radius:7px;text-align:center;background:#e7f6ed;color:#147c59;font-weight:800}.my-work-reminder-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#eef6f2;color:#147c59}.my-work-reminder div{display:grid;gap:3px;min-width:0}.my-work-reminder strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.my-work-reminder small,.my-work-empty-note{font-size:10px;color:#748584}.my-work-empty{padding:32px 15px;text-align:center;color:#718382;font-size:13px}.my-work-empty-note{margin:12px 0 3px}.my-work-aside button{padding:3px 0}
@media(max-width:1120px){.my-work-columns{grid-template-columns:minmax(0,1fr) 245px}.my-work-table-head,.my-work-row{grid-template-columns:78px 62px minmax(145px,1.4fr) minmax(95px,.9fr) minmax(95px,.9fr) 76px 90px 48px;gap:6px}.my-work-table-head{font-size:9px}.my-work-row{font-size:10px}}
@media(max-width:760px){.my-work-page{gap:11px}.my-work-heading{align-items:flex-start}.my-work-heading h2{font-size:23px}.my-work-heading p{font-size:12px}.my-work-heading>.primary{padding:10px 12px;white-space:nowrap;font-size:12px}.my-work-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.my-work-metrics article{min-height:66px;padding:10px 11px;border-radius:12px;gap:9px}.my-work-metrics i{width:34px;height:34px;border-radius:10px;font-size:17px}.my-work-metrics small{font-size:10px}.my-work-metrics strong{font-size:20px}.my-work-panel{border-radius:14px}.my-work-toolbar{align-items:stretch;flex-direction:column;gap:9px;padding:10px}.my-work-tabs{width:100%;overflow-x:auto;scrollbar-width:none}.my-work-tabs::-webkit-scrollbar{display:none}.my-work-tabs button{padding:8px 9px;font-size:11px}.my-work-search{width:100%;min-width:0;font-size:13px}.my-work-archive-banner{margin:9px 9px 0;padding:10px;align-items:flex-start}.my-work-archive-banner strong{font-size:11px}.my-work-archive-banner small{font-size:10px}.my-work-archive-banner button{font-size:10px;white-space:normal;text-align:right;max-width:100px}.my-work-columns{grid-template-columns:minmax(0,1fr);padding:10px;gap:10px}.my-work-list-heading h3{font-size:14px}.my-work-table-head{display:none}.my-work-row{grid-template-columns:auto auto 1fr auto;gap:5px 8px;padding:11px 10px;border:1px solid #e5eeea;border-radius:11px;margin-bottom:8px;font-size:10px}.my-work-type{grid-column:1/3}.my-work-code{grid-column:3/4;grid-row:1;text-align:right}.my-work-title{grid-column:1/4;grid-row:2}.my-work-title strong{font-size:12px}.my-work-project{grid-column:1/3;grid-row:3}.my-work-person{grid-column:3/5;grid-row:3;text-align:right}.my-work-deadline{grid-column:1/3;grid-row:4}.my-work-status{grid-column:3/4;grid-row:4}.my-work-row-actions{grid-column:4;grid-row:1/5;flex-direction:column}.my-work-aside{grid-template-columns:1fr 1fr;gap:8px}.my-work-aside>section{padding:10px}.my-work-aside h3{font-size:11px}.my-work-aside button{font-size:10px}.my-work-event,.my-work-reminder{font-size:10px}.my-work-event time{min-width:42px;font-size:9px}.my-work-reminder-icon{width:24px;height:24px}.my-work-reminder strong{font-size:10px}}
/* My Work toolbar: archive is a tab; compact search sits beside create. */
.my-work-toolbar{gap:10px!important;flex-wrap:nowrap!important}.my-work-tabs{flex:1 1 auto;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}.my-work-tabs button{flex:0 0 auto}.my-work-search{flex:0 1 235px!important;width:235px!important;min-width:150px!important;padding:8px 10px!important;font-size:12px!important}.my-work-archive-tab{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;padding:8px 10px;border:1px solid #dce9e3;border-radius:10px;background:#fff;color:#176b54;font-size:11px;font-weight:700;white-space:nowrap}.my-work-archive-tab span{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:#edf5f1;color:#11785a;font-size:10px}@media(max-width:760px){.my-work-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:8px!important}.my-work-tabs{grid-column:1/-1;width:100%;min-width:0}.my-work-search{grid-column:1;width:100%!important;min-width:0!important;max-width:none}.my-work-create-button{grid-column:2;align-self:stretch!important;padding:8px 10px!important}}
.archive-action{border:1px solid #dce9e3!important;border-radius:9px!important;background:#f7faf8!important;color:#176b54!important;font-weight:700!important;white-space:nowrap}.archive-action:hover{background:#eaf6ef!important;border-color:#b9dfc8!important;color:#0b7655!important}.archive-toolbar{display:flex;align-items:center;gap:9px;margin:0 0 12px}.archive-toolbar input{flex:1;min-width:180px;border:1px solid var(--line);border-radius:10px;padding:9px 11px;font:inherit}.archive-toolbar select{width:min(240px,38%);border:1px solid var(--line);border-radius:10px;padding:9px 11px;background:#fff;color:var(--ink);font:inherit}.archive-entry[hidden]{display:none!important}@media(max-width:700px){.archive-toolbar{align-items:stretch;flex-direction:column}.archive-toolbar input,.archive-toolbar select{width:100%;min-width:0;box-sizing:border-box}}
/* Task board responsive workspace matching the AP2 mockup. */
.task-board-welcome{display:flex!important;align-items:center!important;gap:16px!important;margin:4px 0 14px!important;padding:0!important}.task-board-welcome>div:first-child{display:contents!important}.task-board-welcome .eyebrow{display:none!important}.task-board-welcome h1{flex:0 1 auto!important;max-width:none!important;font-size:24px!important;white-space:nowrap!important}.task-board-welcome h1::after{content:"|";margin:0 9px;color:#a5b8b2;font-weight:400}.task-board-welcome .sub{flex:1 1 auto!important;font-size:13px!important;white-space:nowrap!important}.task-board-welcome .task-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0;flex:1 1 auto}.task-board-search{width:min(300px,34vw)!important;min-width:180px!important;height:40px;padding:9px 12px!important;border:1px solid #dce8e5!important;border-radius:11px!important;background:#fff!important;font-size:12px!important}.task-board-welcome #addBtn,.task-archive-open{height:40px;white-space:nowrap;padding:9px 14px!important;font-size:12px!important}.task-board-metrics{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;margin-bottom:14px!important}.task-board-metrics .stat{min-height:86px;padding:14px 16px!important;border-radius:15px!important;box-shadow:0 4px 14px #123f4610}.task-board-metrics .stat-label{font-size:11px!important}.task-board-metrics .stat-num{font-size:27px!important;margin-top:5px}.task-board-metrics .stat:nth-child(5) .stat-num{color:#c44949}.task-board-metrics .stat:nth-child(4) .stat-num{color:#bf7918}.task-board-panel{overflow:hidden;border-radius:16px}.task-board-filterbar{display:grid;gap:10px;padding:13px 15px;border-bottom:1px solid #e6eeea;background:#fff}.task-board-filter-main{display:flex;align-items:end;gap:8px;overflow-x:auto;padding-bottom:1px;scrollbar-width:thin}.task-filter{display:grid;gap:4px;min-width:120px;color:#647a75;font-size:10px;font-weight:700;white-space:nowrap}.task-filter select{height:36px;max-width:190px;border:1px solid #dce7e3;border-radius:10px;background:#fbfdfc;color:#183f43;padding:6px 27px 6px 9px;font:inherit;font-size:11px;font-weight:600}.task-filter select:focus{outline:2px solid #bee4cf;outline-offset:1px}.task-board-viewtools{display:flex;align-items:center;justify-content:flex-end;gap:8px}.task-board-viewtools select{height:35px;min-width:145px;border:1px solid #dce7e3;border-radius:10px;background:#fff;color:#18444a;padding:6px 10px;font:inherit;font-size:11px;font-weight:600}.task-board-viewtools #savedTaskFilters{min-width:150px}.task-board-viewtools button{min-height:35px;padding:7px 11px!important;border-radius:10px!important;font-size:11px!important;white-space:nowrap}.task-board-table-wrap{overflow:auto}.task-head,.task{grid-template-columns:90px minmax(210px,2fr) 64px minmax(125px,1.2fr) minmax(140px,1.3fr) 105px 145px 110px 115px 142px!important;min-width:1450px!important;column-gap:8px!important}.task-head{position:sticky;top:0;z-index:3;background:#edf4f1!important;color:#536c68!important;font-size:10px!important}.task-head span{white-space:nowrap}.task{min-height:62px!important;align-items:center!important}.task-code{font-size:10px!important;white-space:nowrap}.task-name .task-title{font-size:12px!important;line-height:1.35}.task-thumb{width:48px!important;height:40px!important;border-radius:8px!important}.task-project,.person{font-size:11px!important}.task-remaining{white-space:nowrap}.task-actions{display:flex;justify-content:flex-end;gap:3px}.task-actions button{min-width:25px;height:27px;border-radius:7px;background:#f2f7f4;color:#45645c;font-size:12px}.task-actions .quick-toggle{font-size:17px}.task-entry:hover{background:#f8fbf9}.task-entry[hidden]{display:none!important}
@media(max-width:1150px){.task-board-welcome{flex-wrap:wrap!important}.task-board-welcome .task-actions{flex-basis:100%;justify-content:flex-start}.task-board-search{flex:1 1 220px}.task-board-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important}.task-board-filter-main{flex-wrap:nowrap}.task-board-viewtools{justify-content:flex-start;overflow:auto}}
@media(max-width:760px){.task-board-welcome{display:grid!important;grid-template-columns:minmax(0,1fr);gap:8px!important}.task-board-welcome h1{font-size:18px!important;max-width:100%!important}.task-board-welcome h1::after{margin:0 5px}.task-board-welcome .sub{font-size:10px!important}.task-board-welcome .task-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;width:100%}.task-board-search{grid-column:1;width:100%!important;min-width:0!important;max-width:none;height:38px!important}.task-board-welcome #addBtn{grid-column:2;height:38px;padding:8px 10px!important;font-size:11px!important}.task-archive-open{grid-column:2;grid-row:1;height:38px;padding:7px 9px!important;font-size:10px!important}.task-board-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.task-board-metrics .stat{min-height:64px;padding:9px 11px!important;border-radius:12px!important}.task-board-metrics .stat-label{font-size:9px!important}.task-board-metrics .stat-num{font-size:21px!important;margin-top:2px}.task-board-filterbar{padding:9px;gap:8px}.task-board-filter-main{display:flex;overflow-x:auto;gap:7px}.task-filter{min-width:125px;font-size:9px}.task-filter select{height:34px;max-width:155px;font-size:10px}.task-board-viewtools{display:grid;grid-template-columns:1fr 1fr;gap:6px}.task-board-viewtools .task-view-filter,.task-board-viewtools #savedTaskFilters{min-width:0;width:100%}.task-board-viewtools select{min-width:0;width:100%;font-size:10px}.task-board-viewtools button{width:100%;font-size:10px!important}.task-head{display:none!important}#list.task-list{min-width:0!important;overflow:visible!important;padding:8px}.task-entry{min-width:0!important;margin:0 0 8px;border:1px solid #e1ebe6;border-radius:12px;background:#fff;box-shadow:0 3px 10px #153d4308;overflow:hidden}.task-entry>.task{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto auto auto!important;gap:7px 9px!important;min-width:0!important;min-height:0!important;padding:11px!important;border:0!important}.task-entry .task-code{grid-column:1;grid-row:1;font-size:9px!important;color:#13785c}.task-entry .task-actions{grid-column:2;grid-row:1;align-self:start;gap:3px} .task-entry .task-name{grid-column:1/-1;grid-row:2;min-width:0}.task-entry .task-name .task-title{font-size:13px!important;white-space:normal;line-height:1.3}.task-entry .task-thumb{grid-column:1;grid-row:3;width:44px!important;height:38px!important}.task-entry .task-project{grid-column:2;grid-row:3;align-self:center;text-align:right;max-width:60vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-entry .person{grid-column:1/-1;grid-row:4;min-width:0}.task-entry .desktop-date{grid-column:1;grid-row:5;font-size:10px}.task-entry .status-wrap{grid-column:2;grid-row:5;justify-self:end}.task-entry .priority{grid-column:1;grid-row:6}.task-entry .task-remaining{grid-column:2;grid-row:6;justify-self:end}.task-entry .task-expanded{grid-column:1/-1;min-width:0}.task-entry .task-full-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.task-list.grid{display:block!important;padding:8px}.task-list.horizontal-list .task-entry{flex:0 0 90vw}.task-kanban-board{grid-template-columns:repeat(3,minmax(82vw,1fr));padding:8px}.task-grouped-board{grid-template-columns:minmax(0,1fr);padding:8px}.task-calendar-board{grid-template-columns:minmax(0,1fr);padding:8px}}
/* Final refinements for the shared compact heading and interactive board cards. */
.task-board-welcome .eyebrow{display:block!important;flex:0 1 auto!important;max-width:18%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px!important;line-height:1.2}.task-board-welcome .eyebrow::after{content:"|";margin-left:8px;color:#a5b8b2;font-weight:400}.task-board-welcome h1{max-width:34%!important}.task-board-welcome .task-actions{gap:7px}.task-filter select,.task-board-viewtools select{font-family:inherit;font-weight:600;font-size:11px}.task-board-metrics .stat{cursor:pointer;transition:transform .15s,box-shadow .15s}.task-board-metrics .stat:hover{transform:translateY(-1px);box-shadow:0 7px 18px #123f4616}.task-board-panel .task-board-viewtools .task-view-filter{min-width:155px}.task-board-panel .task-board-viewtools .task-view-filter select{max-width:none}
@media(max-width:760px){.task-board-welcome .eyebrow{max-width:100%;font-size:9px!important}.task-board-welcome .eyebrow::after{margin-left:5px}.task-board-welcome h1{max-width:100%!important}.task-board-welcome .task-actions{grid-template-columns:minmax(0,1fr) auto}.task-archive-open{grid-column:2;grid-row:1}.task-board-welcome #addBtn{grid-column:2;grid-row:2}.task-board-search{grid-column:1/-1;grid-row:1}.task-board-welcome .task-actions #manageStaff{display:none}}

@media(max-width:760px){.task-board-welcome .task-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:7px!important}.task-board-welcome .task-board-search{grid-column:1/-1!important;grid-row:1!important;width:100%!important;min-width:0!important}.task-board-welcome .task-archive-open{grid-column:1!important;grid-row:2!important}.task-board-welcome #addBtn{grid-column:2!important;grid-row:2!important}.task-board-welcome .task-actions #manageStaff{display:none!important}}

@media(min-width:1200px){.task-board-filterbar{display:flex!important;align-items:flex-end!important;gap:12px!important}.task-board-filter-main{flex:1 1 auto!important;min-width:0!important;overflow-x:auto!important}.task-board-viewtools{flex:0 0 auto!important;align-items:flex-end!important;justify-content:flex-end!important;white-space:nowrap}.task-board-viewtools .task-view-filter{min-width:155px!important}.task-board-viewtools #savedTaskFilters{min-width:150px!important}}@media(min-width:761px) and (max-width:1199px){.task-board-filterbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important}.task-board-viewtools{justify-content:flex-end!important}.task-board-filter-main{flex-wrap:wrap!important;overflow:visible!important}}

/* Project create/edit modal */
body.project-modal-open{overflow:hidden!important}
.project-modal-overlay{position:fixed;inset:0;z-index:15000;display:grid;place-items:center;padding:22px;background:rgba(12,39,44,.58);backdrop-filter:blur(5px);overscroll-behavior:contain}
.project-create-modal{display:flex!important;flex-direction:column;width:min(1160px,calc(100vw - 44px))!important;max-width:1160px!important;height:min(900px,calc(100dvh - 44px));max-height:calc(100dvh - 44px)!important;min-height:0;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid #dce9e4!important;border-radius:20px!important;background:#fff!important;box-shadow:0 24px 90px rgba(7,38,43,.28)!important}
.project-modal-header{position:relative;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex:0 0 auto;padding:21px 26px 17px;border-bottom:1px solid #e7efeb;background:#fff}
.project-modal-crumb{display:flex;align-items:center;gap:8px;min-width:0;color:#668078;font-size:11px;font-weight:650;white-space:nowrap}.project-modal-crumb span{color:#a4b4ae}
.project-modal-header h2{margin:7px 0 3px!important;color:#123f44;font-size:23px!important;line-height:1.2}.project-modal-header p{margin:0;color:#72857f;font-size:12px;line-height:1.45}
.project-modal-close{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;border:1px solid #e2ece7;border-radius:11px;background:#f5f8f6;color:#355c56;font-size:25px;line-height:1;cursor:pointer}.project-modal-close:hover{background:#e7f4ec;color:#087653}
.project-modal-body{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:20px 24px 24px;overscroll-behavior:contain;scrollbar-gutter:stable}
.project-create-modal .project-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px;margin:0}.project-create-modal .project-form-grid .ws-field{min-width:0}.project-create-modal .project-form-grid .ws-field.full{grid-column:1/-1}
.project-form-section-label{display:flex;align-items:center;gap:9px;min-height:34px;margin:7px 0 0;padding:8px 0 5px;border-bottom:1px solid #e8efeb;color:#184d4d;font-size:14px;font-weight:800}.project-form-section-label b{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#eaf5ef;color:#13805c;font-size:10px}.project-form-section-label small{margin-left:auto;color:#84958e;font-size:10px;font-weight:500}
.project-create-modal .ws-field label{font-size:11px;font-weight:700;color:#4d6963}.project-create-modal .ws-field input,.project-create-modal .ws-field select,.project-create-modal .ws-field textarea{min-width:0;width:100%;box-sizing:border-box;border:1px solid #dce8e2;border-radius:10px;background:#fff;color:#183f43;font:inherit;font-size:13px;padding:10px 12px;outline:none;transition:border-color .16s,box-shadow .16s,background .16s}.project-create-modal .ws-field input,.project-create-modal .ws-field select{min-height:41px}.project-create-modal .ws-field textarea{min-height:78px;resize:vertical}.project-create-modal .ws-field input:focus,.project-create-modal .ws-field select:focus,.project-create-modal .ws-field textarea:focus{border-color:#59a987;box-shadow:0 0 0 3px rgba(35,145,101,.12)}.project-create-modal .ws-field select[multiple]{min-height:96px;padding:7px 9px}.project-create-modal .ws-field>small{display:block;margin-top:5px;color:#7a8d87;font-size:10px;line-height:1.4}
.project-create-modal .project-composer{margin:20px 0 0;padding:15px;border-color:#dce9e3;background:#f8fbf9}.project-create-modal .project-composer-heading{margin-bottom:10px}.project-create-modal .project-composer-heading h3{font-size:16px}.project-composer-tabs{display:flex;gap:7px;overflow-x:auto;padding:0 0 10px;scrollbar-width:thin}.project-composer-tabs button{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:9px 13px;border:1px solid #dce8e2;border-radius:10px;background:#fff;color:#526d65;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:background .16s,border-color .16s,color .16s}.project-composer-tabs button.active{border-color:#78c29e;background:#eaf7ef;color:#087653}.project-composer-tabs button:focus-visible,.project-modal-close:focus-visible{outline:3px solid rgba(12,132,91,.25);outline-offset:2px}.project-composer-section[hidden]{display:none!important}.project-modal-footer{position:sticky;bottom:-24px;z-index:2;display:flex;justify-content:flex-end;gap:9px;margin:20px -24px -24px;padding:12px 24px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e6eee9;background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}.project-modal-footer button{min-height:42px}
@media(max-width:980px){.project-create-modal .project-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.project-modal-overlay{display:block;padding:0;background:#fff;backdrop-filter:none}.project-create-modal{width:100vw!important;height:100vh;height:100dvh;max-width:none!important;max-height:100vh!important;max-height:100dvh!important;min-height:0;border:0!important;border-radius:0!important;box-shadow:none!important}.project-modal-header{gap:10px;padding:13px 15px 11px;padding-top:max(13px,env(safe-area-inset-top))}.project-modal-header h2{font-size:19px!important}.project-modal-header p{font-size:11px}.project-modal-crumb{gap:5px;font-size:9px}.project-modal-close{width:36px;height:36px;flex-basis:36px}.project-modal-body{padding:13px 14px 18px;scrollbar-gutter:auto}.project-create-modal .project-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px}.project-create-modal .project-form-grid .ws-field.full{grid-column:1/-1}.project-form-section-label{font-size:12px;margin-top:4px}.project-form-section-label small{display:none}.project-create-modal .ws-field label{font-size:10px}.project-create-modal .ws-field input,.project-create-modal .ws-field select,.project-create-modal .ws-field textarea{font-size:12px;padding:9px 10px}.project-create-modal .ws-field input,.project-create-modal .ws-field select{min-height:39px}.project-create-modal .project-composer{margin:15px 0 0;padding:10px;border-radius:13px}.project-create-modal .project-composer-heading h3{font-size:14px}.project-create-modal .project-composer-heading p{font-size:10px}.project-composer-tabs{gap:6px}.project-composer-tabs button{padding:8px 10px;font-size:11px}.project-modal-footer{bottom:-18px;margin:16px -14px -18px;padding:10px 14px max(10px,env(safe-area-inset-bottom))}.project-modal-footer button{flex:1;min-height:42px;padding:9px 10px;font-size:12px}}
@media(max-width:380px){.project-create-modal .project-form-grid{grid-template-columns:minmax(0,1fr)}.project-create-modal .project-form-grid .ws-field.full{grid-column:auto}.project-modal-footer{gap:7px}}

/* Project modal refresh: sectioned layout matching the approved desktop/mobile reference. */
.project-create-modal{width:min(1280px,calc(100vw - 48px))!important;max-width:1280px!important;height:min(940px,calc(100dvh - 40px));max-height:calc(100dvh - 40px)!important;border-radius:24px!important}
.project-modal-header{display:grid;grid-template-columns:1fr auto;align-items:center;padding:14px 28px 12px}
.project-modal-brand{display:flex;align-items:center;gap:10px;min-width:0;color:#073f3d}
.project-modal-brand strong{font-size:15px;white-space:nowrap}.project-modal-brand i{color:#14a65d;font-style:normal}.project-modal-logo{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:linear-gradient(145deg,#4edb79,#078553);color:#fff;font-size:18px}
.project-modal-breadcrumb{margin-left:16px;color:#314f4d;font-size:11px}.project-modal-breadcrumb b{margin:0 8px;color:#99aaa5}.project-modal-breadcrumb em{color:#078545;font-style:normal;font-weight:750}
.project-modal-header h2{grid-column:1/-1;grid-row:1;justify-self:center;margin:0!important;color:#063f3b;font-size:25px!important;pointer-events:none}
.project-modal-header .project-modal-close{grid-column:2;grid-row:1;z-index:1;width:34px;height:34px;border:0;background:transparent;font-size:28px;color:#143e3d}
.project-modal-body{padding:0 28px 14px}
.project-form-section{padding:12px 0 13px;border-bottom:1px solid #dfe9e7}.project-form-section:last-child{border-bottom:0}
.project-form-section>h3{display:flex;align-items:center;gap:10px;margin:0 0 9px;color:#073f3b;font-size:15px;font-weight:800}.project-form-section>h3>b{display:grid;place-items:center;width:34px;height:32px;border-radius:10px;background:#e7f8e8;color:#08753e;font-size:13px}.project-form-section>h3>span{color:#07564b;font-size:19px}
.project-modal-grid{display:grid;gap:8px 14px;min-width:0}.project-modal-grid-four{grid-template-columns:repeat(4,minmax(0,1fr))}.project-modal-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}.project-modal-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.project-modal-grid>label,.project-milestone-panel>label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#254b49;font-size:11px;font-weight:700}.project-modal-grid label i{color:#d94747;font-style:normal}.project-modal-grid label small,.project-milestone-panel label small{color:#758b86;font-size:9px;font-weight:500}.project-modal-grid input,.project-modal-grid select,.project-modal-grid textarea,.project-milestone-panel textarea{width:100%;min-width:0;box-sizing:border-box;min-height:36px;padding:8px 10px;border:1px solid #ccd9de;border-radius:8px;background:#fff;color:#152e31;font:inherit;font-size:12px;outline:none}.project-modal-grid textarea,.project-milestone-panel textarea{min-height:62px;resize:vertical}.project-modal-grid input:focus,.project-modal-grid select:focus,.project-modal-grid textarea:focus,.project-milestone-panel textarea:focus{border-color:#2d9e68;box-shadow:0 0 0 2px #27a46620}
.project-wide-2{grid-column:span 2}.project-wide-all{grid-column:1/-1}.project-rich-editor{overflow:hidden;border:1px solid #ccd9de;border-radius:8px;background:#fff}.project-rich-toolbar{display:flex;gap:1px;min-height:31px;padding:3px 6px;border-bottom:1px solid #dce5e8;background:#f8fafb}.project-rich-toolbar button{min-width:29px;border:0;border-radius:5px;background:transparent;color:#152e31;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.project-rich-toolbar button:hover{background:#e8f5ec;color:#06794a}.project-rich-content{min-height:48px;max-height:110px;overflow:auto;padding:8px 10px;color:#172f31;font-size:12px;font-weight:400;line-height:1.45;outline:none}.project-rich-content:empty:before{content:'Nhập mô tả dự án…';color:#8a9b9b}.project-rich-content table{border-collapse:collapse}.project-rich-content td{min-width:70px;padding:4px;border:1px solid #ccd9de}
.project-modal-grid select[multiple]{min-height:48px;padding:5px}.project-team-chips{display:flex;flex-wrap:wrap;gap:5px}.project-team-chips button{padding:4px 8px;border:1px solid #dbe9df;border-radius:999px;background:#f2f8f4;color:#315c50;font:inherit;font-size:10px;cursor:pointer}.project-team-chips button b{margin-left:4px;color:#617a70}.project-publish-option{grid-column:1/-1;display:flex!important;align-items:center!important;flex-direction:row!important;gap:8px!important;padding:6px 0}.project-publish-option input{width:16px;min-height:16px;accent-color:#078c3d}.project-add-document{align-self:flex-start;padding:6px 10px;border:1px solid #92d690;border-radius:7px;background:#f0ffed;color:#087a38;font:inherit;font-size:10px;font-weight:750;cursor:pointer}
.project-create-modal .project-composer{margin:0;padding:0;border:0;background:transparent}.project-create-modal .project-composer-heading{display:none}.project-composer-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;overflow:visible;padding:0;border:1px solid #dfe8e8;border-radius:9px 9px 0 0;background:#fbfcfc}.project-composer-tabs button{justify-content:center;min-width:0;padding:8px 9px;border:0;border-right:1px solid #e1e9e9;border-radius:0;background:transparent;color:#214844;font-size:11px}.project-composer-tabs button:last-child{border-right:0}.project-composer-tabs button.active{background:#edffed;color:#087239;box-shadow:inset 0 -2px #60cb58}.project-composer-tabs button span{display:inline-grid;place-items:center;min-width:18px;height:18px;border-radius:99px;background:#e4f2e7;font-size:9px}.project-composer-sections{padding:0 9px;border:1px solid #dfe8e8;border-top:0;border-radius:0 0 9px 9px}.project-composer-section{padding:7px 0;border-bottom:1px solid #e6ecec}.project-composer-section>summary{display:none}.project-composer-section[hidden],.project-milestone-panel[hidden]{display:none!important}.project-composer-section .ws-actions{margin:7px 0}.project-composer-section .ws-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.project-composer-section .ws-field label{font-size:10px}.project-composer-section .ws-field input,.project-composer-section .ws-field select,.project-composer-section .ws-field textarea{width:100%;box-sizing:border-box;min-height:34px;padding:7px 8px;font-size:11px}.project-milestone-panel{padding:10px;border:1px solid #dfe8e8;border-top:0;border-radius:0 0 9px 9px}.project-milestone-panel p{margin:5px 0 0;color:#788b86;font-size:10px}
.project-modal-footer{position:sticky;bottom:-24px;display:flex;align-items:center;margin:0;padding:10px 28px max(12px,env(safe-area-inset-bottom));border-top:1px solid #e5eceb;background:#fff}.project-modal-footer>span{flex:1}.project-modal-footer button{min-width:105px;min-height:38px;padding:8px 15px;border-radius:8px;font:inherit;font-size:11px;font-weight:750;cursor:pointer}.project-cancel-button{border:1px solid #cbd8dd;background:#fff;color:#344c4e}.project-draft-button{border:1px solid #c7edc8;background:#eaffea;color:#16733b}.project-submit-button{border:1px solid #006453;background:#087863;color:#fff;box-shadow:0 5px 12px #0e5a4930}
@media(max-width:760px){.project-modal-overlay{display:block;padding:0}.project-create-modal{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:100dvh!important;border:0!important;border-radius:0!important}.project-modal-header{position:sticky;top:0;z-index:4;grid-template-columns:1fr auto;padding:10px 13px 9px;padding-top:max(10px,env(safe-area-inset-top))}.project-modal-brand{flex-wrap:wrap;gap:6px}.project-modal-brand strong{font-size:12px}.project-modal-logo{width:25px;height:25px;font-size:14px}.project-modal-breadcrumb{flex-basis:100%;margin:0 0 0 31px;font-size:9px}.project-modal-header h2{grid-column:1;grid-row:2;justify-self:start;margin:2px 0 0!important;font-size:18px!important}.project-modal-header .project-modal-close{grid-column:2;grid-row:1/3;width:32px;height:32px}.project-modal-body{padding:0 13px 10px}.project-form-section{padding:10px 0}.project-form-section>h3{gap:7px;margin-bottom:7px;font-size:12px}.project-form-section>h3>b{width:27px;height:25px;border-radius:8px;font-size:10px}.project-form-section>h3>span{font-size:15px}.project-modal-grid-four,.project-modal-grid-three,.project-modal-grid-two{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 8px}.project-modal-grid>label{gap:4px;font-size:9px}.project-modal-grid input,.project-modal-grid select,.project-modal-grid textarea,.project-milestone-panel textarea{min-height:33px;padding:7px 8px;font-size:11px}.project-modal-grid textarea,.project-milestone-panel textarea{min-height:52px}.project-rich-toolbar{min-height:27px;padding:2px 4px}.project-rich-toolbar button{min-width:25px;font-size:10px}.project-rich-content{min-height:42px;padding:7px;font-size:11px}.project-wide-2{grid-column:span 2}.project-wide-all{grid-column:1/-1}.project-composer-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.project-composer-tabs button{padding:7px 3px;font-size:9px}.project-composer-section .ws-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-modal-footer{position:sticky;bottom:-10px;gap:6px;margin:0 -13px;padding:8px 13px max(8px,env(safe-area-inset-bottom))}.project-modal-footer button{flex:1;min-width:0;min-height:38px;padding:7px 5px;font-size:10px}.project-draft-button{order:2}.project-submit-button{order:3}.project-cancel-button{order:1}}
@media(max-width:380px){.project-modal-grid-four,.project-modal-grid-three,.project-modal-grid-two{grid-template-columns:1fr}.project-wide-2,.project-wide-all{grid-column:1}.project-modal-footer{gap:4px}.project-modal-footer button{font-size:9px}}
/* Keep project identity, breadcrumb, title, and close control on one header row. */
.project-modal-header{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:16px;row-gap:0}
.project-modal-brand{grid-column:1;grid-row:1;flex-wrap:nowrap;overflow:hidden;white-space:nowrap}
.project-modal-brand strong{flex:0 1 auto;min-width:0;max-width:190px;overflow:hidden;text-overflow:ellipsis}
.project-modal-breadcrumb{flex:0 1 auto;min-width:0;max-width:250px;margin-left:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-modal-header h2{grid-column:2;grid-row:1;justify-self:end;min-width:max-content;margin:0!important;font-size:20px!important;white-space:nowrap}
.project-modal-header .project-modal-close{grid-column:3;grid-row:1;justify-self:end}
.project-modal-grid>label,.project-milestone-panel>label{line-height:1.25}
.project-modal-grid input,.project-modal-grid select{height:37px;min-height:37px}
.project-modal-grid textarea,.project-milestone-panel textarea{min-height:64px}
.project-modal-grid-four,.project-modal-grid-three,.project-modal-grid-two{align-items:start}
.project-modal-grid>label>input,.project-modal-grid>label>select,.project-modal-grid>label>.project-rich-editor{margin-top:1px}
@media(max-width:760px){.project-modal-header{grid-template-columns:minmax(0,1fr) auto auto;column-gap:7px;padding:9px 11px;padding-top:max(9px,env(safe-area-inset-top))}.project-modal-brand{grid-column:1;grid-row:1;gap:5px}.project-modal-brand strong{max-width:100px;font-size:10px}.project-modal-logo{flex:0 0 23px;width:23px;height:23px}.project-modal-breadcrumb{max-width:78px;margin-left:3px;font-size:8px}.project-modal-header h2{grid-column:2;grid-row:1;justify-self:end;min-width:max-content;margin:0!important;font-size:14px!important}.project-modal-header .project-modal-close{grid-column:3;grid-row:1;width:28px;height:28px;flex-basis:28px;font-size:23px}.project-modal-grid input,.project-modal-grid select{height:34px;min-height:34px}}
@media(max-width:370px){.project-modal-header{column-gap:4px;padding-left:8px;padding-right:8px}.project-modal-brand strong{max-width:88px;font-size:9px}.project-modal-breadcrumb{max-width:58px;font-size:7px}.project-modal-header h2{font-size:13px!important}}
/* Project workspace board and full-page project detail */
.project-workboard,.project-detail-page{color:#123d46}.project-workboard-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 18px}.project-workboard-heading h1{margin:5px 0;font-size:29px}.project-workboard-heading p{margin:0;color:#71838b}.project-board-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:14px;background:#fff;border:1px solid #dce7eb;border-radius:14px}.project-board-toolbar>input,.project-board-toolbar>select{height:40px;min-width:145px;padding:0 12px;border:1px solid #d4e0e5;border-radius:9px;background:#fff;color:#203a42}.project-board-toolbar>input{flex:1;min-width:220px}.project-view-switch{display:flex;gap:4px;margin-left:auto;padding:3px;background:#f3f7f8;border-radius:10px}.project-view-switch button{border:0;border-radius:7px;padding:9px 12px;background:transparent;color:#47616a;cursor:pointer}.project-view-switch button.active{background:#13834f;color:#fff}.project-board-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:14px 0}.project-board-stats article{display:grid;grid-template-columns:44px 1fr;grid-template-rows:auto auto auto;align-items:center;column-gap:10px;padding:15px;background:#fff;border:1px solid #dce7eb;border-radius:13px;box-shadow:0 5px 16px #1337440b}.project-board-stats article>small,.project-board-stats article>span:not(:first-child){grid-column:2;color:#72858d}.project-board-stats article>b{grid-column:2;font-size:26px;color:#123d46}.project-board-stats article>span:first-child{grid-column:1;grid-row:1/4;display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#eaf3ff;color:#2385cd;font-size:23px}.project-board-stats article>span.green{background:#e8f8ed;color:#15994e}.project-board-stats article>span.orange{background:#fff1de;color:#e18a0e}.project-board-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:14px;align-items:start}.project-board-table-wrap,.project-health-panel{min-width:0;padding:15px;background:#fff;border:1px solid #dce7eb;border-radius:14px}.project-board-table-wrap>h2,.project-health-panel>h2{margin:0 0 12px;font-size:17px}.project-board-table-wrap>h2 small{margin-left:7px;color:#74878f}.project-board-table-scroll,.project-detail-table-scroll{overflow:auto;max-width:100%}.project-board-table,.project-detail-table{width:100%;border-collapse:collapse;min-width:880px;font-size:12px}.project-board-table th,.project-detail-table th{padding:11px 9px;text-align:left;white-space:nowrap;background:#eef4f6;color:#526c76}.project-board-table td,.project-detail-table td{padding:10px 9px;border-bottom:1px solid #e7edef;vertical-align:middle}.project-board-table tbody tr:hover{background:#f5fbf7}.project-board-table button,.project-detail-table button{border:0;background:transparent;color:#234a54;cursor:pointer}.project-title-link{text-align:left;font-weight:700}.project-expand{font-size:18px}.project-mini-progress{display:inline-block;width:55px;height:7px;margin-left:5px;overflow:hidden;border-radius:8px;background:#e5ecef;vertical-align:middle}.project-mini-progress em{display:block;height:100%;border-radius:inherit;background:#1aa456}.project-state{display:inline-block;padding:5px 8px;border-radius:15px;background:#e7f7ec;color:#168245;font-size:11px;white-space:nowrap}.project-state.done{background:#e4f7eb}.project-state.risk{background:#fff3df;color:#ac6a00}.project-board-table td:last-child{white-space:nowrap}.project-expanded-row>td{padding:0!important;background:#f5faf8}.project-expanded-content{padding:11px 18px 14px 50px}.project-expanded-content>header,.project-detail-content>header{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}.project-expanded-content>header span{margin-right:auto;color:#75868b}.project-expanded-content>header button,.project-detail-content>header button{padding:7px 10px;border:1px solid #d6e4dc;border-radius:8px;background:#f5faf7;color:#126c4e;cursor:pointer}.project-child-row{display:grid;grid-template-columns:135px minmax(170px,1fr) minmax(110px,160px) 110px 115px 100px;gap:9px;padding:8px 6px;border-top:1px solid #e4eeea;font-size:12px;align-items:center}.project-child-row button{border:0;background:none;text-align:left;cursor:pointer}.project-health-panel{position:sticky;top:12px}.project-health-panel>button{display:grid;width:100%;gap:7px;margin:8px 0;padding:11px;text-align:left;border:1px solid #e1ebe5;border-radius:10px;background:#f3faf6;color:#163d43;cursor:pointer}.project-health-panel>button>b,.project-health-panel>button>span{font-size:11px;color:#617780}.project-health-panel>button>strong{font-size:13px}.project-board-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.project-board-cards>button{display:grid;gap:10px;text-align:left;padding:15px;border:1px solid #dce7eb;border-radius:12px;background:#f8fbfa;color:#173d45;cursor:pointer}.project-board-cards span{color:#687d84}.project-table-empty{text-align:center!important;padding:40px!important;color:#71838b}.project-detail-breadcrumb{display:flex;align-items:center;gap:10px;margin:3px 0 12px;color:#70838a;font-size:12px}.project-detail-breadcrumb button{padding:0;border:0;background:none;color:inherit;cursor:pointer}.project-detail-hero,.project-detail-progress,.project-detail-content,.project-detail-aside article{background:#fff;border:1px solid #dce7eb;border-radius:14px;box-shadow:0 4px 14px #153e4908}.project-detail-hero{padding:17px 18px 0}.project-detail-hero-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding-bottom:16px}.project-detail-hero-top>div:first-child{display:flex;align-items:center;gap:13px}.project-hero-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:15px;background:#eaf7ef;color:#168a4a;font-size:25px}.project-detail-hero h1{margin:0 0 7px;font-size:24px}.project-code-chip{display:inline-block;margin-right:6px;padding:5px 8px;border-radius:7px;background:#eef4f5;font-size:11px}.project-detail-hero-top>div:last-child{display:flex;gap:7px}.project-detail-hero-top>div:last-child button{padding:9px 11px;border:1px solid #d5e0e4;border-radius:8px;background:#fff;color:#24454c;cursor:pointer}.project-detail-attributes{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #e5ecef}.project-detail-attributes>div{display:grid;gap:7px;padding:13px 10px;border-right:1px solid #e2e9eb}.project-detail-attributes small{color:#71838b;font-size:11px}.project-detail-attributes b{font-size:12px;overflow-wrap:anywhere}.project-detail-columns{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:14px;margin-top:14px;align-items:start}.project-detail-columns>main{min-width:0}.project-detail-progress{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:16px}.project-detail-progress h2,.project-detail-aside h2{margin:0 0 11px;font-size:15px}.project-progress-overview{display:flex;align-items:center;gap:16px}.project-progress-overview p{margin:6px 0;font-size:12px}.project-progress-ring{display:grid;place-items:center;flex:0 0 98px;width:98px;height:98px;border-radius:50%;background:conic-gradient(#19a354 var(--project-progress),#e6edef 0);position:relative}.project-progress-ring:before{position:absolute;inset:9px;border-radius:50%;background:#fff;content:""}.project-progress-ring b{position:relative;font-size:18px}.project-milestone-track.compact{font-size:12px}.project-detail-tabs{display:flex;overflow:auto;margin-top:12px;padding:4px;background:#fff;border:1px solid #dce7eb;border-radius:11px}.project-detail-tabs button{flex:0 0 auto;padding:10px 12px;border:0;border-bottom:2px solid transparent;background:#fff;color:#526b72;cursor:pointer}.project-detail-tabs button.active{border-color:#148653;color:#087a4b;font-weight:700}.project-detail-content{min-height:220px;margin-top:12px;padding:17px}.project-detail-content h2{margin:0 0 10px;font-size:17px}.project-detail-content>p{color:#62767d}.project-detail-content>header h2,.project-detail-content>header p{margin:0}.project-detail-content>header p{margin-top:4px;color:#72848b;font-size:12px}.project-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.project-overview-grid>article{padding:13px;border:1px solid #e2ebe7;border-radius:11px}.project-overview-wide{grid-column:1/-1}.project-detail-aside{display:grid;gap:12px}.project-detail-aside article{padding:14px}.project-detail-aside article>button{display:block;width:100%;padding:9px 0;text-align:left;border:0;border-top:1px solid #edf0f1;background:#fff;color:#24464e;cursor:pointer}.project-detail-aside article>button small{display:block;margin-top:5px;color:#77878c}.project-budget-bar{display:block;height:9px;margin:10px 0;border-radius:9px;background:#e7edef;overflow:hidden}.project-budget-bar em{display:block;height:100%;background:#1aa456}.project-detail-muted{color:#72848b}.project-milestone-line{padding:12px;border-bottom:1px solid #edf0f1}.project-detail-two-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:1100px){.project-board-layout,.project-detail-columns{grid-template-columns:1fr}.project-health-panel{position:static}.project-health-panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.project-health-panel h2{grid-column:1/-1}.project-detail-attributes{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.project-workboard-heading{align-items:flex-start}.project-workboard-heading h1{font-size:23px}.project-workboard-heading p{font-size:12px}.project-board-toolbar{display:grid;grid-template-columns:1fr 1fr}.project-board-toolbar>input{grid-column:1/-1;min-width:0;width:100%;box-sizing:border-box}.project-board-toolbar>select{min-width:0;width:100%;font-size:12px}.project-view-switch{grid-column:1/-1;margin:0;justify-content:stretch}.project-view-switch button{flex:1;padding:8px 5px;font-size:11px}.project-board-stats{grid-template-columns:1fr 1fr;gap:8px}.project-board-stats article{padding:10px;grid-template-columns:34px 1fr;column-gap:7px}.project-board-stats article>span:first-child{width:32px;height:32px;font-size:18px}.project-board-stats article>b{font-size:21px}.project-board-stats article>small,.project-board-stats article>span:not(:first-child){font-size:10px}.project-board-table-wrap{padding:10px}.project-board-table{min-width:940px}.project-expanded-content{padding:9px}.project-child-row{min-width:650px}.project-health-panel{grid-template-columns:1fr}.project-detail-hero{padding:12px}.project-detail-hero-top{display:grid}.project-detail-hero-top>div:last-child{display:flex;flex-wrap:wrap}.project-detail-hero-top>div:last-child button{flex:1}.project-detail-hero h1{font-size:19px}.project-detail-attributes{grid-template-columns:repeat(2,minmax(0,1fr))}.project-detail-attributes>div{padding:10px 7px}.project-detail-progress{grid-template-columns:1fr;padding:12px}.project-progress-overview{gap:12px}.project-progress-ring{flex-basis:78px;width:78px;height:78px}.project-progress-ring:before{inset:7px}.project-detail-tabs{margin-left:-2px;margin-right:-2px}.project-detail-tabs button{padding:9px;font-size:11px}.project-detail-content{padding:12px}.project-detail-content>header{align-items:flex-start}.project-detail-content>header button{margin-left:auto}.project-detail-table{min-width:720px}.project-overview-grid,.project-detail-two-cards{grid-template-columns:1fr}.project-overview-wide{grid-column:auto}}
/* Quick create linked project objectives and KPIs */
.project-quick-modal-overlay{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;padding:20px;background:rgba(12,34,40,.52);backdrop-filter:blur(3px)}.project-quick-modal{width:min(680px,100%);max-height:min(88vh,850px);overflow:auto;border:1px solid #d8e6df;border-radius:17px;background:#fff;box-shadow:0 24px 70px #09272b42;color:#153f44}.project-quick-modal>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid #e7eeea;background:#fff}.project-quick-modal>header small{color:#70837e}.project-quick-modal>header h2{margin:4px 0 0;font-size:19px}.project-quick-modal>header button{width:34px;height:34px;border:0;border-radius:9px;background:#eff5f1;font-size:22px;cursor:pointer}.project-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:18px 20px}.project-quick-grid>label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#46635c;font-size:12px;font-weight:700}.project-quick-grid>label input,.project-quick-grid>label select,.project-quick-grid>label textarea{box-sizing:border-box;width:100%;min-height:40px;padding:9px 11px;border:1px solid #d5e2dd;border-radius:9px;background:#fff;color:#173f45;font:inherit;font-size:13px;font-weight:500}.project-quick-grid>label textarea{min-height:78px;resize:vertical}.project-quick-grid .project-quick-wide,.project-quick-grid .project-quick-check{grid-column:1/-1}.project-quick-grid .project-quick-wide input{margin-top:1px}.project-quick-grid .project-quick-check{display:flex;flex-direction:row;align-items:center;font-size:13px}.project-quick-grid .project-quick-check input{width:17px;min-height:17px}.project-quick-modal>footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:9px;padding:12px 20px;border-top:1px solid #e7eeea;background:#fff}.project-quick-modal>footer button{min-height:40px;padding:8px 16px;border:1px solid #d5e2dd;border-radius:9px;background:#f6f9f7;color:#264b4b;cursor:pointer}.project-detail-hero-top>div:last-child{flex-wrap:wrap}.project-detail-hero-top>div:last-child [data-project-add-objective],.project-detail-hero-top>div:last-child [data-project-add-kpi],.project-detail-hero-top>div:last-child [data-project-add-task]{border-color:#b9deca;background:#eef9f2;color:#08764d;font-weight:700}
@media(max-width:700px){.project-quick-modal-overlay{display:block;padding:0;background:#fff;backdrop-filter:none}.project-quick-modal{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;box-shadow:none}.project-quick-modal>header{padding:calc(env(safe-area-inset-top) + 12px) 14px 12px}.project-quick-modal>header h2{font-size:17px}.project-quick-grid{gap:10px;padding:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.project-quick-grid>label input,.project-quick-grid>label select{font-size:12px}.project-quick-modal>footer{padding:10px 14px calc(env(safe-area-inset-bottom) + 10px)}.project-detail-hero-top>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.project-detail-hero-top>div:last-child button{min-width:0}}
/* Mục tiêu & Kết quả: dashboard, hierarchy and selected-goal detail */
.objective-dashboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
.objective-dashboard>article{background:#fff;border:1px solid #dce7e3;border-radius:15px;padding:16px 18px;box-shadow:0 5px 16px rgba(22,65,66,.045)}
.objective-dashboard>article small{display:block;color:#71827e;font-size:12px;margin-bottom:8px}.objective-dashboard>article strong{font-size:26px;color:#164f4b}
.objective-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;padding:14px;background:#fff;border:1px solid #dce7e3;border-radius:15px;margin:14px 0}
.objective-filters{display:flex;align-items:end;justify-content:flex-end;gap:9px;flex-wrap:wrap}.objective-filter{display:grid;gap:5px;min-width:145px;color:#6c7d79;font-size:11px;font-weight:650}.objective-filter select{min-height:40px;border:1px solid #d8e4df;border-radius:10px;background:#fff;padding:0 11px;color:#24433f;font:inherit;font-size:13px}
.objective-view-tabs{display:flex;gap:5px;padding:6px;background:#fff;border:1px solid #dce7e3;border-radius:13px;margin:12px 0;overflow:auto}.objective-view-tabs button{white-space:nowrap;border:0;border-radius:9px;background:transparent;color:#687b76;padding:10px 14px;font:inherit;font-weight:650;cursor:pointer}.objective-view-tabs button.active{background:#e8f5ef;color:#087a5b;box-shadow:inset 0 0 0 1px #c9e8d9}
.objective-workspace-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);align-items:start;gap:14px}.objective-workspace-layout>.objective-tree{min-width:0}.objective-detail-panel{position:sticky;top:12px;max-height:calc(100vh - 30px);overflow:auto;background:#fff;border:1px solid #dce7e3;border-radius:17px;padding:18px;box-shadow:0 8px 24px rgba(25,68,67,.06)}
.objective-detail-head{padding-bottom:13px;border-bottom:1px solid #e7eeeb}.objective-detail-head h2{font-size:20px;line-height:1.3;margin:12px 0 6px;color:#174c49}.objective-detail-head p{font-size:13px;color:#72827f;margin:0}.objective-detail-owner{display:flex;align-items:center;gap:11px;padding:15px 0;border-bottom:1px solid #e7eeeb}.objective-avatar{width:40px;height:40px;border-radius:13px;background:#e6f5ed;color:#087c5a;display:grid;place-items:center;font-weight:750}.objective-detail-owner>div{display:grid;gap:3px}.objective-detail-owner small,.objective-detail-period small{font-size:11px;color:#82918d}.objective-detail-period{margin-left:auto;text-align:right}.objective-detail-progress{display:flex;align-items:center;gap:15px;padding:16px 0;border-bottom:1px solid #e7eeeb}.objective-detail-progress>div:last-child{display:grid;gap:5px}.objective-detail-progress small{font-size:11px;color:#73837f}.objective-detail-ring{width:76px;height:76px;flex:0 0 auto;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#13a36f var(--objective-progress),#e8efec 0);position:relative}.objective-detail-ring:before{content:"";position:absolute;inset:7px;border-radius:50%;background:#fff}.objective-detail-ring b{position:relative;font-size:17px;color:#14584c}.objective-detail-values{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:13px 0}.objective-detail-values>div{background:#f4f8f6;border-radius:11px;padding:11px}.objective-detail-values small{display:block;color:#7a8985;font-size:11px;margin-bottom:5px}.objective-detail-values b{font-size:13px;color:#244c45}.objective-detail-panel section{border-top:1px solid #e8efec;padding:13px 0}.objective-detail-panel section h3{font-size:14px;margin:0 0 9px;color:#24544d}.objective-detail-panel section p{font-size:12px;color:#526c66;margin:7px 0}.objective-detail-panel section small{display:block;color:#627871;padding:4px 0}.objective-detail-alert{background:#fff6e6;border:1px solid #f4dfb6;color:#94600b;border-radius:11px;padding:12px;display:grid;gap:4px}.objective-detail-alert small{font-size:11px;color:#806d4c}.objective-detail-alert.is-ok{background:#edf8f1;border-color:#d5eddd;color:#18794e}.objective-detail-history p{position:relative;padding-left:14px;border-left:2px solid #dbe9e2}.objective-detail-history p:before{content:"";position:absolute;left:-5px;top:4px;width:8px;height:8px;border-radius:50%;background:#17a36f}.objective-detail-history p small{display:block}.objective-detail-actions{display:flex;gap:8px;padding-top:8px}.objective-detail-actions button{border:1px solid #cde5d8;background:#f0f8f3;color:#087b59;border-radius:9px;padding:9px 11px;font:inherit;font-size:12px;font-weight:650;cursor:pointer}.objective-detail-empty{text-align:center;padding:40px 16px;color:#71837e}.objective-detail-empty>b{font-size:30px;color:#10845f}.objective-detail-empty h3{color:#24544d}
.objective-card{border-radius:14px;border:1px solid #dce8e2;background:#fff;margin:0 0 10px;padding:14px;box-shadow:0 3px 12px rgba(22,65,66,.035);transition:border-color .15s,box-shadow .15s}.objective-card.is-selected{border-color:#49b98b;box-shadow:0 0 0 2px rgba(37,168,112,.12)}.objective-card-head{cursor:pointer}.objective-card-head h3{font-size:15px}.objective-card[data-objective] .objective-meta{gap:8px}.objective-actions{flex-wrap:wrap}.objective-card[hidden]{display:none!important}
@media(max-width:1050px){.objective-workspace-layout{grid-template-columns:minmax(0,1fr)}.objective-detail-panel{position:relative;top:auto;max-height:none}.objective-toolbar{align-items:stretch;flex-direction:column}.objective-filters{justify-content:flex-start}}
@media(max-width:650px){.objective-dashboard{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.objective-dashboard>article{padding:12px}.objective-dashboard>article strong{font-size:22px}.objective-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.objective-filter{min-width:0}.objective-toolbar .ws-actions{display:grid;grid-template-columns:1fr 1fr}.objective-view-tabs button{padding:9px 11px;font-size:12px}.objective-detail-panel{padding:14px}.objective-detail-values{grid-template-columns:1fr}.objective-workspace-layout{gap:10px}}
/* Mục tiêu & Kết quả: bố cục danh sách/chi tiết và chỉ số dùng chung */
.objective-workspace-layout{grid-template-columns:minmax(0,3fr) minmax(0,7fr)!important;gap:14px}
.objective-view-tabs{align-items:center;flex-wrap:nowrap;margin:12px 0 10px}
.objective-view-tabs .module-view-toolbar-inline{display:flex;align-items:center;margin:0 0 0 auto;padding:0 0 0 8px;flex:none}
.objective-view-tabs .module-view-toolbar-inline label{gap:6px;white-space:nowrap}
.objective-view-tabs .module-view-toolbar-inline select{min-width:170px;padding:7px 28px 7px 10px}
.objective-detail-panel{min-width:0}
.objective-detail-stat-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
.objective-detail-panel section,.objective-project-info{min-width:0;overflow-wrap:anywhere}
.objective-inline-editor{display:grid;gap:12px}
.objective-inline-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.objective-inline-grid label{display:grid;gap:5px;color:#587179;font-size:12px;font-weight:650;min-width:0}
.objective-inline-grid input,.objective-inline-grid select,.objective-inline-grid textarea{width:100%;min-width:0;padding:9px 10px;border:1px solid #dce7e9;border-radius:9px;background:#fff;color:#174b52;font:inherit;font-size:13px}
.objective-inline-grid textarea{min-height:70px;resize:vertical}
.objective-inline-grid label.full{grid-column:1/-1}
.objective-inline-grid label.check{display:flex;align-items:center;gap:8px}
.objective-inline-heading,.objective-inline-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}
.objective-inline-actions{justify-content:flex-end;padding-top:8px;border-top:1px solid #e5ecee}
.objective-summary-card{min-height:72px!important;height:72px!important;box-sizing:border-box;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:9px;padding:10px 13px!important;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.summary-metric-card{min-height:72px!important;height:72px!important;box-sizing:border-box;display:grid!important;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:9px;padding:10px 13px!important;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.summary-metric-icon{grid-row:1/3;grid-column:1;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e8f5ef;color:#12825e}
.summary-metric-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.summary-metric-card small,.summary-metric-card .stat-label{grid-column:2;grid-row:1;margin:0!important;color:#668087;font-size:11px!important;line-height:1.15}
.summary-metric-card strong,.summary-metric-card .stat-num{grid-column:2;grid-row:2;margin:3px 0 0!important;color:#174b52;font-size:20px!important;line-height:1.1}
.summary-metric-card[data-summary-active="true"]{border-color:#49b98b!important;background:#eff9f3!important;box-shadow:0 0 0 2px #49b98b24}
.summary-metric-card:focus-visible{outline:2px solid #49b98b;outline-offset:2px}
@media(max-width:1050px){.objective-workspace-layout{grid-template-columns:minmax(0,1fr)!important}.objective-detail-panel{position:relative;top:auto;max-height:none}}
@media(max-width:700px){.objective-view-tabs{flex-wrap:wrap}.objective-view-tabs .module-view-toolbar-inline{width:100%;margin:4px 0 0;padding:8px 0 0;border-top:1px solid #e5ecee}.objective-view-tabs .module-view-toolbar-inline label{width:100%;justify-content:space-between}.objective-view-tabs .module-view-toolbar-inline select{min-width:0;max-width:none}.objective-inline-grid{grid-template-columns:minmax(0,1fr)}.objective-inline-grid label.full{grid-column:auto}.summary-metric-card{height:68px!important;min-height:68px!important;padding:9px 10px!important}.summary-metric-card strong,.summary-metric-card .stat-num{font-size:18px!important}}
.objective-dashboard>article{height:72px;min-height:72px;box-sizing:border-box;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:9px;padding:10px 13px!important;cursor:pointer;position:relative;transition:border-color .15s,background .15s,box-shadow .15s}
.objective-dashboard>article:before{content:'↗';grid-column:1;grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e8f5ef;color:#12825e;font-size:17px;font-weight:800}
.objective-dashboard>article small{grid-column:2;grid-row:1;margin:0!important;font-size:11px;line-height:1.15}
.objective-dashboard>article strong{grid-column:2;grid-row:2;margin:3px 0 0!important;font-size:20px!important;line-height:1.1}
.objective-dashboard>article[data-summary-active="true"]{border-color:#49b98b!important;background:#eff9f3!important;box-shadow:0 0 0 2px #49b98b24}
.objective-detail-panel{box-shadow:0 8px 24px rgba(25,68,67,.08)}
.objective-detail-stat-strip>div{min-width:0;overflow-wrap:anywhere}
.objective-project-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.objective-project-facts>div{padding:9px 10px;border-radius:10px;background:#f4f8f6;min-width:0}
.objective-project-facts small,.objective-project-facts b{display:block}.objective-project-facts small{font-size:10px;color:#71827e}.objective-project-facts b{margin-top:3px;font-size:12px;color:#174b52}
.objective-detail-actions{position:sticky;bottom:-18px;z-index:2;background:#fff;padding:12px 0 2px;border-top:1px solid #e5ecee}
@media(max-width:700px){.objective-dashboard>article{height:68px;min-height:68px;padding:9px 10px!important}.objective-dashboard>article strong{font-size:18px!important}.objective-project-facts{grid-template-columns:1fr}}
.objective-project-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:9px 0}
.objective-project-metrics>span{display:flex;align-items:center;gap:7px;padding:8px 9px;border-radius:9px;background:#edf7f1;color:#174b52}
.objective-project-metrics b{font-size:16px;color:#12825e}.objective-project-metrics small{font-size:10px;color:#668087}
@media(max-width:700px){.objective-project-metrics{gap:5px}.objective-project-metrics>span{justify-content:center;flex-direction:column;gap:2px;padding:7px 4px}}
/* Mục tiêu & Kết quả: Accordion một cột */
.objective-workspace-layout{display:block!important}
.objective-accordion-list{display:grid;gap:8px;width:100%;min-width:0}
.objective-card{position:relative;min-width:0;margin:0!important;padding:10px 12px!important;border:1px solid #dce7e3;border-left:3px solid #74b98f;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(22,65,66,.035)}
.objective-card.is-collapsed{height:78px;min-height:78px;overflow:hidden}
.objective-card.is-collapsed>.objective-card-head{display:grid;grid-template-columns:28px minmax(0,1fr) auto;grid-template-rows:24px 26px;column-gap:9px;align-items:center;cursor:default}
.objective-accordion-toggle{grid-column:1;grid-row:1/3;display:grid;place-items:center;width:27px;height:27px;border:1px solid #dce8e2;border-radius:8px;background:#f3f8f5;color:#176b54;cursor:pointer}
.objective-accordion-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.objective-card.is-expanded .objective-accordion-toggle svg{transform:rotate(180deg)}
.objective-card.is-collapsed .objective-card-head>div{grid-column:2;grid-row:1/3;min-width:0;display:grid;grid-template-rows:1fr 1fr;align-content:center}
.objective-card.is-collapsed .objective-breadcrumb,.objective-card.is-collapsed .objective-card-head p,.objective-card.is-collapsed .objective-quality-criteria{display:none!important}
.objective-card.is-collapsed .objective-card-head h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:14px;line-height:20px}
.objective-card.is-collapsed .objective-status{grid-column:3;grid-row:1;padding:4px 7px;font-size:10px}
.objective-accordion-summary{display:none}
.objective-card.is-collapsed>.objective-accordion-summary{display:block;margin-left:37px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#657c75;font-size:11px;line-height:18px}
.objective-card.is-collapsed>:not(.objective-card-head):not(.objective-accordion-summary){display:none!important}
.objective-card.is-expanded{height:auto;min-height:0;overflow:visible}
.objective-card.is-expanded>.objective-card-head{display:flex;align-items:flex-start;gap:9px}
.objective-card.is-expanded>.objective-card-head>div{flex:1;min-width:0}
.objective-card.is-expanded .objective-accordion-toggle{flex:none;margin-top:2px}
.objective-card.is-expanded .objective-status{flex:none}
.objective-card.is-expanded .objective-measures{grid-template-columns:repeat(4,minmax(0,1fr))}
.objective-card.is-expanded .objective-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0;padding-top:10px;border-top:1px solid #e5ecee}
.objective-card.is-expanded .objective-actions button{min-height:34px;padding:7px 10px;border:1px solid #dce7e9;border-radius:9px;background:#f5f8f6;color:#31575d;font-size:12px;font-weight:650;cursor:pointer}
.objective-card.is-expanded .objective-actions button:hover{border-color:#83c9a7;background:#eaf7ef}
.objective-card.is-expanded .objective-actions .archive-action{color:#087a5b}
.objective-children{margin-top:10px}
@media(max-width:700px){.objective-card.is-collapsed{height:76px;min-height:76px;padding:9px 10px!important}.objective-card.is-collapsed .objective-card-head h3{font-size:13px}.objective-card.is-expanded .objective-measures{grid-template-columns:repeat(2,minmax(0,1fr))}.objective-card.is-expanded .objective-actions button{flex:1 1 calc(50% - 7px)}}
.objective-card.is-collapsed{height:70px;min-height:70px}
.objective-card.is-collapsed>.objective-card-head{grid-template-columns:28px minmax(0,1fr) auto;grid-template-rows:24px}
.objective-card.is-collapsed .objective-accordion-toggle{grid-row:1}
.objective-card.is-collapsed .objective-card-head>div{grid-row:1;grid-template-rows:1fr}
.objective-card.is-collapsed>.objective-accordion-summary{margin-top:1px;line-height:17px}
@media(max-width:700px){.objective-card.is-collapsed{height:68px;min-height:68px}}

.objective-card>.objective-card-head{cursor:default}


.manual-order-handle{float:right;position:relative;z-index:2;margin:-3px 0 4px 8px;padding:3px 7px;border:1px solid #dce8e2;border-radius:7px;background:#f5f9f6;color:#637d73;cursor:grab;touch-action:none}.manual-order-handle:active{cursor:grabbing}.manual-order-dragging{opacity:.48}.manual-order-target{outline:2px dashed #39a87b;outline-offset:-2px}

.task-drag-handle{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:30px;margin-right:6px;border:0;border-radius:8px;background:#eef5f1;color:#668078;font-size:18px;cursor:grab;touch-action:none}.task-drag-handle:active{cursor:grabbing}.manual-order-handle{touch-action:none;cursor:grab}

/* Clear, consistent drag handles for task ordering */
.task-drag-handle,.project-task-drag-handle{display:inline-grid;place-items:center;flex:0 0 32px;width:32px;min-width:32px;height:32px;margin:0;padding:0;border:1px solid #d9e7df;border-radius:9px;background:linear-gradient(180deg,#fff,#f4f8f5);color:#55766a;cursor:grab;touch-action:none;transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .15s}
.task-drag-handle svg,.project-task-drag-handle svg{display:block;width:14px;height:18px;fill:currentColor}
.task-drag-handle:hover,.project-task-drag-handle:hover{border-color:#8fc9a8;background:#e8f7ed;color:#167b58;box-shadow:0 3px 9px #167b581c}
.task-drag-handle:active,.project-task-drag-handle:active{cursor:grabbing;transform:scale(.96)}
.task-drag-handle:focus-visible,.project-task-drag-handle:focus-visible{outline:3px solid #62bb8b;outline-offset:2px}

.project-task-drag-cell{display:flex;align-items:center;justify-content:center;overflow:visible!important}

@media(max-width:760px){.task-drag-handle,.project-task-drag-handle{flex-basis:34px;width:34px;min-width:34px;height:34px;border-radius:10px}}



/* Drag reset: keep the six-dot grip, remove lane highlights and motion effects. */
.task-entry.task-dragging,.project-task-row.task-dragging,.manual-order-dragging{opacity:1!important;transform:none!important;box-shadow:none!important}.task-entry.task-order-target,.project-task-row.project-task-order-target,.manual-order-target{outline:none!important;box-shadow:none!important}.task-kanban-lane.task-lane-drop-target{background:initial!important;outline:none!important;box-shadow:none!important}.task-drag-handle,.project-task-drag-handle,.manual-order-handle{cursor:grab;touch-action:none}.task-drag-handle:active,.project-task-drag-handle:active,.manual-order-handle:active{cursor:grabbing}.kanban-drag-hint{display:none!important}

/* Task detail popup, Kanban drag feedback, and consistent task view controls */
#detailOverlay{z-index:13001!important;isolation:isolate;pointer-events:auto}#detailOverlay.show{display:grid!important;visibility:visible!important;opacity:1!important}#detailOverlay>.detail-modal{position:relative;z-index:1;pointer-events:auto}#imageViewer{z-index:13002!important}.task-detail-error{padding:18px;border:1px solid #f0d2cd;border-radius:10px;background:#fff4f2;color:#9b3d33;font-size:13px}.task-full-grid{grid-template-columns:repeat(4,minmax(0,1fr));min-width:0}.task-full-grid>div{overflow-wrap:anywhere}.task-expanded{position:relative;z-index:1;width:100%;min-width:0;overflow:visible}.task-expanded-head{flex-wrap:wrap}.task-actions{align-items:center}.task-actions .pin-task{order:1}.task-actions .quick-toggle{order:2}.task-actions .task-drag-handle{order:3;margin-right:0;margin-left:2px;box-shadow:0 1px 3px #153d4312}.task-drag-handle svg,.project-task-drag-handle svg,.manual-order-handle svg{width:14px;height:18px;fill:currentColor}.task-drag-handle,.project-task-drag-handle{transition:background-color .14s ease,box-shadow .14s ease}.task-drag-handle:hover,.project-task-drag-handle:hover{background:#e1f1e7;box-shadow:0 2px 7px #153d4320}.task-entry,.project-task-row{position:relative;transition:transform .19s cubic-bezier(.2,.75,.25,1),box-shadow .16s ease}.task-entry.task-dragging,.project-task-row.task-dragging,.manual-order-dragging{opacity:.72!important;transform:scale(.99);box-shadow:0 9px 22px #12383f24!important}.task-entry.task-order-before:before,.task-entry.task-order-after:after{position:absolute;left:8px;right:8px;height:3px;border-radius:3px;background:#16835f;box-shadow:0 0 0 3px #16835f22;content:"";z-index:8;pointer-events:none}.task-entry.task-order-before:before{top:-2px}.task-entry.task-order-after:after{bottom:-2px}.project-task-row.project-task-order-target{box-shadow:inset 0 -2px #16835f!important}.project-task-row.project-task-order-before{box-shadow:inset 0 2px #16835f!important}.task-kanban-lane.task-lane-drop-target{background:#e9f7ef!important;outline:2px solid #6fc49a!important;outline-offset:-2px;box-shadow:inset 0 0 0 3px #16835f12!important;transition:background-color .15s ease,outline-color .15s ease,box-shadow .15s ease}.task-board-viewtools .task-view-filter select,.task-board-viewtools select,.task-filter select{height:36px!important;min-height:36px!important;box-sizing:border-box;padding-top:6px!important;padding-bottom:6px!important;line-height:1.2!important}@media(max-width:760px){#detailOverlay{padding:0!important;place-items:stretch!important}#detailOverlay>.detail-modal{width:100vw!important;height:100dvh!important;max-height:100dvh!important;max-width:none!important;border-radius:0!important;padding:14px 12px calc(14px + env(safe-area-inset-bottom))!important}.task-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}.task-full-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.task-entry .task-actions{flex-direction:row!important;align-items:center!important;justify-content:flex-end!important}.task-kanban-board{grid-template-columns:minmax(0,1fr)!important;min-width:0!important;overflow:visible!important}.task-kanban-lane{min-width:0!important}.task-board-viewtools{grid-template-columns:minmax(0,180px) auto auto!important;align-items:end!important}.task-board-viewtools .task-view-filter{grid-column:1;width:100%!important}}

/* Balanced filters and stable task cards */
@media(min-width:761px){.task-board-filterbar{display:flex!important;align-items:flex-end!important;flex-wrap:wrap!important;gap:8px!important;padding:12px 14px!important}.task-board-filter-main{display:grid!important;grid-template-columns:repeat(8,minmax(105px,1fr))!important;align-items:end!important;gap:8px!important;flex:1 1 1000px!important;min-width:0!important;overflow:visible!important;padding:0!important}.task-filter{min-width:0!important;width:100%!important;gap:4px!important}.task-filter select{width:100%!important;max-width:none!important;height:38px!important;min-height:38px!important;padding:7px 28px 7px 10px!important;line-height:1.2!important}.task-board-viewtools{display:flex!important;align-items:end!important;justify-content:flex-end!important;gap:7px!important;flex:0 1 auto!important;min-width:0!important;overflow:visible!important}.task-board-viewtools .task-view-filter{min-width:150px!important;width:150px!important}.task-board-viewtools #savedTaskFilters{min-width:160px!important;width:160px!important;height:38px!important;min-height:38px!important}.task-board-viewtools button{height:38px!important;min-height:38px!important;padding:7px 10px!important}.task-kanban-board{grid-template-columns:repeat(3,minmax(0,1fr))!important;min-width:0!important;overflow:visible!important;gap:12px!important}.task-kanban-lane{min-width:0!important}.task-kanban-lane .task-entry{min-width:0!important;overflow:visible!important;padding:10px!important}.task-kanban-lane .task{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto auto auto auto!important;gap:7px 9px!important;min-width:0!important;min-height:0!important;padding:7px!important;align-items:center!important}.task-kanban-lane .task-code{grid-column:1!important;grid-row:1!important}.task-kanban-lane .task-actions{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:row!important;justify-content:flex-end!important;gap:4px!important}.task-kanban-lane .task-name{grid-column:1/-1!important;grid-row:2!important;min-width:0!important}.task-kanban-lane .task-thumb{grid-column:1!important;grid-row:3!important}.task-kanban-lane .task-project{grid-column:2!important;grid-row:3!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important}.task-kanban-lane .person{grid-column:1/-1!important;grid-row:4!important;min-width:0!important;white-space:normal!important}.task-kanban-lane .desktop-date{grid-column:1!important;grid-row:5!important}.task-kanban-lane .status-wrap{grid-column:2!important;grid-row:5!important;justify-self:end!important;max-width:100%!important}.task-kanban-lane .priority{grid-column:1!important;grid-row:6!important}.task-kanban-lane .task-remaining{grid-column:2!important;grid-row:6!important;justify-self:end!important}.task-kanban-lane .task-expanded{display:block!important;width:100%!important;min-width:0!important;grid-column:1/-1!important}.task-kanban-lane .task-expanded[hidden]{display:none!important}.task-kanban-lane .task-full-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.task-kanban-lane .task-title-button{white-space:normal!important;overflow-wrap:anywhere!important}.task-kanban-lane .status-select,.task-kanban-lane .status-wrap select{max-width:100%!important;height:32px!important;min-height:32px!important;font-size:11px!important}}@media(min-width:761px) and (max-width:1649px){.task-board-filter-main{grid-template-columns:repeat(4,minmax(0,1fr))!important;flex-basis:100%!important}.task-board-viewtools{justify-content:flex-start!important}}@media(max-width:760px){.task-board-filterbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:8px!important}.task-board-filter-main{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;width:100%!important;overflow:visible!important;padding:0!important}.task-filter{min-width:0!important;width:100%!important;gap:3px!important}.task-filter select{width:100%!important;max-width:none!important;height:36px!important;min-height:36px!important;padding:6px 26px 6px 8px!important;font-size:10px!important}.task-board-viewtools{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important;width:100%!important;overflow:visible!important}.task-board-viewtools .task-view-filter,.task-board-viewtools #savedTaskFilters{width:100%!important;min-width:0!important}.task-board-viewtools select,.task-board-viewtools button{width:100%!important;height:36px!important;min-height:36px!important}.task-kanban-board{display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;overflow:visible!important;gap:9px!important;padding:8px!important}.task-kanban-lane{min-width:0!important;padding:9px!important}.task-kanban-lane .task-entry{overflow:visible!important}.task-kanban-lane .task{grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto auto auto auto!important;min-width:0!important;gap:6px 8px!important;padding:7px!important}.task-kanban-lane .task-code{grid-column:1!important;grid-row:1!important}.task-kanban-lane .task-actions{grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:row!important;justify-content:flex-end!important;gap:3px!important}.task-kanban-lane .task-name{grid-column:1/-1!important;grid-row:2!important}.task-kanban-lane .task-thumb{grid-column:1!important;grid-row:3!important}.task-kanban-lane .task-project{grid-column:2!important;grid-row:3!important;max-width:100%!important;white-space:normal!important}.task-kanban-lane .person{grid-column:1/-1!important;grid-row:4!important;white-space:normal!important}.task-kanban-lane .desktop-date{grid-column:1!important;grid-row:5!important}.task-kanban-lane .status-wrap{grid-column:2!important;grid-row:5!important;justify-self:end!important}.task-kanban-lane .priority{grid-column:1!important;grid-row:6!important}.task-kanban-lane .task-remaining{grid-column:2!important;grid-row:6!important;justify-self:end!important}.task-kanban-lane .task-expanded{width:100%!important;min-width:0!important}.task-kanban-lane .task-full-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

.task-drag-live-hint{position:fixed;z-index:16000;top:14px;left:50%;transform:translateX(-50%);padding:8px 14px;border:1px solid #b9dfc8;border-radius:999px;background:#effaf3;color:#176a4f;box-shadow:0 6px 18px #12383f20;font-size:12px;font-weight:750;pointer-events:none}.task-drag-live-hint[hidden]{display:none!important}.task-drag-handle{user-select:none;-webkit-user-select:none;-webkit-user-drag:none;touch-action:none}


/* Kanban card rhythm and uniform task-board filters */
.task-kanban-board{align-items:stretch!important;grid-auto-rows:1fr!important;gap:12px!important}
.task-kanban-lane{display:flex!important;flex-direction:column!important;gap:8px!important;align-self:stretch!important;min-width:0!important}
.task-kanban-lane>.task-entry{display:block!important;flex:0 0 auto!important;min-width:0!important;margin:0!important;border-radius:12px!important;overflow:visible!important}
.task-kanban-lane>.task-entry>.task{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:24px 42px 30px 24px 34px 22px!important;gap:6px 9px!important;align-items:center!important;min-height:210px!important;box-sizing:border-box!important;padding:10px!important}
.task-kanban-lane .task-code,.task-kanban-lane .task-actions,.task-kanban-lane .task-name,.task-kanban-lane .task-thumb,.task-kanban-lane .task-project,.task-kanban-lane .person,.task-kanban-lane .desktop-date,.task-kanban-lane .status-wrap,.task-kanban-lane .priority,.task-kanban-lane .task-remaining{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
.task-kanban-lane .task-name{grid-column:1/-1!important;grid-row:2!important;max-height:42px!important;overflow:hidden!important;align-self:center!important}
.task-kanban-lane .task-title-button{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;line-height:19px!important;max-height:38px!important;text-overflow:ellipsis!important;overflow-wrap:anywhere!important}
.task-kanban-lane .tag-list{display:flex!important;flex-wrap:nowrap!important;max-height:16px!important;overflow:hidden!important;white-space:nowrap!important;margin-top:2px!important}
.task-kanban-lane .task-thumb,.task-kanban-lane .task-project{grid-row:3!important;align-self:center!important}
.task-kanban-lane .task-thumb{grid-column:1!important}
.task-kanban-lane .task-project{grid-column:2!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.task-kanban-lane .person{grid-column:1/-1!important;grid-row:4!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.task-kanban-lane .desktop-date{grid-column:1!important;grid-row:5!important;white-space:nowrap!important}
.task-kanban-lane .status-wrap{grid-column:2!important;grid-row:5!important;justify-self:end!important}
.task-kanban-lane .status-wrap select,.task-kanban-lane .task-actions button{height:32px!important;min-height:32px!important;max-width:100%!important;font-size:12px!important;line-height:1.2!important}
.task-kanban-lane .priority{grid-column:1!important;grid-row:6!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.task-kanban-lane .task-remaining{grid-column:2!important;grid-row:6!important;justify-self:end!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.task-board-filterbar{align-items:end!important;gap:10px!important}
.task-board-filter-main{gap:10px!important;align-items:end!important}
.task-board-filterbar .task-filter{display:flex!important;flex-direction:column!important;justify-content:flex-end!important;gap:5px!important}
.task-board-filterbar .task-filter label,.task-board-filterbar .task-filter>span{min-height:16px!important;font-size:12px!important;line-height:16px!important;font-weight:650!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.task-board-filterbar .task-filter select,.task-board-viewtools select,.task-board-viewtools button{height:38px!important;min-height:38px!important;box-sizing:border-box!important;font-family:inherit!important;font-size:13px!important;line-height:1.2!important}
.task-board-viewtools{align-items:end!important;gap:10px!important}
.task-board-viewtools .task-view-filter,.task-board-viewtools #savedTaskFilters{height:38px!important;min-height:38px!important}
@media(max-width:760px){
.task-kanban-board{grid-auto-rows:auto!important;gap:9px!important}
.task-kanban-lane{gap:7px!important}
.task-kanban-lane>.task-entry>.task{grid-template-rows:23px 40px 28px 22px 32px 20px!important;gap:5px 7px!important;min-height:190px!important;padding:8px!important}
.task-kanban-lane .task-title-button{font-size:13px!important;line-height:18px!important;max-height:36px!important}
.task-kanban-lane .status-wrap select,.task-kanban-lane .task-actions button{font-size:11px!important}
.task-board-filterbar .task-filter label,.task-board-filterbar .task-filter>span{font-size:11px!important;line-height:15px!important;min-height:15px!important}
.task-board-filterbar .task-filter select,.task-board-viewtools select,.task-board-viewtools button{height:36px!important;min-height:36px!important;font-size:12px!important}
.task-board-viewtools .task-view-filter,.task-board-viewtools #savedTaskFilters{height:36px!important;min-height:36px!important}
}

.task-kanban-lane .task-code,.task-kanban-lane .task-project,.task-kanban-lane .person,.task-kanban-lane .desktop-date,.task-kanban-lane .priority,.task-kanban-lane .task-remaining{font-size:12px!important;line-height:18px!important}


/* Kanban board reset: six workflow stages, consistent cards and filters */
.task-board-panel{min-width:0!important}
.task-board-filterbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:end!important;padding:14px!important}
.task-board-filter-main{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;min-width:0!important;width:100%!important;overflow:visible!important;padding:0!important}
.task-board-filter-main .task-filter{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;gap:5px!important}
.task-board-filter-main .task-filter>span{display:block!important;height:16px!important;min-height:16px!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;font-size:12px!important;line-height:16px!important;font-weight:650!important}
.task-board-filter-main select,.task-board-viewtools select,.task-board-viewtools button,.task-filter-clear{height:38px!important;min-height:38px!important;box-sizing:border-box!important;font-family:inherit!important;font-size:13px!important;font-weight:500!important;line-height:1.2!important;padding:8px 11px!important;border-radius:10px!important}
.task-filter-clear{align-self:end!important;white-space:nowrap!important}
.task-board-viewtools{display:flex!important;flex-wrap:wrap!important;align-items:end!important;gap:9px!important;min-width:0!important;overflow:visible!important}
.task-board-viewtools .task-view-filter{display:flex!important;flex-direction:column!important;gap:5px!important;width:180px!important;min-width:150px!important}
.task-board-viewtools .task-filter>span{height:16px!important;min-height:16px!important;font-size:12px!important;line-height:16px!important;font-weight:650!important}
.task-board-viewtools #savedTaskFilters{width:190px!important;min-width:150px!important}
.task-board-table-wrap{min-width:0!important;overflow-x:auto!important}
.task-list.kanban{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:visible!important;overscroll-behavior-inline:contain!important;scrollbar-width:thin!important;scroll-snap-type:x proximity!important}
.task-list.kanban>.task-kanban-board{display:grid!important;grid-auto-flow:column!important;grid-template-columns:repeat(6,minmax(230px,1fr))!important;grid-auto-columns:minmax(230px,1fr)!important;align-items:start!important;gap:12px!important;width:100%!important;min-width:1440px!important;max-width:none!important;overflow:visible!important;padding:4px 2px 12px!important;box-sizing:border-box!important}
.task-kanban-lane{display:flex!important;flex-direction:column!important;gap:9px!important;align-self:stretch!important;min-width:0!important;max-width:none!important;padding:10px!important;border:1px solid #dce8e3!important;border-radius:14px!important;background:#f5f8f7!important;scroll-snap-align:start!important;transition:background-color .16s ease,box-shadow .16s ease!important}
.task-kanban-lane-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-height:56px!important;padding:2px 2px 8px!important;border-bottom:1px solid #dce8e3!important}
.task-kanban-lane-title{display:grid!important;grid-template-columns:auto auto!important;align-items:center!important;justify-content:start!important;gap:3px 7px!important;min-width:0!important;flex:1!important}
.task-kanban-lane-title strong{font-size:12px!important;line-height:16px!important;letter-spacing:.035em!important;white-space:nowrap!important}
.task-kanban-count{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:22px!important;height:22px!important;padding:0 6px!important;border-radius:999px!important;background:#e7f2ed!important;color:#126b53!important;font-size:11px!important;font-weight:750!important}
.task-kanban-lane-title small{grid-column:1/-1!important;color:#647b72!important;font-size:10px!important;line-height:13px!important}
.task-kanban-progress{grid-column:1/-1!important;display:block!important;width:100%!important;height:4px!important;overflow:hidden!important;border-radius:999px!important;background:#dfe8e5!important}
.task-kanban-progress i{display:block!important;height:100%!important;border-radius:inherit!important;background:#16835f!important;transition:width .2s ease!important}
.task-kanban-add{flex:0 0 30px!important;width:30px!important;height:30px!important;min-height:30px!important;padding:0!important;border:1px solid #cce4d8!important;border-radius:9px!important;background:#fff!important;color:#147356!important;font-size:18px!important;line-height:1!important;cursor:pointer!important}
.task-kanban-add:hover{background:#eaf7f0!important;transform:translateY(-1px)!important}
.task-kanban-cards{display:flex!important;flex-direction:column!important;gap:9px!important;min-width:0!important}
.task-kanban-cards>.task-entry{display:block!important;flex:0 0 auto!important;min-width:0!important;margin:0!important;padding:0!important;overflow:visible!important;border:1px solid #e0e9e5!important;border-radius:12px!important;background:#fff!important;box-shadow:0 2px 7px #173c4208!important;transition:transform .19s cubic-bezier(.2,.75,.25,1),box-shadow .16s ease,border-color .16s ease!important}
.task-kanban-cards>.task-entry>.task{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:22px 58px 20px 31px 31px 22px 22px!important;gap:5px 8px!important;align-items:center!important;min-width:0!important;min-height:0!important;padding:10px!important;box-sizing:border-box!important}
.task-kanban-lane .task-code{grid-column:1!important;grid-row:1!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:16px!important;font-weight:750!important;color:#547067!important}
.task-kanban-lane .task-actions{grid-column:2!important;grid-row:1!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:3px!important}
.task-kanban-lane .task-actions button{width:26px!important;height:26px!important;min-height:26px!important;padding:3px!important;font-size:12px!important}
.task-kanban-lane .task-drag-handle{order:9!important;cursor:grab!important;touch-action:none!important}
.task-kanban-lane .task-name{grid-column:1/-1!important;grid-row:2!important;display:grid!important;grid-template-rows:18px 16px 18px!important;gap:2px!important;align-content:start!important;height:58px!important;max-height:58px!important;min-width:0!important;overflow:hidden!important}
.task-kanban-lane .task-title-button{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:18px!important;font-size:13px!important;font-weight:700!important}
.task-kanban-lane .task-name .tag-list{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;max-height:16px!important;overflow:hidden!important;margin:0!important;white-space:nowrap!important}
.task-kanban-lane .task-description{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:16px!important;color:#71857d!important}
.task-kanban-lane .task-thumb{display:none!important}
.task-kanban-lane .task-project{grid-column:1/-1!important;grid-row:3!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:18px!important;color:#60766d!important}
.task-kanban-lane .person{grid-column:1/-1!important;grid-row:4!important;display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;font-size:11px!important;line-height:14px!important}
.task-kanban-lane .person>span:last-child{display:flex!important;flex-direction:column!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.task-kanban-lane .task-department{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;line-height:11px!important;color:#87968f!important}
.task-kanban-lane .avatar{flex:0 0 24px!important;width:24px!important;height:24px!important;font-size:10px!important}
.task-kanban-lane .desktop-date{grid-column:1!important;grid-row:5!important;display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;line-height:14px!important}
.task-kanban-lane .desktop-date small{overflow:hidden!important;text-overflow:ellipsis!important;font-size:9px!important;color:#7c8f87!important}
.task-kanban-lane .desktop-date strong{overflow:hidden!important;text-overflow:ellipsis!important;font-size:10px!important;color:#254d43!important}
.task-kanban-lane .status-wrap{display:none!important}
.task-kanban-lane .task-remaining{grid-column:2!important;grid-row:5!important;justify-self:end!important;max-width:100%!important;overflow:hidden!important;text-align:right!important}
.task-kanban-lane .remaining-time{display:inline-block!important;max-width:112px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;padding:4px 6px!important}
.task-kanban-lane .task-progress{grid-column:1/-1!important;grid-row:6!important;display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;font-size:10px!important;font-weight:700!important;color:#27674f!important}
.task-kanban-lane .task-progress>i{display:block!important;flex:1!important;height:5px!important;overflow:hidden!important;border-radius:999px!important;background:#e7efeb!important}
.task-kanban-lane .task-progress>i>b{display:block!important;height:100%!important;border-radius:inherit!important;background:#16835f!important}
.task-kanban-lane .priority{grid-column:1!important;grid-row:7!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:10px!important;line-height:16px!important;font-weight:700!important}
.task-kanban-lane .task-card-counts{grid-column:2!important;grid-row:7!important;display:flex!important;justify-content:flex-end!important;gap:8px!important;overflow:hidden!important;font-size:10px!important;color:#687e75!important;white-space:nowrap!important}
.task-kanban-lane .task-expanded{grid-column:1/-1!important;width:100%!important;min-width:0!important}
.task-kanban-lane .task-entry.task-dragging{opacity:.78!important;transform:scale(.985)!important;box-shadow:0 10px 24px #12383f25!important}
.task-kanban-lane .task-entry.task-order-before:before,.task-kanban-lane .task-entry.task-order-after:after{left:4px!important;right:4px!important;height:3px!important;background:#16835f!important;box-shadow:0 0 0 3px #16835f24!important}
.task-kanban-lane.task-lane-drop-target{background:#eaf7ef!important;outline:2px solid #67bb91!important;box-shadow:inset 0 0 0 3px #16835f12!important}
.task-status-sync{position:absolute!important;right:0!important;top:-17px!important;color:#437365!important;font-size:9px!important;white-space:nowrap!important}
.task-kanban-lane .status-wrap{position:relative!important}
.task-kanban-lane .task-entry[data-status-saving="true"]{opacity:.72!important;pointer-events:none!important}
@media(min-width:761px) and (max-width:1199px){.task-board-filter-main{grid-template-columns:repeat(3,minmax(0,1fr))!important}.task-board-viewtools{justify-content:flex-start!important}}
@media(max-width:760px){
.task-board-filterbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;padding:10px!important}
.task-board-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.task-board-filter-main .task-filter>span,.task-board-viewtools .task-filter>span{height:15px!important;min-height:15px!important;font-size:10px!important;line-height:15px!important}
.task-board-filter-main select,.task-board-viewtools select,.task-board-viewtools button,.task-filter-clear{height:36px!important;min-height:36px!important;font-size:12px!important;padding:7px 9px!important}
.task-filter-clear{grid-column:1/-1!important;justify-self:start!important}
.task-board-viewtools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important}
.task-board-viewtools .task-view-filter,.task-board-viewtools #savedTaskFilters{width:100%!important;min-width:0!important}
.task-list.kanban{overflow-x:auto!important;scroll-snap-type:x mandatory!important;touch-action:pan-x pan-y!important}
.task-list.kanban>.task-kanban-board{grid-auto-flow:column!important;grid-template-columns:none!important;grid-auto-columns:min(86vw,350px)!important;gap:9px!important;width:max-content!important;min-width:0!important;padding:3px 4px 12px!important}
.task-kanban-lane{padding:8px!important}
.task-kanban-lane-head{min-height:52px!important}
.task-kanban-cards>.task-entry>.task{grid-template-rows:22px 58px 20px 31px 31px 22px 22px!important;padding:9px!important}
.task-kanban-lane .task-title-button{font-size:12px!important}
}

.task-description,.task-department,.task-progress,.task-card-counts{display:none!important}
.task-kanban-lane .task-description,.task-kanban-lane .task-department,.task-kanban-lane .task-progress,.task-kanban-lane .task-card-counts{display:block!important}
.task-kanban-lane .task-card-counts{display:flex!important}

.task-kanban .task-head{display:none!important}
.task-sync-toast{position:fixed;z-index:18000;left:50%;bottom:22px;transform:translateX(-50%);padding:10px 14px;border-radius:11px;background:#183f3c;color:#fff;box-shadow:0 8px 24px #12383f30;font-size:12px;font-weight:650;opacity:0;pointer-events:none;transition:opacity .15s ease}.task-sync-toast.is-visible{opacity:1}.task-sync-toast[data-kind="error"]{background:#9a392f}.task-sync-toast[data-kind="success"]{background:#17684e}

.task-kanban-lane[data-stage-status="backlog"] .task-kanban-lane-head{border-color:#d9e2f2!important}.task-kanban-lane[data-stage-status="doing"] .task-kanban-count{background:#e8f2ff!important;color:#275e9a!important}.task-kanban-lane[data-stage-status="review"] .task-kanban-count{background:#fff3db!important;color:#946000!important}.task-kanban-lane[data-stage-status="done"] .task-kanban-count{background:#e5f5ec!important;color:#17724f!important}.task-kanban-lane[data-stage-status="cancelled"] .task-kanban-count{background:#f2ebeb!important;color:#7f5858!important}

.task-board-table-wrap.task-kanban-shell{overflow:visible!important}.task-checklist{display:grid;gap:7px;margin:8px 0}.task-checklist-row{display:flex;align-items:center;gap:9px;min-height:38px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff}.task-checklist-row input{flex:0 0 auto}.task-checklist-row span{flex:1;min-width:0;overflow-wrap:anywhere}.task-checklist-row input:checked+span{text-decoration:line-through;color:var(--muted)}.task-checklist-form{display:flex;gap:8px;margin:8px 0 18px}.task-checklist-form input{flex:1;min-width:0;height:38px;border:1px solid var(--line);border-radius:9px;padding:8px 10px;font:inherit}.task-history{display:grid;gap:7px;margin:8px 0 18px}.task-history-row{display:grid;gap:3px;padding:8px 10px;border-left:2px solid #a5d8bd;background:#f6faf8;font-size:12px}.task-history-row small{color:var(--muted);font-size:10px}.task-history-row span{color:#496159;overflow-wrap:anywhere}.task-kanban-lane .priority.critical{color:#b83232!important}.task-kanban-lane .priority.high{color:#bc6724!important}.task-kanban-lane .priority.medium{color:#92751a!important}.task-kanban-lane .priority.normal{color:#63756d!important}

/* Three-stage Kanban: prevent legacy column widths from collapsing cards. */
.task-list.kanban>.task-kanban-board{display:grid!important;grid-auto-flow:column!important;grid-template-columns:repeat(3,minmax(280px,1fr))!important;grid-auto-columns:minmax(280px,1fr)!important;align-items:start!important;gap:12px!important;width:100%!important;min-width:880px!important;max-width:none!important;overflow:visible!important;padding:10px!important;box-sizing:border-box!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane{width:auto!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}.task-list.kanban>.task-kanban-board .task-kanban-cards{width:100%!important;min-width:0!important}.task-list.kanban>.task-kanban-board .task-kanban-lane .task-entry,.task-list.kanban>.task-kanban-board .task-kanban-lane .task{width:100%!important;min-width:0!important;box-sizing:border-box!important}
@media(max-width:760px){.task-list.kanban>.task-kanban-board{grid-template-columns:none!important;grid-auto-columns:min(86vw,350px)!important;width:max-content!important;min-width:0!important;max-width:none!important;gap:9px!important;padding:8px 5px 12px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane{width:auto!important;min-width:0!important;max-width:none!important;padding:9px!important}.task-list.kanban>.task-kanban-board .task-kanban-lane .task-entry{width:100%!important;min-width:0!important}}

/* Compact, aligned task rows inside the three Kanban stages. */
.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-entry{margin:0!important;padding:7px!important;border:1px solid #dfe9e4!important;border-radius:10px!important;background:#fff!important;box-shadow:0 1px 4px #173f3508!important;overflow:hidden!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-entry>.task{display:grid!important;grid-template-columns:minmax(48px,.4fr) minmax(0,1.4fr) auto!important;grid-template-areas:"code name actions" "project person date" "status priority remaining" "progress progress counts"!important;grid-template-rows:20px 22px 21px 14px!important;gap:5px 7px!important;min-width:0!important;min-height:0!important;padding:2px!important;align-items:center!important;border:0!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-code{grid-area:code!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:9px!important;line-height:18px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-name{grid-area:name!important;display:block!important;min-width:0!important;overflow:hidden!important}.task-list.kanban>.task-kanban-board>.task-entry>.task .task-title-button{display:block!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:11px!important;line-height:19px!important}.task-list.kanban>.task-kanban-board>.task-entry>.task .tag-list,.task-list.kanban>.task-kanban-board>.task-entry>.task .task-description{display:none!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-actions{grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:2px!important;min-width:0!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-actions button{width:23px!important;min-width:23px!important;height:23px!important;padding:2px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-thumb{display:none!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-project{grid-area:project!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;line-height:20px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .person{grid-area:person!important;display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;font-size:9px!important;line-height:20px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .avatar{flex:0 0 19px!important;width:19px!important;height:19px!important;font-size:8px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-department{display:none!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .desktop-date{grid-area:date!important;display:block!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;text-align:right!important;line-height:20px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .desktop-date small{display:none!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .desktop-date strong{font-size:9px!important;line-height:20px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .status-wrap{grid-area:status!important;display:block!important;min-width:0!important;overflow:hidden!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .status-wrap select{width:100%!important;max-width:100%!important;height:21px!important;min-height:21px!important;padding:1px 14px 1px 4px!important;border-radius:7px!important;font-size:8px!important;line-height:18px!important;white-space:nowrap!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .priority{grid-area:priority!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;line-height:20px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-remaining{grid-area:remaining!important;justify-self:end!important;max-width:100%!important;overflow:hidden!important;text-align:right!important;white-space:nowrap!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .remaining-time{max-width:100%!important;padding:2px 5px!important;font-size:8px!important;line-height:15px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-progress{grid-area:progress!important;display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;font-size:8px!important;line-height:14px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-progress>i{height:4px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-card-counts{grid-area:counts!important;display:flex!important;justify-content:flex-end!important;gap:5px!important;overflow:hidden!important;font-size:8px!important;line-height:14px!important;white-space:nowrap!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-expanded{grid-column:1/-1!important;grid-row:auto!important;width:100%!important;min-width:0!important}
/* Rebuild the complete filter area on a consistent grid. */
.task-board-filterbar{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;padding:12px!important;overflow:visible!important}.task-board-filter-main{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:end!important;gap:9px!important;width:100%!important;min-width:0!important;padding:0!important;overflow:visible!important}.task-board-filter-main .task-filter{display:grid!important;grid-template-rows:15px 38px!important;gap:4px!important;width:100%!important;min-width:0!important;max-width:none!important}.task-board-filter-main .task-filter>span{height:15px!important;min-height:15px!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10px!important;line-height:15px!important}.task-board-filter-main .task-filter select{width:100%!important;max-width:none!important;min-width:0!important;height:38px!important;min-height:38px!important;box-sizing:border-box!important;padding:6px 25px 6px 9px!important;font-size:11px!important;line-height:16px!important}.task-board-filter-main .task-filter-clear{align-self:end!important;height:38px!important;min-height:38px!important;padding:7px 10px!important;font-size:11px!important;white-space:nowrap!important}.task-board-viewtools{display:flex!important;align-items:end!important;justify-content:flex-end!important;gap:8px!important;min-width:0!important;width:100%!important;overflow:visible!important}.task-board-viewtools .task-view-filter{display:grid!important;grid-template-rows:15px 38px!important;gap:4px!important;min-width:155px!important}.task-board-viewtools .task-view-filter>span{font-size:10px!important;line-height:15px!important}.task-board-viewtools select,.task-board-viewtools button{height:38px!important;min-height:38px!important;box-sizing:border-box!important;font-size:11px!important}.task-board-viewtools #savedTaskFilters{width:min(190px,22vw)!important;min-width:145px!important}.task-board-viewtools button{padding:7px 10px!important;white-space:nowrap!important}
@media(min-width:761px) and (max-width:1150px){.task-board-filter-main{grid-template-columns:repeat(3,minmax(0,1fr))!important}.task-board-viewtools{justify-content:flex-start!important;flex-wrap:wrap!important}}
@media(max-width:760px){.task-board-filterbar{gap:9px!important;padding:9px!important}.task-board-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.task-board-filter-main .task-filter{grid-template-rows:14px 36px!important}.task-board-filter-main .task-filter select,.task-board-filter-main .task-filter-clear{height:36px!important;min-height:36px!important;font-size:10px!important}.task-board-filter-main .task-filter-clear{width:100%!important}.task-board-viewtools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:end!important;gap:7px!important}.task-board-viewtools .task-view-filter{grid-template-rows:14px 36px!important;min-width:0!important;width:100%!important}.task-board-viewtools .task-view-filter select,.task-board-viewtools #savedTaskFilters,.task-board-viewtools button{width:100%!important;min-width:0!important;height:36px!important;min-height:36px!important;font-size:10px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-entry>.task{grid-template-columns:minmax(45px,.38fr) minmax(0,1.4fr) auto!important;grid-template-rows:20px 22px 20px 20px!important;gap:4px 6px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-entry{padding:6px!important}}

/* Place every task-board filter and action on one shared column grid. */
.task-board-panel .task-board-filterbar{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-auto-flow:row!important;align-items:end!important;justify-items:stretch!important;gap:9px!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;padding:12px!important}.task-board-panel .task-board-filterbar>.task-board-filter-main,.task-board-panel .task-board-filterbar>.task-board-viewtools{display:contents!important}.task-board-panel .task-board-filterbar .task-filter{display:grid!important;grid-template-rows:15px 38px!important;align-content:end!important;align-self:end!important;gap:4px!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}.task-board-panel .task-board-filterbar .task-filter>span{display:block!important;width:100%!important;height:15px!important;min-height:15px!important;overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important;font-size:10px!important;line-height:15px!important}.task-board-panel .task-board-filterbar .task-filter select,.task-board-panel .task-board-filterbar>.task-board-filter-main>button,.task-board-panel .task-board-filterbar>.task-board-viewtools>button,.task-board-panel .task-board-filterbar>.task-board-viewtools>select{width:100%!important;min-width:0!important;max-width:none!important;height:38px!important;min-height:38px!important;box-sizing:border-box!important;margin:0!important;padding:7px 9px!important;font-size:11px!important;line-height:16px!important;white-space:nowrap!important}.task-board-panel .task-board-filterbar>.task-board-filter-main>button,.task-board-panel .task-board-filterbar>.task-board-viewtools>button,.task-board-panel .task-board-filterbar>.task-board-viewtools>select{align-self:end!important}.task-board-panel .task-board-filterbar>#savedTaskFilters{align-self:end!important}.task-board-panel .task-board-filterbar>#saveTaskFilter,.task-board-panel .task-board-filterbar>#manageGroups{align-self:end!important}@media(min-width:761px) and (max-width:1199px){.task-board-panel .task-board-filterbar{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:760px){.task-board-panel .task-board-filterbar{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:9px!important}.task-board-panel .task-board-filterbar .task-filter{grid-template-rows:14px 36px!important}.task-board-panel .task-board-filterbar .task-filter select,.task-board-panel .task-board-filterbar>.task-board-filter-main>button,.task-board-panel .task-board-filterbar>.task-board-viewtools>button,.task-board-panel .task-board-filterbar>.task-board-viewtools>select{height:36px!important;min-height:36px!important;font-size:10px!important}}

/* AP2 task-board responsive presentation */
.task-kanban-mobile-tabs{display:none!important}.task-list.kanban>.task-kanban-board{grid-template-columns:repeat(3,minmax(280px,1fr))!important;grid-auto-columns:minmax(280px,1fr)!important;min-width:880px!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane{width:auto!important;min-width:0!important}.task-list.kanban>.task-kanban-board .task-kanban-lane-head{display:flex!important;align-items:center!important;min-height:56px!important;margin-bottom:9px!important;padding:9px 10px!important;border-bottom:1px solid #e4ece7!important}.task-list.kanban>.task-kanban-board .task-kanban-lane-title{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:3px 8px!important;align-items:center!important;min-width:0!important;flex:1!important}.task-list.kanban>.task-kanban-board .task-kanban-lane-title strong{font-size:12px!important;line-height:16px!important;letter-spacing:.02em!important}.task-list.kanban>.task-kanban-board .task-kanban-lane-title small{grid-column:1/-1!important;font-size:9px!important}.task-list.kanban>.task-kanban-board .task-kanban-progress{grid-column:1/-1!important;height:4px!important}.task-list.kanban>.task-kanban-board .task-kanban-add{flex:0 0 30px!important;width:30px!important;height:30px!important;border-radius:9px!important;font-size:18px!important}.task-list.kanban>.task-kanban-board .task-kanban-cards{display:grid!important;grid-auto-rows:min-content!important;gap:7px!important;min-width:0!important}.task-list.kanban>.task-kanban-board .task-entry{transition:box-shadow .16s,border-color .16s,transform .18s!important}.task-list.kanban>.task-kanban-board .task-entry:hover{border-color:#b8d9c7!important;box-shadow:0 4px 12px #164b3c12!important}
@media(max-width:760px){.task-board-table-wrap.task-kanban-shell{overflow:visible!important}.task-kanban-mobile-tabs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;width:100%!important;padding:4px!important;margin:0 0 8px!important;border:1px solid #dce8e3!important;border-radius:12px!important;background:#f1f6f3!important;box-sizing:border-box!important}.task-kanban-mobile-tabs button{display:flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-width:0!important;min-height:38px!important;padding:5px 4px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#526c64!important;font:inherit!important;font-size:9px!important;font-weight:700!important;line-height:1.15!important;text-align:center!important;white-space:normal!important}.task-kanban-mobile-tabs button span{min-width:0!important}.task-kanban-mobile-tabs button b{display:grid!important;place-items:center!important;flex:0 0 19px!important;min-width:19px!important;height:19px!important;border-radius:99px!important;background:#e4eee8!important;color:#176b54!important;font-size:9px!important}.task-kanban-mobile-tabs button.is-active{border-color:#a8d6bb!important;background:#fff!important;color:#087653!important;box-shadow:0 2px 6px #17493912!important}.task-kanban-mobile-tabs button.is-active b{background:#dff3e7!important}.task-list.kanban>.task-kanban-board{display:block!important;width:100%!important;min-width:0!important;max-width:none!important;padding:0!important;overflow:visible!important}.task-list.kanban[data-active-stage="todo"]>.task-kanban-board>.task-kanban-lane:not([data-stage-status="todo"]),.task-list.kanban[data-active-stage="doing"]>.task-kanban-board>.task-kanban-lane:not([data-stage-status="doing"]),.task-list.kanban[data-active-stage="review"]>.task-kanban-board>.task-kanban-lane:not([data-stage-status="review"]){display:none!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane{width:100%!important;min-width:0!important;max-width:none!important;padding:9px!important;box-sizing:border-box!important}.task-list.kanban>.task-kanban-board .task-kanban-lane-head{min-height:48px!important}.task-list.kanban>.task-kanban-board .task-entry{width:100%!important;min-width:0!important}.task-list.kanban>.task-kanban-board .task-kanban-lane .task-entry>.task{width:100%!important;grid-template-columns:minmax(45px,.38fr) minmax(0,1.4fr) auto!important;grid-template-areas:"code name actions" "project person date" "status priority remaining" "progress progress counts"!important;grid-template-rows:20px 20px 21px 14px!important;gap:4px 6px!important;padding:2px!important}.task-list.kanban>.task-kanban-board .task-kanban-lane .task-title-button{font-size:11px!important}.task-list.kanban>.task-kanban-board .task-kanban-lane .task-expanded{grid-column:1/-1!important}}

/* Clear information hierarchy for each Kanban task card. */
.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-entry.kanban-task-card{padding:9px!important;border:1px solid #dce8e3!important;border-radius:11px!important;background:#fff!important;overflow:visible!important}.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-entry.kanban-task-card>.task{display:grid!important;grid-template-columns:minmax(56px,.36fr) minmax(0,1.2fr) minmax(0,1fr) auto!important;grid-template-areas:"code name name actions" "project person date priority" "status status remaining remaining" "progress progress progress counts"!important;grid-template-rows:auto auto auto auto!important;gap:7px 9px!important;min-width:0!important;min-height:0!important;padding:1px!important;align-items:center!important}.task-entry.kanban-task-card .task-code{grid-area:code!important;align-self:start!important;padding-top:3px!important;font-size:9px!important;line-height:16px!important}.task-entry.kanban-task-card .task-name{grid-area:name!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0!important;overflow:hidden!important}.task-entry.kanban-task-card .task-title-button{width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;font-size:11px!important;line-height:1.25!important}.task-entry.kanban-task-card .tag-list{display:flex!important;max-width:100%!important;overflow:hidden!important;flex-wrap:nowrap!important;gap:3px!important;margin:1px 0!important}.task-entry.kanban-task-card .tag-chip{flex:0 0 auto!important;padding:1px 5px!important;font-size:8px!important;line-height:13px!important}.task-entry.kanban-task-card .task-description{display:block!important;width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#71847d!important;font-size:9px!important;line-height:14px!important}.task-entry.kanban-task-card .task-actions{grid-area:actions!important;display:flex!important;justify-content:flex-end!important;align-self:start!important;gap:2px!important;min-width:0!important}.task-entry.kanban-task-card .task-actions button{width:24px!important;min-width:24px!important;height:24px!important;padding:2px!important}.task-entry.kanban-task-card .task-thumb{display:none!important}.task-entry.kanban-task-card .task-project{grid-area:project!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;line-height:20px!important}.task-entry.kanban-task-card .person{grid-area:person!important;display:flex!important;align-items:center!important;gap:5px!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;font-size:9px!important;line-height:20px!important}.task-entry.kanban-task-card .avatar{flex:0 0 20px!important;width:20px!important;height:20px!important;font-size:8px!important}.task-entry.kanban-task-card .task-department{display:none!important}.task-entry.kanban-task-card .desktop-date{grid-area:date!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important;line-height:12px!important}.task-entry.kanban-task-card .desktop-date small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:8px!important;line-height:11px!important}.task-entry.kanban-task-card .desktop-date strong{overflow:hidden!important;text-overflow:ellipsis!important;font-size:9px!important;line-height:12px!important}.task-entry.kanban-task-card .priority{grid-area:priority!important;justify-self:end!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:9px!important;line-height:18px!important}.task-entry.kanban-task-card .status-wrap{grid-area:status!important;display:block!important;min-width:0!important;overflow:hidden!important}.task-entry.kanban-task-card .status-wrap select{width:min(100%,150px)!important;height:24px!important;min-height:24px!important;padding:2px 18px 2px 7px!important;border-radius:8px!important;font-size:9px!important;line-height:18px!important}.task-entry.kanban-task-card .task-remaining{grid-area:remaining!important;justify-self:end!important;max-width:100%!important;overflow:hidden!important;text-align:right!important;white-space:nowrap!important}.task-entry.kanban-task-card .remaining-time{max-width:100%!important;padding:3px 7px!important;font-size:9px!important;line-height:15px!important}.task-entry.kanban-task-card .task-progress{grid-area:progress!important;display:flex!important;align-items:center!important;gap:6px!important;min-width:0!important;font-size:9px!important;line-height:14px!important}.task-entry.kanban-task-card .task-progress>i{height:5px!important}.task-entry.kanban-task-card .task-card-counts{grid-area:counts!important;display:flex!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;overflow:hidden!important;font-size:9px!important;line-height:14px!important;white-space:nowrap!important}.task-entry.kanban-task-card .task-expanded{grid-column:1/-1!important;grid-row:auto!important;width:100%!important;min-width:0!important}
@media(max-width:760px){.task-entry.kanban-task-card>.task{grid-template-columns:minmax(48px,.36fr) minmax(0,1.2fr) minmax(0,1fr) auto!important;grid-template-areas:"code name name actions" "project person date priority" "status status remaining remaining" "progress progress progress counts"!important;gap:6px 7px!important}.task-entry.kanban-task-card .task-title-button{-webkit-line-clamp:2!important;font-size:10px!important}.task-entry.kanban-task-card .task-description{font-size:8px!important}.task-entry.kanban-task-card .task-actions button{width:22px!important;min-width:22px!important;height:22px!important}}

/* Kanban task cards: exactly two information rows with evenly spaced metrics. */
.task-list.kanban>.task-kanban-board>.task-kanban-lane .task-entry.kanban-task-card>.task{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;min-width:0!important;min-height:0!important;padding:2px!important;border:0!important}.task-entry.kanban-task-card .task-kanban-row-one{display:grid!important;grid-template-columns:minmax(54px,.24fr) minmax(0,1fr) auto!important;align-items:start!important;gap:8px!important;min-width:0!important}.task-entry.kanban-task-card .task-kanban-row-two{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;gap:0!important;min-width:0!important;padding-top:6px!important;border-top:1px solid #edf2ef!important}.task-entry.kanban-task-card .task-kanban-meta-group{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;min-width:0!important;overflow:hidden!important;padding:0 7px!important;border-left:1px solid #edf2ef!important}.task-entry.kanban-task-card .task-kanban-meta-group:first-child{padding-left:0!important;border-left:0!important}.task-entry.kanban-task-card .task-kanban-meta-group:last-child{padding-right:0!important}.task-entry.kanban-task-card .task-code{padding-top:2px!important}.task-entry.kanban-task-card .task-name{gap:2px!important}.task-entry.kanban-task-card .task-kanban-meta-group .task-project{width:100%!important;min-width:0!important;line-height:15px!important}.task-entry.kanban-task-card .task-kanban-meta-group .person{width:100%!important;min-width:0!important;gap:4px!important;line-height:18px!important}.task-entry.kanban-task-card .task-kanban-meta-group .person>span:last-child{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.task-entry.kanban-task-card .task-kanban-meta-group .desktop-date{width:100%!important;line-height:12px!important}.task-entry.kanban-task-card .task-kanban-meta-group .desktop-date strong{font-size:9px!important}.task-entry.kanban-task-card .task-kanban-meta-group .status-wrap select{width:100%!important;max-width:100%!important;height:23px!important;min-height:23px!important;padding:2px 15px 2px 5px!important;font-size:8px!important}.task-entry.kanban-task-card .task-kanban-meta-group .priority{align-self:flex-start!important;line-height:15px!important}.task-entry.kanban-task-card .task-kanban-meta-group .task-remaining{align-self:flex-start!important;max-width:100%!important;text-align:left!important}.task-entry.kanban-task-card .task-kanban-meta-group .remaining-time{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important}.task-entry.kanban-task-card .task-kanban-meta-group .task-progress{width:100%!important;min-width:0!important;gap:4px!important;line-height:13px!important}.task-entry.kanban-task-card .task-kanban-meta-group .task-progress>i{height:4px!important}.task-entry.kanban-task-card .task-kanban-meta-group .task-card-counts{width:100%!important;justify-content:flex-start!important;gap:6px!important;line-height:13px!important}
@media(max-width:760px){.task-entry.kanban-task-card>.task{gap:5px!important}.task-entry.kanban-task-card .task-kanban-row-one{grid-template-columns:minmax(48px,.24fr) minmax(0,1fr) auto!important;gap:6px!important}.task-entry.kanban-task-card .task-kanban-row-two{grid-template-columns:repeat(4,minmax(0,1fr))!important;padding-top:5px!important}.task-entry.kanban-task-card .task-kanban-meta-group{gap:3px!important;padding:0 5px!important}.task-entry.kanban-task-card .task-kanban-meta-group .task-project,.task-entry.kanban-task-card .task-kanban-meta-group .person{font-size:8px!important}.task-entry.kanban-task-card .task-kanban-meta-group .desktop-date strong{font-size:8px!important}.task-entry.kanban-task-card .task-kanban-meta-group .priority,.task-entry.kanban-task-card .task-kanban-meta-group .remaining-time{font-size:8px!important}.task-entry.kanban-task-card .task-kanban-meta-group .task-card-counts{font-size:8px!important}}

/* Task filters arranged as one compact toolbar, matching the provided layout. */
.task-board-panel .task-board-filterbar{display:flex!important;flex-wrap:wrap!important;align-items:flex-end!important;gap:10px!important;width:100%!important;max-width:none!important;box-sizing:border-box!important;padding:12px!important}.task-board-panel .task-board-filter-main{display:grid!important;grid-template-columns:repeat(9,minmax(86px,1fr))!important;align-items:end!important;gap:8px!important;flex:1 1 880px!important;width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important;padding:0!important}.task-board-panel .task-board-filter-main .task-filter{display:grid!important;grid-template-rows:15px 38px!important;gap:4px!important;width:100%!important;min-width:0!important;max-width:none!important;white-space:nowrap!important}.task-board-panel .task-board-filter-main .task-filter>span{display:block!important;height:15px!important;min-height:15px!important;overflow:hidden!important;font-size:10px!important;line-height:15px!important;font-weight:700!important;text-overflow:ellipsis!important}.task-board-panel .task-board-filter-main .task-filter select{width:100%!important;min-width:0!important;max-width:none!important;height:38px!important;min-height:38px!important;box-sizing:border-box!important;padding:6px 22px 6px 9px!important;border:1px solid #dce7e3!important;border-radius:10px!important;background-color:#fff!important;color:#19474a!important;font-size:11px!important;font-weight:600!important}.task-board-panel .task-board-filter-main .task-filter>span:before{display:inline-block;margin-right:5px;font-size:12px;line-height:1}.task-board-panel .task-board-filter-main .task-filter:nth-of-type(1)>span:before{content:'☑';color:#5374a1}.task-board-panel .task-board-filter-main .task-filter:nth-of-type(2)>span:before{content:'▰';color:#e59a27}.task-board-panel .task-board-filter-main .task-filter:nth-of-type(3)>span:before{content:'♟';color:#3477d1}.task-board-panel .task-board-filter-main .task-filter:nth-of-type(4)>span:before{content:'♣';color:#e89b20}.task-board-panel .task-board-filter-main .task-filter:nth-of-type(5)>span:before,.task-board-panel .task-board-filter-main .task-filter:nth-of-type(6)>span:before{content:'▦';color:#22a36e}.task-board-panel .task-board-filter-main .task-filter:nth-of-type(7)>span:before{content:'▣';color:#e44c67}.task-board-panel .task-board-filter-main .task-filter:nth-of-type(8)>span:before{content:'★';color:#e69b32}.task-board-panel .task-board-filter-main .task-filter:nth-of-type(9)>span:before{content:'◆';color:#7952d8}.task-board-filter-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex:0 0 auto!important;min-width:0!important;padding-left:10px!important;border-left:1px solid #dce7ef!important}.task-view-switch{position:relative!important;display:flex!important;align-items:center!important;gap:3px!important;height:38px!important;padding:3px!important;border-radius:10px!important;background:#f0f4fc!important}.task-view-switch button{height:32px!important;min-width:82px!important;padding:5px 9px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#3c5878!important;font:inherit!important;font-size:11px!important;font-weight:700!important;white-space:nowrap!important;cursor:pointer!important}.task-view-switch button.is-active{background:#1874ee!important;color:#fff!important;box-shadow:0 2px 6px #135ec22b!important}.task-board-mode-value{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.task-board-filter-actions .task-filter-reset,.task-board-filter-actions .task-filter-clear{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;height:38px!important;min-height:38px!important;padding:7px 11px!important;border:1px solid #dbe6f4!important;border-radius:10px!important;background:#eef3fb!important;color:#2468c0!important;font:inherit!important;font-size:11px!important;font-weight:700!important;white-space:nowrap!important;cursor:pointer!important}.task-board-filter-actions .task-filter-clear{border-color:#176fea!important;background:#176fea!important;color:#fff!important}.task-board-panel .task-board-viewtools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex:1 0 100%!important;width:100%!important;min-width:0!important;padding-top:8px!important;border-top:1px solid #edf1f5!important;overflow:visible!important}.task-board-panel .task-board-viewtools #savedTaskFilters{width:190px!important;min-width:145px!important;height:34px!important;min-height:34px!important;padding:6px 9px!important;border:1px solid #dce7e3!important;border-radius:9px!important;background:#fff!important;font-size:10px!important}.task-board-panel .task-board-viewtools button{height:34px!important;min-height:34px!important;padding:6px 10px!important;border-radius:9px!important;font-size:10px!important}
@media(min-width:761px) and (max-width:1300px){.task-board-panel .task-board-filter-main{grid-template-columns:repeat(5,minmax(86px,1fr))!important;flex-basis:100%!important}.task-board-panel .task-board-filter-actions{margin-left:auto!important;border-left:0!important;padding-left:0!important}}@media(min-width:761px) and (max-width:980px){.task-board-panel .task-board-filter-main{grid-template-columns:repeat(3,minmax(0,1fr))!important}}@media(max-width:760px){.task-board-panel .task-board-filterbar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;padding:9px!important}.task-board-panel .task-board-filter-main{grid-template-columns:repeat(2,minmax(0,1fr))!important;flex:none!important;width:100%!important;gap:8px!important}.task-board-panel .task-board-filter-main .task-filter{grid-template-rows:14px 36px!important}.task-board-panel .task-board-filter-main .task-filter select{height:36px!important;min-height:36px!important;font-size:10px!important}.task-board-filter-actions{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:6px!important;width:100%!important;padding:0!important;border:0!important}.task-view-switch{min-width:0!important;width:100%!important;height:36px!important}.task-view-switch button{flex:1 1 0!important;min-width:0!important;height:30px!important;padding:4px 6px!important;font-size:9px!important}.task-board-filter-actions .task-filter-reset,.task-board-filter-actions .task-filter-clear{height:36px!important;min-height:36px!important;padding:6px 8px!important;font-size:9px!important}.task-board-panel .task-board-viewtools{display:flex!important;flex-wrap:wrap!important;justify-content:stretch!important}.task-board-panel .task-board-viewtools #savedTaskFilters{flex:1 1 100%!important;width:100%!important}.task-board-panel .task-board-viewtools button{flex:1 1 0!important}}
