:root {
    --app-bg: #f8fafc;
    --app-surface: #ffffff;
    --app-surface-soft: #f1f5f9;
    --app-border: #e2e8f0;
    --app-border-strong: #cbd5e1;
    --app-ink: #0f172a;
    --app-muted: #64748b;
    --app-muted-strong: #475569;
    --app-primary: #2563eb;
    --app-primary-dark: #1d4ed8;
    --app-primary-soft: #eff6ff;
    --app-accent: #38bdf8;
    --app-sidebar: #0f172a;
    --app-sidebar-soft: #1e293b;
    --app-sidebar-muted: #94a3b8;
    --app-success: #10b981;
    --app-white: #ffffff;
    --app-radius-sm: 0.625rem;
    --app-radius: 0.875rem;
    --app-radius-lg: 1.25rem;
    --app-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --app-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.07);
    --app-shadow-lg: 0 1.5rem 4rem rgba(15, 23, 42, 0.14);
    --app-transition: 160ms ease;
}

.order-tabs { display:flex; gap:.25rem; overflow-x:auto; margin-bottom:1.5rem; border-bottom:1px solid var(--bs-border-color); scrollbar-width:thin; }
.order-tabs a { flex:0 0 auto; padding:.8rem 1rem; color:inherit; text-decoration:none; border-bottom:3px solid transparent; white-space:nowrap; }
.order-tabs a:hover, .order-tabs a:focus-visible { background:rgba(13,110,253,.08); }
.order-tabs a.active { color:var(--bs-primary); border-bottom-color:var(--bs-primary); font-weight:700; }
.order-actions-menu { position:relative; }
.order-actions-menu > summary { list-style:none; cursor:pointer; }
.order-actions-menu > summary::-webkit-details-marker { display:none; }
.order-actions-popover { position:absolute; z-index:20; right:0; top:calc(100% + .35rem); min-width:210px; padding:.4rem; background:var(--bs-body-bg); border:1px solid var(--bs-border-color); border-radius:.5rem; box-shadow:0 .5rem 1rem rgba(0,0,0,.15); }
.order-actions-popover a { display:block; padding:.55rem .7rem; color:inherit; text-decoration:none; border-radius:.3rem; }
.order-actions-popover a:hover, .order-actions-popover a:focus-visible { background:rgba(13,110,253,.08); }
.order-operation-card .app-stat-card { min-height:100%; }
.app-stat-card { display:flex; flex-direction:column; gap:.25rem; }
.app-stat-card small { color:var(--app-muted); line-height:1.3; }
.app-stat-card strong { display:block; line-height:1.15; }
@media (max-width: 575.98px) {
  .order-actions-menu { width:100%; }
  .order-actions-menu > summary { width:100%; text-align:center; }
  .order-actions-popover { position:static; margin-top:.4rem; width:100%; box-shadow:none; }
  .order-operation-card .btn, .order-operation-card form { width:100%; }
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--app-bg);
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--app-bg);
    color: var(--app-ink);
    font-family: Inter, "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
    font-size: 0.9375rem;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--app-primary);
}

button,
input {
    font: inherit;
}

svg {
    display: block;
}

:focus-visible {
    outline: 3px solid rgba(56, 189, 248, 0.42);
    outline-offset: 2px;
}

.btn {
    min-height: 2.75rem;
    border-radius: var(--app-radius-sm);
    font-weight: 650;
    transition:
        transform var(--app-transition),
        box-shadow var(--app-transition),
        background-color var(--app-transition);
}

.btn-primary {
    --bs-btn-bg: var(--app-primary);
    --bs-btn-border-color: var(--app-primary);
    --bs-btn-hover-bg: var(--app-primary-dark);
    --bs-btn-hover-border-color: var(--app-primary-dark);
    --bs-btn-active-bg: var(--app-primary-dark);
    --bs-btn-active-border-color: var(--app-primary-dark);
    box-shadow: 0 0.5rem 1rem rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.75rem 1.35rem rgba(37, 99, 235, 0.28);
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    --bs-offcanvas-width: 17.5rem;
    width: 17.5rem;
    color: var(--app-white);
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.12), transparent 28%),
        linear-gradient(180deg, var(--app-sidebar), #0b1120);
    border: 0;
    box-shadow: 0.75rem 0 2.5rem rgba(15, 23, 42, 0.08);
}

.app-sidebar-header {
    position: relative;
    min-height: 13rem;
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.app-brand {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.app-brand:hover {
    color: var(--app-white);
}

.app-sidebar-logo {
    display: block;
    width: min(100%, 8.75rem);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0.85rem;
    box-shadow: 0 1rem 2.25rem rgba(2, 6, 23, 0.26);
}

.app-brand-product {
    color: var(--app-white);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.app-sidebar-body {
    display: flex;
    height: calc(100% - 13rem);
    flex-direction: column;
    padding: 1.4rem 0.9rem 1rem;
}

.app-sidebar-body nav {
    flex: 1;
}

.app-nav-label {
    margin: 0 0.75rem 0.55rem;
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.app-nav-link {
    display: flex;
    min-height: 2.8rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.2rem;
    padding: 0.65rem 0.75rem;
    color: #cbd5e1;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    text-decoration: none;
    transition:
        color var(--app-transition),
        background-color var(--app-transition),
        border-color var(--app-transition);
}

.app-nav-link:hover {
    color: var(--app-white);
    background: rgba(148, 163, 184, 0.1);
}

.app-nav-link.active {
    color: var(--app-white);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.28), rgba(37, 99, 235, 0.1));
    border-color: rgba(96, 165, 250, 0.18);
    box-shadow: inset 3px 0 0 #60a5fa;
}

.app-nav-link.disabled {
    color: #64748b;
    cursor: default;
}

.app-nav-icon {
    display: grid;
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 1.75rem;
    place-items: center;
    border-radius: 0.5rem;
}

.app-nav-link.active .app-nav-icon {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.18);
}

.app-nav-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.app-nav-soon {
    margin-left: auto;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.app-nav-group {
    margin-top: 0.35rem;
}

.app-nav-group-toggle {
    display: flex;
    width: 100%;
    min-height: 2.8rem;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    color: #cbd5e1;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    text-align: left;
}

.app-nav-group-toggle:hover,
.app-nav-group-toggle:focus-visible,
.app-nav-group.active > .app-nav-group-toggle {
    color: var(--app-white);
    background: rgba(148, 163, 184, 0.1);
}

.app-nav-group-toggle:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.app-nav-group.active > .app-nav-group-toggle {
    border-color: rgba(96, 165, 250, 0.16);
}

.app-nav-chevron {
    margin-left: auto;
    font-size: 1.15rem;
    transition: transform 150ms ease;
}

.app-nav-group-toggle[aria-expanded="true"] .app-nav-chevron {
    transform: rotate(180deg);
}

.app-nav-submenu {
    position: relative;
    margin: 0.15rem 0 0.5rem 1.62rem;
    padding-left: 0.85rem;
}

.app-nav-submenu::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 1px;
    background: rgba(148, 163, 184, 0.22);
    content: "";
}

.app-nav-submenu[hidden] {
    display: none;
}

.app-nav-submenu-link {
    display: block;
    overflow-wrap: anywhere;
    margin-bottom: 0.12rem;
    padding: 0.5rem 0.65rem;
    color: #94a3b8;
    border-radius: 0.55rem;
    text-decoration: none;
}

.app-nav-submenu-link:hover,
.app-nav-submenu-link:focus-visible {
    color: var(--app-white);
    background: rgba(148, 163, 184, 0.1);
}

.app-nav-submenu-link:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 1px;
}

.app-nav-submenu-link.active {
    color: var(--app-white);
    background: rgba(37, 99, 235, 0.22);
    box-shadow: inset 2px 0 0 #60a5fa;
}

.app-nav-submenu-nested {
    padding-left: 0.65rem;
}

.app-nav-subgroup + .app-nav-subgroup {
    margin-top: 0.2rem;
}

.app-nav-subgroup-toggle {
    -webkit-appearance: none;
    appearance: none;
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.55rem;
    color: var(--app-sidebar-muted);
    cursor: pointer;
    display: flex;
    font-size: 0.76rem;
    font-family: inherit;
    font-weight: 700;
    justify-content: space-between;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.65rem;
    text-transform: uppercase;
    width: 100%;
}

.app-sidebar .app-nav-subgroup-toggle {
    box-shadow: none;
    line-height: 1.35;
    text-align: left;
}

.app-nav-subgroup-toggle:hover,
.app-nav-subgroup-toggle:focus-visible,
.app-nav-subgroup.active > .app-nav-subgroup-toggle {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.app-nav-subgroup-toggle[aria-expanded="true"] {
    background: rgba(148, 163, 184, 0.1);
    color: #e2e8f0;
}

.app-nav-subgroup-toggle:focus-visible {
    outline: 2px solid var(--app-primary-soft);
    outline-offset: 2px;
}

.app-nav-subgroup-toggle[aria-expanded="true"] .app-nav-chevron {
    transform: rotate(180deg);
}

.app-nav-subgroup-menu {
    border-left: 1px solid rgba(148, 163, 184, 0.2);
    display: grid;
    gap: 0.15rem;
    margin-left: 0.65rem;
    padding: 0.15rem 0 0.35rem 0.55rem;
}

.app-nav-subgroup-menu .app-nav-submenu-link {
    font-size: 0.88rem;
    padding-left: 0.75rem;
}

.app-nav-subgroup-menu[hidden] {
    display: none;
}

.product-workspace-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding: 0.2rem 0.1rem 0.55rem;
    scrollbar-width: thin;
}

.product-workspace-tab {
    border: 1px solid var(--app-border);
    border-radius: 999px;
    color: var(--app-muted);
    flex: 0 0 auto;
    font-weight: 700;
    padding: 0.65rem 1rem;
    text-decoration: none;
    white-space: nowrap;
}

.product-workspace-tab:hover,
.product-workspace-tab:focus-visible {
    border-color: var(--app-primary);
    color: var(--app-primary);
}

.product-workspace-tab:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.25);
    outline-offset: 2px;
}

.product-workspace-tab.active {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
}

.quick-create-dialog {
    background: transparent;
    border: 0;
    max-height: min(90vh, 50rem);
    max-width: min(92vw, 34rem);
    padding: 0;
    width: 100%;
}

.quick-create-dialog:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.35);
    outline-offset: 3px;
}

.quick-create-dialog::backdrop {
    background: rgba(15, 23, 42, 0.72);
}

.quick-create-dialog-nested {
    max-width: min(92vw, 30rem);
}

.quick-create-shell {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.3);
    max-height: min(90vh, 50rem);
    overflow-y: auto;
    padding: 1.25rem;
}

.quick-create-header,
.quick-grid-item {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.quick-create-header {
    border-bottom: 1px solid var(--app-border);
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.quick-grid-fieldset {
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.quick-grid-item {
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding: 0.65rem;
}

.quick-create-toast {
    background: #166534;
    border-radius: 0.7rem;
    bottom: 1.25rem;
    color: #fff;
    max-width: calc(100vw - 2rem);
    padding: 0.75rem 1rem;
    position: fixed;
    right: 1.25rem;
    z-index: 1090;
}

.technical-sheet-item details > summary,
details.app-card > summary {
    cursor: pointer;
}

.technical-sheet-item [data-advanced-summary] {
    color: var(--app-muted);
    margin-bottom: 0;
    min-height: 2.4rem;
}

@media (max-width: 767.98px) {
    .technical-sheet-item {
        padding: 1rem;
    }

    .technical-sheet-item .btn[data-remove-form] {
        flex-shrink: 0;
    }
}

.app-sidebar-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.85rem;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 0.75rem;
}

.app-sidebar-status strong,
.app-sidebar-status small {
    display: block;
    line-height: 1.25;
}

.app-sidebar-status strong {
    font-size: 0.73rem;
}

.app-sidebar-status small {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.65rem;
}

.app-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    flex: 0 0 0.5rem;
    background: var(--app-success);
    border-radius: 50%;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.12);
}

.app-page {
    min-width: 0;
}

.app-topbar {
    display: flex;
    min-height: 5rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--app-border);
    backdrop-filter: blur(12px);
}

.app-topbar-context {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.app-topbar-context small,
.app-topbar-context strong {
    display: block;
    line-height: 1.2;
}

.app-topbar-context small {
    margin-bottom: 0.2rem;
    color: var(--app-muted);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-topbar-context strong {
    font-size: 0.94rem;
}

.app-menu-button,
.app-logout-button {
    display: inline-grid;
    min-width: 2.6rem;
    min-height: 2.6rem;
    place-items: center;
    color: var(--app-muted-strong);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 0.65rem;
    transition:
        color var(--app-transition),
        border-color var(--app-transition),
        background-color var(--app-transition);
}

.app-menu-button:hover,
.app-logout-button:hover {
    color: var(--app-primary);
    background: var(--app-primary-soft);
    border-color: #bfdbfe;
}

.app-menu-button svg,
.app-logout-button svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.app-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.app-user small,
.app-user strong {
    display: block;
    line-height: 1.2;
}

.app-user small {
    margin-bottom: 0.15rem;
    color: var(--app-muted);
    font-size: 0.66rem;
}

.app-user strong {
    max-width: 10rem;
    overflow: hidden;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-avatar {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    color: #1d4ed8;
    background: linear-gradient(145deg, #dbeafe, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: 0.7rem;
    font-weight: 750;
}

.app-logout-button {
    display: inline-flex;
    gap: 0.45rem;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.app-content {
    width: 100%;
    max-width: 96rem;
    margin: 0 auto;
    padding: 1.25rem;
}

.app-breadcrumb {
    margin-bottom: 1.25rem;
    color: var(--app-muted);
    font-size: 0.77rem;
}

.app-messages {
    margin-bottom: 1.25rem;
}

.app-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.85rem 1rem;
    border-width: 1px;
    border-radius: var(--app-radius-sm);
    font-size: 0.84rem;
    box-shadow: var(--app-shadow-sm);
}

.app-alert-icon {
    display: grid;
    width: 1.45rem;
    height: 1.45rem;
    flex: 0 0 1.45rem;
    place-items: center;
    color: var(--app-white);
    background: var(--app-muted-strong);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
}

.alert-danger .app-alert-icon {
    background: #b42332;
}

.alert-warning .app-alert-icon {
    background: #9a6700;
}

.alert-success .app-alert-icon {
    background: #067647;
}

.dashboard-hero {
    position: relative;
    display: flex;
    min-height: 15rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    overflow: hidden;
    margin-bottom: 2.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--app-white);
    background:
        radial-gradient(circle at 90% 20%, rgba(56, 189, 248, 0.24), transparent 24%),
        linear-gradient(120deg, #0f172a 0%, #172554 50%, #1e3a8a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--app-radius-lg);
    box-shadow: var(--app-shadow);
}

.dashboard-hero::after {
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 19rem;
    height: 19rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.dashboard-hero-content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
}

.dashboard-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.45rem 0.7rem;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(147, 197, 253, 0.18);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboard-badge > span {
    width: 0.4rem;
    height: 0.4rem;
    background: var(--app-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.12);
}

.dashboard-hero .app-page-eyebrow {
    color: #7dd3fc;
}

.dashboard-hero h1 {
    margin-bottom: 0.7rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 750;
    letter-spacing: -0.045em;
}

.dashboard-hero p {
    max-width: 35rem;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.65;
}

.dashboard-official-brand {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 10rem;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}

.dashboard-official-brand img {
    display: block;
    width: 9.5rem;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(191, 219, 254, 0.2);
    border-radius: 1rem;
    box-shadow: 0 1.25rem 2.75rem rgba(2, 6, 23, 0.28);
}

.dashboard-official-brand span {
    color: #bfdbfe;
    font-size: 0.64rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.app-page-eyebrow,
.auth-eyebrow,
.app-card-kicker,
.section-kicker {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--app-primary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

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

.section-heading h2 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 720;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 0;
    color: var(--app-muted);
}

.app-card {
    padding: 1.4rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-sm);
    transition:
        transform var(--app-transition),
        border-color var(--app-transition),
        box-shadow var(--app-transition);
}

.app-card:hover {
    border-color: var(--app-border-strong);
    box-shadow: var(--app-shadow);
    transform: translateY(-3px);
}

.app-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.1rem;
    font-weight: 720;
    letter-spacing: -0.015em;
}

.app-card p {
    margin: 0;
    color: var(--app-muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

.app-search {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.app-table {
    margin-bottom: 0;
    font-size: 0.84rem;
}

.app-table th {
    color: var(--app-muted);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-table td strong,
.app-table td small {
    display: block;
}

.app-table td small {
    margin-top: 0.2rem;
    color: var(--app-muted);
}

.app-table td:first-child a {
    display: inline-block;
    padding: 0.15rem 0.3rem;
    border-radius: 0.3rem;
    font-weight: 750;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.16em;
}

.app-table td:first-child a:hover,
.app-table td:first-child a:focus-visible {
    background: var(--app-primary-soft);
}

.app-badge {
    display: inline-flex;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 750;
}

.app-badge-active {
    color: #067647;
    background: #ecfdf3;
}

.app-badge-inactive,
.app-badge-suspended {
    color: #b42318;
    background: #fef3f2;
}

.catalog-brand-logo {
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    background: #fff;
    object-fit: contain;
    padding: 0.35rem;
}

.catalog-brand-logo-detail {
    width: min(12rem, 100%);
    max-height: 8rem;
    object-fit: contain;
}

.catalog-color-swatch {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    vertical-align: middle;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    background: var(--bs-tertiary-bg);
}

.catalog-color-swatch-lg {
    width: 2rem;
    height: 2rem;
}

.catalog-product-thumb {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 3.5rem;
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    background: #fff;
    object-fit: contain;
}

.catalog-product-image {
    display: flex;
    width: 100%;
    min-height: 16rem;
    max-height: 24rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    background: #fff;
    color: var(--app-muted);
    object-fit: contain;
}

.catalog-product-placeholder {
    background: #f8fafc;
    color: #94a3b8;
}

.module-card {
    position: relative;
    overflow: hidden;
    transition: border-color var(--app-transition), box-shadow var(--app-transition), transform var(--app-transition);
}

.module-card-link:hover .module-card {
    border-color: #bfdbfe;
    box-shadow: 0 1rem 2.25rem rgb(15 23 42 / 10%);
    transform: translateY(-2px);
}

.module-card-link:focus-visible {
    border-radius: 1rem;
    outline: 3px solid rgb(37 99 235 / 28%);
    outline-offset: 3px;
}

.module-card::after {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
    width: 6rem;
    height: 6rem;
    background: var(--app-primary-soft);
    border-radius: 50%;
    content: "";
    opacity: 0;
    transition: opacity var(--app-transition);
}

.module-card-link:hover .module-card::after,
.module-card-link:focus-visible .module-card::after {
    opacity: 0.7;
}

.module-card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.module-icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 0.75rem;
}

.module-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.module-icon-blue {
    color: #2563eb;
    background: #eff6ff;
}

.module-icon-cyan {
    color: #0284c7;
    background: #f0f9ff;
}

.module-icon-slate {
    color: #475569;
    background: #f1f5f9;
}

.module-status {
    padding: 0.35rem 0.55rem;
    color: var(--app-muted);
    background: var(--app-surface-soft);
    border: 1px solid var(--app-border);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-status-attention {
    color: #0369a1;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.module-metrics {
    display: flex;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    margin-bottom: 0;
    color: var(--app-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.module-metrics span:not(:last-child)::after {
    margin-left: 0.8rem;
    color: #cbd5e1;
    content: "·";
}

.module-empty {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    color: var(--app-muted);
}

@media (max-width: 575.98px) {
    .module-metrics {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .module-metrics span::after {
        display: none;
    }
}

.auth-shell {
    min-height: 100vh;
    background: var(--app-bg);
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    background: var(--app-surface);
}

.auth-showcase {
    position: relative;
    display: none;
    overflow: hidden;
    color: var(--app-white);
    background:
        radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.2), transparent 30%),
        linear-gradient(145deg, #0f172a 0%, #172554 55%, #1e3a8a 100%);
}

.auth-showcase-content {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: clamp(2.5rem, 5vw, 4.5rem);
}

.auth-official-brand {
    width: min(100%, 14rem);
}

.auth-official-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 14rem;
    object-fit: contain;
    object-position: center;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3rem rgba(2, 6, 23, 0.25);
}

.auth-product-name {
    display: block;
    margin-top: 0.8rem;
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.auth-showcase-copy {
    max-width: 36rem;
    margin: auto 0;
}

.auth-showcase-kicker {
    display: block;
    margin-bottom: 1.2rem;
    color: #7dd3fc;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-showcase-copy h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.2rem, 4vw, 4.2rem);
    font-weight: 750;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.auth-showcase-copy p {
    max-width: 31rem;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.7;
}

.auth-showcase-footer {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 650;
}

.auth-pattern {
    position: absolute;
    right: -8rem;
    bottom: -10rem;
    width: 30rem;
    height: 30rem;
    opacity: 0.16;
    transform: rotate(20deg);
}

.auth-pattern span {
    position: absolute;
    inset: 0;
    border: 1px solid #7dd3fc;
    border-radius: 4rem;
}

.auth-pattern span:nth-child(2) {
    inset: 3.5rem;
}

.auth-pattern span:nth-child(3) {
    inset: 7rem;
}

.auth-pattern span:nth-child(4) {
    inset: 10.5rem;
}

.auth-form-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, 0.07), transparent 28%),
        var(--app-surface);
}

.auth-form-wrap {
    width: min(100%, 27rem);
}

.auth-mobile-brand {
    display: flex;
    min-height: 2.75rem;
    align-items: center;
    margin-bottom: 3rem;
    color: var(--app-ink);
    border-left: 3px solid var(--app-primary);
    padding-left: 0.85rem;
}

.auth-mobile-brand strong {
    font-size: 1rem;
}

.auth-heading {
    margin-bottom: 2rem;
}

.auth-heading h1 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.8rem, 5vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -0.04em;
}

.auth-heading > p:last-child {
    margin: 0;
    color: var(--app-muted);
}

.form-field {
    margin-bottom: 1.15rem;
}

.form-label {
    margin-bottom: 0.45rem;
    color: var(--app-muted-strong);
    font-size: 0.76rem;
    font-weight: 700;
}

.input-shell {
    display: flex;
    min-height: 3.15rem;
    align-items: center;
    background: var(--app-surface);
    border: 1px solid var(--app-border-strong);
    border-radius: 0.72rem;
    box-shadow: var(--app-shadow-sm);
    transition:
        border-color var(--app-transition),
        box-shadow var(--app-transition);
}

.input-shell:focus-within {
    border-color: var(--app-primary);
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.11);
}

.input-shell.is-invalid {
    border-color: #dc3545;
}

.input-icon {
    display: grid;
    width: 3rem;
    flex: 0 0 3rem;
    place-items: center;
    color: var(--app-muted);
}

.input-icon svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.input-shell .form-control {
    min-height: 3rem;
    padding: 0.75rem 0.9rem 0.75rem 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.88rem;
}

.input-shell .form-control::placeholder {
    color: #94a3b8;
}

.auth-submit {
    display: flex;
    width: 100%;
    min-height: 3.15rem;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.auth-submit svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transition: transform var(--app-transition);
}

.auth-submit:hover svg {
    transform: translateX(3px);
}

.auth-support {
    margin: 1.5rem 0 0;
    color: var(--app-muted);
    font-size: 0.7rem;
    text-align: center;
}

.auth-messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    left: 1rem;
    z-index: 1080;
    max-width: 32rem;
    margin-left: auto;
}

@media (min-width: 992px) {
    .app-shell {
        display: grid;
        grid-template-columns: 17.5rem minmax(0, 1fr);
    }

    .app-sidebar {
        position: sticky;
        top: 0;
        height: auto;
        min-height: 100vh;
    }

    .app-sidebar-body {
        min-height: calc(100vh - 13rem);
    }

    .app-content {
        padding: 2rem;
    }

    .auth-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(27rem, 0.85fr);
    }

    .auth-showcase {
        display: block;
    }

    .auth-mobile-brand {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .app-sidebar-header {
        min-height: 12rem;
    }

    .app-sidebar-logo {
        width: 8rem;
    }

    .app-sidebar-body {
        height: calc(100% - 12rem);
    }

    .app-sidebar-header .btn-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .app-topbar {
        min-height: 4.5rem;
        padding: 0.65rem 1rem;
    }

    .app-topbar-context > div {
        display: none;
    }

    .app-user-avatar {
        width: 2.35rem;
        height: 2.35rem;
    }

    .app-content {
        padding: 1rem;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        margin-bottom: 1.75rem;
        padding: 1.5rem;
    }

    .dashboard-badge {
        margin-bottom: 1.2rem;
    }

    .dashboard-official-brand {
        align-self: center;
        flex-basis: auto;
    }

    .dashboard-official-brand img {
        width: 7.5rem;
    }

    .auth-form-panel {
        padding: 1.5rem 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
.route-step-list { display: grid; gap: 1rem; }
.route-step-card { display: grid; grid-template-columns: 2rem minmax(14rem, 1fr) minmax(12rem, .7fr) auto; gap: 1rem; align-items: start; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; }
.route-step-number { font-size: 1.25rem; }
.route-step-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
@media (max-width: 767.98px) { .route-step-card { grid-template-columns: 2rem 1fr; } .route-step-main, .route-step-options, .route-step-actions { grid-column: 2; } .route-step-actions .btn { min-height: 2.5rem; } }
