html,
body {
    background: #0f172a;
    color: #d6dee8;
}

html.auth-root,
html.auth-root body,
body.auth-page {
    background: #060c09;
    color: #eef3ef;
}

html[data-theme="light"],
html[data-theme="light"] body {
    background: #f8fafc;
    color: #0f172a;
}

html[data-theme="light"][data-palette="sala"],
html[data-theme="light"][data-palette="sala"] body {
    background: #f3efe6;
    color: #1a1814;
}

html[data-theme="dark"][data-palette="sala"],
html[data-theme="dark"][data-palette="sala"] body {
    background: #07080b;
    color: #e8e4db;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

input,
select,
textarea {
    width: 100%;
    font-size: 15px;
}

.stage-ribbon {
    position: fixed;
    left: 50%;
    top: 8px;
    z-index: 5000;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    pointer-events: none;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    display: none;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    body,
    html {
        width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 4px;
    }

    .app-container,
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 8px !important;
    }

    .mobile-menu-btn {
        display: inline-block !important;
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .sidebar {
        position: fixed !important;
        left: -260px !important;
        top: 0 !important;
        height: 100vh !important;
        width: 260px !important;
        z-index: 999 !important;
        transition: left 0.3s ease-in-out !important;
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2) !important;
    }

    .sidebar.open {
        left: 0 !important;
    }

    .premium-dashboard-grid,
    .grid-form,
    .rh-grid-cards {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .campo-full {
        grid-column: auto !important;
    }

    .rh-card,
    .action-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .rh-card-body {
        padding: 0 !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .rh-table {
        min-width: 100% !important;
    }

    .rh-table th,
    .rh-table td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }

    .rh-profile-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 16px !important;
    }

    .rh-hero-badges {
        justify-content: center !important;
    }

    button,
    .btn-action,
    .search-btn,
    .filter-tab,
    .btn-premium-action {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .search-box {
        flex-direction: column !important;
        width: 100% !important;
    }

    .search-input {
        width: 100% !important;
    }

    .tabs-nav {
        flex-direction: column !important;
        gap: 4px !important;
        border-bottom: none !important;
        align-items: stretch !important;
    }

    .tab-btn {
        width: 100% !important;
        height: 40px !important;
        margin: 0 !important;
        text-align: center !important;
        border-radius: 6px !important;
    }
}
