:root {
    --imeal-primary: #4e73df;
    --imeal-primary-dark: #224abe;
    --imeal-secondary: #858796;
    --imeal-success: #1cc88a;
    --imeal-info: #36b9cc;
    --imeal-warning: #f6c23e;
    --imeal-danger: #e74a3b;
    --imeal-light: #f8f9fc;
    --imeal-dark: #5a5c69;
    --imeal-sidebar-start: #4e73df;
    --imeal-sidebar-end: #224abe;
}

html { position: relative; min-height: 100%; }
body {
    min-height: 100vh;
    background-color: var(--imeal-light);
    font-family: Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: .9rem;
    color: #5a5c69;
}

#wrapper { display: flex; min-height: 100vh; }
#content-wrapper {
    background-color: var(--imeal-light);
    width: 100%;
    overflow-x: hidden;
}
#content { flex: 1 0 auto; }
.container-fluid { padding-left: 1.5rem; padding-right: 1.5rem; }

.sidebar {
    width: 14rem;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--imeal-sidebar-start) 10%, var(--imeal-sidebar-end) 100%);
    background-size: cover;
    overflow-y: auto;
    z-index: 1000;
}
.sidebar .sidebar-brand {
    height: 4.375rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    padding: 1.1rem .75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .05rem;
    color: #fff;
}
.sidebar .sidebar-brand-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,.16);
    font-size: .9rem;
}
.sidebar .sidebar-brand-text { display: inline; }
.sidebar hr.sidebar-divider {
    margin: .45rem 1rem;
    border-top: 1px solid rgba(255,255,255,.18);
}
.sidebar .sidebar-heading {
    padding: 0 .95rem;
    font-weight: 800;
    font-size: .62rem;
    color: rgba(255,255,255,.45);
    text-transform: uppercase;
    letter-spacing: .08rem;
    margin-top: .35rem;
    margin-bottom: .2rem;
}
.sidebar .nav-item { position: relative; }
.sidebar .nav-item .nav-link {
    display: flex;
    align-items: center;
    gap: .42rem;
    width: 100%;
    color: rgba(255,255,255,.82);
    padding: .42rem .95rem;
    line-height: 1.1;
    font-size: .74rem;
    font-weight: 700;
    border-left: 3px solid transparent;
    transition: all .15s ease-in-out;
}
.sidebar .nav-item .nav-link i {
    width: 1rem;
    min-width: 1rem;
    text-align: center;
    font-size: .74rem;
    color: rgba(255,255,255,.55);
}
.sidebar .nav-item .nav-link span { overflow-wrap: anywhere; }
.sidebar .nav-item .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.11);
    border-left-color: rgba(255,255,255,.45);
    text-decoration: none;
}
.sidebar .nav-item.active .nav-link {
    color: #fff;
    background: rgba(255,255,255,.17);
    border-left-color: #fff;
}
.sidebar .nav-item.active .nav-link i { color: #fff; }

.topbar {
    height: 4.375rem;
    border-bottom: 1px solid #e3e6f0;
}
.topbar .btn-link { color: var(--imeal-primary); }
.topbar-title h1 { font-weight: 800; }
.text-gray-800 { color: #5a5c69 !important; }
.text-gray-700 { color: #6e707e !important; }

.card {
    border: 0;
    border-radius: .55rem;
    box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.12) !important;
    margin-bottom: 1.35rem;
}
.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: .85rem 1.25rem;
    font-weight: 800;
    color: var(--imeal-primary);
}
.card-body { padding: 1.25rem; }
.card-footer {
    background-color: #fff;
    border-top: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
}

.page-title,
h1.page-title,
.h3.page-title {
    font-weight: 800;
    color: #5a5c69;
}
.section-title {
    display: block;
    margin: .4rem 0 1rem;
    padding-bottom: .45rem;
    border-bottom: 1px solid #e3e6f0;
    color: var(--imeal-primary);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.form-label, label {
    font-weight: 700;
    color: #5a5c69;
    margin-bottom: .35rem;
}
.required::after { content: " *"; color: var(--imeal-danger); }
.form-control,
.form-select,
.custom-select {
    display: block;
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6e707e;
    background-color: #fff;
    border: 1px solid #d1d3e2;
    border-radius: .35rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.form-control:focus,
.form-select:focus,
.custom-select:focus {
    color: #6e707e;
    background-color: #fff;
    border-color: #bac8f3;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(78,115,223,.25);
}
textarea.form-control { min-height: 92px; }
select[multiple], .form-select[multiple] { min-height: 132px; }
.input-group-text {
    border-color: #d1d3e2;
    background-color: #eaecf4;
    color: #6e707e;
    font-weight: 700;
}

.btn {
    border-radius: .35rem;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 0 .125rem .25rem rgba(58,59,69,.08);
}
.btn-primary, .btn-success {
    background-color: var(--imeal-primary);
    border-color: var(--imeal-primary);
}
.btn-primary:hover, .btn-success:hover {
    background-color: var(--imeal-primary-dark);
    border-color: var(--imeal-primary-dark);
}
.btn-outline-success, .btn-outline-primary {
    color: var(--imeal-primary);
    border-color: var(--imeal-primary);
}
.btn-outline-success:hover, .btn-outline-primary:hover {
    color: #fff;
    background-color: var(--imeal-primary);
    border-color: var(--imeal-primary);
}
.btn-danger { background-color: var(--imeal-danger); border-color: var(--imeal-danger); }
.btn-info { background-color: var(--imeal-info); border-color: var(--imeal-info); }
.btn-warning { background-color: var(--imeal-warning); border-color: var(--imeal-warning); color: #fff; }
.btn-remove {
    border-color: #f4b6ae;
    color: var(--imeal-danger);
    background-color: #fff;
    box-shadow: none;
}
.btn-remove:hover {
    color: #fff;
    background-color: var(--imeal-danger);
    border-color: var(--imeal-danger);
}

.table-responsive { border-radius: .55rem; }
.table {
    color: #5a5c69;
    background-color: #fff;
    margin-bottom: 0;
}
.table th {
    font-weight: 800;
    color: #4e73df;
    background-color: #f8f9fc;
    border-top: 0;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .035rem;
    white-space: nowrap;
}
.table td {
    vertical-align: top;
    font-size: .84rem;
}
.table-bordered th, .table-bordered td { border-color: #e3e6f0; }
.table-hover tbody tr:hover { background-color: #f8f9fc; }

.alert { border: 0; border-radius: .55rem; box-shadow: 0 .125rem .35rem rgba(58,59,69,.06); }
.badge { border-radius: .35rem; font-weight: 800; padding: .35em .55em; }
.subtle-note, .help-text, .form-text { color: #858796; font-size: .82rem; }

.repeat-row {
    background-color: #f8f9fc;
    border: 1px solid #e3e6f0;
    border-radius: .55rem;
    padding: 1rem;
    margin-bottom: .85rem;
}

.matrix-table th,
.matrix-table td { background: #fff; }
.matrix-table thead th {
    background: #f8f9fc;
    color: #4e73df;
    text-align: center;
    vertical-align: middle;
}
.matrix-table tfoot td,
.matrix-total-row td {
    background: #eaf0ff !important;
    font-weight: 800;
}

.border-left-primary { border-left: .25rem solid var(--imeal-primary) !important; }
.border-left-success { border-left: .25rem solid var(--imeal-success) !important; }
.border-left-info { border-left: .25rem solid var(--imeal-info) !important; }
.border-left-warning { border-left: .25rem solid var(--imeal-warning) !important; }
.shadow { box-shadow: 0 .15rem 1.75rem 0 rgba(58,59,69,.15) !important; }
.shadow-sm { box-shadow: 0 .125rem .25rem 0 rgba(58,59,69,.10) !important; }

.scroll-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    text-align: center;
    color: #fff;
    background: rgba(90,92,105,.5);
    line-height: 2.75rem;
    z-index: 1030;
}
.scroll-to-top:hover { color: #fff; background: #5a5c69; text-decoration: none; }
.sticky-footer { padding: 1.25rem 0; flex-shrink: 0; border-top: 1px solid #e3e6f0; }

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -14rem;
        top: 0;
        bottom: 0;
        transition: left .2s ease-in-out;
    }
    body.sidebar-open .sidebar { left: 0; }
    body.sidebar-open::after {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.28);
        z-index: 999;
    }
    body.sidebar-open .sidebar { z-index: 1001; }
    .container-fluid { padding-left: 1rem; padding-right: 1rem; }
    .topbar-title h1 { font-size: 1rem; }
}
