/*
  UX HUMANA dark neomorphism.
  This layer intentionally sits after Tailwind and page-specific CSS.
*/

:root {
    --color-uxblue: #0e8090;
    --color-uxred: #f15747;
    --color-uxdarkbg: #030303;
    --color-uxdarksidebar: #080a0b;
    --color-uxdarkcard: #111617;
    --color-uxdarkborder: #243033;
    --uh-bg: #030303;
    --uh-bg-soft: #07090a;
    --uh-surface: #101516;
    --uh-surface-high: #151c1e;
    --uh-surface-low: #080b0c;
    --uh-recessed: #060808;
    --uh-border: rgba(120, 151, 158, 0.22);
    --uh-border-strong: rgba(142, 178, 186, 0.36);
    --uh-text: #f5f8f8;
    --uh-muted: #a8b5b8;
    --uh-subtle: #728186;
    --uh-blue: #0e8090;
    --uh-blue-bright: #58d4df;
    --uh-blue-soft: rgba(14, 128, 144, 0.22);
    --uh-red: #f15747;
    --uh-red-soft: rgba(241, 87, 71, 0.22);
    --uh-radius: 12px;
    --uh-shadow-raised: 10px 10px 24px rgba(0, 0, 0, 0.74), -8px -8px 18px rgba(255, 255, 255, 0.035);
    --uh-shadow-soft: 6px 6px 16px rgba(0, 0, 0, 0.62), -5px -5px 14px rgba(255, 255, 255, 0.03);
    --uh-shadow-inset: inset 6px 6px 14px rgba(0, 0, 0, 0.76), inset -5px -5px 12px rgba(255, 255, 255, 0.032);
    --uh-shadow-accent: 0 12px 26px rgba(14, 128, 144, 0.25), 0 0 0 1px rgba(92, 222, 233, 0.22) inset;
    --uh-shadow-danger: 0 12px 26px rgba(241, 87, 71, 0.24), 0 0 0 1px rgba(255, 159, 149, 0.2) inset;
}

html.dark {
    color-scheme: dark;
    background: var(--uh-bg);
}

.dark body.uh-neomorphic {
    background: linear-gradient(135deg, #030303 0%, #07090a 48%, #040505 100%) !important;
    color: var(--uh-text);
}

.dark body.uh-neomorphic::selection {
    background: rgba(14, 128, 144, 0.55);
    color: #ffffff;
}

.dark body.uh-neomorphic :focus-visible {
    outline: 3px solid rgba(241, 87, 71, 0.78);
    outline-offset: 3px;
}

.dark body.uh-neomorphic main {
    background:
        linear-gradient(180deg, rgba(14, 128, 144, 0.055) 0, rgba(3, 3, 3, 0) 18rem),
        var(--uh-bg) !important;
}

.dark body.uh-neomorphic aside,
.dark body.uh-neomorphic header,
.dark body.uh-neomorphic footer {
    border-color: var(--uh-border) !important;
    background: linear-gradient(145deg, #0e1314, #070909) !important;
    box-shadow: var(--uh-shadow-soft);
}

.dark body.uh-neomorphic aside {
    box-shadow: 14px 0 28px rgba(0, 0, 0, 0.42), -1px 0 0 rgba(255, 255, 255, 0.025) inset;
}

.dark body.uh-neomorphic header {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.dark body.uh-neomorphic footer {
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28);
}

.dark body.uh-neomorphic :is(
    .bg-white,
    .dark\:bg-gray-800,
    .dark\:bg-uxdarkcard,
    .dark\:bg-uxdarksidebar
) {
    border-color: var(--uh-border) !important;
    background: linear-gradient(145deg, var(--uh-surface-high), var(--uh-surface)) !important;
}

.dark body.uh-neomorphic :is(
    .shadow,
    .shadow-sm,
    .shadow-lg,
    .shadow-xl,
    .shadow-2xl
) {
    box-shadow: var(--uh-shadow-raised) !important;
}

.dark body.uh-neomorphic :is(section, form, article, div)[class*="rounded"][class*="border"] {
    border-color: var(--uh-border) !important;
}

.dark body.uh-neomorphic :is(section, form, article, div)[class*="rounded"][class*="bg-"] {
    background: linear-gradient(145deg, var(--uh-surface-high), var(--uh-surface)) !important;
}

.dark body.uh-neomorphic :is(.rounded-lg, .rounded-xl, .rounded-2xl) {
    border-radius: var(--uh-radius) !important;
}

.dark body.uh-neomorphic .rounded-full {
    border-radius: 999px !important;
}

.dark body.uh-neomorphic :is(h1, h2, h3, h4, .dark\:text-white, .text-gray-900) {
    color: var(--uh-text) !important;
}

.dark body.uh-neomorphic :is(.text-gray-700, .dark\:text-gray-300) {
    color: #d7e0e2 !important;
}

.dark body.uh-neomorphic :is(.text-gray-500, .text-gray-600, .dark\:text-gray-400) {
    color: var(--uh-muted) !important;
}

.dark body.uh-neomorphic :is(.text-gray-400, .text-gray-300) {
    color: var(--uh-subtle) !important;
}

.dark body.uh-neomorphic :is(.text-uxblue, .hover\:text-uxblue:hover, .group:hover .group-hover\:text-uxblue) {
    color: var(--uh-blue-bright) !important;
}

.dark body.uh-neomorphic :is(.text-uxred, .text-red-500, .text-red-600) {
    color: #ff8b80 !important;
}

.dark body.uh-neomorphic a {
    text-underline-offset: 0.22em;
}

.dark body.uh-neomorphic aside nav a {
    border: 1px solid transparent;
    box-shadow: none;
}

.dark body.uh-neomorphic aside nav a:hover {
    border-color: rgba(92, 222, 233, 0.2);
    background: linear-gradient(145deg, #141b1d, #0b0e0f) !important;
    color: var(--uh-blue-bright) !important;
    box-shadow: var(--uh-shadow-soft);
}

.dark body.uh-neomorphic aside nav a.bg-blue-50,
.dark body.uh-neomorphic aside nav a[class~="dark:bg-uxblue/10"] {
    border-color: rgba(92, 222, 233, 0.34) !important;
    background: linear-gradient(145deg, rgba(14, 128, 144, 0.24), rgba(14, 128, 144, 0.1)) !important;
    color: #8eeaf2 !important;
    box-shadow: var(--uh-shadow-inset);
}

.dark body.uh-neomorphic aside nav svg {
    color: currentColor;
}

.dark body.uh-neomorphic :is(button, a)[class*="bg-uxblue"] {
    border-color: rgba(92, 222, 233, 0.36) !important;
    background: linear-gradient(145deg, #13a0b3, #0a6572) !important;
    color: #ffffff !important;
    box-shadow: var(--uh-shadow-accent) !important;
}

.dark body.uh-neomorphic :is(button, a)[class*="bg-uxblue"]:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.dark body.uh-neomorphic :is(button, a)[class*="bg-red-600"],
.dark body.uh-neomorphic :is(button, a)[class*="bg-uxred"] {
    border-color: rgba(255, 159, 149, 0.34) !important;
    background: linear-gradient(145deg, #ff6b5e, #b83227) !important;
    color: #ffffff !important;
    box-shadow: var(--uh-shadow-danger) !important;
}

.dark body.uh-neomorphic :is(a, button)[class*="border-gray"],
.dark body.uh-neomorphic :is(a, button).bg-white,
.dark body.uh-neomorphic :is(a, button)[class~="dark:bg-gray-700"] {
    border-color: var(--uh-border-strong) !important;
    background: linear-gradient(145deg, #151b1d, #0a0d0e) !important;
    color: #eaf1f2 !important;
    box-shadow: var(--uh-shadow-soft) !important;
}

.dark body.uh-neomorphic :is(a, button)[class*="border-gray"]:hover,
.dark body.uh-neomorphic :is(a, button).bg-white:hover,
.dark body.uh-neomorphic :is(a, button)[class~="dark:bg-gray-700"]:hover {
    border-color: rgba(92, 222, 233, 0.34) !important;
    color: var(--uh-blue-bright) !important;
    transform: translateY(-1px);
}

.dark body.uh-neomorphic button:disabled,
.dark body.uh-neomorphic [aria-disabled="true"] {
    opacity: 0.58;
    transform: none !important;
    box-shadow: var(--uh-shadow-inset) !important;
}

.dark body.uh-neomorphic :is(
    input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    textarea,
    select
) {
    border-color: var(--uh-border-strong) !important;
    border-radius: 10px !important;
    background: var(--uh-recessed) !important;
    color: var(--uh-text) !important;
    box-shadow: var(--uh-shadow-inset) !important;
}

.dark body.uh-neomorphic :is(input, textarea, select)::placeholder {
    color: #718185 !important;
}

.dark body.uh-neomorphic :is(input, textarea, select):focus {
    border-color: rgba(92, 222, 233, 0.72) !important;
    box-shadow:
        var(--uh-shadow-inset),
        0 0 0 3px rgba(14, 128, 144, 0.28) !important;
}

.dark body.uh-neomorphic table {
    color: var(--uh-text);
}

.dark body.uh-neomorphic thead,
.dark body.uh-neomorphic .dark\:bg-uxdarksidebar,
.dark body.uh-neomorphic [class~="dark:bg-black/20"],
.dark body.uh-neomorphic [class~="dark:bg-gray-700/50"] {
    background: linear-gradient(145deg, #0b0f10, #060808) !important;
}

.dark body.uh-neomorphic :is(th, td) {
    border-color: var(--uh-border) !important;
}

.dark body.uh-neomorphic tbody tr {
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.dark body.uh-neomorphic tbody tr:hover {
    background: rgba(14, 128, 144, 0.08) !important;
}

.dark body.uh-neomorphic .divide-y > :not([hidden]) ~ :not([hidden]),
.dark body.uh-neomorphic .divide-x > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--uh-border) !important;
}

.dark body.uh-neomorphic .mobile-card-table tr {
    border-color: var(--uh-border) !important;
    background: linear-gradient(145deg, var(--uh-surface-high), var(--uh-surface)) !important;
    box-shadow: var(--uh-shadow-soft) !important;
}

.dark body.uh-neomorphic .attachment-uploader__dropzone,
.dark body.uh-neomorphic .attachment-uploader__item {
    border-color: var(--uh-border-strong) !important;
    background: linear-gradient(145deg, #121819, #080b0c) !important;
    box-shadow: var(--uh-shadow-soft);
}

.dark body.uh-neomorphic .attachment-uploader__dropzone:hover,
.dark body.uh-neomorphic .attachment-uploader.is-dragging .attachment-uploader__dropzone {
    border-color: rgba(92, 222, 233, 0.46) !important;
    background: linear-gradient(145deg, rgba(14, 128, 144, 0.22), rgba(8, 11, 12, 0.95)) !important;
}

.dark body.uh-neomorphic .attachment-uploader.is-processing .attachment-uploader__dropzone {
    border-color: rgba(92, 222, 233, 0.54) !important;
    color: var(--uh-blue-bright);
}

.dark body.uh-neomorphic .attachment-uploader.is-processing .attachment-uploader__button::before {
    content: "";
    width: 0.85rem;
    height: 0.85rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    animation: uh-spin 750ms linear infinite;
}

.dark body.uh-neomorphic .attachment-uploader__icon,
.dark body.uh-neomorphic .attachment-uploader__preview {
    background: var(--uh-recessed) !important;
    color: var(--uh-blue-bright) !important;
    box-shadow: var(--uh-shadow-inset);
}

.dark body.uh-neomorphic .attachment-uploader__button,
.dark body.uh-neomorphic .attachment-uploader__remove {
    border-color: var(--uh-border-strong) !important;
    background: linear-gradient(145deg, #151b1d, #0a0d0e) !important;
    color: var(--uh-text) !important;
    box-shadow: var(--uh-shadow-soft);
}

.dark body.uh-neomorphic .contracts-page,
.dark body.uh-neomorphic .server-map-page {
    color: var(--uh-text);
}

.dark body.uh-neomorphic :is(
    .contracts-kpi,
    .contracts-toolbar,
    .contracts-table-card,
    .server-map-kpi,
    .server-category-total,
    .server-card
) {
    border-color: var(--uh-border) !important;
    background: linear-gradient(145deg, var(--uh-surface-high), var(--uh-surface)) !important;
    box-shadow: var(--uh-shadow-raised) !important;
}

.dark body.uh-neomorphic :is(.contracts-header, .server-map-header) {
    border-color: var(--uh-border) !important;
}

.dark body.uh-neomorphic :is(.contracts-primary-action, .contracts-status-link.is-active) {
    border-color: rgba(92, 222, 233, 0.34) !important;
    background: linear-gradient(145deg, #13a0b3, #0a6572) !important;
    color: #ffffff !important;
    box-shadow: var(--uh-shadow-accent) !important;
}

.dark body.uh-neomorphic :is(.contracts-status-link, .contract-action-btn, .server-note__button, .contract-row) {
    border-color: var(--uh-border-strong) !important;
    background: linear-gradient(145deg, #141a1c, #090c0d) !important;
    box-shadow: var(--uh-shadow-soft);
}

.dark body.uh-neomorphic :is(.contracts-status-link, .contract-action-btn, .server-note__button, .contract-row):hover {
    border-color: rgba(92, 222, 233, 0.34) !important;
    background: linear-gradient(145deg, rgba(14, 128, 144, 0.24), rgba(9, 12, 13, 0.96)) !important;
    color: var(--uh-blue-bright) !important;
}

.dark body.uh-neomorphic :is(.server-stat, .contract-meta-pill, .server-map-state) {
    border-color: var(--uh-border) !important;
    background: var(--uh-recessed) !important;
    box-shadow: var(--uh-shadow-inset);
}

.dark body.uh-neomorphic .server-card__icon {
    background: var(--uh-recessed) !important;
    color: var(--uh-blue-bright) !important;
    box-shadow: var(--uh-shadow-inset);
}

.dark body.uh-neomorphic :is(.server-card__top, .server-card__footer, .category-detail, .contracts-pagination) {
    border-color: var(--uh-border) !important;
    background: rgba(3, 3, 3, 0.22) !important;
}

.dark body.uh-neomorphic :is(.bg-blue-50, .dark\:bg-uxblue\/10) {
    background: rgba(14, 128, 144, 0.15) !important;
}

.dark body.uh-neomorphic :is(.bg-red-50, .dark\:bg-red-900\/20) {
    background: rgba(241, 87, 71, 0.14) !important;
}

.dark body.uh-neomorphic :is(.bg-green-50, .dark\:bg-green-900\/20) {
    background: rgba(46, 204, 113, 0.13) !important;
}

.dark body.uh-neomorphic :is(.bg-yellow-100, .dark\:bg-yellow-900\/30) {
    background: rgba(245, 190, 74, 0.16) !important;
}

.dark body.uh-neomorphic :is(.bg-orange-50, .bg-orange-100, .dark\:bg-orange-900\/20) {
    background: rgba(241, 128, 71, 0.15) !important;
}

.dark body.uh-neomorphic .fixed.inset-0[class*="bg-gray-900"] {
    background: rgba(0, 0, 0, 0.78) !important;
    backdrop-filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
    body.uh-neomorphic *,
    body.uh-neomorphic *::before,
    body.uh-neomorphic *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 640px) {
    .dark body.uh-neomorphic main {
        padding: 1rem !important;
    }

    .dark body.uh-neomorphic :is(.shadow, .shadow-lg, .shadow-xl, .shadow-2xl) {
        box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.64), -4px -4px 12px rgba(255, 255, 255, 0.03) !important;
    }
}

/* UX HUMANA design system primitives */
.uh-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 1600px;
    margin: 0 auto;
}

.uh-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.uh-eyebrow {
    margin: 0 0 0.25rem;
    color: var(--uh-blue-bright);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.uh-title {
    margin: 0;
    color: var(--uh-text);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.1;
}

.uh-subtitle {
    max-width: 54rem;
    margin: 0.45rem 0 0;
    color: var(--uh-muted);
    font-size: 0.95rem;
}

.uh-card {
    border: 1px solid var(--uh-border);
    border-radius: var(--uh-radius);
    background: linear-gradient(145deg, var(--uh-surface-high), var(--uh-surface));
    box-shadow: var(--uh-shadow-raised);
    overflow: hidden;
}

.uh-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--uh-border);
    background: rgba(3, 3, 3, 0.18);
}

.uh-card__title {
    margin: 0;
    color: var(--uh-text);
    font-size: 1rem;
    font-weight: 900;
}

.uh-card__body {
    padding: 1rem;
}

.uh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding: 0 0.85rem;
    border: 1px solid var(--uh-border-strong);
    border-radius: 10px;
    background: linear-gradient(145deg, #151b1d, #0a0d0e);
    color: #eaf1f2;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: var(--uh-shadow-soft);
    transition: border-color 160ms ease, color 160ms ease, filter 160ms ease, transform 160ms ease;
}

.uh-btn:hover {
    border-color: rgba(92, 222, 233, 0.34);
    color: var(--uh-blue-bright);
    transform: translateY(-1px);
}

.uh-btn--primary {
    border-color: rgba(92, 222, 233, 0.36);
    background: linear-gradient(145deg, #13a0b3, #0a6572);
    color: #ffffff;
    box-shadow: var(--uh-shadow-accent);
}

.uh-btn--danger {
    border-color: rgba(255, 159, 149, 0.34);
    background: linear-gradient(145deg, #28110f, #130808);
    color: #ff9f95;
}

.uh-btn--sm {
    min-height: 2rem;
    padding: 0 0.65rem;
    font-size: 0.78rem;
}

.uh-btn svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.uh-field {
    width: 100%;
    min-height: 2.65rem;
    border: 1px solid var(--uh-border-strong);
    border-radius: 10px;
    background: var(--uh-recessed);
    color: var(--uh-text);
    box-shadow: var(--uh-shadow-inset);
}

.uh-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #d7e0e2;
    font-size: 0.85rem;
    font-weight: 800;
}

.uh-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem;
    border: 1px solid var(--uh-border);
    border-radius: var(--uh-radius);
    background: linear-gradient(145deg, var(--uh-surface-high), var(--uh-surface));
    box-shadow: var(--uh-shadow-soft);
}

.uh-table-wrap {
    overflow-x: auto;
}

.uh-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.uh-table th,
.uh-table td {
    border-bottom: 1px solid var(--uh-border);
}

.uh-table th {
    position: relative;
    height: 3rem;
    color: var(--uh-muted);
    font-size: 0.73rem;
    font-weight: 900;
    text-transform: uppercase;
}

.uh-table tbody tr {
    transition: background-color 160ms ease;
}

.uh-table tbody tr:hover {
    background: rgba(14, 128, 144, 0.08);
}

.sortable-header {
    cursor: pointer;
    user-select: none;
}

.sortable-header:focus-visible {
    outline-offset: -2px;
}

.sort-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.35rem;
    border-radius: 999px;
    color: var(--uh-subtle);
    font-size: 0.75rem;
    vertical-align: middle;
}

.sortable-header.is-sorted {
    color: var(--uh-blue-bright) !important;
}

.sortable-header.is-sorted .sort-indicator {
    background: rgba(14, 128, 144, 0.2);
    color: #ffffff;
    box-shadow: var(--uh-shadow-inset);
}

.is-sorted-column {
    background: rgba(14, 128, 144, 0.075);
    box-shadow: inset 2px 0 0 rgba(92, 222, 233, 0.35);
}

.uh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.55rem;
    padding: 0 0.55rem;
    border: 1px solid var(--uh-border);
    border-radius: 999px;
    background: var(--uh-recessed);
    color: var(--uh-muted);
    font-size: 0.74rem;
    font-weight: 900;
    box-shadow: var(--uh-shadow-inset);
}

.uh-badge--success {
    border-color: rgba(74, 222, 128, 0.28);
    color: #86efac;
}

.uh-badge--warning {
    border-color: rgba(245, 190, 74, 0.32);
    color: #facc15;
}

.uh-badge--danger {
    border-color: rgba(241, 87, 71, 0.35);
    color: #ff9f95;
}

.uh-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.uh-kpi {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--uh-border);
    border-radius: var(--uh-radius);
    background: linear-gradient(145deg, var(--uh-surface-high), var(--uh-surface));
    box-shadow: var(--uh-shadow-soft);
}

.uh-kpi span {
    display: block;
    color: var(--uh-muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.uh-kpi strong {
    display: block;
    margin-top: 0.35rem;
    color: var(--uh-text);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
}

.uh-split {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.85fr);
    gap: 1rem;
}

.uh-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.uh-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--uh-border);
    border-radius: 10px;
    background: rgba(3, 3, 3, 0.18);
}

.uh-list-row strong,
.uh-list-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uh-list-row small {
    color: var(--uh-muted);
}

.uh-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.74);
    backdrop-filter: blur(8px);
}

.uh-modal__panel {
    width: min(100%, 36rem);
    border: 1px solid var(--uh-border);
    border-radius: var(--uh-radius);
    background: linear-gradient(145deg, var(--uh-surface-high), var(--uh-surface));
    box-shadow: var(--uh-shadow-raised);
    overflow: hidden;
}

.uh-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    padding: 1rem;
    border-top: 1px solid var(--uh-border);
    background: rgba(3, 3, 3, 0.22);
}

.uh-spinner {
    width: 1rem;
    height: 1rem;
    flex: 0 0 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    animation: uh-spin 750ms linear infinite;
}

.uh-page-busy::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, var(--uh-blue), var(--uh-red));
    box-shadow: 0 0 18px rgba(92, 222, 233, 0.55);
    animation: uh-loading-bar 1.1s ease-in-out infinite;
}

.is-loading {
    pointer-events: none;
    opacity: 0.82;
}

@keyframes uh-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes uh-loading-bar {
    0% {
        transform: translateX(-45vw);
    }
    50% {
        transform: translateX(80vw);
    }
    100% {
        transform: translateX(145vw);
    }
}

@media (max-width: 900px) {
    .uh-page-header,
    .uh-search-panel,
    .uh-modal__footer {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .uh-kpi-grid,
    .uh-split {
        grid-template-columns: 1fr;
    }

    .uh-title {
        font-size: 1.65rem;
    }

    .uh-btn {
        width: 100%;
    }
}
