@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --navy-980: #06152d;
    --navy-950: #081e3b;
    --navy-900: #0d2b52;
    --navy-800: #183f69;
    --navy-700: #31587f;
    --slate-500: #6d87a6;
    --slate-400: #8ea4be;
    --slate-300: #b7c7d8;
    --slate-200: #d9e5f0;
    --slate-100: #eef5fb;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: #ffffff;
    --teal-500: #1fc8c8;
    --teal-400: #43d8d0;
    --teal-300: #7fe9df;
    --teal-100: rgba(31, 200, 200, 0.12);
    --emerald-500: #21b981;
    --amber-500: #f5a524;
    --red-500: #ef5f6c;
    --shadow-lg: 0 24px 70px rgba(7, 26, 55, 0.16);
    --shadow-md: 0 16px 40px rgba(10, 33, 62, 0.12);
    --border-soft: rgba(13, 43, 82, 0.1);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

/* Batch Item Status */
.batch-status-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.batch-status-title-row,
.batch-table-actions,
.selected-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.batch-status-title-row h2 {
    margin: 0 0 8px;
    color: var(--navy-950);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.batch-status-title-row p,
.batch-status-page .panel-header p {
    margin: 0;
    color: var(--slate-500);
}

.batch-status-top-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.25fr) minmax(300px, 1fr);
    gap: 18px;
}

.lookup-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.lookup-mode-tabs .button.active {
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.batch-match-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.batch-match-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy-950);
    cursor: pointer;
    text-align: left;
}

.batch-match-option small {
    display: block;
    margin-top: 4px;
    color: var(--slate-500);
}

.batch-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0;
}

.batch-summary-list div {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.batch-summary-list dt {
    margin-bottom: 5px;
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 800;
}

.batch-summary-list dd {
    margin: 0;
    color: var(--navy-950);
    font-weight: 850;
}

.validation-state-banner {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.96);
}

.validation-state-banner strong {
    font-size: 1.55rem;
    letter-spacing: 0.03em;
}

.validation-state-banner.active {
    border-color: rgba(33, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(33, 185, 129, 0.12), rgba(255, 255, 255, 0.96));
    color: #0f7d56;
}

.validation-state-banner.pending {
    border-color: rgba(245, 165, 36, 0.34);
    background: linear-gradient(135deg, rgba(245, 165, 36, 0.14), rgba(255, 255, 255, 0.96));
    color: #9a5f08;
}

.validation-state-banner.locked {
    border-color: rgba(239, 95, 108, 0.34);
    background: linear-gradient(135deg, rgba(239, 95, 108, 0.14), rgba(255, 255, 255, 0.96));
    color: #b83242;
}

.batch-status-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 18px;
    align-items: start;
}

.selected-item-panel {
    position: sticky;
    top: 20px;
}

.status-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.status-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: #fff;
    color: var(--navy-800);
    font-weight: 850;
    cursor: pointer;
}

.status-filter-chip span {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(13, 43, 82, 0.08);
    color: var(--navy-800);
    text-align: center;
}

.status-filter-chip.active {
    border-color: rgba(37, 99, 235, 0.42);
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.batch-status-table th:first-child,
.batch-status-table td:first-child {
    width: 42px;
    text-align: center;
}

.batch-status-row.selected {
    background: rgba(37, 99, 235, 0.08);
    box-shadow: inset 4px 0 0 #2563eb;
}

.batch-status-row.closed,
.batch-status-row.wasted {
    background: rgba(100, 116, 139, 0.08);
    color: rgba(13, 43, 82, 0.72);
}

.batch-status-row.closed td,
.batch-status-row.wasted td {
    background: rgba(100, 116, 139, 0.08);
    border-bottom-color: rgba(100, 116, 139, 0.18);
}

.batch-status-row.closed td:not(:last-child),
.batch-status-row.wasted td:not(:last-child) {
    filter: grayscale(0.25);
}

.batch-status-row.closed:not(.selected),
.batch-status-row.wasted:not(.selected) {
    opacity: 0.72;
}

.batch-status-row.closed.selected {
    opacity: 1;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(100, 116, 139, 0.06));
}

.batch-status-row.closed.selected td {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(100, 116, 139, 0.06));
}

.batch-status-row.quarantined {
    background: rgba(245, 158, 11, 0.1);
    color: rgba(92, 59, 5, 0.92);
}

.batch-status-row.quarantined td {
    background: rgba(245, 158, 11, 0.1);
    border-bottom-color: rgba(245, 158, 11, 0.22);
}

.batch-status-row.quarantined td:not(:last-child) {
    filter: none;
}

.batch-status-row.quarantined:not(.selected) {
    opacity: 0.9;
}

.batch-status-row.quarantined.selected,
.batch-status-row.quarantined.selected td {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1), rgba(245, 158, 11, 0.12));
}

.batch-status-note-cell {
    max-width: 220px;
    color: var(--slate-600);
}

.link-button {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-weight: 850;
    cursor: pointer;
}

.full-width {
    width: 100%;
}

.batch-status-lower-grid {
    display: grid;
    grid-template-columns: 1.35fr 1.15fr 0.9fr 1fr;
    gap: 18px;
}

.status-legend-grid,
.quick-action-stack,
.business-rule-list {
    display: grid;
    gap: 12px;
}

.status-legend-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.status-legend-item span:last-child,
.business-rule-list li,
.correction-card p {
    color: var(--slate-500);
    line-height: 1.55;
}

.business-rule-list {
    margin: 0;
    padding-left: 18px;
}

.batch-status-confirm-body {
    display: grid;
    gap: 12px;
    color: var(--navy-800);
}

.batch-status-confirm-body ul {
    max-height: 180px;
    overflow: auto;
    margin: 0;
    padding: 14px 14px 14px 32px;
    border-radius: 14px;
    background: rgba(13, 43, 82, 0.05);
}

.warning-copy {
    color: #b67610;
    font-weight: 800;
}

@media (max-width: 1180px) {
    .batch-status-top-grid,
    .batch-status-workspace,
    .batch-status-lower-grid {
        grid-template-columns: 1fr;
    }

    .selected-item-panel {
        position: static;
    }
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--navy-900);
    background:
        radial-gradient(circle at top left, rgba(67, 216, 208, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(8, 30, 59, 0.1), transparent 24%),
        linear-gradient(180deg, #f8fbfe 0%, #edf4fa 100%);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

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

.page-shell {
    min-height: 100vh;
    padding: 28px;
}

.glass-frame {
    max-width: 1540px;
    margin: 0 auto;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(160deg, var(--navy-980), var(--navy-900));
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
    width: 42px;
    height: 42px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.brand-title {
    margin: 0;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.brand-title .lab {
    color: var(--navy-950);
}

.brand-title .trace {
    background: linear-gradient(90deg, #1ebad0 0%, #1fd1c8 52%, #48d9c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-title .uk {
    color: var(--slate-400);
}

.brand-tagline {
    letter-spacing: 0.38em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: var(--navy-900);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 800;
}

.pill::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--teal-400), var(--teal-500));
    box-shadow: 0 0 0 4px rgba(31, 200, 200, 0.12);
}

.pill.teal {
    background: rgba(31, 200, 200, 0.12);
    color: #117d93;
}

.pill.slate {
    background: rgba(13, 43, 82, 0.06);
    color: var(--navy-900);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.button.primary {
    color: #ffffff;
    background: linear-gradient(90deg, #0f8aa0 0%, #0d2b52 100%);
    box-shadow: 0 16px 36px rgba(8, 30, 59, 0.16);
}

.button.secondary {
    color: var(--navy-900);
    background: rgba(255, 255, 255, 0.84);
    border-color: var(--border-soft);
}

.button.ghost {
    color: var(--navy-800);
    background: rgba(255, 255, 255, 0.62);
    border-color: rgba(13, 43, 82, 0.08);
}

.icon-button {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.84);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.card {
    border-radius: 26px;
    border: 1px solid var(--border-soft);
    background: var(--surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.card.soft-shadow {
    box-shadow: 0 12px 30px rgba(10, 33, 62, 0.08);
}

.top-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.section-title {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    letter-spacing: -0.04em;
    color: var(--navy-950);
}

.section-copy {
    margin: 10px 0 0;
    color: var(--slate-500);
    line-height: 1.65;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.82fr);
    gap: 26px;
    padding: 24px;
}

.login-panel {
    border-radius: 30px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(12px);
}

.login-showcase {
    padding: 34px 38px 30px;
    position: relative;
    overflow: hidden;
}

.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 40%),
        radial-gradient(circle at left center, rgba(67, 216, 208, 0.12), transparent 34%);
    pointer-events: none;
}

.showcase-content,
.showcase-preview {
    position: relative;
    z-index: 1;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.showcase-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(2.5rem, 4vw, 4.25rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: var(--navy-950);
}

.showcase-copy .accent {
    color: #169eac;
}

.showcase-copy p {
    margin: 0;
    max-width: 58ch;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--slate-500);
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.feature-chip {
    padding-right: 12px;
    border-right: 1px solid rgba(13, 43, 82, 0.08);
}

.feature-chip:last-child {
    border-right: 0;
    padding-right: 0;
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(32, 199, 201, 0.2);
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.76);
    color: #128195;
    margin-bottom: 12px;
}

.feature-chip strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--navy-950);
}

.feature-chip span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--slate-500);
}

.showcase-preview {
    margin-top: 8px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(238, 245, 251, 0.98));
}

.showcase-preview img {
    border-radius: 18px;
    box-shadow: 0 18px 32px rgba(8, 30, 59, 0.12);
}

.login-card {
    padding: 30px 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.login-header .brand-mark {
    width: 76px;
    height: 76px;
    border-radius: 22px;
}

.login-header h2 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -0.05em;
    color: var(--navy-950);
}

.login-header p {
    margin: -6px 0 0;
    color: var(--slate-500);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-group label {
    font-weight: 800;
    color: var(--navy-950);
}

.input-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(13, 43, 82, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--slate-500);
}

.input-shell input,
.input-shell select,
.input-shell textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy-900);
}

.input-shell textarea {
    min-height: 124px;
    padding: 16px 0;
    resize: vertical;
}

.input-shell svg {
    flex: 0 0 auto;
    color: var(--slate-400);
}

.field-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-900);
    font-weight: 700;
}

.toggle-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0f8ea3;
}

.text-link {
    color: #118aa0;
    text-decoration: none;
    font-weight: 700;
}

.login-help,
.login-assurance {
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(13, 43, 82, 0.08);
}

.login-help p,
.login-assurance p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.6;
}

.login-help strong,
.login-assurance strong {
    color: var(--navy-900);
}

.assurance-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(31, 200, 200, 0.1);
    color: #11869a;
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 14px 16px;
    color: var(--navy-800);
    font-size: 0.92rem;
}

.login-footer .footer-note {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.login-footer .footer-note strong {
    color: var(--navy-900);
}

.app-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 100vh;
}

.support-session-banner {
    align-items: center;
    background: linear-gradient(135deg, #08345f 0%, #0f766e 100%);
    border: 1px solid rgba(94, 234, 212, 0.35);
    border-radius: 18px;
    bottom: 18px;
    box-shadow: 0 18px 45px rgba(5, 24, 44, 0.28);
    color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    left: 288px;
    padding: 0.9rem 1rem;
    position: fixed;
    right: 18px;
    z-index: 80;
}

.support-session-banner div {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
}

.support-session-banner span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}

.support-session-banner button {
    background: rgba(255, 255, 255, 0.96);
    border: 0;
    border-radius: 999px;
    color: #08345f;
    cursor: pointer;
    font-weight: 900;
    padding: 0.65rem 0.9rem;
    white-space: nowrap;
}

.sidebar {
    background: linear-gradient(180deg, #071e3c 0%, #0c2b52 100%);
    color: #ffffff;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar .brand-title {
    font-size: 2rem;
}

.sidebar .brand-title .lab,
.sidebar .brand-tagline {
    color: rgba(255, 255, 255, 0.95);
}

.sidebar .brand-title .uk {
    color: rgba(221, 233, 244, 0.68);
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-label {
    padding: 0 14px;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(223, 235, 246, 0.52);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(90deg, rgba(31, 200, 200, 0.22), rgba(255, 255, 255, 0.08));
    color: #ffffff;
}

.nav-link svg {
    flex: 0 0 auto;
}

.trial-feedback-trigger {
    width: 100%;
    border: 1px solid rgba(89, 228, 216, 0.22);
    background: rgba(89, 228, 216, 0.1);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.trial-feedback-trigger:hover {
    background: linear-gradient(90deg, rgba(31, 200, 200, 0.28), rgba(255, 255, 255, 0.1));
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section summary {
    list-style: none;
}

.nav-section summary::-webkit-details-marker {
    display: none;
}

.nav-section-summary {
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.nav-section-copy {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.nav-section-chevron {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    transition: transform 160ms ease;
}

.nav-section[open] .nav-section-chevron {
    transform: rotate(180deg);
}

.nav-subgroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 12px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer strong,
.sidebar-footer span {
    display: block;
}

.sidebar-footer strong {
    margin-bottom: 6px;
}

.sidebar-footer span {
    color: rgba(231, 241, 250, 0.74);
    font-size: 0.92rem;
}

.app-main {
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(67, 216, 208, 0.14), transparent 26%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.68), rgba(238, 245, 251, 0.92));
}

.topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.search-shell {
    flex: 1 1 420px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(10, 33, 62, 0.08);
}

.search-shell input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.topbar-select {
    min-width: 210px;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.84);
    color: var(--navy-900);
}

.topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.user-menu {
    position: relative;
}

.user-menu[open] {
    z-index: 20;
}

.user-menu summary {
    list-style: none;
    min-width: 240px;
    min-height: 58px;
    padding: 10px 18px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.84);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    color: var(--navy-950);
    box-shadow: 0 10px 26px rgba(10, 33, 62, 0.08);
}

.user-menu summary::-webkit-details-marker {
    display: none;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(180deg, #0ea7b8, #1fc8c8);
    color: #ffffff;
    font-weight: 800;
    flex: 0 0 auto;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-menu-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
    flex: 1 1 auto;
}

.user-menu-copy strong,
.user-menu-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-copy small {
    color: var(--slate-500);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-photo-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.profile-photo-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #0f8aa0, #0d2b52);
    color: #ffffff;
    font-size: 2rem;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(13, 43, 82, 0.16);
}

.profile-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.profile-photo-actions small {
    flex: 1 1 100%;
    color: var(--muted);
}

.user-menu-chevron {
    flex: 0 0 auto;
    color: var(--slate-500);
    transition: transform 0.18s ease;
}

.user-menu[open] .user-menu-chevron {
    transform: rotate(180deg);
}

.user-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(10, 33, 62, 0.14);
}

.user-menu-meta {
    padding: 10px 12px 12px;
    border-bottom: 1px solid rgba(13, 43, 82, 0.08);
    margin-bottom: 8px;
}

.user-menu-meta strong,
.user-menu-meta span {
    display: block;
}

.user-menu-meta span {
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 0.92rem;
}

.user-menu-link,
.user-menu-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--navy-950);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.user-menu-link:hover,
.user-menu-button:hover {
    background: rgba(31, 200, 200, 0.08);
}

.user-menu-form {
    margin: 0;
}

.readonly-chip {
    display: inline-flex;
    align-items: center;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--border-soft);
    background: rgba(241, 246, 251, 0.92);
    color: var(--slate-500);
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 20px;
}

.main-stack,
.side-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    padding: 22px;
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-header h2,
.panel-header h3 {
    margin: 0;
    color: var(--navy-950);
}

.panel-header p {
    margin: 8px 0 0;
    color: var(--slate-500);
    line-height: 1.65;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.86);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin: 12px 0 8px;
    color: var(--navy-950);
}

.stat-card span,
.stat-card small {
    color: var(--slate-500);
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-weight: 800;
    color: #ffffff;
}

.stat-badge.teal {
    background: linear-gradient(180deg, #0ea7b8, #1fc8c8);
}

.stat-badge.navy {
    background: linear-gradient(180deg, #204a7f, #0d2b52);
}

.stat-badge.amber {
    background: linear-gradient(180deg, #ffbb44, #f59c1b);
}

.stat-badge.purple {
    background: linear-gradient(180deg, #8573d8, #6255c9);
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.shortcut-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 252, 0.94));
    text-decoration: none;
}

.shortcut-card h3 {
    margin: 12px 0 10px;
    color: var(--navy-950);
}

.shortcut-card p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.6;
}

.preview-card {
    overflow: hidden;
}

.preview-card img {
    border-radius: 18px;
}

.list-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(13, 43, 82, 0.07);
}

.list-item > * {
    min-width: 0;
}

.list-item strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy-950);
}

.list-item span {
    color: var(--slate-500);
    line-height: 1.55;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.status.active {
    background: rgba(33, 185, 129, 0.12);
    color: #16885f;
}

.status.pending {
    background: rgba(245, 165, 36, 0.12);
    color: #b67610;
}

.status.locked {
    background: rgba(239, 95, 108, 0.12);
    color: #c54c58;
}

.status.slate {
    background: rgba(13, 43, 82, 0.08);
    color: var(--navy-800);
}

.status.info {
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.side-stack .list-item .status {
    max-width: 54%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 20px;
}

.booking-in-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
}

.configuration-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
}

.terminology-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
}

.terminology-group {
    margin-bottom: 18px;
    overflow: hidden;
}

.terminology-table-wrap {
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-set {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-set label {
    font-weight: 800;
    color: var(--navy-950);
}

.field-set small {
    color: var(--slate-500);
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.selection-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 92px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.76);
}

.selection-card input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #0f8ea3;
}

.selection-card strong {
    display: block;
    margin-bottom: 5px;
    color: var(--navy-950);
}

.selection-card span {
    color: var(--slate-500);
    line-height: 1.45;
    font-size: 0.92rem;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.permission-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 128px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 251, 0.92));
}

.permission-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.permission-head label {
    font-weight: 800;
}

.permission-card input {
    width: 18px;
    height: 18px;
    accent-color: #0f8ea3;
}

.permission-card p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.5;
    font-size: 0.92rem;
}

.summary-card {
    position: static;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-metric {
    padding: 15px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(13, 43, 82, 0.08);
}

.summary-metric strong,
.summary-metric span {
    display: block;
}

.summary-metric strong {
    margin-bottom: 5px;
    color: var(--navy-950);
}

.summary-metric span {
    color: var(--slate-500);
}

.email-alert-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.email-alert-scope-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.email-alert-scope-card {
    min-height: 78px;
    padding: 16px 18px;
}

.email-alert-scope-card strong {
    margin-bottom: 0;
}

.email-alert-user-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.email-alert-user-card {
    min-height: 102px;
}

.email-alert-rule-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.email-alert-rule-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 248, 252, 0.92));
}

.email-alert-rule-row.expanded {
    border-color: rgba(31, 200, 200, 0.24);
    box-shadow: 0 10px 24px rgba(10, 33, 62, 0.06);
}

.email-alert-rule-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.email-alert-rule-header strong {
    display: block;
    color: var(--navy-950);
    font-size: 1.08rem;
    margin-bottom: 6px;
}

.email-alert-rule-header p {
    margin: 0;
    max-width: 72ch;
    color: var(--slate-500);
    line-height: 1.6;
}

.email-alert-rule-toggle {
    flex: 0 0 auto;
    padding-top: 2px;
}

.email-alert-rule-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.email-alert-rule-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--navy-950);
    cursor: pointer;
}

.email-alert-rule-expand .stock-collapsible-arrow {
    transition: transform 160ms ease;
}

.email-alert-rule-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px 16px;
    align-items: start;
    padding-top: 2px;
}

.email-alert-rule-fields[hidden] {
    display: none !important;
}

.email-alert-rule-note-field {
    grid-column: 1 / -1;
}

.validation-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.validation-hero-card {
    padding-bottom: 18px;
}

.validation-hero-header,
.validation-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.validation-title-row {
    justify-content: flex-start;
    align-items: center;
    margin-top: 4px;
}

.validation-title-row h2 {
    margin: 0;
    font-size: clamp(2rem, 2.2vw, 2.6rem);
    letter-spacing: -0.05em;
    color: var(--navy-950);
}

.validation-hero-header p {
    margin: 10px 0 0;
    max-width: 80ch;
}

.validation-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.validation-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.validation-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 20px;
    align-items: start;
}

.validation-side-rail {
    gap: 18px;
    min-width: 0;
}

.validation-side-rail .side-card {
    padding: 22px;
}

.validation-side-rail .side-card-header {
    gap: 8px;
}

.validation-side-rail .side-card-header h3 {
    margin-bottom: 6px;
}

.validation-side-rail .side-card-header p,
.validation-side-rail .summary-list span,
.validation-side-rail .list-card span {
    overflow-wrap: anywhere;
}

.validation-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.validation-scope-note {
    margin: -6px 0 18px;
    color: var(--slate-500);
    font-size: 0.92rem;
}

.validation-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(13, 43, 82, 0.1);
    background: rgba(255, 255, 255, 0.8);
    color: var(--slate-500);
    font-weight: 800;
    cursor: pointer;
}

.validation-tab strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(13, 43, 82, 0.06);
    color: var(--navy-800);
    font-size: 0.8rem;
}

.validation-tab.active {
    color: #117d93;
    border-color: rgba(31, 200, 200, 0.28);
    background: rgba(31, 200, 200, 0.12);
}

.validation-toolbar,
.validation-advanced-filters {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) repeat(4, minmax(150px, 0.45fr)) auto auto;
    gap: 12px;
    align-items: center;
}

.validation-advanced-filters {
    grid-template-columns: repeat(5, minmax(0, 1fr)) 170px;
    margin-top: 12px;
}

.validation-search-shell {
    min-width: 0;
}

.validation-filter-toggle {
    position: relative;
}

.validation-filter-toggle.active {
    border-color: rgba(31, 200, 200, 0.28);
    background: rgba(31, 200, 200, 0.1);
}

.validation-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--navy-900);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
}

.validation-queue-wrap {
    margin-top: 16px;
}

.validation-queue-table {
    min-width: 1500px;
}

.validation-col-check {
    width: 44px;
}

.validation-col-actions {
    width: 220px;
}

.validation-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.validation-row-action,
.validation-row-summary {
    min-width: 94px;
}

.validation-secondary-row {
    display: block;
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 0.83rem;
    line-height: 1.45;
}

.validation-negative {
    color: #d94755;
    font-weight: 800;
}

.validation-empty-table {
    padding: 22px;
    color: var(--slate-500);
    line-height: 1.65;
}

.validation-bottom-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.validation-reminder-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.validation-reminder-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(13, 43, 82, 0.08);
}

.validation-reminder-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.validation-reminder-item span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.validation-reminder-item strong {
    color: var(--navy-900);
    font-size: 0.96rem;
    line-height: 1.55;
}

.validation-reminder-item.active span {
    background: var(--emerald-500);
}

.validation-reminder-item.pending span {
    background: var(--amber-500);
}

.validation-reminder-item.locked span {
    background: var(--red-500);
}

.validation-state-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    min-width: 0;
}

.validation-state-card strong {
    font-size: 1.16rem;
    color: var(--navy-950);
}

.validation-state-card p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.65;
}

.validation-selected-rule-list {
    margin-top: 12px;
}

.validation-selected-history {
    margin-top: 14px;
}

.validation-workflow-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding-left: 20px;
    color: var(--navy-900);
}

.validation-workflow-list li {
    padding-left: 4px;
}

.validation-workflow-list strong {
    display: block;
    margin-bottom: 4px;
}

.validation-workflow-list span {
    display: block;
    color: var(--slate-500);
    line-height: 1.55;
}

.validation-quick-actions {
    display: grid;
    gap: 10px;
}

.validation-modal[hidden] {
    display: none !important;
}

.validation-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 96;
    background: rgba(6, 21, 45, 0.48);
    backdrop-filter: blur(8px);
}

.validation-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 97;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    transform: translate(-50%, -50%);
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
}

.validation-summary-modal-dialog {
    width: min(860px, calc(100vw - 32px));
}

.validation-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.validation-modal-header h2 {
    margin: 16px 0 10px;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--navy-950);
}

.validation-modal-header p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.65;
}

.validation-modal-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(245, 249, 253, 0.88);
    margin-bottom: 20px;
}

.validation-modal-summary strong {
    color: var(--navy-950);
}

.validation-modal-summary span {
    color: var(--slate-500);
}

.validation-confirm-row {
    min-height: 56px;
    padding: 0 2px;
}

.validation-modal-actions {
    justify-content: flex-end;
}

.amend-layout .side-stack {
    gap: 18px;
}

.amend-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
}

.amend-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.amend-impact-grid .summary-metric strong {
    font-size: 0.96rem;
}

.amend-lock-list {
    margin-bottom: 4px;
}

.amend-match-panel {
    margin-top: 18px;
    padding: 18px;
}

.amend-match-table th:nth-child(1),
.amend-match-table td:nth-child(1) {
    min-width: 170px;
}

.amend-match-table th:nth-child(2),
.amend-match-table td:nth-child(2) {
    min-width: 220px;
}

.amend-items-table {
    min-width: 1020px;
}

.amend-items-table th:nth-child(1),
.amend-items-table td:nth-child(1) {
    width: 120px;
}

.amend-items-table th:nth-child(2),
.amend-items-table td:nth-child(2) {
    min-width: 200px;
}

.amend-items-table th:nth-child(8),
.amend-items-table td:nth-child(8) {
    min-width: 180px;
}

.amend-action-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.amend-action-grid .button {
    width: 100%;
}

.email-alert-rule-note-field .input-shell {
    min-height: 0;
    align-items: stretch;
}

.email-alert-rule-note-field textarea {
    min-height: 88px;
}

.email-alert-rule-row input[type="number"] {
    -moz-appearance: textfield;
}

.email-alert-rule-row input[type="number"]::-webkit-outer-spin-button,
.email-alert-rule-row input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(160px, 0.42fr));
    gap: 12px;
}

.stock-page-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
}

.modal-open {
    overflow: hidden;
}

.stock-hero-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stock-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 12px;
}

.stock-filter-actions {
    margin-top: 14px;
}

.stock-toggle {
    min-height: 58px;
}

.stock-data-table {
    min-width: 1240px;
}

.stock-data-table th:nth-child(1),
.stock-data-table td:nth-child(1) {
    width: 150px;
}

.stock-data-table th:nth-child(2),
.stock-data-table td:nth-child(2) {
    min-width: 240px;
}

.stock-data-table th:nth-child(5),
.stock-data-table td:nth-child(5) {
    width: 140px;
}

.stock-data-table th:nth-child(8),
.stock-data-table td:nth-child(8),
.stock-data-table th:nth-child(9),
.stock-data-table td:nth-child(9),
.stock-data-table th:nth-child(10),
.stock-data-table td:nth-child(10),
.stock-data-table th:nth-child(11),
.stock-data-table td:nth-child(11) {
    width: 120px;
    white-space: nowrap;
}

.stock-log-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.copy-link-button {
    border: 0;
    background: transparent;
    color: #1183a1;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.copy-link-button:hover {
    color: var(--navy-950);
}

.stock-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stock-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.stock-notes-panel {
    margin-top: 16px;
}

.stock-item-table {
    min-width: 900px;
}

.stock-collapsible[open] .stock-collapsible-arrow {
    transform: rotate(180deg);
}

.stock-collapsible-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
    cursor: pointer;
}

.stock-collapsible-summary::-webkit-details-marker {
    display: none;
}

.stock-collapsible-summary h3 {
    margin: 0 0 6px;
}

.stock-collapsible-summary p {
    margin: 0;
    color: var(--slate-500);
}

.stock-collapsible-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: var(--navy-950);
    transition: transform 160ms ease;
    flex: 0 0 auto;
}

.stock-collapsible .list-card {
    margin-top: 16px;
}

.stock-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.stock-modal[hidden] {
    display: none;
}

.stock-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 43, 0.42);
    backdrop-filter: blur(6px);
}

.stock-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 28px 70px rgba(13, 43, 82, 0.24);
}

.print-workflow-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.print-workflow-modal[hidden] {
    display: none;
}

.print-workflow-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 46, 0.44);
    backdrop-filter: blur(8px);
}

.print-workflow-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
}

.print-workflow-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.print-workflow-action-group {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(248, 251, 255, 0.88);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.print-workflow-action-group strong {
    font-size: 1rem;
    color: var(--navy-950);
}

.print-workflow-action-group--full {
    grid-column: 1 / -1;
}

.print-workflow-preview {
    margin-top: 20px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(248, 251, 255, 0.86);
}

.print-workflow-preview__meta {
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy-900);
}

.print-workflow-preview__empty {
    min-height: 120px;
    padding: 20px;
    border-radius: 18px;
    border: 1px dashed rgba(13, 43, 82, 0.14);
    color: var(--slate-500);
    line-height: 1.7;
    background: #fff;
}

.print-workflow-preview__frame {
    width: 100%;
    min-height: 620px;
    border: 1px solid rgba(13, 43, 82, 0.1);
    border-radius: 18px;
    background: #fff;
}

.data-table-wrap {
    overflow: auto;
    border-radius: 22px;
    border: 1px solid rgba(13, 43, 82, 0.08);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1080px;
    background: rgba(255, 255, 255, 0.88);
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(13, 43, 82, 0.07);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    position: sticky;
    top: 0;
    background: rgba(243, 248, 252, 0.98);
    color: var(--navy-950);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.data-table tbody tr {
    cursor: pointer;
    transition: background 160ms ease;
}

.data-table tbody tr:hover {
    background: rgba(31, 200, 200, 0.05);
}

.data-table tbody tr.selected {
    background: rgba(31, 200, 200, 0.12);
    box-shadow: inset 3px 0 0 #16a7b7;
}

.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(13, 43, 82, 0.06);
    color: var(--navy-800);
    font-size: 0.8rem;
    font-weight: 700;
}

.table-note {
    margin-top: 14px;
    color: var(--slate-500);
    font-size: 0.92rem;
}

.toast {
    position: fixed;
    right: 26px;
    bottom: 26px;
    min-width: 280px;
    max-width: 420px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(8, 30, 59, 0.94);
    color: #ffffff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 140;
}

.message-banner {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    font-weight: 700;
    line-height: 1.5;
}

.message-banner.error {
    background: rgba(239, 95, 108, 0.1);
    color: #b94854;
    border-color: rgba(239, 95, 108, 0.22);
}

.message-banner.success {
    background: rgba(33, 185, 129, 0.1);
    color: #187857;
    border-color: rgba(33, 185, 129, 0.2);
}

.subtle-note {
    color: var(--slate-500);
    font-size: 0.92rem;
    line-height: 1.6;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

body.modal-open {
    overflow: hidden;
}

.security-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(6, 21, 45, 0.42);
    backdrop-filter: blur(8px);
}

.security-modal {
    width: min(100%, 520px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}

.security-modal-header h2 {
    margin: 18px 0 10px;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--navy-950);
}

.security-modal-header p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.7;
}

.security-modal-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.security-modal-note {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(13, 43, 82, 0.05);
    color: var(--slate-500);
    font-size: 0.92rem;
    line-height: 1.55;
}

.security-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.trial-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 88;
    display: grid;
    place-items: center;
    padding: 24px;
}

.trial-feedback-modal[hidden] {
    display: none;
}

.trial-feedback-modal__backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(31, 200, 200, 0.22), transparent 28%),
        rgba(5, 20, 43, 0.48);
    backdrop-filter: blur(10px);
}

.trial-feedback-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 620px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}

.trial-feedback-modal__header,
.trial-feedback-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.trial-feedback-modal__dialog h2 {
    margin: 18px 0 10px;
    color: var(--navy-950);
    font-size: 2rem;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.trial-feedback-modal__dialog p {
    margin: 0 0 22px;
    color: var(--slate-500);
    line-height: 1.65;
}

.trial-feedback-modal__importance {
    padding: 13px 15px;
    border: 1px solid rgba(31, 200, 200, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(31, 200, 200, 0.11), rgba(13, 43, 82, 0.04));
    color: var(--navy-800) !important;
    font-weight: 800;
}

.trial-feedback-modal__dialog .field-set {
    margin-top: 16px;
}

.trial-feedback-modal__dialog .input-shell {
    min-height: 54px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.9);
}

.trial-feedback-modal__dialog select,
.trial-feedback-modal__dialog textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--navy-950);
    font: inherit;
}

.trial-feedback-modal__dialog select {
    min-height: 52px;
    cursor: pointer;
}

.trial-feedback-modal__dialog .textarea-shell {
    align-items: stretch;
    min-height: 162px;
    padding: 14px 16px;
}

.trial-feedback-modal__dialog textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.trial-feedback-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 22px;
    color: var(--slate-600);
    font-weight: 700;
    line-height: 1.5;
}

.trial-feedback-checkbox input {
    margin-top: 0.24rem;
}

.muted {
    color: var(--slate-500);
}

.hidden {
    display: none !important;
}

.crumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--slate-500);
    font-size: 0.92rem;
    font-weight: 700;
}

.crumbs span {
    color: var(--slate-300);
}

.compact {
    min-height: 44px;
    padding: 0 18px;
}

.input-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

.input-chip select {
    border: 0;
    background: transparent;
    color: var(--navy-900);
}

.designer-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.designer-header-card {
    padding-bottom: 18px;
}

.designer-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.designer-hero-copy {
    min-width: 0;
}

.designer-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-500);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.designer-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.designer-title-row h1 {
    margin: 0;
    color: var(--navy-950);
    font-size: clamp(2rem, 2.4vw, 2.5rem);
    letter-spacing: -0.05em;
}

.designer-subtitle {
    margin: 10px 0 0;
    color: var(--slate-500);
    line-height: 1.65;
}

.designer-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.designer-more-actions {
    position: relative;
}

.designer-more-actions summary {
    list-style: none;
}

.designer-more-actions summary::-webkit-details-marker {
    display: none;
}

.designer-more-actions-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    min-width: 220px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 34px rgba(10, 33, 62, 0.12);
    display: grid;
    gap: 6px;
}

.designer-more-action {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 0;
    background: rgba(240, 246, 251, 0.72);
    color: var(--navy-950);
    text-align: left;
    font-weight: 700;
    cursor: pointer;
}

.designer-more-action:hover {
    background: rgba(31, 200, 200, 0.1);
}

.designer-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.designer-palette,
.designer-canvas-panel,
.designer-inspector,
.designer-audit-card {
    border-radius: 28px;
}

.element-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.element-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--navy-900);
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.element-button:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 200, 200, 0.32);
    box-shadow: 0 12px 26px rgba(10, 33, 62, 0.08);
}

.element-button strong,
.element-button small {
    display: block;
}

.element-button small {
    margin-top: 4px;
    color: var(--slate-500);
}

.element-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(240, 246, 251, 0.88);
    color: var(--navy-900);
    font-weight: 800;
}

.element-icon.barcode {
    letter-spacing: 0.08em;
}

.designer-tip-card {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(31, 200, 200, 0.12);
    background: linear-gradient(180deg, rgba(236, 255, 252, 0.88), rgba(245, 255, 252, 0.92));
}

.designer-tip-card strong {
    display: block;
    margin-bottom: 6px;
    color: #117d93;
}

.designer-tip-card p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.55;
}

.designer-tabs,
.designer-inspector-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.designer-tab {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.82);
    color: var(--slate-500);
    font-weight: 800;
    cursor: pointer;
}

.designer-tab.active {
    color: #ffffff;
    border-color: rgba(16, 122, 145, 0.2);
    background: linear-gradient(135deg, #0f7b92, #0d4d7a);
}

.designer-tab.designer-tab-add {
    width: 42px;
    padding: 0;
    font-size: 1.25rem;
}

.designer-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 20px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(247, 251, 255, 0.72);
}

.designer-toolbar-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.designer-toolbar-toggles {
    justify-content: center;
}

.designer-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(13, 43, 82, 0.06);
    color: var(--navy-950);
    font-weight: 700;
}

.designer-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.designer-switch-ui {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: rgba(13, 43, 82, 0.14);
    transition: background 160ms ease;
}

.designer-switch-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(10, 33, 62, 0.2);
    transition: transform 160ms ease;
}

.designer-switch input:checked + .designer-switch-ui {
    background: linear-gradient(135deg, #0f7b92, #0d4d7a);
}

.designer-switch input:checked + .designer-switch-ui::after {
    transform: translateX(16px);
}

.designer-workspace-shell {
    margin-top: 16px;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.94));
}

.designer-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.designer-preview-header strong {
    color: var(--navy-950);
}

.designer-workspace {
    --ruler-size: 38px;
    display: grid;
    grid-template-columns: var(--ruler-size) minmax(0, 1fr);
    grid-template-rows: var(--ruler-size) minmax(540px, 1fr);
    border-radius: 26px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.94);
    overflow: hidden;
}

.designer-ruler {
    position: relative;
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(241, 246, 251, 0.92));
    border-color: rgba(13, 43, 82, 0.08);
}

.designer-ruler-top {
    grid-column: 2;
    border-bottom: 1px solid rgba(13, 43, 82, 0.08);
}

.designer-ruler-left {
    grid-row: 2;
    border-right: 1px solid rgba(13, 43, 82, 0.08);
}

.designer-ruler-tick {
    position: absolute;
    top: 100%;
    width: 1px;
    height: 10px;
    background: rgba(13, 43, 82, 0.18);
    transform: translateX(-0.5px);
}

.designer-ruler-tick.major {
    height: 14px;
    background: rgba(13, 43, 82, 0.36);
}

.designer-ruler-tick em {
    position: absolute;
    top: -26px;
    left: -4px;
    font-style: normal;
    font-size: 0.72rem;
    color: var(--slate-500);
}

.designer-ruler-tick.vertical {
    left: 100%;
    top: auto;
    width: 10px;
    height: 1px;
    transform: translateY(-0.5px);
}

.designer-ruler-tick.vertical.major {
    width: 14px;
}

.designer-ruler-tick.vertical em {
    top: -6px;
    left: -28px;
}

.designer-workspace-viewport {
    position: relative;
    overflow: auto;
    padding: 24px;
}

.designer-workspace--grid-off .designer-canvas-board {
    background-image: none;
}

.designer-workspace--rulers-off {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.designer-workspace--rulers-off .designer-ruler {
    display: none;
}

.designer-dimension-badge {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 43, 82, 0.08);
    color: var(--slate-500);
    font-size: 0.9rem;
    font-weight: 700;
}

.designer-canvas-board {
    position: relative;
    min-height: 540px;
    border-radius: 20px;
    border: 1px dashed rgba(13, 43, 82, 0.16);
    background:
        linear-gradient(90deg, rgba(13, 43, 82, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(13, 43, 82, 0.03) 1px, transparent 1px),
        rgba(252, 253, 255, 0.92);
    background-size: 16px 16px, 16px 16px, auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.label-canvas-stage {
    transform-origin: center center;
    transition: transform 180ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.label-canvas {
    --label-width-px: 300px;
    --label-height-px: 180px;
    position: relative;
    width: var(--label-width-px);
    height: var(--label-height-px);
    border-radius: 22px;
    border: 1.5px solid #1d2836;
    background: linear-gradient(180deg, #ffffff, #fbfcfd);
    box-shadow: 0 24px 40px rgba(10, 33, 62, 0.14);
    overflow: hidden;
    color: #111111;
}

.label-canvas::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 14px;
    border: 1px solid rgba(16, 19, 24, 0.05);
    pointer-events: none;
}

.label-node {
    position: absolute;
    overflow: visible;
    color: #111111;
    border: 1px dashed transparent;
    padding: 2px 3px;
    line-height: 1.15;
    cursor: grab;
    user-select: none;
    touch-action: none;
    white-space: pre-wrap;
}

.label-node.selected {
    border-color: #1fc8c8;
    background: rgba(31, 200, 200, 0.1);
    box-shadow: 0 0 0 1px rgba(31, 200, 200, 0.18);
}

.label-node.dragging {
    cursor: grabbing;
    z-index: 8;
    box-shadow: 0 12px 30px rgba(13, 43, 82, 0.18);
}

.label-node.node-hidden {
    opacity: 0.25;
}

.label-node strong {
    font-weight: 800;
}

.label-node-label {
    display: block;
    margin-bottom: 3px;
    color: #374355;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.label-node-delete {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(206, 45, 74, 0.18);
    border-radius: 999px;
    background: #ffffff;
    color: #ce2d4a;
    box-shadow: 0 10px 24px rgba(10, 33, 62, 0.18);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.label-node-delete:hover,
.label-node-delete:focus-visible {
    background: #fff0f3;
    border-color: rgba(206, 45, 74, 0.38);
    outline: none;
}

.label-node-handle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1fc8c8;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(10, 33, 62, 0.2);
}

.handle-nw {
    top: -5px;
    left: -5px;
}

.handle-ne {
    top: -5px;
    right: -5px;
}

.handle-sw {
    left: -5px;
    bottom: -5px;
}

.handle-se {
    right: -5px;
    bottom: -5px;
}

.label-node--reagent-name {
    font-size: 1.55em;
    font-weight: 800;
}

.label-node--catalogue,
.label-node--batch,
.label-node--expiry,
.label-node--storage,
.label-node--opened,
.label-node--condition,
.label-node--site,
.label-node--checked {
    font-size: 0.95em;
}

.label-node--site {
    color: #2d394a;
}

.label-node--divider {
    padding: 0;
}

.label-divider-line {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(17, 24, 39, 0.18);
}

.label-node--badge {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.label-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(11, 145, 97, 0.12);
    background: rgba(214, 247, 230, 0.96);
    color: #0b8d61;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.label-node--logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.label-logo-badge {
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 46px;
    min-height: 46px;
    border-radius: 16px;
    background: #0d2b52;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.label-node-barcode {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    height: 100%;
}

.label-node-bars {
    width: 100%;
    height: calc(100% - 22px);
    min-height: 46px;
    background:
        repeating-linear-gradient(
            90deg,
            #000000 0,
            #000000 2px,
            #ffffff 2px,
            #ffffff 4px,
            #000000 4px,
            #000000 6px,
            #ffffff 6px,
            #ffffff 8px,
            #000000 8px,
            #000000 9px,
            #ffffff 9px,
            #ffffff 11px
        );
}

.label-node-barcode-value {
    display: block;
    margin-top: 4px;
    font-size: 0.74em;
    text-align: center;
    letter-spacing: 0.06em;
}

.label-node-qr {
    display: inline-grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 56px;
    border: 2px solid #111111;
    border-radius: 8px;
    font-weight: 900;
}

.designer-notes-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.designer-notes-input {
    width: 100%;
    min-height: 120px;
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(250, 252, 255, 0.96);
    color: var(--navy-950);
    resize: vertical;
    font: inherit;
    line-height: 1.65;
}

.designer-notes-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 16px;
}

.thermal-note-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--slate-500);
    line-height: 1.6;
}

.thermal-note-list li + li {
    margin-top: 6px;
}

.designer-inspector-pane[hidden] {
    display: none;
}

.designer-printer-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(247, 251, 255, 0.88);
}

.designer-printer-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(13, 43, 82, 0.08);
    color: var(--navy-900);
}

.designer-printer-card strong,
.designer-printer-card span {
    display: block;
}

.designer-printer-card span {
    color: var(--slate-500);
    margin-top: 4px;
}

.designer-section {
    padding-top: 18px;
    margin-top: 18px;
    border-top: 1px solid rgba(13, 43, 82, 0.08);
}

.designer-section:first-of-type {
    border-top: 0;
    margin-top: 16px;
    padding-top: 0;
}

.designer-section > label,
.inline-header > label {
    display: block;
    color: var(--navy-950);
    font-weight: 800;
}

.inline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.designer-field-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.designer-field-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 11px 12px;
    border-radius: 16px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: var(--navy-950);
    text-align: left;
    cursor: pointer;
}

.designer-field-row:hover {
    border-color: rgba(31, 200, 200, 0.2);
    box-shadow: 0 10px 24px rgba(10, 33, 62, 0.06);
}

.designer-field-row:focus-visible {
    outline: 2px solid rgba(31, 200, 200, 0.34);
    outline-offset: 3px;
}

.designer-field-row.selected {
    border-color: rgba(31, 200, 200, 0.28);
    box-shadow: 0 0 0 1px rgba(31, 200, 200, 0.18);
    background: rgba(236, 255, 252, 0.74);
}

.designer-field-handle {
    color: var(--slate-400);
    letter-spacing: -0.2em;
}

.designer-field-copy strong,
.designer-field-copy small {
    display: block;
}

.designer-field-copy small {
    margin-top: 4px;
    color: var(--slate-500);
}

.designer-field-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.designer-field-index {
    min-width: 24px;
    text-align: center;
    color: var(--slate-400);
    font-size: 0.78rem;
    font-weight: 700;
}

.designer-field-action {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(245, 248, 252, 0.92);
    color: var(--navy-950);
    cursor: pointer;
}

.designer-field-action.disabled,
.designer-field-action:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.field-span-all {
    grid-column: 1 / -1;
}

.designer-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toggle-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-950);
    font-weight: 700;
}

.thermal-lock-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(13, 43, 82, 0.05);
    border: 1px solid rgba(13, 43, 82, 0.06);
}

.thermal-lock-note strong,
.thermal-lock-note span {
    display: block;
}

.thermal-lock-note strong {
    margin-bottom: 6px;
    color: var(--navy-950);
}

.thermal-lock-note span {
    color: var(--slate-500);
    line-height: 1.55;
    font-size: 0.92rem;
}

.designer-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 0 6px;
    color: var(--slate-500);
    font-size: 0.92rem;
}

.designer-statusbar-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b8d61;
    font-weight: 700;
}

.designer-statusbar-state::before {
    content: "✓";
}

.designer-statusbar-state.unsaved {
    color: #c98015;
}

.designer-statusbar-state.unsaved::before {
    content: "•";
}

.designer-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.designer-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 19, 30, 0.64);
    backdrop-filter: blur(6px);
}

.designer-preview-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1080px, calc(100vw - 40px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    padding: 20px;
    border-radius: 28px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 56px rgba(10, 33, 62, 0.24);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.designer-preview-modal__header,
.designer-preview-modal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.designer-preview-modal__header strong,
.designer-preview-modal__header span {
    display: block;
}

.designer-preview-modal__header span {
    margin-top: 4px;
    color: var(--slate-500);
}

.designer-preview-modal__body {
    min-height: 380px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    background:
        linear-gradient(90deg, rgba(13, 43, 82, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(13, 43, 82, 0.03) 1px, transparent 1px),
        rgba(252, 253, 255, 0.92);
    background-size: 16px 16px, 16px 16px, auto;
    overflow: auto;
}

.designer-preview-modal__canvas {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.support-workspace {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.support-list-view[hidden],
.support-detail-view[hidden] {
    display: none;
}

.support-shell-grid,
.support-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 24px;
    align-items: start;
}

.support-main-column,
.support-side-column,
.support-ticket-list,
.support-ticket-thread,
.support-announcement-list,
.support-ticket-attachments,
.support-message-list,
.support-target-list,
.support-category-list,
.support-activity-list,
.support-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-side-column {
    position: sticky;
    top: 18px;
}

.support-page-card {
    border: 1px solid rgba(13, 43, 82, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 46px rgba(12, 31, 59, 0.08);
    padding: 24px;
}

.support-hero-card,
.support-detail-hero,
.support-table-card {
    background:
        radial-gradient(circle at top right, rgba(31, 200, 200, 0.09), transparent 34%),
        rgba(255, 255, 255, 0.92);
}

.support-hero-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.support-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--slate-500);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.support-breadcrumbs strong {
    color: var(--navy-900);
}

.support-hero-card h1,
.support-detail-hero h1 {
    margin: 0;
    color: var(--navy-950);
    letter-spacing: -0.04em;
}

.support-hero-card p,
.support-section-heading p,
.support-side-card p,
.support-empty-card span {
    color: var(--slate-500);
    line-height: 1.65;
}

.support-hero-card p {
    margin: 10px 0 0;
    max-width: 760px;
}

.support-hero-actions,
.support-detail-actions,
.support-table-footer,
.panel-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.support-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(140px, 1fr)) auto auto;
    gap: 14px;
    align-items: end;
}

.support-filter-grid .button {
    min-height: 58px;
}

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

.support-calls-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.support-calls-table th,
.support-calls-table td {
    padding: 16px 14px;
    border-bottom: 1px solid rgba(13, 43, 82, 0.08);
    text-align: left;
    vertical-align: middle;
}

.support-calls-table th {
    color: var(--slate-500);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.support-calls-table td {
    color: var(--navy-900);
    font-size: 0.92rem;
}

.support-calls-table td > span {
    display: block;
    margin-top: 4px;
    color: var(--slate-500);
    font-size: 0.84rem;
}

.support-calls-table tr:last-child td {
    border-bottom: 0;
}

.support-call-link {
    border: 0;
    background: transparent;
    color: #006ee6;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.support-call-link:hover {
    text-decoration: underline;
}

.support-row-signal {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(31, 200, 200, 0.12);
    color: #087c86;
    font-size: 0.76rem;
    font-weight: 900;
}

.support-row-signal::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(31, 200, 200, 0.14);
}

.support-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.support-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.support-badge-status-new,
.support-badge-status-open {
    background: rgba(31, 200, 200, 0.12);
    color: #07838c;
}

.support-badge-status-in-progress,
.support-badge-status-awaiting-support {
    background: rgba(0, 110, 230, 0.1);
    color: #006ee6;
}

.support-badge-status-waiting-for-customer,
.support-badge-status-pending-customer {
    background: rgba(245, 165, 36, 0.16);
    color: #b86a0c;
}

.support-badge-status-resolved,
.support-badge-status-closed {
    background: rgba(33, 185, 129, 0.14);
    color: #12845a;
}

.support-badge-priority-urgent {
    background: rgba(239, 95, 108, 0.14);
    color: #d83d4b;
}

.support-badge-priority-high {
    background: rgba(245, 165, 36, 0.16);
    color: #c26c00;
}

.support-badge-priority-medium {
    background: rgba(0, 110, 230, 0.1);
    color: #006ee6;
}

.support-badge-priority-low,
.support-badge-category {
    background: rgba(13, 43, 82, 0.07);
    color: var(--navy-800);
}

.support-table-footer {
    margin-top: 18px;
    justify-content: space-between;
    color: var(--slate-500);
}

.support-pagination {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.support-pagination button,
.support-pagination span {
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid rgba(13, 43, 82, 0.1);
    background: rgba(255, 255, 255, 0.85);
    color: var(--navy-900);
    font-weight: 800;
}

.support-pagination button {
    cursor: pointer;
}

.support-pagination button:disabled,
.support-view-button:disabled,
.support-detail-actions .button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.support-pagination button.active,
.support-pagination span.active {
    border-color: transparent;
    background: linear-gradient(180deg, var(--teal-400), var(--teal-500));
    color: #06304a;
}

.support-side-card h2,
.support-side-card h3 {
    margin: 0 0 16px;
    color: var(--navy-950);
}

.support-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.support-overview-grid div {
    padding: 14px;
    border-radius: 18px;
    background: rgba(13, 43, 82, 0.04);
}

.support-overview-grid span {
    display: block;
    color: var(--slate-500);
    font-size: 0.82rem;
    font-weight: 800;
}

.support-overview-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 1.7rem;
    color: var(--navy-950);
}

.support-stat-open {
    color: #006ee6 !important;
}

.support-stat-progress,
.support-stat-customer,
.support-stat-resolved {
    color: #078f70 !important;
}

.support-stat-customer {
    color: #b24e16 !important;
}

.support-target-list div,
.support-category-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    color: var(--navy-900);
    font-weight: 800;
}

.support-target-list span,
.support-category-list span,
.support-summary-list dt,
.support-message-head span,
.support-announcement-meta,
.support-attachment-row span,
.support-activity-item span,
.support-ticket-row-date,
.support-thread-entry span {
    color: var(--slate-500);
    font-size: 0.88rem;
}

.support-target-list strong {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(33, 185, 129, 0.14);
    color: #12845a;
    font-size: 0.78rem;
}

.support-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 16px;
    border: 0;
    background: transparent;
    color: #006ee6;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.support-help-actions {
    display: grid;
    gap: 10px;
}

.support-notification-button {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(13, 43, 82, 0.08);
    color: #ef3f4f;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(10, 33, 62, 0.08);
}

.support-detail-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.support-back-link {
    width: fit-content;
    border: 0;
    background: transparent;
    color: #006ee6;
    font-weight: 900;
    cursor: pointer;
    padding: 0;
}

.support-detail-hero-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.support-detail-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(31, 200, 200, 0.16), rgba(0, 110, 230, 0.14));
    color: #007c8e;
    font-weight: 900;
    font-size: 1.4rem;
}

.support-detail-id {
    display: block;
    color: var(--slate-500);
    font-weight: 800;
    margin-bottom: 4px;
}

.support-badge-row,
.support-detail-logged,
.support-message-tags,
.support-composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.support-detail-logged {
    color: var(--slate-500);
    font-weight: 700;
}

.button.danger-outline {
    color: #d83d4b;
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(239, 95, 108, 0.38);
}

.button.danger-outline:hover {
    background: rgba(239, 95, 108, 0.08);
}

.support-detail-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid rgba(13, 43, 82, 0.08);
}

.support-detail-tabs button {
    border: 0;
    background: transparent;
    padding: 14px 10px;
    color: var(--navy-800);
    font-weight: 900;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.support-detail-tabs button.active {
    color: #007c8e;
    border-bottom-color: var(--teal-500);
}

.support-detail-tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    margin-left: 5px;
    border-radius: 999px;
    background: rgba(13, 43, 82, 0.08);
    color: var(--navy-800);
    font-size: 0.75rem;
}

.support-detail-panel {
    display: none;
}

.support-detail-panel.active {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.support-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.support-section-heading h2 {
    margin: 0;
    color: var(--navy-950);
}

.support-section-heading p {
    margin: 6px 0 0;
}

.support-description-text {
    margin: 0;
    color: var(--navy-900);
    line-height: 1.75;
    white-space: pre-wrap;
}

.support-message-card,
.support-announcement-card,
.support-attachment-row,
.support-empty-card,
.support-activity-item {
    border: 1px solid rgba(13, 43, 82, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    padding: 16px 18px;
}

.support-message-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
}

.support-message-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #0f8aa0, #0d2b52);
    color: #ffffff;
    font-weight: 900;
    overflow: hidden;
}

.support-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.support-message-body p,
.support-announcement-card p {
    margin: 10px 0 0;
    line-height: 1.65;
    color: var(--navy-900);
    white-space: pre-wrap;
}

.support-message-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.support-message-head strong,
.support-announcement-card strong,
.support-attachment-row strong,
.support-activity-item strong {
    display: block;
    color: var(--navy-950);
}

.support-message-tags {
    margin-top: 10px;
}

.support-message-tags span,
.support-composer-tabs span {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 110, 230, 0.1);
    color: #006ee6;
    font-size: 0.76rem;
    font-weight: 900;
}

.support-reply-composer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid rgba(13, 43, 82, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    padding: 14px;
    margin-top: 18px;
}

.support-reply-composer textarea {
    width: 100%;
    min-height: 118px;
    border: 0;
    resize: vertical;
    outline: 0;
    background: transparent;
    color: var(--navy-900);
}

.support-composer-tabs {
    display: flex;
    gap: 8px;
}

.support-composer-tabs button {
    border: 0;
    background: transparent;
    padding: 8px 0;
    color: var(--navy-800);
    font-weight: 900;
    cursor: default;
}

.support-composer-tabs button.active {
    color: #007c8e;
}

.support-composer-actions {
    justify-content: space-between;
}

.support-composer-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(13, 43, 82, 0.06);
    color: var(--navy-800);
    font-weight: 900;
}

.support-summary-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.support-summary-list div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.support-summary-list dt,
.support-summary-list dd {
    margin: 0;
}

.support-summary-list dd {
    color: var(--navy-900);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.support-quick-actions button {
    justify-content: flex-start;
}

.support-lifecycle-dialog {
    width: min(620px, calc(100vw - 48px));
}

.support-callout,
.support-ticket-description {
    border: 1px solid rgba(13, 43, 82, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    padding: 16px 18px;
}

.support-ticket-row,
.support-thread-entry {
    border: 1px solid rgba(13, 43, 82, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    padding: 16px 18px;
}

.support-ticket-attachments h4 {
    margin: 0 0 12px;
}

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.support-modal[hidden] {
    display: none;
}

.support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 46, 0.48);
    backdrop-filter: blur(10px);
}

.support-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    box-shadow: 0 28px 70px rgba(13, 43, 82, 0.24);
}

.support-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.support-modal-header h2 {
    margin: 12px 0 8px;
}

.support-modal-header p {
    margin: 0;
    color: var(--slate-500);
    line-height: 1.65;
}

.dashboard-signal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.dashboard-frontpage-panel[hidden] {
    display: none;
}

.dashboard-announcement-list,
.dashboard-support-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dashboard-announcement-card,
.dashboard-support-card {
    border: 1px solid rgba(13, 43, 82, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: 18px;
}

.dashboard-announcement-head {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.dashboard-announcement-card strong,
.dashboard-support-card strong {
    display: block;
}

.dashboard-announcement-card p {
    margin: 10px 0 12px;
    line-height: 1.65;
    color: var(--slate-500);
}

.dashboard-announcement-meta,
.dashboard-support-card-date {
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-support-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.dashboard-support-card-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.dashboard-support-card-meta,
.dashboard-support-card-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-support-card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(13, 43, 82, 0.06);
    color: var(--slate-500);
    font-size: 0.86rem;
    font-weight: 700;
}

@media (max-width: 1360px) {
    .feature-row,
    .stats-grid,
    .permission-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selection-grid,
    .shortcut-grid,
    .amend-summary-grid,
    .validation-bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .validation-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .validation-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .validation-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .validation-advanced-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-signal-grid {
        grid-template-columns: 1fr;
    }

    .support-shell-grid,
    .support-detail-grid {
        grid-template-columns: 1fr;
    }

    .support-side-column {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .designer-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .designer-layout .side-stack {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .designer-workspace {
        grid-template-rows: var(--ruler-size) minmax(460px, 1fr);
    }

    .email-alert-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .login-layout,
    .content-grid,
    .two-col,
    .filter-row,
    .stock-filter-grid,
    .stock-hero-copy,
    .stock-detail-grid {
        grid-template-columns: 1fr;
    }

    .app-layout {
        grid-template-columns: 1fr;
    }

    .support-session-banner {
        align-items: flex-start;
        bottom: 10px;
        flex-direction: column;
        left: 10px;
        right: 10px;
    }

    .sidebar {
        gap: 18px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-actions {
        margin-left: 0;
        justify-content: stretch;
    }

    .topbar-actions > * {
        flex: 1 1 220px;
    }

    .summary-card {
        position: static;
    }

    .designer-layout,
    .designer-layout .side-stack {
        grid-template-columns: 1fr;
    }

    .designer-hero,
    .designer-preview-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .designer-notes-footer {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .designer-toolbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .designer-toolbar-toggles {
        justify-content: flex-start;
    }

    .designer-workspace {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .designer-workspace .designer-ruler {
        display: none;
    }

    .user-menu summary,
    .user-menu-panel {
        min-width: 100%;
    }

    .stock-modal {
        padding: 16px;
    }

    .stock-modal-dialog {
        width: min(100%, calc(100vw - 32px));
        max-height: calc(100vh - 32px);
    }

    .print-workflow-modal {
        padding: 16px;
    }

    .print-workflow-modal__dialog {
        width: min(100%, calc(100vw - 32px));
        max-height: calc(100vh - 32px);
    }

    .print-workflow-actions {
        grid-template-columns: 1fr;
    }

    .print-workflow-preview__frame {
        min-height: 420px;
    }

    .validation-hero-header,
    .validation-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .validation-hero-actions {
        justify-content: flex-start;
    }

    .validation-toolbar,
    .validation-advanced-filters {
        grid-template-columns: 1fr 1fr;
    }

    .support-hero-card,
    .support-detail-hero-row,
    .support-table-footer,
    .support-section-heading {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .support-detail-actions,
    .support-hero-actions {
        justify-content: flex-start;
    }

    .support-filter-grid,
    .support-side-column {
        grid-template-columns: 1fr;
    }

    .support-page-card {
        padding: 18px;
        border-radius: 20px;
    }

    .support-message-card {
        grid-template-columns: 1fr;
    }

    .support-message-head {
        flex-direction: column;
    }

    .support-summary-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 860px) {
    .page-shell {
        padding: 12px;
    }

    .glass-frame {
        border-radius: 24px;
    }

    .login-layout {
        gap: 14px;
        padding: 12px;
    }

    .login-card,
    .login-showcase,
    .panel {
        padding-left: 18px;
        padding-right: 18px;
    }

    .login-showcase {
        padding-top: 22px;
        padding-bottom: 18px;
        border-radius: 24px;
    }

    .login-showcase .brand-lockup {
        justify-content: center;
        text-align: left;
    }

    .login-showcase .brand-mark {
        width: 58px;
        height: 58px;
        border-radius: 16px;
    }

    .login-showcase .brand-title {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .login-showcase .brand-tagline {
        font-size: 0.72rem;
        letter-spacing: 0.36em;
    }

    .showcase-content {
        gap: 18px;
    }

    .showcase-copy {
        display: none;
    }

    .showcase-copy h2 {
        font-size: clamp(2.35rem, 13vw, 4rem);
        line-height: 0.96;
        margin-bottom: 12px;
    }

    .showcase-copy p {
        max-width: none;
        font-size: 1rem;
        line-height: 1.65;
    }

    .showcase-preview {
        display: none;
    }

    .login-card {
        padding-top: 24px;
        padding-bottom: 22px;
        border-radius: 24px;
        gap: 18px;
    }

    .login-header .brand-mark {
        display: none;
    }

    .login-header {
        gap: 6px;
    }

    .login-header h2 {
        font-size: 1.7rem;
    }

    .stack {
        gap: 15px;
    }

    .input-shell {
        min-height: 54px;
        border-radius: 15px;
    }

    .login-help,
    .login-assurance {
        display: none;
    }

    .subtle-note {
        display: none;
    }

    .assurance-icon {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .feature-row,
    .form-grid,
    .form-grid.three,
    .selection-grid,
    .permission-grid,
    .amend-summary-grid,
    .email-alert-scope-grid,
    .email-alert-user-grid,
    .shortcut-grid,
    .stats-grid,
    .validation-kpi-grid,
    .validation-bottom-grid,
    .validation-toolbar,
    .validation-advanced-filters {
        grid-template-columns: 1fr;
    }

    .email-alert-rule-fields {
        grid-template-columns: 1fr;
    }

    .email-alert-rule-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-chip {
        border-right: 0;
        padding-right: 0;
        border-bottom: 1px solid rgba(13, 43, 82, 0.08);
        padding-bottom: 16px;
    }

    .feature-chip:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .login-showcase .feature-row {
        display: none;
    }

    .field-inline,
    .login-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-footer {
        display: none;
    }

    .login-footer .footer-note {
        gap: 8px;
    }

    .designer-layout {
        gap: 18px;
    }

    .designer-hero-actions,
    .designer-preview-modal__header,
    .designer-preview-modal__actions {
        justify-content: flex-start;
    }

    .designer-workspace-viewport,
    .designer-preview-modal__body {
        padding: 16px;
    }

    .designer-canvas-board {
        min-height: 360px;
        padding: 18px;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }

    .support-ticket-row {
        flex-direction: column;
    }

    .dashboard-support-card {
        flex-direction: column;
    }

    .support-ticket-row-top,
    .support-ticket-row-signals,
    .support-ticket-row-side,
    .panel-header-actions,
    .support-modal-header {
        justify-content: flex-start;
    }

    .support-modal-dialog {
        width: min(920px, calc(100vw - 24px));
        max-height: calc(100vh - 24px);
    }

    .validation-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .validation-modal-dialog {
        width: min(100%, calc(100vw - 20px));
        max-height: calc(100vh - 20px);
        padding: 18px;
    }
}

@media (max-width: 520px) {
    .page-shell {
        padding: 0;
    }

    .glass-frame {
        min-height: 100vh;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .login-layout {
        padding: 10px;
    }

    .login-showcase {
        padding: 20px 16px 16px;
    }

    .login-showcase .brand-lockup {
        gap: 12px;
    }

    .login-showcase .brand-mark {
        width: 50px;
        height: 50px;
    }

    .showcase-copy h2 {
        font-size: clamp(2.1rem, 15vw, 3.25rem);
    }

    .showcase-copy p {
        font-size: 0.96rem;
    }

    .login-card {
        padding: 22px 16px 18px;
    }

    .field-inline {
        gap: 12px;
    }

    .field-inline .text-link {
        align-self: flex-end;
    }

    .login-card .button.primary {
        min-height: 56px;
        font-size: 1rem;
    }

    .login-assurance p,
    .login-help p,
    .login-footer {
        font-size: 0.88rem;
    }
}

.data-table tbody tr.batch-status-row.closed:not(.quarantined) > td,
.data-table tbody tr.batch-status-row.wasted:not(.quarantined) > td {
    background: rgba(100, 116, 139, 0.1) !important;
    border-bottom-color: rgba(100, 116, 139, 0.2) !important;
}

.data-table tbody tr.batch-status-row.quarantined > td {
    background: rgba(250, 204, 21, 0.16) !important;
    border-bottom-color: rgba(245, 158, 11, 0.28) !important;
}

.data-table tbody tr.batch-status-row.closed:not(.selected),
.data-table tbody tr.batch-status-row.wasted:not(.selected) {
    opacity: 0.78;
}

.data-table tbody tr.batch-status-row.quarantined:not(.selected) {
    opacity: 0.94;
}

.document-action-button {
    white-space: nowrap;
}

.document-action-button [data-document-count] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    margin-left: 0.35rem;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(11, 167, 166, 0.13);
    color: var(--teal-700, #087f83);
    font-size: 0.82rem;
    font-weight: 800;
}

.document-drawer {
    position: fixed;
    inset: 0;
    z-index: 1300;
    pointer-events: none;
}

.document-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 22, 48, 0.36);
    opacity: 0;
    transition: opacity 180ms ease;
}

.document-drawer__panel {
    position: absolute;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: min(720px, calc(100vw - 32px));
    overflow: auto;
    padding: 24px;
    border: 1px solid rgba(130, 156, 188, 0.28);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(36, 198, 196, 0.11), transparent 34%),
        #fff;
    box-shadow: 0 30px 80px rgba(8, 31, 59, 0.24);
    transform: translateX(calc(100% + 32px));
    transition: transform 220ms ease;
}

.document-drawer.open {
    pointer-events: auto;
}

.document-drawer.open .document-drawer__backdrop {
    opacity: 1;
}

.document-drawer.open .document-drawer__panel {
    transform: translateX(0);
}

.document-drawer__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(130, 156, 188, 0.22);
}

.document-drawer__header h2 {
    margin: 10px 0 6px;
    color: var(--navy-900, #081f3b);
}

.document-drawer__header p,
.document-drawer__context {
    color: var(--slate-600, #5c7497);
}

.document-drawer__context {
    margin: 16px 0;
    padding: 14px 16px;
    border: 1px solid rgba(130, 156, 188, 0.22);
    border-radius: 18px;
    background: rgba(241, 247, 252, 0.72);
    font-weight: 700;
}

.document-drawer__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.document-drawer__tabs button {
    border: 1px solid rgba(130, 156, 188, 0.28);
    border-radius: 999px;
    background: #fff;
    color: var(--navy-900, #081f3b);
    padding: 10px 15px;
    font-weight: 800;
    cursor: pointer;
}

.document-drawer__tabs button.active {
    border-color: rgba(36, 198, 196, 0.52);
    background: rgba(36, 198, 196, 0.14);
    color: var(--teal-800, #056d75);
}

.document-drawer__section {
    display: none;
}

.document-drawer__section.active {
    display: block;
}

.document-drawer__list {
    display: grid;
    gap: 12px;
}

.document-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(130, 156, 188, 0.24);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 254, 0.88));
}

.document-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(8, 31, 59, 0.08);
    color: var(--navy-900, #081f3b);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.document-card__body {
    display: grid;
    gap: 4px;
}

.document-card__body strong {
    color: var(--navy-900, #081f3b);
}

.document-card__body span,
.document-card__body small {
    color: var(--slate-600, #5c7497);
}

.document-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-drawer__form {
    display: grid;
    gap: 16px;
}

.document-remove-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    background: rgba(5, 22, 48, 0.48);
    padding: 20px;
}

.document-remove-modal[hidden] {
    display: none;
}

.document-remove-modal__dialog {
    width: min(560px, 100%);
}

@media (max-width: 720px) {
    .document-drawer__panel {
        inset: 8px;
        width: auto;
        border-radius: 24px;
        padding: 18px;
    }

    .document-card {
        grid-template-columns: 1fr;
    }

    .document-card__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.document-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.document-filter-form {
    display: grid;
    gap: 18px;
}

.document-filter-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.document-filter-row label,
.document-metadata-form label,
.document-link-form label {
    display: grid;
    gap: 8px;
    font-weight: 800;
    color: var(--navy-900, #081f3b);
}

.advanced-filter-panel {
    border: 1px solid rgba(130, 156, 188, 0.25);
    border-radius: 22px;
    padding: 14px;
    background: rgba(247, 251, 255, 0.82);
}

.advanced-filter-panel summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--navy-900, #081f3b);
}

.documents-table td strong,
.documents-table td span {
    display: block;
}

.documents-table td span {
    margin-top: 4px;
    color: var(--slate-600, #5c7497);
    font-size: 0.86rem;
}

.muted-row {
    background: rgba(245, 248, 252, 0.78);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.button.small {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.84rem;
}

.danger-soft {
    color: #b4233a;
    border-color: rgba(244, 63, 94, 0.32);
    background: rgba(255, 241, 242, 0.9);
}

.pagination-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    padding-top: 18px;
}

.page-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(130, 156, 188, 0.3);
    border-radius: 12px;
    background: #fff;
    color: var(--navy-900, #081f3b);
    font-weight: 800;
    text-decoration: none;
}

.page-button.active {
    background: linear-gradient(135deg, var(--teal-600, #00889a), var(--navy-900, #081f3b));
    color: #fff;
    border-color: transparent;
}

.page-button.ellipsis {
    border-color: transparent;
    background: transparent;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1290;
    background: rgba(5, 22, 48, 0.36);
    backdrop-filter: blur(2px);
}

.document-admin-drawer {
    position: fixed;
    top: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1300;
    width: min(620px, calc(100vw - 36px));
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(130, 156, 188, 0.28);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(8, 31, 59, 0.24);
    transform: translateX(calc(100% + 36px));
    transition: transform 0.22s ease;
}

.document-admin-drawer.open {
    transform: translateX(0);
}

.document-admin-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid rgba(130, 156, 188, 0.22);
}

.document-admin-drawer-header h2 {
    margin: 10px 0 4px;
}

.document-admin-drawer-header p {
    margin: 0;
    color: var(--slate-600, #5c7497);
}

.document-admin-drawer-body {
    display: grid;
    gap: 18px;
    overflow: auto;
    padding: 24px;
}

.document-detail-section {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(130, 156, 188, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.9));
}

.document-detail-section h3 {
    margin: 0;
}

.document-metadata-form,
.document-link-form {
    display: grid;
    gap: 14px;
}

.document-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.document-facts span,
.document-link-row,
.document-audit-row,
.document-admin-empty,
.document-admin-error {
    padding: 12px;
    border: 1px solid rgba(130, 156, 188, 0.22);
    border-radius: 16px;
    background: #fff;
}

.document-facts strong,
.document-link-row strong,
.document-audit-row strong {
    display: block;
    color: var(--navy-900, #081f3b);
}

.document-hash {
    grid-column: 1 / -1;
    word-break: break-all;
}

.document-link-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.document-link-row span,
.document-audit-row span {
    display: block;
    margin-top: 4px;
    color: var(--slate-600, #5c7497);
}

.document-admin-empty {
    color: var(--slate-600, #5c7497);
}

.document-admin-error {
    color: #b4233a;
    background: rgba(255, 241, 242, 0.9);
    border-color: rgba(244, 63, 94, 0.28);
}

.toast.error {
    background: #7f1d1d;
}

.dashboard-ops-shell,
.dashboard-config-shell {
    display: grid;
    gap: 22px;
    padding: 26px;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 251, 252, 0.86));
}

.dashboard-hero h1 {
    margin: 12px 0 8px;
    color: var(--navy-900, #081f3b);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.dashboard-hero p,
.dashboard-panel-header p,
.dashboard-last-updated,
.dashboard-kpi-card small,
.dashboard-empty {
    color: var(--slate-600, #5c7497);
}

.dashboard-last-updated {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(230, 247, 247, 0.9);
    font-weight: 800;
    font-size: 0.85rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-kpi-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 20px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--navy-900, #081f3b);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(8, 31, 59, 0.13);
}

.dashboard-kpi-icon {
    grid-column: 1;
    grid-row: 1;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(22, 163, 184, 0.14);
    color: #00889a;
    font-size: 0;
    font-weight: 900;
}

.dashboard-kpi-icon::before {
    content: "";
    width: 22px;
    height: 22px;
    background: currentColor;
    display: block;
    mask: var(--kpi-icon) center / contain no-repeat;
    -webkit-mask: var(--kpi-icon) center / contain no-repeat;
}

.dashboard-kpi-card.navy .dashboard-kpi-icon { background: rgba(8, 31, 59, 0.12); color: var(--navy-900, #081f3b); }
.dashboard-kpi-card.amber .dashboard-kpi-icon { background: rgba(251, 191, 36, 0.18); color: #b45309; }
.dashboard-kpi-card.pink .dashboard-kpi-icon { background: rgba(244, 63, 94, 0.14); color: #be123c; }
.dashboard-kpi-card.blue .dashboard-kpi-icon { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.dashboard-kpi-card.green .dashboard-kpi-icon { background: rgba(34, 197, 94, 0.16); color: #16a34a; }
.dashboard-kpi-card.violet .dashboard-kpi-icon { background: rgba(124, 58, 237, 0.13); color: #7c3aed; }

.dashboard-kpi-card.amber { --kpi-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3.25 22 20.5H2L12 3.25Zm-1 6.25v5.75h2V9.5h-2Zm0 7.5v2h2v-2h-2Z'/%3E%3C/svg%3E"); }
.dashboard-kpi-card.violet { --kpi-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2.75a9.25 9.25 0 1 0 0 18.5 9.25 9.25 0 0 0 0-18.5Zm0 2a7.25 7.25 0 1 1 0 14.5 7.25 7.25 0 0 1 0-14.5Zm1 3.25h-2v5.35l4.15 2.5 1-1.65L13 12.3V8Z'/%3E%3C/svg%3E"); }
.dashboard-kpi-card.green { --kpi-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 3h8v2h-2v4.05l4.84 8.39A3 3 0 0 1 16.24 22H7.76a3 3 0 0 1-2.6-4.56L10 9.05V5H8V3Zm4 7.86L7.02 19.5a1 1 0 0 0 .74 1.5h8.48a1 1 0 0 0 .74-1.5L12 10.86ZM8.7 17h6.6l1.15 2H7.55l1.15-2Z'/%3E%3C/svg%3E"); }
.dashboard-kpi-card.blue { --kpi-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 3h8l1 2h3v17H4V5h3l1-2Zm1.24 2-.5 1h6.52l-.5-1H9.24ZM6 7v13h12V7H6Zm3 4h6v2H9v-2Zm0 4h5v2H9v-2Z'/%3E%3C/svg%3E"); }
.dashboard-kpi-card.pink { --kpi-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 10V7a4 4 0 1 1 8 0v3h2.5v11h-13V10H8Zm2 0h4V7a2 2 0 1 0-4 0v3Zm-2.5 2v7h9v-7h-9Z'/%3E%3C/svg%3E"); }

.dashboard-kpi-card strong {
    grid-column: 1 / -1;
    font-size: 2.15rem;
    line-height: 1;
}

.dashboard-kpi-card.amber strong { color: #f97316; }
.dashboard-kpi-card.violet strong { color: #7c3aed; }
.dashboard-kpi-card.green strong { color: #16a34a; }
.dashboard-kpi-card.blue strong { color: #2563eb; }
.dashboard-kpi-card.pink strong { color: #e11d48; }

.dashboard-kpi-card > span:not(.dashboard-kpi-icon) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-weight: 900;
}

.dashboard-kpi-card small,
.dashboard-kpi-card em {
    grid-column: 1 / -1;
}

.dashboard-kpi-card em {
    margin-top: 4px;
    color: #007c89;
    font-style: normal;
    font-weight: 900;
}

.dashboard-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 18px;
}

.dashboard-panel-grid-primary {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.7fr);
}

.dashboard-panel-grid-lower {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 0.78fr);
}

.dashboard-layout-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.dashboard-layout-panel {
    grid-column: span 6;
    min-height: 280px;
}

.dashboard-layout-width-narrow {
    grid-column: span 4;
}

.dashboard-layout-width-medium {
    grid-column: span 6;
}

.dashboard-layout-width-wide {
    grid-column: span 8;
}

.dashboard-layout-width-full {
    grid-column: 1 / -1;
}

.dashboard-layout-height-compact {
    min-height: 160px;
}

.dashboard-layout-height-standard {
    min-height: 280px;
}

.dashboard-layout-height-tall {
    min-height: 420px;
}

.dashboard-layout-summary {
    min-height: auto;
}

.dashboard-layout-summary .dashboard-kpi-grid {
    height: 100%;
}

.dashboard-panel {
    padding: 22px;
    border-radius: 26px;
}

.dashboard-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-panel-header h2 {
    margin: 0 0 6px;
    color: var(--navy-900, #081f3b);
}

.dashboard-panel-header p {
    margin: 0;
}

.dashboard-panel-header a,
.dashboard-action-button {
    color: #007c89;
    font-weight: 900;
    text-decoration: none;
}

.dashboard-chart-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.dashboard-donut {
    width: 168px;
    height: 168px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 0 52%, transparent 53%),
        conic-gradient(var(--donut-gradient, #e2e8f0 0 100%));
    box-shadow: inset 0 0 0 1px rgba(130, 156, 188, 0.2), 0 20px 42px rgba(8, 31, 59, 0.12);
}

.dashboard-donut span {
    color: var(--navy-900, #081f3b);
    font-size: 2rem;
    font-weight: 950;
}

.dashboard-donut small {
    margin-top: 42px;
    position: absolute;
    color: var(--slate-600, #5c7497);
    font-weight: 800;
}

.dashboard-legend {
    display: grid;
    gap: 10px;
}

.dashboard-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(130, 156, 188, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
}

.dashboard-legend-row span::before {
    content: "";
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: #0f766e;
}

.dashboard-legend-row.blue span::before { background: #2563eb; }
.dashboard-legend-row.amber span::before { background: #f59e0b; }
.dashboard-legend-row.pink span::before { background: #f43f5e; }
.dashboard-legend-row.purple span::before { background: #7c3aed; }

.dashboard-legend-row small {
    color: var(--slate-600, #5c7497);
}

.expiry-window-list {
    display: grid;
    gap: 12px;
}

.expiry-window-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    background: rgba(255, 251, 235, 0.8);
    font-weight: 900;
}

.expiry-window-row.urgent {
    color: #be123c;
    border-color: rgba(244, 63, 94, 0.26);
    background: rgba(255, 241, 242, 0.86);
}

.expiry-window-row.amber {
    color: #b45309;
    background: rgba(255, 247, 237, 0.9);
}

.dashboard-action-button {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 13px;
    border: 1px solid rgba(0, 124, 137, 0.28);
    border-radius: 16px;
    background: rgba(237, 251, 252, 0.8);
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(130, 156, 188, 0.18);
    text-align: left;
}

.dashboard-table th {
    color: var(--navy-900, #081f3b);
    background: rgba(239, 246, 252, 0.86);
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-activity-list {
    display: grid;
    gap: 12px;
}

.dashboard-activity-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(130, 156, 188, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
}

.activity-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.12);
}

.dashboard-activity-item strong,
.dashboard-activity-item small {
    display: block;
}

.dashboard-activity-item time {
    color: var(--slate-600, #5c7497);
    font-size: 0.83rem;
}

.dashboard-quick-actions {
    display: grid;
    gap: 12px;
}

.dashboard-quick-actions a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(130, 156, 188, 0.24);
    border-radius: 16px;
    color: var(--navy-900, #081f3b);
    text-decoration: none;
    background: #fff;
}

.dashboard-quick-actions span {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.14);
    color: #007c89;
    font-weight: 950;
}

.dashboard-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-designer-panel {
    margin-bottom: 18px;
}

.dashboard-layout-designer-grid {
    display: grid;
    gap: 12px;
}

.dashboard-layout-designer-row {
    display: grid;
    grid-template-columns: 82px minmax(220px, 1fr) 120px 170px 170px;
    gap: 12px;
    align-items: end;
    padding: 14px;
    border: 1px solid rgba(130, 156, 188, 0.22);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 252, 255, 0.8));
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.dashboard-layout-designer-row[draggable="true"] {
    cursor: grab;
}

.dashboard-layout-designer-row.is-dragging {
    opacity: 0.55;
    cursor: grabbing;
    transform: scale(0.99);
}

.dashboard-layout-designer-row.is-drag-over {
    border-color: rgba(0, 130, 169, 0.42);
    box-shadow: 0 18px 36px rgba(10, 45, 79, 0.12);
}

.dashboard-layout-designer-row.is-locked {
    background: linear-gradient(135deg, rgba(236, 253, 253, 0.94), rgba(255, 255, 255, 0.94));
    border-color: rgba(40, 202, 199, 0.32);
}

.dashboard-layout-drag-handle {
    min-height: 44px;
    border: 1px solid rgba(0, 130, 169, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(237, 251, 252, 0.96), rgba(255, 255, 255, 0.98));
    color: var(--teal-700, #007a83);
    font-weight: 900;
    cursor: grab;
}

.dashboard-layout-drag-handle:disabled {
    cursor: not-allowed;
    color: var(--slate-600, #5c7497);
    background: rgba(244, 248, 251, 0.9);
    border-color: rgba(130, 156, 188, 0.22);
}

.dashboard-layout-designer-title {
    display: grid;
    gap: 4px;
}

.dashboard-layout-designer-title strong {
    color: var(--navy-900, #081f3b);
}

.dashboard-layout-designer-title small {
    color: var(--slate-600, #5c7497);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.dashboard-layout-designer-row label {
    display: grid;
    gap: 6px;
    color: var(--navy-900, #081f3b);
    font-weight: 850;
    font-size: 0.82rem;
}

.dashboard-layout-designer-row input,
.dashboard-layout-designer-row select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(130, 156, 188, 0.32);
    border-radius: 12px;
    padding: 0 12px;
    background: #fff;
    color: var(--navy-900, #081f3b);
    font: inherit;
}

.dashboard-config-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-config-option-grid.compact {
    grid-template-columns: 1fr;
}

.dashboard-config-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(130, 156, 188, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 850;
}

.config-number-field {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.config-number-field input,
.dashboard-config-table-wrap input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(130, 156, 188, 0.28);
    border-radius: 12px;
}

.dashboard-config-note {
    background: linear-gradient(135deg, rgba(237, 251, 252, 0.94), rgba(255, 255, 255, 0.98));
}

.dashboard-config-note p {
    color: var(--slate-600, #5c7497);
}

@media (max-width: 1100px) {
    .dashboard-kpi-grid,
    .dashboard-layout-grid,
    .dashboard-panel-grid,
    .dashboard-panel-grid-primary,
    .dashboard-panel-grid-lower,
    .dashboard-config-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-layout-panel,
    .dashboard-layout-width-narrow,
    .dashboard-layout-width-medium,
    .dashboard-layout-width-wide,
    .dashboard-layout-width-full {
        grid-column: 1 / -1;
    }

    .dashboard-layout-designer-row {
        grid-template-columns: 82px 1fr 1fr;
    }

    .dashboard-chart-row {
        grid-template-columns: 1fr;
    }

    .document-stats-grid,
    .document-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .dashboard-ops-shell,
    .dashboard-config-shell {
        padding: 14px;
    }

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

    .dashboard-kpi-grid,
    .dashboard-layout-designer-row,
    .dashboard-config-option-grid {
        grid-template-columns: 1fr;
    }

    .document-stats-grid,
    .document-filter-row,
    .document-facts {
        grid-template-columns: 1fr;
    }

    .document-link-row {
        flex-direction: column;
    }
}
