:root{--ink:#12382f;--ink-deep:#092b24;--muted:#62756e;--sand:#f7f4ed;--line:#e3dfd5;--yellow:#f9dc65;--yellow-ink:#5b4710}
*{box-sizing:border-box}
html{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--sand)}
body{margin:0;min-width:280px}
button,input{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.login-view{min-height:100dvh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 20% 10%,#2d594c 0,transparent 35%),linear-gradient(135deg,#082b24,#17463a)}
.login-card{width:min(420px,100%);padding:38px clamp(22px,6vw,40px);border-radius:20px;background:#fff;box-shadow:0 24px 70px #061e1866}
.login-card img{display:block;width:210px;max-width:100%;height:auto;margin:0 auto 28px}
.login-card h1{font-size:1.35rem;margin:0 0 5px;text-align:center}
.login-card p{color:var(--muted);font-size:.9rem;text-align:center;margin:0 0 25px}
label{display:block;font-size:.78rem;font-weight:700;margin:13px 0 5px}
input{width:100%;border:1px solid #cdd7d0;border-radius:9px;padding:12px;color:var(--ink);background:#fff}
input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #e3b941;outline-offset:2px}
.primary-action{border:0;border-radius:9px;background:var(--ink);color:#fff;padding:12px 17px;font-weight:750}
.login-card .primary-action{width:100%;margin-top:23px}
.primary-action:disabled{opacity:.62;cursor:wait}
.form-error{min-height:18px;color:#a22f32;font-size:.79rem;margin-top:9px}
.dashboard-header{background:linear-gradient(110deg,#0c3028,#154236);min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px clamp(18px,4vw,56px);color:#fff}
.header-brand{display:block;flex:none}
.header-brand img{display:block;width:154px;max-width:100%;filter:brightness(0) invert(1)}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.header-actions span{font-size:.82rem;margin-right:6px}
.header-actions button{border:1px solid #ffffff55;border-radius:9px;color:#fff;background:#ffffff12;padding:8px 11px;font-size:.78rem}
.header-actions button:hover{background:#ffffff25}
.dashboard-main{width:min(1460px,100%);margin:auto;padding:clamp(24px,4vw,50px) clamp(16px,4vw,54px) 60px}
.welcome{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:38px}
.eyebrow{font-size:.72rem;text-transform:uppercase;letter-spacing:.15em;color:#768b7f;font-weight:800;margin:0 0 9px}
.welcome h1{font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.15;margin:0 0 8px}
.welcome-copy>p:not(.eyebrow){color:var(--muted);font-size:.96rem;margin:0}
.welcome time{font-size:.77rem;color:var(--muted);white-space:nowrap;padding-top:14px}
.section-heading{margin-bottom:18px}
.section-heading h2{font-size:1.2rem;margin:0 0 5px}
.section-heading p{font-size:.87rem;color:var(--muted);margin:0}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.module-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 38%;min-height:175px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 8px 24px #0b30200a}
.module-card.available{border-color:#bdcfc5;transition:transform .15s,box-shadow .15s}
.module-card.available:hover{transform:translateY(-3px);box-shadow:0 16px 36px #0b302022}
.module-copy{position:relative;z-index:1;min-width:0;padding:19px 9px 17px 20px;display:flex;flex-direction:column;align-items:flex-start}
.module-copy h3{font-size:clamp(.96rem,1.3vw,1.13rem);line-height:1.2;margin:14px 0 8px;overflow-wrap:anywhere}
.module-copy p{font-size:.79rem;line-height:1.42;color:var(--muted);margin:0;max-width:29ch}
.status,.available-label{display:inline-flex;align-items:center;min-height:25px;border-radius:999px;padding:4px 9px;font-size:.64rem;line-height:1.1;font-weight:850;letter-spacing:.01em}
.status{background:var(--yellow);color:var(--yellow-ink)}
.available-label{background:#e5f1e8;color:#226840}
.open-arrow{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--ink);color:#fff;font-size:1rem;margin-top:auto;align-self:flex-start}
.module-visual{position:relative;min-width:0;overflow:hidden;background:#e5e7dc}
.module-visual::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#fff3,transparent 37%);pointer-events:none}
.module-visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:55% center}
.module-visual.vector{display:grid;place-items:center;background:radial-gradient(circle at 78% 20%,#e1ebdf,transparent 34%),linear-gradient(145deg,#e7e9dd,#d3dfd4)}
.module-visual.vector svg{width:min(94%,164px);height:auto;fill:none;stroke:#275249;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 8px 8px #345a3b21)}
.module-visual.nps{background:linear-gradient(145deg,#f4e4bf,#d8e3d2)}
.module-visual.assist{background:linear-gradient(145deg,#e8ddd0,#ccd9d3)}
.module-visual.copilot{background:linear-gradient(145deg,#d9e7df,#b8d2c2)}
.module-visual.crm{background:linear-gradient(145deg,#e7dfd6,#c6d6ce)}
.module-visual.indicators{background:linear-gradient(145deg,#d5e5d9,#e8e0cc)}
.module-visual.production{background:linear-gradient(145deg,#e9ddc9,#b8cec1)}
.module-visual.records{background:linear-gradient(145deg,#d8e4dc,#dfd8c8)}
.module-visual.settings{background:linear-gradient(145deg,#e8e3d8,#c5d9ca)}
.password-dialog{border:0;border-radius:16px;width:min(420px,calc(100% - 30px));padding:25px;box-shadow:0 20px 70px #0005}
.password-dialog::backdrop{background:#07221999}
.password-dialog h2{font-size:1.2rem;margin:0 0 16px}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}
.dialog-actions button:not(.primary-action){border:1px solid var(--line);background:#fff;border-radius:9px;padding:10px 14px}
@media(max-width:1080px){.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:670px){.dashboard-header{align-items:flex-start;flex-direction:column;gap:8px}.header-brand img{width:130px}.header-actions{justify-content:flex-start;width:100%}.header-actions span{width:100%}.welcome{display:block;margin-bottom:30px}.welcome time{display:block;padding-top:12px}.module-grid{grid-template-columns:1fr}.module-card{min-height:158px;grid-template-columns:minmax(0,1fr) 36%}.module-copy{padding:16px 8px 15px 16px}.module-copy h3{margin:10px 0 5px}.module-copy p{font-size:.76rem}}
@media(max-width:390px){.module-card{grid-template-columns:minmax(0,1fr) 31%}.module-visual.vector svg{width:115px}.status{font-size:.58rem}}
.welcome-aside{flex:0 1 920px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:stretch;gap:22px}
.welcome .welcome-clock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;min-width:150px;min-height:66px}
.welcome .welcome-clock #today{padding:0;font-size:.8rem;line-height:1.3}
.welcome .welcome-clock #current-time{font-size:36px;line-height:1.2;font-weight:800;letter-spacing:.01em;color:var(--ink);font-variant-numeric:tabular-nums;padding:0}
.welcome-clock>span{font-size:.7rem;color:var(--muted)}
.sales-inspiration{width:100%;min-width:0;min-height:66px;display:flex;align-items:center;gap:12px;padding:11px 14px;margin:0;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px #0b30200a}
.inspiration-copy{flex:1;min-width:0}.inspiration-copy .eyebrow{font-size:.58rem;line-height:1.35;letter-spacing:.08em;margin:0 0 4px;color:#768b7f}
.welcome .sales-quote{font-size:.84rem;line-height:1.45;font-weight:600;margin:0;color:var(--ink);overflow-wrap:anywhere}
.quote-controls{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto;gap:5px}
.quote-controls>span,.quote-dots{display:none}
.quote-controls button{display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);cursor:pointer;font-size:1rem}
.quote-controls button#quote-pause{font-size:.65rem}.quote-controls button:hover{background:#f3f6f2}
.quote-controls button:focus-visible{outline:2px solid #315d40;outline-offset:3px}
@media(max-width:1320px){.welcome{flex-wrap:wrap}.welcome-copy{flex:1 0 100%}.welcome-aside{width:100%;flex:1 0 100%}}
@media(max-width:950px){.welcome-aside{width:100%;margin-top:0;grid-template-columns:minmax(0,1fr);gap:13px}.welcome .welcome-clock{grid-row:1;justify-self:center}.sales-inspiration{grid-row:2}.welcome .welcome-clock #today{white-space:normal;text-align:center;font-size:.8rem}.welcome .welcome-clock #current-time{font-size:32px}.welcome-clock>span{text-align:center;font-size:.65rem}}
@media(max-width:670px){.welcome-aside{margin-top:20px}}
@media(max-width:480px){.sales-inspiration{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 10px;padding:12px 14px}.inspiration-copy{display:contents}.inspiration-copy .eyebrow{grid-column:1;grid-row:1;margin:0}.welcome .sales-quote{grid-column:1/-1;grid-row:2;font-size:.82rem}.quote-controls{grid-column:2;grid-row:1}}

/* Botão de retorno das telas que reutilizam o cabeçalho do painel. */
.dashboard-header .header-actions a:is(.records-back,.settings-back){display:inline-flex;align-items:center;justify-content:center;min-width:104px;min-height:44px;padding:10px 17px;border:1px solid #b9dfcf;border-radius:11px;background:#e2f3e9;color:#123b31;font-size:.9rem;font-weight:750;line-height:1.2;text-decoration:none;white-space:nowrap;touch-action:manipulation;transition:background .15s,box-shadow .15s}
.dashboard-header .header-actions a:is(.records-back,.settings-back):hover{background:#cdebd9;box-shadow:0 3px 10px #06241a22}
.dashboard-header .header-actions a:is(.records-back,.settings-back):focus-visible{outline:3px solid #f9dc65;outline-offset:3px}
