/* TaskForge theme: same design tokens as Trax (slate brand #475569, IBM Plex Sans, Font Awesome). */
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/ibm-plex-sans-400.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url("fonts/ibm-plex-sans-500.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/ibm-plex-sans-600.woff2") format("woff2")}
:root{
 --tt-ink:#14181d;--tt-ink-2:#1b2028;--tt-ink-line:rgba(255,255,255,.09);--tt-bar:#272f3a;
 --tt-surface:#fff;--tt-line:#e3e8ed;--tt-text:#29313a;--tt-muted:#7d8a96;--tt-amber:#e8a317;
 --tt-bg:#f6f8fa;--tt-brand:#475569;--tt-brand-dark:#3a4656;--tt-brand-darker:#2f3845;--tt-brand-pale:#e9ebed;--tt-brand-wash:#f0f1f3;--tt-sidebar-w:238px;
 --bs-font-sans-serif:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
 --bs-body-font-family:var(--bs-font-sans-serif);--bs-body-color:var(--tt-text);--bs-body-bg:var(--tt-bg);
 --bs-primary:#475569;--bs-primary-rgb:71,85,105;--bs-link-color:#475569;--bs-link-color-rgb:71,85,105;--bs-link-hover-color:#3a4656;--bs-link-hover-color-rgb:58,70,86;
 --bs-border-color:var(--tt-line);--bs-secondary-color:var(--tt-muted);--bs-border-radius:.5rem;--bs-focus-ring-color:rgba(71,85,105,.28)}
*{box-sizing:border-box}
html{scroll-padding-top:5rem}
body{margin:0;font-size:.95rem;line-height:1.55;-webkit-font-smoothing:antialiased;background:var(--tt-bg);color:var(--tt-text)}
body.auth-body{background:#fff}
h1,h2,h3,h4{letter-spacing:-.01em;font-weight:600}
h1{font-size:1.55rem;font-weight:500;color:#36414b;margin:.3rem 0 .25rem}
h2{font-size:.95rem;font-weight:600;color:#56636d;margin:0 0 1rem}
a{color:var(--bs-link-color)}
.muted{color:var(--tt-muted)}
.btn-primary{--bs-btn-color:#fff;--bs-btn-hover-color:#fff;--bs-btn-active-color:#fff;--bs-btn-disabled-color:#fff;--bs-btn-bg:#475569;--bs-btn-border-color:#475569;--bs-btn-hover-bg:#3a4656;--bs-btn-hover-border-color:#3a4656;--bs-btn-active-bg:#2f3845;--bs-btn-active-border-color:#2f3845;--bs-btn-disabled-bg:#475569;--bs-btn-disabled-border-color:#475569;--bs-btn-focus-shadow-rgb:71,85,105;font-weight:500}
.btn-outline-primary{--bs-btn-color:#475569;--bs-btn-border-color:#475569;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#475569;--bs-btn-hover-border-color:#475569;--bs-btn-active-color:#fff;--bs-btn-active-bg:#3a4656;--bs-btn-active-border-color:#3a4656;--bs-btn-focus-shadow-rgb:71,85,105}
.form-control:focus,.form-select:focus{border-color:#475569;box-shadow:0 0 0 .22rem rgba(71,85,105,.2)}
.form-check-input:checked{background-color:#475569;border-color:#475569}
:focus-visible{outline-color:#475569}
/* ---- app shell ---- */
.app-shell{min-height:100vh;display:flex}
.app-sidebar{width:var(--tt-sidebar-w);flex:0 0 var(--tt-sidebar-w);background:#fff;color:#4f5d69;border-right:1px solid var(--tt-line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;z-index:1040}
.sidebar-brand{padding:.8rem 1rem .65rem;border-bottom:1px solid var(--tt-line)}
.brand-link,.brand-link:hover{display:inline-flex;align-items:center;gap:.65rem;color:var(--tt-text);text-decoration:none}
.brand-mark{width:2rem;height:2rem;border-radius:.4rem;display:inline-grid;place-items:center;background:var(--tt-brand);color:#fff;font-size:.95rem}
.brand-name{font-weight:600;font-size:1.05rem;letter-spacing:-.01em}
.sidebar-nav{padding:.35rem .65rem;flex:1 1 auto}
.sidebar-heading{padding:.8rem .65rem .3rem;font-size:.65rem;letter-spacing:.08em;color:#a0aab3;font-weight:600;text-transform:uppercase}
.sidebar-link{display:flex;align-items:center;gap:.65rem;color:#52606d;border-radius:.28rem;padding:.57rem .7rem;margin-bottom:.1rem;font-size:.86rem;text-decoration:none}
.sidebar-link i{width:1.1rem;text-align:center;color:#7c8994}
.sidebar-link:hover{color:#25313b;background:#f1f5f7}
.sidebar-link.active{color:#26333d;background:var(--tt-brand-wash);font-weight:600}
.sidebar-link.active i{color:var(--tt-brand-dark)}
.avatar{width:2.2rem;height:2.2rem;flex:0 0 auto;border-radius:50%;display:inline-grid;place-items:center;background:var(--tt-brand-pale);color:var(--tt-brand-dark);font-weight:600;font-size:.75rem}
.app-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
.app-topbar{position:sticky;top:0;z-index:1030;display:flex;align-items:center;gap:.75rem;min-height:3.9rem;padding:.5rem 1.5rem;background:#fff;border-bottom:1px solid var(--tt-line);box-shadow:0 1px 3px rgba(35,50,60,.03)}
.topbar-title{margin:0;font-size:1.05rem;font-weight:600;flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-email{color:#a0a9b1;font-size:.82rem}
.nav-toggle{display:none;border:0;background:transparent;width:2.4rem;height:2.4rem;border-radius:.5rem;color:var(--tt-text)}
.nav-toggle:hover{background:#f2f5f7}
.app-content{max-width:1500px;width:100%;padding:1.55rem 1.5rem 3rem;margin:0 auto}
@media (max-width:991.98px){
 .nav-toggle{display:inline-grid;place-items:center}
 .app-sidebar{position:fixed;left:0;top:0;transform:translateX(-100%);transition:transform .2s ease;box-shadow:0 0 30px rgba(0,0,0,.2)}
 .app-sidebar.open{transform:none}
 .nav-backdrop{position:fixed;inset:0;background:rgba(15,25,35,.4);z-index:1035}
 .topbar-email{display:none}}
/* ---- sign-in page (same split layout as Trax) ---- */
.login-page{min-height:100vh;display:grid;grid-template-columns:1fr}
@media (min-width:992px){.login-page{grid-template-columns:minmax(380px,5fr) 6fr}}
.login-aside{display:none;background:var(--tt-ink);color:#fff;padding:3rem}
@media (min-width:992px){.login-aside{display:flex}}
.login-aside-inner{display:flex;flex-direction:column;width:100%;max-width:30rem;margin:0 auto}
.login-aside .brand-link,.login-aside .brand-link:hover,.login-aside .brand-name{color:#fff}
.login-claim{margin:5rem 0 .75rem;font-size:2.6rem;line-height:1.08;font-weight:600;letter-spacing:-.025em;max-width:12ch}
.login-sub{color:rgba(255,255,255,.72);max-width:38ch;font-size:1.02rem}
.week-ruler{margin-top:auto;padding-top:3rem;height:17rem;display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;align-items:end;background-image:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),var(--tt-ink-line) calc(25% - 1px),var(--tt-ink-line) 25%);background-size:100% calc(100% - 3rem);background-repeat:no-repeat;background-position:top}
.ruler-day{display:flex;flex-direction:column;justify-content:flex-end;height:100%;gap:.6rem}
.ruler-bar{display:block;height:var(--h);background:var(--tt-bar);border-radius:.35rem .35rem 0 0}
.ruler-day.is-live .ruler-bar{background:var(--tt-amber)}
.ruler-label{text-align:center;font-size:.72rem;color:rgba(255,255,255,.6);white-space:nowrap}
.login-main{display:flex;align-items:center;justify-content:center;padding:2rem 1.25rem;background:#fff}
.login-card{width:100%;max-width:24rem}
.login-mobile-brand{display:flex;align-items:center;gap:.65rem;margin-bottom:2rem}
@media (min-width:992px){.login-mobile-brand{display:none}}
.login-title{font-size:1.8rem;font-weight:600;color:var(--tt-text);margin:0 0 .35rem}
.login-lead{color:var(--tt-muted);margin-bottom:1.5rem}
.login-foot{margin:1.5rem 0 0;font-size:.85rem;color:var(--tt-muted)}
/* ---- content components ---- */
.alert{border-radius:.5rem}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem;flex-wrap:wrap}
.page-heading p{margin:0}
.panel{background:#fff;border:1px solid var(--tt-line);border-radius:.4rem;padding:1.15rem 1.25rem;box-shadow:0 1px 2px rgba(30,50,70,.03)}
.simple-list{list-style:none;padding:0;margin:0}.simple-list li{padding:.4rem 0;border-bottom:1px solid #edf0f2}.simple-list li:last-child{border:0}
.user-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid #edf0f2}
.user-row:last-child{border-bottom:0}
.pill{display:inline-block;padding:.18rem .55rem;border-radius:3px;font-size:.72rem;background:#eef2f4;color:#5c6b75;white-space:nowrap}
.pill.off{background:#fbe9e9;color:#ad5a5a}
.project-row{display:flex;align-items:center;gap:.8rem;padding:.7rem 0;border-bottom:1px solid #edf0f2;text-decoration:none;color:var(--tt-text)}
.project-row:last-child{border-bottom:0}.project-row:hover b{color:var(--tt-brand-dark);text-decoration:underline}
.project-row small{display:block;color:#9ba5ad;font-size:.75rem}
.project-icon{width:2.2rem;height:2.2rem;border-radius:.4rem;display:grid;place-items:center;background:var(--tt-brand-pale);color:var(--tt-brand-dark);font-weight:600;font-size:.78rem}
.project-switch{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem;max-width:26rem}.project-switch label{color:var(--tt-muted);font-size:.8rem;margin:0}
.team-block{border-top:1px solid var(--tt-line);margin-top:14px;padding-top:12px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.chip{display:inline-flex;align-items:center;gap:4px;background:var(--tt-brand-pale);color:var(--tt-brand-dark);border-radius:999px;padding:2px 4px 2px 10px;font-size:12px;margin:0}
.chip button{border:0;background:none;color:inherit;font-size:16px;line-height:1;cursor:pointer;padding:0 4px}
.user-edit{border-bottom:1px solid #edf0f2}.user-edit>summary{list-style:none;cursor:pointer}.user-edit>summary::-webkit-details-marker{display:none}.user-edit[open]>summary{background:#f8fafb}
.user-edit>summary.user-row{border:0;padding-left:.25rem;padding-right:.25rem}
details>summary.btn{display:inline-block}
.empty-state{text-align:center;padding:4rem 1rem}.empty-icon{font-size:2.5rem;color:#b3bcc4;margin-bottom:.5rem}
/* kanban */
.kanban{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1px;background:var(--tt-line);border:1px solid var(--tt-line);width:100%;max-width:100%;overflow-x:auto}
.kanban-column{min-width:0}
.kanban .task-card,.kanban .task-title,.kanban .task-description{min-width:0;max-width:100%;overflow-wrap:anywhere}
.kanban .card-top,.kanban .card-bottom{min-width:0}
.kanban .priority{white-space:nowrap;word-break:normal;overflow-wrap:normal;flex:0 0 auto}
.kanban .task-description{white-space:normal}
@media(max-width:1100px){.kanban{grid-template-columns:repeat(5,minmax(230px,1fr))}}
.kanban-column{background:#eef3f7;display:flex;flex-direction:column;min-height:420px}
.kanban-column>header{display:flex;justify-content:space-between;align-items:center;padding:.75rem .9rem;font-size:.74rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#6b7985}
.count{background:#fff;border:1px solid var(--tt-line);border-radius:999px;min-width:1.5rem;text-align:center;font-size:.7rem;padding:0 .4rem;color:#5f6b75}
.kanban-dropzone{flex:1;padding:.2rem .6rem .8rem;display:flex;flex-direction:column;gap:.55rem;transition:background .15s}
.kanban-dropzone.over{background:#e1e8ee}
.drop-hint{border:1px dashed #c8d1d9;border-radius:.4rem;padding:1rem;text-align:center;color:#9aa5ad;font-size:.8rem}
.task-card{background:#fff;border:1px solid var(--tt-line);border-radius:.35rem;padding:.52rem .62rem;min-height:0;box-shadow:0 1px 2px rgba(30,50,70,.04);cursor:grab}
.task-card:hover{border-color:#c5ced6;box-shadow:0 4px 12px rgba(30,50,70,.07);transform:translateY(-1px)}.task-card:focus{outline:2px solid var(--tt-brand);outline-offset:1px}.task-card{cursor:pointer}.task-card.dragging{cursor:grabbing}
.task-card.dragging{opacity:.45}.task-card.saving{opacity:.7}.task-card .task-title{pointer-events:none}
.card-top,.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.card-bottom{margin-top:.5rem;font-size:.72rem;color:#8996a0}
.task-key{font-size:.7rem;font-weight:600;color:#7c8994;letter-spacing:.02em}
.task-title{display:block;margin:.3rem 0 .15rem;font-weight:500;color:var(--tt-text);text-decoration:none;font-size:.88rem}.task-title:hover{color:var(--tt-brand-dark);text-decoration:underline}
.task-description{margin:.2rem 0 0;font-size:.76rem;color:#8996a0}
.priority{font-size:.64rem;padding:.12rem .45rem;border-radius:3px;font-weight:600;background:#eef2f4;color:#73808a}
.p-highest{background:#fbe9e9;color:#ad3a3a}.p-high{background:#fdeee0;color:#b4621a}.p-medium{background:#fff4de;color:#8a5a00}.p-low{background:#e9f3fb;color:#397da8}.p-lowest{background:#eef2f4;color:#73808a}
.toast-msg{position:fixed;right:1.25rem;bottom:1.25rem;background:var(--tt-ink);color:#fff;padding:.7rem 1rem;border-radius:.4rem;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;z-index:2000;font-size:.85rem}
.toast-msg.show{opacity:1;transform:none}.toast-msg.bad{background:#ad3a3a}
/* task detail */
.task-detail{max-width:900px}
.task-facts{display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;color:#6b7985;font-size:.85rem;margin-top:1rem}.task-facts b{color:var(--tt-text);font-weight:500}
.comment{padding:.7rem 0;border-bottom:1px solid #edf0f2}.comment small{color:#9ba5ad;margin-left:.5rem}.comment p{margin:.25rem 0 0}
.activity-row{padding:.4rem 0;font-size:.82rem;color:#52606d;border-bottom:1px solid #f1f3f5}.activity-row small{display:block;color:#a0aab2;font-size:.7rem}
.table thead th{background:#fbfcfd;color:#98a3ab;font-size:.68rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em}

/* Hierarchical navigation and reports */
.hierarchy-node{padding:1rem 1.15rem}
.hierarchy-node>summary,.hierarchy-child>summary{display:flex;align-items:center;gap:.4rem;cursor:pointer;list-style:none;min-height:2rem}
.hierarchy-node>summary::-webkit-details-marker,.hierarchy-child>summary::-webkit-details-marker{display:none}
.hierarchy-node>summary:before,.hierarchy-child>summary:before{content:"▸";display:inline-block;color:var(--tt-muted);transition:transform .15s ease}
.hierarchy-node[open]>summary:before,.hierarchy-child[open]>summary:before{transform:rotate(90deg)}
.hierarchy-child{margin:.65rem 0 .65rem 1.1rem;padding:.7rem .9rem;border:1px solid var(--tt-line);border-radius:.5rem;background:#fff}
.hierarchy-content{padding:.7rem 0 0 1.1rem}
.subtask-line{padding:.45rem .7rem;border-left:2px solid var(--tt-line);margin:.35rem 0 .35rem 1rem}
.report-bar-row{display:grid;grid-template-columns:7rem minmax(3rem,1fr) 2rem;gap:.7rem;align-items:center;margin:.8rem 0;font-size:.86rem}
.report-track{height:.55rem;border-radius:2rem;background:#edf0f3;overflow:hidden}
.report-track span{display:block;height:100%;border-radius:2rem;background:var(--tt-brand)}
@media(max-width:767.98px){.hierarchy-child{margin-left:.3rem}.hierarchy-content{padding-left:.3rem}.report-bar-row{grid-template-columns:6rem minmax(2rem,1fr) 1.5rem;gap:.4rem}}

/* TaskForge dashboard refresh — coral brand (#ee6c4d) */
:root{--tt-brand:#ee6c4d;--tt-brand-dark:#d9573b;--tt-brand-darker:#b9442c;--tt-brand-pale:#fff0eb;--tt-brand-wash:#fff5f1;--bs-primary:#ee6c4d;--bs-primary-rgb:238,108,77;--bs-link-color:#d9573b;--bs-link-color-rgb:217,87,59;--bs-link-hover-color:#b9442c;--bs-link-hover-color-rgb:185,68,44;--bs-focus-ring-color:rgba(238,108,77,.24)}
.btn-primary{--bs-btn-bg:#ee6c4d;--bs-btn-border-color:#ee6c4d;--bs-btn-hover-bg:#d9573b;--bs-btn-hover-border-color:#d9573b;--bs-btn-active-bg:#b9442c;--bs-btn-active-border-color:#b9442c;--bs-btn-focus-shadow-rgb:238,108,77}
.btn-outline-primary{--bs-btn-color:#d9573b;--bs-btn-border-color:#ee6c4d;--bs-btn-hover-bg:#ee6c4d;--bs-btn-hover-border-color:#ee6c4d;--bs-btn-active-bg:#d9573b;--bs-btn-active-border-color:#d9573b;--bs-btn-focus-shadow-rgb:238,108,77}
.form-control:focus,.form-select:focus{border-color:#ee6c4d;box-shadow:0 0 0 .22rem rgba(238,108,77,.17)}.form-check-input:checked{background-color:#ee6c4d;border-color:#ee6c4d}
.brand-mark{background:linear-gradient(145deg,#f58a6f,#ee6c4d);box-shadow:0 4px 10px rgba(238,108,77,.22)}.sidebar-link.active{color:#b9442c;background:#fff0eb}.sidebar-link.active i{color:#ee6c4d}.sidebar-link:hover{background:#fff7f4}.avatar{background:#fff0eb;color:#b9442c}
.dashboard-heading{align-items:flex-end;margin-bottom:1.35rem}.dashboard-heading h1{font-size:1.8rem;font-weight:600;letter-spacing:-.04em;color:#202936;margin:.3rem 0}.dashboard-heading .muted{font-size:.92rem}.eyebrow{display:flex;align-items:center;gap:.45rem;color:#ee6c4d;font-size:.67rem;letter-spacing:.13em;font-weight:700}.eyebrow-dot{width:7px;height:7px;background:#ee6c4d;border-radius:50%;box-shadow:0 0 0 4px #fff0eb}.heading-actions{display:flex;gap:.55rem;flex-wrap:wrap}.heading-actions .btn{font-size:.82rem;padding:.62rem .85rem;border-radius:.55rem}
.dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.metric-card{position:relative;min-width:0;overflow:hidden;background:#fff;border:1px solid #e8ebef;border-radius:.85rem;padding:1.1rem 1.2rem 1.05rem;box-shadow:0 3px 12px rgba(35,48,62,.025);transition:transform .18s ease,box-shadow .18s ease}.metric-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(35,48,62,.07)}.metric-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.65rem}.metric-icon{display:grid;place-items:center;width:2.65rem;height:2.65rem;border-radius:.85rem;font-size:1.1rem}.metric-icon.blue{background:#eaf2ff;color:#4385f5}.metric-icon.green{background:#e5f8ef;color:#19a66a}.metric-icon.orange{background:#fff0e8;color:#ee6c4d}.metric-icon.red{background:#fff0ef;color:#e45c56}.metric-icon.purple{background:#f1eaff;color:#8a62db}.metric-icon.teal{background:#e3f8f6;color:#149e98}.metric-menu{color:#b0b8c1;font-size:1rem}.metric-label{font-size:.83rem;font-weight:500;color:#657181}.metric-value{font-size:2rem;line-height:1.2;font-weight:650;letter-spacing:-.05em;color:#202936;margin:.12rem 0 .25rem}.metric-note{font-size:.75rem;color:#8b96a3}.metric-accent{position:absolute;height:3px;bottom:0;left:1.2rem;right:1.2rem;border-radius:3px 3px 0 0;opacity:.75}.metric-accent.blue{background:#4385f5}.metric-accent.green{background:#19a66a}.metric-accent.orange{background:#ee6c4d}.metric-accent.red{background:#e45c56}.metric-accent.purple{background:#8a62db}.metric-accent.teal{background:#149e98}
.dashboard-main-grid,.dashboard-tables-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1rem}.dashboard-panel{padding:1.25rem 1.3rem;border-radius:.85rem;box-shadow:0 3px 12px rgba(35,48,62,.025);min-width:0}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}.panel-heading h2{font-size:1rem;color:#253143;margin:0 0 .2rem;font-weight:650}.panel-subtitle{font-size:.76rem;color:#98a2ae;margin:0}.subtle-link{font-size:.78rem;text-decoration:none;color:#d9573b;white-space:nowrap}.panel-chip,.table-count{font-size:.65rem;letter-spacing:.05em;font-weight:700;border-radius:999px;padding:.35rem .55rem;background:#fff0eb;color:#d9573b;white-space:nowrap}.table-count{background:#f4f6f8;color:#788493;letter-spacing:0;font-weight:600}
.progress-chart-layout{display:flex;align-items:center;justify-content:space-around;gap:1.5rem;padding:.45rem .2rem .75rem}.progress-donut{width:188px;height:188px;flex:0 0 188px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(#19b879 0 var(--done),#ee6c4d var(--done) var(--progress),#f4b183 var(--progress) var(--todo),#e9edf2 var(--todo) 100%);position:relative}.progress-donut:before{content:"";position:absolute;inset:12px;border-radius:50%;background:#fff}.donut-inner{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;line-height:1.3}.donut-inner strong{font-size:1.8rem;letter-spacing:-.04em;color:#253143}.donut-inner span{font-size:.72rem;color:#8994a2;margin-top:.2rem}.status-legend{flex:1;min-width:145px}.legend-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:.55rem;align-items:center;padding:.55rem 0;border-bottom:1px solid #f0f2f5;font-size:.78rem;color:#5f6b7b}.legend-row strong{font-size:.82rem;color:#263243}.legend-dot{width:8px;height:8px;border-radius:50%}.legend-dot.done{background:#19b879}.legend-dot.inprogress{background:#ee6c4d}.legend-dot.todo{background:#f4b183}.legend-dot.overdue{background:#e45c56}.legend-foot{display:flex;justify-content:space-between;gap:.5rem;margin-top:.7rem;color:#9aa3ae;font-size:.68rem}.chart-footnote{padding-top:.85rem;border-top:1px solid #f0f2f5;color:#98a2ae;font-size:.7rem}.workload-row{margin:1.05rem 0 1.25rem}.workload-label{display:flex;justify-content:space-between;gap:1rem;margin-bottom:.45rem;font-size:.79rem;color:#657181}.workload-label strong{color:#273243;font-weight:650}.workload-track{height:9px;border-radius:20px;background:#f0f2f5;overflow:hidden}.workload-track span{display:block;height:100%;border-radius:20px;min-width:0;transition:width .3s ease}.workload-track .todo{background:#f4b183}.workload-track .inprogress{background:#ee6c4d}.workload-track .done{background:#19b879}.workload-track .overdue{background:#e45c56}.workload-callout{display:flex;align-items:center;gap:.75rem;margin-top:1.3rem;padding:.8rem;border:1px solid #ffe4db;border-radius:.65rem;background:#fff8f5}.callout-icon{width:2.1rem;height:2.1rem;display:grid;place-items:center;border-radius:.65rem;background:#ffebe4;color:#ee6c4d}.workload-callout strong,.workload-callout small{display:block}.workload-callout strong{font-size:.78rem;color:#394555}.workload-callout small{font-size:.7rem;color:#929ca8;margin-top:.1rem}
.dashboard-table{font-size:.77rem;--bs-table-bg:transparent}.dashboard-table thead th{padding:.65rem .55rem;background:#f8f9fb;color:#8d98a5;font-size:.64rem;letter-spacing:.07em;border-bottom:1px solid #edf0f4;white-space:nowrap}.dashboard-table tbody td{padding:.75rem .55rem;border-bottom:1px solid #f0f2f5;color:#596678;vertical-align:middle}.dashboard-table tbody tr:last-child td{border-bottom:0}.table-task-link{display:block;color:#334155;text-decoration:none;font-size:.78rem;font-weight:600;max-width:240px}.table-task-link:hover{color:#d9573b;text-decoration:underline}.dashboard-table td small{display:block;margin-top:.16rem;font-size:.67rem;color:#9ba5b0}.date-cell{white-space:nowrap;color:#687587;font-variant-numeric:tabular-nums}.due-late{white-space:nowrap;color:#d94e4a;font-weight:650}.status-pill{display:inline-block;border-radius:999px;padding:.25rem .5rem;background:#fff0eb;color:#d9573b;font-size:.67rem;white-space:nowrap}.status-pill.done{background:#e5f8ef;color:#16895a}.status-pill.in-progress{background:#fff0eb;color:#d9573b}.status-pill.to-do,.status-pill.backlog{background:#fff4e9;color:#b76a2c}.table-empty{display:flex;min-height:145px;flex-direction:column;align-items:center;justify-content:center;gap:.3rem;text-align:center;color:#697586}.empty-check{display:grid;place-items:center;width:2rem;height:2rem;border-radius:50%;background:#e5f8ef;color:#19a66a;margin-bottom:.2rem}.table-empty strong{font-size:.8rem}.table-empty small{font-size:.7rem;color:#9aa4af}
@media(min-width:1200px){.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1050px){.dashboard-main-grid,.dashboard-tables-grid{grid-template-columns:1fr}.progress-chart-layout{justify-content:flex-start;gap:2rem}}@media(max-width:767.98px){.app-content{padding:1rem .85rem 2rem}.dashboard-heading{align-items:flex-start}.dashboard-heading h1{font-size:1.5rem}.heading-actions{width:100%}.heading-actions .btn{flex:1}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.metric-card{padding:.85rem}.metric-value{font-size:1.7rem}.metric-icon{width:2.25rem;height:2.25rem}.dashboard-panel{padding:1rem .85rem}.progress-chart-layout{gap:1rem}.progress-donut{width:135px;height:135px;flex-basis:135px}.progress-donut:before{inset:9px}.donut-inner strong{font-size:1.45rem}.status-legend{min-width:120px}.legend-row{font-size:.7rem;gap:.35rem}.legend-foot{flex-direction:column;gap:.1rem}.dashboard-table{min-width:540px}.dashboard-tables-grid .dashboard-panel:last-child .dashboard-table{min-width:420px}}@media(max-width:420px){.progress-chart-layout{flex-direction:column}.progress-donut{width:155px;height:155px;flex-basis:155px}.status-legend{width:100%}}

/* Page-by-page hierarchy drill-down */
.drill-row{display:flex;align-items:center;gap:14px;padding:15px 17px;margin:10px 0;border:1px solid var(--line,#dfe5ee);border-radius:10px;background:var(--panel,#fff);color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s}.drill-row:hover{border-color:#ee6c4d;box-shadow:0 4px 16px rgba(238,108,77,.10);color:inherit;transform:translateY(-1px)}.drill-icon{width:40px;height:40px;flex:0 0 40px;border-radius:10px;display:grid;place-items:center;background:rgba(238,108,77,.12);color:#ee6c4d}.drill-main{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.drill-main strong{font-weight:600}.drill-main small{color:var(--muted,#758195);font-size:.84rem}.drill-arrow{color:#ee6c4d;font-size:1rem;padding-left:8px}.drill-breadcrumb{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px;color:var(--muted,#758195);font-size:.92rem}.drill-breadcrumb a{color:#ee6c4d;text-decoration:none}.drill-breadcrumb a:hover{text-decoration:underline}.drill-breadcrumb strong{color:var(--text,#172033)}

.brand-logo{max-width:150px;max-height:34px;width:auto;height:auto;display:block}.branding-preview{display:flex;align-items:center;gap:12px}.branding-preview img{max-width:180px;max-height:60px;object-fit:contain;border:1px solid var(--tt-line);border-radius:6px;padding:5px;background:#fff}.branding-preview .favicon-preview{width:32px;height:32px;padding:3px}

/* Compact dashboard layout — inspired by modern task-management dashboards.
   Keeps the existing TaskForge colour palette; reduces card density and visual weight. */
.dashboard-metrics{grid-template-columns:repeat(6,minmax(0,1fr));gap:.7rem}
.metric-card{border-radius:.7rem;padding:.78rem .85rem .72rem;box-shadow:0 2px 8px rgba(35,48,62,.025)}
.metric-card:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(35,48,62,.06)}
.metric-top{margin-bottom:.45rem}
.metric-icon{width:2.05rem;height:2.05rem;border-radius:.65rem;font-size:.85rem}
.metric-menu{font-size:.8rem}
.metric-label{font-size:.72rem}
.metric-value{font-size:1.45rem;margin:.08rem 0 .16rem}
.metric-note{font-size:.66rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.metric-accent{height:2px;left:.85rem;right:.85rem}
.dashboard-main-grid,.dashboard-tables-grid{gap:.75rem}
.dashboard-panel{padding:1rem 1.05rem;border-radius:.7rem;box-shadow:0 2px 8px rgba(35,48,62,.025)}
.panel-heading{margin-bottom:.85rem}
.panel-heading h2{font-size:.9rem}
.panel-subtitle{font-size:.69rem}
.panel-chip,.table-count{font-size:.58rem;padding:.28rem .45rem}
.progress-chart-layout{gap:1rem;padding:.25rem .1rem .55rem}
.progress-donut{width:150px;height:150px;flex-basis:150px}
.progress-donut:before{inset:10px}
.donut-inner strong{font-size:1.5rem}
.donut-inner span{font-size:.65rem}
.legend-row{padding:.42rem 0;font-size:.7rem}
.legend-row strong{font-size:.74rem}
.legend-foot{margin-top:.5rem;font-size:.62rem}
.chart-footnote{padding-top:.65rem;font-size:.62rem}
.workload-row{margin:.72rem 0 .85rem}
.workload-label{font-size:.7rem;margin-bottom:.35rem}
.workload-track{height:7px}
.workload-callout{margin-top:.9rem;padding:.65rem;gap:.55rem}
.callout-icon{width:1.8rem;height:1.8rem;border-radius:.55rem}
.workload-callout strong{font-size:.7rem}
.workload-callout small{font-size:.63rem}
.dashboard-table{font-size:.7rem}
.dashboard-table thead th{padding:.52rem .45rem;font-size:.58rem}
.dashboard-table tbody td{padding:.58rem .45rem}
.table-task-link{font-size:.7rem}
.dashboard-table td small{font-size:.61rem}
.status-pill{padding:.2rem .4rem;font-size:.6rem}
.table-empty{min-height:115px}

@media (min-width:1200px){.dashboard-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (min-width:900px) and (max-width:1199.98px){.dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:768px) and (max-width:899.98px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767.98px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.metric-card{padding:.72rem}.metric-icon{width:1.95rem;height:1.95rem}.metric-value{font-size:1.35rem}.metric-note{font-size:.62rem}.dashboard-panel{padding:.85rem .8rem}}
@media (max-width:420px){.dashboard-metrics{grid-template-columns:1fr 1fr}.metric-card{padding:.65rem}.metric-label{font-size:.67rem}.metric-value{font-size:1.25rem}}

/* Command Center dashboard — task-first layout. Existing TaskForge colours are preserved. */
.dashboard-summary-bar{display:flex;align-items:center;gap:0;min-height:66px;padding:.35rem .45rem;margin:0 0 1rem;background:#fff;border:1px solid #e8ebef;border-radius:.8rem;box-shadow:0 2px 9px rgba(35,48,62,.025);overflow:hidden}
.dashboard-summary-item{display:flex;align-items:center;gap:.58rem;padding:.45rem .9rem;border-right:1px solid #edf0f4;min-width:0}
.summary-icon{width:2rem;height:2rem;flex:0 0 2rem;display:grid;place-items:center;border-radius:.6rem;font-size:.78rem}
.summary-icon.blue{background:#eaf2ff;color:#4385f5}.summary-icon.green{background:#e5f8ef;color:#19a66a}.summary-icon.orange{background:#fff0e8;color:#ee6c4d}.summary-icon.red{background:#fff0ef;color:#e45c56}.summary-icon.purple{background:#f1eaff;color:#8a62db}.summary-icon.teal{background:#e3f8f6;color:#149e98}
.summary-copy{display:flex;flex-direction:column;line-height:1.1;white-space:nowrap}.summary-copy strong{font-size:1rem;line-height:1.1;color:#202936;font-weight:650}.summary-copy small{font-size:.62rem;color:#8994a2;margin-top:.18rem}.dashboard-summary-spacer{flex:1;min-width:.5rem}.dashboard-summary-link{display:inline-flex;align-items:center;gap:.35rem;margin-right:.35rem;padding:.48rem .7rem;border:1px solid #e6eaf0;border-radius:.52rem;color:#667384;text-decoration:none;font-size:.69rem;font-weight:600;white-space:nowrap}.dashboard-summary-link:hover{color:#d9573b;border-color:#f2d3ca}.dashboard-summary-link.primary{background:#ee6c4d;border-color:#ee6c4d;color:#fff}.dashboard-summary-link.primary:hover{background:#e35f42;color:#fff}
.dashboard-command-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr);gap:.75rem}.dashboard-command-grid.secondary{grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr)}
.dashboard-command-grid .dashboard-panel{padding:1rem 1.05rem;border-radius:.72rem;box-shadow:0 2px 9px rgba(35,48,62,.025)}.command-attention .dashboard-table tbody td{padding:.68rem .5rem}.command-attention .table-task-link{max-width:330px}.command-progress .progress-chart-layout{padding:.15rem 0 .3rem;justify-content:flex-start;gap:1.25rem}.command-progress .progress-donut{width:145px;height:145px;flex-basis:145px}.command-progress .progress-donut:before{inset:10px}.command-progress .legend-row{padding:.38rem 0}.command-deadlines .dashboard-table tbody td{padding:.64rem .5rem}.command-workload .workload-row{margin:.72rem 0 .9rem}.compact-empty{min-height:100px}
@media(max-width:1050px){.dashboard-summary-bar{flex-wrap:wrap;padding:.5rem}.dashboard-summary-item{flex:1 1 18%;border-right:0}.dashboard-summary-spacer{display:none}.dashboard-summary-link{margin-top:.15rem}.dashboard-command-grid,.dashboard-command-grid.secondary{grid-template-columns:1fr}}
@media(max-width:767.98px){.dashboard-summary-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.1rem;padding:.35rem}.dashboard-summary-item{padding:.48rem .5rem;border-bottom:1px solid #edf0f4}.dashboard-summary-link{justify-content:center;margin:.25rem}.dashboard-summary-link.primary{grid-column:span 1}.dashboard-command-grid .dashboard-panel{padding:.85rem .8rem}.command-progress .progress-chart-layout{gap:.75rem}.command-progress .progress-donut{width:125px;height:125px;flex-basis:125px}.command-attention .dashboard-table{min-width:650px}.command-deadlines .dashboard-table{min-width:560px}.dashboard-summary-item:nth-child(5){grid-column:span 2}}

/* My Tasks / Subtasks navigation */
.task-list-row { cursor: pointer; transition: background-color .15s ease, transform .08s ease; }
.task-list-row:hover { background: rgba(13,110,253,.035); }
.task-list-row:focus { outline: 2px solid rgba(13,110,253,.22); outline-offset: -2px; }
.task-subtask-list { display:flex; flex-direction:column; gap:8px; }
.task-subtask-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 16px; border:1px solid var(--border-color,#e6e9ef); border-radius:10px; text-decoration:none; color:inherit; }
.task-subtask-row:hover { background:rgba(13,110,253,.035); }
.task-subtask-row small { display:block; margin-top:4px; color:var(--muted,#6c757d); }
.empty-state.compact { padding:32px 16px; text-align:center; }

/* Employee My Tasks / timer */
.my-task-table th:last-child,.my-task-table td:last-child{width:120px}.my-task-table .timer-button{min-width:82px;white-space:nowrap}.active-timer-banner{display:flex;align-items:center;gap:.75rem;background:#fff8f5;border:1px solid #ffd8ca;border-radius:.7rem;padding:.8rem 1rem;margin-bottom:1rem}.active-timer-icon{width:2rem;height:2rem;border-radius:50%;display:grid;place-items:center;background:#ffe9e1;color:var(--tt-brand);flex:0 0 auto}.active-timer-banner strong{display:block;font-size:.86rem}.active-timer-banner small{display:block;color:var(--tt-muted);font-size:.72rem;margin-top:.12rem}.task-list-row{cursor:pointer}.task-list-row:hover{background:rgba(13,110,253,.035)}.task-list-row:focus{outline:2px solid rgba(13,110,253,.22);outline-offset:-2px}.live-timer{font-variant-numeric:tabular-nums;font-weight:600}

/* ================= Staff dashboard (Trax-style) + Approvals ================= */
.sidebar-badge{margin-left:auto;background:#ee6c4d;color:#fff;font-size:.65rem;font-weight:700;line-height:1;padding:.22rem .45rem;border-radius:999px}
.tx-head,.ap-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1.1rem}
.tx-head h1,.ap-head h1{font-size:1.7rem;font-weight:600;letter-spacing:-.03em;color:#202936;margin:.25rem 0}
.tx-controls{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.tx-controls .form-select{width:auto;min-width:8rem}
.tx-chip{display:inline-flex;align-items:center;gap:.4rem;font-size:.78rem;font-weight:600;padding:.4rem .7rem;border-radius:999px;background:#f1f3f5;color:#5c6b75;text-decoration:none}.tx-chip.warn{background:#fff3da;color:#9a6700}
.tx-range{display:inline-flex;align-items:center;gap:.35rem;background:#fff;border:1px solid var(--tt-line);border-radius:.5rem;padding:.2rem .5rem;font-size:.8rem}.tx-range a{color:#7d8a96;padding:.2rem .35rem;text-decoration:none}.tx-range a:hover{color:#ee6c4d}.tx-range input{border:0;background:transparent;font:inherit;font-size:.8rem;color:var(--tt-text);width:7.6rem}
.tx-presets{display:inline-flex;gap:.6rem;font-size:.76rem}.tx-presets a{text-decoration:none;color:#7d8a96}.tx-presets a:hover{color:#ee6c4d}
.tx-card{background:#fff;border:1px solid var(--tt-line);border-radius:.5rem;box-shadow:0 1px 2px rgba(30,50,70,.03);min-width:0}
.tx-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#e8ebef;border:1px solid var(--tt-line);border-radius:.5rem .5rem 0 0;overflow:hidden}
.tx-kpis>div{background:#f2f4f6;padding:.85rem 1.1rem;min-width:0}.tx-kpis small,.tx-team-stats small,.ap-stats small,.ap-effort small{display:block;font-size:.68rem;color:#8a96a2;letter-spacing:.02em}
.tx-kpis strong{display:block;font-size:1.35rem;font-weight:500;color:#2c3640;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-chart-card{border-top:0;border-radius:0 0 .5rem .5rem;padding:1rem 1.1rem 1.2rem;margin-bottom:1.5rem}
.tx-chart{width:100%;height:auto;display:block}.tx-grid{stroke:#e9edf1;stroke-width:1}.tx-axis{font-size:11px;fill:#8a96a2}.tx-bar-total{font-size:11px;fill:#52606d}
.tx-donut-row{display:flex;align-items:center;gap:2rem;margin-top:1.4rem;flex-wrap:wrap}.tx-donut-wrap{flex:0 0 230px;max-width:230px;margin:0 auto}.tx-donut{width:100%;height:auto}.tx-donut-total{font-size:25px;font-weight:500;fill:#2c3640}
.tx-legend{flex:1 1 380px;min-width:0}.tx-legend-row{display:grid;grid-template-columns:minmax(0,1fr) 4.2rem minmax(5rem,32%) 4.4rem;gap:.8rem;align-items:center;padding:.38rem 0;font-size:.8rem}
.tx-legend-name{text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-legend-name small{color:#8a96a2}.tx-legend-time{font-variant-numeric:tabular-nums}.tx-legend-pct{text-align:right;color:#8a96a2;font-size:.74rem;font-variant-numeric:tabular-nums}
.tx-legend-bar{height:.55rem;background:#eef1f4;border-radius:2px;overflow:hidden;display:block}.tx-legend-bar i{display:block;height:100%}
.tx-empty{display:flex;flex-direction:column;align-items:center;gap:.3rem;padding:3rem 1rem;text-align:center;color:#8a96a2}.tx-empty i{font-size:2rem;color:#c9d1d8}.tx-empty strong{color:#4b5762}
.tx-title{font-size:.78rem;font-weight:600;color:#56636d;margin:1.4rem 0 .6rem;letter-spacing:.02em}
.tx-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.tx-clients{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}
.tx-team,.tx-clients .tx-card{padding:1rem 1.1rem}.tx-team header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.7rem}.tx-team header small{font-size:.74rem;color:#9aa5af}.tx-team header small.on,.on{color:#1769c2}
.tx-team-stats{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin:.45rem 0 .8rem}.tx-team-stats strong{font-size:1.25rem;font-weight:500;color:#2c3640;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tx-mini{display:grid;grid-template-columns:minmax(0,1fr) 3.6rem 38% 3.6rem;gap:.6rem;align-items:center;font-size:.78rem;padding:.28rem 0}.tx-mini span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-mini b{font-weight:400;text-align:right;font-variant-numeric:tabular-nums}.tx-mini em{font-style:normal;text-align:right;color:#8a96a2;font-size:.7rem}.tx-mini i{height:.5rem;background:#eef1f4;border-radius:2px;overflow:hidden;display:block}.tx-mini u{display:block;height:100%}
.tx-team-people{border-top:1px solid #eef1f4;margin-top:.8rem;padding-top:.6rem}.tx-team-people>div{display:flex;align-items:center;gap:.6rem;padding:.3rem 0;font-size:.8rem}.tx-team-people span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-team-people b{font-weight:400;color:#6a7783;font-variant-numeric:tabular-nums}
.tx-more{display:block;text-align:center;border-top:1px solid #eef1f4;margin:.7rem -1.1rem -1rem;padding:.65rem;font-size:.76rem;text-decoration:none;color:#5c6b75;background:#fafbfc;border-radius:0 0 .5rem .5rem}.tx-more:hover{color:#ee6c4d}
.tx-avatar{display:inline-grid;place-items:center;width:1.9rem;height:1.9rem;border-radius:50%;color:#fff;font-size:.68rem;font-weight:600;flex:0 0 auto}
.tx-live{display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:#e5383b;margin-right:.35rem;vertical-align:middle;box-shadow:0 0 0 0 rgba(229,56,59,.5);animation:txpulse 1.8s infinite}.tx-kpis .tx-live{width:.6rem;height:.6rem}
@keyframes txpulse{70%{box-shadow:0 0 0 6px rgba(229,56,59,0)}100%{box-shadow:0 0 0 0 rgba(229,56,59,0)}}@media(prefers-reduced-motion:reduce){.tx-live{animation:none}}
.tx-people,.tx-notes{margin-top:1.5rem;overflow:hidden}.tx-people-head{display:flex;align-items:center;gap:.8rem;padding:.75rem 1.1rem;background:#f2f4f6;border-bottom:1px solid var(--tt-line);font-size:.82rem}
.tx-people .table thead th{font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;color:#8a96a2;font-weight:600;background:#fafbfc;padding:.6rem 1.1rem}.tx-people .table td{padding:.7rem 1.1rem;font-size:.82rem}
.tx-person{display:flex;align-items:center;gap:.65rem}.tx-person>span:not(.tx-avatar){display:flex;flex-direction:column;line-height:1.25}.tx-person small{color:#8a96a2;font-size:.7rem}
.tx-act{display:inline-block;vertical-align:middle;max-width:55%}.tx-act b{display:block;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-act small{color:#8a96a2;font-size:.7rem}.tx-act-time{display:inline-flex;gap:.6rem;align-items:center;float:right;font-size:.76rem;color:#6a7783}
.tx-total{display:flex;align-items:center;gap:.9rem}.tx-total b{font-weight:500;width:3.6rem;font-variant-numeric:tabular-nums}.tx-stack{flex:1;height:.8rem;background:#eef1f4;border-radius:2px;overflow:hidden;display:block}.tx-stack>span{display:flex;height:100%;min-width:0}.tx-stack i{display:block;height:100%}
.tx-note{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 1.1rem;font-size:.82rem;color:var(--tt-text);text-decoration:none;border-bottom:1px solid #f0f2f4}.tx-note:last-child{border:0}.tx-note:hover{background:#fafbfc}.tx-note time{color:#8a96a2;font-size:.74rem;white-space:nowrap}
/* approvals */
.ap-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;max-width:760px;margin-bottom:1rem}.ap-stats>div{background:#fff;border:1px solid var(--tt-line);border-radius:.5rem;padding:.8rem 1rem}.ap-stats strong{display:block;font-size:1.6rem;font-weight:500;line-height:1.2;color:#2c3640}.ap-stats span{font-size:.72rem;color:#8a96a2}
.ap-tabs{display:flex;gap:.45rem;flex-wrap:wrap;margin-bottom:.8rem}.ap-tabs a{display:inline-flex;align-items:center;gap:.4rem;padding:.38rem .85rem;border-radius:999px;background:#eef1f3;color:#5c6b75;font-size:.82rem;text-decoration:none}.ap-tabs a span{font-size:.7rem;background:#fff3da;color:#9a6700;border-radius:999px;padding:.05rem .45rem;font-weight:600}.ap-tabs a.on{background:#475569;color:#fff}.ap-tabs a.on span{background:rgba(255,255,255,.22);color:#fff}
.ap-filter{display:flex;gap:.5rem;margin-bottom:1rem;max-width:760px}.ap-filter input{flex:1}.ap-filter select{width:auto;min-width:9rem}
.ap-queue{padding:0;overflow:hidden}.ap-queue-head{padding:.7rem 1.1rem;border-bottom:1px solid var(--tt-line);font-size:.85rem}.ap-table thead th{font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;color:#8a96a2;font-weight:600;background:#fafbfc;padding:.6rem .9rem;white-space:nowrap}.ap-table td{padding:.7rem .9rem;font-size:.82rem}.ap-check{width:2rem}
.ap-task{font-weight:500;color:#2c3640;text-decoration:none}.ap-task:hover{color:#ee6c4d}.ap-late{color:#c0392b;font-size:.7rem}.ap-actions{white-space:nowrap}.ap-actions .btn{margin-left:.25rem}.ap-actions .btn-dark,.ap-decision .btn-dark{background:#475569;border-color:#475569}.ap-actions .btn-dark:hover,.ap-decision .btn-dark:hover{background:#3a4656;border-color:#3a4656}
.ap-pill{display:inline-block;font-size:.7rem;font-weight:600;padding:.2rem .6rem;border-radius:999px}.ap-pill.pending{background:#fff3da;color:#9a6700}.ap-pill.approved{background:#e3f6ec;color:#17794d}.ap-pill.rejected{background:#fde9e8;color:#b3322b}
.ap-pager{display:flex;gap:.5rem;margin-top:1rem}
.ap-back{display:inline-block;margin-bottom:.8rem;font-size:.85rem;text-decoration:none}
.ap-detail{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:1rem;align-items:start}.ap-main{display:grid;gap:1rem;min-width:0}.ap-side{display:grid;gap:1rem;position:sticky;top:4.5rem}
.ap-crumb{font-size:.76rem;color:#8a96a2;margin-bottom:.3rem}.ap-detail h1{font-size:1.35rem}.ap-desc{white-space:normal;font-size:.92rem}.ap-sub{font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;color:#8a96a2;margin:1.1rem 0 .5rem;font-weight:600}
.ap-evidence{display:grid;gap:.6rem}.ap-ev-file img{max-width:100%;max-height:320px;border:1px solid var(--tt-line);border-radius:.4rem;display:block;margin-bottom:.4rem}.ap-ev-link{display:flex;align-items:center;gap:.55rem;padding:.55rem .75rem;border:1px solid var(--tt-line);border-radius:.4rem;text-decoration:none;font-size:.82rem;overflow:hidden}.ap-ev-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ap-effort{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}.ap-effort strong{font-size:1.2rem;font-weight:500;color:#2c3640}.ap-meter{height:.5rem;background:#eef1f4;border-radius:999px;overflow:hidden;margin-top:.8rem}.ap-meter i{display:block;height:100%;background:#2e9e6b}.ap-meter i.over{background:#e5603f}
.ap-line{display:flex;justify-content:space-between;padding:.45rem 0;border-bottom:1px solid #f0f2f4;font-size:.85rem}.ap-hist{padding:.7rem 0;border-bottom:1px solid #f0f2f4;font-size:.85rem}.ap-hist:last-child{border:0}
.ap-facts{display:grid;grid-template-columns:7rem 1fr;gap:.55rem .6rem;margin:0;font-size:.82rem}.ap-facts dt{color:#8a96a2;font-weight:400}.ap-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
@media(max-width:991.98px){.tx-grid-2{grid-template-columns:1fr}.ap-detail{grid-template-columns:1fr}.ap-side{position:static;order:-1}.tx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.tx-act{max-width:100%;display:block}.tx-act-time{float:none;margin-top:.2rem}.ap-effort{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:575.98px){.ap-stats{grid-template-columns:1fr}.tx-legend-row{grid-template-columns:minmax(0,1fr) 3.6rem 3.8rem}.tx-legend-bar{display:none}.ap-filter{flex-wrap:wrap}}
/* date-range picker */
.tx-range{padding:.15rem .35rem}.drp{position:relative;display:inline-block}
.drp-btn{display:inline-flex;align-items:center;gap:.55rem;background:#fff;border:1px solid transparent;border-radius:.4rem;padding:.3rem .55rem;font:inherit;font-size:.82rem;color:var(--tt-text);cursor:pointer}.drp-btn:hover,.drp-btn[aria-expanded=true]{border-color:#475569}.drp-btn i{color:#7d8a96}.drp-caret{font-size:.65rem}
.drp-pop{position:absolute;right:0;top:calc(100% + .5rem);z-index:1050;display:flex;background:#fff;border:1px solid var(--tt-line);border-radius:.5rem;box-shadow:0 12px 32px rgba(30,50,70,.16)}.drp-pop[hidden]{display:none}
.drp-presets{display:flex;flex-direction:column;min-width:10.5rem;padding:.4rem 0;border-right:1px solid var(--tt-line)}.drp-presets button{border:0;background:none;text-align:left;padding:.55rem 1.1rem;font:inherit;font-size:.82rem;color:#52606d;cursor:pointer}.drp-presets button:hover{background:#f4f6f8}.drp-presets button.on{background:#ee6c4d;color:#fff}
.drp-cal{padding:.9rem 1.1rem 1rem;position:relative}.drp-nav{position:absolute;left:1.1rem;right:1.1rem;top:.9rem;display:flex;justify-content:space-between;pointer-events:none}.drp-nav button{pointer-events:auto;border:0;background:none;color:#52606d;padding:.1rem .45rem;cursor:pointer}.drp-nav button:hover{color:#ee6c4d}
.drp-months{display:flex;gap:1.6rem}.drp-title{text-align:center;font-weight:600;font-size:.82rem;margin-bottom:.6rem;color:#3a4550}
.drp-grid{display:grid;grid-template-columns:repeat(7,2.15rem);row-gap:2px}.drp-dow{text-align:center;font-size:.68rem;font-weight:600;color:#7d8a96;padding:.3rem 0}
.drp-day{border:0;background:none;height:2rem;font:inherit;font-size:.78rem;color:#3a4550;cursor:pointer;border-radius:0;position:relative}.drp-day:hover{background:#eef1f4}
.drp-day.in{background:#fde3dc;color:#7a2a18}.drp-day.start,.drp-day.end{background:#ee6c4d;color:#fff;font-weight:600}.drp-day.start{border-radius:.35rem 0 0 .35rem}.drp-day.end{border-radius:0 .35rem .35rem 0}.drp-day.start.end{border-radius:.35rem}
.drp-day.today::after{content:"";position:absolute;left:50%;bottom:3px;width:3px;height:3px;border-radius:50%;background:currentColor;transform:translateX(-50%)}
.drp-hint{margin-top:.7rem;text-align:center}
@media(max-width:991.98px){.drp-pop{right:auto;left:0;flex-direction:column;max-width:calc(100vw - 2rem)}.drp-presets{flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--tt-line);padding:.4rem}.drp-presets button{padding:.4rem .7rem}.drp-months{flex-direction:column;gap:1rem}.drp-months .drp-month:nth-child(2){display:none}}
/* account menu (top-right) */
.acct{margin-left:auto}.acct-btn{display:flex;align-items:center;gap:.55rem;border:1px solid transparent;background:none;border-radius:999px;padding:.2rem .6rem .2rem .25rem;font:inherit;font-size:.84rem;color:var(--tt-text);cursor:pointer}.acct-btn:hover,.acct-btn[aria-expanded=true]{background:#f4f6f8;border-color:var(--tt-line)}
.acct-avatar{width:2.2rem;height:2.2rem;border-radius:50%;object-fit:cover;flex:0 0 auto;display:inline-grid;place-items:center}.acct-initials{background:#fff0eb;color:#b9442c;font-weight:600;font-size:.76rem}.acct-avatar.lg{width:2.8rem;height:2.8rem}.acct-avatar.xl{width:4.5rem;height:4.5rem;font-size:1.2rem}
.acct-caret{font-size:.6rem;color:#8a96a2}.acct-menu{min-width:15rem;padding:.4rem;border-color:var(--tt-line);box-shadow:0 12px 32px rgba(30,50,70,.14)}.acct-head{display:flex;gap:.7rem;align-items:center;padding:.5rem .6rem}.acct-head span{display:flex;flex-direction:column;min-width:0;line-height:1.3}.acct-head small{color:#8a96a2;overflow:hidden;text-overflow:ellipsis}.acct-head em{font-style:normal;font-size:.7rem;color:#b9442c}
.acct-menu .dropdown-item{display:flex;align-items:center;gap:.65rem;border-radius:.35rem;font-size:.86rem;padding:.5rem .6rem}.acct-menu .dropdown-item i{width:1rem;color:#7d8a96}.acct-menu .dropdown-item:active{background:#fff0eb;color:#b9442c}
@media(max-width:767.98px){.acct-name,.acct-caret{display:none}.acct-btn{padding:.2rem}}
/* Popup forms (modals) */
.tf-modal .modal-content{background:#fff;border:1px solid var(--tt-line);border-radius:.5rem;box-shadow:0 20px 50px rgba(30,50,70,.22)}
.tf-modal .modal-header{border-bottom:1px solid var(--tt-line);padding:1rem 1.25rem}.tf-modal .modal-title{font-size:1.05rem;font-weight:600;margin:0}
.tf-modal .modal-body{padding:1.15rem 1.25rem}.tf-modal .modal-footer{border-top:1px solid var(--tt-line);padding:.85rem 1.25rem;gap:.5rem}
.page-heading .page-actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-left:auto}
.row-avatar{display:flex;align-items:center;gap:.75rem}.row-avatar .acct-avatar{width:2.4rem;height:2.4rem}
.photo-preview .acct-avatar{border:1px solid var(--tt-line)}
/* Project colours */
.project-icon[style]{background:color-mix(in srgb,var(--pc) 16%,#fff);color:var(--pc)}
.pk{color:var(--pc);font-weight:600}
.pk::before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:var(--pc);margin-right:.35rem;vertical-align:.05em}
.task-key .pk::before{width:.42rem;height:.42rem}
.color-field{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.color-field .form-control-color{width:3rem;padding:.2rem;flex:0 0 auto}
.swatch{width:1.5rem;height:1.5rem;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px var(--tt-line);cursor:pointer;padding:0}.swatch:hover{transform:scale(1.12)}
/* Dashboard: per-person workload + timer buttons */
.wl-row{display:grid;grid-template-columns:2rem 1fr auto;gap:.6rem;align-items:center;margin-bottom:.8rem}
.wl-name{font-size:.82rem;display:flex;justify-content:space-between;gap:.5rem;margin-bottom:.25rem}.wl-name small{color:#8a96a2}
.wl-track{height:.5rem;background:#eef1f4;border-radius:99px;overflow:hidden;display:flex}.wl-track span{display:block;height:100%}
.wl-track .p{background:#ef6c4d}.wl-track .t{background:#f2a67f}.wl-track .o{background:#c0392b}
.wl-count{font-weight:600;font-size:.9rem;min-width:1.5rem;text-align:right}.wl-row.me .wl-name b::after{content:" (you)";font-weight:400;color:#8a96a2}
.wl-legend{display:flex;gap:1rem;font-size:.72rem;color:#8a96a2;margin-top:.4rem;flex-wrap:wrap}.wl-legend i{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;margin-right:.3rem}
.btn-timer{padding:.18rem .55rem;font-size:.74rem;white-space:nowrap}
/* Employee board */
.js-submit{display:none}.task-card[data-status="In Progress"] .js-submit{display:inline-block}
.task-card.locked{cursor:pointer;opacity:.92;background:#fafbfc}
.card-actions{display:inline-flex;gap:.35rem;align-items:center}
.card-flag{font-size:.72rem;border-radius:.3rem;padding:.25rem .45rem;margin:.35rem 0}.card-flag.bad{background:#fdecec;color:#b02a37}.card-flag.wait{background:#fff4e0;color:#9a6400}.card-flag.ok{background:#e6f6ee;color:#157347}
.employee-board{grid-template-columns:repeat(4,minmax(240px,1fr))}

/* Clickable dashboard KPI cards */
.dashboard-summary-clickable{color:inherit;text-decoration:none;border-radius:.65rem;transition:background .15s ease,transform .15s ease}.dashboard-summary-clickable:hover,.dashboard-summary-clickable:focus-visible{color:inherit;text-decoration:none;background:#f7f9fc;transform:translateY(-1px);outline:2px solid #dce5f0;outline-offset:1px}

/* Dashboard header: heading on the left, filters (approvals chip, team, date range) on the right */
.tx-head{flex-wrap:nowrap;align-items:flex-end}.tx-head>div:first-child{flex:1 1 auto;min-width:0}.tx-head .tx-controls{flex:0 0 auto;margin-left:auto;justify-content:flex-end}
@media(max-width:1100px){.tx-head{flex-wrap:wrap}.tx-head .tx-controls{flex:1 1 100%;justify-content:flex-start;margin-left:0}}
/* Task priority pills (dashboard tables) */
.prio-pill{display:inline-block;font-size:.7rem;font-weight:600;padding:.14rem .5rem;border-radius:999px;background:#eef2f4;color:#73808a}
.prio-pill.high,.prio-pill.critical,.prio-pill.urgent{background:#fde8e4;color:#c0392b}.prio-pill.medium{background:#fff3e0;color:#b26a00}.prio-pill.low{background:#e8f5ee;color:#2e7d57}
.dashboard-command-grid.secondary.single{grid-template-columns:1fr}
.tx-workload{padding:1.1rem 1.25rem;margin-bottom:1rem}.tx-workload .panel-heading{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start}
.project-item{display:flex;align-items:center;gap:.8rem;border-bottom:1px solid #edf0f2}.project-item:last-child{border-bottom:0}.project-item .project-row{flex:1 1 auto;min-width:0;border-bottom:0}
.project-actions{display:flex;gap:.4rem;flex:0 0 auto}.project-actions form{margin:0}

/* Workload column inside the People table */
.wl-cell{min-width:170px;max-width:230px}.wl-top{display:flex;align-items:baseline;gap:.35rem;margin-bottom:.3rem}.wl-top b{font-size:.84rem}.wl-top small{color:#8a96a2}
.wl-free{margin-left:auto;font-size:.72rem;font-weight:600;color:#2e7d57}.wl-free.full{color:#c0392b}.wl-meta{display:block;margin-top:.3rem;color:#8a96a2;font-size:.7rem}.wl-over{color:#c0392b;font-weight:600}

/* Task dashboard */
.td-kpis{grid-template-columns:repeat(5,minmax(0,1fr));border-radius:.5rem;margin-bottom:1rem}.td-kpi-sub{font-size:.85rem;color:#8a96a2;font-weight:400}.td-bad{color:#c0392b!important}
.td-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:1rem;align-items:start;margin-bottom:1rem}.td-grid.even{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1.5rem}.td-col{display:grid;gap:1rem}
.td-card{padding:1.1rem 1.25rem}.td-card h3{font-size:1rem;font-weight:600;margin:0 0 .9rem;color:#232d37}
.td-chart{width:100%;height:auto;display:block}.td-sub{font-size:10px;fill:#8a96a2}.td-note{font-size:.72rem;color:#8a96a2;margin:.4rem 0 0}
.td-status{display:flex;align-items:center;gap:1.5rem;flex-wrap:wrap}.td-status .tx-donut{width:190px;height:190px;flex:0 0 190px}.td-legend{display:grid;gap:.6rem;font-size:.88rem}.td-legend i{display:inline-block;width:.7rem;height:.7rem;border-radius:2px;margin-right:.5rem}
.td-proj{margin-bottom:1rem}.td-proj:last-child{margin-bottom:0}.td-proj-top{display:flex;justify-content:space-between;gap:.75rem;font-size:.85rem;margin-bottom:.35rem;flex-wrap:wrap}.td-proj-top span{color:#6b7782;font-size:.8rem}
.td-bar{height:.55rem;background:#eef1f4;border-radius:99px;overflow:hidden}.td-bar>i{display:block;height:100%;border-radius:99px}.td-bar.sm{height:.45rem;max-width:210px}.td-bar.sm>span{display:flex;height:100%;overflow:hidden;border-radius:99px}.td-bar.sm>span>i{display:block;height:100%}
.td-done{display:flex;align-items:baseline;gap:.4rem;margin-bottom:.3rem}.td-done small{color:#8a96a2}
.td-row{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-top:1px solid #edf0f2;font-size:.85rem}.td-row:first-of-type{border-top:0;padding-top:0}.td-row>span{color:#8a96a2;white-space:nowrap}.td-row small{display:block;color:#8a96a2;margin-top:.15rem}
.td-dot{display:inline-block;width:.55rem;height:.55rem;border-radius:50%;margin-right:.45rem}
@media(max-width:991.98px){.td-grid,.td-grid.even{grid-template-columns:1fr}.td-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

.td-kpis>a{display:block;background:#f2f4f6;padding:.85rem 1.1rem;min-width:0;color:inherit;text-decoration:none;transition:background .15s}.td-kpis>a:hover,.td-kpis>a:focus-visible{background:#e9edf1}.td-kpis>a small{display:block;font-size:.68rem;color:#8a96a2}.td-kpis>a strong{display:block;font-size:1.35rem;font-weight:500;color:#2c3640;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.td-legend-row{display:flex;flex-wrap:wrap;gap:.35rem 1rem;font-size:.74rem;color:#6b7782;margin-top:.5rem}.td-legend-row i{display:inline-block;width:.6rem;height:.6rem;border-radius:2px;margin-right:.35rem}
.td-pager{display:flex;justify-content:space-between;align-items:center;padding:.7rem 1.1rem;border-top:1px solid var(--tt-line)}

.td-head{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;margin-bottom:.9rem}.td-head h3{margin:0!important}.td-viewall{font-size:.78rem;color:#c2492c;text-decoration:none;white-space:nowrap}.td-viewall:hover{text-decoration:underline}
.td-more{display:block;padding:.7rem 1.1rem;border-top:1px solid var(--tt-line);font-size:.8rem;color:#c2492c;text-decoration:none}.td-more:hover{background:#fafbfc}
.td-search{display:flex;gap:.5rem;align-items:center;margin:0 0 1rem;max-width:420px}

.td-count{display:inline-block;margin-left:.4rem;min-width:1.4rem;padding:.05rem .45rem;border-radius:99px;background:#ee6c4d;color:#fff;font-size:.7rem;font-weight:600;text-align:center;vertical-align:middle}
.td-ap{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem 0;border-top:1px solid #edf0f2;flex-wrap:wrap}.td-ap:first-of-type{border-top:0;padding-top:0}
.td-ap-who{display:flex;align-items:center;gap:.65rem;min-width:0;flex:1 1 220px}.td-ap-who>div{min-width:0}.td-ap-title{display:block;font-weight:500;font-size:.86rem;color:#2c3640;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.td-ap-title:hover{color:#ee6c4d}.td-ap-who small{display:block;color:#8a96a2;font-size:.74rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.td-ap-act{display:flex;gap:.35rem;flex:0 0 auto}.td-more-card{margin:.6rem -1.25rem -1.1rem;border-top:1px solid #edf0f2}

/* Done column: recent work only */
.done-more{display:block;margin-top:.5rem;padding:.55rem .75rem;border:1px dashed #c3ccd5;border-radius:8px;font-size:.8rem;color:#475569;text-align:center;text-decoration:none;background:#fff}.done-more:hover{background:#f1f5f9;color:#1e293b}
.done-note{margin-top:.5rem;font-size:.72rem;color:#8a96a2;text-align:center}
.tx-bar-zero{fill:#b4bec8}

.td-toggle{display:inline-flex;border:1px solid #d9e0e6;border-radius:8px;overflow:hidden;font-size:.74rem}.td-toggle a{padding:.25rem .65rem;color:#52606d;text-decoration:none}.td-toggle a.on{background:#475569;color:#fff}

.dash-tabs{display:flex;gap:.25rem;border-bottom:1px solid #e5e9ee;margin:.25rem 0 .5rem}.dash-tab{background:none;border:0;border-bottom:2px solid transparent;padding:.5rem .85rem;font-size:.85rem;color:#52606d;margin-bottom:-1px}.dash-tab span{display:inline-block;min-width:1.4rem;padding:0 .35rem;margin-left:.3rem;border-radius:99px;background:#eef1f4;font-size:.72rem;text-align:center}.dash-tab.on{color:#1e293b;font-weight:600;border-bottom-color:#e8553d}.dash-tab.on span{background:#fde8e3;color:#b42318}

/* Priority pills: Highest = solid red, High = light red, Medium = amber, Low = green, Lowest = grey */
.prio-pill.highest{background:#dc2626;color:#fff}
.prio-pill.high{background:#fde8e4;color:#c0392b}
.prio-pill.medium{background:#fff3e0;color:#b26a00}
.prio-pill.low{background:#e8f5ee;color:#2e7d57}
.prio-pill.lowest{background:#eef2f4;color:#73808a}
/* Sortable dashboard table headers */
.dashboard-table th.th-sortable{cursor:pointer;user-select:none;white-space:nowrap}
.dashboard-table th.th-sortable .sort-arrow{font-size:.72rem;margin-left:.25rem;opacity:.35}
.dashboard-table th.th-sortable.sorted .sort-arrow{opacity:1;color:var(--bs-primary,#e8684a)}
/* Header notification bell and persistent theme toggle */
.topbar-tools{display:flex;align-items:center;gap:.6rem;margin-left:auto}.topbar-tools .acct{margin-left:.15rem}
.notification-bell,.theme-toggle{position:relative;display:inline-grid;place-items:center;width:2.45rem;height:2.45rem;border:0;border-radius:50%;background:transparent;color:#64717c;text-decoration:none;font-size:1.08rem;flex:0 0 auto}
.notification-bell:hover,.theme-toggle:hover{background:#f1f4f6;color:#26323d}.notification-bell .notification-badge{position:absolute;top:-.15rem;right:-.12rem;min-width:1.1rem;height:1.1rem;padding:0 .25rem;border-radius:999px;background:#e8a317;color:#242b32;font-size:.65rem;font-weight:700;display:grid;place-items:center;border:2px solid #fff}
.theme-toggle{color:#e5a400}.theme-toggle i{filter:drop-shadow(0 0 4px rgba(232,163,23,.25))}
.notification-panel{padding:0;overflow:hidden}.notification-list{display:flex;flex-direction:column}.notification-item{display:flex;align-items:flex-start;gap:.9rem;padding:1rem 1.15rem;text-decoration:none;color:var(--tt-text);border-bottom:1px solid var(--tt-line);position:relative}.notification-item:last-child{border-bottom:0}.notification-item:hover{background:#f8fafb}.notification-item.unread{background:#f8fbff}.notification-symbol{width:2.5rem;height:2.5rem;border-radius:.75rem;background:var(--tt-brand-wash);color:var(--tt-brand);display:grid;place-items:center;flex:0 0 auto}.notification-copy{display:flex;flex-direction:column;min-width:0;gap:.18rem}.notification-copy strong{font-weight:600;font-size:.92rem}.notification-copy span{font-size:.85rem;color:var(--tt-muted);overflow-wrap:anywhere}.notification-copy small{font-size:.72rem;color:#9aa4ad;margin-top:.25rem}.notification-unread-dot{width:.48rem;height:.48rem;border-radius:50%;background:#e8a317;flex:0 0 auto;margin:.4rem .2rem 0 auto}.notification-pagination{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem;border-top:1px solid var(--tt-line)}
/* Dark theme */
html[data-theme="dark"]{color-scheme:dark;--tt-surface:#202832;--tt-line:#394451;--tt-text:#e5eaf0;--tt-muted:#a2afbc;--tt-bg:#151b22;--tt-brand-pale:#303d4b;--tt-brand-wash:#2a3440;--bs-body-color:var(--tt-text);--bs-body-bg:var(--tt-bg);--bs-border-color:var(--tt-line);--bs-secondary-color:var(--tt-muted);--bs-link-color:#a8c3e4;--bs-link-hover-color:#c2d5eb;--bs-primary:#61788e;--bs-primary-rgb:97,120,142}
html[data-theme="dark"] body,html[data-theme="dark"] .app-content{background:var(--tt-bg);color:var(--tt-text)}
html[data-theme="dark"] .app-sidebar,html[data-theme="dark"] .app-topbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .modal-content,html[data-theme="dark"] .dropdown-menu,html[data-theme="dark"] .login-main,html[data-theme="dark"] .login-card,html[data-theme="dark"] .project-row,html[data-theme="dark"] .kanban-column{background:#202832;color:var(--tt-text);border-color:var(--tt-line)}
html[data-theme="dark"] .sidebar-link{color:#c0cad4}html[data-theme="dark"] .sidebar-link:hover,html[data-theme="dark"] .sidebar-link.active{background:#2b3541;color:#f1f5f9}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] .topbar-title,html[data-theme="dark"] .acct-name,html[data-theme="dark"] .notification-item,html[data-theme="dark"] .notification-copy strong{color:var(--tt-text)}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select,html[data-theme="dark"] textarea,html[data-theme="dark"] .input-group-text{background:#17202a;color:var(--tt-text);border-color:var(--tt-line)}
html[data-theme="dark"] .table,html[data-theme="dark"] .table> :not(caption)>*>*,html[data-theme="dark"] .table thead,html[data-theme="dark"] .table tbody,html[data-theme="dark"] .table-hover>tbody>tr:hover>*{background:#202832;color:var(--tt-text);border-color:var(--tt-line)}
html[data-theme="dark"] .notification-item:hover,html[data-theme="dark"] .notification-item.unread,html[data-theme="dark"] .user-edit[open]>summary{background:#283443}html[data-theme="dark"] .notification-symbol{background:#334252;color:#a8c3e4}
html[data-theme="dark"] .btn-outline-secondary{color:#c7d1dc;border-color:#566372}html[data-theme="dark"] .btn-outline-secondary:hover{background:#344150;color:#fff}
html[data-theme="dark"] .dropdown-item{color:var(--tt-text)}html[data-theme="dark"] .dropdown-item:hover{background:#33404d;color:#fff}html[data-theme="dark"] .dropdown-divider{border-color:var(--tt-line)}
html[data-theme="dark"] .notification-badge{border-color:#202832}html[data-theme="dark"] .theme-toggle{color:#b8c7d6}html[data-theme="dark"] .theme-toggle:hover,html[data-theme="dark"] .notification-bell:hover{background:#2c3743}
html[data-theme="dark"] .task-card,html[data-theme="dark"] .project-switch,html[data-theme="dark"] .project-switch .form-select,html[data-theme="dark"] .table-responsive,html[data-theme="dark"] .simple-list li,html[data-theme="dark"] .user-row{background:#202832;border-color:var(--tt-line);color:var(--tt-text)}
@media(max-width:600px){.app-topbar{padding:.45rem .7rem;gap:.45rem}.topbar-tools{gap:.3rem}.notification-pagination{justify-content:center}.notification-pagination>span{width:100%;text-align:center}}

/* v38: dark departments + sidebar profile shortcut */
.sidebar-footer{padding:.65rem;border-top:1px solid var(--tt-line);margin-top:auto;background:inherit}.sidebar-profile-link{display:flex;align-items:center;gap:.65rem;text-decoration:none;border-radius:9px;padding:.65rem .75rem;color:inherit}.sidebar-profile-link:hover,.sidebar-profile-link.active{background:var(--tt-brand-wash,#f1f4f8)}
html[data-theme="dark"] .drill-row{background:#202832!important;color:#e5eaf0!important;border-color:#394451!important}html[data-theme="dark"] .drill-row:nth-of-type(even){background:#242f3a!important}html[data-theme="dark"] .drill-row .drill-main strong,html[data-theme="dark"] .drill-breadcrumb strong{color:#e5eaf0!important}html[data-theme="dark"] .drill-row .drill-main small{color:#aebbc8!important}html[data-theme="dark"] .drill-row .drill-icon{background:#334252;color:#c2d5eb}html[data-theme="dark"] .sidebar-footer{border-color:#394451;background:#202832}html[data-theme="dark"] .sidebar-profile-link{color:#c0cad4}html[data-theme="dark"] .sidebar-profile-link:hover,html[data-theme="dark"] .sidebar-profile-link.active{background:#2b3541;color:#f1f5f9}html[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-bg-type:#26313c;background:#26313c!important;color:#e5eaf0!important}html[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(even)>*{background:#202832!important;color:#e5eaf0!important}

/* v47: editable branding + invitation */
.login-logo{display:inline-block;line-height:0}
/* On the dark sign-in panel the logo sits straight on the background (no white box); any transparent logo is shown in white, like the Trax sign-in page. */
.login-logo.on-dark{background:none;padding:0;border-radius:0}.login-logo.on-dark .login-logo-img{filter:brightness(0) invert(1);max-height:60px}
.login-logo-img{max-width:220px;max-height:52px}.login-mobile-brand .login-logo-img{max-height:44px}
.invite-preview-frame{display:block;width:100%;height:520px;border:1px solid var(--tt-line);border-radius:6px;background:#f0f3f8}
html[data-theme="dark"] .app-sidebar .brand-logo{background:#fff;border-radius:4px;padding:2px 4px}

/* v47: dashboard cards keep a sane size as data grows (long names wrap/ellipsize, long lists scroll inside the card) */
.td-card,.td-col>*{min-width:0}
.td-proj-top b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 8rem}
.td-proj-top span{flex:0 1 auto}
.td-row>div{min-width:0;overflow-wrap:anywhere}
.td-grid{align-items:start}
.td-grid.even{align-items:stretch}
.td-status{justify-content:center}
.tx-people .table td:first-child{min-width:12rem}.tx-person b,.tx-person small{overflow-wrap:anywhere}

/* v47: clickable bars (only the bar is a button) + detail popups */
.td-bar-btn{display:block;width:100%;border:0;padding:0;margin:0;height:.95rem;cursor:pointer;text-align:left;appearance:none;-webkit-appearance:none;transition:box-shadow .15s,filter .15s}
.td-bar-btn:hover{box-shadow:0 0 0 2px #cbd5e1;filter:brightness(.97)}.td-bar-btn:focus-visible{outline:0;box-shadow:0 0 0 2px #ee6c4d}
.td-bar.sm.td-bar-btn{height:.85rem;max-width:210px}
.td-proj .td-bar-btn{margin-top:.1rem}
.pd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin-bottom:1rem}.pd-stats>div{background:#f2f4f6;border-radius:8px;padding:.7rem .8rem;min-width:0}.pd-stats small{display:block;font-size:.7rem;color:#8a96a2}.pd-stats strong{font-size:1.5rem;font-weight:600;color:#2c3640}.pd-stats .pd-done{color:#16a34a}
.pd-split{display:flex;height:.7rem;border-radius:99px;overflow:hidden;background:#eef1f4}.pd-split>i{display:block;height:100%}
#pdName{overflow-wrap:anywhere}
@media(max-width:575.98px){.pd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
html[data-theme="dark"] .pd-stats>div{background:#2a3440}html[data-theme="dark"] .pd-stats strong{color:#e5eaf0}

/* v49: dark-mode coverage for dashboard, reports, approvals, date picker, pills, tracks, KPI strips (generated from the light rules) */
html[data-theme="dark"] .nav-toggle:hover{background:#26303b}
html[data-theme="dark"] .pill{background:#26303b;color:#e5eaf0}
html[data-theme="dark"] .pill.off{background:#4a2121;color:#d89797}
html[data-theme="dark"] .user-edit{border-bottom:1px solid #394451}
html[data-theme="dark"] .count{background:#202832;color:#e5eaf0}
html[data-theme="dark"] .kanban-dropzone.over{background:#2d3844}
html[data-theme="dark"] .drop-hint{border:1px dashed #394451}
html[data-theme="dark"] .priority{background:#26303b}
html[data-theme="dark"] .p-highest{background:#4a2121;color:#db9494}
html[data-theme="dark"] .p-high{background:#4a3521;color:#edb482}
html[data-theme="dark"] .p-medium{background:#4a3c21;color:#ffcd70}
html[data-theme="dark"] .p-low{background:#21384a;color:#94c0db}
html[data-theme="dark"] .p-lowest{background:#26303b}
html[data-theme="dark"] .comment{border-bottom:1px solid #394451}
html[data-theme="dark"] .activity-row{color:#e5eaf0;border-bottom:1px solid #394451}
html[data-theme="dark"] .table thead th{background:#202832}
html[data-theme="dark"] .hierarchy-child{background:#202832}
html[data-theme="dark"] .report-track{background:#26303b}
html[data-theme="dark"] .dashboard-heading h1{color:#e5eaf0}
html[data-theme="dark"] .metric-card{background:#202832;border:1px solid #394451}
html[data-theme="dark"] .metric-icon.blue{background:#21314a}
html[data-theme="dark"] .metric-icon.green{background:#214a37;color:#83ecbf}
html[data-theme="dark"] .metric-icon.orange{background:#4a2f21}
html[data-theme="dark"] .metric-icon.red{background:#4a2421}
html[data-theme="dark"] .metric-icon.purple{background:#2f214a}
html[data-theme="dark"] .metric-icon.teal{background:#214a46;color:#80efea}
html[data-theme="dark"] .metric-label{color:#97b3d8}
html[data-theme="dark"] .metric-value{color:#e5eaf0}
html[data-theme="dark"] .panel-heading h2{color:#97b1d8}
html[data-theme="dark"] .panel-chip,html[data-theme="dark"] .table-count{background:#4a2b21}
html[data-theme="dark"] .table-count{background:#26303b}
html[data-theme="dark"] .progress-donut:before{background:#202832}
html[data-theme="dark"] .donut-inner strong{color:#97b1d8}
html[data-theme="dark"] .legend-row{border-bottom:1px solid #394451;color:#97b3d8}
html[data-theme="dark"] .legend-row strong{color:#97b2d8}
html[data-theme="dark"] .chart-footnote{border-top:1px solid #394451}
html[data-theme="dark"] .workload-label{color:#97b3d8}
html[data-theme="dark"] .workload-label strong{color:#97b1d8}
html[data-theme="dark"] .workload-track{background:#26303b}
html[data-theme="dark"] .workload-callout{border:1px solid #394451;background:#26303b}
html[data-theme="dark"] .callout-icon{background:#4a2c21}
html[data-theme="dark"] .workload-callout strong{color:#97b3d8}
html[data-theme="dark"] .dashboard-table thead th{background:#26303b;border-bottom:1px solid #394451}
html[data-theme="dark"] .dashboard-table tbody td{border-bottom:1px solid #394451;color:#97b2d8}
html[data-theme="dark"] .table-task-link{color:#97b2d8}
html[data-theme="dark"] .date-cell{color:#97b2d8}
html[data-theme="dark"] .due-late{color:#e68c89}
html[data-theme="dark"] .status-pill{background:#4a2b21}
html[data-theme="dark"] .status-pill.done{background:#214a37;color:#84ebc1}
html[data-theme="dark"] .status-pill.in-progress{background:#4a2b21}
html[data-theme="dark"] .status-pill.to-do,html[data-theme="dark"] .status-pill.backlog{background:#4a3621}
html[data-theme="dark"] .table-empty{color:#97b2d8}
html[data-theme="dark"] .empty-check{background:#214a37;color:#83ecbf}
html[data-theme="dark"] .dashboard-summary-bar{background:#202832;border:1px solid #394451}
html[data-theme="dark"] .dashboard-summary-item{border-right:1px solid #394451}
html[data-theme="dark"] .summary-icon.blue{background:#21314a}
html[data-theme="dark"] .summary-icon.green{background:#214a37;color:#83ecbf}
html[data-theme="dark"] .summary-icon.orange{background:#4a2f21}
html[data-theme="dark"] .summary-icon.red{background:#4a2421}
html[data-theme="dark"] .summary-icon.purple{background:#2f214a}
html[data-theme="dark"] .summary-icon.teal{background:#214a46;color:#80efea}
html[data-theme="dark"] .summary-copy strong{color:#e5eaf0}
html[data-theme="dark"] .dashboard-summary-link{border:1px solid #394451;color:#97b3d8}
html[data-theme="dark"] .dashboard-summary-item{border-bottom:1px solid #394451}
html[data-theme="dark"] .task-subtask-row{border:1px solid var(--border-color,#394451)}
html[data-theme="dark"] .active-timer-banner{background:#26303b}
html[data-theme="dark"] .active-timer-icon{background:#4a2c21}
html[data-theme="dark"] .tx-head h1,html[data-theme="dark"] .ap-head h1{color:#e5eaf0}
html[data-theme="dark"] .tx-chip{background:#26303b;color:#e5eaf0}
html[data-theme="dark"] .tx-chip.warn{background:#4a3d21;color:#ffd070}
html[data-theme="dark"] .tx-range{background:#202832}
html[data-theme="dark"] .tx-card{background:#202832}
html[data-theme="dark"] .tx-kpis{background:#2d3844}
html[data-theme="dark"] .tx-kpis>div{background:#26303b}
html[data-theme="dark"] .tx-kpis strong{color:#e5eaf0}
html[data-theme="dark"] .tx-legend-bar{background:#26303b}
html[data-theme="dark"] .tx-empty strong{color:#e5eaf0}
html[data-theme="dark"] .tx-title{color:#e5eaf0}
html[data-theme="dark"] .tx-team header small.on,html[data-theme="dark"] .on{color:#7fb5f0}
html[data-theme="dark"] .tx-team-stats strong{color:#e5eaf0}
html[data-theme="dark"] .tx-mini i{background:#26303b}
html[data-theme="dark"] .tx-team-people{border-top:1px solid #394451}
html[data-theme="dark"] .tx-more{border-top:1px solid #394451;color:#e5eaf0;background:#202832}
html[data-theme="dark"] .tx-people-head{background:#26303b}
html[data-theme="dark"] .tx-people .table thead th{background:#202832}
html[data-theme="dark"] .tx-stack{background:#26303b}
html[data-theme="dark"] .tx-note{border-bottom:1px solid #394451}
html[data-theme="dark"] .tx-note:hover{background:#202832}
html[data-theme="dark"] .ap-stats>div{background:#202832}
html[data-theme="dark"] .ap-stats strong{color:#e5eaf0}
html[data-theme="dark"] .ap-tabs a{background:#26303b;color:#e5eaf0}
html[data-theme="dark"] .ap-tabs a span{background:#4a3d21;color:#ffd070}
html[data-theme="dark"] .ap-table thead th{background:#202832}
html[data-theme="dark"] .ap-task{color:#e5eaf0}
html[data-theme="dark"] .ap-late{color:#e5938a}
html[data-theme="dark"] .ap-pill.pending{background:#4a3d21;color:#ffd070}
html[data-theme="dark"] .ap-pill.approved{background:#214a34;color:#87e8bd}
html[data-theme="dark"] .ap-pill.rejected{background:#4a2321;color:#e3908c}
html[data-theme="dark"] .ap-effort strong{color:#e5eaf0}
html[data-theme="dark"] .ap-meter{background:#26303b}
html[data-theme="dark"] .ap-line{border-bottom:1px solid #394451}
html[data-theme="dark"] .ap-hist{border-bottom:1px solid #394451}
html[data-theme="dark"] .drp-btn{background:#202832}
html[data-theme="dark"] .drp-pop{background:#202832}
html[data-theme="dark"] .drp-presets button{color:#e5eaf0}
html[data-theme="dark"] .drp-presets button:hover{background:#26303b}
html[data-theme="dark"] .drp-nav button{color:#e5eaf0}
html[data-theme="dark"] .drp-title{color:#e5eaf0}
html[data-theme="dark"] .drp-day{color:#e5eaf0}
html[data-theme="dark"] .drp-day:hover{background:#26303b}
html[data-theme="dark"] .drp-day.in{background:#4a2a21;color:#e89988}
html[data-theme="dark"] .acct-btn:hover,html[data-theme="dark"] .acct-btn[aria-expanded=true]{background:#26303b}
html[data-theme="dark"] .acct-head em{color:#e49b8c}
html[data-theme="dark"] .acct-menu .dropdown-item:active{background:#4a2b21;color:#e49b8c}
html[data-theme="dark"] .tf-modal .modal-content{background:#202832}
html[data-theme="dark"] .swatch{border:2px solid #394451}
html[data-theme="dark"] .wl-track{background:#26303b}
html[data-theme="dark"] .task-card.locked{background:#202832}
html[data-theme="dark"] .card-flag.bad{background:#4a2121;color:#e38c94}
html[data-theme="dark"] .card-flag.wait{background:#4a3b21;color:#ffcd70}
html[data-theme="dark"] .card-flag.ok{background:#214a36;color:#86e9bb}
html[data-theme="dark"] .dashboard-summary-clickable:hover,html[data-theme="dark"] .dashboard-summary-clickable:focus-visible{background:#26303b;outline:2px solid #394451}
html[data-theme="dark"] .prio-pill{background:#26303b}
html[data-theme="dark"] .prio-pill.high,html[data-theme="dark"] .prio-pill.critical,html[data-theme="dark"] .prio-pill.urgent{background:#4a2821;color:#e5938a}
html[data-theme="dark"] .prio-pill.medium{background:#4a3a21;color:#ffc570}
html[data-theme="dark"] .prio-pill.low{background:#26303b;color:#97d9b9}
html[data-theme="dark"] .project-item{border-bottom:1px solid #394451}
html[data-theme="dark"] .wl-free{color:#97d9b9}
html[data-theme="dark"] .wl-free.full{color:#e5938a}
html[data-theme="dark"] .wl-over{color:#e5938a}
html[data-theme="dark"] .td-card h3{color:#e5eaf0}
html[data-theme="dark"] .td-bar{background:#26303b}
html[data-theme="dark"] .td-row{border-top:1px solid #394451}
html[data-theme="dark"] .td-kpis>a{background:#26303b}
html[data-theme="dark"] .td-kpis>a:hover,html[data-theme="dark"] .td-kpis>a:focus-visible{background:#2d3844}
html[data-theme="dark"] .td-kpis>a strong{color:#e5eaf0}
html[data-theme="dark"] .td-viewall{color:#e59c8b}
html[data-theme="dark"] .td-more{color:#e59c8b}
html[data-theme="dark"] .td-more:hover{background:#202832}
html[data-theme="dark"] .td-ap{border-top:1px solid #394451}
html[data-theme="dark"] .td-ap-title{color:#e5eaf0}
html[data-theme="dark"] .td-more-card{border-top:1px solid #394451}
html[data-theme="dark"] .done-more{color:#97b2d8;background:#202832}
html[data-theme="dark"] .done-more:hover{background:#26303b;color:#97b0d8}
html[data-theme="dark"] .td-toggle{border:1px solid #394451}
html[data-theme="dark"] .td-toggle a{color:#e5eaf0}
html[data-theme="dark"] .dash-tabs{border-bottom:1px solid #394451}
html[data-theme="dark"] .dash-tab{color:#e5eaf0}
html[data-theme="dark"] .dash-tab span{background:#26303b}
html[data-theme="dark"] .dash-tab.on{color:#97b0d8}
html[data-theme="dark"] .dash-tab.on span{background:#4a2921;color:#ee8981}
html[data-theme="dark"] .prio-pill.high{background:#4a2821;color:#e5938a}
html[data-theme="dark"] .prio-pill.medium{background:#4a3a21;color:#ffc570}
html[data-theme="dark"] .prio-pill.low{background:#26303b;color:#97d9b9}
html[data-theme="dark"] .prio-pill.lowest{background:#26303b}
html[data-theme="dark"] .notification-bell .notification-badge{color:#e5eaf0;border:2px solid #394451}
html[data-theme="dark"] .pd-stats .pd-done{color:#81eea9}
html[data-theme="dark"] .pd-split{background:#26303b}

/* v49: Bootstrap utilities and form widgets used inside pages */
html[data-theme="dark"] .bg-white,html[data-theme="dark"] .bg-light,html[data-theme="dark"] .card,html[data-theme="dark"] .list-group-item,html[data-theme="dark"] .accordion-item,html[data-theme="dark"] .accordion-button,html[data-theme="dark"] .offcanvas{background:#202832!important;color:var(--tt-text)!important;border-color:var(--tt-line)!important}
html[data-theme="dark"] .table-light,html[data-theme="dark"] .table-light>:not(caption)>*>*,html[data-theme="dark"] thead th{background:#26303b!important;color:#a2afbc!important;border-color:var(--tt-line)!important}
html[data-theme="dark"] .table>:not(caption)>*>*{background-color:transparent}
html[data-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>*{background:#232d38;color:var(--tt-text)}
html[data-theme="dark"] .text-dark,html[data-theme="dark"] .text-body,html[data-theme="dark"] .link-dark{color:var(--tt-text)!important}
html[data-theme="dark"] .text-muted,html[data-theme="dark"] .muted,html[data-theme="dark"] small{color:var(--tt-muted)}
html[data-theme="dark"] .border,html[data-theme="dark"] .border-top,html[data-theme="dark"] .border-bottom,html[data-theme="dark"] hr{border-color:var(--tt-line)!important}
html[data-theme="dark"] .form-control::placeholder{color:#7d8a96}html[data-theme="dark"] .form-control:disabled,html[data-theme="dark"] .form-select:disabled{background:#1b232c;color:#8795a3}
html[data-theme="dark"] .form-control:focus,html[data-theme="dark"] .form-select:focus{background:#17202a;color:var(--tt-text)}
html[data-theme="dark"] .btn-close{filter:invert(1) grayscale(100%) brightness(200%)}
html[data-theme="dark"] .modal-header,html[data-theme="dark"] .modal-footer{border-color:var(--tt-line)}
html[data-theme="dark"] .btn-light,html[data-theme="dark"] .btn-outline-dark{background:#2a3440;color:var(--tt-text);border-color:#566372}
html[data-theme="dark"] .page-link{background:#202832;color:var(--tt-text);border-color:var(--tt-line)}
html[data-theme="dark"] .page-item.active .page-link{background:#ee6c4d;border-color:#ee6c4d;color:#fff}
html[data-theme="dark"] .alert-light,html[data-theme="dark"] .alert-secondary{background:#26303b;color:var(--tt-text);border-color:var(--tt-line)}
html[data-theme="dark"] .tx-donut circle[stroke="#eef1f4"]{stroke:#2d3844}
html[data-theme="dark"] .tx-donut-total{fill:#e5eaf0;color:#e5eaf0}
html[data-theme="dark"] .tx-donut .td-sub,html[data-theme="dark"] .tx-donut text{fill:#a2afbc}
html[data-theme="dark"] .tx-donut .tx-donut-total{fill:#e5eaf0}

/* v49: task board filters (project + employee) */
.board-filters{display:flex;flex-wrap:wrap;gap:0 1.25rem}.board-filters .project-switch{flex:0 1 26rem;min-width:15rem}

/* Employee picker (search + list) used in task forms */
.tf-picker{border:1px solid #dfe3e7;border-radius:.55rem;background:#fff;overflow:hidden}
.tf-picker-search{border:0;border-bottom:1px solid #edf0f2;border-radius:0;box-shadow:none!important;background:#f7f8fa}
.tf-picker-list{max-height:11rem;overflow:auto;padding:.25rem}
.tf-pick{display:flex;align-items:center;gap:.55rem;padding:.35rem .5rem;border-radius:.4rem;cursor:pointer;margin:0;font-weight:400}
.tf-pick:hover{background:#f3f5f7}.tf-pick input{margin:0;flex:0 0 auto}.tf-pick span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tf-pick-none span{font-style:italic;color:#6b7680}
.tf-pick.tf-hide-assignee{display:none}
.tf-picker-empty{padding:.5rem .75rem;font-size:.8rem;color:#9ba5ad}
html[data-theme="dark"] .tf-picker{background:#222b35;border-color:#394451}
html[data-theme="dark"] .tf-picker-search{background:#1b232b;border-bottom-color:#394451;color:#e6ebf0}
html[data-theme="dark"] .tf-pick:hover{background:#2b3541}
html[data-theme="dark"] .tf-pick-none span{color:#9aa7b4}
/* Milestones list page */
.ms-filters{display:flex;align-items:flex-end;gap:.8rem;flex-wrap:wrap;margin-bottom:1rem}
.ms-filters .project-switch{min-width:16rem}
.ms-pager{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-top:1rem;font-size:.85rem;color:#6b7680}
