/* MOTIUS HUMAN HYBRID — PREMIUM 4.0 | light enterprise workspace */
:root{color-scheme:light;--mh-bg:#f4f6fa;--mh-surface:#fff;--mh-elevated:#fff;--mh-line:#e7eaf0;--mh-text:#192132;--mh-muted:#7b8495;--mh-red:#e51c39;--mh-radius:15px}
*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0!important;background:#f4f6fa!important;color:#192132!important;font:14px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif!important;-webkit-font-smoothing:antialiased}h1,h2,h3{color:#1a2434!important;letter-spacing:-.6px}h1{font-size:28px}h2{font-size:20px}p,.muted,.small{color:#798294!important}a{color:#e51c39}a:hover{color:#bd1230} .layout{display:flex;min-height:100vh}.layout>main,.layout>.content{flex:1;min-width:0;padding:28px clamp(18px,3vw,46px)!important}.layout>main>h1:first-child{margin-top:0}
.layout>.mh-sidebar{width:258px!important;min-width:258px!important;max-width:258px!important;min-height:100vh!important;background:#111722!important;color:#e4e9f1!important;border-right:1px solid #263044!important;padding:25px 14px 14px!important;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#394153 transparent}
.mh-brand{display:flex;gap:11px;align-items:center;padding:2px 9px 24px;border-bottom:1px solid #263044}.mh-brand-mark{height:40px;width:40px;border-radius:12px;background:#e51c39;color:white;display:grid;place-items:center;font-size:24px;font-weight:900}.mh-brand strong{display:block;font-size:15px;letter-spacing:.1px;color:#ff3b57}.mh-brand strong span{color:#fff}.mh-brand small{display:block;font-size:9px;letter-spacing:1.5px;color:#8e9aaf;margin-top:2px}.mh-workspace{margin:19px 5px 18px;border:1px solid #30384a;background:#1c2533;padding:11px 10px;border-radius:10px;display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:1px;font-weight:750;color:#dce4f1}.mh-workspace-dot,.mh-live i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#23bc82}.mh-workspace-arrow{margin-left:auto;font-size:15px;color:#8b96a9}.mh-nav{display:block!important;flex:1!important;margin:0!important}.mh-nav-group{margin-bottom:17px}.mh-nav-heading{display:block;padding:8px 13px;font-size:10px;letter-spacing:1.6px;color:#7d8ba1;font-weight:800}.mh-nav-link{display:flex!important;align-items:center!important;gap:12px!important;padding:10px 12px!important;border-radius:10px!important;text-decoration:none!important;color:#b5c0d0!important;font-size:13px!important;font-weight:550!important;min-height:40px!important;margin:2px 0!important;background:transparent!important}.mh-nav-link:hover{background:#202b3a!important;color:white!important}.mh-nav-link.mh-active{background:#e51c39!important;color:white!important;box-shadow:0 5px 13px #e51c3933}.mh-nav-icon{display:grid;place-items:center;width:21px;font-size:18px;color:inherit}.mh-nav-active-dot{width:5px;height:5px;background:#fff;border-radius:50%;margin-left:auto}.mh-sidebar-footer{border-top:1px solid #30384a;display:flex;align-items:center;gap:10px;padding:16px 8px 2px}.mh-avatar,.mh-top-avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#e51c39;color:#fff;font-weight:800}.mh-sidebar-footer strong{display:block;color:#e8edf5;font-size:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mh-sidebar-footer small{color:#8795a9;font-size:11px}.mh-topbar{display:flex;align-items:center;justify-content:space-between;padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid #e6eaf1}.mh-breadcrumb{font-size:11px;letter-spacing:1px;font-weight:750;color:#6f7b8e}.mh-breadcrumb span{margin:0 10px;color:#c1c7d0}.mh-topbar-right{display:flex;align-items:center;gap:20px}.mh-live{display:flex;align-items:center;gap:7px;color:#5c677a;font-size:12px}.mh-top-avatar{width:34px;height:34px}
.card,.panel,.metric,.mh-widget,.mh-kpi,.mh-finance-card,.mh-occupancy-card{background:#fff!important;border:1px solid #e7eaf0!important;border-radius:15px!important;box-shadow:0 5px 22px #182e5010!important;color:#192132!important}.card,.panel,.metric{padding:20px!important}.cards,.metrics{gap:16px!important}.value,.metric b{color:#e51c39!important;font-weight:800!important}.mh-page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:5px 0 32px}.mh-eyebrow{font-size:10px;color:#e51c39;font-weight:850;letter-spacing:1.7px}.mh-page-head h1{margin:6px 0 3px;font-size:30px}.mh-page-head p{margin:0}.mh-page-head p strong{color:#526077}.mh-primary-action,.btn,button,input[type=submit]{display:inline-flex;align-items:center;justify-content:center;border:0!important;border-radius:9px!important;background:#e51c39!important;color:#fff!important;padding:11px 17px!important;text-decoration:none!important;font-weight:700!important;cursor:pointer;min-height:40px}.mh-primary-action:hover,.btn:hover,button:hover{background:#c91832!important;color:white!important}.mh-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:24px 0 14px}.mh-section-head h2{margin:0}.mh-section-head span{font-size:12px;color:#8a93a2}.mh-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px}.mh-kpi{padding:18px 19px!important;min-height:125px}.mh-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#697587}.mh-kpi-glyph{color:#e51c39;font-size:19px}.mh-kpi-value{font-size:29px;font-weight:850;letter-spacing:-1px;margin:5px 0 2px;color:#1b2433}.mh-kpi small{color:#9aa2b0;font-size:10px}.mh-dashboard-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:16px;margin-top:24px}.mh-widget{padding:23px!important;min-width:0}.mh-widget-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.mh-widget-head h2{margin:4px 0}.mh-widget-head p{font-size:12px;margin:0}.mh-period{font-size:11px;border:1px solid #e6eaf0;border-radius:7px;padding:6px 9px;color:#637084;white-space:nowrap}.mh-frequency-stats{display:flex;gap:38px;margin:24px 0 16px}.mh-frequency-stats div{display:flex;flex-direction:column}.mh-frequency-stats strong{font-size:25px;color:#192132}.mh-frequency-stats span{font-size:11px;color:#8892a2}.mh-week-bars{display:flex;align-items:end;gap:10px;height:190px;padding:0 8px 8px;border-bottom:1px solid #edf0f4}.mh-week-col{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.mh-bar-number{font-size:11px;color:#697587}.mh-bar-track{width:min(100%,38px);height:130px;background:#f0f2f7;border-radius:8px;position:relative;overflow:hidden}.mh-bar-fill{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(#ff6576,#e51c39);border-radius:7px}.mh-week-label{font-size:11px;color:#758196}.mh-widget-footnote{font-size:11px;color:#8792a3!important;margin:15px 0 0}.mh-quick-links{display:grid;gap:8px;margin-top:18px}.mh-quick-links a{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #e9ecf1;border-radius:11px;text-decoration:none;color:#192132}.mh-quick-links a:hover{background:#f9fafc}.mh-quick-links a>span{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:#fff0f2;color:#e51c39;font-size:21px}.mh-quick-links a div{flex:1}.mh-quick-links strong,.mh-quick-links small{display:block}.mh-quick-links strong{font-size:13px}.mh-quick-links small{font-size:11px;color:#8a93a2}.mh-quick-links b{font-size:22px;color:#9ba4b1}.mh-finance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.mh-finance-card{padding:20px!important;display:flex;flex-direction:column;gap:7px}.mh-finance-card span{font-size:12px;color:#6f7c8d}.mh-finance-card strong{font-size:23px;color:#1b2433;letter-spacing:-.7px}.mh-finance-card small{font-size:10px;color:#96a0ad}.mh-table-widget{margin-top:25px}.mh-table-widget .mh-widget-head{margin-bottom:15px}.mh-table-widget a{font-size:12px}.mh-occupancy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:13px}.mh-occupancy-card{padding:18px!important;display:flex;flex-direction:column;gap:7px;text-decoration:none!important}.mh-occupancy-card span{font-weight:700;color:#344154}.mh-occupancy-card strong{font-size:26px;color:#e51c39}.mh-occupancy-card small{color:#8993a1;font-size:10px}.mh-empty{text-align:center;color:#8792a2;padding:25px!important}
input,select,textarea{background:#fff!important;color:#263246!important;border:1px solid #d9dee8!important;border-radius:9px!important;padding:10px!important;min-height:40px}input:focus,select:focus,textarea:focus{outline:2px solid #e51c3950!important;border-color:#e51c39!important}label{color:#49566b!important;font-weight:600}table{width:100%;border-collapse:collapse!important;font-size:13px}th,td{border-bottom:1px solid #e9edf2!important;padding:13px!important;color:#344154!important;text-align:left!important}th{color:#8b95a5!important;font-size:10px!important;letter-spacing:.7px!important;text-transform:uppercase!important;background:#fafbfd!important}tbody tr:hover{background:#fafbfd}.scroll,.table-wrap{overflow-x:auto}.notice{background:#eaf8f1!important;color:#24734e!important;border:1px solid #bcebd2!important;border-radius:10px;padding:12px}.error{background:#fff0f2!important;color:#b51d38!important;border:1px solid #f8c7d0!important;border-radius:10px;padding:12px}.status{color:#374357!important}.motius-modalidade-controles{display:flex!important;gap:12px!important;align-items:center!important;flex-wrap:wrap!important}.motius-modalidade-controles form{display:inline-flex!important;gap:10px!important;align-items:center!important;flex-wrap:wrap!important}.motius-modalidade-controles .btn,.motius-modalidade-controles button{margin:0!important}.panel{overflow-x:auto}.metric b{display:block}
/* Full-page legacy views still have inline dark CSS: force enterprise theme */
body>main{background:#f4f6fa!important;color:#192132!important}body>main .panel,body>main .metric{background:#fff!important;color:#192132!important}body>main h1{color:#192132!important}body>main p,body>main .small{color:#788397!important}body>main .metrics b{color:#e51c39!important}body>main a:not(.btn){color:#e51c39!important}
@media(max-width:1080px){.mh-dashboard-columns{grid-template-columns:1fr}}@media(max-width:850px){.layout{display:block!important}.layout>.mh-sidebar{position:relative!important;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;padding:16px!important}.mh-nav{display:flex!important;gap:12px;overflow-x:auto}.mh-nav-group{min-width:170px}.mh-sidebar-footer{display:none}.layout>main,.layout>.content{padding:20px 15px!important}.mh-page-head{align-items:flex-start;flex-direction:column}.mh-frequency-stats{gap:18px}.mh-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mh-finance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.scroll,.table-wrap{overflow-x:auto}table{min-width:600px}}@media(max-width:480px){.mh-kpi-grid,.mh-finance-grid{grid-template-columns:1fr}.mh-week-bars{gap:5px}.mh-live{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* MOTIUS-CONTRASTE-V1 */
/* Contraste global para interfaces escuras */
body {
    color: #f5f7fa;
}

main, aside, section, article,
.panel, .card, .modal, .dropdown-menu {
    color: #f5f7fa;
}

h1, h2, h3, h4, h5, h6,
th, label, legend {
    color: #ffffff;
}

p, td, li, small, .muted,
.text-muted, .subtitle, .description {
    color: #cbd2dd;
}

input:not([type="checkbox"]):not([type="radio"]),
select, textarea {
    background-color: #252a33;
    color: #ffffff;
    border: 1px solid #69717d;
}

input::placeholder, textarea::placeholder {
    color: #b8c0cc;
    opacity: 1;
}

input:focus, select:focus, textarea:focus {
    border-color: #f87171;
    outline: 2px solid rgba(248,113,113,.25);
    outline-offset: 1px;
}

select option {
    background-color: #252a33;
    color: #ffffff;
}

button, .btn {
    font-weight: 600;
}

button:not(:disabled),
.btn:not(:disabled) {
    opacity: 1;
}

a {
    text-underline-offset: 3px;
}

a:focus-visible, button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

table {
    color: #f5f7fa;
}

thead th {
    color: #ffffff;
}

tbody td {
    color: #e5e7eb;
}

:disabled {
    opacity: .65;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
    }
}

/* MOTIUS-LEGIBILIDADE-GLOBAL-V2 */

/* Tabelas sobre superfícies escuras */
table {
    color: #f1f5f9;
}

tbody tr {
    color: #f1f5f9;
}

tbody td,
tbody td a:not(.btn),
tbody td span:not(.badge),
tbody td small {
    color: #f1f5f9 !important;
}

tbody td a:not(.btn) {
    text-decoration-color: #94a3b8;
}

tbody td .text-muted,
tbody td .muted {
    color: #cbd5e1 !important;
}

/* Cabeçalhos claros de tabelas */
thead th {
    color: #475569;
    font-weight: 700;
}

/* Campos claros de pesquisa */
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"] {
    color: #111827;
}

input::placeholder {
    color: #64748b;
    opacity: 1;
}

/* Botões de ação */
button,
.btn,
a.btn {
    font-weight: 600;
}

button[type="submit"],
.btn-primary {
    color: #ffffff;
}

/* Links secundários */
a {
    text-underline-offset: 3px;
}

/* Foco acessível */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid #ed1b2f;
    outline-offset: 2px;
}

/* MOTIUS-PREMIUM-CONTRASTE-4-1 */

/* Tabelas: fundo e texto sempre compatíveis */
table tbody tr,
table tbody tr:nth-child(even),
table tbody tr:nth-child(odd) {
    background-color: #20242c !important;
}

table tbody tr:hover {
    background-color: #303641 !important;
}

table tbody td,
table tbody td span,
table tbody td small,
table tbody td a:not(.btn) {
    color: #f8fafc !important;
}

table thead,
table thead tr,
table thead th {
    background-color: #303641 !important;
    color: #ffffff !important;
}

table tbody td {
    border-bottom: 1px solid #414754;
}

/* Botões dentro de tabelas */
table tbody .btn,
table tbody button,
table tbody a.btn {
    color: #ffffff !important;
}

/* Campos de formulário */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    background-color: #ffffff !important;
    color: #172033 !important;
    border: 1px solid #94a3b8 !important;
}

input::placeholder,
textarea::placeholder {
    color: #64748b !important;
    opacity: 1;
}

select option {
    background: #ffffff;
    color: #172033;
}

/* Botões de destaque */
.btn-primary,
button[type="submit"] {
    background-color: #ed1b2f;
    color: #ffffff !important;
}

/* Estados de foco */
input:focus,
select:focus,
textarea:focus {
    border-color: #ed1b2f !important;
    outline: 2px solid rgba(237,27,47,.25);
}

/* MOTIUS-MENU-LEGIVEL-V3 */

/* Menu lateral claro */
aside {
    color: #334155;
}

aside a:not(.active):not([aria-current="page"]),
aside nav a:not(.active):not([aria-current="page"]) {
    color: #334155 !important;
}

aside a:not(.active):not([aria-current="page"]) svg,
aside nav a:not(.active):not([aria-current="page"]) svg {
    color: #475569 !important;
}

aside a:hover:not(.active):not([aria-current="page"]) {
    background-color: #e2e8f0;
    color: #b91c1c !important;
}

aside a.active,
aside a[aria-current="page"] {
    background-color: #ed1b2f;
    color: #ffffff !important;
}

aside a.active svg,
aside a[aria-current="page"] svg {
    color: #ffffff !important;
}

/* Textos secundários do menu */
aside small,
aside .muted {
    color: #64748b;
}

/* MOTIUS-MENU-PREMIUM-4-2 */

/* Menu lateral escuro padronizado */
body aside {
    background-color: #111827 !important;
    color: #f8fafc !important;
}

/* Links normais */
body aside nav a,
body aside a:not(.active):not([aria-current="page"]) {
    color: #e2e8f0 !important;
}

/* Icones acompanham os textos */
body aside nav a svg,
body aside nav a i {
    color: inherit !important;
}

/* Opcao selecionada */
body aside nav a.active,
body aside nav a[aria-current="page"],
body aside a.active,
body aside a[aria-current="page"] {
    background-color: #ed1b2f !important;
    color: #ffffff !important;
}

/* Mouse sobre as opcoes */
body aside nav a:hover:not(.active),
body aside a:hover:not(.active) {
    background-color: #263244 !important;
    color: #ffffff !important;
}

/* Titulos e informacoes do menu */
body aside h1,
body aside h2,
body aside h3,
body aside strong {
    color: #ffffff !important;
}

body aside small,
body aside .muted {
    color: #b8c4d6 !important;
}
