:root{--ink:#26292d;--muted:#777c82;--line:#e5e6e8;--paper:#f6f7f8;--sidebar:246px;--bs-border-radius:4px;--bs-primary:#26292d;--bs-body-color:var(--ink);--bs-body-font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}a{color:inherit}button{touch-action:manipulation}svg.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.btn{font-size:13px;font-weight:600;padding:9px 14px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:none}.btn-dark{--bs-btn-bg:#282b2f;--bs-btn-border-color:#282b2f;--bs-btn-hover-bg:#111315}.btn-light{background:#fff;border-color:#dcdfe2}.btn-link{color:#555b63;text-decoration:none}.form-control,.form-select{font-size:14px;min-height:40px;border-color:#dadde1;border-radius:4px}.form-control:focus,.form-select:focus{border-color:#72777d;box-shadow:0 0 0 3px #272b3010}.form-label{font-size:12px;font-weight:600;margin-bottom:7px}.form-control:disabled,.form-select:disabled{background:#f7f7f7;color:#6f7378}.form-check-input:checked{background-color:#363b42;border-color:#363b42}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:1.8px;font-weight:700;color:#92979c}.loading{height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;font-weight:700;letter-spacing:2px}.loading span{font-weight:400;letter-spacing:0;color:var(--muted)}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:30}.brand{padding:28px 25px 22px}.brand img{width:194px;height:65px;object-fit:contain;display:block}.workspace-label{margin:0 19px 29px;padding:12px;border:1px solid var(--line);display:flex;align-items:center;gap:10px;border-radius:4px;font-size:12px}.workspace-label .mark{background:#30343a;color:white;width:30px;height:30px;display:grid;place-items:center;font-size:11px;font-weight:700}.workspace-label small{color:var(--muted);display:block;font-size:10px;margin-top:2px}.sidebar nav{padding:0 13px;overflow:auto;flex:1}.nav-scope{margin-bottom:23px}.nav-scope summary{display:flex;align-items:center;justify-content:space-between;padding:6px 13px 10px;list-style:none;color:#8a8f95;text-transform:uppercase;font-size:10px;font-weight:650;letter-spacing:1.3px;cursor:pointer}.nav-scope summary::-webkit-details-marker{display:none}.nav-scope summary::after{content:'⌄';font-size:14px}.nav-scope:not([open]) summary::after{content:'›'}.nav-item{width:100%;border:0;background:none;padding:11px 13px;margin:3px 0;display:flex;gap:12px;align-items:center;color:#737880;text-align:left;font-size:13px;border-radius:4px}.nav-item:hover{background:#f7f7f8;color:#25282d}.nav-item.active{background:#eeeff1;color:#25282d;font-weight:650}.nav-item .nav-count{margin-left:auto;font-size:10px;padding:1px 6px;border:1px solid #d9dce0;border-radius:3px}.phase-note{margin:0 25px 23px;color:#999da3;line-height:1.7;font-size:11px}.sidebar-foot{border-top:1px solid var(--line);margin:0 20px;padding:20px 0;font-size:10px;color:#93989e;display:flex;justify-content:space-between}.main{margin-left:var(--sidebar)}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:14px}.breadcrumb-text{color:#92969d;font-size:12px;display:flex;align-items:center;gap:12px}.breadcrumb-text b{font-weight:500;color:#373c43}.top-actions{display:flex;align-items:center;gap:20px}.today-label{font-size:11px;color:#7f848b}.profile-button{display:flex;align-items:center;gap:10px;border:0;border-left:1px solid var(--line);padding:0 0 0 20px;background:none;text-align:left}.avatar{background:#e9ebee;color:#626871;width:34px;height:34px;border-radius:4px;display:grid;place-items:center;font-size:11px;font-weight:650;flex-shrink:0}.profile-name{font-size:12px;font-weight:600;display:block}.profile-role{display:block;color:#92979e;font-size:10px;margin-top:2px}.content{padding:32px 36px 22px;max-width:1800px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.page-heading h1{font-size:27px;font-weight:650;letter-spacing:-.8px;margin:5px 0 7px}.page-heading p{margin:0;color:#868b92;font-size:12px;line-height:1.6}.heading-actions{display:flex;gap:8px;flex-shrink:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);padding:19px 20px;border-radius:5px}.stat-top{display:flex;align-items:center;justify-content:space-between;color:#7d838b;font-size:11px}.stat-top .icon{width:17px;height:17px;color:#9399a1}.stat-value{font-size:31px;font-weight:600;letter-spacing:-1px;margin:11px 0 8px}.stat-foot{font-size:10px;color:#969ba2}.stat-foot b{font-weight:500;color:#666c75}.panel{background:#fff;border:1px solid var(--line);border-radius:5px;overflow:hidden}.panel-head{padding:19px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line)}.panel-head h2{font-size:14px;margin:0;font-weight:650}.panel-head p{font-size:11px;margin:5px 0 0;color:#93989f}.text-button{border:0;background:none;color:#747b84;font-size:11px;display:flex;align-items:center;gap:7px}.text-button:hover{color:#151719}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.project-row{padding:21px 22px;border-bottom:1px solid #eff0f2;display:flex;gap:14px;align-items:center}.project-row:last-child{border:0}.project-symbol{width:38px;height:38px;display:grid;place-items:center;background:#f1f2f4;border:1px solid #e7e9ec;border-radius:4px;color:#727982;flex-shrink:0}.project-info{min-width:0;flex:1}.project-info h3{font-size:12px;margin:0 0 5px;font-weight:650}.project-info p{font-size:10px;margin:0;color:#969ba2}.progress-line{height:4px;background:#eceef1;border-radius:2px;overflow:hidden;margin-top:11px}.progress-line span{display:block;height:100%;background:#656d77}.tag{font-size:10px;border:1px solid #e1e4e8;border-radius:3px;background:#f5f6f7;color:#747b84;padding:3px 7px;white-space:nowrap}.tag.dark{color:#323840;background:#e7e9ed;border-color:#d9dce1}.tag.high{border-color:#b8bec6;color:#3b4149}.task-line{padding:17px 22px;border-bottom:1px solid #eff0f2;display:flex;gap:12px;align-items:center;cursor:pointer}.task-line:hover{background:#fafafb}.task-line:last-child{border:0}.task-line h3{font-size:12px;margin:0 0 5px;line-height:1.45}.task-line p{font-size:10px;color:#9298a0;margin:0}.task-marker{width:7px;height:7px;border:1px solid #8e959e;background:#d7dbe0;border-radius:50%;flex-shrink:0}.task-line .date{font-size:10px;margin-left:auto;white-space:nowrap;color:#8c939c}.welcome-banner{border:1px solid var(--line);border-radius:5px;margin-top:22px;background:#eff1f3;padding:22px 25px;display:flex;align-items:center;gap:18px}.welcome-banner .icon{width:24px;height:24px;color:#777e87}.welcome-banner h3{font-size:12px;font-weight:600;margin:0 0 6px}.welcome-banner p{font-size:11px;color:#8c939b;margin:0}.page-footer{padding:24px 0 0;display:flex;justify-content:space-between;color:#a1a6ad;font-size:10px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.filters{display:flex;gap:10px;flex:1;flex-wrap:wrap}.search-input{max-width:270px}.filter-select{max-width:220px}.view-hint{font-size:11px;color:#939aa3}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.project-card{padding:22px;background:white;border:1px solid var(--line);border-radius:5px}.project-card h2{font-size:16px;line-height:1.5;margin:20px 0 6px}.project-card .description{font-size:12px;color:#8b9199;min-height:40px;white-space:pre-wrap;overflow-wrap:anywhere}.project-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:20px;border-top:1px solid #eeeff1;padding-top:17px}.avatar-stack{display:flex;align-items:center;gap:3px}.avatar-stack .avatar{width:26px;height:26px;font-size:9px}.board{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:16px;align-items:start;overflow-x:auto;padding-bottom:15px}.kanban-column{background:#edeff1;border:1px solid #e4e7ea;border-radius:5px;min-height:430px;padding:13px}.column-heading{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;margin:3px 0 18px}.column-heading span{font-size:10px;color:#979da5;font-weight:400}.column-heading button{margin-left:auto;border:0;background:none;color:#8d949d}.task-card{display:block;width:100%;text-align:left;background:#fff;border:1px solid #e0e3e7;border-radius:4px;padding:16px;margin-bottom:12px;cursor:pointer;color:inherit}.task-card:hover{border-color:#aab1ba}.task-card h3{font-size:12px;line-height:1.6;margin:12px 0 10px;font-weight:600;overflow-wrap:anywhere}.task-card .project-ref{font-size:9px;text-transform:uppercase;letter-spacing:.7px;color:#9299a2;overflow-wrap:anywhere}.task-card .card-meta{display:flex;gap:10px;font-size:10px;align-items:center;color:#969ca5;margin-top:14px;border-top:1px solid #f0f1f3;padding-top:12px}.task-card .card-meta .avatar-stack{margin-left:auto}.task-card .card-meta .icon{width:13px;height:13px}.kanban-column.drag-over{outline:2px solid #8d949d}.empty{padding:45px 25px;text-align:center;color:#9299a2}.empty .icon{width:31px;height:31px;color:#a4abb3;margin-bottom:13px}.empty h3{font-size:13px;color:#6f7781;font-weight:500;margin-bottom:9px}.empty p{font-size:11px;max-width:290px;margin:0 auto 17px;line-height:1.7}.empty-column{border:1px dashed #cfd4da;padding:25px 12px;text-align:center;color:#9ba2ab;font-size:11px}.calendar-head{padding:20px;display:flex;justify-content:space-between;align-items:center}.calendar-head h2{font-size:16px;margin:0;text-transform:capitalize}.calendar-controls{display:flex;gap:7px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.weekday{padding:12px;text-align:center;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:10px;font-weight:600;color:#969da5;text-transform:uppercase}.calendar-day{min-height:115px;border-right:1px solid #e9ecf0;border-bottom:1px solid #e9ecf0;padding:9px;overflow:hidden}.calendar-day:nth-child(7n){border-right:0}.calendar-day.outside{background:#fafbfc;color:#bfc4cb}.day-number{font-size:11px;width:24px;height:24px;display:grid;place-items:center;margin-bottom:5px}.calendar-day.is-today .day-number{background:#30363e;color:white;border-radius:3px}.calendar-event{display:block;width:100%;text-align:left;background:#eceff2;border:0;border-left:2px solid #747d89;padding:5px 6px;margin-top:4px;border-radius:2px;overflow:hidden;font-size:10px;color:#505963}.calendar-event b,.calendar-event small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.calendar-event small{color:#8c959f;font-size:8px;margin-top:2px}.calendar-event.done{opacity:.6}.agenda-mobile{display:none}.table{font-size:12px;margin:0;--bs-table-border-color:#edf0f2}.table th{font-size:10px;color:#969ca4;text-transform:uppercase;letter-spacing:.7px;font-weight:500;background:#fafbfc}.table td,.table th{padding:16px 20px;vertical-align:middle}.table td small{display:block;color:#969da5;margin-top:3px}.table td b{font-weight:600}.mobile-menu{display:none}.overlay{display:none}dialog{padding:0;border:1px solid #dce0e5;border-radius:6px;width:min(660px,calc(100vw - 28px));max-height:90vh;color:var(--ink);box-shadow:0 24px 100px #0002}dialog::backdrop{background:#20263066}dialog header{padding:21px 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}dialog h2{font-size:17px;margin:0;font-weight:600}dialog header button{border:0;background:none;color:#89919b;font-size:23px}dialog .dialog-body{padding:24px 25px;max-height:66vh;overflow-y:auto}dialog footer{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:16px 25px;border-top:1px solid var(--line);background:#fafbfc}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field-grid .full{grid-column:1/-1}.help{font-size:11px;line-height:1.7;color:#9199a3;margin:7px 0 0}.members-box{border:1px solid #dce0e5;border-radius:4px;padding:8px 12px;max-height:155px;overflow:auto}.members-box label{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:12px}.members-box input{accent-color:#373d46}.checklist-item{display:flex;align-items:center;gap:9px;margin-bottom:8px}.checklist-item input[type=checkbox]{accent-color:#373d46;width:16px;height:16px}.checklist-item label{flex:1;font-size:13px}.checklist-item button{border:0;background:none;color:#999}.error-box{color:#8a3434;background:#fff5f5;border:1px solid #e8cece;padding:10px 13px;margin-top:15px;font-size:12px;border-radius:3px}.error-box:empty{display:none}.company-result{border-left:2px solid #8f98a4;padding:10px 12px;background:#f4f6f8;font-size:12px;line-height:1.8;margin-top:10px}.login-page{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;background:#fff}.login-visual{background:#eef0f2;padding:48px 56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-visual img{width:280px;height:94px;object-fit:contain}.login-visual .intro{max-width:450px;position:relative;z-index:1;margin:60px 0}.login-visual h1{font-size:44px;font-weight:550;line-height:1.16;letter-spacing:-1.8px;margin:20px 0}.login-visual p{font-size:14px;line-height:1.9;color:#858d97;max-width:330px}.login-visual footer{font-size:10px;color:#9ca3ac}.grid-art{position:absolute;width:620px;height:620px;right:-310px;bottom:2%;background:url("turbine.png") center/contain no-repeat;opacity:.065;pointer-events:none}.login-form-area{display:flex;align-items:center;justify-content:center;padding:36px}.login-form{width:100%;max-width:350px}.login-form h2{font-size:27px;letter-spacing:-.6px;font-weight:600;margin:14px 0 9px}.login-form p{font-size:12px;color:#9299a2;line-height:1.8}.login-form form{margin-top:30px}.login-form .form-control{min-height:46px}.login-form .btn{width:100%;min-height:44px;margin-top:10px}.login-note{margin-top:25px;text-align:center;border-top:1px solid var(--line);padding-top:20px;font-size:10px!important}.login-logo-mobile{display:none}.notification{position:fixed;bottom:25px;right:25px;z-index:1000;background:#303740;color:#fff;padding:14px 20px;border-radius:4px;max-width:calc(100vw - 40px);font-size:12px;box-shadow:0 6px 25px #0002}.notification.error{background:#753b3b}.nowrap{white-space:nowrap}.pre-wrap{white-space:pre-wrap;overflow-wrap:anywhere}button:disabled{cursor:not-allowed}.project-link{border:0;padding:0;background:none;text-align:left;color:inherit}.project-link:hover{text-decoration:underline}
@media(min-width:1500px){.content{padding-top:40px}.stat{padding:23px}.kanban-column{min-height:550px}}
@media(max-width:1200px){:root{--sidebar:215px}.brand{padding-left:19px}.brand img{width:175px}.content{padding:26px 24px}.topbar{padding:0 24px}.project-grid{grid-template-columns:repeat(2,1fr)}.today-label{display:none}.stats{gap:12px}.stat{padding:17px 15px}.dashboard-grid{grid-template-columns:1.3fr 1fr}}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.page-heading{align-items:flex-start}.page-heading h1{font-size:24px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.login-visual{padding:36px}.login-visual h1{font-size:36px}.calendar-day{min-height:100px;padding:5px}}
@media(max-width:700px){.sidebar{display:none;width:246px}.sidebar.open{display:flex}.overlay.visible{display:block;position:fixed;inset:0;background:#20263066;z-index:29}.main{margin-left:0}.topbar{height:65px;padding:0 18px}.mobile-menu{display:inline-flex;border:0;background:none;padding:5px}.breadcrumb-text{margin-right:auto;font-size:11px}.breadcrumb-text>span{display:none}.profile-button{border:0;padding:0}.profile-button>div:last-child{display:none}.content{padding:24px 18px}.page-heading{display:block;margin-bottom:21px}.page-heading h1{font-size:25px}.heading-actions{margin-top:18px;justify-content:flex-start}.stats{gap:10px;margin-bottom:20px}.stat{padding:15px}.stat-value{font-size:28px}.stat-top{font-size:10px}.stat-foot{font-size:9px}.dashboard-grid{gap:18px}.panel-head{padding:17px}.project-row,.task-line{padding:17px}.welcome-banner{padding:19px;margin-top:18px}.welcome-banner p{line-height:1.7}.project-grid{grid-template-columns:1fr}.toolbar{align-items:flex-start}.filters{gap:8px}.search-input{max-width:none;flex-basis:100%}.filter-select{max-width:none;flex:1;min-width:120px}.view-hint{display:none}.board{grid-template-columns:repeat(4,280px);gap:12px}.kanban-column{min-height:340px}.page-footer{font-size:9px;gap:10px}.calendar-grid{display:none}.agenda-mobile{display:block}.calendar-head{padding:17px}.calendar-head h2{font-size:14px}.calendar-controls .btn{padding:6px 10px}.field-grid{grid-template-columns:1fr}.field-grid .full{grid-column:auto}dialog .dialog-body{padding:20px}dialog header{padding:18px 20px}dialog footer{padding:14px 20px}.login-page{display:block}.login-visual{display:none}.login-form-area{min-height:100vh;padding:28px}.login-logo-mobile{display:block;width:230px;height:80px;object-fit:contain;margin-bottom:40px}.login-form h2{font-size:28px}.table td,.table th{padding:14px;white-space:nowrap}.notification{bottom:16px;right:16px}.profile-role{display:none}}

/* Sidebar corporativa: azul da marca e hierarquia dos menus. */
:root {
  --brand-navy: #002b46;
  --brand-navy-soft: #edf3f7;
}
.sidebar {
  border-right-color: #dfe5eb;
  box-shadow: 3px 0 16px #002b4604;
}
.sidebar .brand { border-top: 3px solid var(--brand-navy); }
.workspace-label {
  background: #f8fafb;
  border-color: #e1e7ec;
  margin-bottom: 24px;
  color: #384c5c;
}
.workspace-label .mark {
  background: var(--brand-navy);
  border-radius: 3px;
  letter-spacing: .5px;
}
.sidebar nav { min-height: 0; padding: 0 14px 38px; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.sidebar nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.sidebar-scroll-fade { position: relative; z-index: 1; flex: 0 0 52px; margin-top: -52px; pointer-events: none; visibility: hidden; background: linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(246,249,251,.8) 58%,#edf3f7 100%); }
.sidebar.has-scroll-below .sidebar-scroll-fade { visibility: visible; }
.sidebar .brand,.sidebar-foot { flex-shrink: 0; }
.nav-scope {
  margin-bottom: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid #eef1f4;
}
.nav-scope:last-child { border-bottom: 0; }
.nav-scope summary {
  min-height: 42px;
  padding: 11px 12px;
  margin-bottom: 5px;
  border-radius: 4px;
  color: #667785;
  font-size: 10px;
  letter-spacing: 1.05px;
  font-weight: 700;
  gap: 10px;
  user-select: none;
}
.nav-scope summary:hover { background: #f4f7f9; color: var(--brand-navy); }
.nav-scope summary:focus-visible {
  outline: 2px solid var(--brand-navy);
  outline-offset: -2px;
}
.nav-scope[open] summary { color: var(--brand-navy); }
.nav-scope summary::after,
.nav-scope:not([open]) summary::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin: 0 3px 0 0;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(-45deg);
}
.nav-scope[open] summary::after { transform: translateY(-2px) rotate(45deg); }
.nav-scope:not([open]) { padding-bottom: 5px; }
.nav-item {
  position: relative;
  min-height: 46px;
  padding: 8px 12px;
  margin: 4px 0;
  gap: 10px;
  color: #64717d;
  border: 1px solid transparent;
}
.nav-item > .icon {
  width: 29px;
  height: 29px;
  padding: 5px;
  color: var(--brand-navy);
  background: #f2f6f9;
  border-radius: 4px;
  stroke-width: 1.7;
}
.nav-item:hover {
  color: var(--brand-navy);
  background: #f5f8fa;
  border-color: #e7edf2;
}
.nav-item.active {
  background: var(--brand-navy-soft);
  color: var(--brand-navy);
  border-color: #dfe8ef;
  box-shadow: inset 3px 0 0 var(--brand-navy);
  font-weight: 650;
}
.nav-item.active > .icon { color: #fff; background: var(--brand-navy); }
.nav-item:focus-visible { outline: 2px solid var(--brand-navy); outline-offset: 1px; }
.nav-item .nav-count {
  color: #496478;
  border-color: #d4e0e9;
  background: #fff;
  padding: 2px 6px;
  font-weight: 600;
}
.sidebar-foot { border-top-color: #e5ebf0; }
.sidebar-foot > span:first-child { color: #526d80; letter-spacing: 1px; font-weight: 600; }
.mobile-menu { color: var(--brand-navy); }
.checklist-item { padding: 6px; border: 1px solid transparent; border-radius: 4px; }
.checklist-item .checklist-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 36px;
  padding: 3px;
  color: var(--brand-navy);
  background: #edf3f7;
  border-radius: 3px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.checklist-handle .icon { stroke-width: 3; }
.checklist-item.is-reordering { border-color: #8da9bb; background: #edf3f7; }
.checklist-item.is-reordering .checklist-handle { cursor: grabbing; }
.checklist-item input.form-control { min-width: 0; }
.checklist-item .checklist-handle:focus-visible { outline: 2px solid var(--brand-navy); }
.checklist-progress { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.checklist-progress strong { color: var(--brand-navy); background: #edf3f7; padding: 2px 5px; border-radius: 3px; font-weight: 650; }
.task-card .card-meta { flex-wrap: wrap; }

/* Padrão global de dropdowns: todos os selects simples são aprimorados automaticamente. */
.hub-select { position: relative; width: 100%; min-width: 0; }
.hub-select-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; padding: 0; border: 0; overflow: hidden; }
.hub-select-trigger { width: 100%; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 13px; background: #fff; border: 1px solid #d7dfe6; border-radius: 4px; color: #354552; text-align: left; font-size: 13px; line-height: 1.5; }
.hub-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-select-trigger:hover:not(:disabled) { border-color: #92a8b8; background: #fcfdfe; }
.hub-select-trigger:focus-visible,.hub-select-trigger[aria-expanded=true] { outline: none; border-color: var(--brand-navy); box-shadow: 0 0 0 3px #002b4610; }
.hub-select-trigger:disabled { background: #f4f6f8; color: #929ba3; cursor: not-allowed; }
.hub-select-trigger[aria-invalid=true] { border-color: #a85252; }
.hub-select-arrow { width: 7px; height: 7px; flex: 0 0 7px; border-right: 1.7px solid var(--brand-navy); border-bottom: 1.7px solid var(--brand-navy); transform: translateY(-2px) rotate(45deg); margin-right: 3px; }
.hub-select-trigger[aria-expanded=true] .hub-select-arrow { transform: translateY(2px) rotate(225deg); }
.hub-select-menu { position: fixed; inset: auto; margin: 0; padding: 5px; box-sizing: border-box; overflow-y: auto; overscroll-behavior: contain; background: #fff; color: #354552; border: 1px solid #dce4eb; border-radius: 5px; box-shadow: 0 8px 24px #002b461a,0 2px 5px #002b4608; z-index: 1100; scrollbar-width: thin; scrollbar-color: #bdcbd5 transparent; }
.hub-select-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 39px; padding: 9px 11px; border-radius: 3px; font-size: 13px; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.hub-select-option + .hub-select-option { margin-top: 2px; }
.hub-select-option[aria-selected=true] { color: var(--brand-navy); background: #edf3f7; font-weight: 600; }
.hub-select-option:hover:not([aria-disabled=true]),.hub-select-option.is-focused { background: #e5edf3; color: var(--brand-navy); }
.hub-select-option[aria-disabled=true] { opacity: .45; cursor: not-allowed; }
.hub-select-check { width: 11px; height: 6px; flex: 0 0 11px; border-left: 1.7px solid transparent; border-bottom: 1.7px solid transparent; transform: rotate(-45deg); }
.hub-select-option[aria-selected=true] .hub-select-check { border-color: var(--brand-navy); }
.hub-select-group { padding: 10px 11px 5px; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: #81909d; }
/* Avisos e confirmações do sistema. */
dialog.hub-system-dialog { width: min(460px,calc(100vw - 32px)); padding: 0; border: 1px solid #dce4eb; border-radius: 5px; box-shadow: 0 18px 65px #002b4626; color: #354552; }
.hub-system-dialog::backdrop { background: #182e4059; }
.hub-system-body { padding: 28px; }
.hub-system-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 20px; border: 1px solid #dce7ef; border-radius: 4px; background: #edf3f7; color: var(--brand-navy); }
.hub-system-mark .icon { width: 23px; height: 23px; }
.hub-system-body h2 { margin: 0 0 12px; font-size: 19px; font-weight: 650; color: var(--brand-navy); line-height: 1.4; }
.hub-system-body p { margin: 0; font-size: 14px; line-height: 1.8; color: #6a7b88; white-space: pre-wrap; overflow-wrap: anywhere; }
.hub-system-dialog .hub-system-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 17px 28px; border-top: 1px solid #e3eaf0; background: #f8fafb; }
.hub-system-actions .btn { min-height: 42px; }
.hub-system-actions .btn-dark { background: var(--brand-navy); border-color: var(--brand-navy); }
.hub-system-actions .btn-dark:hover { background: #001f33; border-color: #001f33; }
.notification { display: flex; align-items: flex-start; gap: 12px; width: min(440px,calc(100vw - 40px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 17px; border: 1px solid #dce4eb; border-left: 3px solid var(--brand-navy); border-radius: 4px; background: #fff; color: #354552; box-shadow: 0 8px 28px #002b461a; z-index: 1200; }
.notification.error { background: #fff; color: #354552; border-left-color: #995454; }
.notification-mark { display: grid; place-items: center; flex: 0 0 30px; height: 30px; background: #edf3f7; color: var(--brand-navy); border-radius: 3px; }
.notification.error .notification-mark { color: #8a4343; background: #fbf0f0; }
.notification-mark .icon { width: 18px; height: 18px; }
.notification-message { flex: 1; min-width: 0; padding-top: 4px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.notification-close { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 30px; padding: 4px; border: 0; border-radius: 3px; color: #8799a7; background: #fff; }
.notification-close:hover { color: var(--brand-navy); background: #edf3f7; }
.notification-close .icon { width: 15px; height: 15px; }
@media(max-width:700px) { .hub-system-body { padding: 23px; } .hub-system-dialog .hub-system-actions { padding: 15px 23px; } .hub-system-actions .btn { flex: 1; } }
/* Datas seguem o mesmo painel, bordas, cores e foco dos demais dropdowns. */
.hub-date { position: relative; width: 100%; min-width: 0; }
.hub-date-trigger.is-empty { color: #8795a1; }
.hub-date-icons { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-navy); flex-shrink: 0; }
.hub-date-icons .icon { width: 17px; height: 17px; }
.hub-calendar-menu { display: flex; flex-direction: column; padding: 14px; overflow: hidden; }
.hub-calendar-head { display: flex; flex-shrink: 0; align-items: center; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid #e7edf2; }
.hub-calendar-selectors { flex: 1; display: grid; grid-template-columns: minmax(0,1fr) 86px; gap: 6px; min-width: 0; }
.hub-calendar-selectors:has(> :only-child) { grid-template-columns: 1fr; }
.hub-calendar-selectors .hub-select-trigger { min-height: 36px; padding: 7px 9px; gap: 8px; font-size: 12px; font-weight: 600; }
.hub-calendar-menu .hub-select-option > span:first-child { white-space: nowrap; }
.hub-calendar-nav { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 36px; padding: 0; color: var(--brand-navy); background: #fff; border: 1px solid #dce4eb; border-radius: 3px; }
.hub-calendar-chevron { width: 7px; height: 7px; border-left: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: translateX(2px) rotate(45deg); }
.hub-calendar-nav[data-nav=next] .hub-calendar-chevron { transform: translateX(-2px) rotate(225deg); }
.hub-calendar-days,.hub-calendar-months { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.hub-calendar-days { margin-top: 8px; }
.hub-calendar-days > [role=row] { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; margin-top: 3px; }
.hub-calendar-week { position: sticky; top: 0; z-index: 1; background: #fff; }
.hub-calendar-week span { padding: 8px 0; text-align: center; color: #82919e; font-size: 10px; font-weight: 600; }
.hub-calendar-day { min-width: 0; height: 36px; padding: 0; background: #fff; border: 1px solid transparent; border-radius: 3px; color: #354552; font-size: 12px; font-variant-numeric: tabular-nums; }
.hub-calendar-day.is-outside { color: #a7b2bb; }
.hub-calendar-day[aria-current=date] { border-color: #9bb0c0; color: var(--brand-navy); font-weight: 700; }
.hub-calendar-day[aria-selected=true] { color: #fff; background: var(--brand-navy); border-color: var(--brand-navy); font-weight: 600; }
.hub-calendar-day:hover:not(:disabled):not([aria-selected=true]),.hub-calendar-nav:hover:not(:disabled) { background: #e5edf3; color: var(--brand-navy); }
.hub-calendar-day:focus-visible,.hub-calendar-nav:focus-visible,.hub-calendar-footer button:focus-visible { outline: 2px solid var(--brand-navy); outline-offset: 1px; }
.hub-calendar-menu button:disabled { opacity: .35; }
.hub-calendar-footer { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #e7edf2; }
.hub-calendar-footer button { border: 0; border-radius: 3px; padding: 8px 10px; background: #fff; color: var(--brand-navy); font-size: 12px; font-weight: 600; }
.hub-calendar-footer button:hover:not(:disabled) { background: #edf3f7; }
.hub-calendar-months > [role=row] { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 8px; }
.hub-calendar-months .hub-calendar-day { height: 43px; }
@media(pointer:coarse) { .hub-calendar-day { height: 40px; } .hub-calendar-nav { height: 40px; } .hub-calendar-footer button { min-height: 40px; } }
@media(forced-colors:active) { .hub-calendar-day[aria-selected=true] { background: Highlight; color: HighlightText; } }
.board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px,1fr); }
.board { --kanban-height: clamp(360px,calc(100dvh - 270px),760px); align-items: stretch; }
.board .kanban-column { display: flex; flex-direction: column; min-height: 0; height: var(--kanban-height); overflow: hidden; }
.board .column-heading { flex-shrink: 0; }
.task-list { flex: 1; min-height: 0; padding: 2px 5px 2px 2px; overflow-y: auto; overscroll-behavior: contain; }
.task-list:has(> .task-card:not(.kanban-drag-source),> .kanban-drop-placeholder) > .empty-column { display: none; }
.task-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.task-card-top .project-ref { padding-top: 5px; }
.task-sort-handle { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; margin: -4px -4px 0 0; border: 1px solid #e0e8ee; border-radius: 3px; background: #f3f7fa; color: var(--brand-navy); cursor: grab; touch-action: none; user-select: none; }
.task-sort-handle .icon { width: 16px; height: 19px; stroke-width: 3; }
.task-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; color: inherit; }
.task-card { user-select: none; -webkit-user-select: none; }
.task-card[data-sortable=true],.task-card[data-sortable=true] .task-open { cursor: grab; }
.task-card img { pointer-events: none; -webkit-user-drag: none; }
.kanban-drag-source { display: none !important; }
.kanban-drop-placeholder { margin-bottom: 12px; border: 2px dashed #7f9caf; border-radius: 4px; background: #eaf1f6; pointer-events: none; }
.task-card.kanban-drag-ghost { position: fixed; left: 0; top: 0; z-index: 1400; margin: 0; pointer-events: none; border: 1px solid #63879f; background: #fff; box-shadow: 0 8px 24px #002b4624; contain: layout paint; }
.kanban-dragging,.kanban-dragging * { cursor: grabbing !important; user-select: none !important; -webkit-user-select: none !important; }
.kanban-dragging .task-list { overflow-anchor: none; scroll-behavior: auto; }
.board.is-saving .task-sort-handle { cursor: progress; }
.board .kanban-column.drag-over { outline: 1px solid #8ca7b9; outline-offset: -1px; }
@media(max-width:700px) { .task-sort-handle { width: 40px; height: 40px; } }
.task-list:focus-visible,.task-sort-handle:focus-visible,.task-open:focus-visible { outline: 2px solid var(--brand-navy); outline-offset: 2px; }
.login-public-link { text-align: center; margin-top: 15px; }
.login-public-link a { color: var(--brand-navy); font-size: 12px; }
.signature-public-page { min-height: 100vh; background: #f5f7f9; }
.signature-public-shell { width: min(100% - 36px,650px); margin: 0 auto; padding: 45px 0 25px; }
.signature-public-brand { display: block; margin-bottom: 35px; }
.signature-public-brand img { width: 235px; height: 78px; object-fit: contain; }
.signature-public-card { padding: 35px; background: #fff; border: 1px solid #dce5ec; border-radius: 5px; }
.signature-public-card h1 { margin: 12px 0; font-size: 29px; font-weight: 650; color: var(--brand-navy); letter-spacing: -.7px; }
.signature-public-card > p { font-size: 14px; line-height: 1.8; color: #7c8b97; }
.signature-public-card form { margin-top: 29px; }
#signature-hash { resize: vertical; min-height: 100px; font-family: ui-monospace,Consolas,monospace; font-size: 14px; overflow-wrap: anywhere; }
#signature-lookup-submit { margin-top: 22px; min-height: 44px; background: var(--brand-navy); border-color: var(--brand-navy); }
.signature-public-result { margin-top: 28px; padding: 22px; background: #f3f7fa; border: 1px solid #d8e4ed; border-left: 3px solid var(--brand-navy); border-radius: 3px; }
.signature-public-result.is-invalid { background: #fcf8f7; border-color: #eadcd8; border-left-color: #995f53; }
.signature-public-result h2 { font-size: 18px; margin: 0 0 10px; color: var(--brand-navy); }
.signature-public-result p { font-size: 13px; line-height: 1.8; margin: 0; color: #6c7e8c; }
.signature-public-result dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 22px 0 0; font-size: 12px; }
.signature-public-result dt { color: #7d8e9a; font-weight: 500; }
.signature-public-result dd { margin: 0; color: #354f61; overflow-wrap: anywhere; }
.signature-public-footer { text-align: center; margin-top: 25px; font-size: 11px; color: #92a0ac; line-height: 1.7; }
@media(max-width:700px) { .board { --kanban-height: clamp(320px,calc(100dvh - 285px),640px); grid-auto-columns: 280px; } .signature-public-shell { padding-top: 20px; } .signature-public-brand { margin-bottom: 20px; } .signature-public-card { padding: 25px 21px; } .signature-public-card h1 { font-size: 25px; } .signature-public-result { padding: 18px 15px; } .signature-public-result dl { grid-template-columns: 1fr; gap: 4px; } .signature-public-result dd { margin-bottom: 10px; } #signature-lookup-submit { width: 100%; } }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.avatar-large { width: 70px; height: 70px; font-size: 21px; }
.profile-summary { display: flex; align-items: center; gap: 18px; }
.profile-summary h3 { font-size: 16px; margin: 0 0 6px; }
.profile-summary p { font-size: 12px; color: #7b8792; margin: 0 0 8px; }
.job-label { color: var(--brand-navy) !important; }
.form-section-title { font-size: 13px; color: var(--brand-navy); padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid #e3e9ee; }
.company-details { border: 1px solid #e1e7ed; border-radius: 4px; overflow: hidden; }
.company-details summary { font-size: 12px; padding: 13px; color: var(--brand-navy); background: #f7f9fb; cursor: pointer; overflow-wrap: anywhere; }
.company-details summary span { font-size: 10px; color: #87939e; }
.company-details > .field-grid { padding: 15px; }
.company-field { display: block; width: 100%; overflow-wrap: anywhere; }
.company-field .form-control,.company-field .hub-select { margin-top: 7px; font-weight: 400; }
.catalog-list { display: grid; gap: 10px; }
.catalog-row { display: flex; gap: 7px; }
.catalog-row input { min-width: 0; }
.photo-crop { width: min(100%,280px); aspect-ratio: 1; margin: 20px auto; border: 1px solid #aabdc9; border-radius: 4px; overflow: hidden; }
#photo-canvas { width: 100%; display: block; touch-action: none; cursor: grab; }
#photo-canvas:active { cursor: grabbing; }
#photo-editor { width: min(480px,calc(100vw - 28px)); }
@media(max-width:700px) { .board { grid-auto-columns: 280px; } .profile-summary { align-items: flex-start; } .catalog-row { flex-wrap: wrap; } .catalog-row input { flex-basis: 100%; } }
@media(max-width:700px) { .hub-select-trigger { min-height: 44px; } .hub-select-option { min-height: 44px; } }

/* Rolagem discreta em páginas, modais, listas e quadros. */
* { scrollbar-width: thin; scrollbar-color: #bdc6ce transparent; }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #bdc6ce; border-radius: 8px; }
*::-webkit-scrollbar-thumb:hover { background: #8fa0ae; }
*::-webkit-scrollbar-corner { background: transparent; }
.sidebar .brand { padding-bottom: 26px; }
.notice-feed { max-width: 1000px; display: grid; gap: 20px; }
.notice-card { background: white; border: 1px solid #e1e7ec; border-radius: 5px; padding: 24px; }
.notice-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.notice-author { display: flex; align-items: center; gap: 10px; }
.notice-author b { display: block; font-size: 12px; font-weight: 600; }
.notice-author time { font-variant-numeric: tabular-nums; }
.notice-author div > span { display: block; color: #87939d; font-size: 10px; margin-top: 3px; }
.notice-actions { display: flex; gap: 13px; }
.notice-card h2 { font-size: 19px; font-weight: 600; margin: 0 0 16px; overflow-wrap: anywhere; }
.notice-body { font-size: 13px; line-height: 1.85; color: #52606c; overflow-wrap: anywhere; }
.notice-body p { margin: 0 0 7px; white-space: pre-wrap; }
.notice-body ul { margin: 8px 0; padding-left: 22px; }
.notice-line-break { height: 9px; }
.notice-mention { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; max-width: 100%; padding: 1px 6px; border: 1px solid #dce7ef; background: #edf3f7; color: var(--brand-navy); border-radius: 3px; font-size: inherit; line-height: 1.7; text-align: left; }
.notice-mention .icon { width: 13px; height: 13px; }
.notice-mention:hover { background: #dfeaf2; border-color: #9bb2c3; }
.notice-editor { border: 1px solid #d5dfe7; border-radius: 4px; overflow: hidden; }
.notice-toolbar { display: flex; align-items: center; gap: 5px; padding: 7px; border-bottom: 1px solid #e1e7ed; background: #f7f9fb; }
.notice-toolbar button { background: transparent; color: var(--brand-navy); border: 0; border-radius: 3px; min-width: 32px; height: 32px; padding: 4px 8px; font-size: 13px; }
.notice-toolbar button:hover { background: #e6eef4; }
.notice-toolbar > span { width: 1px; height: 18px; background: #d7e0e7; margin: 0 4px; }
.notice-editor textarea { border: 0; border-radius: 0; min-height: 200px; resize: vertical; font-size: 13px; line-height: 1.8; }
.notice-editor textarea:focus { box-shadow: inset 0 0 0 1px #849eaf; }
.notice-preview { padding: 16px; }
.mention-picker { border-top: 1px solid #dce5ec; background: #fff; }
.mention-picker-label { padding: 10px 13px 5px; font-size: 10px; color: #7c8d9c; text-transform: uppercase; letter-spacing: .8px; }
#mention-results { max-height: 190px; overflow: auto; padding: 4px; }
.mention-result { padding: 9px 10px; display: flex; align-items: center; gap: 10px; border-radius: 3px; color: var(--brand-navy); cursor: pointer; }
.mention-result b { display: block; font-size: 12px; font-weight: 500; }
.mention-result small { display: block; font-size: 10px; color: #8a98a3; margin-top: 3px; }
.mention-result:hover,.mention-result.is-focused { background: #edf3f7; }
@media(max-width:700px) { .notice-card { padding: 18px; } .notice-card > header { flex-wrap: wrap; gap: 12px; } .notice-card h2 { font-size: 17px; } .notice-actions { margin-left: 44px; } .notice-mention { font-size: 12px; } }
@media(forced-colors:active) { * { scrollbar-color: auto; } }

/* Horas e faturamento */
.time-day { border: 1px solid #dfe6ec; border-radius: 4px; margin-bottom: 12px; background: #fff; }
.time-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f4f7f9; padding: 13px; }
.time-day-heading label { display: flex; align-items: center; gap: 8px; font-size: 12px; margin: 0; cursor: pointer; }
.time-day-heading label span { color: #8c98a2; font-size: 10px; }
.time-day-heading strong { font-size: 11px; color: var(--brand-navy); white-space: nowrap; }
.time-day input[type=checkbox],.finance-checkbox input,.weekday-checkboxes input,.review-controls input { accent-color: var(--brand-navy); }
.day-fields { padding: 15px; }
.time-fields { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.time-fields .form-label { flex: 1; min-width: 105px; margin: 0; }
.time-fields .form-control { margin-top: 6px; }
.lunch-toggle { flex-basis: 100%; display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.time-day-off { border-color: #e8edf1; }
.time-day-off .time-day-heading { background: #fafbfc; }
.time-day-off .time-day-heading b { color: #87939e; font-weight: 500; }
.finance-total { border-top: 1px solid #dce5ec; padding: 18px 0 0; margin: 18px 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #798995; }
.finance-total strong { font-size: 20px; font-weight: 600; color: var(--brand-navy); }
.review-note { padding: 13px 15px; margin: 0 0 20px; border-left: 3px solid #607f95; background: #f0f4f7; font-size: 12px; color: #536a7c; }
.review-note p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 5px 0 0; }
.finance-document-head { margin-bottom: 22px; }
.finance-document-head h3 { font-size: 17px; color: var(--brand-navy); margin: 0 0 7px; }
.finance-document-head p { font-size: 12px; color: #87939e; }
.sheet-read-entries article,.invoice-day-list article { padding: 16px; border: 1px solid #e2e8ed; border-radius: 4px; margin-bottom: 12px; }
.sheet-read-entries article header,.invoice-day-list article header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0; margin-bottom: 10px; border: 0; font-size: 12px; }
.sheet-read-entries article header span { font-size: 11px; color: #8b99a4; }
.sheet-read-entries article p { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; color: #5e6e7b; }
.sheet-read-entries article small { color: #8b99a4; font-size: 10px; }
.signature-panel { padding: 17px; margin-top: 20px; border: 1px solid #b7cbd9; background: #f2f7fa; border-radius: 4px; font-size: 12px; }
.signature-panel p { margin: 7px 0; color: #708796; font-size: 11px; }
.signature-panel code { display: block; overflow-wrap: anywhere; color: #345a73; font-size: 10px; }
.review-controls { padding-top: 24px; margin-top: 24px; border-top: 1px solid #dce5ec; }
.review-controls > label:first-child { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.8; }
.review-controls > label:first-child input { margin-top: 5px; }
.invoice-day-list article header strong { color: var(--brand-navy); font-size: 15px; }
.invoice-day-list article p { color: #85939f; font-size: 11px; }
.finance-company-summary { display: flex; align-items: center; gap: 22px; padding: 24px; }
.finance-company-summary img { max-width: 180px; max-height: 60px; object-fit: contain; }
.finance-company-summary b { font-size: 13px; }
.finance-company-summary p { color: #8796a1; font-size: 11px; margin: 7px 0 0; }
.weekday-checkboxes { display: flex; gap: 8px 18px; flex-wrap: wrap; border: 1px solid #e0e7ed; padding: 13px; border-radius: 4px; }
.weekday-checkboxes label { display: flex; gap: 7px; align-items: center; font-size: 12px; }
.finance-checkbox { display: flex; align-items: center; gap: 9px; font-size: 12px; margin: 19px 0 6px; }
.issuer-preview { max-width: 100%; max-height: 100px; object-fit: contain; margin: 18px 0; }
@media(max-width:700px) { .time-day-heading { align-items: flex-start; padding: 11px; } .time-day-heading label { flex-wrap: wrap; } .time-day-heading label span { flex-basis: 100%; margin-left: 22px; } .sheet-read-entries article header { flex-wrap: wrap; } .finance-company-summary { flex-wrap: wrap; } }
.billing-select-all { display: flex; align-items: center; gap: 9px; margin: 17px 0; font-size: 12px; color: var(--brand-navy); }
.billing-selection-group { border: 1px solid #dce5ec; border-radius: 4px; margin: 13px 0; overflow: hidden; }
.billing-selection-group header { padding: 13px; background: #f4f7fa; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e5ebef; }
.billing-selection-group header label { display: flex; gap: 9px; align-items: center; font-size: 12px; }
.billing-selection-group header > span { font-size: 10px; color: #8c9ba6; white-space: nowrap; }
.billing-sheet-option { padding: 13px; display: flex; align-items: center; gap: 10px; font-size: 12px; border-bottom: 1px solid #eef2f5; cursor: pointer; }
.billing-sheet-option:last-child { border: 0; }
.billing-sheet-option small { display: block; color: #8b9ba7; font-size: 10px; margin-top: 4px; }
.billing-sheet-option strong { margin-left: auto; color: var(--brand-navy); font-size: 11px; white-space: nowrap; }
.billing-week { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e6edf2; font-size: 12px; }
.billing-week > span { flex: 1; }
.billing-week small { display: block; color: #8597a4; font-size: 10px; margin-top: 5px; }
.billing-week strong { font-size: 11px; color: var(--brand-navy); white-space: nowrap; }
.billing-project-name { display: block; font-size: 11px; color: #8497a6; margin-top: 5px; }
.billing-night { padding: 10px 12px; border-left: 2px solid #7797af; background: #f1f6fa; margin-top: 12px; color: #526f84; }
.billing-night b { font-size: 11px; font-weight: 600; }
.billing-night p { font-size: 11px !important; color: #526f84 !important; margin: 4px 0; }
.billing-night small { font-size: 10px; }
.billing-worked-periods { font-variant-numeric: tabular-nums; }
.billing-select-all input,.billing-selection-group input,#billing-consent { accent-color: var(--brand-navy); }
@media(max-width:700px) { .billing-week { flex-wrap: wrap; gap: 8px; } .billing-week > span { min-width: 70%; } .billing-selection-group header { align-items: flex-start; } }

/* Páginas amplas do fluxo financeiro: rolagem da página, sem janelas sobrepostas. */
.finance-page-content { max-width: 1720px; }
.finance-workspace { width: 100%; min-width: 0; padding-bottom: 16px; }
.finance-page-breadcrumb { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; color: #8c9aa5; font-size: 12px; }
.finance-page-breadcrumb .text-button { color: var(--brand-navy); font-size: 12px; padding: 5px 0; }
.finance-page-breadcrumb .icon { width: 15px; height: 15px; transform: rotate(180deg); }
.finance-page-breadcrumb > span { border-left: 1px solid #d8e2e9; padding-left: 14px; }
.finance-workspace .page-heading { margin-bottom: 24px; }
.finance-workspace h1:focus { outline: none; }
#finance-page-form { background: #fff; border: 1px solid #dfe6ec; border-radius: 5px; min-width: 0; }
.finance-page-body { padding: 30px; min-width: 0; font-size: 14px; }
.finance-page-body .field-grid { gap: 24px; }
.finance-page-body .form-label { font-size: 13px; margin-bottom: 9px; }
.finance-page-body .form-control,.finance-page-body .hub-select-trigger { min-height: 45px; font-size: 14px; padding: 11px 13px; }
.finance-page-body textarea.form-control { min-height: 105px; line-height: 1.8; }
.finance-page-body .help { font-size: 12px; line-height: 1.8; }
.finance-page-body .time-day { margin-bottom: 18px; }
.finance-page-body .time-day-heading { padding: 17px 20px; }
.finance-page-body .time-day-heading label { gap: 10px; font-size: 14px; }
.finance-page-body .time-day-heading label span { font-size: 12px; }
.finance-page-body .time-day-heading strong { font-size: 13px; }
.finance-page-body .day-fields { padding: 22px; }
.finance-page-body .time-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; align-items: end; }
.finance-page-body .time-fields .form-label { min-width: 0; margin: 0; }
.finance-page-body .lunch-toggle { margin: 24px 0 0; min-height: 45px; font-size: 13px; align-self: end; }
.finance-page-body .day-description { margin-top: 7px; }
.finance-page-body .finance-document-head { padding-bottom: 22px; border-bottom: 1px solid #e6edf2; margin-bottom: 26px; }
.finance-page-body .finance-document-head h3 { font-size: 21px; }
.finance-page-body .finance-document-head p { font-size: 13px; }
.finance-page-body .form-section-title { font-size: 14px; margin: 27px 0 18px; }
.finance-page-body .sheet-read-entries article { padding: 22px; margin-bottom: 18px; }
.finance-page-body .sheet-read-entries article header { font-size: 14px; margin-bottom: 15px; }
.finance-page-body .sheet-read-entries article header span { font-size: 13px; }
.finance-page-body .sheet-read-entries article p { font-size: 14px; line-height: 1.85; max-width: 105ch; }
.finance-page-body .sheet-read-entries article small { font-size: 12px; }
.finance-page-body .invoice-day-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.finance-page-body .invoice-day-list article { margin: 0; padding: 22px; min-width: 0; }
.finance-page-body .invoice-day-list article header { font-size: 14px; margin-bottom: 14px; }
.finance-page-body .invoice-day-list article p,.finance-page-body .billing-night p { font-size: 13px !important; }
.finance-page-body .billing-night { padding: 13px 15px; margin-top: 16px; }
.finance-page-body .billing-night b { font-size: 12px; }
.finance-page-body .billing-night small { font-size: 11px; }
.finance-page-body .billing-week { padding: 16px 0; font-size: 14px; }
.finance-page-body .billing-week small { font-size: 12px; }
.finance-page-body .billing-week strong { font-size: 13px; }
.finance-page-body #billing-selection { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: start; }
.finance-page-body .billing-selection-group { margin: 0; min-width: 0; }
.finance-page-body .billing-selection-group header { padding: 17px; }
.finance-page-body .billing-selection-group header label,.finance-page-body .billing-select-all { font-size: 14px; }
.finance-page-body .billing-sheet-option { padding: 17px; font-size: 13px; }
.finance-page-body .billing-sheet-option small { font-size: 11px; }
.finance-page-body .review-controls { background: #f6f9fb; border: 1px solid #e0e8ee; padding: 24px; border-radius: 4px; }
.finance-page-body .review-controls > label:first-child { font-size: 14px; }
.finance-page-body .signature-panel { padding: 22px; font-size: 14px; }
.finance-page-body .finance-total { padding-top: 23px; margin-top: 26px; font-size: 14px; }
.finance-page-feedback { padding: 0 30px; }
.finance-page-feedback .error-box { margin: 0 0 20px; font-size: 13px; }
.finance-page-actions { position: sticky; bottom: 0; z-index: 8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 30px; background: #fff; border-top: 1px solid #e1e8ee; border-radius: 0 0 5px 5px; box-shadow: 0 -4px 14px #002b4605; }
.finance-page-actions .btn { min-height: 43px; }
.finance-page-extra,.finance-page-primary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.finance-page-extra:empty { display: none; }
.finance-page-primary { margin-left: auto; }
@media(max-width:1100px) { .finance-page-body .time-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } .finance-page-body .lunch-toggle { margin-top: 0; } .finance-page-body #billing-selection { grid-template-columns: 1fr; } }
@media(max-width:800px) { .finance-page-body .invoice-day-list { grid-template-columns: 1fr; } }
@media(max-width:700px) {
  .finance-page-body { padding: 20px 15px; }
  .finance-page-body .field-grid { grid-template-columns: 1fr; gap: 21px; }
  .finance-page-body .form-control,.finance-page-body .hub-select-trigger { min-height: 46px; font-size: 16px; }
  .finance-page-body .time-day-heading { padding: 14px; }
  .finance-page-body .day-fields { padding: 16px 13px; }
  .finance-page-body .time-fields { gap: 17px 12px; }
  .finance-page-body .lunch-toggle,.finance-page-body .lunch-time { grid-column: 1/-1; }
  .finance-page-body .lunch-toggle { min-height: 30px; }
  .finance-page-body .sheet-read-entries article,.finance-page-body .invoice-day-list article { padding: 17px; }
  .finance-page-body .review-controls { padding: 18px 14px; }
  .finance-page-body .finance-document-head h3 { font-size: 18px; }
  .finance-page-body .finance-total { flex-wrap: wrap; }
  .finance-page-actions { padding: 14px; gap: 10px; }
  .finance-page-primary { width: 100%; margin-left: 0; flex-wrap: nowrap; }
  .finance-page-primary .btn { flex: 1; }
  .finance-page-extra { width: 100%; }
  .finance-page-extra .btn { width: 100%; }
  .finance-page-feedback { padding: 0 15px; }
  .finance-page-breadcrumb { margin-bottom: 20px; }
}

/* Dias do faturamento: uma linha por dia/projeto, com ações alinhadas. */
.billing-days-scroll { border: 1px solid #e2e8ed; border-radius: 3px; }
.billing-days-table { width: 100%; min-width: 980px; margin: 0; }
.billing-days-table thead th { background: #f7f9fb; white-space: nowrap; }
.billing-days-table tbody td { padding: 12px 14px; vertical-align: middle; font-size: 12px; }
.billing-days-table tbody tr:last-child td { border-bottom: 0; }
.billing-days-table td small { display: block; margin-top: 4px; color: #748594; font-size: 11px; line-height: 1.4; }
.billing-days-table .billing-day-project { min-width: 140px; max-width: 220px; overflow-wrap: anywhere; }
.billing-days-table .billing-day-periods,.billing-days-table .billing-day-night { min-width: 145px; font-variant-numeric: tabular-nums; }
.billing-days-table .billing-day-value { text-align: right; color: var(--brand-navy); }
.billing-days-table .billing-day-action { width: 1%; white-space: nowrap; }
.billing-days-table .billing-day-action .btn { padding: 8px 12px; font-size: 12px; }
.billing-days-scroll:focus-visible { outline: 2px solid #7797af; outline-offset: 2px; }

/* Cores semânticas suaves; o texto do status permanece explícito. */
.status-tag { border: 1px solid transparent; }
.tag.status-draft { background:#f0f2f4; color:#596471; border-color:#dfe4e8; }
.tag.status-pending,.tag.status-paused { background:#faf4e6; color:#80652e; border-color:#eadfc5; }
.tag.status-returned { background:#f8eceb; color:#945954; border-color:#ebd5d2; }
.tag.status-approved,.tag.status-authorized,.tag.status-completed { background:#eaf3ed; color:#476f55; border-color:#d0e2d6; }
.tag.status-active { background:#eaf1f7; color:#496b86; border-color:#d2dfe9; }
.tone-slate { --project-accent:#8797a6; --project-tint:#f3f5f7; --project-ink:#506375; }
.tone-blue { --project-accent:#809ebc; --project-tint:#f0f5fa; --project-ink:#426583; }
.tone-teal { --project-accent:#7fa6a4; --project-tint:#eff6f5; --project-ink:#426f6b; }
.tone-green { --project-accent:#91ab91; --project-tint:#f1f6f0; --project-ink:#516f51; }
.tone-sand { --project-accent:#b5a47e; --project-tint:#f8f5ed; --project-ink:#7b6944; }
.tone-clay { --project-accent:#bb9986; --project-tint:#f8f2ef; --project-ink:#84624f; }
.tone-rose { --project-accent:#b798a4; --project-tint:#f8f1f4; --project-ink:#815d6d; }
.tone-violet { --project-accent:#a399b8; --project-tint:#f5f2f8; --project-ink:#6c5c86; }
.project-card.project-tone,.task-card.project-tone,.task-line.project-tone { border-left:3px solid var(--project-accent); }
.project-card.project-tone .project-symbol { color:var(--project-ink); background:var(--project-tint); }
.task-card.project-tone { background:var(--project-tint); }
.task-card.project-tone .project-ref { color:var(--project-ink); }
.calendar-event.project-tone { border-left:3px solid var(--project-accent); background:var(--project-tint); color:var(--project-ink); }
.project-color-picker { border:0; padding:0; margin:6px 0; min-width:0; }
.project-color-picker legend { font-size:13px; font-weight:600; margin-bottom:5px; }
.project-color-picker > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; }
.project-color-picker label { display:flex; align-items:center; gap:8px; border:1px solid #e1e6eb; border-radius:3px; padding:10px; font-size:12px; cursor:pointer; background:#fff; }
.project-color-picker label:has(input:checked) { border-color:var(--project-accent); background:var(--project-tint); box-shadow:inset 0 0 0 1px var(--project-accent); }
.project-color-picker input { accent-color:var(--project-ink); }
.project-color-swatch { width:14px; height:14px; border-radius:2px; background:var(--project-accent); flex-shrink:0; }

.project-custom-color input[type=color]{width:52px;height:36px;padding:2px;border:1px solid #dce3e9;background:white;border-radius:3px;cursor:pointer}.project-color-picker .project-custom-color label{display:flex;flex-wrap:wrap;gap:10px}.project-custom-color .form-control{width:125px;font-family:monospace}

.calendar-holidays{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.calendar-holiday-label{display:block;background:#faf4e8;border-left:2px solid #c1ad79;color:#7a6539;font-size:10px;line-height:1.5;padding:4px 7px;margin:3px 0;overflow-wrap:anywhere}.calendar-holiday-label small{font-size:9px}.day-hours{overflow-wrap:anywhere;max-width:100%}

.finance-page-body .time-fields{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:1100px){.finance-page-body .time-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

.finance-page-body .time-fields{align-items:start}.time-field-caption{display:block;min-height:2.8em}.finance-page-body .lunch-toggle{grid-column:1/-1;margin-top:0;align-self:start}

.calendar-day.is-holiday{background:#faf6ed;box-shadow:inset 0 0 0 1px #c7b68e}.calendar-day.is-holiday .day-number{font-weight:700;color:#796638}.calendar-day.is-holiday.is-today .day-number{color:#fff}

/* Aceite em linha própria, independente da posição dos botões de revisão. */
.finance-page-body .review-controls>.signature-consent-label{display:flex;align-items:flex-start;gap:10px;width:100%;margin:18px 0 10px;font-size:14px;line-height:1.6;cursor:pointer}
.review-controls>.signature-consent-label input[type=checkbox]{flex:0 0 17px;width:17px;height:17px;min-height:0;margin:3px 0 0;padding:0;accent-color:var(--brand-navy)}
.signature-consent-label>span{flex:1;min-width:0}.sheet-send-button{white-space:nowrap}.sheet-send-button .icon{width:16px;height:16px}
.task-card{padding:12px;margin-bottom:10px}.task-card .task-card-top{align-items:center;gap:8px}.task-card .task-card-top .project-ref{padding-top:0;font-size:11px;line-height:1.4;letter-spacing:.4px}.task-card h3{font-size:15px;line-height:1.4;margin:5px 0 8px;font-weight:600}.task-card .tag{font-size:11px;padding:2px 6px}.task-card .card-meta{font-size:12px;gap:7px;margin-top:8px;padding-top:8px}.task-card .card-meta .icon{width:15px;height:15px}
@media(min-width:701px){.calendar-grid .calendar-event.project-tone{border:1px solid var(--project-accent);border-radius:2px;background:var(--project-tint);padding:5px 7px}.calendar-grid .calendar-event b{font-size:12px;line-height:1.4}.calendar-grid .calendar-event small{font-size:10px;line-height:1.4;margin-top:2px}}
@media(max-width:700px){.finance-page-body .review-controls>.signature-consent-label{font-size:13px}.sheet-send-button{min-height:44px}.task-card .card-meta{flex-wrap:wrap}}

.sidebar .nav-item .nav-label{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}.sidebar .nav-item>.nav-count,.sidebar .nav-item>.notification-count{flex-shrink:0}

/* Internal notifications and administrator preferences. */
.nav-item,.mobile-menu-tile,.mobile-bottom-nav [data-nav]{position:relative}.notification-count{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:20px;height:20px;padding:0 5px;border-radius:50%;background:#176ca0;color:white;font:600 11px Arial,sans-serif;margin-left:auto;line-height:1}.mobile-menu-tile .notification-count,.mobile-bottom-nav .notification-count{position:absolute;right:5px;top:4px}.notification .text-button{flex-shrink:0;color:#002b46}@media(max-width:700px){.notification{flex-wrap:wrap}.notification-message{overflow-wrap:anywhere}.notification .text-button{min-height:44px}}
.admin-notification-settings[hidden]{display:none}.admin-notification-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.admin-notification-option{display:flex;align-items:flex-start;gap:10px;border:1px solid #dce4eb;padding:13px;cursor:pointer;min-width:0}.admin-notification-option input[type=checkbox]{width:17px;height:17px;min-width:17px;flex:0 0 17px;margin:2px 0 0;accent-color:#002b46}.admin-notification-option span{min-width:0}.admin-notification-option b{display:block;font-size:13px;font-weight:600}.admin-notification-option small{display:block;color:#728597;font-size:12px;line-height:1.6;margin-top:4px}.admin-notification-option:focus-within{outline:2px solid #9bb2c4;outline-offset:1px}@media(max-width:700px){.admin-notification-grid{grid-template-columns:minmax(0,1fr)}.admin-notification-option{min-height:56px}}
