* {
    box-sizing: border-box;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.5rem;
    font-weight: 700;
    line-height: 1.15;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

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

hr {
    margin: 0;
    border: 0;
    border-top: 1px solid rgba(14, 42, 68, 0.12);
}

.container {
    width: min(1140px, calc(100% - 2rem));
    margin-inline: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.row > [class*="col-"] {
    width: 100%;
    flex: 0 0 auto;
    padding: 0.75rem;
}

.row.g-4 {
    margin: -1rem;
}

.row.g-4 > [class*="col-"] {
    padding: 1rem;
}

.col-12 {
    width: 100%;
}

.col-6 {
    width: 50%;
}

.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-block {
    display: block;
}

.d-none {
    display: none;
}

.vstack {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-column {
    flex-direction: column;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-center {
    align-items: center;
}

.align-items-end {
    align-items: flex-end;
}

.align-items-stretch {
    align-items: stretch;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

.gap-4 {
    gap: 1.5rem;
}

.h-100 {
    height: 100%;
}

.p-3 {
    padding: 1rem;
}

.p-4 {
    padding: 1.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.my-4 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.ms-xl-auto {
    margin-left: 0;
}

.small {
    font-size: 0.875rem;
}

.lead {
    font-size: 1.08rem;
    line-height: 1.65;
}

.display-6 {
    font-size: clamp(2rem, 1.7rem + 1vw, 2.65rem);
}

.h2 {
    font-size: clamp(1.75rem, 1.55rem + 0.75vw, 2.15rem);
}

.h3 {
    font-size: 1.45rem;
}

.h5,
h5 {
    font-size: 1.08rem;
}

.fs-2 {
    font-size: 1.75rem;
}

.fw-semibold {
    font-weight: 600;
}

.text-uppercase {
    text-transform: uppercase;
}

.text-secondary,
.text-muted {
    color: #5d7286;
}

.text-dark {
    color: #163047;
}

.text-info-emphasis {
    color: #0f6c8d;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: right;
}

.border {
    border: 1px solid rgba(14, 42, 68, 0.12);
}

.rounded {
    border-radius: 0.75rem;
}

.rounded-4 {
    border-radius: 1.25rem;
}

.bg-white {
    background: #fff;
}

.bg-primary {
    background: #0f6c8d;
    color: #fff;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.text-bg-light {
    background: rgba(255, 255, 255, 0.88);
    color: #163047;
}

.card {
    display: flex;
    flex-direction: column;
}

.card-body {
    padding: 1rem;
}

.alert {
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid transparent;
}

.alert strong {
    font-weight: 700;
}

.alert-info {
    background: rgba(15, 108, 141, 0.1);
    border-color: rgba(15, 108, 141, 0.18);
    color: #0a4f67;
}

.alert-success {
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.22);
    color: #14603c;
}

.alert-warning {
    background: rgba(199, 125, 18, 0.12);
    border-color: rgba(199, 125, 18, 0.24);
    color: #8e590f;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.2);
    color: #992434;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #163047;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled,
.form-control:disabled,
.form-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #0f6c8d 0%, #3c9dbd 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 108, 141, 0.18);
}

.btn-outline-primary {
    border-color: rgba(15, 108, 141, 0.28);
    color: #0f6c8d;
    background: rgba(15, 108, 141, 0.06);
}

.btn-outline-secondary {
    border-color: rgba(22, 48, 71, 0.18);
    color: #465b6d;
    background: rgba(255, 255, 255, 0.6);
}

.btn-outline-success {
    border-color: rgba(25, 135, 84, 0.28);
    color: #198754;
    background: rgba(25, 135, 84, 0.06);
}

.btn-outline-danger {
    border-color: rgba(220, 53, 69, 0.28);
    color: #dc3545;
    background: rgba(220, 53, 69, 0.06);
}

.btn-light {
    border-color: rgba(22, 48, 71, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: #163047;
}

.btn-sm {
    min-height: 2.2rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
}

.btn-lg {
    min-height: 3rem;
    padding-inline: 1.3rem;
    font-size: 1rem;
}

.form-label {
    display: inline-block;
    margin-bottom: 0.45rem;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.95rem;
    border: 1px solid rgba(14, 42, 68, 0.18);
    background: rgba(255, 255, 255, 0.92);
    color: #163047;
}

.form-control-lg {
    min-height: 3.15rem;
    font-size: 1.05rem;
}

.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: 0;
    border-color: rgba(15, 108, 141, 0.48);
    box-shadow: 0 0 0 3px rgba(15, 108, 141, 0.12);
}

.form-text {
    margin-top: 0.4rem;
    color: #5d7286;
    font-size: 0.88rem;
}

.is-invalid {
    border-color: rgba(220, 53, 69, 0.55);
}

.invalid-feedback {
    display: block;
    margin-top: 0.4rem;
    color: #992434;
    font-size: 0.88rem;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.9rem 0.75rem;
    border-top: 1px solid rgba(14, 42, 68, 0.1);
}

.table thead th {
    border-top: 0;
    border-bottom: 1px solid rgba(14, 42, 68, 0.12);
    color: #5d7286;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
}

.align-middle td,
.align-middle th {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: rgba(15, 108, 141, 0.04);
}

.fa-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1em;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.fa-solid::before {
    display: inline-block;
}

.fa-chart-line::before,
.fa-arrow-trend-up::before {
    content: "↗";
}

.fa-arrow-trend-down::before {
    content: "↘";
}

.fa-door-open::before {
    content: "⇢";
}

.fa-circle-check::before {
    content: "✓";
}

.fa-circle-pause::before {
    content: "⏸";
}

.fa-dumbbell::before {
    content: "▤";
}

.fa-users::before {
    content: "◎";
}

.admin-chart-shell {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.admin-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
    color: #5d7286;
    font-size: 0.9rem;
}

.admin-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-chart-legend-swatch {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 999px;
}

.admin-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.admin-chart-empty {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    border: 1px dashed rgba(14, 42, 68, 0.18);
    color: #5d7286;
    background: rgba(255, 255, 255, 0.58);
}

.admin-toast-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}

.admin-toast {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 18px 36px rgba(22, 48, 71, 0.18);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.admin-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-toast.is-success {
    background: rgba(20, 96, 60, 0.96);
}

.admin-toast.is-error {
    background: rgba(153, 36, 52, 0.96);
}

.admin-toast.is-info {
    background: rgba(15, 108, 141, 0.96);
}

@media (min-width: 576px) {
    .col-sm-6 {
        width: 50%;
    }

    .flex-sm-row {
        flex-direction: row;
    }

    .align-items-sm-center {
        align-items: center;
    }
}

@media (min-width: 768px) {
    .col-md-3 {
        width: 25%;
    }

    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-6 {
        width: 50%;
    }

    .col-md-auto {
        width: auto;
    }

    .gap-md-2 {
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .col-lg-10 {
        width: 83.333333%;
    }

    .p-lg-5 {
        padding: 3rem;
    }

    .gap-lg-3 {
        gap: 1rem;
    }

    .flex-lg-row {
        flex-direction: row;
    }

    .align-items-lg-center {
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .col-xl {
        flex: 1 0 0;
        width: auto;
    }

    .col-xl-2 {
        width: 16.666667%;
    }

    .col-xl-3 {
        width: 25%;
    }

    .col-xl-4 {
        width: 33.333333%;
    }

    .col-xl-5 {
        width: 41.666667%;
    }

    .col-xl-6 {
        width: 50%;
    }

    .col-xl-8 {
        width: 66.666667%;
    }

    .ms-xl-auto {
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    .admin-toast-stack {
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}