/* Sentlu+ - tema do painel (fundo branco, cor da marca #236466) */

:root {
    --sl-brand: #236466;
    --sl-brand-dark: #1a4a4c;
    --sl-brand-deep: #10292b;
    --sl-accent: #5fd0c8;
    --sl-border: #e5e9ec;
    --sl-muted: #64748b;
}

/* ---------- Fundo branco ---------- */
.fi-layout,
.fi-body,
.fi-main-ctn,
.fi-main {
    background-color: #fff !important;
}

/* ---------- Barra superior ---------- */
.fi-topbar > nav {
    background: #fff !important;
    border-bottom: 1px solid var(--sl-border);
    box-shadow: none !important;
}

/* ---------- Menu lateral escuro ---------- */
.fi-sidebar {
    background: var(--sl-brand-deep) !important;
    border-right: 0 !important;
}

.fi-sidebar-header {
    background: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fi-sidebar .fi-icon-btn,
.fi-sidebar-group-collapse-button {
    color: rgba(255, 255, 255, 0.7) !important;
}

.fi-sidebar-group-label {
    color: rgba(255, 255, 255, 0.45) !important;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}

.fi-sidebar-item-button {
    color: rgba(255, 255, 255, 0.82) !important;
    border-radius: 0.65rem !important;
    font-weight: 600;
}

.fi-sidebar-item-button:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

.fi-sidebar-item-label { color: inherit !important; }

.fi-sidebar-item-icon { color: rgba(255, 255, 255, 0.6) !important; }

.fi-sidebar-item-active .fi-sidebar-item-button {
    background: var(--sl-brand) !important;
    color: #fff !important;
}

.fi-sidebar-item-active .fi-sidebar-item-icon { color: #fff !important; }

/* ---------- Logótipo Sentlu+ ---------- */
.sl-logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    line-height: 1;
}

.sl-word { color: var(--sl-brand-deep); }
.sl-plus { color: var(--sl-brand); }

.fi-sidebar .sl-word { color: #fff; }
.fi-sidebar .sl-plus { color: var(--sl-accent); }

/* ---------- Títulos e cartões ---------- */
.fi-header-heading {
    color: var(--sl-brand-deep) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.fi-ta-ctn,
.fi-section,
.fi-wi-chart,
.fi-fo-field-wrp .fi-input-wrp {
    border: 1px solid var(--sl-border);
    box-shadow: 0 1px 2px rgba(16, 41, 43, 0.04) !important;
}

.fi-ta-table thead tr { background: #f6f9f9 !important; }

.fi-ta-header-cell-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.7rem !important;
    color: var(--sl-muted) !important;
}

/* ---------- Página de login ---------- */
.fi-simple-layout {
    background: linear-gradient(135deg, #e4f0f0 0%, #ffffff 55%) !important;
}

.fi-simple-main {
    border-radius: 1.1rem !important;
    border: 1px solid var(--sl-border);
    box-shadow: 0 20px 40px -20px rgba(16, 41, 43, 0.25) !important;
}

/* ---------- Cartões do início ---------- */
.st-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1100px) {
    .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .st-grid { grid-template-columns: minmax(0, 1fr); }
}

.st-tile {
    --c: #236466;
    --bg: #e3f0f0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 1.1rem 1.2rem 1.1rem 1.35rem;
    background: #fff;
    border: 1px solid var(--sl-border);
    border-radius: 1rem;
    color: var(--sl-brand-deep);
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(16, 41, 43, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.st-tile::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--c);
}

a.st-tile:not(.st-static):hover {
    transform: translateY(-2px);
    border-color: var(--c);
    box-shadow: 0 10px 22px -12px rgba(16, 41, 43, 0.35);
}

.st-static { cursor: default; }

.st-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background: var(--bg);
    color: var(--c);
}

.st-svg { width: 1.6rem; height: 1.6rem; }

.st-body { min-width: 0; }

.st-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sl-muted);
}

.st-value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
}

.st-value-small {
    font-size: 1.2rem;
    padding-top: 0.35rem;
}

.st-hint {
    font-size: 0.72rem;
    color: var(--sl-muted);
}

.st-teal    { --c: #236466; --bg: #e3f0f0; }
.st-emerald { --c: #059669; --bg: #dcf5ea; }
.st-sky     { --c: #0284c7; --bg: #def1fb; }
.st-amber   { --c: #d97706; --bg: #fdf0d8; }
.st-rose    { --c: #e11d48; --bg: #fde2e8; }
.st-indigo  { --c: #4f46e5; --bg: #e6e5fb; }
.st-violet  { --c: #7c3aed; --bg: #eee5fc; }
.st-slate   { --c: #475569; --bg: #e8ecf0; }
