:root {
    --bp-bg: #f3f6f5;
    --bp-bg-wash: #eaf1ef;
    --bp-surface: #ffffff;
    --bp-surface-soft: #f7faf9;
    --bp-border: #d8e1de;
    --bp-border-soft: #e5ece9;
    --bp-text: #1c2a2a;
    --bp-muted: #657574;
    --bp-primary: #154f52;
    --bp-primary-dark: #0f393b;
    --bp-primary-bright: #1c7c7f;
    --bp-accent: #c49a36;
    --bp-accent-soft: #fbf3dc;
    --bp-danger-soft: #fff0ee;
    --bp-success-soft: #edf8f1;
    --bp-warning-soft: #fff7df;
    --bp-shadow: 0 14px 34px rgba(21, 79, 82, 0.1);
    --bp-shadow-soft: 0 5px 16px rgba(21, 79, 82, 0.06);
    --bp-sidebar-width: 340px;
    --bp-page-gap: 24px;
}

html {
    background: var(--bp-bg);
}

body {
    background:
        radial-gradient(circle at top left, rgba(196, 154, 54, 0.1), transparent 320px),
        linear-gradient(180deg, var(--bp-bg-wash) 0, var(--bp-bg) 240px) !important;
    color: var(--bp-text);
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif !important;
    font-size: 0.92rem;
    line-height: 1.55;
}

a {
    color: var(--bp-primary-bright);
}

header.navbar {
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid var(--bp-border-soft) !important;
    box-shadow: 0 6px 20px rgba(21, 79, 82, 0.08) !important;
}

.navbar-brand img {
    max-height: 58px;
    object-fit: contain;
}

.main-menu {
    gap: 4px;
    flex-wrap: wrap;
}

.main-menu .nav-link {
    border-radius: 8px;
    color: var(--bp-primary) !important;
    font-weight: 600;
    padding: 9px 14px !important;
}

.main-menu .nav-link:hover,
.main-menu .nav-link:focus {
    background: var(--bp-accent-soft);
    color: var(--bp-primary-bright) !important;
}

.dropdown-menu {
    border: 1px solid var(--bp-border-soft) !important;
    border-radius: 8px !important;
    box-shadow: var(--bp-shadow) !important;
    padding: 8px;
}

.dropdown-item {
    border-radius: 6px;
    color: var(--bp-text);
    padding: 8px 10px;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--bp-accent-soft);
    color: var(--bp-primary-bright);
}

.main-content {
    padding: var(--bp-page-gap) !important;
}

.sidebar {
    background: transparent !important;
    height: auto !important;
    overflow: visible !important;
    padding: var(--bp-page-gap) 20px !important;
    position: static !important;
    right: auto !important;
    top: auto !important;
}

.card,
.card-custom,
.search-panel,
.summary-box,
.table-custom,
.auth-card {
    background: var(--bp-surface) !important;
    border: 1px solid var(--bp-border-soft) !important;
    border-radius: 10px !important;
    box-shadow: var(--bp-shadow) !important;
}

.card-header {
    border-bottom: 1px solid var(--bp-border-soft);
}

.card-header.bg-primary,
.bg-primary {
    background-color: var(--bp-primary) !important;
}

.card-header.bg-primary h1,
.card-header.bg-primary h2,
.card-header.bg-primary h3,
.card-header.bg-primary h4,
.card-header.bg-primary h5,
.card-header.bg-primary h6 {
    color: #ffffff !important;
}

.rounded-4,
.rounded-5 {
    border-radius: 10px !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bp-text);
    font-weight: 700;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(1.6rem, 2vw, 2rem);
}

h2 {
    font-size: clamp(1.35rem, 1.7vw, 1.65rem);
}

h3 {
    font-size: 1.1rem;
}

.text-primary {
    color: var(--bp-primary) !important;
}

.text-muted {
    color: var(--bp-muted) !important;
}

.btn {
    border-radius: 7px;
    font-weight: 600;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn-primary {
    background: var(--bp-primary);
    border-color: var(--bp-primary);
    box-shadow: 0 6px 14px rgba(21, 79, 82, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--bp-primary-dark);
    border-color: var(--bp-primary-dark);
    transform: translateY(-1px);
}

input[type="submit"],
input[type="reset"],
button[type="submit"],
button[type="reset"] {
    border-radius: 7px;
    font-family: inherit;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    padding: 7px 14px;
}

input[type="submit"],
button[type="submit"] {
    background: var(--bp-primary);
    border: 1px solid var(--bp-primary);
    box-shadow: 0 5px 12px rgba(21, 79, 82, 0.16);
    color: #ffffff;
}

input[type="reset"],
button[type="reset"] {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border);
    color: var(--bp-muted);
}

.btn-outline-primary {
    border-color: var(--bp-primary);
    color: var(--bp-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--bp-primary);
    border-color: var(--bp-primary);
}

.form-control,
.form-select,
.input-group-text,
textarea,
select,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"] {
    border: 1px solid var(--bp-border) !important;
    border-radius: 7px !important;
    color: var(--bp-text);
    font-family: inherit;
    min-height: 38px;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
select:focus,
input:focus {
    border-color: var(--bp-primary-bright) !important;
    box-shadow: 0 0 0 0.2rem rgba(28, 124, 127, 0.14) !important;
    outline: 0;
}

.table,
table {
    color: var(--bp-text);
}

.table-custom,
.table-responsive,
body > table {
    border-radius: 8px;
}

table[border],
body > table {
    background: var(--bp-surface);
    border: 1px solid var(--bp-border-soft) !important;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: var(--bp-shadow-soft);
}

table[border] td,
table[border] th {
    border-color: var(--bp-border-soft) !important;
    padding: 8px 10px;
    vertical-align: middle;
}

table[border] tr:first-child td,
table[border] tr:first-child th,
.table-custom th,
.table thead th {
    background: var(--bp-surface-soft);
    color: var(--bp-primary);
    font-weight: 700;
}

.table-hover tbody tr:hover,
table[border] tr:hover td {
    background: #eef6f4;
}

.table-dark,
.table-dark th,
.table-dark td {
    --bs-table-bg: var(--bp-primary);
    --bs-table-border-color: #2d696b;
    background: var(--bp-primary) !important;
    color: #ffffff !important;
}

.legacy-page table {
    margin-bottom: 18px;
    max-width: 100%;
}

.legacy-page img {
    max-width: 100%;
}

.highlight-warning,
.border-warning.bg-light,
.border-warning.bg-white {
    background: var(--bp-warning-soft) !important;
    border-color: #f2c94c !important;
}

.auth-wrapper {
    align-items: center;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.17), transparent 280px),
        radial-gradient(circle at 88% 16%, rgba(245, 158, 11, 0.22), transparent 300px),
        linear-gradient(135deg, #eef8f7 0%, #f8fbfb 45%, #edf4f7 100%) !important;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(14px, 3vw, 30px);
}

.auth-card {
    background: var(--bp-surface) !important;
    border: 1px solid rgba(216, 225, 222, 0.92) !important;
    border-radius: 16px !important;
    box-shadow: 0 32px 80px rgba(15, 57, 59, 0.22) !important;
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1fr);
    max-width: 940px;
    min-height: 500px;
    overflow: hidden;
    position: relative;
    width: min(100%, 940px);
}

.auth-hero {
    background:
        radial-gradient(circle at 22% 10%, rgba(255,255,255,0.20), transparent 210px),
        linear-gradient(155deg, rgba(4, 47, 46, 0.98), rgba(13, 91, 97, 0.98) 62%, rgba(180, 83, 9, 0.94)) !important;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 500px;
    padding: clamp(24px, 4vw, 36px);
    position: relative;
}

.auth-hero::before {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    content: "";
    inset: 14px;
    pointer-events: none;
    position: absolute;
}

.auth-hero::after {
    border: 42px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    content: "";
    height: 230px;
    position: absolute;
    right: -90px;
    top: -70px;
    width: 230px;
}

.auth-logo {
    display: block;
    background: rgba(255,255,255,.92);
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
    padding: 8px;
    height: auto;
    margin-bottom: 26px;
    max-width: 150px;
}

.auth-kicker,
.auth-form-header p,
.auth-feature-list,
.auth-proof-grid span,
.auth-support-row {
    color: rgba(255, 255, 255, 0.72);
}

.auth-kicker {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.auth-hero h1 {
    color: #ffffff;
    font-size: clamp(2.25rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 16px;
    max-width: 330px;
}

.auth-hero-copy {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
    max-width: 300px;
}

.auth-proof-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 42px 0 28px;
}

.auth-proof-grid div {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 16px;
}

.auth-proof-grid strong {
    color: #ffffff;
    display: block;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.auth-proof-grid span,
.auth-feature-list span {
    display: block;
    font-size: 0.82rem;
}

.auth-feature-list {
    display: grid;
    gap: 10px;
}

.auth-feature-list i {
    color: var(--bp-accent);
    margin-right: 8px;
}

.auth-feature-list span {
    align-items: center;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    display: flex;
    padding: 8px 11px;
}

.auth-form-side {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 5vw, 48px);
}

.auth-form-header {
    margin-bottom: 20px;
}

.auth-secure-badge {
    align-items: center;
    background: #ecfeff;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: #075985;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 7px;
    margin-bottom: 16px;
    padding: 6px 11px;
}

.auth-form-header h2 {
    color: var(--bp-text);
    font-size: clamp(1.7rem, 2.5vw, 2.15rem);
    margin: 0 0 6px;
}

.auth-form-header p {
    color: var(--bp-muted);
    margin: 0;
}

.auth-alert {
    align-items: center;
    background: var(--bp-danger-soft);
    border: 1px solid rgba(185, 74, 60, 0.18);
    border-radius: 8px;
    color: #8c2f22;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-field label {
    color: var(--bp-text);
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.auth-input-wrap {
    align-items: center;
    background: #f8fbfc;
    border: 1px solid var(--bp-border);
    border-radius: 10px;
    display: flex;
    min-height: 48px;
    padding: 0 15px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.auth-input-wrap:focus-within {
    background: #ffffff;
    border-color: var(--bp-primary-bright);
    box-shadow: 0 0 0 0.22rem rgba(28, 124, 127, 0.12);
}

.auth-input-wrap i {
    color: var(--bp-muted);
    font-size: 1rem;
    margin-right: 11px;
}

.auth-input-wrap input {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--bp-text);
    flex: 1;
    min-height: 42px;
    padding: 0 !important;
    width: 100%;
}

.auth-input-wrap input:focus {
    box-shadow: none !important;
}

.auth-submit {
    align-items: center;
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
    border: 1px solid #0f766e;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(8, 145, 178, 0.24);
    color: #ffffff;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    margin-top: 4px;
    min-height: 48px;
    padding: 0 18px;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #115e59 0%, #0e7490 100%);
    border-color: #0e7490;
    transform: translateY(-1px);
}

.auth-support-row {
    align-items: center;
    color: var(--bp-muted);
    display: flex;
    font-size: 0.82rem;
    justify-content: space-between;
    margin-top: 6px;
}

.auth-support-row a {
    color: var(--bp-primary-bright);
    font-weight: 700;
    text-decoration: none;
}

.auth-support-row a:hover,
.auth-support-row a:focus {
    text-decoration: underline;
}

.public-cert-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(216, 225, 222, 0.92);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 57, 59, 0.14);
    padding: clamp(18px, 3vw, 26px);
    width: min(100%, 1120px);
}

.public-cert-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.public-cert-kicker {
    color: #0f766e;
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.public-cert-header h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin: 0 0 4px;
}

.public-cert-header p {
    color: var(--bp-muted);
    margin: 0;
}

.public-cert-count {
    background: #ecfeff;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: #075985;
    flex: 0 0 auto;
    font-weight: 800;
    padding: 7px 12px;
}

.public-cert-form {
    align-items: end;
    background: #f8fbfc;
    border: 1px solid var(--bp-border-soft);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1fr) 150px 150px auto;
    margin-bottom: 16px;
    padding: 12px;
}

.public-cert-form label {
    color: var(--bp-muted);
    display: block;
    font-size: .75rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.public-cert-form input,
.public-cert-form select {
    width: 100%;
}

.public-cert-form button {
    align-items: center;
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
    border: 0;
    border-radius: 9px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 38px;
    padding: 8px 16px;
}

.public-cert-list {
    display: grid;
    gap: 10px;
}

.public-cert-item {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--bp-border-soft);
    border-left: 4px solid #0f766e;
    border-radius: 10px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(82px, .45fr)) minmax(170px, .8fr);
    padding: 13px 14px;
}

.public-cert-item.is-expired {
    border-left-color: #dc2626;
}

.public-cert-item h3 {
    font-size: 1rem;
    margin: 0 0 3px;
}

.public-cert-item p {
    color: var(--bp-muted);
    font-size: .82rem;
}

.public-cert-stat span {
    color: var(--bp-muted);
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.public-cert-stat strong {
    color: var(--bp-text);
    font-size: 1rem;
}

.public-cert-status {
    border-radius: 999px;
    display: inline-block;
    font-size: .76rem;
    font-weight: 800;
    padding: 4px 9px;
}

.public-cert-status.active {
    background: #ecfdf5;
    color: #047857;
}

.public-cert-status.expired {
    background: #fef2f2;
    color: #b91c1c;
}

.public-cert-empty {
    background: #f8fbfc;
    border: 1px dashed var(--bp-border);
    border-radius: 10px;
    color: var(--bp-muted);
    padding: 18px;
    text-align: center;
}

.public-cert-pages {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 14px;
}

.public-cert-pages span {
    color: var(--bp-muted);
    margin-right: auto;
}

.public-cert-pages a {
    border: 1px solid var(--bp-border);
    border-radius: 8px;
    color: var(--bp-primary);
    font-weight: 800;
    padding: 6px 11px;
    text-decoration: none;
}

.public-cert-pages a.disabled {
    color: #94a3b8;
    pointer-events: none;
}

@media (max-width: 860px) {
    .auth-wrapper {
        align-items: stretch;
        padding: 16px;
    }

    .auth-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-hero {
        min-height: auto;
        padding: 30px;
    }

    .auth-hero::before {
        inset: 14px;
    }

    .auth-logo {
        margin-bottom: 26px;
        max-width: 180px;
    }

    .auth-hero h1 {
        font-size: 2.4rem;
        max-width: none;
    }

    .auth-proof-grid {
        margin: 28px 0 22px;
    }

    .auth-form-side {
        padding: 30px;
    }

    .public-cert-form,
    .public-cert-item {
        grid-template-columns: 1fr 1fr;
    }

    .public-cert-item > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .auth-wrapper {
        padding: 10px;
    }

    .auth-hero,
    .auth-form-side {
        padding: 24px;
    }

    .auth-proof-grid,
    .auth-support-row {
        grid-template-columns: 1fr;
    }

    .auth-support-row {
        align-items: flex-start;
        display: grid;
        gap: 8px;
    }

    .public-cert-header,
    .public-cert-pages {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-cert-form,
    .public-cert-item {
        grid-template-columns: 1fr;
    }
}

.list-group-item {
    border-color: var(--bp-border-soft);
}

.calculator-section {
    max-width: 100%;
}

.calculator-section-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 10px;
}

.calculator-section-title {
    color: #5362d6;
    font-size: 0.86rem;
    font-weight: 500;
    margin: 0;
}

.calculator-top-count {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dfe5f2;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(22, 34, 84, 0.05);
    color: #58627a;
    display: inline-flex;
    gap: 10px;
    min-height: 34px;
    padding: 6px 10px;
}

.calculator-top-count span {
    font-size: 0.75rem;
    font-weight: 500;
}

.calculator-top-count strong {
    background: var(--bp-primary);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    min-width: 46px;
    padding: 6px 8px;
    text-align: center;
}

.calculator-card-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.calculator-action-card {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #dfe5f2;
    border-radius: 7px;
    box-shadow: 0 2px 7px rgba(22, 34, 84, 0.05);
    color: #22304f;
    display: flex;
    gap: 12px;
    min-height: 112px;
    padding: 13px 12px;
    position: relative;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.calculator-action-card:hover,
.calculator-action-card:focus {
    border-color: #b8c5f6;
    box-shadow: 0 8px 18px rgba(48, 64, 154, 0.1);
    color: #22304f;
    transform: translateY(-1px);
}

.calculator-card-icon {
    align-items: center;
    background: #eef2ff;
    border-radius: 7px;
    color: #536dfe;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.calculator-card-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.calculator-card-body strong {
    color: #1f2a44;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.18;
}

.calculator-card-body small {
    color: #58627a;
    font-size: 0.71rem;
    line-height: 1.28;
}

.calculator-card-body em {
    color: #5362d6;
    font-size: 0.72rem;
    font-style: normal;
    line-height: 1.2;
}

.calculator-action-card.is-warning .calculator-card-icon {
    background: #fff2e6;
    color: #e34f31;
}

.calculator-action-card.is-warning .calculator-card-body em {
    color: #e34f31;
}

.legacy-page {
    padding: 24px;
}

.legacy-page main,
.page-shell {
    margin: 0 auto;
    max-width: 1280px;
}

.legacy-page .page-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
}

.search-panel {
    overflow: hidden;
}

.search-panel .panel-header {
    background: var(--bp-surface-soft);
    border-bottom: 1px solid var(--bp-border-soft);
    padding: 12px 14px;
}

.search-panel .panel-body {
    padding: 14px;
}

.company-search-stack {
    display: grid;
    gap: 8px;
}

.company-search-stack .form-select,
.company-search-stack .form-control,
.company-search-stack .btn {
    width: 100%;
}

.company-search-stack .form-control {
    min-height: 42px;
}

.sidebar .search-panel {
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.card-custom {
    padding: 16px;
}

.card-custom + .card-custom {
    margin-top: 16px;
}

.sidebar .card-custom {
    box-shadow: var(--bp-shadow-soft) !important;
}

.sidebar .card-custom h6,
.search-panel h6 {
    color: var(--bp-primary) !important;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}

.btn-light.border {
    background: var(--bp-surface-soft) !important;
    border-color: var(--bp-border-soft) !important;
    color: var(--bp-text);
}

.btn-light.border:hover,
.btn-light.border:focus {
    background: var(--bp-accent-soft) !important;
    border-color: rgba(196, 154, 54, 0.34) !important;
    color: var(--bp-primary);
}

.badge.bg-primary,
.badge.text-bg-primary {
    background: var(--bp-primary) !important;
}

.alert-warning {
    background: var(--bp-accent-soft);
    border-color: rgba(196, 154, 54, 0.35);
    color: #755d20;
}

footer {
    color: var(--bp-muted);
}

font {
    color: inherit;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

@media (max-width: 991.98px) {
    .main-menu {
        align-items: stretch !important;
        flex-direction: column !important;
        width: 100%;
    }

    .main-menu .nav-link {
        width: 100%;
    }

    .sidebar {
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }

    .main-content {
        padding: 18px !important;
    }
}

@media (min-width: 992px) {
    .container-fluid > .row {
        align-items: flex-start;
        position: relative;
    }

    .main-content {
        flex: 0 0 calc(100% - var(--bp-sidebar-width) - var(--bp-page-gap)) !important;
        max-width: calc(100% - var(--bp-sidebar-width) - var(--bp-page-gap)) !important;
    }

    .sidebar {
        bottom: auto !important;
        height: calc(100vh - 112px) !important;
        max-width: var(--bp-sidebar-width) !important;
        overflow-y: auto !important;
        padding: 0 12px 24px 12px !important;
        position: fixed !important;
        right: 18px !important;
        scrollbar-width: thin;
        top: 104px !important;
        width: var(--bp-sidebar-width) !important;
        z-index: 980 !important;
    }

    .sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(21, 79, 82, 0.22);
        border-radius: 999px;
    }
}
