:root {
    --erp-bg: #f4f7fb;
    --erp-surface: #ffffff;
    --erp-surface-soft: #f8fafc;
    --erp-border: #d9e2ec;
    --erp-border-soft: #edf2f7;
    --erp-text: #142033;
    --erp-muted: #64748b;
    --erp-faint: #98a2b3;
    --erp-sidebar: #f9fbff;
    --erp-sidebar-2: #e9f3ff;
    --erp-primary: #1764e8;
    --erp-primary-hover: #0f4fc4;
    --erp-primary-soft: #edf5ff;
    --erp-teal: #0e7c86;
    --erp-amber: #b7791f;
    --erp-red: #b42318;
    --erp-green: #16803c;
    --erp-radius: 8px;
    --erp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 28px rgba(15, 23, 42, .07);
    --erp-focus: 0 0 0 3px rgba(23, 100, 232, .14);
}

.document-menu-bar {
    width: 100%;
    margin: 0 0 10px;
    border: 1px solid #cfd9e6;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffffff, #f4f7fb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.document-menu-bar__inner {
    display: flex;
    align-items: center;
    min-height: 34px;
    overflow-x: auto;
    white-space: nowrap;
}

.document-menu-bar__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid #d8dde5;
    border-radius: 0;
    background: transparent;
    color: #1f2d3d;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.document-menu-bar__item i,
.document-menu-bar__dropdown-menu .dropdown-item i {
    width: 16px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.document-menu-bar__item:hover,
.document-menu-bar__item:focus {
    background: #e8f1ff;
    color: #124fb2;
    outline: 0;
}

.document-menu-bar__item:hover i,
.document-menu-bar__item:focus i {
    color: #1764e8;
}

.document-menu-bar__item:focus-visible {
    box-shadow: inset 0 0 0 2px #7aa7d9;
}

.document-menu-bar__item:disabled,
.document-menu-bar__item--disabled {
    color: #9099a5;
    cursor: not-allowed;
    pointer-events: none;
}

.document-menu-bar__item--dropdown::after {
    content: "";
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.document-menu-bar__dropdown {
    display: inline-flex;
}

.document-menu-bar__dropdown-menu {
    min-width: 120px;
    border-radius: 4px;
    font-size: 13px;
}

.document-menu-bar__dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    border-radius: 4px;
}

.document-grid {
    table-layout: fixed;
}

.document-grid th {
    position: relative;
    user-select: none;
    white-space: nowrap;
}

.document-grid th[draggable="true"] {
    cursor: grab;
}

.document-grid th[draggable="true"]:active {
    cursor: grabbing;
}

.document-grid .grid-header-text {
    display: inline-block;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.document-grid .grid-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
}

.document-grid .grid-resize-handle:hover {
    background: #2563eb;
}

.document-grid .grid-drag-over {
    box-shadow: inset 3px 0 0 #2563eb;
    background: #eff6ff;
}

.document-grid-filter-row th {
    background: #f8fafc;
}

.document-grid-column-panel {
    position: fixed;
    z-index: 3000;
    width: 280px;
    max-height: 320px;
    overflow: auto;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}

.document-grid-column-panel label {
    display: block;
    margin: 0;
    padding: 6px 4px;
    font-size: 13px;
}

.document-grid-column-panel input {
    margin-right: 6px;
}

.document-grid-column-panel .document-grid-column-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.document-grid-column-panel .document-grid-column-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-grid-width-input {
    width: 78px;
    margin-right: 0 !important;
    padding: 3px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
}

.document-grid-resizing {
    cursor: col-resize !important;
    user-select: none !important;
}

.erp-column-settings-wrap {
    position: relative;
    padding-top: 34px;
}

.erp-column-settings-btn {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
    width: 30px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c8d5e5;
    border-radius: 4px;
    background: #ffffff;
    color: #475569;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.erp-column-settings-btn:hover,
.erp-column-settings-btn:focus {
    border-color: #8bb8ff;
    background: #edf5ff;
    color: #124fb2;
    outline: none;
}

.erp-column-hidden {
    display: none !important;
}

.erp-column-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 130000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .34);
}

.erp-column-modal {
    width: min(720px, calc(100vw - 36px));
    max-height: min(680px, calc(100vh - 36px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #c8d5e5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.erp-column-modal-head,
.erp-column-modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e1e8f2;
}

.erp-column-modal-head strong {
    color: #0f172a;
    font-size: 15px;
}

.erp-column-modal-close {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #64748b;
}

.erp-column-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.erp-column-modal-body {
    min-height: 0;
    overflow: auto;
    padding: 12px 14px;
}

.erp-column-modal-foot {
    justify-content: flex-end;
    border-top: 1px solid #e1e8f2;
    border-bottom: 0;
}

.erp-column-setting-hint {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
}

.erp-column-setting-list {
    display: grid;
    gap: 6px;
}

.erp-column-setting-row {
    display: grid;
    grid-template-columns: 38px 86px minmax(160px, 1fr) 76px;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 8px;
    border: 1px solid #e1e8f2;
    border-radius: 6px;
    background: #ffffff;
}

.erp-column-setting-index {
    color: #64748b;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.erp-column-setting-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: #334155;
    white-space: nowrap;
}

.erp-column-setting-move {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.erp-column-setting-move .btn {
    width: 32px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.select-search {
    position: relative;
}

.select-search-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.select-search-input {
    width: 100%;
}

.select-search-list {
    position: fixed;
    z-index: 99999;
    max-height: 260px;
    overflow: auto;
    padding: 4px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.select-search-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 4px;
    padding: 7px 9px;
    text-align: left;
    color: #0f172a;
    line-height: 1.35;
}

.select-search-option:hover,
.select-search-option.active {
    background: #e0f2fe;
    color: #075985;
}

.select-search-empty {
    padding: 8px 10px;
    color: #64748b;
    font-size: 13px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    background: var(--erp-bg);
    color: var(--erp-text);
    font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(232, 241, 255, .78), rgba(244, 247, 251, 0) 260px),
        linear-gradient(90deg, rgba(23, 100, 232, .05), rgba(14, 124, 134, .035));
}

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

.layout {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    isolation: isolate;
}

.sidebar {
    width: 254px;
    flex: 0 0 254px;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    z-index: 110000;
    background: var(--erp-sidebar);
    color: var(--erp-text);
    border-right: 1px solid #d7e1ee;
    box-shadow: 8px 0 24px rgba(15, 23, 42, .035);
    scrollbar-width: thin;
    scrollbar-color: #b5c3d6 transparent;
}

body.erp-flyout-nav {
    --erp-sidebar-width: 254px;
}

body.erp-flyout-nav .sidebar {
    overflow-y: auto;
    overflow-x: visible;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #b5c3d6;
    border-radius: 8px;
}

.brand {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid #dbe5f0;
    background: #ffffff;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #1764e8;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(23, 100, 232, .22);
}

.brand strong,
.brand small {
    display: block;
    letter-spacing: 0;
}

.brand strong {
    font-size: 15px;
    line-height: 1.2;
    color: #0f172a;
}

.brand small {
    margin-top: 2px;
    color: var(--erp-muted);
    font-size: 12px;
}

.sidebar a {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 12px;
    padding: 8px 11px;
    border-radius: 6px;
    color: #243044;
    text-decoration: none;
    font-size: 12.6px;
    line-height: 1.25;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.sidebar a i {
    width: 16px;
    color: #60708a;
    font-size: 14px;
}

.sidebar a:hover,
.sidebar a.active {
    background: var(--erp-sidebar-2);
    color: #124fb2;
}

.sidebar a.active {
    box-shadow: inset 3px 0 0 var(--erp-primary), 0 1px 2px rgba(15, 23, 42, .04);
    font-weight: 700;
}

.sidebar a.active i,
.sidebar a:hover i {
    color: var(--erp-primary);
}

.sidebar .menu-parent {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 12px 5px;
    padding: 8px 8px 2px;
    color: #25334a;
    font-weight: 700;
    font-size: 13px;
    border-radius: 6px;
    cursor: default;
    transition: background .16s ease, color .16s ease;
}

.sidebar .menu-parent::after {
    content: "\F285";
    margin-left: auto;
    color: #8a96a8;
    font-family: "bootstrap-icons";
    font-size: 11px;
    line-height: 1;
}

.sidebar .menu-parent:hover,
.sidebar .menu-parent:focus,
.sidebar .menu-parent.flyout-open {
    background: var(--erp-sidebar-2);
    color: #124fb2;
    outline: none;
}

.sidebar .menu-parent i {
    color: var(--erp-primary);
    font-size: 14px;
}

.sidebar .submenu {
    display: block;
    margin: 0 10px 6px;
    padding: 4px 0 6px;
    background: #ffffff;
    border: 1px solid #e1e8f2;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.sidebar .submenu a {
    margin: 1px 6px;
    padding-left: 34px;
    color: #3b4960;
}

.sidebar .submenu-label {
    margin: 9px 6px 4px;
    padding-left: 34px;
    color: #8a96a8;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
}

body.erp-flyout-nav .sidebar .submenu {
    position: fixed;
    left: calc(var(--erp-sidebar-width) + 8px);
    top: 80px;
    z-index: 120000;
    display: none;
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 18px 22px;
    width: min(960px, calc(100vw - var(--erp-sidebar-width) - 28px));
    max-height: min(650px, calc(100vh - 20px));
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 18px 20px;
    opacity: 1;
    background: #ffffff !important;
    background-clip: border-box;
    border: 1px solid #c8d5e5;
    border-radius: 10px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .20);
    backdrop-filter: none;
}

body.erp-flyout-nav .sidebar .submenu.flyout-open {
    display: grid;
}

body.erp-flyout-nav .sidebar .submenu-group {
    min-width: 0;
    break-inside: avoid;
}

body.erp-flyout-nav .sidebar .submenu-label {
    margin: 0 0 9px;
    padding: 0 0 9px;
    color: #1f2b44;
    border-bottom: 1px solid #d8e1ee;
    font-size: 13px;
    font-weight: 800;
    text-transform: none;
}

body.erp-flyout-nav .sidebar .submenu a {
    min-height: 30px;
    margin: 2px 0;
    padding: 6px 8px;
    color: #30405a;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.35;
}

body.erp-flyout-nav .sidebar .submenu a:hover,
body.erp-flyout-nav .sidebar .submenu a.active {
    background: #eef4ff;
    color: #1454c4;
}

body.erp-flyout-nav .sidebar .submenu a {
    position: relative;
    z-index: 1;
    margin: 1px 8px;
    padding-left: 12px;
    background: #ffffff;
}

body.erp-flyout-nav .sidebar .submenu-label {
    position: relative;
    z-index: 1;
    display: block;
    margin: 8px 10px 4px;
    padding-left: 10px;
    background: #ffffff;
    line-height: 1.35;
}

.nav-section {
    padding: 12px 18px 4px;
    color: #8f9aac;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    border-top: 1px solid #edf2f7;
}

.main {
    position: relative;
    z-index: 0;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    background: transparent;
}

.topbar {
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid rgba(217, 226, 236, .9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.topbar-title {
    min-width: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

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

.erp-topbar-tools {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.erp-topbar-tool {
    position: relative;
}

.erp-topbar-icon {
    position: relative;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7dde8;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    line-height: 1;
}

.erp-topbar-icon:hover,
.erp-topbar-icon:focus,
.erp-topbar-icon.is-open {
    color: #0f766e;
    border-color: #99d6ce;
    background: #f1fbf9;
    outline: none;
}

.erp-topbar-badge {
    position: absolute;
    min-width: 17px;
    height: 17px;
    top: -5px;
    right: -5px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    box-shadow: 0 0 0 2px #fff;
}

.erp-topbar-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: min(360px, calc(100vw - 24px));
    display: none;
    z-index: 60;
    overflow: hidden;
    border: 1px solid #dbe4ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .16);
}

.erp-topbar-menu.is-open {
    display: block;
}

.erp-topbar-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #e5ebf3;
    color: #0f172a;
    font-size: 14px;
}

.erp-topbar-menu-head span {
    color: #64748b;
    font-size: 12px;
}

.erp-topbar-menu-body {
    max-height: 330px;
    overflow: auto;
}

.erp-alert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    color: #1e293b;
    text-decoration: none;
    border-bottom: 1px solid #eef2f7;
}

.erp-alert-item:hover {
    background: #f8fafc;
}

.erp-alert-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.erp-alert-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-alert-hint {
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-alert-count {
    min-width: 34px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.erp-alert-count.is-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.erp-alert-count.is-warning {
    background: #fef3c7;
    color: #a16207;
}

.erp-alert-count.is-primary {
    background: #dbeafe;
    color: #1d4ed8;
}

.erp-topbar-menu-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #e5ebf3;
    background: #f8fafc;
    font-size: 12px;
}

.erp-topbar-menu-foot a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 700;
}

.erp-topbar-empty {
    padding: 18px 14px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.erp-help-menu {
    width: 340px;
}

.erp-help-list {
    max-height: 390px;
    overflow: auto;
    padding: 7px;
}

.erp-help-section-title {
    padding: 8px 9px 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.erp-help-list a,
.erp-help-action {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #1e293b;
    text-decoration: none;
    text-align: left;
}

.erp-help-list a:hover,
.erp-help-action:hover {
    background: #f1f5f9;
    color: #0f766e;
}

.erp-help-list i,
.erp-help-action i {
    width: 18px;
    margin-top: 2px;
    color: #64748b;
    text-align: center;
    flex: 0 0 auto;
}

.erp-help-list span,
.erp-help-action span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.erp-help-list strong,
.erp-help-action strong {
    font-size: 13px;
    line-height: 1.25;
}

.erp-help-list small,
.erp-help-action small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
}

.erp-ai-panel {
    padding: 10px;
    border-top: 1px solid #e5ebf3;
}

.erp-ai-panel[hidden] {
    display: none;
}

.erp-ai-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 10px;
}

.erp-ai-panel-head div {
    display: grid;
    gap: 2px;
}

.erp-ai-panel-head strong {
    color: #0f172a;
    font-size: 14px;
}

.erp-ai-panel-head span {
    color: #64748b;
    font-size: 12px;
}

.erp-ai-back {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4ef;
    border-radius: 6px;
    background: #fff;
    color: #334155;
}

.erp-ai-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.erp-ai-modes button,
.erp-ai-examples button {
    border: 1px solid #dbe4ef;
    border-radius: 6px;
    background: #fff;
    color: #334155;
    font-size: 12px;
}

.erp-ai-modes button {
    min-height: 30px;
}

.erp-ai-modes button.active {
    border-color: #0f766e;
    background: #ecfdf5;
    color: #0f766e;
    font-weight: 700;
}

.erp-ai-question {
    resize: vertical;
    min-height: 82px;
    margin-bottom: 8px;
}

.erp-ai-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.erp-ai-examples button {
    padding: 4px 7px;
}

.erp-ai-answer {
    min-height: 74px;
    max-height: 180px;
    overflow: auto;
    margin-top: 8px;
    padding: 9px;
    border: 1px solid #e5ebf3;
    border-radius: 6px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.erp-ai-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    white-space: normal;
}

.erp-ai-link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 8px;
    border: 1px solid #cfe0f1;
    border-radius: 6px;
    background: #fff;
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.erp-ai-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
}

.erp-ai-foot a {
    color: #0f766e;
    font-weight: 700;
    text-decoration: none;
}

.erp-help-version {
    padding: 10px 14px 12px;
    border-top: 1px solid #e5ebf3;
    background: #f8fafc;
}

.erp-help-version-title {
    margin-bottom: 7px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.erp-help-version-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    color: #64748b;
    font-size: 12px;
}

.erp-help-version-row strong {
    min-width: 0;
    color: #334155;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.erp-page-tabs {
    position: sticky;
    top: 56px;
    z-index: 19;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding: 7px 24px 6px;
    background: rgba(248, 250, 252, .9);
    border-bottom: 1px solid rgba(217, 226, 236, .92);
    backdrop-filter: blur(10px);
}

.erp-page-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    max-width: 220px;
    padding: 0 8px 0 10px;
    border: 1px solid #d6e0ec;
    border-radius: 7px 7px 0 0;
    background: #ffffff;
    color: #344054;
    font-size: 13px;
}

.erp-page-tab.active {
    border-color: #9fc3ff;
    border-bottom-color: #ffffff;
    background: #ffffff;
    color: #124fb2;
    box-shadow: 0 -1px 0 #1764e8 inset;
}

.erp-page-tab a {
    min-width: 0;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    text-decoration: none;
}

.erp-page-tab button {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #667085;
    line-height: 1;
}

.erp-page-tab button:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 20px 24px 26px;
}

.global-operation-toolbar {
    margin: -2px 0 12px;
}

.page-heading,
.page-hero,
.ops-hero {
    margin-bottom: 16px;
}

.page-heading h1,
.page-hero h1,
.ops-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 0;
}

.page-heading p,
.page-hero p,
.ops-hero p {
    margin: 6px 0 0;
    color: var(--erp-muted);
}

.erp-list-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.erp-list-heading h1 {
    font-size: 22px;
}

.erp-list-heading p {
    margin-top: 4px;
}

.erp-workbench-heading {
    align-items: center;
}

.erp-workbench-heading h1 {
    font-size: 22px;
}

.erp-workbench-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.erp-workbench-metric {
    min-height: 72px;
    padding: 10px 12px;
    border: 1px solid #d9e3ef;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.erp-workbench-metric-label,
.erp-workbench-metric-hint {
    color: var(--erp-muted);
    font-size: 12px;
}

.erp-workbench-metric-value {
    margin-top: 3px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.erp-workbench-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #d9e3ef;
    border-radius: 6px;
    background: #fff;
}

.erp-workbench-strip-title {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.erp-workbench-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.erp-workbench-section {
    padding: 12px;
}

.erp-workbench-table {
    min-width: 1040px;
}

.erp-workbench-table thead th {
    white-space: nowrap;
}

.erp-workbench-table td {
    max-width: 260px;
    vertical-align: top;
}

.erp-workbench-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.erp-workbench-task-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d7e2ee;
    border-radius: 6px;
    background: #fbfcfe;
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.erp-workbench-task-card:hover {
    border-color: #a6c7ff;
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
}

.erp-workbench-task-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
}

.erp-workbench-task-head strong {
    color: #0f172a;
    font-size: 22px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.erp-workbench-task-card dl {
    display: grid;
    gap: 7px;
    margin: 0;
}

.erp-workbench-task-card dt {
    margin: 0 0 2px;
    color: var(--erp-muted);
    font-size: 12px;
    font-weight: 700;
}

.erp-workbench-task-card dd {
    margin: 0;
    color: #334155;
    font-size: 12px;
    line-height: 1.35;
}

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

.erp-queue-card {
    display: grid;
    gap: 7px;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #d9e3ef;
    border-radius: 6px;
    background: #fff;
}

.erp-queue-card.danger {
    border-color: #fecaca;
    background: #fffafa;
}

.erp-queue-card.warning {
    border-color: #fed7aa;
    background: #fffaf3;
}

.erp-queue-card.primary {
    border-color: #b9cff7;
    background: #fbfdff;
}

.erp-queue-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.erp-queue-role,
.erp-queue-meta {
    color: var(--erp-muted);
    font-size: 12px;
}

.erp-queue-title {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 850;
}

.erp-queue-count {
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.erp-queue-lines {
    display: grid;
    gap: 4px;
    margin: 0;
    font-size: 12px;
}

.erp-queue-lines div {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px;
}

.erp-queue-lines dt {
    color: var(--erp-muted);
    font-weight: 700;
}

.erp-queue-lines dd {
    margin: 0;
    color: #334155;
}

.erp-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.erp-summary-item {
    min-height: 58px;
    border: 1px solid #d9e3ef;
    border-radius: 6px;
    background: #fff;
    padding: 9px 12px;
}

.erp-summary-item span,
.erp-summary-item small {
    display: block;
    color: var(--erp-muted);
    font-size: 12px;
}

.erp-summary-item strong {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.erp-list-card {
    padding: 12px 16px;
}

.erp-list-card .section-title {
    margin-bottom: 10px;
    padding-bottom: 9px;
}

.erp-list-card .section-title h2 {
    font-size: 15px;
}

.erp-list-table {
    margin-bottom: 0;
}

.erp-empty-line {
    min-height: 42px;
    display: flex;
    align-items: center;
    color: var(--erp-muted);
    font-size: 13px;
}

.order-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.order-form-heading h1 {
    font-size: 21px;
}

.order-form-heading p {
    margin-top: 3px;
}

.order-form-card {
    padding: 12px 16px;
}

.order-form-card .section-title {
    margin-bottom: 10px;
    padding-bottom: 9px;
}

.order-form-card .section-title h2 {
    font-size: 15px;
}

.order-form-card .form-label {
    margin-bottom: 4px;
    font-size: 12px;
}

.page-card {
    background: var(--erp-surface);
    border: 1px solid #d9e3ef;
    border-radius: var(--erp-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 10px 24px rgba(15, 23, 42, .035);
    padding: 15px 16px;
}

.erp-home-command {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 108px;
    padding: 17px 20px;
    background:
        linear-gradient(135deg, rgba(23, 100, 232, .06), rgba(14, 124, 134, .04)),
        #ffffff;
}

.erp-home-kicker {
    margin-bottom: 5px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
}

.erp-home-command h1 {
    margin: 0;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 850;
}

.erp-home-command p {
    max-width: 760px;
    margin: 7px 0 0;
    color: #53657d;
    font-size: 13px;
}

.erp-home-command-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.erp-home-command-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.erp-home-shell {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.erp-home-main {
    width: 100%;
    display: grid;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.erp-home-aside {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

.erp-home-launch {
    padding-bottom: 16px;
}

.erp-home-launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 10px;
}

.erp-launch-tile {
    min-height: 74px;
    display: grid;
    place-items: center;
    gap: 7px;
    padding: 10px 8px;
    border: 1px solid #dbe5f1;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    text-align: center;
}

.erp-launch-tile:hover {
    border-color: #9abdf4;
    color: #185ad8;
    background: #f8fbff;
    text-decoration: none;
}

.erp-launch-tile i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eaf2ff;
    color: #2868e8;
    font-size: 17px;
}

.erp-launch-tile span {
    max-width: 100%;
    color: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-home-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    gap: 10px;
}

.erp-home-stat {
    min-height: 92px;
    display: grid;
    gap: 4px;
    padding: 15px 16px;
    border: 1px solid #dce6f2;
    border-radius: 7px;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.erp-home-stat:hover {
    border-color: #a8c4ef;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.erp-home-stat span {
    color: #52657c;
    font-size: 12px;
    font-weight: 750;
}

.erp-home-stat strong {
    color: #101828;
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.erp-home-stat small {
    color: #64748b;
    font-size: 12px;
}

.erp-home-stat.is-warning strong {
    color: #d97706;
}

.erp-home-chart-section {
    background: #fbfcfe;
}

.erp-home-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .8fr);
    gap: 12px;
}

.erp-home-chart-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 14px;
    border: 1px solid #dfe8f2;
    border-radius: 7px;
    background: #fff;
}

.erp-home-chart-card-wide {
    grid-row: span 2;
}

.erp-home-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.erp-home-chart-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
}

.erp-home-chart-head span {
    color: #64748b;
    font-size: 12px;
}

.erp-home-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    color: #64748b;
    font-size: 12px;
}

.erp-home-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.erp-home-chart-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.erp-home-chart-legend .is-sales,
.erp-home-bar.is-sales {
    background: #2563eb;
}

.erp-home-chart-legend .is-shipment,
.erp-home-bar.is-shipment {
    background: #16a34a;
}

.erp-home-bar-chart {
    height: 226px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    gap: 12px;
    padding: 16px 6px 0;
    background:
        linear-gradient(to bottom, transparent 0, transparent 24%, #eef2f7 25%, transparent 26%, transparent 49%, #eef2f7 50%, transparent 51%, transparent 74%, #eef2f7 75%, transparent 76%),
        #fff;
}

.erp-home-bar-day {
    min-width: 0;
    display: grid;
    gap: 8px;
    align-items: end;
    height: 100%;
}

.erp-home-bar-pair {
    height: 178px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}

.erp-home-bar {
    width: min(16px, 38%);
    min-height: 3px;
    border-radius: 5px 5px 2px 2px;
    box-shadow: inset 0 -1px 0 rgba(15, 23, 42, .1);
}

.erp-home-bar-label {
    color: #64748b;
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
}

.erp-home-progress-list,
.erp-home-risk-bars {
    display: grid;
    gap: 11px;
}

.erp-home-progress-row,
.erp-home-risk-row {
    display: grid;
    gap: 7px;
    color: #0f172a;
    text-decoration: none;
}

.erp-home-progress-row:hover,
.erp-home-risk-row:hover {
    color: #185ad8;
    text-decoration: none;
}

.erp-home-progress-row div,
.erp-home-risk-row {
    min-width: 0;
}

.erp-home-progress-row div,
.erp-home-risk-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.erp-home-progress-row span,
.erp-home-risk-row span {
    min-width: 0;
    color: #475569;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-home-progress-row strong,
.erp-home-risk-row strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.erp-home-progress-row em,
.erp-home-risk-row em {
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}

.erp-home-progress-row i,
.erp-home-risk-row i {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
}

.erp-home-progress-row .tone-blue {
    background: #2563eb;
}

.erp-home-progress-row .tone-green {
    background: #16a34a;
}

.erp-home-progress-row .tone-amber {
    background: #d97706;
}

.erp-home-risk-row i {
    background: #ea580c;
}

.erp-home-task-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

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

.erp-home-side-card {
    padding: 14px;
}

.erp-home-side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.erp-home-side-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 850;
}

.erp-home-side-title a {
    color: #2563eb;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.erp-home-alert-row {
    min-height: 34px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #edf1f6;
    color: #1e293b;
    text-decoration: none;
}

.erp-home-alert-row:last-child {
    border-bottom: 0;
}

.erp-home-alert-row:hover {
    color: #185ad8;
    text-decoration: none;
}

.erp-home-alert-row strong {
    min-width: 34px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 12px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.erp-home-alert-row span {
    min-width: 0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.erp-home-alert-row i {
    color: #94a3b8;
    font-size: 12px;
}

.erp-home-master-mini {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.erp-home-master-mini a {
    display: grid;
    gap: 4px;
    padding: 10px;
    border-radius: 7px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
}

.erp-home-master-mini a:hover {
    background: #eef6ff;
}

.erp-home-master-mini span {
    color: #64748b;
    font-size: 12px;
}

.erp-home-master-mini strong {
    font-size: 22px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.erp-home-mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.erp-home-mini-links a {
    padding: 5px 8px;
    border: 1px solid #dbe5f1;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    text-decoration: none;
}

.erp-home-mini-links a:hover {
    border-color: #9abdf4;
    color: #185ad8;
}

.erp-home-money-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f6;
    color: #1e293b;
    text-decoration: none;
}

.erp-home-money-row:last-child {
    border-bottom: 0;
}

.erp-home-money-row span {
    color: #64748b;
    font-size: 12px;
}

.erp-home-money-row strong {
    color: #0f172a;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.erp-home-metric {
    min-height: 88px;
}

.erp-home-section {
    min-width: 0;
    max-width: 100%;
    border-color: #d7e1ec;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.erp-home-section-queue {
    background: #f8fafc;
}

.erp-home-section-entry {
    background: #f7fbff;
}

.erp-home-section-list {
    background: #fbfcfe;
}

.erp-home-section-master {
    background: #fbfdfb;
}

.erp-home-section-report {
    background: #fcfcff;
}

.erp-home-section .quick-link,
.erp-home-section .erp-workbench-task-card {
    background: rgba(255, 255, 255, .86);
}

.filter-schemes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.filter-scheme {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border: 1px solid var(--erp-border);
    border-radius: 6px;
    background: #fff;
    color: #344054;
    text-decoration: none;
    font-size: 12px;
}

.filter-scheme:hover,
.filter-scheme.active {
    border-color: #8cc5d8;
    background: var(--erp-primary-soft);
    color: var(--erp-primary);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef3f8;
}

.section-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.section-title span {
    color: var(--erp-muted);
    font-size: 12px;
}

.metric {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #dae5f1;
    border-radius: var(--erp-radius);
    padding: 15px 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .035), 0 8px 18px rgba(15, 23, 42, .035);
}

.metric .label {
    color: var(--erp-muted);
    font-size: 13px;
}

.metric .value {
    margin-top: 5px;
    color: #101828;
    font-size: 27px;
    line-height: 1.1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.metric .text-muted,
.metric-hint {
    color: var(--erp-muted) !important;
    font-size: 12px;
}

.metric.is-alert {
    border-color: #fed7aa;
    background: #fffaf3;
}

.metric.is-danger {
    border-color: #fecaca;
    background: #fff7f7;
}

.ops-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 16px;
}

.ops-panel {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #d8e4e8;
    border-radius: var(--erp-radius);
    background: #ffffff;
    box-shadow: var(--erp-shadow);
    padding: 20px;
}

.ops-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--erp-primary);
    font-size: 12px;
    font-weight: 800;
}

.ops-panel h1 {
    max-width: 760px;
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.2;
}

.ops-panel p {
    max-width: 780px;
    margin: 8px 0 0;
}

.ops-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ops-side {
    display: grid;
    gap: 10px;
}

.ops-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    border: 1px solid var(--erp-border);
    border-radius: var(--erp-radius);
    background: #ffffff;
    padding: 12px 14px;
}

.ops-alert strong {
    display: block;
    color: #101828;
    font-size: 14px;
}

.ops-alert span {
    color: var(--erp-muted);
    font-size: 12px;
}

.ops-alert .number {
    color: #101828;
    font-size: 20px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-8 {
    grid-column: span 8;
}

.span-12 {
    grid-column: span 12;
}

.work-list {
    display: grid;
    gap: 10px;
}

.work-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid var(--erp-border-soft);
    border-radius: 8px;
    background: var(--erp-surface-soft);
}

.work-item:hover {
    border-color: #c8d7df;
    background: #ffffff;
}

.work-item-title {
    color: #101828;
    font-weight: 750;
    text-decoration: none;
}

.work-item-title:hover {
    color: var(--erp-primary);
}

.work-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3px;
    color: var(--erp-muted);
    font-size: 12px;
}

.work-item-value {
    color: #101828;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.empty-state {
    min-height: 82px;
    display: grid;
    place-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--erp-muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #175cd3;
    font-size: 12px;
    font-weight: 700;
}

.status-pill.warning {
    background: #fffaeb;
    color: var(--erp-amber);
}

.status-pill.danger {
    background: #fef3f2;
    color: var(--erp-red);
}

.status-pill.success {
    background: #ecfdf3;
    color: var(--erp-green);
}

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

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

.quick-link {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--erp-border);
    border-radius: 6px;
    background: #ffffff;
    color: #101828;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.quick-link:hover {
    border-color: #a8c4ef;
    color: var(--erp-primary);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    transform: translateY(-1px);
}

.quick-link i {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--erp-primary-soft);
    color: var(--erp-primary);
    font-size: 16px;
    flex: 0 0 auto;
}

.quick-link strong {
    display: block;
    font-size: 13px;
}

.quick-link span {
    display: block;
    margin-top: 2px;
    color: var(--erp-muted);
    font-size: 12px;
}

.project-card-list {
    display: grid;
    gap: 12px;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .8fr) 150px;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--erp-border);
    border-radius: 8px;
    background: #ffffff;
}

.project-card:hover {
    border-color: #b8ccd6;
    background: #fbfdfe;
}

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

.project-title {
    color: #101828;
    font-size: 16px;
    font-weight: 850;
    text-decoration: none;
}

.project-title:hover {
    color: var(--erp-primary);
}

.project-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    color: var(--erp-muted);
    font-size: 12px;
}

.project-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.project-flow span {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--erp-border);
    border-radius: 999px;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.project-flow span.active {
    border-color: #9ccbd7;
    background: var(--erp-primary-soft);
    color: var(--erp-primary);
}

.project-card-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.project-card-metrics div {
    min-height: 58px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--erp-border-soft);
}

.project-card-metrics strong {
    color: #101828;
    font-size: 15px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.project-card-metrics span {
    color: var(--erp-muted);
    font-size: 12px;
}

.project-card-side {
    display: grid;
    justify-items: end;
    gap: 10px;
}

.project-amount {
    color: #101828;
    font-size: 17px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ledger-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--erp-border-soft);
    color: var(--erp-muted);
    font-size: 13px;
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    margin-bottom: 16px;
}

.project-hero-main {
    min-height: 176px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid #d8e4e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--erp-shadow);
}

.project-kicker {
    color: var(--erp-primary);
    font-size: 12px;
    font-weight: 850;
}

.project-hero h1 {
    margin: 6px 0 0;
    color: #101828;
    font-size: 26px;
    line-height: 1.18;
    font-weight: 850;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--erp-muted);
    font-size: 13px;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.project-hero-side {
    display: grid;
    gap: 10px;
}

.project-signal {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--erp-border);
    border-radius: 8px;
    background: #ffffff;
}

.project-signal strong {
    color: #101828;
    font-size: 13px;
}

.project-signal span {
    color: var(--erp-muted);
    font-size: 12px;
}

.project-signal .value {
    color: #101828;
    font-size: 19px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.timeline-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.timeline-step {
    min-height: 74px;
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid var(--erp-border);
    border-radius: 8px;
    background: #f8fafc;
}

.timeline-step.active {
    border-color: #9ccbd7;
    background: var(--erp-primary-soft);
}

.timeline-step strong {
    color: #101828;
    font-size: 13px;
}

.timeline-step span {
    color: var(--erp-muted);
    font-size: 12px;
}

.trace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}

.trace-side {
    display: grid;
    gap: 16px;
}

.table-responsive {
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.table {
    margin-bottom: 0;
    color: var(--erp-text);
    font-size: 12.8px;
    vertical-align: middle;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f6f9fd;
    border-bottom: 1px solid #d8e2ed;
    color: #41516a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.table tbody td {
    border-color: var(--erp-border-soft);
    color: #1e293b;
}

.table tbody tr:hover {
    background: #f6faff;
}

.material-master-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.material-class-panel,
.material-list-panel {
    background: #fff;
    border: 1px solid #d8dee9;
    border-radius: 6px;
}

.material-class-panel {
    padding: 12px;
    position: sticky;
    top: 74px;
    max-height: calc(100vh - 94px);
    overflow: auto;
}

.material-class-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.material-class-search {
    margin-bottom: 10px;
}

.material-class-link {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    padding: 7px 8px;
    border-radius: 4px;
    color: #374151;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
}

.material-class-link:hover,
.material-class-link.active {
    background: #eef4ff;
    color: #0f4aa2;
}

.material-class-link span {
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.material-list-panel {
    min-width: 0;
    padding: 12px;
}

.material-master-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.material-master-header h1 {
    font-size: 20px;
    margin: 0 0 4px;
}

.material-master-search {
    display: flex;
    gap: 8px;
    min-width: 320px;
}

.material-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 10px;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
    margin-bottom: 8px;
}

.material-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #d8dee9;
    border-radius: 6px;
    background: #fbfcfe;
}

.material-filter-bar label {
    display: grid;
    gap: 3px;
    min-width: 132px;
    margin: 0;
    color: #4b5563;
    font-size: 12px;
}

.material-filter-bar select {
    min-height: 30px;
    font-size: 12px;
}

.material-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #4b5563;
    font-size: 12px;
    margin-bottom: 8px;
}

.material-active-filters span {
    border: 1px solid #d8dee9;
    border-radius: 4px;
    padding: 3px 7px;
    background: #f8fafc;
}

.material-active-filters select {
    width: 72px;
    min-height: 26px;
    padding-top: 2px;
    padding-bottom: 2px;
    font-size: 12px;
}

.material-grid-wrap {
    overflow: auto;
    border: 1px solid #d8dee9;
    border-radius: 6px;
    max-height: calc(100vh - 220px);
}

.material-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
}

.material-page-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    color: #4b5563;
    font-size: 12px;
}

.material-page-jump input[type="number"] {
    width: 76px;
}

.material-master-table {
    min-width: 1500px;
    margin-bottom: 0;
    font-size: 12px;
}

.material-master-table thead th {
    background: #f3f6fa;
    color: #374151;
    font-weight: 700;
    white-space: nowrap;
}

.material-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1f2937;
    text-decoration: none;
}

.material-sort-link:hover,
.material-sort-link.active {
    color: #0d6efd;
    text-decoration: none;
}

.material-sort-link span {
    font-size: 11px;
}

.material-master-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.table-sm > :not(caption) > * > * {
    padding: .58rem .72rem;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: var(--erp-focus);
}

.btn-primary {
    border-color: var(--erp-primary);
    background: var(--erp-primary);
    box-shadow: 0 1px 2px rgba(23, 100, 232, .18);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--erp-primary-hover);
    background: var(--erp-primary-hover);
}

.btn-outline-primary {
    border-color: #b9cff7;
    color: var(--erp-primary);
    background: #ffffff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--erp-primary);
    background: var(--erp-primary-soft);
    color: var(--erp-primary-hover);
}

.btn-light {
    border-color: #d9e3ef;
    background: #ffffff;
    color: #344054;
}

.form-control,
.form-select {
    border-color: #d4deeb;
    border-radius: 7px;
}

.badge.text-bg-light {
    border: 1px solid #dbe5f0;
    background: #f7faff !important;
    color: #334155 !important;
    font-weight: 700;
}

.form-control,
.form-select {
    border-color: var(--erp-border);
    border-radius: 6px;
    font-size: 13px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--erp-primary);
    box-shadow: 0 0 0 3px rgba(23, 107, 135, .14);
}

.flash {
    margin-bottom: 14px;
    border-radius: 8px;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 28px;
    background:
        linear-gradient(135deg, #eaf3ff 0%, #f7fbff 46%, #eef7f7 100%);
}

.login-video-page {
    position: relative;
    justify-content: end;
    padding: 56px 8vw;
    background: #07111f;
}

.login-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.login-video-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, .24) 0%, rgba(7, 17, 31, .18) 44%, rgba(7, 17, 31, .70) 100%),
        linear-gradient(180deg, rgba(7, 17, 31, .18), rgba(7, 17, 31, .36));
}

.login-card-video {
    width: min(420px, 100%);
    min-width: min(420px, calc(100vw - 32px));
    z-index: 2;
    background: rgba(255, 255, 255, .88);
    border-color: rgba(255, 255, 255, .62);
}

.login-soft-page {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 7vw;
    min-height: 100vh;
    padding: 7vh 12vw 7vh 18vw;
    background: #edf6ff;
}

.login-soft-scene {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 74% 18%, rgba(80, 170, 220, .28), transparent 34%),
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .82), transparent 34%),
        linear-gradient(145deg, #f8fbff 0%, #eef7ff 46%, #d8edf8 100%);
}

.login-sky-layer {
    position: absolute;
    inset: -18% -10%;
    opacity: .38;
    filter: blur(1px);
    transform-origin: center;
}

.login-sky-one {
    background:
        radial-gradient(ellipse at 16% 28%, rgba(255, 255, 255, .92), transparent 30%),
        radial-gradient(ellipse at 72% 16%, rgba(255, 255, 255, .48), transparent 26%),
        radial-gradient(ellipse at 58% 78%, rgba(188, 218, 235, .22), transparent 32%);
    animation: loginSoftDrift 24s ease-in-out infinite alternate;
}

.login-sky-two {
    background:
        linear-gradient(18deg, transparent 28%, rgba(255, 255, 255, .42) 38%, transparent 52%),
        linear-gradient(170deg, transparent 36%, rgba(211, 233, 245, .32) 48%, transparent 64%);
    animation: loginSoftDriftReverse 30s ease-in-out infinite alternate;
}

.login-light-band {
    position: absolute;
    height: 18vh;
    left: -8vw;
    right: -8vw;
    border-radius: 999px;
    filter: blur(20px);
    opacity: .36;
}

.login-light-band-one {
    top: 58%;
    background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(221, 238, 248, .66), rgba(255, 255, 255, .18));
    transform: rotate(-5deg);
    animation: loginBandFlow 18s ease-in-out infinite alternate;
}

.login-light-band-two {
    top: 74%;
    background: linear-gradient(90deg, rgba(210, 230, 244, .28), rgba(255, 255, 255, .62), rgba(111, 194, 236, .22));
    transform: rotate(3deg);
    animation: loginBandFlow 22s ease-in-out infinite alternate-reverse;
}

.login-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: .42;
}

.login-glow-one {
    width: 38vw;
    height: 38vw;
    right: 10vw;
    top: 6vh;
    background: radial-gradient(circle, rgba(114, 202, 235, .60), rgba(159, 225, 247, .22) 52%, transparent 68%);
    animation: loginFloat 12s ease-in-out infinite;
}

.login-glow-two {
    width: 28vw;
    height: 28vw;
    left: 30vw;
    bottom: 2vh;
    background: radial-gradient(circle, rgba(190, 222, 238, .36), rgba(255, 255, 255, .16) 58%, transparent 72%);
    animation: loginFloat 15s ease-in-out infinite reverse;
}

.login-hero-shape {
    position: absolute;
    pointer-events: none;
    opacity: .42;
    filter: blur(.2px);
}

.login-hero-shape-main {
    width: 42vw;
    height: 18vw;
    right: 9vw;
    top: 15vh;
    border-radius: 58% 42% 52% 48% / 48% 52% 45% 55%;
    background:
        radial-gradient(circle at 24% 28%, rgba(255, 255, 255, .88), transparent 20%),
        linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(133, 214, 241, .26) 48%, rgba(213, 232, 242, .22));
    box-shadow:
        inset -30px -18px 70px rgba(83, 174, 215, .20),
        0 36px 120px rgba(79, 157, 198, .18);
    transform: rotate(-9deg);
    animation: loginHeroFloat 18s ease-in-out infinite alternate;
}

.login-hero-shape-fin {
    width: 13vw;
    height: 8vw;
    right: 35vw;
    top: 27vh;
    border-radius: 18% 82% 26% 74% / 28% 70% 30% 72%;
    background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(203, 225, 239, .24));
    transform: rotate(20deg);
    animation: loginHeroFloat 16s ease-in-out infinite alternate-reverse;
}

.login-floating-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .78);
    background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .86), rgba(255, 255, 255, .16) 58%, rgba(119, 204, 236, .20));
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .46), 0 14px 40px rgba(67, 140, 181, .14);
    border-radius: 50%;
    opacity: .34;
    animation: loginBubble 16s ease-in-out infinite;
}

.login-floating-shape-one {
    width: 96px;
    height: 96px;
    right: 18vw;
    top: 24vh;
}

.login-floating-shape-two {
    width: 54px;
    height: 54px;
    right: 10vw;
    bottom: 24vh;
    animation-delay: -6s;
}

.login-floating-shape-three {
    width: 32px;
    height: 32px;
    left: 36vw;
    top: 18vh;
    animation-delay: -10s;
    display: none;
}

.login-soft-horizon {
    position: absolute;
    left: -10vw;
    right: -10vw;
    bottom: -10vh;
    height: 36vh;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .70)),
        radial-gradient(ellipse at 50% 0%, rgba(205, 226, 239, .32), transparent 62%);
    filter: blur(8px);
}

.login-soft-brand {
    position: relative;
    z-index: 2;
    align-self: start;
    margin-top: 18vh;
}

.login-soft-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #0f172a;
    font-size: 32px;
    font-weight: 850;
}

.login-soft-logo .brand-mark {
    width: 54px;
    height: 54px;
    font-size: 24px;
}

.login-soft-brand p {
    margin: 16px 0 0 68px;
    color: #5e6877;
    font-size: 24px;
    font-weight: 750;
}

.login-card-soft {
    width: 420px;
    z-index: 2;
    justify-self: end;
    background: rgba(255, 255, 255, .94);
    border-color: rgba(205, 218, 232, .92);
    box-shadow: 0 20px 52px rgba(54, 105, 138, .16);
}

.login-stage {
    width: min(1180px, 100%);
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 420px;
    gap: 28px;
    align-items: stretch;
}

.login-visual-panel,
.login-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(190, 205, 224, .8);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
    backdrop-filter: blur(14px);
}

.login-visual-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
}

.login-grid-motion {
    position: absolute;
    inset: 0;
    opacity: .72;
    background-image:
        linear-gradient(rgba(23, 100, 232, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 100, 232, .10) 1px, transparent 1px);
    background-size: 42px 42px;
    animation: loginGridMove 18s linear infinite;
}

.login-orbit {
    position: absolute;
    border: 1px solid rgba(23, 100, 232, .2);
    border-radius: 50%;
    pointer-events: none;
}

.login-orbit-one {
    width: 360px;
    height: 360px;
    right: -90px;
    top: -80px;
    animation: loginFloat 9s ease-in-out infinite;
}

.login-orbit-two {
    width: 230px;
    height: 230px;
    left: 38px;
    bottom: 54px;
    animation: loginFloat 11s ease-in-out infinite reverse;
}

.login-brand-block,
.login-copy,
.login-flow,
.login-proof,
.login-card > * {
    position: relative;
    z-index: 1;
}

.login-brand-block,
.login-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-brand-block strong,
.login-brand-block small,
.login-title strong,
.login-title small {
    display: block;
}

.login-brand-block strong,
.login-title strong {
    color: #0f172a;
}

.login-brand-block small,
.login-title small {
    color: var(--erp-muted);
    font-size: 12px;
}

.login-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid rgba(23, 100, 232, .2);
    border-radius: 6px;
    background: rgba(237, 245, 255, .92);
    color: #124fb2;
    font-size: 12px;
    font-weight: 800;
}

.login-copy {
    max-width: 680px;
    margin-top: 46px;
}

.login-copy h1 {
    margin: 12px 0 0;
    color: #0f172a;
    font-size: 38px;
    line-height: 1.16;
    font-weight: 850;
}

.login-copy p {
    max-width: 600px;
    margin: 12px 0 0;
    color: #526174;
    font-size: 15px;
}

.login-flow {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: 34px;
}

.login-flow-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #d8e4f2;
    border-radius: 7px;
    background: rgba(255, 255, 255, .86);
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    animation: loginStepPulse 4s ease-in-out infinite;
}

.login-flow-step.active {
    border-color: #9fc3ff;
    background: #edf5ff;
    color: #124fb2;
}

.login-flow-line {
    height: 1px;
    min-width: 28px;
    background: linear-gradient(90deg, rgba(23, 100, 232, .18), rgba(14, 124, 134, .18));
}

.login-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.login-proof div {
    min-height: 86px;
    padding: 14px;
    border: 1px solid #d9e3ef;
    border-radius: 8px;
    background: rgba(255, 255, 255, .76);
}

.login-proof span {
    display: block;
    color: var(--erp-muted);
    font-size: 12px;
}

.login-proof strong {
    display: block;
    margin-top: 8px;
    color: #0f172a;
    font-size: 18px;
}

.login-card {
    align-self: center;
    padding: 30px;
    animation: loginCardIn .45s ease-out both;
}

.login-title {
    margin-bottom: 24px;
}

.login-card h2 {
    margin: 0 0 20px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 850;
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap i {
    position: absolute;
    left: 11px;
    top: 50%;
    z-index: 2;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    color: #6b7c93;
    font-size: 15px;
}

.login-input-wrap .form-control {
    min-height: 42px;
    padding-left: 40px;
    border-color: #cfdaea;
    background: #f7fbff;
}

.login-input-wrap .form-control:focus {
    border-color: #7aa9f5;
    background: #ffffff;
    box-shadow: var(--erp-focus);
}

.login-input-wrap:focus-within i {
    color: var(--erp-primary);
}

.login-submit {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    border-color: #1764e8;
    background: #1764e8;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.login-submit:hover,
.login-submit:focus {
    border-color: #0f4fc4;
    background: #0f4fc4;
    box-shadow: 0 10px 22px rgba(23, 100, 232, .24);
    transform: translateY(-1px);
}

@keyframes loginGridMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 42px 42px, 42px 42px; }
}

@keyframes loginFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(12px, -10px, 0); }
}

@keyframes loginStepPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes loginCardIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loginSoftDrift {
    from { transform: translate3d(-1.5%, -1%, 0) scale(1.01); }
    to { transform: translate3d(1.8%, 1.2%, 0) scale(1.04); }
}

@keyframes loginSoftDriftReverse {
    from { transform: translate3d(2%, 1%, 0) scale(1.02); }
    to { transform: translate3d(-1.4%, -1%, 0) scale(1.04); }
}

@keyframes loginBandFlow {
    from { transform: translateX(-2%) rotate(-4deg); }
    to { transform: translateX(2%) rotate(3deg); }
}

@keyframes loginBubble {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(12px, -18px, 0) scale(1.04); }
}

@keyframes loginHeroFloat {
    from { translate: -8px -6px; }
    to { translate: 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .login-grid-motion,
    .login-orbit,
    .login-sky-layer,
    .login-light-band,
    .login-glow,
    .login-hero-shape,
    .login-floating-shape,
    .login-flow-step,
    .login-card {
        animation: none;
    }
}

@media (max-width: 1360px) {
    .erp-home-shell,
    .erp-home-two-col {
        grid-template-columns: 1fr;
    }

    .erp-home-chart-grid {
        grid-template-columns: 1fr;
    }

    .erp-home-chart-card-wide {
        grid-row: auto;
    }
}

@media (max-width: 1180px) {
    .erp-home-launch-grid {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    }

    .erp-home-metrics,
    .erp-home-task-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .erp-home-command {
        align-items: flex-start;
        flex-direction: column;
    }

    .erp-home-command-actions {
        justify-content: flex-start;
    }

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

    .project-card,
    .project-hero,
    .trace-grid {
        grid-template-columns: 1fr;
    }

    .project-card-side {
        justify-items: start;
    }

    .span-4,
    .span-6,
    .span-8 {
        grid-column: span 12;
    }

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

    .erp-workbench-metrics,
    .erp-workbench-card-grid,
    .erp-queue-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .erp-home-aside {
        grid-template-columns: 1fr;
    }

    .login-page {
        display: block;
        min-height: 100vh;
        overflow: auto;
        padding: 16px;
    }

    .login-video-page {
        display: grid;
        place-items: end center;
        padding: 20px 16px;
    }

    .login-video-shade {
        background:
            linear-gradient(180deg, rgba(7, 17, 31, .20) 0%, rgba(7, 17, 31, .34) 42%, rgba(7, 17, 31, .76) 100%);
    }

    .login-card-video {
        width: calc(100vw - 32px);
        max-width: 420px;
        min-width: 0;
        justify-self: center;
        padding: 22px;
    }

    .login-soft-page {
        display: grid;
        grid-template-columns: 1fr;
        align-content: end;
        gap: 18px;
        padding: 24px 16px;
    }

    .login-soft-brand {
        align-self: auto;
        margin: 0;
    }

    .login-soft-logo {
        font-size: 24px;
    }

    .login-soft-logo .brand-mark {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .login-soft-brand p {
        margin: 10px 0 0 60px;
        font-size: 16px;
    }

    .login-hero-shape-main {
        width: 88vw;
        height: 34vw;
        right: -22vw;
        top: 8vh;
        opacity: .44;
    }

    .login-hero-shape-fin {
        width: 30vw;
        height: 18vw;
        right: 48vw;
        top: 19vh;
        opacity: .36;
    }

    .login-card-soft {
        width: calc(100vw - 32px);
        max-width: 420px;
        justify-self: center;
        padding: 22px;
    }

    .login-stage {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .login-visual-panel,
    .login-card {
        padding: 22px;
    }

    .login-copy h1 {
        margin-top: 12px;
        font-size: 26px;
        line-height: 1.22;
    }

    .login-copy {
        margin-top: 22px;
    }

    .login-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 22px;
    }

    .login-flow-line {
        display: none;
    }

    .login-proof {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .login-proof div {
        min-height: auto;
    }

    .layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        max-width: 100vw;
        height: auto;
        position: static;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        align-items: center;
        padding-bottom: 8px;
    }

    body.erp-flyout-nav .sidebar {
        max-width: 100vw;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .brand,
    .sidebar .menu-parent,
    .nav-section {
        flex: 0 0 auto;
    }

    .sidebar .submenu {
        display: contents;
    }

    body.erp-flyout-nav .sidebar .submenu,
    body.erp-flyout-nav .sidebar .submenu.flyout-open {
        position: static;
        display: contents;
        width: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.erp-flyout-nav .sidebar .submenu-group {
        display: contents;
    }

    .sidebar a {
        flex: 0 0 auto;
    }

    .sidebar .submenu a {
        padding-left: 12px;
    }

    .sidebar .menu-parent::after {
        display: none;
    }

    .topbar {
        position: static;
        height: auto;
        flex-wrap: wrap;
        padding: 12px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .erp-topbar-menu {
        right: auto;
        left: 0;
    }

    .erp-alert-menu {
        width: min(360px, calc(100vw - 24px));
    }

    .content {
        max-width: 100vw;
        overflow-x: hidden;
        padding: 14px;
    }

    .erp-home-command {
        min-height: auto;
        padding: 16px;
    }

    .erp-home-command h1 {
        font-size: 21px;
    }

    .erp-home-command-actions {
        width: 100%;
    }

    .erp-home-command-actions .btn {
        flex: 1 1 160px;
        justify-content: center;
    }

    .erp-home-launch-grid,
    .erp-home-metrics,
    .erp-home-task-grid,
    .erp-home-master-mini {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .erp-home-bar-chart {
        height: 196px;
        gap: 8px;
    }

    .erp-home-bar-pair {
        height: 148px;
    }

    .erp-launch-tile {
        min-height: 68px;
    }

    .ops-panel h1 {
        font-size: 23px;
    }

    .project-hero h1 {
        font-size: 23px;
    }

    .project-card {
        gap: 12px;
    }

    .project-card-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ledger-pager {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

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

    .metric .value {
        font-size: 24px;
    }

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

    .erp-workbench-heading,
    .erp-workbench-strip {
        display: grid;
        justify-items: start;
    }

    .erp-workbench-actions {
        justify-content: flex-start;
    }

    .erp-workbench-metrics,
    .erp-workbench-card-grid,
    .erp-queue-grid {
        grid-template-columns: 1fr;
    }

    .material-master-shell {
        grid-template-columns: 1fr;
    }

    .material-class-panel {
        position: static;
        max-height: none;
    }

    .material-master-header,
    .material-master-search {
        display: grid;
        min-width: 0;
        width: 100%;
    }

    .material-grid-wrap {
        max-height: none;
    }
}

@media (max-width: 576px) {
    .erp-home-launch-grid,
    .erp-home-metrics,
    .erp-home-task-grid,
    .erp-home-master-mini,
    .erp-home-aside,
    .erp-home-two-col,
    .quick-grid-2 {
        grid-template-columns: 1fr;
    }

    .erp-home-chart-card {
        padding: 12px;
    }

    .erp-home-chart-head {
        display: grid;
    }

    .erp-home-chart-legend {
        justify-content: flex-start;
    }
}
