/*
 * Casino Manager — control panel (phase 1)
 * Desktop-first internal dashboard; no frameworks.
 *
 * Sections: tokens → base → shell → sidebar (+ brand logo + footer) → main / topbar
 *          → dashboard body → card grid → status badges → buttons → login (standalone)
 *          → responsive
 */

/* --- Design tokens --- */
:root {
    /* Neutrals */
    --color-page: #eef1f6;
    --color-page-accent: #e8ecf4;
    --color-surface: #ffffff;
    --color-surface-raised: #fafbfc;
    --color-border: #dfe3eb;
    --color-border-strong: #cdd4e0;
    --color-text: #0f172a;
    --color-text-secondary: #334155;
    --color-muted: #64748b;

    /* Sidebar */
    --color-sidebar: #0b1220;
    --color-sidebar-2: #111827;
    --color-sidebar-edge: #020617;
    --color-sidebar-text: #f1f5f9;
    --color-sidebar-muted: #94a3b8;
    --color-sidebar-hover: rgba(148, 163, 184, 0.14);
    --color-sidebar-active-bg: rgba(37, 99, 235, 0.22);
    --color-sidebar-active-bar: #3b82f6;
    --sidebar-width: 264px;

    /* Accent (primary actions) */
    --color-accent: #1d4ed8;
    --color-accent-hover: #1e40af;
    --color-accent-soft: #eff6ff;
    --color-accent-contrast: #ffffff;

    /* Status badges */
    --badge-planned-bg: #fffbeb;
    --badge-planned-text: #92400e;
    --badge-planned-border: #fcd34d;
    --badge-ok-bg: #ecfdf5;
    --badge-ok-text: #065f46;
    --badge-ok-border: #6ee7b7;
    --badge-muted-bg: #f1f5f9;
    --badge-muted-text: #475569;
    --badge-muted-border: #cbd5e1;

    /* Elevation */
    --shadow-sidebar: 4px 0 24px rgba(2, 6, 23, 0.06);
    --shadow-topbar: 0 1px 0 rgba(15, 23, 42, 0.06);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-card-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.08);

    /* Radii & type */
    --radius-card: 12px;
    --radius-control: 8px;
    --radius-pill: 999px;
    --font-sans: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;
    --tracking-tight: -0.02em;
    --content-max: 1200px;

    /* Login — flatter, cooler than the dashboard shell */
    --login-page-bg: #e4e7ec;
    --login-card-border: #d8dce6;
    --login-footnote: #94a3b8;
}

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

html {
    font-size: 16px;
}

body.app-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-text);
    background: linear-gradient(180deg, var(--color-page) 0%, var(--color-page-accent) 100%);
    -webkit-font-smoothing: antialiased;
}

/* --- App shell --- */
.app-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    color: var(--color-sidebar-text);
    background: linear-gradient(180deg, var(--color-sidebar) 0%, var(--color-sidebar-2) 100%);
    border-right: 1px solid var(--color-sidebar-edge);
    box-shadow: var(--shadow-sidebar);
}

.sidebar__head {
    padding: 1.35rem 1.15rem 1.15rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

/* El Casino mark — white asset on dark sidebar; restrained width, no stretch */
.sidebar__brandmark {
    display: block;
    margin: 0 0 0.75rem;
    line-height: 0;
}

.sidebar__logo {
    display: block;
    max-width: 8.75rem;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar__brand {
    font-weight: 600;
    font-size: 0.8125rem;
    line-height: 1.4;
    letter-spacing: var(--tracking-tight);
    color: var(--color-sidebar-muted);
}

.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 1rem 0.75rem 1.5rem;
    flex: 1;
}

.sidebar__rule {
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    margin: 0.75rem 0.5rem 0.5rem;
}

.sidebar__section-title {
    margin: 0 0 0.35rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-sidebar-muted);
}

.sidebar__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem 0.55rem 0.85rem;
    border-radius: var(--radius-control);
    color: var(--color-sidebar-muted);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.35;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.sidebar__link:hover {
    color: var(--color-sidebar-text);
    background: var(--color-sidebar-hover);
}

.sidebar__link--active {
    color: var(--color-sidebar-text);
    font-weight: 600;
    background: var(--color-sidebar-active-bg);
}

.sidebar__link--active::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 1.1rem;
    border-radius: 2px;
    background: var(--color-sidebar-active-bar);
}

.sidebar__pin {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar__pin--live {
    background: #22c55e;
}

.sidebar__pin--off {
    background: #64748b;
}

.sidebar__pin--ghost {
    visibility: hidden;
}

.sidebar__entry-text {
    min-width: 0;
}

/* Session / sign-out — anchored to the nav column (operational chrome, not page content) */
.sidebar__footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.sidebar__signout {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-sidebar-muted);
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    margin: -0.4rem -0.5rem;
    border-radius: var(--radius-control);
}

.sidebar__signout:hover {
    color: var(--color-sidebar-text);
    background: var(--color-sidebar-hover);
}

.sidebar__signout:focus-visible {
    outline: 2px solid rgba(147, 197, 253, 0.6);
    outline-offset: 2px;
}

/* --- Main column --- */
.main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-topbar);
    padding: 1rem 2rem 1.05rem;
}

.topbar__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    line-height: 1.25;
    color: var(--color-text);
}

.topbar__user {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--color-text-secondary);
}

.content {
    flex: 1;
    padding: 1.75rem 2rem 2.5rem;
}

/* --- Dashboard body (width + vertical rhythm) --- */
.dashboard-body {
    max-width: var(--content-max);
    margin: 0 auto;
}

.page-intro {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.page-intro__text {
    margin: 0;
    max-width: 42rem;
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.page-intro--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-body--narrow {
    max-width: 54rem;
}

/* --- Card grid --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.35rem;
}

.dashboard-empty {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.4rem 1.5rem;
}

.dashboard-empty__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: var(--tracking-tight);
}

.dashboard-empty__text {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

@media (min-width: 1100px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.card {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.35rem 1.2rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 196px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    bottom: 1rem;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--color-accent-soft);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-left: none;
    opacity: 0.85;
}

.card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-card-hover);
}

.card--disabled {
    opacity: 0.92;
}

.card--disabled:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-card);
}

.card--external::before {
    background: #f5f3ff;
    border-color: rgba(91, 33, 182, 0.22);
    border-left: none;
}

.card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 0.35rem;
}

.card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.avail-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.45rem;
    border: 1px solid transparent;
    white-space: nowrap;
}

.avail-badge--live {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.avail-badge--pending {
    color: #475569;
    background: #f1f5f9;
    border-color: var(--color-border);
}

.card__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: var(--tracking-tight);
    color: var(--color-text);
}

/* --- Status badges --- */
.card__status {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--badge-muted-border);
    white-space: nowrap;
    color: var(--badge-muted-text);
    background: var(--badge-muted-bg);
}

.card__status--planned {
    color: var(--badge-planned-text);
    background: var(--badge-planned-bg);
    border-color: var(--badge-planned-border);
}

/* es-ES status copy (slug from Jinja: status|lower|replace(' ', '-')) */
.card__status--planificado {
    color: var(--badge-planned-text);
    background: var(--badge-planned-bg);
    border-color: var(--badge-planned-border);
}

.card__status--en-desarrollo {
    color: var(--badge-planned-text);
    background: var(--badge-planned-bg);
    border-color: var(--badge-planned-border);
}

.card__status--disponible {
    color: var(--badge-ok-text);
    background: var(--badge-ok-bg);
    border-color: var(--badge-ok-border);
}

.card__status--no-disponible {
    color: var(--badge-muted-text);
    background: var(--badge-muted-bg);
    border-color: var(--badge-muted-border);
}

.card__status--ok,
.card__status--active {
    color: var(--badge-ok-text);
    background: var(--badge-ok-bg);
    border-color: var(--badge-ok-border);
}

.card__status--inactive,
.card__status--offline {
    color: var(--badge-muted-text);
    background: var(--badge-muted-bg);
    border-color: var(--badge-muted-border);
}

.card__description {
    margin: 0;
    flex: 1;
    padding-left: 0.35rem;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.55;
}

.card__meta {
    margin: 0;
    padding-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.card__footer {
    margin-top: auto;
    padding-top: 0.25rem;
    padding-left: 0.35rem;
}

.card__note {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-muted);
}

.card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 1rem;
    border-radius: var(--radius-control);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--color-accent-contrast);
    background: var(--color-accent);
    border: 1px solid transparent;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.card__action:hover {
    background: var(--color-accent-hover);
}

.card__action:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.card__action--disabled {
    cursor: not-allowed;
    color: var(--color-muted);
    background: var(--color-surface-raised);
    border: 1px solid var(--color-border);
    pointer-events: none;
    user-select: none;
}

.card__action--disabled:hover {
    background: var(--color-surface-raised);
}

.system-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 1.2rem 1.25rem;
}

.system-alert {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-control);
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
}

.system-alert--success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.system-alert--error {
    color: #7f1d1d;
    background: #fef2f2;
    border-color: #fecaca;
}

.system-table-wrap {
    overflow-x: auto;
}

.system-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.system-table th,
.system-table td {
    padding: 0.8rem 0.9rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

.system-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}

.system-table tbody tr:last-child td {
    border-bottom: none;
}

.system-role-badge,
.system-state-badge,
.system-chip {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
}

.system-role-badge--superadmin,
.system-state-badge--active {
    color: var(--badge-ok-text);
    background: var(--badge-ok-bg);
    border-color: var(--badge-ok-border);
}

.system-role-badge--admin {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.system-role-badge--usuario,
.system-state-badge--inactive,
.system-chip {
    color: var(--badge-muted-text);
    background: var(--badge-muted-bg);
    border-color: var(--badge-muted-border);
}

.system-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.system-access-note {
    color: var(--color-muted);
    font-size: 0.84rem;
}

.system-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.system-action-secondary {
    color: var(--color-accent);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.system-action-secondary:hover {
    background: var(--color-surface-raised);
}

.system-inline-form {
    margin: 0;
}

.system-text-button {
    border: none;
    background: transparent;
    padding: 0;
    color: var(--color-accent);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.system-text-button--danger {
    color: #b91c1c;
}

.system-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.system-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1rem;
}

.system-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.system-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.system-field input,
.system-field select {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    font: inherit;
    color: var(--color-text);
    background: var(--color-surface);
}

.system-permissions {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    background: var(--color-surface-raised);
    padding: 1rem 1rem 0.95rem;
}

.system-permissions__head {
    margin-bottom: 0.85rem;
}

.system-section-title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.system-permissions__note {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.system-permissions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.85rem;
}

.system-permissions__grid--disabled {
    opacity: 0.7;
}

.system-module-option {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
    background: var(--color-surface);
    cursor: pointer;
}

.system-module-option input {
    width: auto;
    margin: 0;
}

.system-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sidebar__link--disabled {
    cursor: not-allowed;
    color: var(--color-sidebar-muted);
    opacity: 0.75;
    pointer-events: none;
    user-select: none;
}

/* --- Login (standalone, no app shell) --- */
body.login-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--login-page-bg);
    -webkit-font-smoothing: antialiased;
}

.login-shell {
    width: 100%;
    max-width: 22rem;
}

.login-card {
    background: var(--color-surface);
    border: 1px solid var(--login-card-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
    padding: 1.75rem 1.75rem 1.65rem;
    /* Neutral top edge: brand colour comes from the logo asset only */
    border-top: 1px solid var(--color-border);
}

.login-header {
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--color-border);
}

/* Same asset as sidebar, scaled down for the lighter login shell */
.login-brandmark {
    display: flex;
    justify-content: center;
    margin: 0 0 0.95rem;
    line-height: 0;
}

.login-logo {
    display: block;
    max-width: 7rem;
    width: 100%;
    height: auto;
    opacity: 0.98;
}

.login-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    line-height: 1.35;
    color: var(--color-text);
}

.login-lead {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.45;
    font-weight: 400;
}

.login-error {
    margin: 0 0 1rem;
    padding: 0.6rem 0.7rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #7f1d1d;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-control);
}

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

.login-field {
    margin-bottom: 1rem;
}

.login-field:last-of-type {
    margin-bottom: 0;
}

.login-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.login-input {
    width: 100%;
    padding: 0.6rem 0.7rem;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--color-text);
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-control);
}

.login-input:hover {
    border-color: var(--color-border-strong);
}

.login-input:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--color-surface);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}

.login-submit {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.62rem 1rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-contrast);
    background: var(--color-sidebar);
    border: none;
    border-radius: var(--radius-control);
    cursor: pointer;
}

.login-submit:hover {
    background: #111827;
}

.login-submit:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.login-footnote {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--login-footnote);
}

/* --- Responsive (secondary) --- */
@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .system-form-grid,
    .system-permissions__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .app-shell {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
        box-shadow: none;
        border-right: none;
        border-bottom: 1px solid var(--color-sidebar-edge);
    }

    .sidebar__head {
        padding: 1rem 1rem;
        border-bottom: none;
        border-right: 1px solid rgba(148, 163, 184, 0.15);
        max-width: 42%;
    }

    /* Tighter mark + product line when the sidebar strip is compressed */
    .sidebar__brandmark {
        margin-bottom: 0.45rem;
    }

    .sidebar__logo {
        max-width: 5.25rem;
    }

    .sidebar__brand {
        font-size: 0.6875rem;
        line-height: 1.3;
    }

    .sidebar__nav {
        flex: 1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.75rem;
        gap: 0.35rem;
    }

    .sidebar__rule,
    .sidebar__section-title {
        display: none;
    }

    .sidebar__link--active::before {
        display: none;
    }

    .sidebar__footer {
        order: 3;
        flex-basis: 100%;
        margin-top: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0.5rem 0.85rem 0.65rem;
        border-top: 1px solid rgba(148, 163, 184, 0.12);
    }

    .topbar,
    .content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
