
:root{
  --sidebar:#061326;
  --sidebar-2:#0b1b31;
  --main:#f7f9fc;
  --card:#ffffff;
  --ink:#0f172a;
  --muted:#667085;
  --muted-2:#94a3b8;
  --line:#e1e7ef;
  --line-2:#eef2f7;
  --yellow:#f6c900;
  --yellow-2:#fff4c7;
  --blue:#2563eb;
  --green:#21a05b;
  --red:#ef4444;
  --orange:#ff6b13;
  --purple:#8b5cf6;
  --cyan:#0ea5e9;
  --radius:18px;
  --shadow:0 22px 55px rgba(15,23,42,.075);
  --soft-shadow:0 10px 26px rgba(15,23,42,.055);
  --font:Inter, Segoe UI, Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--main);font-family:var(--font);color:var(--ink);font-size:14px;overflow-x:hidden}
button,input,select,textarea{font-family:inherit}
button{border:0;cursor:pointer}
svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
input,select,textarea{border:1px solid #cfd8e5;background:#fff;border-radius:10px;outline:none;color:#1f2937;font-size:14px;transition:.16s}
input,select{height:42px;padding:0 12px}
textarea{min-height:82px;padding:12px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#caa600;box-shadow:0 0 0 3px rgba(246,201,0,.16)}
a{color:inherit}

.sidebar{
  position:fixed;left:0;top:0;bottom:0;width:284px;background:linear-gradient(180deg,var(--sidebar),#08182d 62%,#102038);
  color:#fff;padding:28px 18px;z-index:30;display:flex;flex-direction:column;box-shadow:16px 0 34px rgba(2,8,23,.2)
}
.brand{display:flex;align-items:center;gap:14px;height:74px;margin-bottom:28px;padding:0 8px}
.brand-mark{width:54px;height:54px;border-radius:12px;background:linear-gradient(135deg,#ffdf36,#e9b800);color:#091629;font-size:38px;font-weight:1000;line-height:54px;text-align:center;letter-spacing:-.12em;box-shadow:0 12px 25px rgba(246,201,0,.28)}
.brand-copy strong{display:block;font-size:22px;letter-spacing:.04em;line-height:1}
.brand-copy span{display:block;color:#d3deee;margin-top:6px}
.nav{display:grid;gap:10px}
.nav-item{height:62px;border-radius:12px;background:transparent;color:#e5edf7;display:flex;align-items:center;gap:16px;padding:0 18px;font-size:16px;font-weight:700;position:relative;transition:.18s}
.nav-item:hover{background:rgba(255,255,255,.07)}
.nav-item.active{background:linear-gradient(90deg,rgba(255,255,255,.11),rgba(255,255,255,.055));color:var(--yellow)}
.nav-item.active::after{content:"";position:absolute;right:0;top:10px;width:4px;height:42px;background:var(--yellow);border-radius:999px}
.nav-item svg{width:23px;height:23px}
.quick{margin-top:30px;padding-top:26px;border-top:1px solid rgba(255,255,255,.09);display:grid;gap:12px}
.quick p{font-size:12px;color:#9babc0;font-weight:800;letter-spacing:.08em;margin:0 0 8px}
.quick a{height:42px;text-decoration:none;display:grid;grid-template-columns:26px 1fr 18px;align-items:center;gap:11px;color:#e6edf7;font-size:15px}
.quick a:hover{color:var(--yellow)}
.quick b{font-size:17px;color:#7f8fa5}
.side-bottom{margin-top:auto;border-bottom:1px solid rgba(255,255,255,.10);padding-bottom:16px;display:flex;align-items:end;justify-content:space-between}
.updated span{display:block;font-size:12px;color:#9babc0}.updated strong{display:block;margin-top:7px;font-size:13px;color:#fff}
.side-refresh{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);color:#fff;display:grid;place-items:center}
.profile{height:74px;margin-top:18px;border-radius:18px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.10);display:flex;align-items:center;gap:12px;padding:12px}
.avatar{width:38px;height:38px;border-radius:50%;display:inline-grid;place-items:center;font-weight:900;font-size:12px;flex:0 0 auto}
.avatar.yellow{background:var(--yellow);color:#0f172a;box-shadow:0 10px 22px rgba(246,201,0,.18)}
.avatar.dark{background:#344054;color:#fff}
.profile strong{display:block}.profile small{display:block;color:#c8d3e2;margin-top:3px}.profile svg{margin-left:auto;width:16px}

.main{margin-left:284px;min-height:100vh;padding:34px 38px 42px}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:28px}
.page-head h1{font-size:38px;letter-spacing:-.045em;line-height:1;margin:0 0 8px}
.page-head p{color:var(--muted);font-size:16px;margin:0}
.head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.global-search{height:54px;width:min(430px,42vw);background:#fff;border:1px solid var(--line);border-radius:14px;display:flex;align-items:center;gap:10px;padding:0 16px;box-shadow:var(--soft-shadow)}
.global-search input{border:0;padding:0;width:100%;height:44px}
.global-search input:focus{box-shadow:none}
.bell{width:52px;height:52px;border-radius:14px;background:#fff;border:1px solid var(--line);box-shadow:var(--soft-shadow);display:grid;place-items:center;position:relative;color:#334155}
.bell i{position:absolute;right:13px;top:11px;width:9px;height:9px;background:var(--yellow);border-radius:50%}
.btn-primary,.btn-outline,.btn-danger,.btn-delete,.btn-mini{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:850;border-radius:12px;height:50px;padding:0 18px;white-space:nowrap}
.btn-primary{background:var(--yellow);color:#111827;box-shadow:0 12px 24px rgba(246,201,0,.24)}
.btn-primary:hover{filter:brightness(.98)}
.btn-outline{background:#fff;border:1px solid var(--line);color:#1f2937}
.btn-outline:hover{border-color:#cbd5e1;background:#f8fafc}
.btn-danger{background:#ef4444;color:#fff}
.btn-delete{background:#fff;border:1px solid #fecaca;color:#dc2626}
.btn-delete:hover{background:#fef2f2}
.btn-mini{height:42px;width:44px;padding:0;background:#fff;border:1px solid var(--line)}
.view{display:none}.view.active{display:block}

.kpi-row{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:16px;margin-bottom:22px}
.kpi-card{height:112px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--soft-shadow);padding:18px;display:grid;grid-template-columns:62px 1fr;align-items:center;gap:16px}
.kpi-icon{width:60px;height:60px;border-radius:50%;display:grid;place-items:center}.kpi-icon svg{width:29px;height:29px}
.kpi-card span{font-size:13px;font-weight:800;color:#344054}.kpi-card strong{display:block;font-size:30px;line-height:1;margin:5px 0}.kpi-card small{color:#56708c}
.kpi-blue{background:#dbeafe;color:#2563eb}.kpi-green{background:#dcfce7;color:#18a35b}.kpi-yellow{background:#fff1bf;color:#bd8200}.kpi-purple{background:#ede9fe;color:#7c3aed}.kpi-red{background:#fee2e2;color:#ef4444}

.dash-grid{display:grid;grid-template-columns:1.1fr 1.2fr .78fr;gap:18px;align-items:start}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.card-lite{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--soft-shadow)}
.card-title{padding:22px 24px 0}.card-title h3{font-size:20px;margin:0}.card-title p{color:var(--muted);margin:8px 0 0}
.card-title.inline{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.link{background:transparent;color:#0b66d8;font-weight:800;padding:0}
.chart-card{min-height:330px}
.alerts-card{min-height:330px}
.donut-wrap{display:grid;grid-template-columns:220px 1fr;align-items:center;gap:20px;padding:24px}
.donut{width:205px;height:205px;border-radius:50%;display:grid;place-items:center;background:#e5e7eb;position:relative}
.donut::after{content:"";position:absolute;width:106px;height:106px;border-radius:50%;background:#fff}
.donut span{position:relative;z-index:1;font-size:34px;font-weight:900;text-align:center}.donut small{display:block;font-size:13px;font-weight:500;color:#475569;margin-top:4px}
.legend{display:grid;gap:12px}.legend-row{display:grid;grid-template-columns:12px 1fr auto;gap:11px;align-items:center;font-weight:800}.legend-dot,.event-dot{width:11px;height:11px;border-radius:4px;display:inline-block}
.priority-bars{height:245px;margin:20px 24px 0;display:grid;grid-template-columns:repeat(4,1fr);gap:32px;align-items:end;border-bottom:1px solid var(--line-2);padding:0 34px 30px;position:relative}
.priority-bars::before,.priority-bars::after{content:"";position:absolute;left:58px;right:26px;height:1px;background:var(--line-2)}
.priority-bars::before{top:54px}.priority-bars::after{top:122px}
.bar-item{height:180px;display:grid;align-items:end;justify-items:center;position:relative;z-index:1}
.bar-item b{font-weight:900;margin-bottom:7px}.bar-item i{display:block;width:70px;border-radius:9px 9px 4px 4px;min-height:10px}.bar-item span{position:absolute;bottom:-25px;color:#475569;font-size:13px}
.card-link,.table-link{height:50px;border-top:1px solid var(--line);background:#fff;color:#0b66d8;font-weight:850;display:flex;align-items:center;gap:9px;padding:0 24px}
.card-link svg,.table-link svg{width:18px}
.alerts-list{padding:22px 24px;display:grid;gap:18px}
.alert-item{display:grid;grid-template-columns:42px 1fr auto;gap:13px;align-items:start}
.alert-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center}
.alert-icon svg{width:22px;height:22px}.alert-item strong{display:block;font-size:14px}.alert-item small,.alert-item time{color:#667085;font-size:12px}
.table-card{grid-column:span 2}.next-card{min-height:325px}
.table-scroll{overflow:auto}
.table-scroll table{width:100%;border-collapse:separate;border-spacing:0;min-width:1020px}
.projects-table table{min-width:1360px}
th{height:48px;background:#f8fafc;color:#667085;text-transform:uppercase;letter-spacing:.07em;font-size:11px;font-weight:900;text-align:left;padding:0 18px;border-bottom:1px solid var(--line)}
td{height:72px;border-bottom:1px solid var(--line-2);padding:12px 18px;white-space:nowrap;vertical-align:middle}
tr.project-row{cursor:pointer}tr.project-row:hover td{background:#fffdf0}
.client-cell{display:flex;align-items:center;gap:10px}
.client-avatar{width:34px;height:34px;border-radius:12px;background:#f1f5f9;border:1px solid var(--line);display:grid;place-items:center;font-weight:900}
.project-name strong{display:block}.project-name small{display:block;color:#667085;margin-top:3px}
.owner{display:flex;align-items:center;gap:10px}
.badge{height:28px;border-radius:999px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;font-weight:850;font-size:12px}
.badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.badge.red{background:#fee2e2;color:#ef4444}.badge.orange{background:#ffedd5;color:#f97316}.badge.yellow{background:#fff7cc;color:#a16207}.badge.green{background:#dcfce7;color:#16a34a}.badge.blue{background:#dbeafe;color:#2563eb}.badge.gray{background:#e5e7eb;color:#475569}.badge.purple{background:#ede9fe;color:#7c3aed}
.progress-pill{display:inline-flex;align-items:center;gap:10px}.progress-pill i{width:72px;height:7px;border-radius:999px;background:#e8edf4;overflow:hidden}.progress-pill b{height:100%;display:block;background:linear-gradient(90deg,#86efac 0%, #22c55e 55%, #15803d 100%);border-radius:999px;transition:width .25s ease, box-shadow .25s ease}
.action-group{display:flex;gap:6px}.icon-action{width:54px;height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;display:grid;place-items:center;gap:2px;color:#344054;font-size:10px;font-weight:800}.icon-action svg{width:18px;height:18px}.icon-action:hover{border-color:var(--yellow);background:#fffdf0}
.next-actions{padding:18px 24px;display:grid;gap:14px}.next-item{display:grid;grid-template-columns:42px 1fr;gap:13px}.next-date{text-align:center;color:#0f172a;font-weight:900}.next-date small{display:block;color:#667085;font-size:11px}.next-item strong{display:block}.next-item span{display:block;color:#667085;font-size:12px;margin-top:2px}
.soft-btn{height:44px;margin:6px 24px 22px;width:calc(100% - 48px);border-radius:12px;background:#fff2bd;color:#9c6b00;font-weight:900;display:flex;align-items:center;justify-content:center;gap:8px}
.bottom-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-top:20px;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--soft-shadow);overflow:hidden}
.bottom-shortcuts button{height:104px;background:#fff;border-right:1px solid var(--line);display:grid;grid-template-columns:58px 1fr 22px;align-items:center;text-align:left;gap:12px;padding:0 22px}
.bottom-shortcuts button:last-child{border-right:0}.bottom-shortcuts strong{display:block}.bottom-shortcuts small{display:block;color:#667085;margin-top:5px}.round-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center}.round-icon.blue{background:#dbeafe;color:#2563eb}.round-icon.purple{background:#ede9fe;color:#7c3aed}.round-icon.violet{background:#f3e8ff;color:#8b5cf6}.round-icon.cyan{background:#e0f2fe;color:#0284c7}

.projects-filters,.planning-filters{display:flex;align-items:end;gap:16px;padding:20px;margin-bottom:22px;flex-wrap:wrap}
.projects-filters label,.planning-filters label,.calendar-toolbar label{display:grid;gap:5px;color:#344054;font-size:12px;font-weight:700}.projects-filters select,.planning-filters select{min-width:210px}
.projects-table-card{min-height:560px}.table-footer{height:66px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:#667085}.pagination{display:flex;gap:8px}.pagination button{width:36px;height:36px;border-radius:10px;background:#fff;border:1px solid var(--line);font-weight:900}.pagination .active{background:var(--yellow);border-color:var(--yellow)}
.doc-count,.ticket-count{display:inline-flex;align-items:center;gap:6px;color:#344054;font-weight:800}.doc-count svg,.ticket-count svg{width:17px}

/* Calendar */
.calendar-shell{padding:22px}
.calendar-toolbar{display:grid;grid-template-columns:180px 180px 180px 1fr auto;gap:14px;align-items:end;margin-bottom:22px}
.month-nav{display:flex;align-items:center;justify-content:center;gap:9px}.month-nav strong{font-size:17px;margin-left:12px}
.calendar-mode{display:flex;gap:8px}.calendar-mode button{height:42px;padding:0 16px;border-radius:10px;background:#fff;border:1px solid var(--line);font-weight:800}.calendar-mode .active{background:#fff1c2;border-color:#ffe388}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px}
.week-head,.month-grid{display:grid;grid-template-columns:repeat(7,1fr)}
.week-head span{height:44px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border:1px solid var(--line);border-right:0;color:#64748b;font-size:12px;font-weight:900}.week-head span:last-child{border-right:1px solid var(--line)}
.day{min-height:128px;border:1px solid var(--line);border-top:0;border-right:0;padding:12px;background:#fff;overflow:hidden}.day:nth-child(7n){border-right:1px solid var(--line)}.day.out{background:#fbfcfe;color:#a5b0bf}.day.today{background:#fff9df;box-shadow:inset 0 0 0 2px var(--yellow)}
.day-number{font-weight:800;margin-bottom:8px}.event{border-radius:7px;margin-top:6px;padding:7px 8px;font-size:12px;font-weight:850;line-height:1.2}.event small{display:block;font-weight:650;margin-top:2px}.event.purple{background:#eee7ff;color:#6d28d9}.event.yellow{background:#fff1bd;color:#946900}.event.green{background:#dcfce7;color:#16803d}.event.blue{background:#dbeafe;color:#1d4ed8}.event.red{background:#fee2e2;color:#dc2626}
.calendar-legend{height:54px;display:flex;align-items:center;gap:22px;color:#667085;font-size:12px}.calendar-legend span{display:flex;align-items:center;gap:7px}.event-dot.purple{background:#8b5cf6}.event-dot.yellow{background:var(--yellow)}.event-dot.green{background:#22c55e}.event-dot.blue{background:#3b82f6}.event-dot.red{background:#ef4444}
.agenda{padding:22px}.agenda-head{display:flex;justify-content:space-between;gap:12px}.agenda h3{margin:0;font-size:20px}.agenda p{margin:7px 0 0;color:#667085}.round-action{width:44px;height:44px;border-radius:12px;border:1px solid var(--line);display:grid;place-items:center}.agenda-items{display:grid;gap:20px;margin:26px 0}.agenda-item{display:grid;grid-template-columns:8px 58px 1fr;gap:13px;border-bottom:1px solid var(--line-2);padding-bottom:18px}.agenda-item i{width:8px;height:8px;border-radius:50%;margin-top:6px}.agenda-item time{color:#64748b;font-weight:800}.agenda-item strong{display:block}.agenda-item small{display:block;color:#667085;margin-top:4px}.full{width:100%}

/* Planning */
.planning-kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:22px}.planning-filters{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr)) minmax(230px,1fr) auto}.task-search{height:42px;border:1px solid var(--line);border-radius:10px;background:#fff;display:flex!important;align-items:center;gap:8px;padding:0 12px}.task-search input{border:0;height:38px;padding:0;width:100%}.task-search input:focus{box-shadow:none}
.kanban{display:grid;grid-template-columns:repeat(4,minmax(250px,1fr));gap:18px}.kanban-col{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--soft-shadow);overflow:hidden}.kanban-head{height:62px;padding:0 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:17px;font-weight:900}.kanban-head div{display:flex;align-items:center;gap:10px}.kanban-head i{width:10px;height:10px;border-radius:50%}.kanban-head b{background:#f1f5f9;border:1px solid var(--line);border-radius:10px;padding:5px 10px;font-size:14px}
.task-list{display:grid;gap:12px;padding:14px}.task-card{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 20px rgba(15,23,42,.04);padding:14px;cursor:pointer}.task-card:hover{border-color:var(--yellow)}
.task-card h4{margin:0 0 7px}.task-card a{color:#2563eb;font-weight:800;text-decoration:none;font-size:13px;display:block}.task-client{display:block;margin-top:4px;color:#64748b;font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:none}.task-owner{display:flex;align-items:center;gap:9px;margin:14px 0;color:#64748b;font-size:13px}.task-foot{display:flex;align-items:center;justify-content:space-between;color:#64748b;font-size:12px}.task-check-progress{display:flex;align-items:center;gap:8px}.task-check-progress i{width:50px;height:6px;background:#e8edf4;border-radius:999px;overflow:hidden}.task-check-progress b{height:100%;background:linear-gradient(90deg,#86efac 0%, #22c55e 55%, #15803d 100%);display:block;transition:width .25s ease, box-shadow .25s ease;border-radius:999px}
.add-task{height:48px;width:calc(100% - 28px);margin:0 14px 14px;background:#fff;border-top:1px solid var(--line);color:#2563eb;font-weight:850;display:flex;align-items:center;justify-content:flex-start;gap:8px}
.kanban-help{text-align:center;color:#667085;margin:24px}.kanban-help svg{width:16px;vertical-align:-3px}

/* Modals faithful */
.modal{border:0;padding:0;border-radius:18px;box-shadow:0 30px 90px rgba(2,6,23,.38);overflow:hidden}
.modal::backdrop{background:rgba(15,23,42,.58);backdrop-filter:blur(5px)}
.project-modal{width:min(1120px,calc(100vw - 42px));max-height:calc(100vh - 38px)}
.project-modal form{height:min(900px,calc(100vh - 38px));display:grid;grid-template-rows:auto 1fr auto;background:#fff}
.project-modal-head{background:linear-gradient(135deg,#0b1628,#172438);color:#fff;min-height:110px;padding:26px 34px;display:grid;grid-template-columns:7px 1fr 48px;gap:18px;align-items:start}
.modal-title-line{width:6px;height:64px;background:var(--yellow);border-radius:999px}.project-modal-head h2{margin:0;font-size:29px;letter-spacing:-.035em}.project-modal-head p{margin:8px 0 0;color:#dce4ee}
.close-danger{width:48px;height:48px;border-radius:14px;background:#ef4444;color:#fff;display:grid;place-items:center;box-shadow:0 12px 28px rgba(239,68,68,.24)}.close-danger svg{width:23px;height:23px;stroke-width:3}
.project-modal-body{overflow:auto;padding:24px 34px}.form-block{padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid var(--line)}.form-block:last-child{border-bottom:0;margin-bottom:0}.form-block h3{display:flex;align-items:center;gap:11px;font-size:18px;margin:0 0 14px}.form-block h3 svg{color:#2563eb}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 28px}.form-grid label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#344054}.form-grid input,.form-grid select,.form-grid textarea{width:100%}.span-2{grid-column:span 2}
.progress-input{display:grid;grid-template-columns:100px 1fr 44px;gap:12px;align-items:center}.line-progress{height:8px;background:#e8edf4;border-radius:999px;overflow:hidden}.line-progress i{height:100%;width:0;background:linear-gradient(90deg,#86efac 0%, #22c55e 55%, #15803d 100%);display:block;transition:width .25s ease, box-shadow .25s ease;border-radius:999px;box-shadow:0 2px 8px rgba(34,197,94,.18)}.progress-input b{text-align:right}
.link-input{height:42px;border:1px solid #cfd8e5;border-radius:10px;display:flex;align-items:center;gap:8px;padding:0 12px;background:#fff}.link-input input{border:0;height:38px;padding:0}.link-input input:focus{box-shadow:none}.link-input svg{width:18px;color:#2563eb}
.governance-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.gov-item{height:44px;border:1px solid var(--line);border-radius:11px;background:#f8fafc;display:flex;align-items:center;gap:10px;padding:0 12px;font-weight:750}.gov-item input{width:18px;height:18px}
.modal-footer{height:78px;border-top:1px solid var(--line);padding:0 34px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px}.modal-footer>div{display:flex;gap:12px}

/* task modal */
.task-modal{width:min(760px,calc(100vw - 36px));max-height:calc(100vh - 32px)}.task-modal form{height:min(860px,calc(100vh - 32px));display:grid;grid-template-rows:auto 1fr auto;background:#fff}
.task-modal-head{padding:24px 28px 18px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.task-modal-head h2{font-size:24px;margin:0}.task-modal-head p{margin:8px 0 0;color:#667085}.task-check{display:inline-block;width:18px;height:18px;border:2px solid #111827;border-radius:50%;margin-right:10px;vertical-align:-2px}
.task-modal-body{overflow:auto;padding:22px 28px}.task-meta-line{display:flex;gap:18px;align-items:center;margin-bottom:20px}.tag-red{height:30px;padding:0 10px;border-radius:8px;background:#fee2e2;color:#b91c1c;display:inline-flex;align-items:center;gap:9px}.tag-red button{background:transparent;color:inherit}
.task-people{display:flex;gap:7px}.task-tabs{display:flex;gap:10px;margin:12px 0 18px}.task-tabs button{height:42px;border-radius:999px;padding:0 18px;display:flex;align-items:center;gap:8px;font-weight:850;background:#f1f5f9;color:#344054}.task-tabs .active{background:#6d5dfc;color:#fff}
.checklist-section{margin-top:22px}.checklist-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.checklist-head h3{margin:0}.checklist-head span{font-weight:700;color:#475569}.show-board{display:flex!important;grid-template-columns:auto!important;align-items:center;gap:8px;font-weight:650!important;color:#475569!important}.show-board input{height:auto;width:auto}
.task-checklist{margin:12px 0;display:grid;gap:8px}.check-row{display:grid;grid-template-columns:24px 1fr 34px;gap:10px;align-items:center}.check-row input[type=checkbox]{height:18px;width:18px}.check-row input[type=text]{height:38px}.check-row button{height:34px;border-radius:9px;background:#f8fafc;border:1px solid var(--line);font-weight:900}
.delete-modal{width:min(470px,calc(100vw - 36px))}.delete-box{position:relative;background:#fff;padding:32px}.delete-box .close-danger{position:absolute;right:18px;top:18px;width:42px;height:42px}.delete-icon{width:58px;height:58px;border-radius:50%;background:#fee2e2;color:#dc2626;display:grid;place-items:center;margin-bottom:18px}.delete-box h2{margin:0 0 10px}.delete-box p{color:#475569}.delete-box input{width:100%;margin:10px 0 18px}.delete-actions{display:flex;justify-content:flex-end;gap:12px}
.toast{position:fixed;right:28px;bottom:28px;background:#0f172a;color:#fff;border-radius:14px;padding:14px 18px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);transition:.2s;z-index:200}.toast.show{opacity:1;transform:none}

/* Responsive, exact behavior */
@media(max-width:1600px){
  .kpi-row{grid-template-columns:repeat(3,1fr)}
  .dash-grid{grid-template-columns:1fr 1fr}.alerts-card,.next-card{min-height:auto}.table-card{grid-column:1/-1}.next-card{grid-column:1/-1}.bottom-shortcuts{grid-template-columns:repeat(2,1fr)}
  .calendar-layout{grid-template-columns:1fr}.agenda{min-height:auto}.calendar-toolbar{grid-template-columns:repeat(3,1fr)}
  .month-nav,.calendar-mode{justify-self:start}
}
@media(max-width:1220px){
  .sidebar{width:238px;padding:22px 14px}.main{margin-left:238px;padding:28px 22px}.brand-copy strong{font-size:18px}.nav-item{font-size:14px}
  .kanban{grid-template-columns:repeat(2,1fr)}.planning-kpi-row{grid-template-columns:repeat(2,1fr)}.planning-filters{grid-template-columns:1fr 1fr}
  .page-head{flex-direction:column}.global-search{width:min(100%,520px)}
}
@media(max-width:920px){
  .sidebar{position:static;width:auto;min-height:auto}.main{margin-left:0;padding:20px 14px}.brand{height:auto}.quick,.side-bottom,.profile{display:none}.nav{display:flex;overflow:auto}.nav-item{min-width:170px}.nav-item.active::after{left:18px;right:auto;top:auto;bottom:0;width:42px;height:4px}
  .kpi-row,.planning-kpi-row{grid-template-columns:1fr}.dash-grid{grid-template-columns:1fr}.donut-wrap{grid-template-columns:1fr;justify-items:center}.bottom-shortcuts{grid-template-columns:1fr}
  .calendar-toolbar,.planning-filters{grid-template-columns:1fr}.calendar-board{overflow:auto}.week-head,.month-grid{min-width:780px}.kanban{grid-template-columns:1fr}
  .form-grid,.governance-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.project-modal-head{padding:22px;grid-template-columns:6px 1fr 44px}.project-modal-body{padding:22px}.modal-footer{padding:0 22px;flex-wrap:wrap;height:auto;min-height:78px}.progress-input{grid-template-columns:1fr}
}
@media(max-height:760px){
  .project-modal form{height:calc(100vh - 22px)}.project-modal{max-height:calc(100vh - 22px)}.project-modal-head{min-height:88px;padding-top:18px;padding-bottom:18px}.project-modal-body{padding-top:18px;padding-bottom:18px}.modal-footer{height:68px}
}


/* --- Logo Microtech ajustada conforme referência do site --- */
.brand{display:flex;align-items:center;gap:14px;min-height:74px;margin-bottom:28px;padding:8px 6px 12px}
.brand-mark{display:none!important}
.brand-icon-image{width:54px;height:54px;object-fit:contain;border-radius:10px;flex:0 0 auto;filter:drop-shadow(0 10px 22px rgba(246,201,0,.18))}
.brand-copy{display:flex;flex-direction:column;justify-content:center;gap:4px;min-width:0}
.brand-copy strong{display:none!important}
.brand-wordmark-image{display:block;width:172px;max-width:100%;height:auto;object-fit:contain}
.brand-copy span{display:block;color:#d4dde9;margin-top:2px;font-size:13px;font-weight:700;letter-spacing:.02em}
@media(max-width:1220px){.brand-wordmark-image{width:150px}}
@media(max-width:920px){.brand{padding-left:0;margin-bottom:16px}.brand-icon-image{width:46px;height:46px}.brand-wordmark-image{width:142px}}


/* --- Ajuste: MICROTECH como texto estilizado, não imagem --- */
.brand-wordmark-image{display:none!important}
.brand-wordmark-text{
  display:block!important;
  color:#d7d7d7;
  font-family:"Eurostile","Bank Gothic","Orbitron","Montserrat","Inter",Arial,sans-serif;
  font-size:25px;
  font-weight:400;
  letter-spacing:.145em;
  line-height:1;
  text-transform:uppercase;
  transform:scaleX(1.18);
  transform-origin:left center;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
}
.brand-copy span{
  margin-top:7px!important;
  color:#d4dde9!important;
  font-size:13px!important;
  font-weight:600!important;
  letter-spacing:.02em!important;
}
@media(max-width:1220px){
  .brand-wordmark-text{font-size:21px;letter-spacing:.13em;transform:scaleX(1.12)}
}
@media(max-width:920px){
  .brand-wordmark-text{font-size:20px;letter-spacing:.12em;transform:scaleX(1.1)}
}


/* --- Correção final da marca: símbolo + MICROTECH em texto estilizado --- */
.brand{
  display:flex!important;
  align-items:center!important;
  gap:14px!important;
  min-height:74px!important;
  margin-bottom:28px!important;
  padding:8px 6px 12px!important;
}
.brand-icon-image{
  width:54px!important;
  height:54px!important;
  object-fit:contain!important;
  border-radius:10px!important;
  flex:0 0 auto!important;
  filter:drop-shadow(0 10px 22px rgba(246,201,0,.18))!important;
}
.brand-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:3px!important;
  min-width:0!important;
}
.brand-copy .brand-text-logo{
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  color:#d7d9dc!important;
  font-family:'Trebuchet MS','Segoe UI',Arial,sans-serif!important;
  font-size:23px!important;
  line-height:1!important;
  font-weight:300!important;
  letter-spacing:.145em!important;
  text-transform:uppercase!important;
  transform:scaleX(1.08)!important;
  transform-origin:left center!important;
  text-shadow:0 0 0 #d7d9dc!important;
}
.brand-wordmark-image,
.brand-copy img.brand-wordmark-image{
  display:none!important;
}
.brand-copy span{
  display:block!important;
  color:#d4dde9!important;
  margin-top:4px!important;
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:.02em!important;
}
@media(max-width:1220px){
  .brand-copy .brand-text-logo{font-size:20px!important;letter-spacing:.12em!important;}
}
@media(max-width:920px){
  .brand{padding-left:0!important;margin-bottom:16px!important;}
  .brand-icon-image{width:46px!important;height:46px!important;}
  .brand-copy .brand-text-logo{font-size:19px!important;letter-spacing:.11em!important;}
}


/* --- Responsável principal + participantes --- */
.owner-stack{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:220px;
}
.owner-stack .owner-name{
  font-weight:700;
}
.participants-inline{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-left:4px;
}
.avatar-mini{
  width:28px;
  height:28px;
  border-radius:50%;
  display:inline-grid;
  place-items:center;
  background:#eef2f7;
  border:1px solid #d8e1ec;
  color:#334155;
  font-size:11px;
  font-weight:900;
}
.avatar-mini.participant{
  background:#fff8d7;
  color:#9a6a00;
  border-color:#ffe08a;
}
.more-people{
  height:28px;
  min-width:28px;
  padding:0 7px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#edf2f7;
  border:1px solid #d8e1ec;
  color:#475569;
  font-size:11px;
  font-weight:900;
}
.people-add{
  width:28px;
  height:28px;
  border-radius:50%;
  background:#f6c900;
  color:#111827;
  font-weight:1000;
  box-shadow:0 6px 14px rgba(246,201,0,.22);
}
.participants-picker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-height:42px;
  padding:6px;
  border:1px solid #cfd8e5;
  border-radius:10px;
  background:#fff;
}
.participant-option{
  height:34px;
  display:inline-flex !important;
  align-items:center;
  gap:7px !important;
  padding:0 10px 0 4px;
  border:1px solid #d8e1ec;
  border-radius:999px;
  background:#f8fafc;
  color:#334155 !important;
  font-size:12px !important;
  font-weight:800 !important;
  cursor:pointer;
}
.participant-option input{
  display:none;
}
.participant-option.active{
  background:#fff7cc;
  border-color:#f6c900;
  color:#6b4a00 !important;
}
@media(max-width:920px){
  .owner-stack{min-width:190px}
}


/* --- Participantes: seleção corrigida, sem vir tudo pré-preenchido --- */
.participants-picker{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
  min-height:auto !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
}
.participant-select-row{
  display:grid;
  grid-template-columns:1fr 42px;
  gap:8px;
}
.participant-select-row select{
  width:100%;
}
.participant-add-btn{
  height:42px;
  width:42px;
  border-radius:10px;
  background:#f6c900;
  color:#111827;
  font-weight:1000;
  font-size:20px;
  box-shadow:0 6px 14px rgba(246,201,0,.20);
}
.selected-participants{
  min-height:38px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding:8px;
  border:1px dashed #cfd8e5;
  border-radius:10px;
  background:#fbfdff;
}
.participants-empty{
  color:#667085;
  font-weight:600;
}
.selected-participant-chip{
  height:34px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 6px 0 4px;
  border-radius:999px;
  background:#fff7cc;
  border:1px solid #f6c900;
  color:#6b4a00;
  font-size:12px;
  font-weight:850;
}
.selected-participant-chip button{
  width:22px;
  height:22px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#fff;
  color:#9a6a00;
  border:1px solid #f1d36a;
  font-weight:1000;
}
.selected-participant-chip button:hover{
  background:#fee2e2;
  color:#dc2626;
  border-color:#fecaca;
}


/* --- Correção Dashboard: remover barra horizontal causada por participantes --- */
.dashboard-table{
  overflow-x:hidden !important;
}
.dashboard-table table{
  min-width:0 !important;
  width:100% !important;
  table-layout:fixed !important;
}
.dashboard-table th,
.dashboard-table td{
  padding-left:14px !important;
  padding-right:14px !important;
  white-space:normal !important;
}
.dashboard-table th:nth-child(1),
.dashboard-table td:nth-child(1){width:16%}
.dashboard-table th:nth-child(2),
.dashboard-table td:nth-child(2){width:20%}
.dashboard-table th:nth-child(3),
.dashboard-table td:nth-child(3){width:17%}
.dashboard-table th:nth-child(4),
.dashboard-table td:nth-child(4){width:9%}
.dashboard-table th:nth-child(5),
.dashboard-table td:nth-child(5){width:10%}
.dashboard-table th:nth-child(6),
.dashboard-table td:nth-child(6){width:9%}
.dashboard-table th:nth-child(7),
.dashboard-table td:nth-child(7){width:10%}
.dashboard-table th:nth-child(8),
.dashboard-table td:nth-child(8){width:10%}
.dashboard-table th:nth-child(9),
.dashboard-table td:nth-child(9){width:15%}

.dashboard-table .owner-stack{
  min-width:0 !important;
  max-width:100%;
  gap:7px;
  flex-wrap:nowrap;
}
.dashboard-table .owner-name{
  max-width:72px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-table .participants-inline{
  margin-left:2px;
  gap:3px;
  flex-shrink:0;
}
.dashboard-table .avatar-mini,
.dashboard-table .people-add,
.dashboard-table .more-people{
  width:24px;
  height:24px;
  min-width:24px;
  font-size:10px;
}
.dashboard-table .progress-pill{
  gap:6px;
}
.dashboard-table .progress-pill i{
  width:58px;
}
.dashboard-table .badge{
  height:26px;
  padding:0 9px;
}
.dashboard-table .project-name strong,
.dashboard-table .project-name small,
.dashboard-table td{
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-table td:nth-child(9){
  white-space:nowrap !important;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media(max-width:1450px){
  .dashboard-table th:nth-child(1),
  .dashboard-table td:nth-child(1){width:15%}
  .dashboard-table th:nth-child(2),
  .dashboard-table td:nth-child(2){width:21%}
  .dashboard-table th:nth-child(3),
  .dashboard-table td:nth-child(3){width:18%}
  .dashboard-table th:nth-child(9),
  .dashboard-table td:nth-child(9){display:none}
}
@media(max-width:1180px){
  .dashboard-table th:nth-child(6),
  .dashboard-table td:nth-child(6),
  .dashboard-table th:nth-child(8),
  .dashboard-table td:nth-child(8){display:none}
}


/* --- Menu de Ações + Exportação PDF por projeto --- */
.actions-menu{
  position:relative;
  display:inline-flex;
  justify-content:center;
}
.actions-trigger{
  height:38px;
  min-width:96px;
  border-radius:10px;
  background:#fff;
  border:1px solid var(--line);
  color:#1f2937;
  font-weight:850;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px;
}
.actions-trigger svg{
  width:17px;
  height:17px;
}
.actions-trigger:hover{
  border-color:var(--yellow);
  background:#fffdf0;
}
.actions-dropdown{
  display:none;
  position:absolute;
  right:0;
  top:44px;
  width:218px;
  padding:8px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 18px 48px rgba(15,23,42,.16);
  z-index:80;
}
.actions-dropdown.open{
  display:grid;
  gap:4px;
}
.actions-dropdown button{
  height:40px;
  width:100%;
  border-radius:10px;
  background:#fff;
  color:#1f2937;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 10px;
  font-weight:800;
  text-align:left;
}
.actions-dropdown button:hover{
  background:#fff8d7;
  color:#6b4a00;
}
.actions-dropdown svg{
  width:18px;
  height:18px;
}
.projects-table td:last-child{
  overflow:visible;
}
.projects-table-card{
  overflow:visible;
}
.projects-table .table-scroll{
  overflow-x:auto;
  overflow-y:visible;
}
@media(max-width:1220px){
  .actions-dropdown{
    right:auto;
    left:0;
  }
}


/* --- Checklist avançado com status, progresso e evidências --- */
.checklist-section{
  margin-top:22px;
}
.check-summary{
  display:grid;
  grid-template-columns:96px 1fr 1.25fr;
  gap:20px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 16px;
  background:#fbfdff;
  margin-bottom:14px;
}
.check-ring{
  --percent:0;
  width:78px;
  height:78px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:conic-gradient(#22c55e calc(var(--percent) * 1%), #e8edf4 0);
  position:relative;
}
.check-ring::after{
  content:"";
  width:50px;
  height:50px;
  border-radius:50%;
  background:#fff;
  position:absolute;
}
.check-ring span{
  position:relative;
  z-index:1;
  font-size:18px;
  font-weight:900;
  color:#166534;
}
.check-summary-main strong{
  display:block;
  font-size:18px;
  color:#15803d;
}
.check-summary-main small{
  display:block;
  color:#475569;
  margin-top:4px;
}
.check-progress-line{
  height:8px;
  background:#e8edf4;
  border-radius:999px;
  margin-top:10px;
  overflow:hidden;
}
.check-progress-line i{
  display:block;
  height:100%;
  background:#22c55e;
  border-radius:999px;
}
.check-summary-stats{
  display:grid;
  grid-template-columns:12px 28px 1fr 12px 28px 1fr;
  gap:7px 8px;
  align-items:center;
  color:#334155;
}
.check-summary-stats b{
  font-size:16px;
}
.check-summary-stats small{
  color:#475569;
}
.dot{
  width:10px;
  height:10px;
  border-radius:50%;
}
.dot.green{background:#22c55e}
.dot.yellow{background:#f59e0b}
.dot.gray{background:#94a3b8}
.dot.red{background:#ef4444}

.check-list-advanced{
  display:grid;
  gap:10px;
}
.check-advanced-row{
  display:grid;
  grid-template-columns:26px 42px minmax(0,1fr) 150px 42px 42px;
  gap:12px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:13px;
  padding:12px;
  background:#fff;
}
.check-advanced-row.done{
  background:linear-gradient(90deg,#f0fdf4,#ffffff);
  border-color:#bbf7d0;
}
.check-advanced-row.progress{
  background:linear-gradient(90deg,#fffbeb,#ffffff);
  border-color:#fde68a;
}
.check-advanced-row.pending{
  background:#fff;
}
.check-advanced-row.blocked{
  background:linear-gradient(90deg,#fef2f2,#ffffff);
  border-color:#fecaca;
}
.drag-handle{
  background:transparent;
  color:#94a3b8;
  font-size:18px;
  font-weight:900;
  cursor:grab;
}
.check-toggle{
  width:36px;
  height:36px;
  border-radius:10px;
  border:2px solid #cbd5e1;
  background:#fff;
  color:#fff;
  display:grid;
  place-items:center;
}
.check-toggle.checked{
  background:#22c55e;
  border-color:#22c55e;
}
.check-toggle svg{
  width:21px;
  height:21px;
  stroke-width:3;
}
.check-content{
  display:grid;
  gap:8px;
  min-width:0;
}
.check-content [data-check-text]{
  width:100%;
  height:40px;
  font-weight:750;
}
.check-meta{
  display:grid;
  grid-template-columns:160px 170px 190px;
  gap:8px;
}
.check-meta label{
  display:grid;
  gap:4px;
  font-size:10px;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:850;
}
.check-meta select,
.check-meta input{
  height:34px;
  font-size:12px;
  padding:0 9px;
}
.check-note{
  height:36px !important;
  font-size:13px;
  color:#475569;
}
.check-status-pill{
  height:36px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-weight:900;
  font-size:13px;
  padding:0 12px;
  white-space:nowrap;
}
.check-status-pill svg{
  width:17px;
  height:17px;
}
.check-status-pill.done{
  background:#dcfce7;
  color:#15803d;
  border:1px solid #bbf7d0;
}
.check-status-pill.progress{
  background:#fef3c7;
  color:#b45309;
  border:1px solid #fde68a;
}
.check-status-pill.pending{
  background:#f1f5f9;
  color:#64748b;
  border:1px solid #dbe3ed;
}
.check-status-pill.blocked{
  background:#fee2e2;
  color:#dc2626;
  border:1px solid #fecaca;
}
.check-comment-btn,
.check-remove-btn{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#fff;
  border:1px solid var(--line);
  color:#334155;
  display:grid;
  place-items:center;
}
.check-remove-btn:hover{
  background:#fef2f2;
  color:#dc2626;
  border-color:#fecaca;
}
.check-empty{
  color:#667085;
  padding:16px;
  border:1px dashed var(--line);
  border-radius:12px;
}
@media(max-width:1100px){
  .check-summary{
    grid-template-columns:90px 1fr;
  }
  .check-summary-stats{
    grid-column:1/-1;
  }
  .check-advanced-row{
    grid-template-columns:24px 40px minmax(0,1fr);
  }
  .check-status-pill,
  .check-comment-btn,
  .check-remove-btn{
    grid-column:auto;
  }
  .check-meta{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .check-summary{
    grid-template-columns:1fr;
    justify-items:start;
  }
  .check-summary-stats{
    grid-template-columns:12px 24px 1fr;
  }
  .check-advanced-row{
    grid-template-columns:38px 1fr;
  }
  .drag-handle{
    display:none;
  }
  .check-toggle{
    grid-row:1/3;
  }
  .check-status-pill,
  .check-comment-btn,
  .check-remove-btn{
    grid-column:2;
    justify-self:start;
  }
}


/* --- Correção visual do checklist avançado: alinhamento dos cards --- */
.task-modal{
  width:min(980px,calc(100vw - 36px)) !important;
}
.task-modal form{
  height:min(900px,calc(100vh - 32px)) !important;
}
.task-modal-body{
  padding:22px 28px !important;
}
.check-summary{
  grid-template-columns:88px minmax(190px,1fr) minmax(280px,1.1fr) !important;
  align-items:center !important;
}
.check-list-advanced{
  gap:12px !important;
}
.check-advanced-row{
  grid-template-columns:28px 42px minmax(0,1fr) 148px 40px 40px !important;
  gap:12px !important;
  align-items:center !important;
  padding:14px !important;
}
.check-content{
  min-width:0 !important;
}
.check-content [data-check-text]{
  width:100% !important;
  max-width:100% !important;
}
.check-meta{
  grid-template-columns:minmax(130px,150px) minmax(140px,170px) minmax(150px,190px) !important;
  gap:8px !important;
  align-items:end !important;
}
.check-meta label{
  min-width:0 !important;
}
.check-meta select,
.check-meta input{
  width:100% !important;
  min-width:0 !important;
}
.check-note{
  width:100% !important;
  max-width:100% !important;
}
.check-status-pill{
  width:148px !important;
  min-width:148px !important;
  justify-content:center !important;
  margin:0 !important;
}
.check-comment-btn,
.check-remove-btn{
  width:40px !important;
  height:40px !important;
  flex:0 0 auto !important;
}
@media(max-width:960px){
  .task-modal{
    width:calc(100vw - 24px) !important;
  }
  .check-summary{
    grid-template-columns:76px 1fr !important;
  }
  .check-summary-stats{
    grid-column:1/-1 !important;
  }
  .check-advanced-row{
    grid-template-columns:24px 40px minmax(0,1fr) !important;
    align-items:start !important;
  }
  .check-status-pill{
    grid-column:3 !important;
    width:auto !important;
    min-width:0 !important;
    justify-self:start !important;
  }
  .check-comment-btn,
  .check-remove-btn{
    grid-column:auto !important;
    justify-self:start !important;
  }
  .check-meta{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:680px){
  .check-advanced-row{
    grid-template-columns:40px minmax(0,1fr) !important;
  }
  .drag-handle{
    display:none !important;
  }
  .check-toggle{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
  }
  .check-content{
    grid-column:2 !important;
  }
  .check-status-pill,
  .check-comment-btn,
  .check-remove-btn{
    grid-column:2 !important;
    justify-self:start !important;
  }
}


/* --- Checklist simples baseado em Planner/Trello/Notion: rápido e visual --- */
.task-modal{
  width:min(1040px,calc(100vw - 36px)) !important;
}
.check-simple-summary{
  display:grid;
  grid-template-columns:96px minmax(240px,1fr) minmax(420px,1.3fr);
  gap:24px;
  align-items:center;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  margin-bottom:22px;
}
.check-simple-ring{
  --percent:0;
  width:82px;
  height:82px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:conic-gradient(#60a5fa calc(var(--percent) * 1%), #e8edf4 0);
  position:relative;
}
.check-simple-ring::after{
  content:"";
  width:54px;
  height:54px;
  border-radius:50%;
  background:#fff;
  position:absolute;
}
.check-simple-ring span{
  position:relative;
  z-index:1;
  font-size:22px;
  font-weight:950;
  color:#0f172a;
}
.check-simple-main strong{
  display:block;
  font-size:22px;
  color:#0f172a;
}
.check-simple-main small{
  display:block;
  color:#475569;
  margin-top:6px;
  font-size:15px;
}
.check-simple-progress{
  margin-top:16px;
  height:9px;
  border-radius:999px;
  background:#e8edf4;
  overflow:hidden;
}
.check-simple-progress i{
  background:linear-gradient(90deg,#86efac 0%, #22c55e 55%, #15803d 100%);
  box-shadow:0 2px 8px rgba(34,197,94,.18);
  display:block;
  height:100%;
  background:linear-gradient(90deg,#22c55e,#60a5fa);
  border-radius:999px;
}
.check-simple-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.check-simple-stats div{
  min-height:84px;
  border:1px solid var(--line);
  border-radius:14px;
  display:grid;
  place-items:center;
  padding:10px;
  background:#fff;
}
.check-simple-stats b{
  display:block;
  font-size:26px;
  line-height:1;
  margin-top:4px;
}
.check-simple-stats small{
  color:#475569;
  font-size:13px;
  text-align:center;
}
.status-ball{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
}
.status-ball svg{
  width:20px;
  height:20px;
}
.status-ball.done{
  background:#22c55e;
  color:#fff;
}
.status-ball.progress{
  background:#f59e0b;
  color:#fff;
}
.status-ball.pending{
  background:#f1f5f9;
  color:#334155;
  border:2px solid #cbd5e1;
}

.check-simple-list{
  display:grid;
  gap:12px;
}
.check-simple-row{
  display:grid;
  grid-template-columns:28px 44px minmax(240px,1fr) minmax(430px,.95fr) 42px;
  gap:14px;
  align-items:center;
  min-height:94px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px 18px;
  background:#fff;
  box-shadow:0 5px 16px rgba(15,23,42,.035);
  transition:.16s;
}
.check-simple-row.done{
  border-left:4px solid #22c55e;
  background:linear-gradient(90deg,#f0fdf4,#fff 42%);
}
.check-simple-row.progress{
  border-left:4px solid #f59e0b;
  background:linear-gradient(90deg,#fffbeb,#fff 42%);
}
.check-simple-row.pending{
  border-left:4px solid #cbd5e1;
}
.check-drag{
  background:transparent;
  color:#94a3b8;
  font-size:20px;
  font-weight:950;
  cursor:grab;
}
.check-row-indicator{
  width:42px;
  height:42px;
  border-radius:12px;
  display:grid;
  place-items:center;
  border:2px solid #cbd5e1;
  color:#334155;
  background:#fff;
}
.check-row-indicator svg{
  width:22px;
  height:22px;
}
.check-row-indicator.done{
  background:#22c55e;
  color:#fff;
  border-color:#22c55e;
}
.check-row-indicator.progress{
  background:#fff7ed;
  color:#f59e0b;
  border-color:#f59e0b;
}
.check-row-indicator.pending{
  background:#fff;
  color:#334155;
}
.check-simple-row [data-check-text]{
  height:48px;
  border:0;
  background:transparent;
  padding:0;
  font-size:16px;
  font-weight:800;
  color:#0f172a;
}
.check-simple-row [data-check-text]:focus{
  box-shadow:none;
}
.check-status-segment{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border:1px solid #dbe3ed;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
}
.check-status-segment button{
  height:54px;
  background:#fff;
  border-right:1px solid #dbe3ed;
  color:#64748b;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 12px;
}
.check-status-segment button:last-child{
  border-right:0;
}
.check-status-segment svg{
  width:20px;
  height:20px;
}
.check-status-segment button.active.pending{
  background:#eef6ff;
  color:#0f172a;
  box-shadow:inset 0 0 0 1px #bfdbfe;
}
.check-status-segment button.active.progress{
  background:#fff7ed;
  color:#b45309;
  box-shadow:inset 0 0 0 1px #f59e0b;
}
.check-status-segment button.active.done{
  background:#dcfce7;
  color:#15803d;
  box-shadow:inset 0 0 0 1px #22c55e;
}
.check-remove-simple{
  width:42px;
  height:42px;
  border-radius:12px;
  background:#fff;
  border:1px solid var(--line);
  color:#334155;
  display:grid;
  place-items:center;
}
.check-remove-simple:hover{
  background:#fef2f2;
  color:#dc2626;
  border-color:#fecaca;
}
.check-remove-simple svg{
  width:21px;
  height:21px;
}

/* Oculta estilos antigos do checklist avançado quando a versão simples estiver ativa */
.check-advanced-row,
.check-summary{
  display:none;
}

@media(max-width:1120px){
  .check-simple-summary{
    grid-template-columns:90px 1fr;
  }
  .check-simple-stats{
    grid-column:1/-1;
  }
  .check-simple-row{
    grid-template-columns:28px 42px minmax(0,1fr);
  }
  .check-status-segment{
    grid-column:3;
  }
  .check-remove-simple{
    grid-column:3;
    justify-self:end;
  }
}
@media(max-width:760px){
  .check-simple-summary{
    grid-template-columns:1fr;
  }
  .check-simple-stats{
    grid-template-columns:1fr;
  }
  .check-simple-row{
    grid-template-columns:42px minmax(0,1fr);
  }
  .check-drag{
    display:none;
  }
  .check-row-indicator{
    grid-column:1;
    grid-row:1 / span 2;
  }
  .check-simple-row [data-check-text],
  .check-status-segment,
  .check-remove-simple{
    grid-column:2;
  }
  .check-status-segment{
    grid-template-columns:1fr;
  }
  .check-status-segment button{
    border-right:0;
    border-bottom:1px solid #dbe3ed;
  }
  .check-status-segment button:last-child{
    border-bottom:0;
  }
}


/* --- Ajuste checklist compacto: texto completo + status pequeno --- */
.check-simple-row{
  grid-template-columns: 18px 20px minmax(0,1fr) 146px 36px;
  gap:12px;
  min-height:78px;
  padding:14px 16px;
}
.check-drag{
  font-size:18px;
  align-self:center;
}
.check-row-indicator{
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  background:transparent !important;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.check-row-indicator svg{
  width:18px;
  height:18px;
}
.check-row-indicator.done{color:#16a34a;}
.check-row-indicator.progress{color:#d97706;}
.check-row-indicator.pending{color:#64748b;}
.check-simple-row [data-check-text]{
  min-height:44px;
  resize:vertical;
  border:0;
  background:transparent;
  padding:2px 0;
  font-size:15px;
  font-weight:800;
  line-height:1.35;
  color:#0f172a;
  overflow:auto;
}
.check-simple-row textarea[data-check-text]{
  width:100%;
}
.check-status-segment.compact{
  grid-template-columns:repeat(3,44px);
  width:144px;
  justify-content:end;
  background:transparent;
  border:0;
  gap:6px;
}
.check-status-segment.compact button{
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid #dbe3ed;
  padding:0;
  border-right:1px solid #dbe3ed;
  background:#fff;
}
.check-status-segment.compact button svg{
  width:18px;
  height:18px;
}
.check-status-segment.compact button span{display:none;}
.check-status-segment.compact button.active.pending{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}
.check-status-segment.compact button.active.progress{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fdba74;
}
.check-status-segment.compact button.active.done{
  background:#f0fdf4;
  color:#15803d;
  border-color:#86efac;
}
.check-remove-simple{
  width:36px;
  height:36px;
  border-radius:10px;
}
.check-remove-simple svg{
  width:18px;
  height:18px;
}
@media(max-width:1120px){
  .check-simple-row{
    grid-template-columns: 18px 20px minmax(0,1fr);
  }
  .check-status-segment.compact{
    grid-column:3;
    justify-self:start;
    margin-top:2px;
  }
  .check-remove-simple{
    grid-column:3;
    justify-self:end;
    margin-top:-42px;
  }
}
@media(max-width:760px){
  .check-simple-row{
    grid-template-columns: 20px minmax(0,1fr) 36px;
    align-items:start;
  }
  .check-drag{grid-column:1;grid-row:1 / span 2;}
  .check-row-indicator{grid-column:1;grid-row:2;justify-self:center;}
  .check-simple-row [data-check-text]{grid-column:2 / span 2;}
  .check-status-segment.compact{grid-column:2;grid-template-columns:repeat(3,42px);width:auto;}
  .check-remove-simple{grid-column:3;grid-row:2;justify-self:end;margin-top:0;}
}


/* --- KPIs clicáveis no Planejamento --- */
.planning-kpi-row .kpi-card{
  text-align:left;
  border:1px solid var(--line);
}
.kpi-clickable{
  cursor:pointer;
  transition:.16s ease;
}
.kpi-clickable:hover{
  transform:translateY(-2px);
  border-color:#f6c900;
  box-shadow:0 16px 35px rgba(15,23,42,.10);
}
.kpi-clickable.active{
  border-color:#f6c900;
  box-shadow:0 0 0 3px rgba(246,201,0,.18), 0 16px 35px rgba(15,23,42,.10);
  background:#fffdf0;
}
.kpi-clickable.active::after{
  content:"Filtro ativo";
  grid-column:1 / -1;
  justify-self:start;
  height:24px;
  display:inline-flex;
  align-items:center;
  padding:0 9px;
  border-radius:999px;
  background:#fff3bd;
  color:#8a6200;
  font-size:11px;
  font-weight:900;
}
.task-active-filter{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 18px;
  padding:13px 16px;
  border:1px solid #f6c900;
  background:#fffdf0;
  border-radius:14px;
  color:#334155;
  font-weight:750;
  box-shadow:0 8px 22px rgba(15,23,42,.045);
}
.task-active-filter div{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.task-active-filter svg{
  width:18px;
  height:18px;
  color:#8a6200;
}
.task-active-filter span{
  color:#64748b;
  font-weight:700;
}
.task-active-filter button{
  height:34px;
  border-radius:10px;
  border:1px solid #f0d36a;
  background:#fff;
  color:#8a6200;
  padding:0 12px;
  font-weight:900;
}
.task-active-filter button:hover{
  background:#fff7cc;
}


/* --- Múltiplas ações no projeto --- */
.actions-editor-wrap{
  display:grid;
  gap:8px;
}
.actions-editor-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.actions-editor-head label{
  font-size:12px;
  font-weight:800;
  color:#344054;
}
.small-add-action{
  height:34px;
  border-radius:10px;
  background:#fff7cc;
  color:#6b4a00;
  border:1px solid #f6c900;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0 12px;
  font-size:12px;
  font-weight:900;
}
.small-add-action svg{
  width:16px;
  height:16px;
}
.actions-editor{
  display:grid;
  gap:9px;
}
.project-action-row{
  display:grid;
  grid-template-columns:42px minmax(260px,1fr) 150px 160px 42px;
  gap:8px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fbfdff;
}
.action-number{
  width:34px;
  height:34px;
  border-radius:10px;
  background:#0f172a;
  color:#f6c900;
  display:grid;
  place-items:center;
  font-weight:950;
  font-size:12px;
}
.project-action-row input,
.project-action-row select{
  width:100%;
  height:40px;
}
.remove-action-btn{
  width:40px;
  height:40px;
  border-radius:10px;
  background:#fff;
  border:1px solid var(--line);
  color:#334155;
  display:grid;
  place-items:center;
}
.remove-action-btn:hover{
  background:#fef2f2;
  border-color:#fecaca;
  color:#dc2626;
}
.remove-action-btn svg{
  width:18px;
  height:18px;
}
.field-hint{
  color:#667085;
  font-weight:600;
}
@media(max-width:920px){
  .project-action-row{
    grid-template-columns:38px 1fr;
  }
  .project-action-row input,
  .project-action-row select,
  .remove-action-btn{
    grid-column:2;
  }
  .remove-action-btn{
    justify-self:start;
  }
}


/* --- Modal Resumo WhatsApp --- */
.whatsapp-modal{
  width:min(760px,calc(100vw - 34px));
  max-height:calc(100vh - 34px);
}
.whatsapp-summary-box{
  background:#fff;
  display:grid;
  grid-template-rows:auto 1fr auto;
  max-height:calc(100vh - 34px);
}
.whatsapp-summary-head{
  min-height:126px;
  padding:26px 30px;
  background:linear-gradient(135deg,#0b1628,#172438);
  color:#fff;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  border-bottom:4px solid var(--yellow);
}
.whatsapp-summary-head span{
  display:block;
  color:var(--yellow);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.whatsapp-summary-head h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.03em;
}
.whatsapp-summary-head p{
  margin:8px 0 0;
  color:#dce4ee;
}
.whatsapp-summary-body{
  padding:22px 30px;
  display:grid;
  gap:14px;
  overflow:auto;
}
.summary-options{
  display:flex;
  gap:8px;
}
.summary-type{
  height:38px;
  padding:0 15px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:#334155;
  font-weight:900;
}
.summary-type.active{
  background:#fff7cc;
  border-color:var(--yellow);
  color:#6b4a00;
}
#whatsappSummaryText{
  width:100%;
  min-height:390px;
  resize:vertical;
  border-radius:14px;
  line-height:1.46;
  padding:16px;
  font-size:14px;
  color:#172033;
  background:#fbfdff;
}
.whatsapp-summary-actions{
  min-height:76px;
  border-top:1px solid var(--line);
  padding:14px 30px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  background:#fff;
}
@media(max-width:680px){
  .whatsapp-summary-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .whatsapp-summary-actions button{
    width:100%;
  }
}


/* --- Exportação da Dashboard em imagem --- */
.dashboard-export-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  box-shadow:var(--soft-shadow);
}
.dashboard-export-toolbar strong{
  display:block;
  color:#172033;
  font-size:16px;
}
.dashboard-export-toolbar small{
  display:block;
  color:#667085;
  margin-top:3px;
}
.btn-dark{
  height:44px;
  border-radius:12px;
  background:#0f172a;
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 16px;
  font-weight:900;
  box-shadow:0 12px 28px rgba(15,23,42,.18);
}
.btn-dark:hover{
  background:#1f2937;
}
.btn-dark:disabled{
  opacity:.7;
  cursor:wait;
}
.btn-dark svg{
  width:18px;
  height:18px;
}

/* Área off-screen criada só para o PNG */
.dashboard-image-capture{
  position:fixed;
  left:-100000px;
  top:0;
  width:1500px;
  min-height:900px;
  background:#f4f7fb;
  padding:34px;
  z-index:-1;
  color:#172033;
}
.dashboard-image-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:22px;
  padding:24px 28px;
  border-radius:22px;
  background:linear-gradient(135deg,#081524,#172438);
  color:#fff;
  border-bottom:4px solid var(--yellow);
  box-shadow:0 24px 60px rgba(15,23,42,.20);
}
.dashboard-image-brand{
  display:flex;
  align-items:center;
  gap:16px;
}
.dashboard-image-brand img{
  width:64px;
  height:64px;
  object-fit:contain;
}
.dashboard-image-brand strong{
  display:block;
  font-size:25px;
  letter-spacing:.20em;
  font-weight:500;
}
.dashboard-image-brand span{
  display:block;
  color:#dce4ee;
  font-size:14px;
  margin-top:4px;
  font-weight:700;
}
.dashboard-image-title{
  text-align:right;
}
.dashboard-image-title h1{
  margin:0;
  font-size:32px;
  letter-spacing:-.03em;
}
.dashboard-image-title p{
  margin:7px 0 0;
  color:#dce4ee;
  font-weight:700;
}

/* Ajustes dentro do clone exportado */
.dashboard-image-capture #dashboardExportClone{
  display:block !important;
}
.dashboard-image-capture .kpi-row{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
  margin-bottom:18px;
}
.dashboard-image-capture .dash-grid{
  display:grid;
  grid-template-columns:1fr 1fr .86fr;
  gap:18px;
}
.dashboard-image-capture .status-card{
  grid-column:auto;
}
.dashboard-image-capture .priority-card{
  grid-column:auto;
}
.dashboard-image-capture .alerts-card{
  grid-column:auto;
}
.dashboard-image-capture .progress-card{
  grid-column:1 / span 2;
}
.dashboard-image-capture .next-card{
  grid-column:3;
}
.dashboard-image-capture .card,
.dashboard-image-capture .kpi-card{
  box-shadow:0 14px 36px rgba(15,23,42,.08);
  border:1px solid #dfe6ef;
}
.dashboard-image-capture .dashboard-table{
  overflow:hidden !important;
}
.dashboard-image-capture table{
  width:100%;
  table-layout:fixed;
}
.dashboard-image-capture th,
.dashboard-image-capture td{
  font-size:12px;
  padding:11px 10px;
  white-space:normal;
}
.dashboard-image-capture th:nth-child(9),
.dashboard-image-capture td:nth-child(9){
  display:none;
}
.dashboard-image-capture .table-link,
.dashboard-image-capture .card-link,
.dashboard-image-capture .soft-btn,
.dashboard-image-capture .link{
  display:none !important;
}
.dashboard-image-capture .donut{
  width:220px;
  height:220px;
}
.dashboard-image-capture .priority-bars{
  min-height:260px;
}

@media(max-width:860px){
  .dashboard-export-toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .btn-dark{
    width:100%;
  }
}


/* --- Ajuste calendário: horário nas ações --- */
.project-action-row{
  grid-template-columns:42px minmax(260px,1fr) 140px 105px 150px 42px !important;
}
.project-action-row [data-action-time]{
  text-align:center;
  font-weight:800;
}
.agenda-item{
  grid-template-columns:10px 66px 1fr !important;
  gap:15px !important;
}
.agenda-item time{
  color:#0f172a !important;
  font-size:15px;
  font-weight:950 !important;
}
.agenda-item strong{
  line-height:1.25;
}
.agenda-item small{
  line-height:1.25;
}
.month-grid .event{
  white-space:normal;
}
@media(max-width:920px){
  .project-action-row{
    grid-template-columns:38px 1fr !important;
  }
  .project-action-row [data-action-title],
  .project-action-row [data-action-date],
  .project-action-row [data-action-time],
  .project-action-row [data-action-status],
  .project-action-row .remove-action-btn{
    grid-column:2 !important;
  }
}


/* ===== Calendário funcional: filtros + mês/semana/dia ===== */
.calendar-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:-8px 0 18px;padding:11px 14px;border:1px solid #f0d36a;background:#fffdf0;border-radius:12px;color:#6b4a00;font-weight:800}
.calendar-filter-summary[hidden]{display:none}
.calendar-filter-summary>div{display:flex;align-items:center;gap:8px;min-width:0}.calendar-filter-summary svg{width:17px;height:17px}.calendar-filter-summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calendar-filter-summary button{height:32px;padding:0 11px;border:1px solid #f0d36a;border-radius:9px;background:#fff;color:#8a6200;font-weight:900}
.calendar-mode button{cursor:pointer}.calendar-mode button.active{background:#fff1c2!important;border-color:#f6c900!important;color:#6b4a00;box-shadow:0 0 0 2px rgba(246,201,0,.12)}
.month-grid .event b{font-weight:950}.more-events{display:block;margin-top:4px;color:#2563eb;background:transparent;font-size:11px;font-weight:850}
/* Semana */
.week-mode-grid{display:block!important;min-width:0!important}.week-view-grid{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:10px;padding:12px;background:#f8fafc}
.week-day{min-height:480px;border:1px solid var(--line);border-radius:14px;background:#fff;overflow:hidden}.week-day.selected{border-color:#f6c900;box-shadow:0 0 0 2px rgba(246,201,0,.13)}
.week-day>header{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;border-bottom:1px solid var(--line);background:#fbfdff}.week-day>header span{font-size:11px;color:#64748b;font-weight:900}.week-day>header strong{font-size:22px}
.week-day-events{display:grid;gap:8px;padding:10px}.week-day-events>p{color:#94a3b8;font-size:12px;text-align:center;margin:20px 0}
.week-event{display:grid;grid-template-columns:44px 1fr;gap:8px;padding:9px;border-left:4px solid #3b82f6;border-radius:9px;background:#eff6ff}.week-event.red{border-color:#ef4444;background:#fef2f2}.week-event.green{border-color:#22a35a;background:#f0fdf4}.week-event.yellow{border-color:#f6c900;background:#fffbea}.week-event.purple{border-color:#8b5cf6;background:#f5f3ff}
.week-event time{font-size:11px;font-weight:950;color:#334155}.week-event strong{display:block;font-size:12px;line-height:1.25}.week-event small{display:block;margin-top:3px;color:#64748b;font-size:10px;line-height:1.2}
/* Dia */
.day-mode-grid{display:block!important;min-width:0!important}.day-view{padding:18px}.day-view-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border:1px solid var(--line);border-radius:14px;background:#fbfdff;margin-bottom:16px}.day-view-head span{display:block;color:#64748b;text-transform:capitalize}.day-view-head strong{display:block;font-size:22px;margin-top:4px}.day-view-head>b{height:32px;padding:0 11px;border-radius:999px;background:#eef2f7;display:flex;align-items:center}
.day-timeline{display:grid}.day-timeline-event{display:grid;grid-template-columns:70px 18px 1fr;gap:10px;min-height:82px;padding:12px 4px;position:relative}.day-timeline-event time{font-size:15px;font-weight:950;color:#172033;text-align:right;padding-top:2px}.day-timeline-event i{width:11px;height:11px;border-radius:50%;background:#3b82f6;margin:5px auto 0;position:relative;z-index:1}.day-timeline-event:not(:last-child) i::after{content:"";position:absolute;width:2px;top:12px;bottom:-71px;left:4px;background:#dbe3ed}.day-timeline-event.red i{background:#ef4444}.day-timeline-event.green i{background:#22a35a}.day-timeline-event.yellow i{background:#f6c900}.day-timeline-event.purple i{background:#8b5cf6}
.day-timeline-event strong{display:block;font-size:15px}.day-timeline-event span{display:block;color:#2563eb;font-weight:800;margin-top:3px}.day-timeline-event small{display:block;color:#64748b;margin-top:4px}.calendar-empty{padding:30px;text-align:center;color:#64748b}
@media(max-width:1250px){.week-view-grid{grid-template-columns:repeat(7,minmax(130px,1fr));min-width:980px}.calendar-board.mode-week{overflow:auto}}
@media(max-width:760px){.calendar-filter-summary{align-items:flex-start;flex-direction:column}.calendar-filter-summary button{width:100%}.day-view{padding:10px}.day-timeline-event{grid-template-columns:55px 16px 1fr}.calendar-mode{width:100%}.calendar-mode button{flex:1}}


/* --- Login e perfil por cliente --- */
.login-screen{
  position:fixed;
  inset:0;
  z-index:3000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(246,201,0,.16), transparent 28%),
    linear-gradient(135deg,#07121f,#111827 60%,#20242a);
}
.login-screen.show{
  display:flex;
}
body.login-active .sidebar,
body.login-active .main{
  filter:blur(4px);
  pointer-events:none;
  user-select:none;
}
.login-card{
  width:min(460px,100%);
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  background:#fff;
  box-shadow:0 28px 80px rgba(0,0,0,.35);
  padding:30px;
}
.login-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:24px;
}
.login-brand img{
  width:54px;
  height:54px;
  object-fit:contain;
}
.login-brand strong{
  display:block;
  letter-spacing:.18em;
  font-size:21px;
  color:#172033;
}
.login-brand span{
  display:block;
  color:#667085;
  font-weight:800;
}
.login-card h1{
  margin:0 0 6px;
  font-size:30px;
  color:#172033;
}
.login-card p{
  margin:0 0 22px;
  color:#667085;
}
.login-card form{
  display:grid;
  gap:14px;
}
.login-card label{
  display:grid;
  gap:7px;
  color:#344054;
  font-weight:850;
}
.login-card input{
  height:48px;
}
.login-card .full{
  width:100%;
  margin-top:4px;
}
#loginError{
  min-height:20px;
  color:#dc2626;
  font-weight:800;
}
.login-help{
  margin-top:18px;
  padding:14px;
  border-radius:14px;
  background:#fff7cc;
  color:#6b4a00;
}
.login-help strong,
.login-help span{
  display:block;
}
.login-help span{
  margin-top:4px;
  font-size:13px;
}
.logout-btn{
  margin-left:auto;
  width:34px;
  height:34px;
  border-radius:10px;
  background:#fff;
  border:1px solid rgba(255,255,255,.12);
  color:#334155;
  display:grid;
  place-items:center;
}
.logout-btn svg{
  width:17px;
  height:17px;
}
.client-mode #btnReport,
.client-mode #btnExport,
.client-mode #btnE,
.client-mode .btn-delete,
.client-mode .add-task,
.client-mode #btnAddChecklist,
.client-mode #btnAddProjectAction{
  display:none!important;
}
.readonly-mode input:disabled,
.readonly-mode select:disabled,
.readonly-mode textarea:disabled{
  background:#f8fafc;
  color:#334155;
  opacity:1;
}
.readonly-mode .project-row{
  cursor:pointer;
}


/* Cliente editor HGS: pode incluir, editar e excluir apenas projetos do próprio cliente */
.client-editor-mode #btnNewProject,
.client-editor-mode .add-task,
.client-editor-mode #btnAddChecklist,
.client-editor-mode #btnAddProjectAction,
.client-editor-mode .btn-delete{
  display:inline-flex!important;
}
.client-editor-mode .quick a[data-quick="tiflux"],
.client-editor-mode .quick a[data-quick="sharepoint"],
.client-editor-mode .quick a[data-quick="drawio"]{
  display:none!important;
}
.client-editor-mode input[name="client"]:disabled{
  background:#f8fafc;
  color:#475569;
  cursor:not-allowed;
}


/* Ajuste participantes: seleção automática */
.participant-select-row select{
  cursor:pointer;
}
.selected-participant-chip{
  animation: participantChipIn .12s ease-out;
}
@keyframes participantChipIn{
  from{transform:scale(.98);opacity:.4}
  to{transform:scale(1);opacity:1}
}
.participants-empty{
  color:#667085;
}


/* --- Prazo de projeto concluído --- */
.deadline-done{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-weight:900;
}
.deadline-done::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:999px;
  background:#16a34a;
}
.deadline-late{
  font-weight:900;
}
.deadline-ok{
  font-weight:850;
}
.deadline-neutral{
  font-weight:850;
}


/* --- Dashboard KPI clicável e lista de atrasados --- */
.clickable-kpi{
  cursor:pointer;
  position:relative;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.clickable-kpi:hover{
  transform:translateY(-2px);
  border-color:#fecaca;
  box-shadow:0 16px 42px rgba(239,68,68,.14);
}
.clickable-kpi::after{
  content:"Ver detalhes";
  position:absolute;
  right:18px;
  bottom:12px;
  color:#dc2626;
  font-size:11px;
  font-weight:900;
  opacity:.78;
}
.delayed-modal{
  width:min(960px,calc(100vw - 34px));
  max-height:calc(100vh - 34px);
}
.delayed-box{
  background:#fff;
  display:grid;
  grid-template-rows:auto 1fr auto;
  max-height:calc(100vh - 34px);
}
.delayed-head{
  min-height:122px;
  padding:26px 30px;
  background:linear-gradient(135deg,#111827,#3b1620);
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-bottom:4px solid #ef4444;
}
.delayed-head span{
  display:block;
  color:#fecaca;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.delayed-head h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.03em;
}
.delayed-head p{
  margin:8px 0 0;
  color:#fee2e2;
}
.delayed-body{
  padding:22px 30px;
  overflow:auto;
  display:grid;
  gap:18px;
}
.delayed-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border:1px solid #fecaca;
  background:#fff5f5;
  border-radius:18px;
}
.delayed-summary strong{
  font-size:36px;
  line-height:1;
  color:#dc2626;
  display:block;
}
.delayed-summary span{
  display:block;
  color:#7f1d1d;
  font-weight:900;
}
.delayed-summary p{
  margin:0;
  color:#7f1d1d;
  font-weight:700;
}
.delayed-list{
  display:grid;
  gap:12px;
}
.delayed-project-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
  display:grid;
  gap:13px;
  cursor:pointer;
}
.delayed-project-card:hover{
  border-color:#fecaca;
  background:#fffafa;
}
.delayed-project-main{
  display:flex;
  align-items:center;
  gap:12px;
}
.delayed-project-main strong{
  display:block;
  color:#172033;
  font-size:15px;
}
.delayed-project-main small{
  display:block;
  color:#667085;
  margin-top:2px;
  font-weight:700;
}
.delayed-project-meta{
  display:grid;
  grid-template-columns:repeat(6,minmax(110px,1fr));
  gap:10px;
  align-items:center;
}
.delayed-project-meta > span:not(.badge){
  display:grid;
  gap:2px;
  padding:8px 10px;
  border-radius:12px;
  background:#f8fafc;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.delayed-project-meta b{
  color:#667085;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.late-days{
  background:#fef2f2!important;
  color:#dc2626!important;
}
.delayed-next{
  padding:11px 12px;
  border-radius:14px;
  background:#fff7ed;
  color:#7c2d12;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  font-size:13px;
}
.delayed-next b{
  font-weight:950;
}
.empty-delayed{
  padding:18px;
  border-radius:16px;
  background:#f0fdf4;
  color:#166534;
  font-weight:900;
}
.delayed-whatsapp{
  display:grid;
  gap:10px;
}
.delayed-whatsapp-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
}
.delayed-whatsapp-title strong{
  color:#172033;
}
.delayed-whatsapp-title small{
  color:#667085;
  font-weight:700;
}
#delayedWhatsappText{
  width:100%;
  min-height:260px;
  resize:vertical;
  border-radius:14px;
  line-height:1.45;
  padding:14px;
  font-size:14px;
  color:#172033;
  background:#fbfdff;
}
.delayed-actions{
  min-height:76px;
  border-top:1px solid var(--line);
  padding:14px 30px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  background:#fff;
}
@media(max-width:900px){
  .delayed-project-meta{
    grid-template-columns:repeat(2,1fr);
  }
  .delayed-summary,
  .delayed-whatsapp-title,
  .delayed-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .delayed-actions button{
    width:100%;
  }
}


/* --- Modal genérico de projetos por status --- */
.legend-row-click{
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  cursor:pointer;
}
.legend-row-click:hover span,
.legend-row-click:hover b{
  color:#0b66d8;
}
.status-projects-modal{
  width:min(960px,calc(100vw - 34px));
  max-height:calc(100vh - 34px);
}
.status-projects-box{
  background:#fff;
  display:grid;
  grid-template-rows:auto 1fr auto;
  max-height:calc(100vh - 34px);
}
.status-projects-head{
  min-height:122px;
  padding:26px 30px;
  background:linear-gradient(135deg,#0b1628,#173b2c);
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-bottom:4px solid #22c55e;
}
.status-modal-progress .status-projects-head{
  background:linear-gradient(135deg,#0b1628,#163258);
  border-bottom-color:#3b82f6;
}
.status-projects-head span{
  display:block;
  color:#bbf7d0;
  font-size:12px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.status-modal-progress .status-projects-head span{
  color:#bfdbfe;
}
.status-projects-head h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.03em;
}
.status-projects-head p{
  margin:8px 0 0;
  color:#dcfce7;
}
.status-modal-progress .status-projects-head p{
  color:#dbeafe;
}
.status-projects-body{
  padding:22px 30px;
  overflow:auto;
  display:grid;
  gap:18px;
}
.status-projects-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border:1px solid #bbf7d0;
  background:#f0fdf4;
  border-radius:18px;
}
.status-modal-progress .status-projects-summary{
  border-color:#bfdbfe;
  background:#eff6ff;
}
.status-projects-summary strong{
  font-size:36px;
  line-height:1;
  color:#16a34a;
  display:block;
}
.status-modal-progress .status-projects-summary strong{
  color:#2563eb;
}
.status-projects-summary span{
  display:block;
  color:#166534;
  font-weight:900;
}
.status-modal-progress .status-projects-summary span{
  color:#1d4ed8;
}
.status-projects-summary p{
  margin:0;
  color:#166534;
  font-weight:700;
}
.status-modal-progress .status-projects-summary p{
  color:#1d4ed8;
}
.status-projects-list{
  display:grid;
  gap:12px;
}
.status-project-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:16px;
  background:#fff;
  display:grid;
  gap:13px;
  cursor:pointer;
}
.status-project-card:hover{
  border-color:#bbf7d0;
  background:#fbfffd;
}
.status-modal-progress .status-project-card:hover{
  border-color:#bfdbfe;
  background:#f8fbff;
}
.status-project-main{
  display:flex;
  align-items:center;
  gap:12px;
}
.status-project-main strong{
  display:block;
  color:#172033;
  font-size:15px;
}
.status-project-main small{
  display:block;
  color:#667085;
  margin-top:2px;
  font-weight:700;
}
.status-project-meta{
  display:grid;
  grid-template-columns:repeat(6,minmax(110px,1fr));
  gap:10px;
  align-items:center;
}
.status-project-meta > span:not(.badge){
  display:grid;
  gap:2px;
  padding:8px 10px;
  border-radius:12px;
  background:#f8fafc;
  color:#344054;
  font-size:12px;
  font-weight:800;
}
.status-project-meta b{
  color:#667085;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.status-next{
  padding:11px 12px;
  border-radius:14px;
  background:#f0fdf4;
  color:#166534;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  font-size:13px;
}
.status-modal-progress .status-next{
  background:#eff6ff;
  color:#1d4ed8;
}
.status-next b{
  font-weight:950;
}
.empty-status{
  padding:18px;
  border-radius:16px;
  background:#f8fafc;
  color:#334155;
  font-weight:900;
}
.status-projects-whatsapp{
  display:grid;
  gap:10px;
}
.status-projects-whatsapp-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
}
.status-projects-whatsapp-title strong{
  color:#172033;
}
.status-projects-whatsapp-title small{
  color:#667085;
  font-weight:700;
}
#statusProjectsWhatsappText{
  width:100%;
  min-height:260px;
  resize:vertical;
  border-radius:14px;
  line-height:1.45;
  padding:14px;
  font-size:14px;
  color:#172033;
  background:#fbfdff;
}
.status-projects-actions{
  min-height:76px;
  border-top:1px solid var(--line);
  padding:14px 30px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  background:#fff;
}
@media(max-width:900px){
  .status-project-meta{
    grid-template-columns:repeat(2,1fr);
  }
  .status-projects-summary,
  .status-projects-whatsapp-title,
  .status-projects-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .status-projects-actions button{
    width:100%;
  }
}
