html, body {
    font-family: 'Inter', 'Roboto', sans-serif;
    background-color: #F4F6F8;
}

/* ---- Sidebar / drawer ---- */
.ml-drawer .mud-nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    border-radius: 8px;
    margin: 2px 12px;
}

.ml-drawer .mud-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.ml-drawer .mud-nav-link.active {
    background-color: #C0392B !important;
    color: #fff !important;
}

/* ---- Drawer de detalhe (lateral direito) — claro, diferente do menu principal ---- */
.ml-detail-drawer {
    background-color: #FFFFFF !important;
    color: #1C1C1E !important;
}

.ml-drawer .mud-nav-link.active .mud-nav-link-icon {
    color: #fff !important;
}

.ml-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px 20px;
}

.ml-logo {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #C0392B;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ---- Main content + header ---- */
.ml-main {
    padding-top: 0 !important;
    background-color: #F4F6F8;
    min-height: 100vh;
}

.ml-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: #FFFFFF;
    border-bottom: 1px solid #E7EAEE;
}

.ml-content {
    padding: 24px 28px;
}

/* ---- Cards ---- */
.ml-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
    height: 100%;
}

.ml-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6B7280;
}

.ml-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1C1C1E;
    line-height: 1.2;
    margin-top: 6px;
}

.ml-card-sub {
    font-size: 0.78rem;
    color: #6B7280;
    margin-top: 6px;
}

.ml-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1C1C1E;
}

.ml-section-sub {
    font-size: 0.8rem;
    color: #6B7280;
}

/* ---- Curva S: faixas de hover e tooltip ---- */
.ml-curva-plot {
    position: relative;
}

.ml-curva-faixa {
    position: absolute;
}

.ml-curva-guia {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #C9D1DA;
    opacity: 0;
}

.ml-curva-faixa:hover .ml-curva-guia {
    opacity: 1;
}

.ml-curva-tip {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -100%);
    margin-top: -12px;
    z-index: 2;
    display: none;
    width: max-content;
    background: #fff;
    border: 1px solid #E7EAEE;
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(28, 28, 30, 0.14);
    padding: 8px 10px;
    pointer-events: none;
}

.ml-curva-tip-inicio {
    transform: translate(0, -100%);
}

.ml-curva-tip-fim {
    transform: translate(-100%, -100%);
}

.ml-curva-faixa:hover .ml-curva-tip {
    display: block;
}

.ml-curva-tip-dia {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1C1C1E;
    margin-bottom: 4px;
}

.ml-curva-tip-linha {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.5;
}

.ml-curva-tip-linha b {
    color: #1C1C1E;
    font-weight: 600;
}

/* ---- Meta bar (dashboard / detalhe) ---- */
.ml-bar-track {
    background: #EEF1F4;
    border-radius: 4px;
    width: 100%;
    height: 24px;
    overflow: hidden;
}

.ml-bar-fill {
    height: 24px;
    border-radius: 4px;
    transition: width .3s ease;
}

/* ---- Tabela: coloração de linhas (Monitoramento) ---- */
.row-inativo td { background-color: rgba(231, 76, 60, 0.07) !important; }
.row-parando td { background-color: rgba(243, 156, 18, 0.08) !important; }
.row-destaque td { background-color: rgba(39, 174, 96, 0.07) !important; }

/* ---- Login ---- */
.ml-login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #F4F6F8;
}
