/* --- Blazored.Toast bundle: .dotnet/.nuget/packages/blazored.toast/4.2.1/staticwebassets/Blazored.Toast.bundle.scp.css --- */
/* _content/Blazored.Toast/BlazoredToast.razor.rz.scp.css */
.blazored-toast[b-jnm4noxjw5] {
    display: flex;
    position: relative;
    flex-direction: row;
    animation: fadein-b-jnm4noxjw5 1.5s;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    color: #1D1D1B;
    width: 20rem;
    border-radius: .25rem;
    box-shadow: rgba(0,0,0,0.30) 0px 10px 30px 2px;
    background-color: #fff;
    border-top: 6px solid #fff;
}

.blazored-toast-component[b-jnm4noxjw5] {
    display: initial;
    padding: 0 0 0 0;
    border-top: none;
}

.blazored-toast-info[b-jnm4noxjw5] {
    border-top: 6px solid #2563eb;
}

.blazored-toast-info .blazored-toast-icon[b-jnm4noxjw5] {
    color: #2563eb;
}

.blazored-toast-success[b-jnm4noxjw5] {
    border-top: 6px solid #16a34a;
}

.blazored-toast-success .blazored-toast-icon[b-jnm4noxjw5] {
    color: #16a34a;
}

.blazored-toast-warning[b-jnm4noxjw5] {
    border-top: 6px solid #eab308;
}

.blazored-toast-warning .blazored-toast-icon[b-jnm4noxjw5] {
    color: #eab308;
}

.blazored-toast-error[b-jnm4noxjw5] {
    border-top: 6px solid #dc2626;
}

.blazored-toast-error .blazored-toast-icon[b-jnm4noxjw5] {
    color: #dc2626;
}

.blazored-toast-icon[b-jnm4noxjw5] {
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 0 1rem 0 0;
    font-size: 1.5rem;
}

.blazored-toast .blazored-toast-message[b-jnm4noxjw5] {
    flex-grow: 1;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 0.875rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.blazored-toast .blazored-toast-close[b-jnm4noxjw5] {
    display: flex;
    flex-direction: column;
    justify-content: start;
    padding: 0 0 0 1rem;
    background-color: transparent;
    border: 0;
    -webkit-appearance: none;
    color: #94a3b8;
    font-size: 0.9rem;
}

.blazored-toast .blazored-toast-close:hover[b-jnm4noxjw5] {
    color: inherit;
}

.blazored-toast .blazored-toast-progressbar[b-jnm4noxjw5] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-bottom-left-radius: .375rem;
    border-bottom-right-radius: .375rem;
}

.blazored-toast .blazored-toast-progressbar > span[b-jnm4noxjw5] {
    position: absolute;
    filter: brightness(75%);
    height: 6px;
    border-bottom-left-radius: .375rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.1) 0 0);
    transition: all .1s linear;
}

.blazored-toast-action[b-jnm4noxjw5] {
    cursor: pointer;
}

@keyframes fadein-b-jnm4noxjw5 {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* _content/Blazored.Toast/BlazoredToasts.razor.rz.scp.css */
.blazored-toast-container[b-y65zu6vhcs] {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 999;
}

.position-topleft[b-y65zu6vhcs] {
    top: 2rem;
    left: 2rem;
}

.position-topright[b-y65zu6vhcs] {
    top: 2rem;
    right: 2rem;
}

.position-topcenter[b-y65zu6vhcs] {
    top: 2rem;
    left: 50%;
    transform: translate(-50%, 0%);
}

.position-bottomleft[b-y65zu6vhcs] {
    bottom: 2rem;
    left: 2rem;
}

.position-bottomright[b-y65zu6vhcs] {
    bottom: 2rem;
    right: 2rem;
}

.position-bottomcenter[b-y65zu6vhcs] {
    bottom: 2rem;
    left: 50%;
    transform: translate(-50%, 0%);
}

.blazored-toast[b-y65zu6vhcs] {
    width: 30rem;
    border-radius: .25rem;
}

/* --- Bootstrap compatibility: SandHub.Admin/wwwroot/bootstrap-compat.css --- */
:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-white: #ffffff;
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
    --bs-border-color: #dee2e6;
    --bs-border-color-light: #f1f3f5;
    --bs-border-radius: 0.375rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 1rem;
    --bs-border-radius-pill: 50rem;
    --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --bs-focus-ring-color: rgba(25, 135, 84, 0.2);
    --bs-link-color: #0d6efd;
    --bs-link-hover-color: #0a58ca;
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    --bs-font-sans-serif: "Inter", "Segoe UI", sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
}

button,
input,
optgroup,
select,
textarea {
    margin: 0;
    font: inherit;
    color: inherit;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
    cursor: pointer;
}

a {
    color: var(--bs-link-color);
    text-decoration: underline;
}

a:hover {
    color: var(--bs-link-hover-color);
}

img,
svg {
    vertical-align: middle;
}

[hidden] {
    display: none !important;
}

.container,
.container-fluid {
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.g-2 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
}

.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.col {
    flex: 1 0 0%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-sm-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .col-md-2 {
        flex: 0 0 auto;
        width: 16.66666667%;
    }

    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-md-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }

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

    .col-md-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }

    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }

    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-lg-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }

    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 auto;
        width: 58.33333333%;
    }

    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
}

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

    .col-xl-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-xl-5 {
        flex: 0 0 auto;
        width: 41.66666667%;
    }

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

    .col-xl-9 {
        flex: 0 0 auto;
        width: 75%;
    }
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-inline {
    display: inline !important;
}

.d-flex {
    display: flex !important;
}

.d-grid {
    display: grid !important;
}

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

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

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

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

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

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

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

@media (min-width: 992px) {
    .justify-content-lg-end {
        justify-content: flex-end !important;
    }
}

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

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

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

.gap-1 {
    gap: 0.25rem !important;
}

.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.top-50 {
    top: 50% !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.end-0 {
    right: 0 !important;
}

.translate-middle-y {
    transform: translateY(-50%) !important;
}

.w-100 {
    width: 100% !important;
}

.h-100 {
    height: 100% !important;
}

.m-0 {
    margin: 0 !important;
}

.m-auto {
    margin: auto !important;
}

.mx-1 {
    margin-right: 0.25rem !important;
    margin-left: 0.25rem !important;
}

.mx-auto {
    margin-right: auto !important;
    margin-left: auto !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

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

.mt-3 {
    margin-top: 1rem !important;
}

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

.mt-auto {
    margin-top: auto !important;
}

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

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

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

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

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

.mb-5 {
    margin-bottom: 3rem !important;
}

@media (min-width: 992px) {
    .mb-lg-0 {
        margin-bottom: 0 !important;
    }
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.me-auto {
    margin-right: auto !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.p-0 {
    padding: 0 !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

@media (min-width: 1200px) {
    .p-xl-4 {
        padding: 1.5rem !important;
    }
}

.px-0 {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.px-3 {
    padding-right: 1rem !important;
    padding-left: 1rem !important;
}

.px-4 {
    padding-right: 1.5rem !important;
    padding-left: 1.5rem !important;
}

.px-5 {
    padding-right: 3rem !important;
    padding-left: 3rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

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

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.text-start {
    text-align: left !important;
}

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

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

.text-break {
    word-wrap: break-word !important;
    word-break: break-word !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

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

.small,
small {
    font-size: 0.875em !important;
}

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

.fw-bold {
    font-weight: 700 !important;
}

.text-muted {
    color: #6c757d !important;
}

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

.text-secondary {
    color: var(--bs-secondary) !important;
}

.text-success {
    color: var(--bs-success) !important;
}

.text-warning {
    color: #997404 !important;
}

.text-danger {
    color: var(--bs-danger) !important;
}

.text-dark {
    color: var(--bs-dark) !important;
}

.text-white {
    color: var(--bs-white) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

.bg-transparent {
    background-color: transparent !important;
}

.bg-white {
    background-color: var(--bs-white) !important;
}

.bg-light {
    background-color: var(--bs-light) !important;
}

.bg-dark {
    background-color: rgba(33, 37, 41, var(--bs-bg-opacity, 1)) !important;
}

.bg-primary {
    background-color: rgba(13, 110, 253, var(--bs-bg-opacity, 1)) !important;
}

.bg-secondary {
    background-color: rgba(108, 117, 125, var(--bs-bg-opacity, 1)) !important;
}

.bg-success {
    background-color: rgba(25, 135, 84, var(--bs-bg-opacity, 1)) !important;
}

.bg-warning {
    background-color: rgba(255, 193, 7, var(--bs-bg-opacity, 1)) !important;
}

.bg-danger {
    background-color: rgba(220, 53, 69, var(--bs-bg-opacity, 1)) !important;
}

.bg-opacity-50 {
    --bs-bg-opacity: 0.5;
}

.bg-success-subtle {
    background-color: #d1e7dd !important;
}

.bg-warning-subtle {
    background-color: #fff3cd !important;
}

.bg-primary-subtle {
    background-color: #cfe2ff !important;
}

.bg-info-subtle {
    background-color: #cff4fc !important;
}

.bg-danger-subtle {
    background-color: #f8d7da !important;
}

.border {
    border: 1px solid var(--bs-border-color) !important;
}

.border-0 {
    border: 0 !important;
}

.border-top {
    border-top: 1px solid var(--bs-border-color) !important;
}

.border-bottom {
    border-bottom: 1px solid var(--bs-border-color) !important;
}

.border-light {
    border-color: var(--bs-border-color-light) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.rounded {
    border-radius: var(--bs-border-radius) !important;
}

.rounded-top {
    border-top-left-radius: var(--bs-border-radius) !important;
    border-top-right-radius: var(--bs-border-radius) !important;
}

.rounded-4 {
    border-radius: var(--bs-border-radius-xl) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.shadow-none {
    box-shadow: none !important;
}

.shadow-xs {
    box-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-sm {
    box-shadow: var(--bs-box-shadow-sm) !important;
}

.shadow {
    box-shadow: var(--bs-box-shadow) !important;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--bs-border-radius-pill);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: var(--bs-border-radius-lg);
}

.card-header {
    padding: 1rem 1rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.btn {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-color: #212529;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-hover-color: #212529;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--bs-btn-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-btn-bg);
    color: var(--bs-btn-color);
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.btn:hover {
    background-color: var(--bs-btn-hover-bg);
    border-color: var(--bs-btn-hover-border-color);
    color: var(--bs-btn-hover-color);
    text-decoration: none;
}

.btn:focus-visible,
.btn-close:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.navbar-toggler:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.22rem var(--bs-focus-ring-color);
}

.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    pointer-events: none;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-hover-color: #fff;
}

.btn-secondary {
    --bs-btn-bg: var(--bs-secondary);
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #5c636a;
    --bs-btn-hover-border-color: #565e64;
    --bs-btn-hover-color: #fff;
}

.btn-success {
    --bs-btn-bg: var(--bs-success);
    --bs-btn-border-color: var(--bs-success);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #157347;
    --bs-btn-hover-border-color: #146c43;
    --bs-btn-hover-color: #fff;
}

.btn-danger {
    --bs-btn-bg: var(--bs-danger);
    --bs-btn-border-color: var(--bs-danger);
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #bb2d3b;
    --bs-btn-hover-border-color: #b02a37;
    --bs-btn-hover-color: #fff;
}

.btn-warning {
    --bs-btn-bg: var(--bs-warning);
    --bs-btn-border-color: var(--bs-warning);
    --bs-btn-color: #000;
    --bs-btn-hover-bg: #ffca2c;
    --bs-btn-hover-border-color: #ffc720;
    --bs-btn-hover-color: #000;
}

.btn-light {
    --bs-btn-bg: var(--bs-light);
    --bs-btn-border-color: var(--bs-light);
    --bs-btn-color: #212529;
    --bs-btn-hover-bg: #d3d4d5;
    --bs-btn-hover-border-color: #c6c7c8;
    --bs-btn-hover-color: #212529;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger {
    --bs-btn-bg: transparent;
}

.btn-outline-primary {
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
}

.btn-outline-secondary {
    --bs-btn-border-color: var(--bs-secondary);
    --bs-btn-color: var(--bs-secondary);
    --bs-btn-hover-bg: var(--bs-secondary);
    --bs-btn-hover-border-color: var(--bs-secondary);
    --bs-btn-hover-color: #fff;
}

.btn-outline-success {
    --bs-btn-border-color: var(--bs-success);
    --bs-btn-color: var(--bs-success);
    --bs-btn-hover-bg: var(--bs-success);
    --bs-btn-hover-border-color: var(--bs-success);
    --bs-btn-hover-color: #fff;
}

.btn-outline-danger {
    --bs-btn-border-color: var(--bs-danger);
    --bs-btn-color: var(--bs-danger);
    --bs-btn-hover-bg: var(--bs-danger);
    --bs-btn-hover-border-color: var(--bs-danger);
    --bs-btn-hover-color: #fff;
}

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

.form-text {
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #6c757d;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    appearance: none;
    border-radius: var(--bs-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 1;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #e9ecef;
    opacity: 1;
}

.form-control-sm {
    min-height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

.form-select {
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236c757d' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    min-height: calc(3.5rem + 2px);
    padding: 1.625rem 0.75rem 0.625rem;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    height: 100%;
    padding: 1rem 0.75rem;
    overflow: hidden;
    color: #6c757d;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform 0.12s ease-in-out, opacity 0.12s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
    opacity: 0.85;
    transform: scale(0.85) translateY(-0.55rem) translateX(0.15rem);
}

.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.form-check .form-check-input {
    float: left;
    margin-left: -1.5rem;
}

.form-check-input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.25rem;
    vertical-align: top;
    appearance: none;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    print-color-adjust: exact;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input:checked {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
}

.form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m4 10 4 4 8-8'/%3e%3c/svg%3e");
}

.form-check-label {
    color: #212529;
}

.form-switch {
    padding-left: 2.5rem;
}

.form-switch .form-check-input {
    width: 2rem;
    margin-left: -2.5rem;
    border-radius: 2rem;
    background-position: left center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,.25)'/%3e%3c/svg%3e");
    transition: background-position 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: var(--bs-border-radius);
}

.input-group > :not(:first-child) {
    margin-left: calc(-1 * 1px);
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group > :not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    vertical-align: top;
    border-color: var(--bs-border-color);
}

.table > :not(caption) > * > * {
    padding: 0.5rem;
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px transparent;
}

.table-sm > :not(caption) > * > * {
    padding: 0.25rem;
}

.table-bordered > :not(caption) > * {
    border-width: 1px 0;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.02);
}

.table-hover > tbody > tr:hover > * {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.04);
}

.table-warning > :not(caption) > * > * {
    box-shadow: inset 0 0 0 9999px #fff3cd;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--bs-link-color);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--bs-link-hover-color);
}

.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-top-left-radius: var(--bs-border-radius);
    border-top-right-radius: var(--bs-border-radius);
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.nav-item {
    list-style: none;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: inline-block;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    margin-right: 1rem;
    font-size: 1.25rem;
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-nav {
    --bs-nav-link-padding-x: 0;
    --bs-nav-link-padding-y: 0.5rem;
    display: flex;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
}

.navbar-dark,
.navbar-dark .navbar-brand,
.navbar-dark .nav-link,
.navbar-dark .navbar-toggler {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus,
.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus {
    color: #fff;
}

.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--bs-border-radius);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-collapse.collapse:not(.show) {
    display: none;
}

.navbar-expand-lg .navbar-toggler {
    display: inline-flex;
}

@media (min-width: 992px) {
    .navbar-expand-lg {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .navbar-expand-lg .navbar-nav {
        flex-direction: row;
    }

    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }

    .navbar-expand-lg .navbar-toggler {
        display: none;
    }

    .navbar-expand-lg .nav-link {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}

.dropdown,
.dropend,
.dropstart,
.dropup {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid currentColor;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu-end {
    right: 0;
    left: auto;
}

@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        position: static;
        width: 100%;
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #1e2125;
    background-color: #f8f9fa;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.2s ease;
}

.fade {
    transition: opacity 0.15s linear;
}

.fade:not(.show) {
    opacity: 0;
}

.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: var(--bs-border-radius);
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 1.25rem 1rem;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23000' d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293A1 1 0 0 1 .293 14.293L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 0.75;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1055;
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    background: transparent;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
}

.modal.fade .modal-dialog {
    transition: transform 0.2s ease-out;
    transform: translateY(-24px);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.175);
    border-radius: var(--bs-border-radius-lg);
    outline: 0;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    border-top-left-radius: calc(var(--bs-border-radius-lg) - 1px);
    border-top-right-radius: calc(var(--bs-border-radius-lg) - 1px);
}

.modal-title {
    margin: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem;
    gap: 0.5rem;
    border-top: 1px solid var(--bs-border-color);
    border-bottom-right-radius: calc(var(--bs-border-radius-lg) - 1px);
    border-bottom-left-radius: calc(var(--bs-border-radius-lg) - 1px);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }

    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }
}

@media (max-width: 575.98px) {
    .modal-fullscreen-sm-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    .modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0;
    }
}

.toast {
    width: max-content;
    max-width: 100%;
    font-size: 0.875rem;
    color: #fff;
    pointer-events: auto;
    background-color: rgba(0, 0, 0, 0.85);
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--bs-box-shadow);
    border-radius: var(--bs-border-radius);
    opacity: 0;
    display: none;
}

.toast.show {
    display: block;
    opacity: 1;
}

.toast-body {
    padding: 0.75rem;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.tooltip {
    position: absolute;
    z-index: 1080;
    display: block;
    margin: 0;
    font-family: var(--bs-font-sans-serif);
    font-style: normal;
    font-weight: 400;
    text-align: left;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    line-break: auto;
    line-height: 1.5;
    white-space: normal;
    word-break: normal;
    opacity: 0;
    pointer-events: none;
}

.tooltip.show {
    opacity: 0.9;
}

.tooltip-inner {
    max-width: 220px;
    padding: 0.35rem 0.65rem;
    color: #fff;
    text-align: center;
    background-color: #000;
    border-radius: var(--bs-border-radius);
}

.tooltip-arrow {
    position: absolute;
    display: block;
    width: 0.8rem;
    height: 0.4rem;
}

.bs-tooltip-top .tooltip-arrow {
    bottom: calc(-1 * 0.4rem);
    left: 50%;
    transform: translateX(-50%);
}

.bs-tooltip-top .tooltip-arrow::before {
    content: "";
    position: absolute;
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem solid #000;
}

/* --- App styles: SandHub.Admin/wwwroot/app.css --- */
html, body {
    font-family: "Inter", "Segoe UI", sans-serif;
    width: 100%;
    line-height: 1.6;
    font-size: 14px;
    background-color: #f8f9fa;
}

body,
button,
input,
select,
textarea,
optgroup,
table,
th,
td,
.btn,
.form-control,
.form-select,
.form-check-label,
.dropdown-menu,
.modal,
.alert,
.card {
    font-family: "Inter", "Segoe UI", sans-serif;
}

h1:focus {
    outline: none;
}

.content {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    padding-bottom: 4px;
}

th, td {
    padding: 4px 10px 4px 10px;
    vertical-align: middle;
    border: 1px solid lightgray;
    white-space: nowrap;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Modern Card and UI Enhancements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #157347;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(25, 135, 84, 0.2);
}

.table {
    border-radius: 0;
    overflow: hidden;
}

/* Keep all table surfaces square-edged system-wide */
table,
.table,
.table-responsive,
.table-responsive.rounded,
[class*="table-container"],
[class*="table-wrapper"] {
    border-radius: 0 !important;
}

.table th,
.table td,
.table thead,
.table tbody,
.table tr {
    border-radius: 0 !important;
}

.table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.05em;
    background-color: #f8f9fa;
    color: #334155;
    border-bottom: 2px solid #e2e8f0;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-shell-navbar {
    --app-navbar-row-height: 3.0625rem;
    --app-navbar-item-height: 2.5rem;
    --app-navbar-block-padding: 7px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.app-shell-navbar-section {
    display: flex;
    align-items: center;
    min-height: var(--app-navbar-item-height);
}

.app-shell-navbar .navbar-brand.app-shell-navbar-section {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2;
}

.app-shell-navbar .navbar-collapse.app-shell-navbar-section {
    align-items: center;
}

.app-shell-navbar .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--app-navbar-item-height);
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
    color: #fff !important;
    background-image: linear-gradient(#198754, #198754);
    background-repeat: no-repeat;
    background-position: center calc(100% - 5px);
    background-size: calc(100% - 16px) 2px;
}

.admin-account-menu .admin-account-toggle {
    display: flex;
    align-items: center;
    min-height: var(--app-navbar-item-height);
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.admin-account-menu .admin-account-toggle::after {
    display: none;
}

.admin-account-navbar-label {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.admin-account-menu .admin-account-toggle i {
    font-size: 14px;
}

.admin-account-menu .admin-account-toggle:hover,
.admin-account-menu .admin-account-toggle:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

@media (min-width: 992px) {
    .app-shell-navbar {
        --app-navbar-item-height: calc(var(--app-navbar-row-height) - (var(--app-navbar-block-padding) * 2));
        padding-top: 0;
        padding-bottom: 0;
    }

    .app-shell-navbar > .container-fluid {
        height: var(--app-navbar-row-height);
        min-height: var(--app-navbar-row-height);
        padding: var(--app-navbar-block-padding) 0;
        align-items: stretch;
    }

    .app-shell-navbar .app-shell-navbar-section {
        height: auto;
        min-height: 0;
        align-self: stretch;
    }

    .app-shell-navbar .navbar-collapse.app-shell-navbar-section,
    .app-shell-navbar .navbar-nav,
    .app-shell-navbar .navbar-nav .nav-item {
        display: flex;
        align-items: stretch;
    }

    .app-shell-navbar .navbar-nav {
        height: 100%;
        margin-top: 0;
        margin-bottom: 0;
    }

    .app-shell-navbar .navbar-brand.app-shell-navbar-section,
    .app-shell-navbar .navbar-nav .nav-link,
    .app-shell-navbar .admin-account-menu .admin-account-toggle {
        height: 100%;
        min-height: 0;
        display: flex;
        align-items: center;
    }
}

.admin-account-dropdown {
    min-width: 18rem;
    padding: 0.4rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.admin-account-summary {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.85rem 1rem;
    list-style: none;
}

.admin-account-summary-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}

.admin-account-summary-icon i {
    font-size: 14px;
}

.admin-account-summary-text {
    min-width: 0;
}

.admin-account-fullname {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: #111827;
}

.admin-account-nickname {
    margin-top: 0.15rem;
    font-size: 14px;
    line-height: 1.2;
    color: #6b7280;
}

.admin-account-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    font-weight: 500;
}

.admin-account-item i {
    width: 1rem;
    color: #6b7280;
    text-align: center;
}

.admin-account-item:disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.admin-account-item-danger,
.admin-account-item-danger:hover,
.admin-account-item-danger:focus,
.admin-account-item-danger i {
    color: var(--bs-danger) !important;
}

.admin-account-dropdown .dropdown-divider {
    margin: 0.35rem 0;
}

.admin-page-content {
    animation: adminPageFadeIn 0.36s ease-out backwards;
}

@keyframes adminPageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-page-content {
        animation: none;
    }
}

.admin-logout-modal .modal-dialog {
    max-width: 27rem;
}

.admin-logout-content {
    overflow: hidden;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 58px -34px rgba(15, 23, 42, 0.55);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.admin-logout-header {
    align-items: center;
    border-bottom: 1px solid rgba(180, 35, 24, 0.12);
    background: rgba(180, 35, 24, 0.06);
    padding: 1rem;
}

.admin-logout-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.admin-logout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 10px;
}

.admin-logout-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: rgba(180, 35, 24, 0.1);
    color: #b42318;
}

.admin-logout-title {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    line-height: 1.15;
}

.admin-logout-close {
    box-shadow: none !important;
}

.admin-logout-body {
    padding: 1rem;
}

.admin-logout-copy {
    margin: 0;
    color: #475569;
    line-height: 1.45;
}

.admin-logout-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    padding: 0.9rem 1rem 1rem;
}

.admin-logout-cancel,
.admin-logout-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    border-radius: 10px;
    padding: 0.45rem 0.95rem;
    font-weight: 800;
    box-shadow: none !important;
}

.admin-logout-cancel {
    border: 1px solid rgba(100, 116, 139, 0.28);
    background: #fff;
    color: #475569;
}

.admin-logout-cancel:hover,
.admin-logout-cancel:focus {
    border-color: rgba(100, 116, 139, 0.42);
    background: #f8fafc;
    color: #334155;
}

.admin-logout-confirm {
    border: 1px solid #b42318;
    background: #b42318;
    color: #fff;
    text-decoration: none;
}

.admin-logout-confirm:hover,
.admin-logout-confirm:focus {
    border-color: #991b1b;
    background: #991b1b;
    color: #fff;
}

.admin-page {
    --admin-green: #198754;
    --admin-green-mid: #1f9f68;
    --admin-green-dark: #157347;
    --admin-green-bright: #2fbf8f;
    --admin-surface:
        radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.2) 0 12%, transparent 13%),
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16) 0 11%, transparent 12%),
        linear-gradient(135deg, var(--admin-green) 0%, var(--admin-green-dark) 44%, var(--admin-green-bright) 100%);
    --admin-shadow: rgba(25, 135, 84, 0.28);
    --admin-border: rgba(21, 115, 71, 0.26);
    --admin-soft: rgba(25, 135, 84, 0.08);
    --admin-text: #0f172a;
    --admin-muted: #64748b;
}

.admin-wallet {
    position: relative;
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) auto;
    gap: 1rem;
    align-items: center;
    overflow: hidden;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background: var(--admin-surface);
    color: #fff;
    padding: 14px 16px;
    margin-bottom: 1rem;
    box-shadow: 0 22px 54px -28px var(--admin-shadow);
}

.admin-wallet::before,
.admin-wallet::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
}

.admin-wallet::before {
    width: 10.5rem;
    height: 10.5rem;
    top: -5.3rem;
    right: 16rem;
}

.admin-wallet::after {
    width: 12rem;
    height: 12rem;
    right: -4rem;
    bottom: -6.4rem;
}

.admin-title {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: none;
}

.admin-wallet-actions {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 0;
}

.admin-btn-primary,
.admin-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    box-shadow: none !important;
}

.admin-btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    background: #fff !important;
    color: #157347 !important;
    box-shadow: 0 16px 28px -22px rgba(15, 23, 42, 0.58) !important;
}

.admin-btn-primary:hover,
.admin-btn-primary:focus {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f5132 !important;
}

.admin-btn-ghost {
    border: 1px solid rgba(21, 115, 71, 0.25) !important;
    background: #fff !important;
    color: #157347 !important;
}

.admin-btn-ghost:hover,
.admin-btn-ghost:focus {
    border-color: rgba(21, 115, 71, 0.34) !important;
    background: #f8fafc !important;
    color: #157347 !important;
}

.admin-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    border-radius: 10px;
    padding: 0.45rem 0.95rem;
    font-size: 14px !important;
    font-weight: 800;
    box-shadow: none !important;
}

.admin-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, rgba(25, 135, 84, 0.32), rgba(47, 191, 143, 0.12)) border-box;
    box-shadow: 0 20px 46px -36px var(--admin-shadow);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.admin-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 0.28rem;
    background: linear-gradient(90deg, var(--admin-green), var(--admin-green-bright));
    pointer-events: none;
}

.admin-panel-body {
    position: relative;
    padding: 1.1rem;
}

.admin-table-section {
    margin-top: 1rem;
}

.admin-table-section .admin-table-wrap {
    box-shadow: 0 20px 46px -38px rgba(25, 135, 84, 0.28);
}

.admin-filter-panel {
    margin-bottom: 1rem;
}

.admin-filter-panel .admin-panel-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.admin-filter-form {
    margin: 0;
}

.admin-filter-form .form-label {
    margin-bottom: 0.32rem;
    color: var(--admin-text);
    font-size: 14px !important;
    font-weight: 800;
}

.admin-filter-form .form-control,
.admin-filter-form .form-select {
    min-height: 2.45rem;
    border: 1px solid rgba(100, 116, 139, 0.24);
    border-radius: 10px;
    color: var(--admin-text);
    font-size: 14px !important;
    box-shadow: none;
}

.admin-filter-form .form-control:focus,
.admin-filter-form .form-select:focus {
    border-color: rgba(21, 115, 71, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.12);
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(21, 115, 71, 0.34);
    border-radius: 18px;
    background: #fff;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.admin-table {
    width: 100%;
    margin-bottom: 0 !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table thead th {
    border: 0;
    border-bottom: 1px solid rgba(21, 115, 71, 0.28);
    background: #f8fafc;
    color: var(--admin-text);
    padding: 0.7rem 0.75rem;
    font-size: 13px !important;
    font-weight: 800;
    line-height: 1.15;
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table tbody td {
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--admin-text);
    padding: 0.72rem 0.75rem;
    font-size: 14px !important;
    line-height: 1.25;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.admin-table tbody tr:first-child td {
    border-top: 0;
}

.admin-table tbody tr:hover td {
    background: rgba(25, 135, 84, 0.04);
}

.admin-table th:first-child,
.admin-table td:first-child {
    padding-left: 1rem;
}

.admin-table th:last-child,
.admin-table td:last-child {
    padding-right: 1rem;
}

.admin-table .admin-number {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.admin-table .admin-actions-cell {
    width: 9.5rem;
    white-space: nowrap;
}

.admin-table .admin-status-cell {
    width: 7rem;
    white-space: nowrap;
}

.admin-table .admin-tight-cell {
    width: 7rem;
    white-space: nowrap;
}

.admin-packages-table {
    min-width: 1040px;
}

.admin-packages-table th {
    text-align: center;
}

.admin-packages-table .admin-packages-name-col {
    width: 15%;
}

.admin-packages-table .admin-packages-description-col {
    width: 24%;
}

.admin-packages-table .admin-packages-quota-col,
.admin-packages-table .admin-packages-daily-quota-col,
.admin-packages-table .admin-packages-penalty-col {
    width: 13%;
}

.admin-packages-table .admin-packages-cutoff-col {
    width: 10%;
}

.admin-packages-table .admin-packages-penalty-sharing-col {
    width: 12%;
}

.admin-packages-table .admin-package-penalty-sharing-cell {
    min-width: 9.75rem;
    white-space: nowrap;
}

.admin-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.admin-row-actions .btn,
.admin-table .btn {
    border-radius: 9px;
    font-size: 13px !important;
    font-weight: 800;
    box-shadow: none !important;
}

.admin-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.45rem;
    border-radius: 999px;
    padding: 0.2rem 0.58rem;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 1;
}

.admin-status.is-active,
.admin-status.is-yes {
    background: #ecfdf5;
    color: #157347 !important;
}

.admin-status.is-inactive,
.admin-status.is-no {
    background: #f1f5f9;
    color: #475569 !important;
}

.admin-empty-cell {
    height: 13rem;
    color: var(--admin-muted) !important;
    font-weight: 700;
    text-align: center;
}

.admin-form-panel {
    max-width: 72rem;
}

.agent-edit-panel {
    width: 100%;
    max-width: none;
}

.agent-edit-page .admin-panel-body {
    padding: 1.25rem;
}

.admin-service-edit-panel {
    width: min(100%, 56rem);
    margin-inline: auto;
}

.admin-form {
    margin: 0;
}

.admin-form .alert {
    border-radius: 14px;
}

.alert.validation-summary-valid {
    display: none;
}

.admin-form .form-label,
.admin-form .form-check-label {
    color: var(--admin-text);
    font-size: 14px !important;
    font-weight: 800;
}

.admin-form .form-control,
.admin-form .form-select {
    min-height: 2.45rem;
    border: 1px solid rgba(100, 116, 139, 0.24);
    border-radius: 10px;
    color: var(--admin-text);
    font-size: 14px !important;
    box-shadow: none;
}

.admin-form textarea.form-control {
    min-height: 6rem;
}

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

.admin-form .form-text {
    color: var(--admin-muted);
    font-size: 13px !important;
}

.admin-form .form-check-input {
    border-color: rgba(21, 115, 71, 0.35);
    box-shadow: none;
}

.admin-form .form-check-input:checked {
    border-color: #198754;
    background-color: #198754;
}

.admin-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(21, 115, 71, 0.22) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 20px 46px -38px var(--admin-shadow);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.admin-card .card-body {
    padding: 1rem;
}

.admin-card .card-footer {
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: #fff !important;
    padding: 0.9rem 1rem 1rem;
}

.admin-section-title {
    margin: 0 0 0.75rem;
    color: var(--admin-muted);
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.admin-service-tile {
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-service-tile:hover {
    border-color: rgba(21, 115, 71, 0.36) !important;
    box-shadow: 0 20px 46px -36px var(--admin-shadow);
    transform: translateY(-2px);
}

.admin-form-actions {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.admin-matrix-panel {
    overflow: hidden;
    border: 1px solid rgba(21, 115, 71, 0.34);
    border-radius: 18px;
    background: #fff;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.admin-matrix-header {
    border-bottom: 1px solid rgba(21, 115, 71, 0.24);
    background: #f8fafc;
    color: var(--admin-text);
    padding: 0.75rem 1rem;
    font-size: 14px !important;
    font-weight: 800;
}

.admin-matrix-panel .admin-table-wrap {
    border: 0;
    border-radius: 0;
}

.admin-matrix-panel .form-control {
    min-width: 5.75rem;
}

@media (max-width: 991.98px) {
    .admin-wallet {
        grid-template-columns: 1fr;
    }

    .admin-wallet-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .admin-wallet {
        border-radius: 18px;
        padding: 13px;
    }

    .admin-wallet-actions,
    .admin-form-actions {
        flex-direction: column;
        align-items: stretch !important;
    }

    .admin-wallet-actions .btn,
    .admin-form-actions .btn,
    .admin-form-actions button {
        width: 100%;
    }

    .admin-panel-body {
        padding: 0.8rem;
    }

    .admin-table {
        min-width: 46rem;
    }
}

.nav-tabs .nav-link.active {
    color: #198754 !important;
    font-weight: 600;
}

.transition-all {
    transition: all 0.2s ease-in-out;
}

.hover-shadow-sm:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow-xs {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.border-dashed {
    border-style: dashed !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Responsive baseline */
@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        gap: 0.125rem;
    }

    .admin-account-navbar-label {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}

/* Admin uses one uniform text size across pages and Bootstrap utilities. */
body,
body * {
    font-size: 14px !important;
}

/* --- Wallet styles: SandHub.Admin/wwwroot/wallet-form.css --- */
:root {
    --wallet-surface: linear-gradient(135deg, #198754 0%, #157347 46%, #2fbf8f 100%);
    --wallet-surface-glow: rgba(25, 135, 84, 0.28);
    --wallet-ink-soft: rgba(255, 255, 255, 0.82);
    --wallet-ink-muted: rgba(255, 255, 255, 0.72);
    --wallet-panel: rgba(255, 255, 255, 0.14);
    --wallet-panel-border: rgba(255, 255, 255, 0.2);
}

.wallet-hero {
    width: 100%;
}

.wallet-hero-card {
    position: relative;
    width: 100%;
    overflow: visible;
    border-radius: 24px;
    padding: clamp(1rem, 0.85rem + 0.75vw, 1.45rem);
    color: #fff;
    background: var(--wallet-surface);
    box-shadow: 0 20px 46px -30px var(--wallet-surface-glow);
}

.wallet-hero-card::before,
.wallet-hero-card::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.18) 12%, rgba(255, 255, 255, 0.18) 18%, transparent 18%, transparent 82%, rgba(255, 255, 255, 0.18) 82%, rgba(255, 255, 255, 0.18) 88%, transparent 88%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0 18%, transparent 18% 82%, rgba(255, 255, 255, 0.14) 82% 100%),
        rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.wallet-hero-card::before {
    width: 15rem;
    height: 5.25rem;
    top: -1.4rem;
    right: -2.8rem;
    transform: rotate(-12deg);
}

.wallet-hero-card::after {
    width: 12.5rem;
    height: 4.6rem;
    bottom: -1.8rem;
    left: -2.3rem;
    transform: rotate(10deg);
}

.wallet-hero-balance-block,
.wallet-hero-summary,
.wallet-action-row,
.wallet-selector-copy,
.wallet-selector-form {
    position: relative;
    z-index: 1;
}

.wallet-hero-header {
    position: relative;
    z-index: 8;
    margin-bottom: 1rem;
}

.wallet-hero-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    max-width: 100%;
    flex-wrap: wrap;
    position: relative;
    z-index: 9;
}

.wallet-hero-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
}

.wallet-empty-copy {
    max-width: 34rem;
    color: var(--wallet-ink-soft);
    font-size: 14px;
}

.wallet-selector-copy {
    margin-bottom: 1.1rem;
}

.wallet-selector-grid {
    display: grid;
    grid-template-columns: minmax(18rem, 1.5fr) repeat(2, minmax(10rem, 0.8fr));
    gap: 0.75rem;
    align-items: end;
}

.wallet-selector-field label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.wallet-selector-form .form-control,
.wallet-selector-form .form-select {
    min-height: 3rem;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: none;
}

.wallet-selector-form .form-control:focus,
.wallet-selector-form .form-select:focus {
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

.wallet-agent-switcher {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}

.wallet-agent-switcher-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: none;
}

.wallet-agent-switcher-toggle:hover,
.wallet-agent-switcher-toggle:focus,
.wallet-agent-switcher-toggle:active,
.wallet-agent-switcher-toggle.show {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
    box-shadow: none !important;
}

.wallet-agent-switcher-menu {
    position: absolute;
    min-width: 13rem;
    max-height: min(18rem, 50vh);
    margin-top: 0;
    margin-left: 0.45rem;
    padding: 0.4rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    overflow-y: auto;
    box-shadow: 0 20px 40px -24px rgba(15, 23, 42, 0.45);
    z-index: 2000;
}

.wallet-agent-switcher-menu .dropdown-item {
    border-radius: 0.75rem;
    font-weight: 500;
}

.wallet-agent-switcher-menu .dropdown-item.active,
.wallet-agent-switcher-menu .dropdown-item:active {
    background: #0f766e;
    color: #fff;
}

.wallet-hero-balance-block {
    margin-bottom: 1rem;
}

.wallet-hero-balance-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--wallet-ink-soft);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}

.wallet-hero-balance {
    font-size: 40px;
    font-weight: 800;
    line-height: 0.95;
    overflow-wrap: anywhere;
}

.wallet-hero-balance-negative {
    color: #ffe2e2;
}

.wallet-hero-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.wallet-hero-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--wallet-panel-border);
    border-radius: 14px;
    background: var(--wallet-panel);
    backdrop-filter: blur(14px);
}

.wallet-hero-summary-item span {
    color: var(--wallet-ink-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.wallet-hero-summary-item strong {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.wallet-hero-summary-item-range {
    padding: 0.8rem 0.9rem;
}

.wallet-date-range-form {
    margin-top: 0.15rem;
}

.wallet-date-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.wallet-date-range-field {
    padding: 0;
}

.wallet-date-range-label {
    display: block;
    margin-bottom: 0.32rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.wallet-date-range-input {
    min-height: 2.45rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: none;
}

.wallet-date-range-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.14);
}

.wallet-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.wallet-action {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    min-height: 4.45rem;
    padding: 0.85rem 0.95rem;
    border: 0;
    border-radius: 18px;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.wallet-action:hover,
.wallet-action:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.03);
}

.wallet-action:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.28);
    outline-offset: 2px;
}

.wallet-action-topup {
    color: #fff;
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    box-shadow: 0 16px 28px -24px rgba(34, 197, 94, 0.95);
}

.wallet-action-charge {
    color: #fff;
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    box-shadow: 0 16px 28px -24px rgba(239, 68, 68, 0.95);
}

.wallet-action-collect {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 100%);
    box-shadow: 0 16px 28px -24px rgba(251, 191, 36, 0.95);
}

.wallet-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 14px;
    flex-shrink: 0;
}

.wallet-action-collect .wallet-action-icon {
    background: rgba(255, 255, 255, 0.2);
}

.wallet-action-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wallet-action-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
}

.wallet-action-subtitle {
    margin-top: 0.15rem;
    color: inherit;
    opacity: 0.86;
    font-size: 14px;
    line-height: 1.2;
}

@media (max-width: 991.98px) {
    .wallet-action-row {
        grid-template-columns: 1fr;
    }

    .wallet-selector-grid {
        grid-template-columns: 1fr;
    }

    .wallet-date-range-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .wallet-hero-card {
        border-radius: 20px;
    }

    .wallet-hero-summary {
        grid-template-columns: 1fr;
    }
}
