:root {
    --ink-950: #0b1117;
    --ink-900: #111820;
    --ink-800: #1c2731;
    --ink-700: #2d3a45;
    --paper: #f4f0e6;
    --paper-deep: #e9e3d5;
    --surface: #fffdf7;
    --surface-cool: #eef4f1;
    --text: #172029;
    --muted: #65717b;
    --line: #aeb5b2;
    --line-strong: #58636a;
    --cyan: #20c6c7;
    --cyan-dark: #126f78;
    --amber: #f0a83a;
    --amber-dark: #9c6918;
    --green: #2e9b66;
    --red: #c64b4b;
    --blue: #367db7;
    --shadow: 5px 5px 0 rgba(17, 24, 32, 0.14);
    --shadow-small: 3px 3px 0 rgba(17, 24, 32, 0.12);
    --radius: 5px;
    --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
    --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(17, 24, 32, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 32, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    font-family: var(--sans);
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(32, 198, 199, 0.46);
    outline-offset: 2px;
}

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

.sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 18px 14px;
    overflow-y: auto;
    color: #edf6f4;
    border-right: 3px solid var(--cyan);
    background-color: var(--ink-900);
    background-image:
        linear-gradient(rgba(32, 198, 199, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 198, 199, 0.04) 1px, transparent 1px);
    background-size: 18px 18px;
    box-shadow: 7px 0 0 rgba(17, 24, 32, 0.10);
    transition: padding 180ms ease, width 180ms ease;
}

.sidebar::before {
    content: "SYS // ONLINE";
    display: block;
    margin: -18px -14px 16px;
    padding: 7px 14px;
    color: var(--ink-950);
    background: var(--cyan);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
}

.sidebar-brand,
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.sidebar-brand {
    min-height: 58px;
    padding: 7px 8px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-brand img {
    width: 43px;
    height: 43px;
    padding: 4px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    background: #ffffff;
}

.sidebar-brand strong {
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 0;
}

.sidebar-brand-text,
.sidebar-user-info,
.side-label,
.nav-section-text,
[data-sidebar-collapse-label] {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity 150ms ease, width 150ms ease, transform 150ms ease;
}

.sidebar-brand small,
.sidebar-user small {
    display: block;
    margin-top: 3px;
    color: #97aaa9;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1.35;
}

.sidebar-user {
    margin: 16px 2px 5px;
    padding: 11px;
    border: 1px solid #42505a;
    border-left: 3px solid var(--amber);
    border-radius: var(--radius);
    background: #18232c;
}

.sidebar-user strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
}

.sidebar-collapse-toggle {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 12px 0 4px;
    padding: 7px 10px;
    cursor: pointer;
    color: #b8f1ec;
    border: 1px solid #38505a;
    border-radius: 4px;
    background: rgba(32, 198, 199, 0.08);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.sidebar-collapse-toggle:hover {
    color: #ffffff;
    border-color: var(--cyan);
    background: rgba(32, 198, 199, 0.16);
}

.sidebar-collapse-icon {
    position: relative;
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 3px;
}

.sidebar-collapse-icon::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(-45deg) translate(1px, 1px);
    transition: transform 150ms ease;
}

.user-avatar,
.profile-avatar,
.stat-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-family: var(--mono);
    font-weight: 900;
}

.user-avatar {
    color: var(--ink-950);
    background: var(--amber);
}

.sidebar-nav {
    flex: 1;
}

.nav-section {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 19px 8px 7px;
    color: #718889;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.nav-section::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #34434d;
}

.side-link {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 10px;
    margin: 3px 0;
    padding: 7px 10px;
    color: #c8d4d2;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 650;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.side-link:hover {
    color: #ffffff;
    border-color: #40535d;
    background: #1d2a34;
    transform: translateX(2px);
}

.side-link.active {
    color: var(--ink-950);
    border-color: var(--cyan);
    background: var(--cyan);
    box-shadow: 3px 3px 0 #070c10;
}

.side-icon {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    color: var(--cyan);
    border: 1px solid #41525b;
    border-radius: 3px;
    background: #111a21;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
}

.side-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.side-fallback {
    display: inline-block;
    line-height: 1;
}

.side-link.active .side-icon {
    color: var(--ink-950);
    border-color: var(--ink-950);
    background: transparent;
}

.sidebar-logout {
    position: relative;
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 7px 10px;
    color: #ffb9b3;
    border: 1px solid #6f3538;
    border-radius: 4px;
    background: #2a1b20;
    font-weight: 750;
}

.sidebar-logout:hover {
    color: #ffffff;
    border-color: var(--red);
    background: #4a2529;
}

@media (min-width: 921px) {
    body.sidebar-collapsed .app-layout {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    body.sidebar-collapsed .sidebar {
        overflow-x: visible;
        padding-right: 10px;
        padding-left: 10px;
    }

    body.sidebar-collapsed .sidebar::before {
        content: "SYS";
        margin-right: -10px;
        margin-left: -10px;
        padding-right: 0;
        padding-left: 0;
        text-align: center;
    }

    body.sidebar-collapsed .sidebar-brand,
    body.sidebar-collapsed .sidebar-user {
        justify-content: center;
        gap: 0;
        padding-right: 0;
        padding-left: 0;
    }

    body.sidebar-collapsed .sidebar-brand img {
        width: 38px;
        height: 38px;
    }

    body.sidebar-collapsed .sidebar-brand-text,
    body.sidebar-collapsed .sidebar-user-info,
    body.sidebar-collapsed .side-label,
    body.sidebar-collapsed .nav-section-text,
    body.sidebar-collapsed [data-sidebar-collapse-label] {
        width: 0;
        opacity: 0;
        transform: translateX(-5px);
    }

    body.sidebar-collapsed .sidebar-collapse-toggle {
        padding-right: 0;
        padding-left: 0;
    }

    body.sidebar-collapsed .sidebar-collapse-icon::before {
        transform: rotate(135deg) translate(1px, 1px);
    }

    body.sidebar-collapsed .nav-section {
        justify-content: center;
        margin: 18px 0 8px;
    }

    body.sidebar-collapsed .nav-section::after {
        width: 26px;
        flex: 0 0 26px;
    }

    body.sidebar-collapsed .side-link,
    body.sidebar-collapsed .sidebar-logout {
        justify-content: center;
        gap: 0;
        padding-right: 0;
        padding-left: 0;
    }

    body.sidebar-collapsed .side-icon {
        width: 34px;
        height: 34px;
    }

    body.sidebar-collapsed .side-icon svg {
        width: 17px;
        height: 17px;
    }

    body.sidebar-collapsed .side-link:hover,
    body.sidebar-collapsed .sidebar-logout:hover {
        transform: translateX(0);
    }

    body.sidebar-collapsed .side-link::after,
    body.sidebar-collapsed .sidebar-logout::after {
        content: attr(data-sidebar-label);
        position: absolute;
        z-index: 80;
        top: 50%;
        left: calc(100% + 12px);
        min-width: max-content;
        max-width: 220px;
        padding: 8px 10px;
        pointer-events: none;
        color: #ffffff;
        border: 1px solid var(--cyan);
        border-radius: 4px;
        background: #111820;
        box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.24);
        font-family: var(--mono);
        font-size: 11px;
        font-weight: 800;
        opacity: 0;
        transform: translate(-4px, -50%);
        transition: opacity 130ms ease, transform 130ms ease;
    }

    body.sidebar-collapsed .side-link:hover::after,
    body.sidebar-collapsed .side-link:focus-visible::after,
    body.sidebar-collapsed .sidebar-logout:hover::after,
    body.sidebar-collapsed .sidebar-logout:focus-visible::after {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

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

.page-header {
    position: relative;
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 32px 19px;
    border-bottom: 1px solid rgba(88, 99, 106, 0.36);
    background: rgba(244, 240, 230, 0.93);
}

.page-header::after {
    content: "";
    position: absolute;
    right: 32px;
    bottom: -2px;
    width: 74px;
    height: 3px;
    background: var(--amber);
}

.page-header h1,
.card-heading h2,
.monitoring-top-card h2 {
    margin: 4px 0 0;
    color: var(--text);
    letter-spacing: 0;
}

.monitoring-top-card h2 {
    color: #ffffff;
}

.page-header h1 {
    font-size: 27px;
    line-height: 1.12;
}

.card-heading h2,
.monitoring-top-card h2 {
    font-size: 19px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--cyan-dark);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 12px;
    height: 3px;
    background: currentColor;
}

.eyebrow.light {
    color: #7af0ee;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-pill {
    position: relative;
    display: inline-flex;
    width: 41px;
    height: 41px;
    align-items: center;
    justify-content: center;
    color: var(--ink-950);
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: var(--amber);
    box-shadow: var(--shadow-small);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.notification-pill b {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: #ffffff;
    border: 1px solid var(--ink-950);
    border-radius: 999px;
    background: var(--red);
    font-size: 10px;
    line-height: 18px;
    text-align: center;
}

.profile-pill {
    display: flex;
    min-width: 230px;
    align-items: center;
    gap: 10px;
    padding: 8px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.profile-avatar {
    color: var(--ink-950);
    background: var(--cyan);
}

.profile-pill strong,
.profile-pill small {
    display: block;
}

.profile-pill strong {
    font-size: 13px;
}

.profile-pill small {
    margin-top: 2px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.page-content {
    width: min(1500px, 100%);
    padding: 25px 32px 44px;
}

.flash-fallback-wrap {
    padding-bottom: 0;
}

.dashboard-hero,
.monitoring-top-card {
    position: relative;
    display: flex;
    min-height: 190px;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 21px;
    padding: 27px 29px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid #071017;
    border-radius: 5px;
    background: var(--ink-800);
    box-shadow: 7px 7px 0 rgba(17, 24, 32, 0.20);
}

.dashboard-hero::before,
.monitoring-top-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(32, 198, 199, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 198, 199, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}

.dashboard-hero::after,
.monitoring-top-card::after {
    content: "INV // CONTROL";
    position: absolute;
    right: 20px;
    bottom: 13px;
    color: rgba(255, 255, 255, 0.14);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 900;
}

.dashboard-hero > *,
.monitoring-top-card > * {
    position: relative;
    z-index: 1;
}

.dashboard-hero h2 {
    max-width: 770px;
    margin: 9px 0 10px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: 0;
}

.dashboard-hero p,
.monitoring-top-card p {
    max-width: 760px;
    margin: 9px 0 0;
    color: #ffffff;
    line-height: 1.62;
}

.hero-actions,
.header-actions,
.table-action-group,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.hero-actions {
    margin-top: 20px;
}

.btn,
.table-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--ink-950);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn:hover,
.table-action:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 rgba(17, 24, 32, 0.28);
}

.btn:active,
.table-action:active {
    transform: translate(1px, 1px);
    box-shadow: none;
}

.btn.primary,
.table-action {
    color: var(--ink-950);
    background: var(--amber);
}

.btn.secondary {
    color: var(--text);
    border-color: var(--line-strong);
    background: var(--surface);
}

.btn.glass {
    color: #ffffff;
    border-color: #58d7d6;
    background: rgba(18, 111, 120, 0.54);
}

.btn.glass.subtle {
    border-color: #718087;
    background: rgba(255, 255, 255, 0.07);
}

.btn.danger,
.table-action.danger {
    color: #ffffff;
    border-color: #792e32;
    background: var(--red);
}

.btn.compact,
.table-action {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
}

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

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 21px;
}

.metric-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.stat-card,
.metric-card,
.content-card,
.filter-card,
.form-card {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-card {
    position: relative;
    display: flex;
    min-height: 112px;
    align-items: center;
    gap: 13px;
    padding: 17px;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 36px;
    height: 4px;
    background: var(--cyan);
}

.stat-card:nth-child(3)::after {
    background: var(--red);
}

.stat-card:nth-child(4)::after {
    background: var(--amber);
}

.stat-icon {
    color: var(--cyan-dark);
    background: #dcf2ee;
}

.stat-card:nth-child(3) .stat-icon {
    color: #8c3034;
    background: #f5dedb;
}

.stat-card:nth-child(4) .stat-icon {
    color: var(--amber-dark);
    background: #f7e8c9;
}

.stat-card span,
.stat-card small {
    display: block;
    color: var(--muted);
}

.stat-card span {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    margin: 1px 0;
    color: var(--text);
    font-size: 27px;
    line-height: 1;
}

.stat-card small {
    margin-top: 5px;
    font-size: 11px;
}

.metric-card {
    min-height: 96px;
    padding: 15px;
    background:
        linear-gradient(90deg, rgba(32, 198, 199, 0.10), transparent 38%),
        var(--surface);
}

.metric-card span,
.status-strip span,
.status-strip small {
    display: block;
}

.metric-card span,
.status-strip span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 27px;
    line-height: 1;
}

.content-card,
.form-card {
    margin-bottom: 18px;
    padding: 19px;
}

.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--paper-deep);
}

.timeline-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline-item {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fffdf8;
}

.timeline-item span:first-child {
    color: var(--cyan-dark);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-item small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.5;
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.status-strip > * {
    min-height: 78px;
    padding: 11px 12px;
    color: var(--text);
    border: 1px solid var(--line);
    border-left: 4px solid var(--cyan-dark);
    border-radius: 5px;
    background: #fffdf8;
}

.status-strip > a {
    transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.status-strip > a:hover {
    border-color: var(--cyan-dark);
    box-shadow: var(--shadow-small);
    transform: translate(-1px, -1px);
}

.status-strip b {
    display: block;
    margin: 6px 0 3px;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
}

.status-strip small {
    color: var(--muted);
    font-size: 11px;
}

.report-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin-bottom: 14px;
}

.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #c6c9c2;
    border-radius: 3px;
    background: #ffffff;
}

table.data {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    color: #e8f2ef;
    background: var(--ink-800);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
}

.modern-table th,
.modern-table td {
    padding: 12px 11px;
    border-right: 1px solid #dfe1db;
    border-bottom: 1px solid #dfe1db;
    vertical-align: middle;
}

.modern-table th:last-child,
.modern-table td:last-child {
    border-right: 0;
}

.modern-table tbody tr:last-child td {
    border-bottom: 0;
}

.modern-table tbody tr:nth-child(even) {
    background: #f7f7f2;
}

.modern-table tbody tr:hover {
    background: #e9f4f1;
}

.modern-table td b {
    color: #1a252e;
}

.modern-table td small,
.modern-table td > span:not(.workflow-badge) {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.workflow-badge {
    display: inline-flex;
    width: max-content;
    max-width: 190px;
    min-height: 24px;
    align-items: center;
    padding: 4px 8px;
    color: #273138;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: #e8ecea;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.workflow-badge.draft,
.workflow-badge.submitted,
.workflow-badge.under_review,
.workflow-badge.stock_in {
    color: #20618f;
    background: #e0edf6;
}

.workflow-badge.approved,
.workflow-badge.reserved,
.workflow-badge.completed,
.workflow-badge.received,
.workflow-badge.released {
    color: #246f4d;
    background: #def0e5;
}

.workflow-badge.partially_approved,
.workflow-badge.partially_reserved,
.workflow-badge.partially_released,
.workflow-badge.partially_received,
.workflow-badge.for_procurement {
    color: #8a5a13;
    background: #f7e9c9;
}

.workflow-badge.rejected,
.workflow-badge.cancelled,
.workflow-badge.stock_out {
    color: #96373b;
    background: #f5dddd;
}

.workflow-badge.notify-info {
    color: #126f78;
    background: #dff5f3;
}

.workflow-badge.notify-success {
    color: #246f4d;
    background: #def0e5;
}

.workflow-badge.notify-warning {
    color: #8a5a13;
    background: #f7e9c9;
}

.workflow-badge.notify-danger {
    color: #96373b;
    background: #f5dddd;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    color: #071017;
    border: 1px solid rgba(122, 240, 238, 0.62);
    border-radius: 4px;
    background: var(--cyan);
    box-shadow: var(--shadow-small);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.filter-card {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
    margin-bottom: 18px;
    padding: 15px;
}

.filter-card label {
    flex: 1 1 170px;
    min-width: min(100%, 170px);
}

.filter-card .filter-search {
    flex-basis: 280px;
}

.filter-card .filter-actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-card .filter-count {
    margin-left: auto;
}

label {
    display: grid;
    gap: 6px;
    color: #53616a;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    min-height: 41px;
    padding: 9px 10px;
    color: var(--text);
    border: 1px solid #737d80;
    border-radius: 3px;
    background: #ffffff;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--cyan-dark);
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--cyan-dark);
    box-shadow: 0 0 0 3px rgba(32, 198, 199, 0.18);
    background: #fffef9;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

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

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

.full {
    grid-column: 1 / -1;
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid currentColor;
    border-left-width: 5px;
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
}

.alert.success {
    color: #246f4d;
    background: #def0e5;
}

.alert.danger {
    color: #96373b;
    background: #f5dddd;
}

.alert.warning {
    color: #8a5a13;
    background: #f7e9c9;
}

.alert.info {
    color: #126f78;
    background: #dcefed;
}

.login-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    color: #ffffff;
    background-color: var(--ink-900);
    background-image:
        linear-gradient(rgba(32, 198, 199, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 198, 199, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
}

.login-shell {
    width: min(440px, 100%);
}

.login-panel {
    position: relative;
    padding: 31px;
    color: var(--text);
    border: 1px solid var(--ink-950);
    border-top: 5px solid var(--cyan);
    border-radius: 5px;
    background: var(--paper);
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.32);
}

.login-panel::before {
    content: "SECURE ACCESS // INV-CTRL";
    display: block;
    margin: -31px -31px 24px;
    padding: 8px 12px;
    color: #a9c5c2;
    border-bottom: 1px solid #3b4851;
    background: var(--ink-800);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand img {
    width: 58px;
    height: 58px;
    padding: 5px;
    object-fit: contain;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: var(--shadow-small);
}

.login-brand h1 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: 27px;
}

.login-copy,
.login-help {
    color: var(--muted);
    line-height: 1.55;
}

.login-copy {
    margin: 20px 0 17px;
    padding-left: 12px;
    border-left: 3px solid var(--amber);
}

.login-help {
    display: block;
    padding-top: 14px;
    border-top: 1px solid #d2cdc1;
    font-family: var(--mono);
    font-size: 10px;
    text-align: center;
    text-transform: uppercase;
}

.login-form {
    display: grid;
    gap: 14px;
    margin: 17px 0;
}

.login-form .btn {
    margin-top: 2px;
}

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

.qty-positive {
    color: var(--green);
    font-weight: 900;
}

.qty-negative {
    color: var(--red);
    font-weight: 900;
}

.mobile-menu-toggle {
    display: none;
}

.print-doc {
    padding: 24px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
}

.forecast-terminal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 22px;
    margin-bottom: 21px;
    padding: 27px 29px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid #071017;
    border-top: 5px solid var(--cyan);
    border-radius: 5px;
    background:
        linear-gradient(135deg, rgba(32, 198, 199, 0.18), transparent 38%),
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        #101923;
    background-size: auto, 20px 20px, 20px 20px, auto;
    box-shadow: 7px 7px 0 rgba(17, 24, 32, 0.20);
}

.forecast-terminal::after {
    content: "FORECAST // ONLINE";
    position: absolute;
    right: 18px;
    bottom: 12px;
    color: rgba(255, 255, 255, 0.16);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 900;
}

.forecast-terminal > * {
    position: relative;
    z-index: 1;
}

.forecast-terminal h2 {
    max-width: 760px;
    margin: 9px 0 10px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.08;
}

.forecast-terminal p,
.forecast-terminal small {
    color: #ffffff;
    line-height: 1.62;
}

.forecast-run-panel {
    display: grid;
    gap: 11px;
    align-self: start;
    padding: 16px;
    border: 1px solid rgba(122, 240, 238, 0.42);
    border-radius: 5px;
    background: rgba(6, 12, 17, 0.72);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.24);
}

.forecast-run-panel label,
.forecast-run-panel span {
    color: #b8f1ec;
}

.forecast-run-panel strong {
    color: #ffffff;
    font-family: var(--mono);
    font-size: 14px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 21px;
}

.forecast-table .forecast-sparkline {
    display: block;
    width: 150px;
    height: 42px;
}

.forecast-sparkline {
    border: 1px solid #c9d5d2;
    border-radius: 3px;
    background: #f8fbf7;
}

.workflow-badge.risk-critical,
.risk-critical {
    border-color: #8f272d;
}

.workflow-badge.risk-critical {
    color: #ffffff;
    background: #b63840;
}

.metric-card.risk-critical,
.ai-card.risk-critical {
    background:
        linear-gradient(90deg, rgba(198, 75, 75, 0.18), transparent 48%),
        var(--surface);
}

.workflow-badge.risk-high {
    color: #452b07;
    background: #f2b857;
}

.risk-high {
    border-color: #c48717;
}

.metric-card.risk-high,
.ai-card.risk-high {
    background:
        linear-gradient(90deg, rgba(240, 168, 58, 0.20), transparent 48%),
        var(--surface);
}

.workflow-badge.risk-medium {
    color: #0c5962;
    background: #d7f2f1;
}

.risk-medium {
    border-color: #20a8a9;
}

.workflow-badge.risk-stable {
    color: #1f6546;
    background: #def0e5;
}

.risk-stable {
    border-color: #2e9b66;
}

.recommendation-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.ai-card {
    min-height: 240px;
    padding: 17px;
    border: 1px solid var(--line-strong);
    border-left-width: 5px;
    border-radius: 5px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.ai-card > span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--cyan-dark);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.ai-card h3 {
    margin: 0 0 9px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.25;
}

.ai-card p {
    margin: 0 0 10px;
    color: #2c3841;
    line-height: 1.55;
}

.ai-card small {
    display: block;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
}

.ai-reason {
    margin: 13px 0;
    padding: 12px;
    border: 1px solid #d5d8d0;
    border-radius: 4px;
    background: #fffaf0;
}

.ai-reason b {
    display: block;
    margin: 0 0 5px;
    color: var(--ink-800);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
}

.filter-card .report-toolbar {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}

.ai-dashboard-hero {
    align-items: center;
}

.ai-orbit {
    position: relative;
    display: grid;
    place-items: center;
    width: 210px;
    height: 210px;
    flex: 0 0 auto;
    border: 1px solid rgba(122, 240, 238, 0.42);
    border-radius: 50%;
    background:
        radial-gradient(circle at center, rgba(240, 168, 58, 0.24), transparent 35%),
        radial-gradient(circle at 34% 28%, rgba(32, 198, 199, 0.28), transparent 18%),
        rgba(5, 12, 18, 0.58);
    box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.03), 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.ai-orbit span {
    position: absolute;
    inset: 20px;
    border: 1px dashed rgba(122, 240, 238, 0.5);
    border-radius: 50%;
    animation: orbit-spin 14s linear infinite;
}

.ai-orbit span:nth-child(2) {
    inset: 43px;
    border-color: rgba(240, 168, 58, 0.55);
    animation-duration: 9s;
    animation-direction: reverse;
}

.ai-orbit span:nth-child(3) {
    inset: 70px;
    border-color: rgba(198, 75, 75, 0.45);
    animation-duration: 18s;
}

.ai-orbit strong {
    color: #ffffff;
    font-family: var(--mono);
    font-size: 44px;
    line-height: 1;
}

.ai-orbit small {
    position: absolute;
    bottom: 48px;
    color: #b8f1ec;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.live-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 21px;
}

.forecast-live-board {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.live-card {
    min-height: 260px;
    padding: 17px;
    border: 1px solid var(--line-strong);
    border-radius: 5px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.92)),
        var(--surface);
    box-shadow: var(--shadow);
}

.live-card.wide {
    grid-column: span 2;
}

.live-card.extra-wide {
    grid-column: span 3;
}

.location-map-card {
    min-height: 320px;
}

.live-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.live-card-head h2 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: 18px;
}

.diagram-card {
    background:
        linear-gradient(160deg, rgba(32, 198, 199, 0.12), rgba(240, 168, 58, 0.12) 44%, rgba(198, 75, 75, 0.08)),
        #fffdf7;
}

.ai-pulse-card {
    color: #ffffff;
    border-color: #071017;
    background:
        linear-gradient(140deg, rgba(32, 198, 199, 0.24), transparent 40%),
        linear-gradient(35deg, rgba(198, 75, 75, 0.26), transparent 58%),
        #111820;
}

.ai-pulse-card h2,
.ai-pulse-card p,
.ai-pulse-card .pulse-number strong,
.ai-pulse-card .pulse-number span {
    color: #ffffff;
}

.ai-pulse-card .eyebrow {
    color: #7af0ee;
}

.pulse-number {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 17px 0 10px;
}

.pulse-number strong {
    font-size: 50px;
    line-height: 0.9;
}

.pulse-number span {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.signal-led {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    color: #071017;
    border: 1px solid #071017;
    border-radius: 3px;
    background: var(--green);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.signal-led::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

.ai-mini-feed {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.ai-mini-feed span {
    padding: 5px 7px;
    color: #ffffff;
    border: 1px solid rgba(122, 240, 238, 0.44);
    border-radius: 3px;
    background: rgba(32, 198, 199, 0.13);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.chart-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border: 1px solid #c7cec8;
    border-radius: 4px;
    background: #fffef8;
}

.chart-clickable {
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-search {
    min-width: 220px;
}

.header-search input {
    width: 100%;
    min-height: 39px;
    padding: 9px 12px;
    color: var(--ink-950);
    border: 1px solid #c8d3ce;
    border-radius: 4px;
    background: #fffef8;
    font-family: var(--mono);
    font-size: 12px;
    box-shadow: 3px 3px 0 rgba(17, 24, 32, 0.08);
}

.check-row {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #c8d3ce;
    border-radius: 4px;
    background: rgba(255, 254, 248, 0.72);
    color: var(--ink-950);
    font-size: 12px;
    font-weight: 800;
}

.check-row input[type="checkbox"] {
    appearance: none;
    display: grid;
    place-items: center;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 2px solid var(--teal-700);
    border-radius: 3px;
    background: #fffef8;
}

.check-row input[type="checkbox"]:checked {
    background: var(--teal-500);
}

.check-row input[type="checkbox"]:checked::after {
    content: "";
    width: 8px;
    height: 5px;
    border-bottom: 2px solid var(--ink-950);
    border-left: 2px solid var(--ink-950);
    transform: rotate(-45deg) translate(1px, -1px);
}

.chart-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 rgba(17, 24, 32, 0.14);
}

.spectrum-card {
    background:
        linear-gradient(90deg, rgba(32, 198, 199, 0.22), transparent 48%),
        linear-gradient(135deg, #111820, #163840 55%, #2d2a1f);
}

.ai-gradient-card {
    background:
        linear-gradient(90deg, rgba(240, 168, 58, 0.24), transparent 50%),
        linear-gradient(135deg, #111820, #203148 52%, #123e41);
}

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

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

.feature-card {
    display: grid;
    gap: 7px;
    min-height: 118px;
    padding: 15px;
    color: var(--ink-950);
    text-decoration: none;
    border: 1px solid #c8d3ce;
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(32, 198, 199, 0.12), transparent 54%),
        #fffef8;
    box-shadow: 4px 4px 0 rgba(17, 24, 32, 0.08);
}

.feature-card span,
.timeline-event span,
.calendar-item span {
    color: var(--teal-700);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

.feature-card b {
    font-size: 14px;
}

.feature-card small,
.timeline-event p {
    color: var(--muted);
    line-height: 1.45;
}

.saved-filter-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 260px);
    gap: 12px;
    align-items: end;
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(17, 24, 32, 0.18);
}

.smart-table-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
}

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

.sortable-heading::after {
    content: " <>"; 
    color: rgba(255, 255, 255, 0.56);
    font-size: 9px;
}

.sortable-heading[data-sort-direction="asc"]::after {
    content: " ↑";
    color: #f0a83a;
}

.sortable-heading[data-sort-direction="desc"]::after {
    content: " ↓";
    color: #f0a83a;
}

.timeline {
    display: grid;
    gap: 12px;
    position: relative;
}

.timeline-event {
    display: grid;
    gap: 5px;
    padding: 13px 14px 13px 18px;
    border-left: 4px solid var(--teal-500);
    background: #fffef8;
    box-shadow: inset 0 0 0 1px #d7dfdb;
}

.timeline-event b {
    color: var(--ink-950);
}

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

.health-tile {
    display: grid;
    gap: 9px;
    padding: 16px;
    border: 1px solid #c8d3ce;
    border-radius: 6px;
    background: #fffef8;
    box-shadow: 4px 4px 0 rgba(17, 24, 32, 0.08);
}

.health-tile.ok {
    border-color: rgba(46, 155, 102, 0.42);
}

.health-tile.warning {
    border-color: rgba(240, 168, 58, 0.62);
}

.health-tile.danger {
    border-color: rgba(198, 75, 75, 0.64);
}

.wizard-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
}

.wizard-steps li {
    padding-left: 6px;
    line-height: 1.45;
}

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

.calendar-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 13px;
    align-items: center;
    padding: 14px;
    color: var(--ink-950);
    text-decoration: none;
    border: 1px solid #c8d3ce;
    border-radius: 6px;
    background: #fffef8;
    box-shadow: 4px 4px 0 rgba(17, 24, 32, 0.08);
}

.calendar-item time {
    display: grid;
    place-items: center;
    min-height: 54px;
    color: #ffffff;
    border-radius: 4px;
    background: var(--teal-700);
    font-family: var(--mono);
    font-weight: 900;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.kanban-lane {
    display: grid;
    gap: 8px;
    min-height: 112px;
    padding: 14px;
    color: var(--ink-950);
    text-decoration: none;
    border: 1px solid #c8d3ce;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(32, 198, 199, 0.14), transparent 42%),
        #fffef8;
    box-shadow: 4px 4px 0 rgba(17, 24, 32, 0.08);
}

.kanban-lane span {
    color: var(--teal-700);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.kanban-lane b {
    font-size: 30px;
    line-height: 1;
}

.class-A {
    background: #c64b4b;
    color: #ffffff;
}

.class-B {
    background: #f0a83a;
    color: #111820;
}

.class-C {
    background: #20c6c7;
    color: #111820;
}

.metric-card.risk-medium {
    background:
        linear-gradient(90deg, rgba(32, 198, 199, 0.18), transparent 48%),
        var(--surface);
}

.metric-card.risk-stable {
    background:
        linear-gradient(90deg, rgba(46, 155, 102, 0.18), transparent 48%),
        var(--surface);
}

#NotiflixNotifyWrap,
#NotiflixConfirmWrap,
#NotiflixReportWrap,
#NotiflixLoadingWrap,
[id^="NotiflixBlockWrap"] {
    letter-spacing: 0;
}

.notiflix-confirm-content,
.notiflix-report-content {
    border: 1px solid var(--ink-950);
    box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.25);
}

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

    .live-dashboard {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-card.wide {
        grid-column: span 2;
    }

    .live-card.extra-wide {
        grid-column: span 2;
    }
}

@media (max-width: 920px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(286px, 88vw);
        transform: translateX(-108%);
        transition: transform 180ms ease;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open::after {
        content: "";
        position: fixed;
        z-index: 30;
        inset: 0;
        background: rgba(9, 15, 21, 0.62);
    }

    .mobile-menu-toggle {
        display: inline-flex;
        margin-bottom: 10px;
    }

    .page-header,
    .dashboard-hero,
    .monitoring-top-card,
    .forecast-terminal,
    .card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .forecast-terminal {
        display: flex;
    }

    .page-header,
    .page-content {
        padding-right: 18px;
        padding-left: 18px;
    }

    .profile-pill {
        width: 100%;
        min-width: 0;
    }

    .header-tools,
    .header-search {
        width: 100%;
    }

    .dashboard-hero,
    .monitoring-top-card {
        min-height: 0;
    }

    .ai-orbit {
        width: 180px;
        height: 180px;
    }

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

    .split-grid,
    .feature-grid,
    .health-grid,
    .calendar-board,
    .kanban-board,
    .saved-filter-row {
        grid-template-columns: 1fr;
    }

    .live-card,
    .live-card.wide,
    .live-card.extra-wide {
        grid-column: auto;
        min-height: 0;
    }

    .form-grid.three,
    .filter-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-header h1 {
        font-size: 23px;
    }

    .dashboard-hero h2 {
        font-size: 27px;
    }

    .ai-orbit {
        width: 150px;
        height: 150px;
    }

    .ai-orbit strong {
        font-size: 36px;
    }

    .ai-orbit small {
        bottom: 34px;
    }

    .stats-grid,
    .form-grid,
    .form-grid.three,
    .filter-card {
        grid-template-columns: 1fr;
    }

    .content-card,
    .form-card,
    .dashboard-hero,
    .monitoring-top-card,
    .forecast-terminal {
        padding: 15px;
    }

    .modern-table {
        min-width: 720px;
    }

    .forecast-table {
        min-width: 920px;
    }

    .form-card .modern-table {
        min-width: 600px;
    }

    .login-panel {
        padding: 22px;
    }

    .login-panel::before {
        margin: -22px -22px 21px;
    }

    .login-brand h1 {
        font-size: 23px;
    }

    .hero-actions,
    .form-actions {
        width: 100%;
    }

    .hero-actions .btn,
    .form-actions .btn {
        flex: 1 1 160px;
    }
}

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

@media print {
    body {
        background: #ffffff;
    }

    .sidebar,
    .page-header,
    .no-print,
    #NotiflixNotifyWrap {
        display: none !important;
    }

    .app-layout {
        display: block;
    }

    .page-content,
    .print-doc {
        width: 100%;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .content-card,
    .form-card,
    .table-wrap {
        border-color: #999999;
        box-shadow: none;
    }
}

/* Shared identity for warehouse and transaction print documents. */
.print-sheet::before {
    content: "Metriccon Co., Inc.  /  Centralized Inventory Forecasting System";
    display: block;
    margin-bottom: 22px;
    padding-bottom: 12px;
    color: #111820;
    border-bottom: 3px solid #111820;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
