/* Opus — implantação da proposta horizontal, 2026-10-04. */
:root {
    --primary:#e8722a; --primary-light:#dc6521; --navy:#1e2d4a;
    --bg:#eef0f4; --surface:#fff; --surface-2:#f8f9fb; --card-bg:#fff;
    --text:#1e2d4a; --text-2:#5c6779; --text-muted:#687487;
    --border:#e2e6ed; --border-strong:#cbd2dd;
    --nav-height:106px; --nav-float:0px; --nav-bg:var(--navy);
    --r-sm:6px; --r-md:10px; --shadow-1:none;
    --shadow-2:0 12px 32px rgba(30,45,74,.12);
    --success:#276b4c; --success-bg:#eef7f1;
    --danger:#b53034; --danger-bg:#fff1f1;
    --warning:#946016; --warning-bg:#fff7e8;
    --info:#375f8b; --info-bg:#edf3fa;
    --control-h:38px; --row-h:42px;
}
body::before { display:none; }
button,input,select,textarea { font-family:inherit; }
:is(button,a,input,select,textarea,summary):focus-visible { outline:2px solid #b05b25; outline-offset:3px; }
[hidden] { display:none !important; }
.opus-skip-link { position:fixed; top:-80px; left:16px; z-index:9999; padding:10px 16px; color:var(--navy); background:#fff; border-radius:6px; }
.opus-skip-link:focus { top:12px; }

/* Cabeçalho horizontal e segunda linha da área atual. */
.opus-navbar { padding:0; background:var(--navy); border:0; }
.opus-navbar-inner { max-width:1640px; margin:auto; min-height:64px; height:64px; padding:0 34px; gap:28px; border:0; border-radius:0; background:var(--navy); box-shadow:none; backdrop-filter:none; position:relative; }
.opus-logo { padding:0; }
.opus-logo img { display:block; width:112px; height:32px; object-fit:contain; }
.opus-horizontal-navigation { flex:1; display:flex; align-items:stretch; gap:5px; min-width:0; }
.opus-area { position:relative; display:flex; }
.opus-area > summary { height:64px; display:flex; align-items:center; gap:10px; padding:0 13px; color:#cbd5e5; font-size:12px; font-weight:400; list-style:none; cursor:pointer; border-bottom:2px solid transparent; user-select:none; white-space:nowrap; }
.opus-area > summary::-webkit-details-marker { display:none; }
.opus-area > summary > i { font-size:9px; opacity:.7; }
.opus-area > summary:hover,.opus-area[open] > summary { color:#fff; background:#ffffff08; }
.opus-area.is-active > summary { color:#fff; border-bottom-color:var(--primary); }
.opus-area[open] > summary > i { transform:rotate(180deg); }
.opus-area-menu { position:absolute; top:72px; right:0; width:300px; max-height:calc(100svh - 90px); overflow:auto; background:#fff; color:var(--text); border:1px solid var(--border); border-radius:10px; padding:18px; box-shadow:var(--shadow-2); z-index:1100; }
.opus-area-menu-wide { position:fixed; top:72px; right:auto; left:50%; transform:translateX(-50%); width:min(740px,calc(100vw - 48px)); }
.opus-area-heading { padding:0 0 13px; border-bottom:1px solid var(--border); margin-bottom:12px; }
.opus-area-heading > span { font-size:13px; font-weight:600; display:flex; align-items:center; gap:10px; }
.opus-area-heading small { color:var(--text-muted); font-size:10px; font-weight:400; }
.opus-area-heading p { margin:5px 0 0; font-size:11px; color:var(--text-2); line-height:1.5; }
.opus-area-columns { display:flex; gap:18px; }
.opus-area-section { flex:1; min-width:0; }
.opus-area-section > h2 { font-size:9px; font-weight:500; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted); margin:4px 8px 9px; }
.opus-area-link { display:flex; align-items:center; gap:10px; padding:11px 8px; border-radius:5px; font-size:11px; color:var(--text); text-decoration:none; line-height:1.4; }
.opus-area-link > i { width:17px; text-align:center; color:var(--text-muted); flex-shrink:0; font-size:13px; }
.opus-area-link small { display:block; margin-top:3px; font-size:9px; color:var(--text-2); }
.opus-area-link:hover { background:var(--surface-2); color:var(--text); }
.opus-area-link.active { background:#fff3e9; color:var(--text); }
.opus-navbar-right { gap:13px; padding:0; margin-left:auto; }
.opus-search-btn { background:transparent; border:0; padding:6px 0; color:#cbd5e5; border-radius:4px; font-size:11px; }
.opus-search-btn span { min-width:0; }
.opus-search-btn kbd { margin-left:7px; color:#cbd5e5; font-size:9px; }
.opus-search-btn:hover { background:transparent; color:#fff; }
.opus-avatar { width:32px; height:32px; background:#ffffff12; border:1px solid #ffffff20; color:#fff; font-size:10px; text-decoration:none; display:flex; align-items:center; justify-content:center; border-radius:50%; }
.opus-icon-btn { width:32px; height:34px; background:transparent; border:0; color:#cbd5e5; border-radius:5px; }
.opus-mobile-toggle { display:none; border:0; background:transparent; color:#fff; width:40px; height:40px; border-radius:5px; }
.opus-sectionbar { display:flex; align-items:center; gap:22px; background:#fff; border-bottom:1px solid var(--border); padding:0 max(34px,calc((100vw - 1572px) / 2)); min-height:42px; }
.opus-section-caption { font-size:9px; color:var(--text-muted); letter-spacing:.07em; text-transform:uppercase; flex-shrink:0; }
.opus-sectionbar > nav { display:flex; align-items:stretch; gap:24px; overflow:auto; scrollbar-width:none; min-width:0; }
.opus-sectionbar > nav::-webkit-scrollbar { display:none; }
.opus-section-link { color:var(--text-2); font-size:11px; min-height:42px; display:flex; align-items:center; white-space:nowrap; text-decoration:none; border-bottom:2px solid transparent; }
.opus-section-link:hover { color:var(--text); }
.opus-section-link.active { color:var(--text); border-bottom-color:var(--primary); font-weight:500; }

/* Escala comum para as telas reais, sem alterar seus controles ou dados. */
.opus-main { max-width:1640px; margin:var(--nav-height) auto 0; padding:30px 34px 28px; min-height:calc(100svh - var(--nav-height) - 55px); }
.opus-main:focus { outline:none; }
.opus-main .page-header { margin-bottom:25px; gap:20px; }
.opus-main :is(.page-title,.bases-titulo) { font-size:28px; line-height:1.2; letter-spacing:-.8px; font-weight:600; color:var(--text); }
.opus-main .page-title > i { font-size:21px; margin-right:5px; color:var(--text-2); }
.opus-main .page-subtitle { font-size:12px; color:var(--text-2); margin-top:7px; }
.opus-main > .relat-page { padding:0; max-width:none; }
.opus-main :is(.card,.dash-panel,.bases-card,.eq-card,.eq-table-wrap,.relat-card,.frota-card,.cop-support-card,.cop-teams-card,.cop-fleet-card) { border-color:var(--border); box-shadow:none; }
.opus-main :is(.btn,.btn-salvar,.btn-nova-base,.btn-cancelar,.btn-buscar) { box-shadow:none; font-weight:500; transition:background .15s,border-color .15s; }
.opus-main :is(.btn-nova-base,.btn-salvar):hover { transform:none; }
.opus-main :is(.kpi-label,.data-table thead th,.relat-table thead th,.bases-table thead th,.eq-table thead th) { text-transform:none; letter-spacing:0; font-weight:500; color:var(--text-2); }
.opus-main .kpi-value { font-size:27px; font-weight:500; letter-spacing:-.6px; }
.opus-main .kpi { padding:18px 20px; gap:7px; box-shadow:none; }
.opus-main :is(.data-table,.bases-table,.eq-table,.relat-table) { font-size:12px; font-variant-numeric:tabular-nums; }
.opus-main :is(.data-table,.bases-table,.eq-table,.relat-table) th { font-size:10px; padding-top:11px; padding-bottom:11px; background:var(--surface-2); }
.opus-main :is(.data-table,.bases-table,.eq-table,.relat-table) td { padding-top:12px; padding-bottom:12px; border-bottom-color:var(--border); }
.opus-main :is(.form-input,.input) { border-color:var(--border-strong); font-size:12px; min-height:38px; }
.opus-main :is(.form-input,.input):focus { border-color:#516886; box-shadow:0 0 0 3px #edf1f7; }
.opus-main .hub-card { box-shadow:none; }
.opus-main .hub-card:hover { transform:none; box-shadow:none; background:var(--surface-2); }
.opus-footer { max-width:1640px; margin:auto; display:flex; justify-content:space-between; gap:16px; padding:10px 34px 22px; border:0; background:transparent; color:var(--text-2); font-size:10px; }
.opus-footer strong { font-weight:500; color:var(--text); }

/* Página inicial: foto da proposta, dados e ações do sistema. */
.opus-home-intro { display:grid; grid-template-columns:1.15fr 1fr; overflow:hidden; background:var(--navy); color:#fff; border-radius:10px; margin-bottom:28px; min-height:245px; }
.opus-home-intro-copy { padding:30px 34px; align-self:center; }
.opus-home-eyebrow { color:#cbd5e5; font-size:9px; letter-spacing:.12em; display:block; margin-bottom:14px; }
.opus-home-intro h2 { color:#fff; font-size:32px; font-weight:500; letter-spacing:-1px; line-height:1.2; margin-bottom:13px; }
.opus-home-intro p { font-size:12px; color:#cbd5e5; line-height:1.65; max-width:340px; margin-bottom:22px; }
.opus-home-photo { width:100%; height:100%; min-height:245px; max-height:290px; object-fit:cover; object-position:70% center; }
.opus-home-actions { display:flex; align-items:center; gap:19px; flex-wrap:wrap; }
.opus-home-action { padding:10px 14px; border-radius:6px; background:var(--primary); color:#152640; font-size:11px; font-weight:600; text-decoration:none; display:flex; align-items:center; gap:8px; }
.opus-home-action:hover { background:#dc6521; color:#152640; }
.opus-home-text-link { display:flex; align-items:center; gap:10px; color:#fff; font-size:11px; text-decoration:none; }
.opus-home-text-link:hover { color:#fff; text-decoration:underline; }
.opus-home .eq-page-header { padding:0; border:0; background:transparent; box-shadow:none; margin-bottom:24px; }
.opus-home .cop-now-card { box-shadow:none; border:1px solid var(--border); border-radius:10px; background:#fff; color:var(--text); }
.opus-home .cop-now-card-primary { background:var(--navy); color:#fff; }
.opus-home .cop-now-value { font-weight:500; letter-spacing:-.8px; }
.opus-home .cop-now-label { text-transform:none; letter-spacing:0; font-weight:400; color:var(--text-2); }
.opus-home .cop-now-card-primary .cop-now-label { color:#cbd5e5; }
.opus-home .cop-now-card-primary .cop-now-value { color:#fff; }
.opus-home .cop-now-card-primary .cop-now-subtitle { color:#cbd5e5; font-weight:400; }
.opus-home .cop-section-title { font-size:14px; font-weight:600; color:var(--text); }
.opus-main:has(.plan-page) { max-width:none; margin-top:var(--nav-height); height:calc(100svh - var(--nav-height)); padding:0; }
.plan-page { height:calc(100svh - var(--nav-height)); }

/* Login: composição central própria do Opus, com autenticação existente. */
.opus-access { position:relative; isolation:isolate; display:flex; flex-direction:column; min-height:100svh; padding:35px 44px 24px; background:#f4f4f0; }
.opus-access::before { content:""; position:absolute; inset:18px; border:1px solid #e1e3e1; pointer-events:none; z-index:-1; }
.opus-access-linework { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; z-index:-1; }
.opus-access-masthead { display:flex; align-items:center; min-height:30px; }
.opus-access-masthead > span { display:flex; align-items:center; gap:10px; color:var(--text-2); font-size:9px; font-weight:500; letter-spacing:.12em; }
.opus-access-masthead i { width:5px; height:5px; background:var(--primary); }
.opus-access-stage { flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:35px 0 37px; }
.opus-access-brand { display:flex; flex-direction:column; align-items:center; gap:11px; margin-bottom:28px; }
.opus-access-brand img { width:142px; height:41px; object-fit:contain; }
.opus-access-brand > span { color:var(--text-2); font-size:11px; }
.opus-access-card { width:100%; max-width:420px; padding:32px 35px 23px; background:#fff; border:1px solid #d5d9db; border-radius:4px; position:relative; }
.opus-access-card::before { content:""; position:absolute; top:-1px; left:-1px; width:54px; height:3px; background:var(--primary); }
.opus-access-heading { margin-bottom:27px; }
.opus-access-heading > span { font-size:9px; letter-spacing:.12em; font-weight:500; color:var(--text-2); display:block; margin-bottom:10px; }
.opus-access-heading h1 { font-size:25px; line-height:1.2; letter-spacing:-.7px; font-weight:600; margin-bottom:10px; }
.opus-access-heading p { font-size:11px; color:var(--text-2); line-height:1.7; margin:0; }
.opus-access-form { display:flex; flex-direction:column; gap:19px; }
.opus-access-field { display:flex; flex-direction:column; gap:7px; }
.opus-access-field > label { color:var(--text); font-size:11px; font-weight:500; }
.opus-access-field input { width:100%; min-width:0; height:45px; padding:11px 12px; font-size:12px; background:#fbfcfc; color:var(--text); border:1px solid #cbd2d8; border-radius:3px; outline:none; }
.opus-access-field input::placeholder { color:#7b8595; }
.opus-access-field input:focus { border-color:#516886; box-shadow:0 0 0 3px #edf1f7; background:#fff; }
.opus-access-password { position:relative; }
.opus-access-password input { padding-right:48px; }
.opus-access-password button { position:absolute; right:2px; top:2px; width:41px; height:41px; border:0; background:transparent; color:var(--text-2); display:flex; align-items:center; justify-content:center; border-radius:2px; }
.opus-access-password button:hover { background:#edf1f3; }
.opus-access-error { display:flex; align-items:flex-start; gap:9px; padding:11px 12px; border:1px solid #efc2c3; border-radius:3px; margin-bottom:20px; background:var(--danger-bg); color:var(--danger); font-size:11px; line-height:1.5; }
.opus-access-error > i { margin-top:3px; }
.opus-access-submit { display:flex; align-items:center; justify-content:center; gap:14px; width:100%; min-height:46px; border:1px solid var(--navy); border-radius:3px; padding:12px 16px; background:var(--navy); color:#fff; font-size:12px; font-weight:500; }
.opus-access-submit:hover { background:#293e5f; }
.opus-access-submit > i { color:#f19b61; font-size:11px; }
.opus-access-help { border-top:1px solid var(--border); margin-top:25px; padding-top:19px; }
.opus-access-help > summary { font-size:10px; color:var(--text-2); cursor:pointer; text-align:center; list-style:none; }
.opus-access-help > summary::-webkit-details-marker { display:none; }
.opus-access-help > p { font-size:11px; color:var(--text-2); line-height:1.7; margin-top:15px; }
.opus-access-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-top:14px; border-top:1px solid #dadddc; font-size:9px; color:var(--text-2); }
.opus-access-footer strong { color:var(--text); font-weight:500; }
.opus-access-divider { display:inline-block; margin:0 13px; color:#abb2b6; }

@media (max-width:1250px) {
    .opus-navbar-inner { gap:18px; }
    .opus-area > summary { padding:0 10px; }
    .opus-search-btn span,.opus-search-btn kbd { display:none; }
}
@media (max-width:1020px) {
    .opus-navbar-inner { padding:0 20px; gap:15px; align-items:center; }
    .opus-mobile-toggle { display:flex; align-items:center; justify-content:center; order:-1; }
    .opus-horizontal-navigation { display:none; position:absolute; top:64px; left:0; right:0; max-height:calc(100svh - 64px); overflow:auto; padding:12px 20px 24px; background:var(--navy); border-top:1px solid #ffffff1a; flex-direction:column; gap:0; }
    .opus-mobile-menu-open { overflow:hidden; }
    .opus-mobile-menu-open .opus-horizontal-navigation { display:flex; }
    .opus-area { display:block; }
    .opus-area > summary { height:48px; padding:0 12px; justify-content:space-between; border:0; border-radius:5px; }
    .opus-area.is-active > summary { background:#ffffff0b; border-left:2px solid var(--primary); }
    .opus-area-menu,.opus-area-menu-wide { position:static; width:100%; max-height:none; transform:none; box-shadow:none; padding:15px; margin:5px 0 10px; }
    .opus-area-columns { flex-direction:column; gap:16px; }
    .opus-area-link { min-height:44px; font-size:12px; }
    .opus-navbar-right { gap:12px; }
    .opus-sectionbar { padding:0 20px; gap:17px; }
    .opus-sectionbar > nav { gap:20px; }
    .opus-main { padding:26px 20px; }
    .opus-footer { padding:10px 20px 20px; }
    .opus-home-intro-copy { padding:27px; }
    .opus-home-intro h2 { font-size:29px; }
}
@media (max-width:760px) {
    .opus-access { padding:24px 26px 22px; }
    .opus-access::before { inset:10px; }
    .opus-access-stage { padding:30px 0; }
    .opus-access-card { max-width:400px; padding:29px 27px 23px; }
    .opus-access-brand { margin-bottom:24px; }
    .opus-access-field input { font-size:16px; height:47px; }
    .opus-access-password button { top:3px; }
    .opus-access-footer { flex-direction:column; gap:6px; text-align:center; }
    .opus-access-linework { opacity:.45; }
}
@media (max-width:580px) {
    .opus-navbar-inner { padding:0 14px; gap:10px; }
    .opus-navbar-right { gap:7px; }
    .opus-logo img { width:91px; height:28px; }
    .opus-section-caption { display:none; }
    .opus-sectionbar { padding:0 16px; }
    .opus-main { padding:24px 16px; }
    .opus-main .page-header { flex-wrap:wrap; gap:16px; }
    .opus-main :is(.page-title,.bases-titulo) { font-size:25px; }
    .opus-footer { flex-direction:column; padding:8px 16px 20px; gap:6px; }
    .opus-home-intro { grid-template-columns:1fr; }
    .opus-home-intro-copy { padding:27px; }
    .opus-home-photo { min-height:0; height:185px; object-position:70% 47%; }
    .opus-main :is(.input,.form-input) { font-size:16px; }
}
@media (max-width:380px) {
    .opus-access { padding:21px 20px 20px; }
    .opus-access::before { inset:8px; }
    .opus-access-masthead > span { font-size:8px; letter-spacing:.07em; gap:7px; }
    .opus-access-stage { padding:25px 0; }
    .opus-access-brand img { width:128px; height:37px; }
    .opus-access-brand > span { font-size:10px; }
    .opus-access-card { padding:25px 21px 20px; }
    .opus-access-heading h1 { font-size:23px; }
    .opus-access-divider { margin:0 7px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }
@media print {
    .opus-navbar,.opus-skip-link,.opus-home-intro,.opus-footer { display:none !important; }
    .opus-main { margin:0; padding:0; max-width:none; }
}
