:root {
    --re-sidebar-width: 280px;
    --re-topbar-height: 66px;
    --re-bg: #eef3f0;
    --re-surface: #ffffff;
    --re-text: #17221d;
    --re-muted: #6b7771;
    --re-border: #dde7e1;
    --re-green-dark: #0b3325;
    --re-green: #198754;
    --re-yellow: #f0c236;
    --re-shadow: 0 10px 28px rgba(14, 53, 38, 0.08);
}

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

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    color: var(--re-text);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(240, 194, 54, 0.12),
            transparent 340px
        ),
        linear-gradient(
            145deg,
            #f8faf9,
            var(--re-bg)
        );
}

.re-app {
    width: 100%;
    min-height: 100vh;
}

.re-sidebar {
    position: fixed;
    z-index: 1040;
    inset: 0 auto 0 0;
    width: var(--re-sidebar-width);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    color: #fff;
    background:
        radial-gradient(
            circle at 10% 0,
            rgba(240, 194, 54, 0.15),
            transparent 230px
        ),
        linear-gradient(
            180deg,
            #082d20,
            #0d4932
        );
    box-shadow: 12px 0 34px rgba(7, 42, 29, 0.16);
}

.re-sidebar-brand {
    padding: 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.re-brand-link {
    color: #fff;
    text-decoration: none;
}

.re-brand-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.re-brand-subtitle {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.78rem;
}

.re-sidebar-nav {
    padding: 12px 10px 40px;
}

.re-menu-group {
    margin-bottom: 12px;
}

.re-menu-title {
    padding: 11px 12px 6px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.re-menu-link {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    margin: 3px 0;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    transition: 0.16s ease;
}

.re-menu-link i {
    flex: 0 0 24px;
    width: 24px;
    text-align: center;
}

.re-menu-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.re-menu-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.re-menu-link.active {
    color: #fff;
    border-color: rgba(240, 194, 54, 0.28);
    background:
        linear-gradient(
            135deg,
            rgba(240, 194, 54, 0.24),
            rgba(255, 255, 255, 0.08)
        );
    box-shadow: inset 3px 0 0 var(--re-yellow);
}

.re-main {
    width: calc(100% - var(--re-sidebar-width));
    min-height: 100vh;
    margin-left: var(--re-sidebar-width);
}

.re-topbar {
    position: sticky;
    z-index: 1020;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--re-topbar-height);
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--re-border);
    backdrop-filter: blur(10px);
}

.re-topbar-title {
    font-weight: 750;
}

.re-topbar-user {
    color: var(--re-muted);
    font-size: 0.88rem;
}

.re-sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--re-border);
    border-radius: 11px;
    background: #fff;
}

.re-content {
    display: block;
    width: 100%;
    min-height: calc(100vh - var(--re-topbar-height));
    padding: 24px;
    visibility: visible;
    opacity: 1;
}

.re-content > * {
    max-width: 100%;
}

.container,
.container-fluid,
.row,
.row > *,
.card,
.card-body,
form,
table {
    min-width: 0;
}

.container-fluid {
    width: 100%;
    max-width: 100%;
}

.card {
    max-width: 100%;
    border: 1px solid var(--re-border) !important;
    border-radius: 17px !important;
    background: var(--re-surface) !important;
    box-shadow: var(--re-shadow) !important;
}

.card-header {
    background: #fff !important;
    border-bottom: 1px solid var(--re-border) !important;
}

.table-responsive {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.table-responsive > table {
    min-width: 760px;
}

.form-control,
.form-select {
    max-width: 100%;
    min-height: 44px;
    border-color: #d8e4dd;
    border-radius: 11px;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(25, 135, 84, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.12);
}

img,
svg,
canvas,
video,
iframe {
    max-width: 100%;
}

.re-overlay {
    position: fixed;
    z-index: 1035;
    inset: 0;
    display: none;
    background: rgba(7, 24, 17, 0.52);
}

@media (max-width: 991.98px) {
    .re-sidebar {
        transform: translateX(-100%);
        transition: transform 0.22s ease;
    }

    body.re-sidebar-open .re-sidebar {
        transform: translateX(0);
    }

    body.re-sidebar-open .re-overlay {
        display: block;
    }

    .re-main {
        width: 100%;
        margin-left: 0;
    }

    .re-sidebar-toggle {
        display: inline-flex;
    }

    .re-content {
        padding: 14px 12px 28px;
    }
}
