/* FadiTec Projects UI system v0.4 | Accessible RTL-first layout.
   Extends the original theme; no database changes required. */
:root {
  --brand-red:#d21d2a;
  --brand-red-dark:#b81624;
  --brand-steel:#496873;
  --ink:#22343c;
  --mute:#75858f;
  --bg:#f5f7f9;
  --line:#e7ecf0;
  --surface:#fff;
  --sidebar:#24343c;
  --sidebar-hover:#304650;
  --shadow:0 3px 18px rgba(28,46,55,.035);
  --radius:16px;
  --bs-primary:#d21d2a;
  --bs-primary-rgb:210,29,42;
}
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--ink);font-size:13.5px;line-height:1.85}
button,input,textarea,select{font-family:inherit}
a{transition:color .15s ease,background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(210,29,42,.45);outline-offset:3px}
.btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;font-weight:700;font-size:12.5px;padding:9px 17px;box-shadow:none;white-space:nowrap}
.btn-primary{background:var(--brand-red)!important;border-color:var(--brand-red)!important;color:#fff!important}
.btn-primary:hover,.btn-primary:focus{background:var(--brand-red-dark)!important;border-color:var(--brand-red-dark)!important;box-shadow:0 5px 16px #d21d2a22!important}
.btn-outline-primary{border-color:#e7c5c8;color:var(--brand-red);background:#fff}
.btn-outline-primary:hover{background:#fff5f5;border-color:var(--brand-red);color:var(--brand-red)}
.btn-light{background:#f3f5f7;border-color:#eef0f2;color:#44565e}
.btn-light:hover{background:#e9eef1;border-color:#e1e7ea;color:#25343b}
.btn-sm{min-height:34px;padding:6px 12px;font-size:12px}
.form-control,.form-select{border:1px solid #dce4e8;background-color:#fff;color:var(--ink);border-radius:10px;min-height:46px;padding:9px 14px;font-size:13px;box-shadow:none}
textarea.form-control{min-height:120px;resize:vertical}
.form-control:focus,.form-select:focus{border-color:#d85962;box-shadow:0 0 0 3px rgba(210,29,42,.08)}
.form-control::placeholder{color:#9aa9b2}
.form-label{font-weight:700;color:#2d4049;font-size:12px;margin-bottom:7px}
.form-text{color:#7d8e97;font-size:11px;margin-top:6px}
.required{color:var(--brand-red)}
.progress{border-radius:20px;background:#edf0f2;height:7px;overflow:hidden}
.progress-bar{background:#d21d2a;border-radius:20px}
.skip-link{position:fixed;z-index:9999;right:18px;top:-100px;background:#fff;color:#222;padding:10px 16px;border:2px solid var(--brand-red);border-radius:10px}
.skip-link:focus{top:12px}
/* App shell */
.app-shell{min-height:100dvh;align-items:stretch}
.sidebar{width:235px;height:100dvh;position:sticky;top:0;flex:none;background:var(--sidebar);padding:18px 13px 13px;display:flex;overflow-y:auto;z-index:1200;box-shadow:inset 1px 0 0 #ffffff08}
.side-brand{position:relative;flex-direction:row;gap:11px;justify-content:flex-start;align-items:center;padding:0 7px 19px;border-bottom:1px solid #ffffff16}
.side-brand-mark{width:78px;min-width:78px;height:61px;padding:4px 6px;overflow:hidden;background:#f4f8f9;border-radius:11px;display:grid;place-items:center}
.brand-image{width:100%;max-width:none;height:54px;object-fit:contain}
.side-brand-caption{margin:0;text-align:right;letter-spacing:0;line-height:1.35;font-size:13px;color:#fff;font-weight:800;display:flex;flex-direction:column;gap:3px}
.side-brand-caption strong{font-size:17px;letter-spacing:.3px}
.side-brand-caption span{margin:0;color:#91a9b4;font-size:9px;letter-spacing:2px;font-weight:700}
.sidebar-mobile-close{display:none;border:0;background:#fff2;color:#fff;width:34px;height:34px;border-radius:9px}
.nav-kicker{font-size:10px;letter-spacing:.2px;color:#829aa5;margin:23px 11px 9px;font-weight:700}
.nav-kicker-secondary{margin-top:26px}
.side-nav{gap:4px}
.side-nav .nav-link{position:relative;min-height:43px;padding:10px 13px;gap:13px;border-radius:9px;font-size:12.5px;font-weight:600;color:#bfd0d7;border:1px solid transparent}
.side-nav .nav-link>i:first-child,.side-nav .nav-link>.svg-inline--fa:first-child{width:18px;font-size:15px;display:inline-block;flex:none}
.side-nav .nav-link:hover{background:#ffffff0a;color:#fff}
.side-nav .nav-link.active{color:#fff;background:var(--brand-red);border-color:#e7354217;box-shadow:0 4px 14px #00000010;font-weight:800}
.nav-active-indicator{width:5px;height:5px;background:#fff;border-radius:50%;margin-right:auto}
.side-bottom{margin-top:auto;padding-top:14px}
.side-help{margin:0 0 13px;padding:11px 9px;display:flex;align-items:center;gap:9px;background:#ffffff0a;border:1px solid #ffffff0c;border-radius:11px}
.side-help-icon{width:30px;height:30px;border-radius:9px;background:#ffffff10;color:#f5c8c9;display:grid;place-items:center;flex:none}
.side-help strong{display:block;font-size:11px;color:#fff}
.side-help small{font-size:9.5px;color:#9fb2ba;line-height:1.5;display:block}
.side-account{padding:11px 4px 0;border-top:1px solid #ffffff18;gap:9px}
.side-avatar{background:#4e6570;color:#fff}
.account-copy{min-width:0}
.account-copy strong{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.account-copy small{font-size:10px;color:#afc0c7}
.side-logout{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:#d2e0e6}
.side-logout:hover{background:#ffffff18;color:#fff}
.main-wrapper{min-width:0;flex:1;background:var(--bg)}
.topbar{height:69px;min-height:69px;background:#fff;border-bottom:1px solid #e7edf0;box-shadow:0 1px 0 rgba(0,0,0,.01);padding:0 30px;display:flex;justify-content:space-between;align-items:center;gap:18px;position:sticky;top:0;z-index:40}
.topbar-right,.topbar-left{display:flex;align-items:center;gap:15px;min-width:0}
.topbar-breadcrumb{display:flex;align-items:center;gap:10px;font-size:11px;white-space:nowrap;overflow:hidden}
.topbar-breadcrumb>span{color:#899aa4}
.topbar-breadcrumb>i,.topbar-breadcrumb>.svg-inline--fa{color:#b5c0c7}
.topbar-breadcrumb strong{color:#273c45;font-weight:800;overflow:hidden;text-overflow:ellipsis}
.topbar-search{display:flex;align-items:center;gap:9px;width:255px;max-width:24vw;border:1px solid #e8edf0;background:#f7f9fa;border-radius:10px;padding:0 12px;height:38px;color:#9aabb2}
.topbar-search input{border:0;outline:0;background:transparent;min-width:0;width:100%;height:100%;font-size:11px;color:#334a53}
.topbar-search input::placeholder{color:#a2aeb5}
.topbar-search kbd{padding:0 5px;color:#8798a3;background:#fff;border:1px solid #e4eaed;border-radius:4px;font-size:10px;box-shadow:none}
.topbar-date{color:#8798a2;font-size:10.5px;white-space:nowrap;display:flex;align-items:center;gap:6px}
.topbar-date small{font-size:9px;color:#b3bfc4}
.user-chip{gap:9px;border:0;border-right:1px solid #e8eef0;padding-right:15px}
.user-chip .avatar{background:#fcecee;color:var(--brand-red);font-weight:800}
.user-copy strong{font-size:11px}
.user-copy small{font-size:9px}
.page-content{padding:29px 31px 68px;max-width:1700px;margin:0 auto}
/* Headings */
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap;margin-bottom:24px}
.page-heading h1{font-size:25px;letter-spacing:-.4px;font-weight:850;margin:4px 0 4px;color:#233741;line-height:1.6}
.page-heading p{margin:0;font-size:12px;color:#8998a0}
.eyebrow{font-size:10px;font-weight:800;color:#c84a54;display:flex;align-items:center;gap:8px;letter-spacing:.2px}
.eyebrow-dot{width:6px;height:6px;background:#d21d2a;border-radius:50%}
.heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.greeting-spark{color:#d21d2a;font-size:15px;margin-right:4px}
.back-link{display:inline-flex;align-items:center;gap:8px;color:#8999a2;font-size:11px;font-weight:700;margin-bottom:9px}
.back-link:hover{color:#d21d2a}
.heading-separator{color:#b7c2c7;margin:0 6px}
/* Shared cards */
.content-card{background:#fff;border:1px solid #e8edf0;border-radius:var(--radius);padding:22px 24px;box-shadow:var(--shadow)}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;border-bottom:1px solid #edf0f2;padding-bottom:14px;margin-bottom:8px}
.section-title h2{margin:0;font-size:15px;line-height:1.65;font-weight:850;color:#263b44}
.section-kicker{font-size:10px;line-height:1.8;color:#98a7ae;margin-bottom:2px;display:block}
.section-icon{color:#bd3944;margin-left:7px;font-size:15px}
.section-action{display:inline-flex;gap:8px;align-items:center;color:#bf2631;font-size:11px;font-weight:800;white-space:nowrap}
.section-action:hover{color:#92131c}
.inline-counter{display:inline-block;background:#f0f4f5;color:#627983;min-width:25px;text-align:center;padding:1px 6px;margin-right:5px;border-radius:7px;font-size:10px;vertical-align:middle}
/* Dashboard */
.stats-row{margin-bottom:17px!important}
.stats-row .stat-card{min-height:144px;height:100%;padding:18px 19px;border:1px solid #e9eef1;border-radius:15px;box-shadow:var(--shadow);display:flex;flex-direction:column;background:#fff;color:var(--ink);position:relative;overflow:hidden;transition:transform .15s,border-color .15s,box-shadow .15s}
.stats-row .stat-card:hover{transform:translateY(-2px);border-color:#d9e4e8;box-shadow:0 10px 28px #243c4910}
.stats-row .stat-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}
.stats-row .stat-icon{height:37px;width:37px;display:grid;place-items:center;border-radius:11px;font-size:15px}
.stats-row .stat-projects .stat-icon{background:#eff1fc;color:#6972b4}
.stats-row .stat-total .stat-icon{background:#ebf4f5;color:#367783}
.stats-row .stat-open .stat-icon{background:#fff4e7;color:#b67b27}
.stats-row .stat-late .stat-icon{background:#fff0f0;color:#cc3b43}
.stat-card-arrow{color:#c2d0d7;font-size:11px}
.stats-row .stat-number{display:block;font-size:29px;font-weight:850;line-height:1.25;margin-bottom:2px;color:#1e363f}
.stats-row .stat-label{font-size:12px;font-weight:750;color:#485f68}
.stats-row .stat-hint{font-size:10px;color:#a0aeb5}
.dashboard-focus{background:#fff;border:1px solid #f0dce0;border-right:3px solid var(--brand-red);border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 19px;margin-bottom:19px;box-shadow:var(--shadow)}
.dashboard-focus>div{display:flex;align-items:center;gap:12px}
.focus-icon{width:38px;height:38px;background:#fff1f2;color:var(--brand-red);border-radius:11px;display:grid;place-items:center;flex:none}
.dashboard-focus strong{font-size:12px;display:block;color:#263a44}
.dashboard-focus p{margin:1px 0 0;font-size:11px;color:#82949c}
.focus-link{font-size:11px;font-weight:800;color:var(--brand-red);white-space:nowrap}
.focus-link .svg-inline--fa,.focus-link i{margin-right:5px}
.dashboard-grid>.col-lg-7,.dashboard-grid>.col-lg-5{display:flex;flex-direction:column;gap:17px}
.dashboard-panel{min-height:260px;flex:1}
.work-item{display:flex;align-items:center;gap:12px;padding:13px 4px;border-bottom:1px solid #f0f3f4;color:var(--ink);min-height:67px}
.work-item:last-child{border-bottom:0}
.work-item:hover{background:#fafbfc;color:var(--ink)}
.work-item-status{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;font-size:11px}
.work-item-content{display:flex;flex-direction:column;flex:1;gap:2px;min-width:0}
.work-item-content strong{color:#293e46;font-size:12px;font-weight:780;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.work-item-content small{font-size:10px;color:#95a5ad;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.work-item-end{display:flex;align-items:flex-end;flex-direction:column;gap:6px;min-width:135px}
.work-date{white-space:nowrap;font-size:10px;color:#9baab1}
.work-date i,.work-date .svg-inline--fa{margin-left:5px}
.date-late{color:#cb3440!important;font-weight:700}
.work-item-arrow{font-size:10px;color:#bdc9cf;margin-right:1px}
.status-pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10px;line-height:1.7;border-radius:6px;padding:4px 10px;font-weight:800;white-space:nowrap}
.state-todo{background:#eef1f4;color:#677883}
.state-doing{background:#e9f5f8;color:#2f7d8c}
.state-review{background:#fff4e5;color:#ad7826}
.state-blocked{background:#fff0f0;color:#b83e44}
.state-done{background:#e9f7ef;color:#37845a}
.recent-project-list{display:flex;flex-direction:column;gap:0}
.recent-project{display:flex;gap:12px;align-items:center;color:var(--ink);padding:12px 0;border-bottom:1px solid #f0f3f4}
.recent-project:last-child{border-bottom:0}
.recent-project:hover{color:var(--ink)}
.recent-project-icon{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:11px;background:#edf3f4;color:#53727c;font-size:16px}
.recent-project-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.recent-project-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.recent-project-top strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-project-top b{color:var(--brand-red);font-size:11px}
.mini-progress{height:5px;background:#edf1f3;border-radius:5px;overflow:hidden}
.mini-progress>span{display:block;height:100%;background:#b93641;border-radius:5px}
.recent-project-body small{font-size:10px;color:#99a8b0}
.insight-card{border-radius:13px;border:1px solid #f4dfe1;background:#fff8f8;padding:16px 18px;display:flex;gap:12px;align-items:flex-start;margin:0!important}
.insight-card .insight-icon{width:36px;height:36px;border-radius:9px;background:#ffe9ea;color:#d21d2a;display:grid;place-items:center;flex:none}
.insight-card strong{font-size:12px}
.insight-card p{font-size:10.5px;color:#937b81;margin:4px 0 0}
/* Empty states */
.empty{color:#889da7}
.empty-action{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:35px 16px;min-height:220px;gap:4px}
.empty-action .empty-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;color:#63808c;background:#f0f5f7;margin-bottom:8px;font-size:21px}
.empty-action strong{font-size:13px;font-weight:850;color:#314752}
.empty-action p{font-size:11px;color:#90a0a9;margin:2px 0 10px;max-width:340px}
.empty-slim{min-height:120px;padding:25px 12px}
.empty-slim .empty-icon{width:41px;height:41px;font-size:16px;border-radius:11px}
/* Filters and list layouts */
.toolbar-card{padding:14px 16px;margin-bottom:15px!important}
.filter-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.filter-search{position:relative;flex:1 1 245px;min-width:180px}
.filter-search>i,.filter-search>.svg-inline--fa{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:#9aacb5;pointer-events:none;font-size:13px;z-index:1}
.filter-search .form-control{padding-right:40px}
.filter-field{flex:0 1 175px;min-width:135px}
.filter-checkbox{display:inline-flex;align-items:center;gap:8px;color:#6c7e88;white-space:nowrap;font-size:11px;padding:0 4px;min-height:40px}
.filter-checkbox input{accent-color:var(--brand-red);width:15px;height:15px}
.btn-filter{height:44px}
.btn-filter-clear{min-height:43px;height:43px;padding:0 13px}
.list-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;min-height:37px}
.list-toolbar>div:first-child{display:flex;align-items:center;gap:10px}
.list-toolbar strong{color:#314853;font-size:12px}
.list-toolbar span{font-size:10px}
.view-switch{display:inline-flex;gap:3px;padding:4px;border:1px solid #e5eaed;background:#fff;border-radius:11px}
.view-switch a{display:flex;gap:7px;align-items:center;justify-content:center;padding:5px 12px;border-radius:7px;color:#82949e;font-size:10.5px;font-weight:750;min-width:66px}
.view-switch a.active{background:#fff0f0;color:#c62634}
.table-card{padding-top:9px;padding-bottom:11px}
.project-table{margin:0;white-space:nowrap;font-size:11.5px}
.project-table thead th{color:#8da0a9;background:#fff;font-size:10px;font-weight:800;border-bottom:1px solid #e9eef0;padding:12px 12px;white-space:nowrap}
.project-table tbody td{padding:14px 12px;color:#667b85;vertical-align:middle;border-color:#f0f3f5}
.project-table tr:last-child td{border-bottom:0}
.project-table tr:hover td{background:#fbfcfd}
.task-title-link{color:#2e444f;font-weight:850;font-size:12px;display:block;max-width:360px;overflow:hidden;text-overflow:ellipsis}
.task-title-link:hover{color:var(--brand-red)}
.table-subline{display:block;color:#9babb2;font-size:10px;margin-top:2px;max-width:360px;text-overflow:ellipsis;overflow:hidden}
.table-project-label{color:#738892}
.table-project-label i,.table-project-label .svg-inline--fa{margin-left:5px}
.priority-tag{display:inline-flex;padding:3px 10px;border-radius:6px;font-size:10px;font-weight:800;white-space:nowrap}
.priority-1{background:#eef3f5;color:#738891}
.priority-2{background:#edf4ff;color:#607fa2}
.priority-3{background:#fff2e2;color:#ae7730}
.priority-4{background:#fff0f0;color:#c03d46}
.table-date{white-space:nowrap;font-size:10.5px;color:#8396a0}
.table-go{width:27px;height:27px;display:grid;place-items:center;border:1px solid #edf1f3;border-radius:7px;color:#9badb5}
.table-go:hover{background:#fff3f3;color:#bd2532;border-color:#f8d8dc}
/* Kanban */
.kanban-board{display:grid;grid-template-columns:repeat(5,minmax(215px,1fr));align-items:start;gap:13px;overflow-x:auto;padding:0 1px 22px;scrollbar-width:thin}
.kanban-column{background:#eef2f5;border:1px solid #e6ecef;border-radius:14px;padding:11px 10px;min-height:260px;min-width:215px}
.kanban-column-header{display:flex;align-items:center;gap:8px;padding:1px 4px 13px}
.kanban-column-header h2{font-size:12px;font-weight:850;margin:0;color:#334851;flex:1}
.column-status{width:20px;height:20px;border-radius:6px;display:grid;place-items:center;font-size:7px}
.kanban-count{font-size:10px;color:#7d929e;background:#fff;border-radius:7px;padding:1px 7px;font-weight:800}
.kanban-column-body{display:flex;flex-direction:column;gap:9px}
.kanban-task{background:#fff;color:#354954;border:1px solid #e5ebee;border-radius:11px;padding:13px 12px;display:flex;flex-direction:column;gap:9px;box-shadow:0 2px 8px #263b4a08;transition:transform .15s,border-color .15s}
.kanban-task:hover{color:#283f49;border-color:#d9e3e8;transform:translateY(-2px)}
.kanban-project{color:#90a3ab;font-size:10px}
.kanban-project i,.kanban-project .svg-inline--fa{margin-left:5px}
.kanban-task>strong{font-size:12px;font-weight:850;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kanban-meta{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap;color:#92a2ab;font-size:9px}
.kanban-people{border-top:1px solid #eef2f4;padding-top:8px;font-size:9px;color:#8598a2}
.kanban-empty{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:8px;color:#a6b4bb;font-size:10px;min-height:110px}
.kanban-empty i,.kanban-empty .svg-inline--fa{font-size:20px}
/* Projects */
.project-grid>.col-md-6{display:flex}
.project-card{position:relative;display:flex;flex-direction:column;flex:1;min-height:257px;padding:19px 20px;background:#fff;border:1px solid #e7edf0;border-radius:15px;box-shadow:var(--shadow);color:#344953;transition:transform .18s,box-shadow .18s,border-color .18s;overflow:hidden}
.project-card:hover{transform:translateY(-3px);box-shadow:0 11px 28px #253f4a12;border-color:#d3e0e6;color:#344953}
.project-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}
.project-card-icon{width:42px;height:42px;border-radius:12px;background:#eef4f5;color:#506f78;display:grid;place-items:center;font-size:18px}
.project-status{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:800;padding:4px 9px;border-radius:7px;background:#edf5f9;color:#4f8397}
.project-status .svg-inline--fa,.project-status i{font-size:6px}
.project-status-active{background:#eaf7ee;color:#3f9163}
.project-status-planned{background:#edf2f5;color:#667f8b}
.project-status-on_hold{background:#fff3e6;color:#b17e34}
.project-status-completed{background:#eaf7ee;color:#3f9163}
.project-card h2{margin:0 0 5px;font-size:16px;color:#2b424b;font-weight:850;line-height:1.65;overflow-wrap:anywhere}
.project-card p{color:#92a0a8;font-size:11px;line-height:1.85;min-height:37px;margin:0 0 10px}
.project-category{display:inline-block;align-self:start;color:#718b95;background:#f1f5f6;border-radius:7px;padding:2px 9px;font-size:10px;font-weight:700;margin-bottom:17px}
.project-card-progress{margin-top:auto}
.project-card-progress>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:7px}
.project-card-progress span{font-size:10px;color:#8da0a9}
.project-card-progress strong{color:#35515c;font-size:11px}
.project-card-foot{border-top:1px solid #edf1f3;padding-top:13px;margin-top:15px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#96a5ad}
.project-card-foot>i,.project-card-foot>.svg-inline--fa{color:#d21d2a;font-size:11px}
.project-card-foot span i,.project-card-foot span .svg-inline--fa{margin-left:4px}
/* Project and task details */
.project-detail-stats{margin-bottom:16px}
.detail-stat{display:flex;align-items:center;justify-content:space-between;gap:9px;background:#fff;border:1px solid #e8edf0;border-radius:12px;padding:15px 17px;box-shadow:var(--shadow)}
.detail-stat span{font-size:11px;color:#8599a3}
.detail-stat strong{font-size:20px;color:#273e47;line-height:1.2}
.detail-sidebar-card{padding:19px 21px}
.detail-sidebar-card .section-title{margin-bottom:9px}
.info-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #eff3f5;font-size:11px}
.info-line:last-child{border-bottom:0}
.info-line span{color:#8699a3;flex:none}
.info-line strong{font-size:11px;color:#2d444e;text-align:left;overflow-wrap:anywhere}
.project-progress-summary{background:#f7f9fa;border-radius:11px;padding:11px 12px;margin-bottom:6px}
.project-progress-summary>div:first-child{display:flex;justify-content:space-between;margin-bottom:7px;color:#8b9da5;font-size:10px}
.project-progress-summary strong{color:#d21d2a}
.member-mini{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #eff2f4}
.member-mini:last-of-type{border-bottom:0}
.member-mini .avatar{width:31px;height:31px;border-radius:10px;background:#edf4f5;color:#50727d;font-size:12px}
.member-mini>div{display:flex;flex-direction:column;gap:0}
.member-mini strong{font-size:11px;color:#2e4650}
.member-mini small{font-size:9px;color:#91a4ad}
.team-assign-form{border-top:1px solid #ecf0f2;margin-top:12px;padding-top:15px}
.description-text{color:#526973;font-size:12.5px;line-height:2.1;min-height:65px;overflow-wrap:anywhere}
.comment-thread{display:flex;flex-direction:column;gap:0}
.comment-row{display:flex;align-items:flex-start;gap:12px;padding:14px 0;border-bottom:1px solid #eef2f4}
.comment-row .avatar{background:#eff3f5;color:#597581;width:33px;height:33px;flex:none;border-radius:10px;font-size:12px}
.comment-body{flex:1;min-width:0}
.comment-meta{display:flex;justify-content:space-between;align-items:center;gap:10px}
.comment-meta strong{font-size:11px;color:#2e444f}
.comment-meta time{font-size:9px;color:#a1b0b9}
.comment-body p{font-size:11px;color:#637a85;margin:5px 0 0;overflow-wrap:anywhere}
.comment-compose{border-top:1px solid #eef2f4;margin-top:17px;padding-top:17px}
.activity-timeline{display:flex;flex-direction:column;gap:0;margin:5px 0}
.activity-item{display:flex;gap:12px;align-items:flex-start;padding:10px 0;position:relative}
.activity-item:before{content:"";position:absolute;right:5px;top:25px;bottom:-11px;border-right:1px solid #e8eef1}
.activity-item:last-child:before{display:none}
.activity-dot{width:11px;height:11px;border:3px solid #f4d5d7;background:#c52a35;border-radius:50%;margin-top:6px;flex:none;z-index:1}
.activity-item>div{display:flex;flex-wrap:wrap;gap:3px 7px;align-items:center;font-size:11px;color:#6f8792}
.activity-item strong{font-size:11px;color:#2d4752}
.activity-item small{display:block;flex-basis:100%;font-size:9px;color:#a2b0b8}
/* Forms, team, settings */
.form-layout>.col-lg-8>.content-card{padding:23px 26px}
.form-layout .row.g-3{margin-bottom:2px}
.form-actions{margin-top:24px;padding-top:18px;border-top:1px solid #edf1f3;display:flex;gap:9px;flex-wrap:wrap}
.form-help{padding:22px!important;border:1px solid #e8edf0;background:#fff}
.form-help-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#fff0f1;color:var(--brand-red);font-size:17px;margin-bottom:14px}
.form-help h2{font-weight:850;font-size:14px;color:#2e4650;margin:0 0 9px}
.form-help p{color:#8397a1;font-size:11px;line-height:2}
.form-help ul{color:#6f838f;font-size:11px;padding-right:18px;margin:8px 0 0;line-height:2.5}
.form-context{background:#f1f5f6;color:#748b95;border-radius:9px;padding:9px 12px;margin-bottom:19px;font-size:11px;display:flex;gap:7px;align-items:center}
.approval-option{border:1px solid #ebeff2;background:#f9fafb;padding:13px 15px;border-radius:11px;display:flex;align-items:flex-start;gap:11px}
.approval-option .form-check-input{float:none;margin:4px 0 0;flex:none;border-color:#c7d4d9}
.approval-option .form-check-input:checked{background-color:var(--brand-red);border-color:var(--brand-red)}
.approval-option label{display:flex;flex-direction:column;gap:2px;cursor:pointer}
.approval-option strong{color:#314955;font-size:12px}
.approval-option small{font-size:10.5px;color:#899ca6}
.form-notice,.info-tip{display:flex;gap:9px;align-items:flex-start;background:#edf4f7;border:1px solid #e1edf0;border-radius:10px;padding:11px 12px;color:#5c7a87;font-size:10.5px;line-height:1.9;margin-top:10px}
.team-person{display:flex;align-items:center;gap:9px}
.team-person .avatar{width:32px;height:32px;border-radius:10px;background:#eef4f6;color:#537481}
.team-person strong{font-size:11px;color:#314952}
.password-field{position:relative}
.password-field .form-control{padding-left:44px}
.password-field-toggle{position:absolute;left:5px;top:5px;width:36px;height:35px;border:0;border-radius:7px;background:transparent;color:#8fa2ad}
.password-field-toggle:hover{background:#f0f4f5;color:#495e69}
.profile-summary{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.profile-summary .avatar-lg{width:48px;height:48px;font-size:19px;border-radius:13px;background:#fff0f1;color:#c92a36}
.profile-summary>div{flex:1;min-width:150px;display:flex;flex-direction:column}
.profile-summary strong{font-size:13px;color:#2b414a}
.profile-summary small{font-size:11px;color:#8fa1aa;overflow-wrap:anywhere}
/* Login */
.login-shell{min-height:100dvh}
.login-intro{background:linear-gradient(145deg,#243840,#1d2b33 73%)}
.login-identity img{max-width:200px}
.login-intro-copy h2{letter-spacing:-1px}
.login-card{max-width:455px}
.login-card .form-label{font-weight:750}
.login-note{line-height:2}
/* Responsive */
@media (max-width:1400px){
 .topbar-search{width:210px}
 .kanban-board{grid-template-columns:repeat(5,240px)}
}
@media (max-width:1199px){
 .sidebar{width:222px}
 .page-content{padding:25px 23px 55px}
 .topbar{padding:0 24px}
 .topbar-search{display:none}
 .stats-row .stat-card{min-height:132px}
}
@media (max-width:991px){
 .sidebar{position:fixed;right:-270px;width:254px;height:100dvh;transition:right .2s ease}
 .sidebar.open{right:0}
 .sidebar-mobile-close{display:grid;place-items:center;position:absolute;left:0;top:13px}
 .side-brand{padding-left:34px}
 .topbar{height:62px;min-height:62px;padding:0 20px}
 .page-content{padding:24px 20px 54px}
 .dashboard-grid>.col-lg-7,.dashboard-grid>.col-lg-5{display:block}
 .dashboard-panel{margin-bottom:15px}
 .kanban-board{grid-template-columns:repeat(5,235px)}
 .form-help{margin-top:0}
}
@media (max-width:767px){
 .topbar-date{display:none}
 .topbar{padding:0 15px}
 .page-content{padding:20px 14px 44px}
 .page-heading{align-items:flex-start;gap:13px;margin-bottom:17px}
 .page-heading h1{font-size:22px}
 .page-heading p{font-size:11.5px}
 .page-heading .heading-actions{width:100%}
 .page-heading .heading-actions .btn{flex:1}
 .page-heading>.btn{width:100%}
 .content-card{padding:18px 16px}
 .dashboard-focus{padding:12px 14px}
 .work-item-end{min-width:116px}
 .work-item-arrow{display:none}
 .topbar-breadcrumb{font-size:11px}
 .user-chip{padding-right:0}
 .user-copy{display:none}
 .stats-row .stat-card{min-height:128px;padding:14px 14px}
 .stats-row .stat-number{font-size:25px}
 .stats-row .stat-icon{width:32px;height:32px;font-size:12px}
 .section-title h2{font-size:14px}
 .filter-form{gap:9px}
 .filter-search{flex-basis:100%}
 .filter-field{flex:1 1 140px}
 .filter-checkbox{flex:1 1 140px}
 .btn-filter{flex:1 1 90px}
 .project-card{min-height:244px}
 .detail-stat{padding:13px}
 .detail-stat strong{font-size:17px}
 .form-layout>.col-lg-8>.content-card{padding:19px 17px}
}
@media (max-width:575px){
 .page-heading h1{font-size:20px}
 .page-heading p{font-size:10.5px}
 .page-heading>.btn{width:100%}
 .stats-row{--bs-gutter-x:10px;--bs-gutter-y:10px}
 .stats-row .stat-card{min-height:123px;padding:12px}
 .stats-row .stat-number{font-size:22px}
 .stats-row .stat-hint{font-size:9px}
 .dashboard-focus{align-items:flex-start;flex-direction:column;gap:8px}
 .focus-link{align-self:flex-end}
 .dashboard-panel{min-height:0}
 .work-item{gap:9px;padding:12px 0}
 .work-item-status{width:28px;height:28px}
 .work-item-content strong{font-size:11px}
 .work-item-end{min-width:0;max-width:118px}
 .work-date{font-size:9px}
 .status-pill{font-size:9px;padding:3px 7px}
 .section-action{font-size:10px}
 .list-toolbar{gap:7px}
 .list-toolbar>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:0}
 .kanban-board{grid-template-columns:repeat(5,minmax(245px,78vw));scroll-snap-type:x proximity}
 .kanban-column{scroll-snap-align:start}
 .login-card{padding:25px 19px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
