:root{--navy:#061522;--navy2:#0b2235;--blue:#0f5ea8;--cyan:#58bdd2;--bg:#f4f7fa;--card:#fff;--text:#102235;--muted:#6d7d8c;--line:#e3eaf0;--green:#168f62;--amber:#b7791f;--red:#c84c4c;--shadow:0 16px 48px rgba(6,21,34,.08);--radius:20px}*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}
/* login */.login-body{min-height:100vh;background:var(--navy)}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(420px,.8fr)}.login-visual{position:relative;overflow:hidden;min-height:100vh;color:white;padding:52px 60px;display:flex;flex-direction:column;justify-content:space-between}.login-photo{position:absolute;inset:0;background:url('/assets/inovafa-equipa-1200.webp') center/cover no-repeat;filter:saturate(.7)}.login-overlay{position:absolute;inset:0;background:linear-gradient(120deg,rgba(6,21,34,.93),rgba(6,21,34,.56) 58%,rgba(15,94,168,.32))}.login-brand,.login-copy,.login-foot{position:relative;z-index:2}.login-brand{display:flex;align-items:center;gap:14px}.login-brand img,.mobile-brand img,.sidebar-brand img{width:150px;height:auto}.login-brand span,.sidebar-brand span{font-size:12px;letter-spacing:.18em;text-transform:uppercase;opacity:.72;border-left:1px solid rgba(255,255,255,.3);padding-left:14px}.login-copy{max-width:680px}.eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--blue);margin-bottom:10px}.eyebrow.light{color:#a8d8e3}.login-copy h1{font-size:clamp(42px,5vw,72px);line-height:1.02;margin:0 0 20px;letter-spacing:-.04em}.login-copy p{font-size:18px;line-height:1.6;max-width:580px;color:#d9e6ee}.login-foot{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#aab8c4}.login-panel{background:#fbfdff;display:grid;place-items:center;padding:40px}.login-form-wrap{width:min(420px,100%)}.mobile-brand{display:none;margin-bottom:40px}.login-form-wrap h2{font-size:42px;margin:0 0 6px;letter-spacing:-.04em}.login-intro{margin:0 0 30px}.login-form{display:grid;gap:18px}.login-form label{display:grid;gap:8px;font-size:13px;font-weight:700}.login-form input{width:100%;height:52px;border:1px solid #ced9e2;border-radius:12px;padding:0 14px;background:#fff;outline:none;transition:.2s}.login-form input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(15,94,168,.1)}.password-wrap{position:relative}.password-wrap input{padding-right:48px}.password-wrap .icon-button{position:absolute;right:6px;top:6px}.form-error{min-height:18px;color:var(--red);font-size:13px}.security-note,.demo-hint{margin-top:20px;font-size:12px;color:var(--muted);line-height:1.5}.demo-hint{padding:12px 14px;border-radius:12px;background:#edf6fb;display:grid;gap:4px}.demo-hint strong{color:var(--navy)}
/* shell */.app-body{min-height:100vh}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{background:var(--navy);color:#d5e1e8;padding:24px 18px 18px;display:flex;flex-direction:column;position:fixed;top:0;bottom:0;left:0;width:260px;z-index:20}.sidebar-brand{padding:4px 10px 30px;display:flex;align-items:center;gap:10px}.sidebar-brand img{width:120px}.nav-list{display:grid;gap:5px}.nav-section-label{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#6f8494;margin:20px 12px 7px}.nav-item{border:0;background:transparent;color:#9fb1be;display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:12px;text-align:left;transition:.18s}.nav-item:hover{background:rgba(255,255,255,.055);color:white}.nav-item.active{background:linear-gradient(90deg,rgba(88,189,210,.17),rgba(15,94,168,.12));color:white;box-shadow:inset 3px 0 var(--cyan)}.nav-icon{width:22px;text-align:center;font-size:17px}.wa-dot{color:#48c27d}.nav-badge{margin-left:auto;background:#17374d;color:#dff6fb;border-radius:20px;padding:2px 8px;font-size:11px}.sidebar-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.09);padding-top:16px}.system-mini,.profile-card{display:flex;align-items:center;gap:10px;padding:10px}.system-mini div,.profile-card span:nth-child(2){display:grid;gap:2px}.system-mini strong,.profile-card strong{font-size:12px}.system-mini small,.profile-card small{font-size:10px;color:#7890a2}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#8b99a4}.status-dot.online{background:#43c587;box-shadow:0 0 0 4px rgba(67,197,135,.12)}.status-dot.warning{background:#e8aa45}.profile-card{width:100%;border:0;border-radius:12px;background:transparent;color:#d5e1e8;text-align:left}.profile-card:hover{background:rgba(255,255,255,.05)}.avatar{width:34px;height:34px;border-radius:10px;background:#143854;display:grid;place-items:center;font-size:11px;font-weight:800;color:#bfe7ef}.profile-more{margin-left:auto}.logout-link{width:100%;border:0;background:transparent;color:#8396a4;text-align:left;padding:8px 10px;font-size:11px}.main-area{grid-column:2;min-width:0}.topbar{height:72px;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:10}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{color:var(--text)}.topbar-actions{display:flex;align-items:center;gap:10px}.week-picker,.icon-button{border:1px solid var(--line);background:white;border-radius:12px;min-height:42px}.week-picker{display:flex;gap:8px;align-items:center;padding:0 13px;font-size:12px}.icon-button{width:42px;position:relative}.icon-button.plain{border:0;background:transparent}.notification-dot{position:absolute;right:8px;top:8px;width:6px;height:6px;border-radius:50%;background:var(--cyan)}.mobile-menu{display:none}.demo-banner{margin:18px 34px 0;padding:12px 16px;border-radius:13px;background:#fff3d9;border:1px solid #f1d99d;display:flex;align-items:center;gap:10px;font-size:12px}.demo-banner button{margin-left:auto;border:0;background:transparent;color:#845810;font-weight:700}.view{display:none;padding:38px 34px 60px}.view.active{display:block}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:28px}.page-head.compact{align-items:center}.page-head h1{font-size:36px;letter-spacing:-.04em;margin:0 0 6px}.page-head p{margin:0;color:var(--muted);font-size:14px}.head-actions{display:flex;gap:10px;align-items:center}.primary-button,.secondary-button,.light-button{border-radius:11px;padding:11px 16px;font-weight:750;font-size:12px;border:1px solid transparent;transition:.18s}.primary-button{background:var(--blue);color:white;box-shadow:0 8px 22px rgba(15,94,168,.18)}.primary-button:hover{transform:translateY(-1px);background:#0b5599}.secondary-button{background:white;border-color:#d7e1e8;color:var(--text)}.secondary-button:hover{border-color:#aabac7}.light-button{background:white;color:var(--navy)}.full{width:100%}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:14px}.kpi{background:white;border:1px solid var(--line);border-radius:17px;padding:19px 20px;box-shadow:0 8px 28px rgba(6,21,34,.035)}.kpi span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em;font-weight:700}.kpi strong{display:block;font-size:30px;letter-spacing:-.04em;margin:7px 0 2px}.kpi small{color:var(--muted);font-size:11px}.dashboard-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:14px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 8px 32px rgba(6,21,34,.035);padding:22px}.wide-card{grid-column:1/-1}.dark-card{background:linear-gradient(145deg,#061522,#0d2d43);color:white;border-color:transparent}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.card-kicker{display:block;color:var(--muted);font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:800;margin-bottom:6px}.card-kicker.cyan{color:#7bd2e4}.card h2{font-size:20px;letter-spacing:-.025em;margin:0}.text-button{border:0;background:transparent;color:var(--blue);font-weight:700;font-size:12px}.country-progress{display:grid;gap:17px}.country-row{display:grid;grid-template-columns:105px 1fr 90px;gap:12px;align-items:center}.country-row strong{font-size:12px}.progress-track{height:7px;border-radius:99px;background:#edf1f4;overflow:hidden}.progress-bar{height:100%;background:linear-gradient(90deg,var(--blue),var(--cyan));border-radius:99px}.country-row small{text-align:right;color:var(--muted);font-size:11px}.action-card{display:flex;flex-direction:column;justify-content:center;min-height:260px}.action-card h2{font-size:29px;line-height:1.08;max-width:420px}.action-card p{color:#bdd0dc;line-height:1.55;font-size:13px}.action-card .light-button{align-self:flex-start;margin-top:10px}.automation-note{margin-top:auto;padding-top:20px;color:#7f9aaa;font-size:10px}.filters-inline{display:flex;gap:6px}.chip{border:1px solid var(--line);background:white;border-radius:99px;padding:6px 10px;font-size:10px;color:var(--muted)}.chip.active{background:#edf5fb;color:var(--blue);border-color:#cfe2f1}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th{text-align:left;font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#8998a4;padding:10px 12px;border-bottom:1px solid var(--line)}td{padding:13px 12px;border-bottom:1px solid #edf1f4;font-size:12px;vertical-align:middle}tr:last-child td{border-bottom:0}.worker-cell{display:flex;gap:10px;align-items:center}.worker-avatar{width:31px;height:31px;border-radius:10px;background:#eef5f9;display:grid;place-items:center;color:var(--blue);font-weight:800;font-size:10px}.status-pill,.integration-pill{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:800}.status-pill.success,.integration-pill.success{background:#e8f7f1;color:#157554}.status-pill.warning{background:#fff3db;color:#986716}.status-pill.danger{background:#fdecec;color:#a43b3b}.status-pill.neutral,.integration-pill{background:#eff3f6;color:#62717d}.timeline{display:grid;gap:3px}.timeline-row{display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;padding:10px 0}.timeline-icon{width:28px;height:28px;border-radius:9px;background:#edf3f7;display:grid;place-items:center;font-size:11px}.timeline-icon.success{background:#e8f7f1;color:#157554}.timeline-row div{display:grid;gap:3px}.timeline-row strong{font-size:11px}.timeline-row small,.timeline-row time{font-size:10px;color:var(--muted)}.toolbar-card{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--line);padding:10px;border-radius:15px;margin-bottom:12px}.searchbox{display:flex;align-items:center;gap:8px;flex:1;color:#84939e}.searchbox input{border:0;outline:0;width:100%;height:34px}.toolbar-card select{height:34px;border:1px solid var(--line);border-radius:9px;background:white;padding:0 10px;color:#51616d;font-size:11px}.toolbar-count{font-size:10px;color:var(--muted);padding:0 8px}.table-card{padding:0}.info-strip{background:#eaf5fb;border:1px solid #cde5f1;border-radius:15px;padding:14px 16px;margin-bottom:14px}.info-strip>div{display:flex;gap:12px}.info-icon{font-size:22px;color:var(--blue)}.info-strip strong,.info-strip span{display:block}.info-strip strong{font-size:12px;margin-bottom:3px}.info-strip div div span{font-size:11px;color:#60798b}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.project-card{background:white;border:1px solid var(--line);border-radius:17px;padding:18px}.project-top{display:flex;justify-content:space-between;gap:10px}.project-card h3{margin:7px 0 4px;font-size:15px}.project-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.project-meta{display:flex;justify-content:space-between;margin-top:16px;padding-top:12px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.import-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-bottom:14px}.drop-card{padding:12px}.drop-zone{border:1.5px dashed #bfd0db;border-radius:16px;min-height:300px;display:grid;place-items:center;align-content:center;text-align:center;padding:34px;background:#fbfdfe}.drop-zone.drag{background:#eef7fb;border-color:var(--cyan)}.drop-zone h2{margin:9px 0 7px}.drop-zone p,.drop-zone small{color:var(--muted);font-size:11px}.upload-icon{width:52px;height:52px;border-radius:16px;background:#edf6fb;color:var(--blue);display:grid;place-items:center;font-size:24px}.import-help{padding:28px}.steps{list-style:none;padding:0;margin:24px 0 0;display:grid;gap:20px}.steps li{display:flex;gap:12px}.steps>li>span{width:28px;height:28px;flex:0 0 28px;border-radius:9px;background:var(--navy);color:white;display:grid;place-items:center;font-size:10px;font-weight:800}.steps strong{font-size:12px}.steps p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.4}.import-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.mini-stat{background:#f6f9fb;border-radius:13px;padding:14px}.mini-stat strong{font-size:22px;display:block}.mini-stat span{font-size:10px;color:var(--muted)}.import-countries{display:flex;gap:7px;flex-wrap:wrap}.country-chip{background:#edf3f7;border-radius:99px;padding:7px 10px;font-size:10px}.import-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.whatsapp-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:14px}.wa-preview-card{background:#e5ece8}.phone-frame{max-width:320px;margin:auto;border:8px solid #101b23;border-radius:32px;overflow:hidden;background:#efeae2;box-shadow:0 18px 45px rgba(6,21,34,.17)}.phone-top{background:#075e54;color:white;padding:16px;font-weight:800;font-size:12px;display:flex;justify-content:space-between}.chat-bg{padding:18px 12px;min-height:390px;background:linear-gradient(rgba(239,234,226,.92),rgba(239,234,226,.92)),repeating-linear-gradient(45deg,#d7d0c8 0 1px,transparent 1px 12px)}.chat-date{text-align:center;font-size:8px;color:#667;border-radius:8px;background:#d9e7eb;width:max-content;margin:0 auto 16px;padding:5px 8px}.message{max-width:85%;border-radius:9px;padding:10px;font-size:10px;line-height:1.5;box-shadow:0 1px 2px rgba(0,0,0,.08)}.message.incoming{background:white}.message.outgoing{margin:14px 0 0 auto;background:#d9fdd3}.message button{display:block;width:100%;border:0;border-top:1px solid #eef0f1;background:white;color:#1682c4;margin-top:9px;padding:8px 0 0;font-size:9px;font-weight:800}.message time{display:block;text-align:right;color:#7a878d;font-size:7px;margin-top:5px}.schedule-list{display:grid;margin:18px 0}.schedule-list>div{display:grid;grid-template-columns:90px 1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.schedule-list time{font-size:10px;font-weight:800}.schedule-list span:nth-child(2){display:grid;gap:3px}.schedule-list strong{font-size:11px}.schedule-list small{font-size:9px;color:var(--muted)}.template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.template-item{border:1px solid var(--line);border-radius:14px;padding:14px}.template-item strong{display:block;margin:12px 0 5px;font-size:12px}.template-item p{margin:0;font-size:10px;color:var(--muted);line-height:1.4}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.setting-card{display:flex;gap:14px}.setting-icon{width:42px;height:42px;border-radius:13px;background:#edf5fa;display:grid;place-items:center;color:var(--blue);font-size:10px;font-weight:900}.setting-card p{font-size:10px;line-height:1.5;color:var(--muted)}.env-card{margin-top:14px}.env-list{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.env-list code{background:#0b2235;color:#bde5ed;border-radius:8px;padding:7px 9px;font-size:10px}.toast{position:fixed;right:24px;bottom:24px;background:#071925;color:white;border-radius:12px;padding:12px 16px;box-shadow:var(--shadow);font-size:11px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:99}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:1100px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.project-grid,.settings-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:860px){.login-shell{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:100vh}.mobile-brand{display:block}.app-shell{grid-template-columns:1fr}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar.open{transform:translateX(0)}.main-area{grid-column:1}.mobile-menu{display:block;border:0;background:transparent;font-size:20px}.topbar{padding:0 18px}.view{padding:28px 18px 50px}.demo-banner{margin:14px 18px 0}.dashboard-grid,.import-layout,.whatsapp-grid{grid-template-columns:1fr}.page-head{align-items:flex-start;flex-direction:column}.project-grid,.settings-grid{grid-template-columns:1fr}}@media(max-width:560px){.kpi-grid{grid-template-columns:1fr 1fr}.kpi{padding:15px}.kpi strong{font-size:25px}.head-actions{width:100%}.head-actions button{flex:1}.filters-inline{display:none}.country-row{grid-template-columns:80px 1fr 68px}.template-grid,.import-stats{grid-template-columns:1fr 1fr}}
.wa-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}@media(max-width:560px){.wa-actions{grid-template-columns:1fr}}

.import-apply-status{min-height:24px;margin-top:14px;font-size:14px;color:#52606d}.import-apply-status.working{color:#0f5ea8;font-weight:600}.import-apply-status.success{color:#176b46;font-weight:700}.import-apply-status.error{color:#a52a2a;font-weight:700}.import-actions button:disabled{opacity:.6;cursor:not-allowed;transform:none}

/* v8 interaction polish */
.modal-backdrop{position:fixed;inset:0;z-index:120;background:rgba(4,15,25,.58);display:grid;place-items:center;padding:22px;backdrop-filter:blur(7px)}
.modal-card{width:min(620px,100%);max-height:min(760px,92vh);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 28px 80px rgba(6,21,34,.28);padding:22px}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:16px;border-bottom:1px solid var(--line)}
.modal-head h2{margin:0;font-size:24px;letter-spacing:-.03em}.modal-body{padding-top:18px}.modal-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.modal-form label{display:grid;gap:7px;font-size:11px;font-weight:800;color:#435465}.modal-form label.full{grid-column:1/-1}.modal-form input,.modal-form select,.modal-form textarea{width:100%;border:1px solid #d4dfe7;border-radius:11px;background:#fff;padding:11px 12px;outline:none;color:var(--text)}.modal-form textarea{min-height:100px;resize:vertical}.modal-form input:focus,.modal-form select:focus,.modal-form textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(15,94,168,.08)}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.detail-list{display:grid;gap:8px}.detail-row{display:grid;grid-template-columns:110px 1fr 90px;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.detail-row:last-child{border-bottom:0}.detail-row strong{text-align:right}.planning-select{min-width:190px;max-width:260px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:7px 9px;font-size:11px;color:var(--text)}.contact-number{display:block;margin-top:4px;font-size:9px;color:var(--muted)}.button-loading{opacity:.65;pointer-events:none}.nav-action-note{font-size:10px;color:var(--muted)}
@media(max-width:560px){.modal-form{grid-template-columns:1fr}.modal-form label.full{grid-column:auto}.modal-card{padding:18px}.detail-row{grid-template-columns:1fr auto}.detail-row span:nth-child(2){grid-column:1/-1}}

/* Obras & equipas: País → Obra → Trabalhadores */
#projectGrid.project-grid{display:grid;grid-template-columns:1fr;gap:24px}.project-country-group{display:grid;gap:12px}.project-country-head{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:0 2px}.project-country-head h2{margin:2px 0 0;font-size:24px;letter-spacing:-.035em}.project-country-stats{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.project-country-stats span{background:#eef4f7;border:1px solid #dce6ec;border-radius:99px;padding:7px 11px;font-size:10px;color:var(--muted)}.project-country-stats strong{color:var(--text);font-size:12px}.project-grid-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.project-card-team{padding:0;overflow:hidden}.project-card-team>summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:18px}.project-card-team>summary::-webkit-details-marker{display:none}.project-card-team[open]>summary{border-bottom:1px solid var(--line);background:#fbfdfe}.project-summary-main{min-width:0}.project-summary-main h3{margin:4px 0 5px;font-size:16px}.project-summary-main p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:360px}.project-summary-side{display:grid;grid-template-columns:auto auto;align-items:center;justify-items:end;column-gap:8px;row-gap:2px;flex:0 0 auto}.project-summary-side .status-pill{grid-column:1/-1}.project-summary-side strong{font-size:18px}.project-summary-side small{font-size:9px;color:var(--muted)}.project-chevron{grid-column:1/-1;color:var(--blue);font-size:15px;transition:.18s}.project-card-team[open] .project-chevron{transform:rotate(180deg)}.project-team-list{display:grid;padding:4px 18px 12px}.project-worker-row{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f4}.project-worker-row:last-child{border-bottom:0}.project-worker-copy{display:grid;gap:2px;min-width:0}.project-worker-copy strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-worker-copy small,.project-worker-contact small{font-size:9px;color:var(--muted)}.project-worker-contact{display:grid;justify-items:end;gap:3px}.project-empty{padding:18px;color:var(--muted);font-size:11px}
@media(max-width:1100px){.project-grid-inner{grid-template-columns:1fr}}@media(max-width:560px){.project-country-head{align-items:flex-start;flex-direction:column}.project-country-stats{justify-content:flex-start}.project-worker-row{grid-template-columns:34px minmax(0,1fr)}.project-worker-contact{grid-column:2;justify-items:start}.project-summary-main p{max-width:220px}}

/* v8 premium operational sheet: País → Obra → Trabalhadores → Horas */
#projectGrid.project-grid{display:grid;grid-template-columns:1fr;gap:30px}
.project-country-sheet{display:grid;gap:12px;min-width:0}
.project-country-sheet-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:0 3px}
.project-country-sheet-head h2{margin:1px 0 3px;font-size:27px;letter-spacing:-.04em;color:var(--navy)}
.project-country-sheet-head p{margin:0;color:var(--muted);font-size:11px}
.country-hours{min-width:124px;text-align:right;background:linear-gradient(135deg,#071925,#103450);color:#fff;border-radius:15px;padding:11px 14px;box-shadow:0 8px 22px rgba(6,21,34,.12)}
.country-hours strong{display:block;font-size:20px;letter-spacing:-.03em}.country-hours span{display:block;margin-top:1px;color:#a8c4d5;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.premium-sheet-wrap{overflow:auto;background:#fff;border:1px solid #dce5eb;border-radius:18px;box-shadow:0 12px 38px rgba(6,21,34,.07)}
.premium-sheet{width:100%;min-width:1050px;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.premium-sheet thead th{position:sticky;top:0;z-index:3;background:#f7fafc;color:#6c7b88;font-size:9px;letter-spacing:.09em;text-transform:uppercase;font-weight:900;text-align:center;padding:11px 10px;border-bottom:1px solid #dce5eb;white-space:nowrap}
.premium-sheet thead th:first-child{text-align:left;min-width:285px}
.premium-sheet thead th.weekend{background:#f1f6f8;color:#587382}
.premium-sheet td{height:54px;border-bottom:1px solid #edf1f4;padding:8px 10px;font-size:11px;background:#fff}
.premium-sheet .worker-sticky{position:sticky;left:0;z-index:2;background:inherit;border-right:1px solid #e8eef2}
.premium-sheet thead .worker-sticky{z-index:5;background:#f7fafc}
.project-sheet-block:last-child .project-sheet-worker:last-child td{border-bottom:0}
.project-sheet-project td{height:auto;padding:0;background:#0b2235;border-bottom:0;color:#fff}
.project-sheet-project+.project-sheet-worker td{border-top:0}
.project-sheet-projectbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 14px;background:linear-gradient(90deg,#071925 0%,#0d2f48 68%,#123b58 100%)}
.project-sheet-projectbar>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}
.project-code{font-size:12px;font-weight:900;letter-spacing:.02em;color:#fff;white-space:nowrap}
.project-client{font-size:10px;color:#a9c4d5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-sheet-projectstats{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.project-sheet-projectstats span{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);border-radius:99px;padding:5px 8px;font-size:8px;color:#a9c4d5;white-space:nowrap}
.project-sheet-projectstats strong{font-size:10px;color:#fff}
.project-sheet-worker:hover td{background:#f9fcfd}.project-sheet-worker:hover .worker-sticky{background:#f9fcfd}
.project-sheet-worker.needs-review td{background:#fffbf3}.project-sheet-worker.needs-review .worker-sticky{background:#fffbf3}
.worker-link{display:flex;align-items:center;gap:9px;border:0;background:transparent;padding:0;text-align:left;color:var(--text);width:100%}
.worker-link:hover strong{color:var(--blue)}.worker-link>span:last-child{display:grid;gap:2px;min-width:0}
.worker-link strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:.15s}.worker-link small{font-size:8.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.premium-sheet .day-cell{text-align:center;width:54px;min-width:54px;font-weight:750;color:#334957}
.premium-sheet .day-cell.weekend{background:#f8fbfc}.premium-sheet .day-cell.empty{color:#c1cbd2;font-weight:500}.premium-sheet .day-cell.hours{color:#102d42;font-size:12px}
.premium-sheet .day-cell.code span{display:inline-grid;place-items:center;min-width:27px;height:23px;border-radius:7px;padding:0 6px;background:#edf5f8;color:#416170;font-size:9px;font-weight:900}
.total-cell{text-align:right;min-width:92px;color:var(--navy)}.total-cell>strong{font-size:13px}.total-cell>small{font-size:8px;color:var(--muted);margin-left:2px}
.allocation-warning{display:block;margin-top:3px;color:#9d6412;font-size:8px;font-weight:800;white-space:nowrap}
.state-cell{text-align:center;min-width:90px}.wa-cell{min-width:145px;white-space:nowrap;color:#5f7180;font-size:9px!important}.wa-ready{color:#22a06b;margin-right:5px;font-size:9px}
.project-sheet-empty{padding:22px!important;text-align:center;color:var(--muted);background:#fff!important}
@media(max-width:860px){.project-country-sheet-head{align-items:flex-start}.country-hours{min-width:105px}.premium-sheet-wrap{margin-right:-18px;border-radius:16px 0 0 16px;border-right:0}.premium-sheet{min-width:970px}}
@media(max-width:560px){.project-country-sheet-head{flex-direction:column;align-items:stretch}.country-hours{text-align:left;width:max-content}.project-country-sheet-head h2{font-size:23px}.premium-sheet thead th:first-child{min-width:235px}.project-sheet-projectbar{align-items:flex-start;flex-direction:column}.project-sheet-projectstats{align-self:stretch}.premium-sheet{min-width:910px}}

/* v11.8 security */
.totp-login small{font-weight:500;color:var(--muted);line-height:1.45}.totp-login input{letter-spacing:.22em;font-size:18px;font-weight:800}.security-shell .login-panel{overflow:auto}.security-wrap{width:min(560px,100%);padding:44px 0}.security-wrap>h2{font-size:38px}.security-card{background:#fff;border:1px solid #dce6ec;border-radius:16px;padding:20px;margin:0 0 16px;box-shadow:0 10px 32px rgba(6,21,34,.05)}.security-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:18px}.security-card-head>div{display:grid;gap:4px}.security-card-head strong{font-size:14px;color:var(--navy)}.security-card-head small{color:var(--muted);line-height:1.45}.security-state{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;padding:6px 8px;border-radius:999px;background:#eef3f6;color:#5f7280;white-space:nowrap}.security-state.active{background:#e7f4ed;color:#23734a}.security-disabled{opacity:.62}.security-disabled #twoFactorBody{pointer-events:none}.compact-security-form{margin-top:16px}.compact-security-form button,.security-action{width:100%}.security-success{padding:12px 14px;background:#eef8f2;border:1px solid #cfe7d9;border-radius:12px}.security-success strong{color:#23734a}.security-success p{font-size:12px;color:var(--muted);margin:4px 0 0}.two-factor-setup{display:grid;grid-template-columns:180px 1fr;gap:20px;align-items:start}.two-factor-qr{display:grid;place-items:center;background:#fff;border:1px solid #dce6ec;border-radius:12px;padding:10px}.two-factor-qr img{width:158px;height:158px}.two-factor-instructions{display:grid;gap:8px}.two-factor-instructions>strong{font-size:12px;color:var(--navy)}.two-factor-instructions p{font-size:11px;color:var(--muted);line-height:1.45;margin:0}.manual-secret code{display:block;overflow-wrap:anywhere;margin-top:5px;padding:8px;background:#f5f8fa;color:var(--navy);font-size:11px}.security-link-button{justify-self:start;background:transparent;border:0;padding:4px 0;color:var(--blue)}.security-message-ok{color:#23734a}.security-message-error{color:var(--red)}.security-continue{display:flex;text-decoration:none;align-items:center;justify-content:center;margin-top:18px}.security-continue[hidden]{display:none}@media(max-width:720px){.two-factor-setup{grid-template-columns:1fr}.two-factor-qr{justify-self:start}.security-wrap{padding:20px 0}}
