/*
 * Axima UI v2 application shell and compatibility layer.
 * These rules deliberately avoid feature-specific business behavior.
 */
html {
    min-height: 100%;
    background: var(--ax-canvas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--brand-primary) 3%, var(--ax-canvas)) 0,
            var(--ax-canvas) 240px
        );
    color: var(--ax-text);
    font-family: var(--ax-font-sans);
    font-size: 0.9375rem;
    line-height: 1.55;
    transition: background-color 0.2s ease, color 0.2s ease;
}

body.app-body {
    isolation: isolate;
}

a {
    color: var(--brand-primary);
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--brand-primary-hover);
}

::selection {
    background: var(--brand-primary-muted);
    color: var(--ax-text);
}

#main {
    position: relative;
    min-height: calc(100vh - var(--nav-height) - 72px);
    padding-top: var(--nav-height);
}

.app-content-container {
    width: min(100%, 1600px);
    margin-inline: auto;
    padding: clamp(1rem, 2vw, 2rem) clamp(0.875rem, 2.2vw, 2.25rem) 2.5rem;
}

.app-page-meta {
    display: flex;
    min-height: 1.75rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--ax-text-subtle);
    --bs-breadcrumb-item-active-color: var(--ax-text-muted);
    gap: 0.15rem;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    font-size: 0.8125rem;
}

.breadcrumb a {
    color: var(--ax-text-muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--brand-primary);
}

h1,
.h1 {
    margin-top: 0;
    color: var(--ax-text);
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    font-weight: 720;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

h2,
.h2 {
    color: var(--ax-text);
    font-weight: 680;
    letter-spacing: -0.025em;
}

h3,
h4,
h5,
h6,
.h3,
.h4,
.h5,
.h6 {
    color: var(--ax-text);
    font-weight: 650;
    letter-spacing: -0.015em;
}

.text-muted,
.text-medium-emphasis {
    color: var(--ax-text-muted) !important;
}

.bg-light {
    background-color: var(--ax-surface-muted) !important;
    color: var(--ax-text);
}

.bg-white {
    background-color: var(--ax-surface) !important;
    color: var(--ax-text);
}

.border,
.border-top,
.border-end,
.border-bottom,
.border-start {
    border-color: var(--ax-border) !important;
}

/* Surfaces */
.card,
.v-card {
    background: var(--ax-surface);
    color: var(--ax-text);
    border-color: var(--ax-border);
}

.card {
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    box-shadow: var(--ax-shadow-xs);
}

.card.border-0,
.card.shadow-sm {
    border: 1px solid var(--ax-border) !important;
    box-shadow: var(--ax-shadow-sm) !important;
}

.card-header,
.card-footer {
    border-color: var(--ax-border);
    background: color-mix(in srgb, var(--ax-surface) 94%, var(--ax-surface-muted));
}

.card-header {
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    padding: 0.875rem 1.25rem;
}

.summary-card {
    position: relative;
    min-height: 132px;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--brand-primary) 7%, var(--ax-surface)),
            var(--ax-surface) 62%
        );
}

.summary-card::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-primary);
    content: "";
    opacity: 0.72;
}

.card-clickable .card {
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card-clickable:hover .card,
.card-clickable:focus-visible .card {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand-primary) 38%, var(--ax-border)) !important;
    box-shadow: var(--ax-shadow-md) !important;
}

/* Buttons and controls */
.btn,
.v-btn {
    border-radius: var(--ax-radius-sm);
    font-weight: 620;
    letter-spacing: 0;
}

.btn {
    min-height: var(--ax-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.btn-sm {
    min-height: 2.125rem;
}

.btn-primary,
.bg-primary {
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: var(--brand-primary-hover);
    --bs-btn-hover-border-color: var(--brand-primary-hover);
    --bs-btn-active-bg: var(--brand-primary-hover);
    --bs-btn-active-border-color: var(--brand-primary-hover);
    --bs-btn-color: var(--brand-on-primary);
    --bs-btn-hover-color: var(--brand-on-primary);
    --bs-btn-active-color: var(--brand-on-primary);
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: var(--brand-on-primary) !important;
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-primary);
    --bs-btn-border-color: color-mix(in srgb, var(--brand-primary) 55%, var(--ax-border));
    --bs-btn-hover-bg: var(--brand-primary);
    --bs-btn-hover-border-color: var(--brand-primary);
    --bs-btn-hover-color: var(--brand-on-primary);
}

.form-label,
.form-check-label {
    color: var(--ax-text);
    font-weight: 620;
}

.form-text {
    color: var(--ax-text-muted);
}

.form-control,
.form-select,
.input-group-text,
.v-field {
    min-height: var(--ax-control-height);
    border-color: var(--ax-border);
    border-radius: var(--ax-radius-sm);
    background-color: var(--ax-surface);
    color: var(--ax-text);
}

.form-control::placeholder {
    color: var(--ax-text-subtle);
    opacity: 1;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    border-color: var(--brand-primary);
    outline: 0;
    box-shadow: var(--ax-focus-ring);
}

.form-check-input {
    border-color: var(--ax-border-strong);
    background-color: var(--ax-surface);
}

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

.help-block,
.invalid-feedback {
    font-size: 0.8125rem;
}

/* Tables */
.table,
.v-table,
.v-data-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ax-text);
    --bs-table-border-color: var(--ax-border);
    color: var(--ax-text);
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.9rem;
    border-bottom-color: var(--ax-border);
    background: transparent;
    color: inherit;
}

.table thead th,
.v-data-table thead th {
    background: var(--ax-surface-muted) !important;
    color: var(--ax-text-muted) !important;
    font-size: 0.75rem;
    font-weight: 720 !important;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: var(--brand-primary-soft);
    color: var(--ax-text);
}

.table-responsive {
    border-radius: var(--ax-radius-md);
}

.list-group-item {
    border-color: var(--ax-border);
    background: transparent;
    color: var(--ax-text);
}

/* Status elements */
.badge {
    border-radius: 999px;
    padding: 0.45em 0.68em;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.alert {
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    box-shadow: var(--ax-shadow-xs);
}

.alert-success {
    border-color: color-mix(in srgb, var(--ax-success) 30%, var(--ax-border));
    background: var(--ax-success-soft);
    color: var(--ax-success);
}

.alert-warning {
    border-color: color-mix(in srgb, var(--ax-warning) 30%, var(--ax-border));
    background: var(--ax-warning-soft);
    color: var(--ax-warning);
}

.alert-danger {
    border-color: color-mix(in srgb, var(--ax-danger) 30%, var(--ax-border));
    background: var(--ax-danger-soft);
    color: var(--ax-danger);
}

.alert-info {
    border-color: color-mix(in srgb, var(--ax-info) 30%, var(--ax-border));
    background: var(--ax-info-soft);
    color: var(--ax-info);
}

/* Modern top application shell */
#header {
    min-height: 0;
}

#nav-app {
    min-height: 0 !important;
}

#nav-fallback,
#nav-app .vuetify-app-bar {
    min-height: var(--nav-height);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(
            115deg,
            color-mix(in srgb, var(--nav-bg) 92%, var(--brand-primary)),
            var(--nav-bg)
        ) !important;
    box-shadow: 0 8px 28px var(--nav-shadow-color);
}

#nav-fallback .container-fluid,
#nav-app .v-toolbar__content {
    width: min(100%, 1760px);
    margin-inline: auto;
}

#nav-fallback .navbar-brand,
#nav-app .v-app-bar-title {
    min-width: fit-content;
}

#nav-fallback .navbar-brand,
#nav-fallback .fallback-user-action,
#nav-app .text-white {
    color: var(--nav-foreground) !important;
}

#nav-fallback .navbar-brand img,
#nav-app .v-app-bar-title img {
    max-height: 34px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.14));
}

#nav-fallback .navbar-nav .nav-link,
#nav-app .v-btn.text-white {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    color: var(--nav-link-color) !important;
    font-size: 0.875rem;
    font-weight: 620;
}

#nav-fallback .navbar-nav .nav-link:hover,
#nav-fallback .navbar-nav .nav-link:focus,
#nav-app .v-btn.text-white:hover {
    border-color: rgba(255, 255, 255, 0.08);
    background: var(--nav-hover-bg);
    color: var(--nav-link-hover-color) !important;
}

#nav-fallback .navbar-nav .nav-link.active,
#nav-fallback .navbar-nav .show > .nav-link,
#nav-app .v-btn--active {
    border-color: rgba(255, 255, 255, 0.12);
    background: var(--nav-active-bg) !important;
    color: var(--nav-link-hover-color) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#nav-fallback .create-action-btn,
#nav-app .create-action-btn {
    min-height: 38px;
    padding-inline: 0.9rem;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 62%, #ffffff) !important;
    background: var(--brand-primary) !important;
    color: var(--brand-on-primary) !important;
    box-shadow: 0 7px 18px rgba(var(--brand-primary-rgb), 0.25);
}

#nav-fallback .dropdown-menu,
.nav-v-menu-content .v-overlay__content > .v-list,
#nav-app .v-overlay__content > .v-card,
#nav-app .v-overlay__content > .v-list {
    overflow: hidden;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    background: var(--ax-surface);
    color: var(--ax-text);
    box-shadow: var(--ax-shadow-md);
}

#nav-fallback .dropdown-item {
    margin: 0.15rem 0.35rem;
    width: calc(100% - 0.7rem);
    border-radius: 0.55rem;
    color: var(--ax-text);
}

#nav-fallback .dropdown-item:hover,
#nav-fallback .dropdown-item:focus,
#nav-fallback .dropdown-item.active {
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}

#nav-app .nav-drawer {
    border-right: 1px solid var(--ax-border);
    background: var(--ax-surface);
    color: var(--ax-text);
}

#nav-app .nav-drawer .active-link {
    border-radius: 0.65rem;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
}

/* Vuetify compatibility */
.v-application,
.v-main {
    background: transparent !important;
    color: var(--ax-text);
}

.v-card {
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg) !important;
    box-shadow: var(--ax-shadow-xs);
}

.v-overlay__scrim {
    background: var(--ax-overlay) !important;
}

.v-data-table,
.v-table,
.v-list {
    background: var(--ax-surface) !important;
    color: var(--ax-text) !important;
}

.v-data-table__tr:hover > td {
    background: var(--brand-primary-soft) !important;
}

.v-field {
    background: var(--ax-surface);
    color: var(--ax-text);
}

.v-field__outline {
    color: var(--ax-border-strong);
}

.v-label,
.v-list-item-subtitle,
.v-card-subtitle {
    color: var(--ax-text-muted) !important;
}

/* Footer */
.app-footer {
    border-top: 1px solid var(--ax-border);
    background: color-mix(in srgb, var(--ax-surface) 94%, var(--ax-canvas));
    color: var(--ax-text-muted);
}

.app-footer__inner {
    width: min(100%, 1600px);
    margin-inline: auto;
    padding: 1rem clamp(0.875rem, 2.2vw, 2.25rem);
}

/* Settings hub */
.settings-hub__header,
.branding-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.settings-hub__eyebrow,
.branding-page__eyebrow {
    margin-bottom: 0.35rem;
    color: var(--brand-primary);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.settings-hub__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.settings-card {
    grid-column: span 4;
    display: flex;
    min-height: 168px;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    background: var(--ax-surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--ax-shadow-xs);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.settings-card:hover,
.settings-card:focus-visible {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--ax-border));
    color: inherit;
    box-shadow: var(--ax-shadow-sm);
}

.settings-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 0.8rem;
    background: var(--brand-primary-soft);
    color: var(--brand-primary);
    font-size: 1.15rem;
}

.settings-card__title {
    margin-bottom: 0.35rem;
    color: var(--ax-text);
    font-size: 1rem;
    font-weight: 680;
}

.settings-card__description {
    margin-bottom: 0;
    color: var(--ax-text-muted);
    font-size: 0.875rem;
}

.appearance-panel {
    margin-bottom: 1.5rem;
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-xl);
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--brand-primary) 8%, var(--ax-surface)),
            var(--ax-surface) 64%
        );
    box-shadow: var(--ax-shadow-sm);
}

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

.appearance-choice {
    position: relative;
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    background: var(--ax-surface);
    color: var(--ax-text);
    text-align: left;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.appearance-choice:hover {
    transform: translateY(-1px);
    border-color: var(--brand-primary);
}

.appearance-choice[aria-checked="true"] {
    border-color: var(--brand-primary);
    background: var(--brand-primary-soft);
    box-shadow: inset 0 0 0 1px var(--brand-primary);
}

.appearance-choice__icon {
    color: var(--brand-primary);
    font-size: 1.35rem;
}

.appearance-choice__label {
    font-weight: 680;
}

.appearance-choice__hint {
    color: var(--ax-text-muted);
    font-size: 0.78rem;
}

/* Branding */
.branding-preview-shell {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
    overflow: hidden;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-xl);
    background: var(--ax-surface);
    box-shadow: var(--ax-shadow-sm);
}

.branding-preview-shell__nav {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--preview-nav-bg, var(--nav-bg));
    color: var(--preview-nav-foreground, #ffffff);
}

.branding-preview-shell__body {
    padding: 1.25rem;
    background:
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--preview-primary, var(--brand-primary)) 9%, var(--ax-canvas)),
            var(--ax-canvas)
        );
}

.branding-upload {
    padding: 1rem;
    border: 1px dashed var(--ax-border-strong);
    border-radius: var(--ax-radius-md);
    background: var(--ax-surface-subtle);
}

.branding-upload__preview {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.75rem;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    background:
        linear-gradient(45deg, var(--ax-surface-muted) 25%, transparent 25%),
        linear-gradient(-45deg, var(--ax-surface-muted) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--ax-surface-muted) 75%),
        linear-gradient(-45deg, transparent 75%, var(--ax-surface-muted) 75%);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

/* Dark-mode corrections for legacy contextual utilities. */
html[data-theme="dark"] .text-dark {
    color: var(--ax-text) !important;
}

html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .offcanvas,
html[data-theme="dark"] .popover {
    border-color: var(--ax-border);
    background: var(--ax-surface-raised);
    color: var(--ax-text);
}

html[data-theme="dark"] .table > :not(caption) > * > *,
html[data-theme="dark"] .list-group-item {
    color: var(--ax-text);
}

html[data-theme="dark"] canvas {
    color-scheme: dark;
}

html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="time"],
html[data-theme="dark"] input[type="datetime-local"] {
    color-scheme: dark;
}

@media (max-width: 1199.98px) {
    .settings-card {
        grid-column: span 6;
    }
}

@media (max-width: 767.98px) {
    :root {
        --nav-height: 60px;
    }

    .app-content-container {
        padding-top: 1rem;
        padding-bottom: 5.5rem;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding-inline: 1rem;
    }

    .settings-hub__header,
    .branding-page__header {
        flex-direction: column;
    }

    .settings-card {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .appearance-mode-grid {
        grid-template-columns: 1fr;
    }

    .appearance-choice {
        min-height: 88px;
    }

    .branding-preview-shell {
        position: static;
    }

    #nav-fallback .container-fluid {
        gap: 0.5rem !important;
    }

    #nav-fallback .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: var(--ax-radius-md);
        background: color-mix(in srgb, var(--nav-bg) 92%, #000000);
    }
}


/* Operations home */
.operations-home {
    max-width: 1520px;
    margin-inline: auto;
}

.operations-eyebrow {
    display: block;
    color: var(--brand-primary);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

.operations-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--ax-border);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--ax-radius-xl);
    background: var(--ax-surface);
    box-shadow: var(--ax-shadow-sm);
}

.operations-hero h1 {
    margin: 0.35rem 0 0.5rem;
}

.operations-hero p {
    max-width: 56ch;
    color: var(--ax-text-muted);
}

.operations-updated {
    display: block;
    margin-top: 1rem;
    color: var(--ax-text-muted);
    font-size: 0.8rem;
}

.operations-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-shrink: 0;
}

.operations-hero__actions .btn {
    white-space: nowrap;
}

.operations-section {
    margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
}

.operations-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.operations-section__heading h2 {
    margin: 0.2rem 0 0;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.operations-section__hint {
    color: var(--ax-text-muted);
    font-size: 0.83rem;
}

.operations-action-card {
    --action-color: var(--brand-primary);
    --action-soft: var(--brand-primary-soft);
    display: flex;
    min-height: 205px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    background: var(--ax-surface);
    box-shadow: var(--ax-shadow-xs);
    color: var(--ax-text);
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.operations-action-card:hover {
    border-color: var(--action-color);
    box-shadow: var(--ax-shadow-sm);
    color: var(--ax-text);
    transform: translateY(-2px);
}

.operations-action-card--warning {
    --action-color: var(--ax-warning);
    --action-soft: var(--ax-warning-soft);
}

.operations-action-card--info {
    --action-color: var(--ax-info);
    --action-soft: var(--ax-info-soft);
}

.operations-action-card--danger {
    --action-color: var(--ax-danger);
    --action-soft: var(--ax-danger-soft);
}

.operations-action-card--success {
    --action-color: var(--ax-success);
    --action-soft: var(--ax-success-soft);
}

.operations-action-card__icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--ax-radius-sm);
    background: var(--action-soft);
    color: var(--action-color);
    font-size: 1.25rem;
}

.operations-action-card__value {
    margin-top: 0.65rem;
    color: var(--ax-text);
    font-size: 1.8rem;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1;
}

.operations-action-card strong {
    margin-top: 0.45rem;
    font-size: 0.96rem;
}

.operations-action-card__hint {
    margin-top: 0.2rem;
    color: var(--ax-text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.operations-action-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.7rem;
    color: var(--brand-primary);
    font-size: 0.81rem;
    font-weight: 700;
}

.operations-summary {
    display: flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    background: var(--ax-surface);
    color: var(--ax-text);
    text-decoration: none;
}

a.operations-summary:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--ax-shadow-xs);
    color: var(--ax-text);
}

.operations-summary span {
    color: var(--ax-text-muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

.operations-summary strong {
    font-size: 1.5rem;
    line-height: 1.1;
}

.operations-response {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 2.25rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-lg);
    background: var(--ax-surface-muted);
}

.operations-response__title {
    color: var(--ax-text);
    font-weight: 700;
}

.operations-response > div:not(:first-child) {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.operations-response > div span {
    color: var(--ax-text-muted);
    font-size: 0.84rem;
}

.operations-detail-grid {
    margin-top: 0.2rem;
}

.operations-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.operations-card-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.operations-card-header a {
    font-size: 0.84rem;
    font-weight: 650;
    white-space: nowrap;
}

.operations-chart-body {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(140px, 0.75fr);
    align-items: center;
    gap: 1rem;
}

.operations-chart {
    position: relative;
    max-width: 270px;
    min-height: 190px;
    margin-inline: auto;
}

.operations-trend {
    position: relative;
    min-height: 240px;
}

.operations-facts {
    margin: 0;
}

.operations-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ax-border);
}

.operations-facts > div:last-child {
    border-bottom: 0;
}

.operations-facts dt {
    color: var(--ax-text-muted);
    font-weight: 400;
}

.operations-facts dd {
    margin: 0;
    font-weight: 700;
}

.operations-home .table {
    min-width: 640px;
}

.operations-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--ax-surface-muted);
    color: var(--ax-text);
    font-size: 0.77rem;
    font-weight: 600;
    white-space: nowrap;
}

.operations-mobile-list {
    display: grid;
    gap: 0.75rem;
}

.operations-mobile-list a {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
    padding: 0.85rem;
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-md);
    color: var(--ax-text);
    text-decoration: none;
}

.operations-mobile-list a:hover {
    border-color: var(--brand-primary);
    color: var(--ax-text);
}

.operations-mobile-list span:not(.operations-status),
.operations-checkin span:not(.operations-checkin__dot) {
    color: var(--ax-text-muted);
    font-size: 0.82rem;
}

.operations-checkins {
    display: grid;
    gap: 0.9rem;
}

.operations-checkin {
    display: flex;
    align-items: start;
    gap: 0.7rem;
}

.operations-checkin__dot {
    width: 0.55rem;
    height: 0.55rem;
    flex-shrink: 0;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: var(--ax-success);
}

.operations-checkin div {
    display: grid;
    gap: 0.15rem;
}

.operations-empty {
    margin: 0;
    padding: 1.25rem;
    border: 1px dashed var(--ax-border);
    border-radius: var(--ax-radius-md);
    color: var(--ax-text-muted);
}

.operations-welcome {
    max-width: 680px;
    margin: clamp(2rem, 8vw, 6rem) auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--ax-border);
    border-radius: var(--ax-radius-xl);
    background: var(--ax-surface);
    box-shadow: var(--ax-shadow-sm);
}

.operations-welcome__logo {
    display: block;
    max-width: 180px;
    max-height: 80px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.operations-welcome h1 {
    margin: 0.5rem 0 0.75rem;
}

.operations-welcome p {
    max-width: 55ch;
    color: var(--ax-text-muted);
}

.operations-home a:focus-visible {
    outline: 3px solid var(--ax-focus-ring);
    outline-offset: 3px;
}

@media (max-width: 991.98px) {
    .operations-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .operations-hero__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .operations-hero__actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .operations-hero__actions .btn:first-child {
        grid-column: 1 / -1;
    }

    .operations-section__hint {
        display: none;
    }

    .operations-action-card {
        min-height: 180px;
    }

    .operations-summary {
        min-height: 93px;
        padding: 0.85rem;
    }

    .operations-summary strong {
        font-size: 1.3rem;
    }

    .operations-response {
        gap: 0.7rem 1.25rem;
    }

    .operations-response__title {
        width: 100%;
    }

    .operations-chart-body {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .operations-action-card {
        transition: none;
    }

    .operations-action-card:hover {
        transform: none;
    }
}
