html, body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #E0E0E0;
    color: #191919;
}

h1[tabindex]:focus {
    outline: none;
}

/* ============================================================
   LOGIN — split 60/40 (marca petróleo + card claro)
   ============================================================ */
.login-grid {
    min-height: 100vh;
    margin: 0;
}

.login-brand {
    background: #044E60;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -140px;
    bottom: -120px;    
    opacity: 0.07;
    pointer-events: none;
}

.login-brand-inner {
    text-align: center;
    z-index: 1;
    padding: 32px;
}

.login-brand-logo {
    width: 240px;
    max-width: 70%;
    height: auto;
    margin-bottom: 28px;
}

.login-tagline {
    color: #FFFFFF;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.login-form-side {
    background: #E0E0E0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 380px;
    max-width: 100%;
    padding: 40px !important;
    border-radius: 12px !important;
    background: #E0E0E0 !important;
    display: flex;
    flex-direction: column;
}

.login-card-logo {
    width: 140px;
    height: auto;
    margin: 0 auto 8px;
}

.login-card-title {
    color: #044E60 !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-forgot {
    text-align: center;
    color: #09A18B !important;
    font-size: 13px;
}

/* ============================================================
   HEADER / APPBAR
   ============================================================ */
.onix-appbar {
    background-color: #044E60 !important;
    color: #FFFFFF !important;
}

.onix-appbar-logo {
    height: 34px;
    width: auto;
    margin-left: 8px;
}

.onix-user-name {
    font-weight: 500;
    font-size: 14px;
    color: #FFFFFF;
    align-items: center;
}

/* ============================================================
   SIDEBAR / DRAWER
   ============================================================ */
.onix-drawer .mud-navmenu {
    padding-top: 8px;
}

.onix-navmenu .mud-nav-link {
    color: #FFFFFF;
    margin: 2px 8px;
    border-radius: 6px;
    transition: background-color .15s ease;
}

.onix-navmenu .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.onix-navmenu .mud-nav-link.active {
    background-color: rgba(9, 161, 139, 0.20);
    border-left: 3px solid #09A18B;
}

.onix-navmenu .mud-nav-link .mud-icon-root {
    color: #09A18B;
}

.onix-nav-divider {
    margin: 8px 16px;
    background-color: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   CONTEÚDO / FOOTER
   ============================================================ */
.onix-main {
    background-color: #E0E0E0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.onix-content {
    flex: 1 1 auto;
    padding: 24px;
}

.onix-footer {
    background-color: #044E60;
    color: #FFFFFF;
    font-size: 12px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    min-height: 40px;
}

/* ============================================================
   CARD GENÉRICO (claro)
   ============================================================ */
.onix-card {
    background: #E0E0E0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
    color: #191919;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

.dash-hello {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #044E60;
}

.dash-hello span {
    color: #09A18B;
}

.dash-date {
    color: #555555;
    margin: 4px 0 0;
    font-size: 14px;
}

.dash-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(9, 161, 139, 0.15);
    color: #09A18B;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.dash-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 11px;
    letter-spacing: 1px;
    color: #555555;
    font-weight: 700;
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #191919;
    line-height: 1.4;
}

.stat-soon {
    font-size: 12px;
    color: #999;
}

@media (max-width: 960px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   CALENDÁRIO (claro)
   ============================================================ */
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.cal-title {
    font-size: 18px;
    font-weight: 500;
    color: #044E60;
}

.cal-title strong {
    color: #09A18B;
}

.cal-sub {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.cal-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cal-today {
    text-transform: none;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-weekdays {
    margin-bottom: 8px;
}

.cal-weekday {
    font-size: 11px;
    color: #999;
    font-weight: 600;
    letter-spacing: .5px;
    padding-left: 4px;
}

.cal-cell {
    min-height: 66px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 6px 8px;
    background: #FFFFFF;
}

.cal-day {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.cal-out {
    background: #EEEEEE;
}

.cal-out .cal-day {
    color: #BBB;
}

.cal-today-cell {
    border: 2px solid #09A18B;
    box-shadow: inset 0 0 0 1px rgba(9, 161, 139, 0.2);
}

.cal-holiday {
    background: rgba(9, 161, 139, 0.10);
    border-color: rgba(9, 161, 139, 0.35);
}

.cal-holiday-label {
    display: block;
    font-size: 9px;
    color: #09A18B;
    margin-top: 4px;
    line-height: 1.15;
    font-weight: 600;
}

/* ============================================================
   PAINEL DE FERIADOS
   ============================================================ */
.h-100 { height: 100%; }

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: #044E60;
    margin-bottom: 16px;
}

.holiday-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E0E0E0;
}

.holiday-date {
    background: #044E60;
    color: #fff;
    border-radius: 10px;
    min-width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hd-mon {
    font-size: 9px;
    letter-spacing: 1px;
}

.hd-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.holiday-name {
    font-weight: 600;
    font-size: 14px;
    color: #191919;
}

.holiday-dow {
    font-size: 12px;
    color: #888;
    text-transform: capitalize;
}

.panel-empty {
    color: #999;
    font-size: 13px;
}

.panel-note {
    margin-top: 18px;
    font-size: 12px;
    color: #aaa;
    font-style: italic;
}

/* ============================================================
   Loading / erro
   ============================================================ */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #AAAAAA;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #09A18B;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    color: #044E60;
    inset: calc(20vh + 3.25rem) 0 auto 0;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Carregando");
}

#blazor-error-ui {
    background: #C0392B;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
