:root {
    --bg: #f2f6fd;
    --ink: #0d1b3e;
    --muted: #60708a;
    --line: #dbe6f5;
    --panel: #ffffff;
    --soft: #f5f8ff;
    --brand: #1e40e0;
    --brand-2: #16a8e8;
    --brand-dark: #0d1b3e;
    --brand-violet: #542be4;
    --accent: #38bdf8;
    --login-brand: #1e40e0;
    --good: #147a55;
    --info: #2463eb;
    --warn: #b46b12;
    --bad: #bf3b35;
    --shadow: 0 18px 46px rgba(13, 27, 62, 0.09);
    --shadow-strong: 0 22px 56px rgba(13, 27, 62, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #eef5ff 0%, #f7fbff 42%, #f2f6fd 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

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

.login-scene {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    background: #ecf4f4;
}

.login-art {
    padding: 52px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(140deg, rgba(21, 94, 117, 0.92), rgba(15, 118, 110, 0.82)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.2'%3E%3Cpath d='M80 120h700M80 260h700M80 400h700M80 540h700M160 60v580M340 60v580M520 60v580M700 60v580'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.18'%3E%3Crect x='126' y='156' width='150' height='64' rx='8'/%3E%3Crect x='374' y='296' width='230' height='64' rx='8'/%3E%3Crect x='604' y='436' width='160' height='64' rx='8'/%3E%3C/g%3E%3C/svg%3E");
    color: #ffffff;
}

.login-art h1 {
    margin: 0 0 12px;
    max-width: 620px;
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: 0;
}

.login-art p {
    max-width: 560px;
    color: #d9eef0;
    font-size: 16px;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 32px;
    background: var(--panel);
}

.login-card {
    width: min(100%, 390px);
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.brand-badge,
.avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand-violet), var(--brand-2));
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(30, 64, 224, 0.18);
}

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

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(13, 27, 62, 0.98) 0%, rgba(28, 45, 139, 0.98) 56%, rgba(21, 150, 210, 0.96) 100%);
    color: #eaf4ff;
    box-shadow: 18px 0 45px rgba(13, 27, 62, 0.14);
}

.sidebar-backdrop {
    display: none;
}

.tenant-brand {
    display: grid;
    gap: 12px;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.tenant-logo-card {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 16px 36px rgba(6, 20, 62, 0.22);
}

.tenant-logo {
    display: block;
    width: 100%;
    height: 44px;
    object-fit: contain;
}

.tenant-company-card {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.tenant-name {
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.tenant-sub {
    color: #b9d9ef;
    font-size: 12px;
}

.nav {
    display: grid;
    gap: 5px;
    margin-top: 18px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #dbeafe;
    border: 1px solid transparent;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}

.nav a:hover,
.nav a.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateX(2px);
}

.nav a.active {
    background: #ffffff;
    color: var(--brand);
    box-shadow: 0 12px 26px rgba(5, 18, 54, 0.18);
}

.nav-symbol {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 800;
}

.nav a.active .nav-symbol {
    background: linear-gradient(135deg, rgba(30, 64, 224, 0.14), rgba(56, 189, 248, 0.18));
    color: var(--brand);
}

.nav-group-label {
    margin: 14px 8px 4px;
    color: #9ed8f6;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.main {
    min-width: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0)),
        var(--bg);
}

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.mobile-menu-button {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border: 1px solid #cad8f1;
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand);
    box-shadow: 0 10px 22px rgba(13, 27, 62, 0.08);
}

.mobile-menu-button span {
    position: absolute;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.mobile-menu-button span:nth-child(1) {
    transform: translateY(-6px);
}

.mobile-menu-button span:nth-child(3) {
    transform: translateY(6px);
}

body.tenant-sidebar-open .mobile-menu-button span:nth-child(1) {
    transform: rotate(45deg);
}

body.tenant-sidebar-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
}

body.tenant-sidebar-open .mobile-menu-button span:nth-child(3) {
    transform: rotate(-45deg);
}

.topbar-title {
    display: grid;
    gap: 2px;
}

.topbar-title span {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.topbar-title strong {
    font-size: 18px;
    line-height: 1.2;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.page {
    padding: 28px;
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.page-head,
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.page-title {
    margin: 0;
    font-size: 26px;
    line-height: 1.16;
}

.page-subtitle,
.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 16px;
}

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

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

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

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-body {
    padding: 18px;
}

.metric {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 4px solid var(--brand);
}

.metric strong {
    font-size: 28px;
    line-height: 1;
}

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

.filters,
.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.table-scroll {
    overflow-x: auto;
}

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

th,
td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--soft);
    color: #475467;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}

tr:last-child td {
    border-bottom: 0;
}

label {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    padding: 9px 11px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

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

input:focus,
select:focus,
textarea:focus {
    border-color: var(--login-brand);
    outline: 3px solid rgba(21, 94, 117, 0.14);
}

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

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

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--brand), #4a7ff7);
    color: #ffffff;
    padding: 8px 13px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: linear-gradient(135deg, #1736c4, #3989f2);
}

.button.secondary {
    color: var(--brand);
    background: #ffffff;
    border-color: #cad8f1;
}

.button.secondary:hover {
    background: #eef4ff;
}

.button.warn {
    background: var(--warn);
}

.button.small {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 13px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 800;
}

.pill.good {
    background: #e4f7ee;
    color: var(--good);
}

.pill.info {
    background: #eaf1ff;
    color: var(--info);
}

.pill.warn {
    background: #fff3dd;
    color: var(--warn);
}

.pill.bad {
    background: #fdecea;
    color: var(--bad);
}

.pill.neutral {
    background: #eef2f6;
    color: #526071;
}

.notice {
    border-radius: 7px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.notice.success {
    border: 1px solid #abdcc4;
    background: #e6f7ee;
    color: #116149;
}

.notice.error {
    border: 1px solid #fac5c0;
    background: #fdecea;
    color: #a13732;
}

.check-card {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.check-card input {
    width: auto;
    min-height: auto;
    margin-top: 3px;
}

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

.permission-section {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

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

.business-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 390px;
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.business-card:hover,
.business-card.selected {
    border-color: var(--login-brand);
    box-shadow: 0 18px 46px rgba(21, 94, 117, 0.16);
    transform: translateY(-2px);
}

.business-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.business-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.business-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

.business-name {
    display: block;
    font-size: 21px;
    line-height: 1.18;
    color: var(--ink);
    font-weight: 900;
}

.business-desc {
    display: block;
    color: var(--muted);
    min-height: 64px;
    font-weight: 500;
}

.business-flow {
    display: grid;
    gap: 7px;
    margin-top: auto;
}

.business-flow span {
    display: block;
    padding: 8px 10px;
    border-radius: 7px;
    background: #f4f8fa;
    border: 1px solid #e0e8ef;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.business-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.mini-pill {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f6;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.mini-pill.on {
    background: #e4f7ee;
    color: var(--good);
}

.permission-head {
    padding: 11px 13px;
    background: #eef6f7;
    font-weight: 850;
}

.permission-body {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
    gap: 16px;
}

.tenant-dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(74, 127, 247, 0.18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(7, 18, 58, 0.98), rgba(30, 64, 224, 0.94) 56%, rgba(14, 165, 233, 0.9)),
        #0d1b3e;
    color: #ffffff;
    box-shadow: var(--shadow-strong);
}

.tenant-dashboard-hero::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: -76px;
    width: min(680px, 72%);
    height: 150px;
    border-radius: 999px 0 0 0;
    background:
        linear-gradient(110deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.54) 32%, rgba(139, 92, 246, 0.7) 68%, rgba(244, 114, 182, 0.54));
    transform: rotate(-7deg);
    opacity: 0.92;
    pointer-events: none;
}

.tenant-dashboard-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
    opacity: 0.42;
    pointer-events: none;
}

.tenant-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 250px;
}

.tenant-eyebrow,
.section-kicker {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tenant-dashboard-hero .tenant-eyebrow {
    color: #8eeaff;
}

.tenant-hero-copy h1 {
    margin: 0;
    max-width: 760px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.08;
    letter-spacing: 0;
}

.tenant-hero-copy p {
    max-width: 720px;
    margin: 0;
    color: #dbeafe;
    font-size: 15px;
}

.tenant-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.tenant-dashboard-hero .button.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.tenant-dashboard-hero .button.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.tenant-hero-card {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 12px;
    min-height: 230px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tenant-analytics-card {
    align-content: stretch;
    gap: 12px;
    min-height: 250px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 22px 46px rgba(2, 8, 34, 0.2);
}

.analytics-card-header,
.analytics-panel-head,
.dashboard-progress-row,
.dashboard-bar-chart {
    min-width: 0;
}

.analytics-card-header,
.analytics-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.analytics-card-header strong {
    display: block;
    margin-top: 2px;
}

.dashboard-hero-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(190px, 0.78fr);
    gap: 10px;
    min-height: 0;
}

.analytics-line-panel,
.analytics-status-panel,
.analytics-bar-panel {
    min-width: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--ink);
    box-shadow: 0 14px 30px rgba(4, 18, 58, 0.14);
}

.analytics-line-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    padding: 12px;
}

.analytics-panel-head span,
.analytics-panel-head em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.analytics-panel-head strong {
    display: block;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.05;
}

.analytics-panel-head.compact strong {
    color: var(--brand);
    font-size: 16px;
}

.dashboard-line-chart {
    display: grid;
    gap: 5px;
    min-height: 0;
}

.dashboard-line-chart svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 138px;
}

.chart-grid-lines line {
    stroke: #dbe6f5;
    stroke-width: 1;
}

.dashboard-line-chart circle {
    fill: #ffffff;
    stroke: #1e40e0;
    stroke-width: 3;
}

.chart-axis-labels {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
}

.chart-axis-labels span {
    color: #62718a;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}

.analytics-side-stack {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    min-width: 0;
}

.analytics-status-panel {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 11px;
}

.analytics-status-panel p {
    margin: 0;
    color: #475467;
    max-height: 36px;
    overflow: hidden;
    font-size: 11.5px;
    line-height: 1.45;
}

.dashboard-progress-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
}

.dashboard-progress-row span {
    color: #43516a;
    font-size: 12px;
    font-weight: 850;
}

.dashboard-progress-row strong {
    color: var(--brand);
    font-size: 13px;
}

.dashboard-progress-row i {
    grid-column: 1 / -1;
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef9;
}

.dashboard-progress-row i::before {
    content: "";
    display: block;
    width: var(--w, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1e40e0, #38bdf8);
}

.analytics-bar-panel {
    padding: 11px;
}

.dashboard-bar-chart {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 7px;
    height: 90px;
    margin-top: 8px;
    padding: 8px 6px 0;
    border-radius: 8px;
    background:
        linear-gradient(#dbe6f5 1px, transparent 1px),
        #f7fbff;
    background-size: 100% 25%;
}

.dashboard-bar-chart div {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    gap: 6px;
    height: 100%;
    min-width: 0;
}

.dashboard-bar-chart span {
    align-self: end;
    display: block;
    width: min(100%, 22px);
    height: var(--h, 12%);
    border-radius: 7px 7px 2px 2px;
    background: var(--bar-color, var(--brand));
    box-shadow: 0 8px 16px rgba(30, 64, 224, 0.16);
}

.dashboard-bar-chart em {
    color: #667085;
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
    text-align: center;
    overflow-wrap: anywhere;
}

.bar-blue {
    --bar-color: linear-gradient(180deg, #1e40e0, #4a7ff7);
}

.bar-cyan {
    --bar-color: linear-gradient(180deg, #38bdf8, #0ea5e9);
}

.bar-violet {
    --bar-color: linear-gradient(180deg, #8b5cf6, #542be4);
}

.bar-amber {
    --bar-color: linear-gradient(180deg, #facc15, #f59e0b);
}

.bar-rose {
    --bar-color: linear-gradient(180deg, #fb7185, #e11d48);
}

.tenant-hero-card strong {
    color: #ffffff;
    font-size: 21px;
    line-height: 1.18;
}

.tenant-hero-card p {
    margin: 0;
    color: #cfe4ff;
}

.tenant-analytics-card .analytics-panel-head strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.05;
}

.tenant-analytics-card .analytics-panel-head.compact strong {
    color: var(--brand);
    font-size: 16px;
}

.tenant-analytics-card .analytics-status-panel p {
    color: #475467;
    font-size: 11.5px;
    line-height: 1.45;
}

.tenant-analytics-card .dashboard-progress-row strong {
    color: var(--brand);
    font-size: 13px;
    line-height: 1.2;
}

.tenant-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.tenant-hero-stats div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.tenant-hero-stats span {
    color: #b9d9ef;
    font-size: 12px;
    font-weight: 800;
}

.tenant-hero-stats strong {
    font-size: 24px;
}

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

.dashboard-metric {
    position: relative;
    min-height: 128px;
    border-left: 0;
    --card-rim: rgba(30, 64, 224, 0.18);
    --card-wave-1: rgba(56, 189, 248, 0.22);
    --card-wave-2: rgba(30, 64, 224, 0.20);
    --card-wave-3: rgba(139, 92, 246, 0.16);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.dashboard-metric:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.dashboard-metric::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--metric-color, var(--brand));
}

.dashboard-metric .panel-body {
    display: grid;
    gap: 8px;
    padding: 18px;
    align-content: end;
}

.metric-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--metric-color, var(--brand));
    font-size: 11px;
    font-weight: 900;
}

.dashboard-metric strong {
    color: var(--ink);
    font-size: 30px;
}

.dashboard-metric span {
    max-width: calc(100% - 52px);
    color: var(--muted);
    font-weight: 800;
}

.metric-signal {
    width: calc(100% - 48px);
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef8;
}

.metric-signal i {
    display: block;
    width: var(--w, 8%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--metric-color, var(--brand)), rgba(56, 189, 248, 0.72));
}

.metric-blue {
    --metric-color: #1e40e0;
    --card-rim: rgba(30, 64, 224, 0.22);
    --card-wave-1: rgba(56, 189, 248, 0.22);
    --card-wave-2: rgba(30, 64, 224, 0.24);
    --card-wave-3: rgba(139, 92, 246, 0.15);
}

.metric-cyan {
    --metric-color: #0ea5e9;
    --card-rim: rgba(14, 165, 233, 0.24);
    --card-wave-1: rgba(103, 232, 249, 0.28);
    --card-wave-2: rgba(14, 165, 233, 0.22);
    --card-wave-3: rgba(30, 64, 224, 0.12);
}

.metric-violet {
    --metric-color: #542be4;
    --card-rim: rgba(139, 92, 246, 0.24);
    --card-wave-1: rgba(216, 180, 254, 0.24);
    --card-wave-2: rgba(139, 92, 246, 0.20);
    --card-wave-3: rgba(244, 114, 182, 0.16);
}

.metric-navy {
    --metric-color: #0d1b3e;
    --card-rim: rgba(13, 27, 62, 0.20);
    --card-wave-1: rgba(56, 189, 248, 0.18);
    --card-wave-2: rgba(13, 27, 62, 0.20);
    --card-wave-3: rgba(30, 64, 224, 0.14);
}

.metric-emerald {
    --metric-color: #10b981;
    --card-rim: rgba(16, 185, 129, 0.22);
    --card-wave-1: rgba(94, 234, 212, 0.24);
    --card-wave-2: rgba(16, 185, 129, 0.20);
    --card-wave-3: rgba(14, 165, 233, 0.13);
}

.metric-amber {
    --metric-color: #f59e0b;
    --card-rim: rgba(245, 158, 11, 0.25);
    --card-wave-1: rgba(253, 224, 71, 0.22);
    --card-wave-2: rgba(245, 158, 11, 0.18);
    --card-wave-3: rgba(244, 114, 182, 0.12);
}

.metric-rose {
    --metric-color: #e11d48;
    --card-rim: rgba(225, 29, 72, 0.22);
    --card-wave-1: rgba(251, 113, 133, 0.22);
    --card-wave-2: rgba(225, 29, 72, 0.18);
    --card-wave-3: rgba(139, 92, 246, 0.14);
}

.metric-cyan .metric-icon {
    background: #e8f8ff;
}

.metric-violet .metric-icon {
    background: #f1edff;
}

.metric-navy .metric-icon {
    background: #edf1f8;
}

.metric-emerald .metric-icon {
    background: #e8fbf3;
}

.metric-amber .metric-icon {
    background: #fff7df;
}

.metric-rose .metric-icon {
    background: #fff0f3;
}

.dashboard-profile-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(30, 64, 224, 0.08), rgba(56, 189, 248, 0.08)),
        #ffffff;
    box-shadow: var(--shadow);
}

.dashboard-profile-band h2 {
    margin: 10px 0 4px;
    font-size: 20px;
    line-height: 1.2;
}

.dashboard-profile-band p {
    margin: 0;
    color: var(--muted);
}

.dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.72fr);
    gap: 16px;
}

.dashboard-panel .toolbar {
    margin-bottom: 14px;
}

.dashboard-panel .section-title {
    margin: 3px 0 0;
}

.dashboard-panel table th {
    background: #f4f7ff;
    color: #43516a;
}

.activity-panel .mini-list {
    display: grid;
    gap: 10px;
}

.activity-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid #edf2fb;
    border-radius: 8px;
    background: #fbfdff;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 0 0 4px rgba(30, 64, 224, 0.1);
}

.section-title {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.25;
}

.form-actions {
    margin-top: 14px;
}

.compact-grid {
    align-items: start;
}

.inline-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inline-checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fafc;
}

.inline-checks input {
    width: auto;
    min-height: auto;
}

.erp-section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.erp-section-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #ffffff;
    color: #344054;
    font-weight: 800;
}

.erp-section-tabs a:hover,
.erp-section-tabs a.active {
    border-color: var(--login-brand);
    background: var(--brand);
    color: #ffffff;
}

.tab-panel-hidden {
    display: none !important;
}

.sub-tab-item-hidden,
.sub-tab-container-empty {
    display: none !important;
}

.erp-sub-tabs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -2px 0 16px;
}

.erp-sub-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.erp-sub-tabs button {
    min-height: 34px;
    padding: 7px 11px;
    border-color: var(--line);
    background: #ffffff;
    color: #344054;
}

.erp-sub-tabs button:hover,
.erp-sub-tabs button.active {
    border-color: var(--login-brand);
    background: var(--brand);
    color: #ffffff;
}

.erp-sub-select {
    display: none;
    max-width: 100%;
}

.grid.sub-tab-single {
    grid-template-columns: minmax(0, 1fr);
}

.module-overview {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.module-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(300px, 0.86fr);
    gap: 16px;
    margin-top: 16px;
}

.module-visual-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.module-visual-card-primary {
    position: relative;
    background:
        linear-gradient(135deg, rgba(13, 27, 62, 0.98), rgba(30, 64, 224, 0.92) 58%, rgba(14, 165, 233, 0.88)),
        #0d1b3e;
    color: #ffffff;
}

.module-visual-card-primary::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -34px;
    width: 64%;
    height: 92px;
    border-radius: 999px 0 0 0;
    background: linear-gradient(110deg, rgba(56, 189, 248, 0.08), rgba(56, 189, 248, 0.52), rgba(139, 92, 246, 0.62), rgba(244, 114, 182, 0.42));
    transform: rotate(-7deg);
    pointer-events: none;
}

.module-visual-card > * {
    position: relative;
    z-index: 1;
}

.module-visual-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.module-visual-head span {
    color: var(--brand);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.module-visual-card-primary .module-visual-head span {
    color: #8eeaff;
}

.module-visual-head h2 {
    margin: 3px 0 0;
    font-size: 19px;
    line-height: 1.2;
}

.module-visual-head p,
.module-visual-head em {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.module-visual-card-primary .module-visual-head p,
.module-visual-card-primary .module-visual-head em {
    color: #dbeafe;
}

.module-column-chart {
    display: grid;
    grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    min-height: 214px;
    padding: 12px 10px 10px;
    border-radius: 8px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        rgba(255, 255, 255, 0.08);
    background-size: 100% 25%;
}

.module-column-item {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 7px;
    height: 100%;
    min-width: 0;
    justify-items: center;
}

.module-column-item span {
    align-self: end;
    display: block;
    width: min(100%, 30px);
    height: var(--h, 12%);
    min-height: 14px;
    border-radius: 8px 8px 3px 3px;
    background: var(--chart-color, linear-gradient(180deg, #38bdf8, #1e40e0));
    box-shadow: 0 12px 22px rgba(2, 8, 34, 0.16);
}

.module-column-item em,
.module-column-item strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
}

.module-column-item em {
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.module-column-item strong {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.2;
}

.module-chart-color-1 {
    --chart-color: linear-gradient(180deg, #38bdf8, #0ea5e9);
}

.module-chart-color-2 {
    --chart-color: linear-gradient(180deg, #8b5cf6, #542be4);
}

.module-chart-color-3 {
    --chart-color: linear-gradient(180deg, #facc15, #f59e0b);
}

.module-chart-color-4 {
    --chart-color: linear-gradient(180deg, #10b981, #047857);
}

.module-chart-color-5 {
    --chart-color: linear-gradient(180deg, #fb7185, #e11d48);
}

.module-chart-color-6 {
    --chart-color: linear-gradient(180deg, #60a5fa, #1d4ed8);
}

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

.module-correlation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
    padding: 11px;
    border: 1px solid #e4ecf8;
    border-radius: 8px;
    background: #f8fbff;
}

.module-correlation-row span {
    color: #43516a;
    font-size: 12px;
    font-weight: 850;
}

.module-correlation-row strong {
    color: var(--brand);
    font-size: 14px;
    line-height: 1.2;
}

.module-correlation-row i {
    grid-column: 1 / -1;
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7eef9;
}

.module-correlation-row i::before {
    content: "";
    display: block;
    width: var(--w, 8%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

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

.module-insight-grid div {
    display: grid;
    gap: 4px;
    min-height: 70px;
    padding: 11px;
    border: 1px solid #e4ecf8;
    border-radius: 8px;
    background: #ffffff;
}

.module-insight-grid span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.module-insight-grid strong {
    color: var(--ink);
    font-size: 17px;
    overflow-wrap: anywhere;
}

.module-overview-chart {
    display: grid;
    gap: 12px;
}

.module-chart-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.34fr) minmax(0, 1fr) minmax(70px, auto);
    align-items: center;
    gap: 12px;
}

.module-chart-row span,
.module-chart-row strong {
    font-weight: 850;
}

.module-chart-row span {
    color: #344054;
}

.module-chart-row strong {
    color: var(--login-brand);
    text-align: right;
}

.module-chart-track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6eef4;
}

.module-chart-bar {
    display: block;
    width: var(--value, 0%);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #1aaee8);
}

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

.erp-module-card {
    min-height: 188px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.erp-module-card:hover {
    border-color: var(--login-brand);
}

.erp-module-card strong {
    font-size: 16px;
}

.erp-module-card span:last-child {
    color: var(--muted);
}

.erp-module-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e6f2f4;
    color: var(--login-brand);
    font-weight: 900;
}

.erp-kpi-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.erp-kpi-list div {
    min-height: 84px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.erp-kpi-list span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.erp-kpi-list strong {
    font-size: 20px;
}

.mini-list {
    display: grid;
    gap: 11px;
}

.mini-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.mini-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.mini-row.activity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 11px;
    border: 1px solid #edf2fb;
    border-radius: 8px;
    background: #fbfdff;
}

.mini-row.activity-row:last-child {
    padding-bottom: 11px;
}

.nowrap {
    white-space: nowrap;
}

.pos-shift-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.pos-shift-strip div {
    min-height: 88px;
    display: grid;
    align-content: center;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.pos-shift-strip span {
    color: var(--muted);
    font-weight: 700;
}

.pos-shift-strip strong {
    font-size: 18px;
}

.pos-workspace {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(460px, 1.25fr) minmax(300px, 0.75fr);
    gap: 16px;
    align-items: start;
    margin-top: 16px;
}

.pos-catalog,
.pos-receipt,
.pos-side {
    min-width: 0;
}

.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-height: 640px;
    overflow-y: auto;
    margin-top: 12px;
    padding-right: 4px;
}

.pos-product-card {
    width: 100%;
    min-height: 106px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--ink);
    text-align: left;
    box-shadow: none;
}

.pos-product-card:hover {
    border-color: var(--login-brand);
    background: #eef8f8;
    color: var(--ink);
}

.pos-product-name {
    font-weight: 900;
    line-height: 1.25;
}

.pos-product-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.pos-cart-scroll {
    margin: 14px 0;
}

.pos-cart-table th:nth-child(1) {
    min-width: 230px;
}

.pos-cart-table th:nth-child(2),
.pos-cart-table th:nth-child(3),
.pos-cart-table th:nth-child(4) {
    width: 116px;
}

.pos-row-meta {
    min-height: 18px;
    margin-top: 5px;
    font-size: 12px;
}

.pos-total-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-bottom: 13px;
}

.pos-summary-box {
    display: grid;
    gap: 8px;
    margin: 12px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.pos-summary-box div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pos-summary-box span {
    color: var(--muted);
    font-weight: 800;
}

.pos-summary-box strong {
    font-size: 17px;
}

.pos-summary-box .pos-grand {
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.pos-summary-box .pos-grand strong {
    color: var(--login-brand);
    font-size: 28px;
}

.pos-note {
    min-height: 74px;
}

.pos-divider {
    height: 1px;
    margin: 16px 0;
    background: var(--line);
}

.form-grid.one {
    grid-template-columns: 1fr;
}

.restaurant-table-grid,
.restaurant-pos-table-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.restaurant-table-card,
.restaurant-pos-table-list div {
    min-height: 104px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.restaurant-table-card span,
.restaurant-pos-table-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.restaurant-table-card strong,
.restaurant-pos-table-list strong {
    font-size: 20px;
}

.restaurant-table-card em,
.restaurant-pos-table-list em {
    font-style: normal;
    justify-self: start;
}

.restaurant-status-select {
    min-width: 132px;
    margin-bottom: 7px;
}

.garment-flow-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.garment-flow-strip div {
    min-height: 104px;
    display: grid;
    align-content: space-between;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.garment-flow-strip span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e6f2f4;
    color: var(--login-brand);
    font-weight: 900;
}

.garment-flow-strip strong,
.garment-style-card strong,
.garment-order-card strong,
.garment-route-card strong {
    font-size: 16px;
}

.garment-flow-strip em,
.garment-route-card em,
.garment-order-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.garment-style-grid,
.garment-routing-grid,
.garment-production-board {
    display: grid;
    gap: 10px;
}

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

.garment-style-card,
.garment-route-card,
.garment-order-card {
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.garment-card-head,
.garment-order-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.garment-card-head span {
    color: var(--login-brand);
    font-weight: 900;
}

.garment-style-card small,
.garment-roll-row small {
    color: var(--muted);
    font-weight: 700;
}

.garment-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.garment-chip-row span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f6;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.garment-roll-list {
    display: grid;
    gap: 9px;
}

.garment-roll-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(110px, 0.55fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.garment-roll-row span {
    display: grid;
    gap: 3px;
}

.garment-roll-row em {
    justify-self: end;
    font-style: normal;
}

.garment-routing-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.garment-route-card span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f7ead7;
    color: var(--accent);
    font-weight: 900;
}

.garment-route-card small {
    color: var(--muted);
    min-height: 34px;
    font-weight: 700;
}

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

.garment-order-card > span {
    color: var(--muted);
    font-weight: 700;
}

.garment-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.inventory-command-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.inventory-command-card {
    display: grid;
    gap: 8px;
    min-height: 126px;
    align-content: space-between;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.inventory-command-card span {
    color: var(--login-brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.inventory-command-card strong {
    font-size: 17px;
    line-height: 1.25;
}

.inventory-command-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.inventory-warehouse-grid,
.inventory-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.inventory-warehouse-card,
.inventory-summary-card {
    display: grid;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.inventory-warehouse-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.inventory-warehouse-card em,
.inventory-summary-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.inventory-warehouse-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.inventory-warehouse-stats span {
    display: grid;
    gap: 3px;
    min-height: 58px;
    align-content: center;
    padding: 9px;
    border-radius: 7px;
    background: #f4f8fa;
}

.inventory-warehouse-stats b {
    font-size: 14px;
}

.inventory-warehouse-stats small {
    color: var(--muted);
    font-weight: 800;
}

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

.inventory-inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.inventory-summary-card span {
    color: var(--login-brand);
    font-weight: 900;
}

.inventory-summary-card strong {
    font-size: 22px;
}

.purchase-flow-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.purchase-flow-strip div {
    min-height: 108px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.purchase-flow-strip span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f7ead7;
    color: var(--accent);
    font-weight: 900;
}

.purchase-flow-strip strong {
    font-size: 16px;
}

.purchase-flow-strip em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

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

.purchase-doc-card {
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.purchase-doc-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.purchase-doc-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.purchase-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.purchase-chip-row span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f6;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.purchase-approval-forms {
    display: grid;
    gap: 13px;
}

.purchase-approval-forms form {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.purchase-approval-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(120px, 0.4fr);
    align-items: start;
}

.purchase-approval-row .purchase-decision {
    grid-column: 1 / -1;
}

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

.purchase-decision form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

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

.purchase-score-card {
    min-height: 96px;
    display: grid;
    align-content: space-between;
    gap: 6px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.purchase-score-card span {
    font-weight: 900;
}

.purchase-score-card strong {
    color: var(--login-brand);
    font-size: 26px;
}

.purchase-score-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.finance-flow-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.finance-flow-strip div {
    min-height: 108px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.finance-flow-strip span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e6f2f4;
    color: var(--login-brand);
    font-weight: 900;
}

.finance-flow-strip strong {
    font-size: 16px;
}

.finance-flow-strip em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.finance-card-grid,
.finance-close-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.finance-doc-card {
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.finance-doc-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.finance-doc-card em,
.finance-doc-card small {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.finance-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.finance-chip-row span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f6;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.finance-expense-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, auto);
    align-items: start;
}

.finance-expense-row .finance-decision,
.finance-expense-row .finance-pay-form {
    grid-column: 1 / -1;
}

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

.finance-decision form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.finance-pay-form form {
    display: grid;
    grid-template-columns: minmax(160px, 0.9fr) minmax(130px, 0.7fr) auto;
    gap: 8px;
    margin-top: 4px;
}

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

.finance-aging-grid div {
    display: grid;
    gap: 6px;
    min-height: 92px;
    align-content: space-between;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.finance-aging-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.finance-aging-grid strong {
    font-size: 19px;
}

.finance-aging-grid em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.hr-flow-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.hr-flow-strip div {
    min-height: 108px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hr-flow-strip span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e6f2f4;
    color: var(--login-brand);
    font-weight: 900;
}

.hr-flow-strip strong {
    font-size: 16px;
}

.hr-flow-strip em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.hr-people-grid,
.hr-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.hr-person-card,
.hr-doc-card {
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.hr-person-card > div:first-child,
.hr-doc-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hr-person-card em,
.hr-doc-card em,
.hr-doc-card small,
.hr-person-card small {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.hr-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hr-chip-row span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f6;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.hr-leave-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    align-items: start;
}

.hr-leave-row .hr-decision {
    grid-column: 1 / -1;
}

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

.hr-decision form {
    display: grid;
}

.crm-funnel-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.crm-module-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr) minmax(220px, 0.8fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #d7e4ff;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.crm-module-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 190px;
    padding: 24px;
    background: linear-gradient(135deg, #1f5bb8 0%, #06134f 100%);
    color: #ffffff;
}

.crm-logo-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 74px;
    height: 60px;
    overflow: hidden;
    border-radius: 9px;
    background: linear-gradient(135deg, #0a65c7, #24bdf2);
    font-size: 20px;
    font-style: italic;
    font-weight: 950;
}

.crm-logo-mark::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    border-right: 18px solid transparent;
    border-bottom: 13px solid #ffe03d;
}

.crm-module-brand span {
    display: block;
    color: #7ee2ff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.crm-module-brand strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
    line-height: 1.08;
}

.crm-module-copy {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
}

.crm-module-copy h2 {
    margin: 0;
    color: #06134f;
    font-size: 26px;
    line-height: 1.1;
}

.crm-module-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.crm-module-menu {
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 18px;
    background: #f6faff;
    border-left: 1px solid #d7e4ff;
}

.crm-module-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid #d7e4ff;
    border-radius: 8px;
    background: #ffffff;
    color: #06134f;
    font-weight: 900;
}

.crm-module-menu a:hover,
.crm-module-menu a.active {
    border-color: #1f5bb8;
    background: #1f5bb8;
    color: #ffffff;
}

.crm-module-menu a::after {
    content: ">";
    color: #1f5bb8;
}

.crm-module-menu a:hover::after,
.crm-module-menu a.active::after {
    color: #ffffff;
}

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

.crm-quick-stats div {
    display: grid;
    gap: 4px;
    min-height: 78px;
    align-content: center;
    padding: 14px;
    border: 1px solid #d7e4ff;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.crm-quick-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.crm-quick-stats strong {
    color: #1f5bb8;
    font-size: 22px;
    line-height: 1;
}

.crm-list-panel {
    min-height: 360px;
}

.crm-funnel-strip div {
    display: grid;
    gap: 7px;
    min-height: 100px;
    align-content: space-between;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.crm-funnel-strip span {
    color: var(--login-brand);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.crm-funnel-strip strong {
    font-size: 25px;
}

.crm-funnel-strip em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.crm-lead-grid,
.crm-campaign-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.crm-lead-card,
.crm-campaign-card {
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.crm-lead-card > div:first-child,
.crm-campaign-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.crm-lead-card em,
.crm-campaign-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.crm-lead-card small {
    color: var(--muted);
    font-weight: 700;
}

.crm-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.crm-chip-row span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f6;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.crm-campaign-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.crm-campaign-stats span {
    display: grid;
    gap: 3px;
    min-height: 58px;
    align-content: center;
    padding: 9px;
    border-radius: 7px;
    background: #f4f8fa;
}

.crm-campaign-stats b {
    font-size: 14px;
}

.crm-campaign-stats small {
    color: var(--muted);
    font-weight: 800;
}

.manufacturing-flow-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.manufacturing-flow-strip div {
    min-height: 108px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.manufacturing-flow-strip span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e6f2f4;
    color: var(--login-brand);
    font-weight: 900;
}

.manufacturing-flow-strip strong {
    font-size: 16px;
}

.manufacturing-flow-strip em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.manufacturing-card-grid,
.manufacturing-work-board,
.manufacturing-requirement-grid,
.manufacturing-capacity-grid,
.manufacturing-status-grid {
    display: grid;
    gap: 10px;
}

.manufacturing-card-grid,
.manufacturing-work-board,
.manufacturing-requirement-grid,
.manufacturing-capacity-grid,
.manufacturing-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manufacturing-doc-card,
.manufacturing-order-card,
.manufacturing-requirement-card,
.manufacturing-capacity-card {
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.manufacturing-doc-card > div:first-child,
.manufacturing-order-card > div:first-child,
.manufacturing-requirement-card > div:first-child,
.manufacturing-capacity-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.manufacturing-doc-card em,
.manufacturing-route-card em,
.manufacturing-capacity-card em,
.manufacturing-capacity-card small {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.manufacturing-doc-card strong,
.manufacturing-order-card strong,
.manufacturing-route-card strong,
.manufacturing-requirement-card strong,
.manufacturing-capacity-card strong {
    font-size: 16px;
}

.manufacturing-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.manufacturing-chip-row span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f6;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

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

.manufacturing-route-card {
    min-height: 138px;
    display: grid;
    align-content: space-between;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.manufacturing-route-card span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #f7ead7;
    color: var(--accent);
    font-weight: 900;
}

.manufacturing-route-card small {
    color: var(--muted);
    min-height: 34px;
    font-weight: 700;
}

.manufacturing-progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef3;
}

.manufacturing-progress span {
    display: block;
    height: 100%;
    min-width: 4px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.manufacturing-order-card > span,
.manufacturing-requirement-card > span {
    color: var(--muted);
    font-weight: 700;
}

.manufacturing-capacity-card span {
    color: var(--login-brand);
    font-weight: 900;
}

.manufacturing-status-grid div {
    min-height: 76px;
    display: grid;
    gap: 6px;
    align-content: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.manufacturing-status-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.manufacturing-status-grid strong {
    font-size: 22px;
}

.asset-flow-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.asset-flow-strip div {
    min-height: 108px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.asset-flow-strip span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e3f3f1;
    color: var(--login-brand);
    font-weight: 900;
}

.asset-flow-strip strong {
    font-size: 16px;
}

.asset-flow-strip em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.asset-card-grid,
.asset-location-grid,
.asset-status-grid,
.asset-insight-grid,
.asset-due-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.asset-doc-card,
.asset-location-card,
.asset-due-card,
.asset-insight-grid div,
.asset-status-grid div {
    display: grid;
    gap: 8px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.asset-doc-card > div:first-child,
.asset-location-card > div:first-child,
.asset-due-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.asset-doc-card em,
.asset-location-card em,
.asset-due-card em,
.asset-insight-grid em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.asset-chip-list,
.asset-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.asset-chip-list {
    margin-top: 14px;
}

.asset-chip-list span,
.asset-chip-row span {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    border-radius: 999px;
    padding: 3px 8px;
    background: #eef2f6;
    color: #526071;
    font-size: 12px;
    font-weight: 800;
}

.asset-assignment-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.7fr);
    align-items: start;
}

.asset-assignment-row .asset-inline-form {
    grid-column: 1 / -1;
}

.asset-inline-form form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr) auto;
    gap: 8px;
}

.asset-status-grid div,
.asset-insight-grid div {
    min-height: 78px;
    align-content: center;
}

.asset-status-grid span,
.asset-insight-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.asset-status-grid strong,
.asset-insight-grid strong {
    font-size: 22px;
    line-height: 1.15;
}

.education-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.25fr) minmax(220px, 0.8fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid #cfe2ff;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.education-hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 190px;
    padding: 24px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(18, 94, 196, 0.94), rgba(4, 17, 78, 0.96)),
        linear-gradient(45deg, #00b7e8, #1428bf);
}

.education-logo-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 74px;
    height: 60px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #18c7f4, #2435d7);
    color: #ffffff;
    font-size: 20px;
    font-style: italic;
    font-weight: 950;
}

.education-logo-mark::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    border-right: 19px solid transparent;
    border-bottom: 14px solid #f6d448;
}

.education-hero-brand span {
    display: block;
    color: #8eeaff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.education-hero-brand strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.08;
}

.education-hero-copy {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
}

.education-hero-copy h2 {
    margin: 0;
    color: #06134f;
    font-size: 26px;
    line-height: 1.1;
}

.education-hero-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
}

.education-module-menu {
    background: #f5faff;
    border-left-color: #cfe2ff;
}

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

.education-quick-stats div {
    display: grid;
    gap: 4px;
    min-height: 78px;
    align-content: center;
    padding: 14px;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.education-quick-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.education-quick-stats strong {
    color: #1f5bb8;
    font-size: 22px;
    line-height: 1;
}

.education-flow-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.education-flow-strip div {
    min-height: 108px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.education-flow-strip span,
.education-module-no {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f5ff;
    color: #1f5bb8;
    font-size: 12px;
    font-weight: 900;
}

.education-flow-strip strong {
    color: #06134f;
    font-size: 17px;
}

.education-flow-strip em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
}

.education-group-section {
    margin-top: 16px;
}

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

.education-module-card {
    min-height: 172px;
    display: grid;
    align-content: start;
    gap: 9px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    appearance: none;
}

.education-module-card:hover,
.education-module-card.active {
    border-color: #1f5bb8;
    box-shadow: 0 16px 38px rgba(31, 91, 184, 0.14);
    transform: translateY(-2px);
}

.education-module-card.active .education-module-no {
    background: #1f5bb8;
    color: #ffffff;
}

.education-module-card strong {
    color: #06134f;
    font-size: 15px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.education-module-card p {
    margin: 0;
    color: var(--muted);
}

.education-module-card em {
    align-self: end;
    color: #1f5bb8;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.dashboard-metric,
.module-visual-card,
.erp-module-card,
.erp-kpi-list div,
.pos-product-card,
.restaurant-table-card,
.garment-style-card,
.garment-route-card,
.garment-order-card,
.inventory-command-card,
.inventory-warehouse-card,
.inventory-summary-card,
.purchase-flow-strip div,
.purchase-doc-card,
.purchase-score-card,
.finance-flow-strip div,
.finance-doc-card,
.finance-aging-grid div,
.hr-flow-strip div,
.hr-person-card,
.hr-doc-card,
.crm-funnel-strip div,
.crm-lead-card,
.crm-campaign-card,
.manufacturing-flow-strip div,
.manufacturing-doc-card,
.manufacturing-order-card,
.manufacturing-requirement-card,
.manufacturing-capacity-card,
.manufacturing-route-card,
.manufacturing-status-grid div,
.asset-flow-strip div,
.asset-doc-card,
.asset-location-card,
.asset-due-card,
.asset-insight-grid div,
.asset-status-grid div,
.education-quick-stats div,
.education-flow-strip div,
.education-module-card {
    --card-rim: rgba(30, 64, 224, 0.18);
    --card-wave-1: rgba(56, 189, 248, 0.20);
    --card-wave-2: rgba(30, 64, 224, 0.18);
    --card-wave-3: rgba(139, 92, 246, 0.14);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-color: var(--card-rim);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        0 18px 46px rgba(13, 27, 62, 0.10);
}

:is(
    .dashboard-metric,
    .module-visual-card,
    .erp-module-card,
    .erp-kpi-list div,
    .pos-product-card,
    .restaurant-table-card,
    .garment-style-card,
    .garment-route-card,
    .garment-order-card,
    .inventory-command-card,
    .inventory-warehouse-card,
    .inventory-summary-card,
    .purchase-flow-strip div,
    .purchase-doc-card,
    .purchase-score-card,
    .finance-flow-strip div,
    .finance-doc-card,
    .finance-aging-grid div,
    .hr-flow-strip div,
    .hr-person-card,
    .hr-doc-card,
    .crm-funnel-strip div,
    .crm-lead-card,
    .crm-campaign-card,
    .manufacturing-flow-strip div,
    .manufacturing-doc-card,
    .manufacturing-order-card,
    .manufacturing-requirement-card,
    .manufacturing-capacity-card,
    .manufacturing-route-card,
    .manufacturing-status-grid div,
    .asset-flow-strip div,
    .asset-doc-card,
    .asset-location-card,
    .asset-due-card,
    .asset-insight-grid div,
    .asset-status-grid div,
    .education-quick-stats div,
    .education-flow-strip div,
    .education-module-card
) > * {
    position: relative;
    z-index: 1;
}

:is(
    .dashboard-metric,
    .module-visual-card,
    .erp-module-card,
    .erp-kpi-list div,
    .pos-product-card,
    .restaurant-table-card,
    .garment-style-card,
    .garment-route-card,
    .garment-order-card,
    .inventory-command-card,
    .inventory-warehouse-card,
    .inventory-summary-card,
    .purchase-flow-strip div,
    .purchase-doc-card,
    .purchase-score-card,
    .finance-flow-strip div,
    .finance-doc-card,
    .finance-aging-grid div,
    .hr-flow-strip div,
    .hr-person-card,
    .hr-doc-card,
    .crm-funnel-strip div,
    .crm-lead-card,
    .crm-campaign-card,
    .manufacturing-flow-strip div,
    .manufacturing-doc-card,
    .manufacturing-order-card,
    .manufacturing-requirement-card,
    .manufacturing-capacity-card,
    .manufacturing-route-card,
    .manufacturing-status-grid div,
    .asset-flow-strip div,
    .asset-doc-card,
    .asset-location-card,
    .asset-due-card,
    .asset-insight-grid div,
    .asset-status-grid div,
    .education-quick-stats div,
    .education-flow-strip div,
    .education-module-card
)::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background:
        linear-gradient(90deg, var(--metric-color, var(--card-rim)), transparent 70%) top / 100% 3px no-repeat,
        radial-gradient(120px 78px at 8% 0%, rgba(255, 255, 255, 0.82), transparent 68%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 42%);
    opacity: 0.9;
    pointer-events: none;
    transform: none;
    z-index: 0;
}

:is(
    .dashboard-metric,
    .module-visual-card,
    .erp-module-card,
    .erp-kpi-list div,
    .pos-product-card,
    .restaurant-table-card,
    .garment-style-card,
    .garment-route-card,
    .garment-order-card,
    .inventory-command-card,
    .inventory-warehouse-card,
    .inventory-summary-card,
    .purchase-flow-strip div,
    .purchase-doc-card,
    .purchase-score-card,
    .finance-flow-strip div,
    .finance-doc-card,
    .finance-aging-grid div,
    .hr-flow-strip div,
    .hr-person-card,
    .hr-doc-card,
    .crm-funnel-strip div,
    .crm-lead-card,
    .crm-campaign-card,
    .manufacturing-flow-strip div,
    .manufacturing-doc-card,
    .manufacturing-order-card,
    .manufacturing-requirement-card,
    .manufacturing-capacity-card,
    .manufacturing-route-card,
    .manufacturing-status-grid div,
    .asset-flow-strip div,
    .asset-doc-card,
    .asset-location-card,
    .asset-due-card,
    .asset-insight-grid div,
    .asset-status-grid div,
    .education-quick-stats div,
    .education-flow-strip div,
    .education-module-card
)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 58px;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 38%),
        linear-gradient(180deg, var(--card-wave-1) 0%, var(--card-wave-1) 48%, var(--card-wave-2) 49%, var(--card-wave-2) 100%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 49C132 34 246 54 372 44C514 32 620 54 754 43C920 29 1028 55 1200 40V80H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 49C132 34 246 54 372 44C514 32 620 54 754 43C920 29 1028 55 1200 40V80H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    opacity: 0.86;
    pointer-events: none;
    transform: none;
    z-index: 0;
}

.module-visual-card-primary {
    --card-rim: rgba(142, 234, 255, 0.38);
    --card-wave-1: rgba(56, 189, 248, 0.26);
    --card-wave-2: rgba(139, 92, 246, 0.40);
    --card-wave-3: rgba(244, 114, 182, 0.30);
}

.module-visual-card:not(.module-visual-card-primary),
.erp-module-card,
.erp-kpi-list div {
    --card-rim: rgba(30, 64, 224, 0.18);
    --card-wave-1: rgba(56, 189, 248, 0.20);
    --card-wave-2: rgba(30, 64, 224, 0.16);
    --card-wave-3: rgba(139, 92, 246, 0.12);
}

.inventory-command-card,
.inventory-warehouse-card,
.inventory-summary-card {
    --card-rim: rgba(14, 165, 233, 0.24);
    --card-wave-1: rgba(103, 232, 249, 0.28);
    --card-wave-2: rgba(14, 165, 233, 0.20);
    --card-wave-3: rgba(30, 64, 224, 0.14);
}

.purchase-flow-strip div,
.purchase-doc-card,
.purchase-score-card {
    --card-rim: rgba(245, 158, 11, 0.25);
    --card-wave-1: rgba(253, 224, 71, 0.22);
    --card-wave-2: rgba(245, 158, 11, 0.18);
    --card-wave-3: rgba(244, 114, 182, 0.12);
}

.finance-flow-strip div,
.finance-doc-card,
.finance-aging-grid div {
    --card-rim: rgba(30, 64, 224, 0.20);
    --card-wave-1: rgba(125, 211, 252, 0.22);
    --card-wave-2: rgba(30, 64, 224, 0.18);
    --card-wave-3: rgba(16, 185, 129, 0.12);
}

.hr-flow-strip div,
.hr-person-card,
.hr-doc-card {
    --card-rim: rgba(16, 185, 129, 0.22);
    --card-wave-1: rgba(94, 234, 212, 0.24);
    --card-wave-2: rgba(16, 185, 129, 0.18);
    --card-wave-3: rgba(139, 92, 246, 0.12);
}

.crm-funnel-strip div,
.crm-lead-card,
.crm-campaign-card {
    --card-rim: rgba(84, 43, 228, 0.22);
    --card-wave-1: rgba(216, 180, 254, 0.22);
    --card-wave-2: rgba(84, 43, 228, 0.17);
    --card-wave-3: rgba(56, 189, 248, 0.14);
}

.manufacturing-flow-strip div,
.manufacturing-doc-card,
.manufacturing-order-card,
.manufacturing-requirement-card,
.manufacturing-capacity-card,
.manufacturing-route-card,
.manufacturing-status-grid div {
    --card-rim: rgba(84, 43, 228, 0.21);
    --card-wave-1: rgba(196, 181, 253, 0.22);
    --card-wave-2: rgba(84, 43, 228, 0.18);
    --card-wave-3: rgba(14, 165, 233, 0.13);
}

.asset-flow-strip div,
.asset-doc-card,
.asset-location-card,
.asset-due-card,
.asset-insight-grid div,
.asset-status-grid div {
    --card-rim: rgba(20, 122, 85, 0.22);
    --card-wave-1: rgba(110, 231, 183, 0.24);
    --card-wave-2: rgba(20, 122, 85, 0.18);
    --card-wave-3: rgba(14, 165, 233, 0.12);
}

.education-quick-stats div,
.education-flow-strip div,
.education-module-card {
    --card-rim: rgba(31, 91, 184, 0.22);
    --card-wave-1: rgba(147, 197, 253, 0.24);
    --card-wave-2: rgba(31, 91, 184, 0.18);
    --card-wave-3: rgba(56, 189, 248, 0.13);
}

.garment-style-card,
.garment-route-card,
.garment-order-card {
    --card-rim: rgba(225, 29, 72, 0.20);
    --card-wave-1: rgba(251, 113, 133, 0.20);
    --card-wave-2: rgba(225, 29, 72, 0.15);
    --card-wave-3: rgba(139, 92, 246, 0.14);
}

.pos-product-card,
.restaurant-table-card {
    --card-rim: rgba(14, 165, 233, 0.22);
    --card-wave-1: rgba(125, 211, 252, 0.24);
    --card-wave-2: rgba(14, 165, 233, 0.18);
    --card-wave-3: rgba(245, 158, 11, 0.12);
}

.education-module-detail-list {
    margin-top: 14px;
}

.education-module-detail {
    padding: 16px;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.education-module-detail[hidden] {
    display: none;
}

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

.education-detail-grid div {
    display: grid;
    gap: 5px;
    min-height: 76px;
    align-content: center;
    padding: 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #dce9ff;
}

.education-detail-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.education-detail-grid strong {
    color: #06134f;
    overflow-wrap: anywhere;
}

.education-operational-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 14px;
    margin-top: 14px;
}

.education-form-panel,
.education-report-panel {
    min-width: 0;
    padding: 16px;
    border: 1px solid #dce9ff;
    border-radius: 8px;
    background: #ffffff;
}

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

.education-summary-strip div {
    display: grid;
    gap: 4px;
    min-height: 72px;
    align-content: center;
    padding: 10px;
    border: 1px solid #dce9ff;
    border-radius: 8px;
    background: #f7fbff;
}

.education-summary-strip span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.education-summary-strip strong {
    color: #06134f;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.education-report-table {
    max-height: 330px;
    overflow: auto;
}

.stat-cards-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.stat-cards-row.bootstrap-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -9px 28px;
}

.stat-cards-row.bootstrap-row .stat-card {
    flex: 1 1 220px;
    margin: 0 9px 18px;
}

.stat-card {
    position: relative;
    min-height: 155px;
    padding: 22px 20px 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #ffffff;
    background-clip: padding-box;
    box-shadow:
        0 4px 24px rgba(100, 130, 220, 0.09),
        0 1.5px 6px rgba(100, 130, 220, 0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    padding: 2px;
    border-radius: inherit;
    background: var(--sc-border, linear-gradient(135deg, #90c4ff, #c5d9ff, #a9c5ff));
    pointer-events: none;
    z-index: 3;
    -webkit-mask:
        linear-gradient(#ffffff 0 0) content-box,
        linear-gradient(#ffffff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.stat-card::after {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: inherit;
    background: var(--sc-bg, linear-gradient(145deg, rgba(219, 234, 255, 0.65) 0%, rgba(255, 255, 255, 0.88) 60%));
    pointer-events: none;
    z-index: 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 14px 38px rgba(100, 130, 220, 0.17),
        0 4px 14px rgba(100, 130, 220, 0.11);
}

.stat-card-inner {
    position: relative;
    z-index: 2;
}

.stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--sc-icon-bg, rgba(99, 155, 255, 0.12));
    color: var(--sc-icon-color, #4a8ef5);
    font-size: 12px;
    font-weight: 900;
}

.stat-label {
    max-width: calc(100% - 52px);
    margin-bottom: 3px;
    overflow: hidden;
    color: #6e7b99;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    min-width: 0;
}

.stat-value {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #1a2340;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
}

.stat-value-compact {
    font-size: 25px;
    line-height: 1.08;
}

.stat-unit {
    color: #8c97b2;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.stat-wave {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    line-height: 0;
    pointer-events: none;
}

.stat-wave svg {
    display: block;
    width: 100%;
    height: 52px;
}

.dashboard-metric.stat-card {
    display: block;
    min-height: 155px;
    padding: 0;
}

.dashboard-metric.stat-card .panel-body {
    min-height: 155px;
    padding: 22px 20px 54px;
    align-content: start;
}

.dashboard-metric.stat-card .metric-signal {
    width: min(100%, 150px);
    margin-top: 6px;
}

.stat-card.sc-blue,
.panel.metric:not(.stat-card) {
    --sc-bg: linear-gradient(145deg, rgba(219, 234, 255, 0.65) 0%, rgba(255, 255, 255, 0.88) 60%);
    --sc-border: linear-gradient(135deg, #90c4ff 0%, #c5d9ff 55%, #a9c5ff 100%);
    --sc-icon-bg: rgba(99, 155, 255, 0.12);
    --sc-icon-color: #4a8ef5;
    --sc-wave-soft: rgba(147, 197, 253, 0.36);
}

.stat-card.sc-teal,
.grid.four > .panel.metric:not(.stat-card):nth-child(2) {
    --sc-bg: linear-gradient(145deg, rgba(200, 242, 248, 0.58) 0%, rgba(255, 255, 255, 0.92) 60%);
    --sc-border: linear-gradient(135deg, #7dd8e8 0%, #b4eaf5 55%, #8ec8f5 100%);
    --sc-icon-bg: rgba(56, 195, 215, 0.12);
    --sc-icon-color: #28b5d0;
    --sc-wave-soft: rgba(103, 232, 249, 0.34);
}

.stat-card.sc-rose,
.grid.four > .panel.metric:not(.stat-card):nth-child(3) {
    --sc-bg: linear-gradient(145deg, rgba(255, 218, 235, 0.52) 0%, rgba(255, 255, 255, 0.92) 60%);
    --sc-border: linear-gradient(135deg, #f9a8d4 0%, #fbbfe8 55%, #d8b4fe 100%);
    --sc-icon-bg: rgba(244, 114, 182, 0.12);
    --sc-icon-color: #e879a8;
    --sc-wave-soft: rgba(249, 168, 212, 0.34);
}

.stat-card.sc-purple,
.grid.four > .panel.metric:not(.stat-card):nth-child(4) {
    --sc-bg: linear-gradient(145deg, rgba(224, 215, 255, 0.58) 0%, rgba(255, 255, 255, 0.92) 60%);
    --sc-border: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 55%, #93c5fd 100%);
    --sc-icon-bg: rgba(139, 92, 246, 0.12);
    --sc-icon-color: #8b5cf6;
    --sc-wave-soft: rgba(167, 139, 250, 0.34);
}

.stat-card.sc-amber {
    --sc-bg: linear-gradient(145deg, rgba(255, 237, 213, 0.55) 0%, rgba(255, 255, 255, 0.92) 60%);
    --sc-border: linear-gradient(135deg, #fbbf24 0%, #fde68a 55%, #fb923c 100%);
    --sc-icon-bg: rgba(251, 191, 36, 0.14);
    --sc-icon-color: #d97706;
    --sc-wave-soft: rgba(251, 191, 36, 0.34);
}

.panel.metric:not(.stat-card) {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #ffffff;
    background-clip: padding-box;
    box-shadow:
        0 4px 24px rgba(100, 130, 220, 0.09),
        0 1.5px 6px rgba(100, 130, 220, 0.06);
}

.panel.metric:not(.stat-card)::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: var(--sc-border);
    pointer-events: none;
    z-index: 2;
    -webkit-mask:
        linear-gradient(#ffffff 0 0) content-box,
        linear-gradient(#ffffff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.panel.metric:not(.stat-card)::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(120% 88px at 74% 100%, var(--sc-wave-soft), transparent 66%),
        radial-gradient(94% 76px at 12% 100%, rgba(255, 255, 255, 0.78), transparent 70%),
        var(--sc-bg);
    pointer-events: none;
    z-index: 0;
}

.panel.metric:not(.stat-card) > * {
    position: relative;
    z-index: 1;
}

.panel.metric:not(.stat-card) .panel-body {
    display: grid;
    min-height: 150px;
    align-content: start;
    gap: 5px;
    padding: 22px 20px 72px;
}

.panel.metric:not(.stat-card) span {
    max-width: 100%;
    overflow: hidden;
    color: #6e7b99;
    font-size: 12.5px;
    font-weight: 750;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel.metric:not(.stat-card) strong {
    color: #1a2340;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.dashboard-metric.stat-card::before,
.stat-card::before {
    inset: 0;
    width: auto;
    height: auto;
    padding: 2px;
    background: var(--sc-border, linear-gradient(135deg, #90c4ff, #c5d9ff, #a9c5ff));
    transform: none;
}

.dashboard-metric.stat-card::after,
.stat-card::after {
    inset: 0;
    width: auto;
    height: auto;
    background: var(--sc-bg, linear-gradient(145deg, rgba(219, 234, 255, 0.65) 0%, rgba(255, 255, 255, 0.88) 60%));
    clip-path: none;
    opacity: 1;
    transform: none;
}

.dashboard-metric.stat-card .stat-wave,
.stat-card .stat-wave {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.dashboard-metric.stat-card > .stat-icon,
.stat-card > .stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
}

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

.role-preset-card.stat-card {
    min-height: 174px;
    padding: 20px 20px 70px;
}

.role-preset-inner {
    display: grid;
    gap: 9px;
    max-width: calc(100% - 42px);
}

.role-preset-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.role-preset-kicker {
    color: var(--sc-icon-color, var(--brand));
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.role-preset-code {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 24px;
    padding: 3px 9px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--sc-icon-bg, rgba(99, 155, 255, 0.12));
    color: var(--sc-icon-color, #4a8ef5);
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-preset-card strong {
    color: #00143d;
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.role-preset-card p {
    max-width: 100%;
    margin: 0;
    color: #51627d;
    font-size: 14px;
    line-height: 1.55;
}

.role-preset-icon {
    box-shadow: 0 12px 24px rgba(100, 130, 220, 0.12);
}

.roles-table-panel {
    margin-top: 18px;
    border-color: rgba(144, 196, 255, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.roles-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.roles-list-head .section-title {
    margin: 2px 0 0;
}

.erp-core-stat-cards {
    margin-bottom: 22px;
}

.erp-module-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.erp-module-card {
    --module-surface: linear-gradient(145deg, rgba(219, 234, 255, 0.62), rgba(255, 255, 255, 0.92) 58%);
    --module-border: linear-gradient(135deg, #90c4ff 0%, #c5d9ff 56%, #a9c5ff 100%);
    --module-icon-bg: rgba(99, 155, 255, 0.13);
    --module-icon-color: #1e40e0;
    --module-wave-1: rgba(147, 197, 253, 0.24);
    --module-wave-2: rgba(30, 64, 224, 0.16);
    --module-wave-3: rgba(139, 92, 246, 0.11);
    min-height: 218px;
    gap: 12px;
    padding: 18px 18px 72px;
    border: 2px solid transparent;
    background: var(--module-surface);
    background-clip: padding-box;
    box-shadow:
        0 4px 24px rgba(100, 130, 220, 0.09),
        0 1.5px 6px rgba(100, 130, 220, 0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.erp-module-card::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    padding: 2px;
    border-radius: inherit;
    background: var(--module-border);
    pointer-events: none;
    z-index: 3;
    -webkit-mask:
        linear-gradient(#ffffff 0 0) content-box,
        linear-gradient(#ffffff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.erp-module-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 58px;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.44), transparent 38%),
        linear-gradient(180deg, var(--module-wave-1) 0%, var(--module-wave-1) 48%, var(--module-wave-2) 49%, var(--module-wave-2) 100%);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 49C132 34 246 54 372 44C514 32 620 54 754 43C920 29 1028 55 1200 40V80H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 49C132 34 246 54 372 44C514 32 620 54 754 43C920 29 1028 55 1200 40V80H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
    filter: saturate(1.02);
    opacity: 0.92;
    pointer-events: none;
    transform: none;
    z-index: 0;
}

.erp-module-card:hover::after {
    opacity: 0.98;
}

.erp-module-card:hover {
    border-color: transparent;
    box-shadow:
        0 16px 38px rgba(100, 130, 220, 0.16),
        0 5px 16px rgba(100, 130, 220, 0.10);
    transform: translateY(-4px);
}

.erp-module-card > * {
    position: relative;
    z-index: 2;
}

.erp-module-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: var(--module-icon-bg);
    color: var(--module-icon-color);
    font-size: 14px;
    box-shadow: 0 12px 24px rgba(100, 130, 220, 0.12);
}

.erp-module-card:hover .erp-module-icon {
    transform: translateY(-1px);
}

.erp-module-card strong {
    color: #06134f;
    font-size: 18px;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.erp-module-card span:last-child {
    color: #5b6f91;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.erp-module-master {
    --module-icon-color: #1e40e0;
    --module-icon-bg: rgba(99, 155, 255, 0.13);
    --module-surface: linear-gradient(145deg, rgba(219, 234, 255, 0.62), rgba(255, 255, 255, 0.92) 58%);
    --module-border: linear-gradient(135deg, #90c4ff 0%, #c5d9ff 56%, #a9c5ff 100%);
    --module-wave-1: rgba(147, 197, 253, 0.24);
}

.erp-module-sales,
.erp-module-inventory {
    --module-icon-color: #0ea5e9;
    --module-icon-bg: rgba(56, 195, 215, 0.13);
    --module-surface: linear-gradient(145deg, rgba(200, 242, 248, 0.58), rgba(255, 255, 255, 0.92) 58%);
    --module-border: linear-gradient(135deg, #7dd8e8 0%, #b4eaf5 55%, #8ec8f5 100%);
    --module-wave-1: rgba(103, 232, 249, 0.26);
    --module-wave-2: rgba(14, 165, 233, 0.18);
}

.erp-module-crm,
.erp-module-manufacturing,
.erp-module-education {
    --module-icon-color: #6d5dfc;
    --module-icon-bg: rgba(139, 92, 246, 0.13);
    --module-surface: linear-gradient(145deg, rgba(224, 215, 255, 0.58), rgba(255, 255, 255, 0.92) 58%);
    --module-border: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 55%, #93c5fd 100%);
    --module-wave-1: rgba(196, 181, 253, 0.24);
    --module-wave-2: rgba(109, 93, 252, 0.16);
}

.erp-module-purchase,
.erp-module-report {
    --module-icon-color: #d97706;
    --module-icon-bg: rgba(251, 191, 36, 0.15);
    --module-surface: linear-gradient(145deg, rgba(255, 237, 213, 0.55), rgba(255, 255, 255, 0.92) 58%);
    --module-border: linear-gradient(135deg, #fbbf24 0%, #fde68a 55%, #fb923c 100%);
    --module-wave-1: rgba(251, 191, 36, 0.22);
    --module-wave-2: rgba(217, 119, 6, 0.13);
}

.erp-module-finance {
    --module-icon-color: #e879a8;
    --module-icon-bg: rgba(244, 114, 182, 0.13);
    --module-surface: linear-gradient(145deg, rgba(255, 218, 235, 0.52), rgba(255, 255, 255, 0.92) 58%);
    --module-border: linear-gradient(135deg, #f9a8d4 0%, #fbbfe8 55%, #d8b4fe 100%);
    --module-wave-1: rgba(249, 168, 212, 0.24);
    --module-wave-2: rgba(232, 121, 168, 0.15);
}

.erp-module-asset,
.erp-module-hr {
    --module-icon-color: #10b981;
    --module-icon-bg: rgba(16, 185, 129, 0.13);
    --module-surface: linear-gradient(145deg, rgba(209, 250, 229, 0.52), rgba(255, 255, 255, 0.92) 58%);
    --module-border: linear-gradient(135deg, #6ee7b7 0%, #a7f3d0 55%, #7dd3fc 100%);
    --module-wave-1: rgba(110, 231, 183, 0.24);
    --module-wave-2: rgba(16, 185, 129, 0.15);
}

.erp-module-card::selection,
.erp-module-card *::selection {
    background: rgba(30, 64, 224, 0.16);
}

@media (max-width: 1199px) {
    .stat-cards-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .stat-cards-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .tenant-dashboard-hero,
    .module-analytics-grid,
    .dashboard-metrics,
    .dashboard-split,
    .role-preset-grid,
    .grid.four,
    .grid.three,
    .role-grid,
    .permission-grid,
    .split,
    .business-profile-grid,
    .erp-module-grid,
    .erp-kpi-list,
    .pos-shift-strip,
    .pos-workspace,
    .garment-flow-strip,
    .garment-routing-grid,
    .inventory-command-grid,
    .inventory-control-grid,
    .purchase-flow-strip,
    .purchase-decision,
    .finance-flow-strip,
    .finance-decision,
    .finance-pay-form form,
    .hr-flow-strip,
    .hr-decision,
    .crm-module-hero,
    .crm-quick-stats,
    .crm-funnel-strip,
    .manufacturing-flow-strip,
    .manufacturing-routing-grid,
    .asset-flow-strip,
    .education-hero,
    .education-quick-stats,
    .education-flow-strip,
    .education-module-grid,
    .education-detail-grid,
    .education-operational-grid,
    .education-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .tenant-hero-copy {
        min-height: auto;
    }

    .dashboard-hero-analytics-grid {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
    }
}

@media (max-width: 860px) {
    .login-scene,
    .shell,
    .tenant-dashboard-hero,
    .module-analytics-grid,
    .dashboard-metrics,
    .dashboard-split,
    .role-preset-grid,
    .grid.four,
    .grid.three,
    .grid.two,
    .form-grid,
    .role-grid,
    .permission-grid,
    .split,
    .business-profile-grid,
    .erp-module-grid,
    .erp-kpi-list,
    .pos-shift-strip,
    .pos-workspace,
    .pos-product-grid,
    .pos-total-grid,
    .restaurant-table-grid,
    .restaurant-pos-table-list,
    .garment-flow-strip,
    .garment-style-grid,
    .garment-routing-grid,
    .garment-production-board,
    .garment-roll-row,
    .garment-inline-fields,
    .inventory-command-grid,
    .inventory-warehouse-grid,
    .inventory-summary-grid,
    .inventory-control-grid,
    .inventory-inline-fields,
    .inventory-warehouse-stats,
    .purchase-flow-strip,
    .purchase-card-grid,
    .purchase-approval-row,
    .purchase-decision,
    .purchase-decision form,
    .purchase-score-grid,
    .finance-flow-strip,
    .finance-card-grid,
    .finance-close-grid,
    .finance-expense-row,
    .finance-decision,
    .finance-decision form,
    .finance-pay-form form,
    .finance-aging-grid,
    .hr-flow-strip,
    .hr-people-grid,
    .hr-card-grid,
    .hr-leave-row,
    .hr-decision,
    .crm-module-hero,
    .crm-module-menu,
    .crm-quick-stats,
    .crm-funnel-strip,
    .crm-lead-grid,
    .crm-campaign-grid,
    .crm-campaign-stats,
    .manufacturing-flow-strip,
    .manufacturing-card-grid,
    .manufacturing-routing-grid,
    .manufacturing-work-board,
    .manufacturing-requirement-grid,
    .manufacturing-capacity-grid,
    .manufacturing-status-grid,
    .asset-flow-strip,
    .asset-card-grid,
    .asset-location-grid,
    .asset-status-grid,
    .asset-insight-grid,
    .asset-due-list,
    .asset-assignment-row,
    .asset-inline-form form,
    .education-hero,
    .education-quick-stats,
    .education-flow-strip,
    .education-module-grid,
    .education-detail-grid,
    .education-operational-grid,
    .education-summary-strip {
        grid-template-columns: 1fr;
    }

    .module-column-chart {
        min-height: 190px;
        gap: 8px;
    }

    .module-insight-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-analytics-grid,
    .analytics-side-stack {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .tenant-analytics-card {
        min-height: auto;
    }

    .module-chart-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .module-chart-row strong {
        text-align: left;
    }

    .erp-sub-buttons {
        display: none;
    }

    .erp-sub-select {
        display: block;
    }

    .login-art {
        min-height: 260px;
        padding: 28px;
        align-items: center;
    }

    .login-art h1 {
        font-size: 30px;
    }

    .crm-module-brand {
        min-height: 150px;
    }

    .crm-module-menu {
        border-left: 0;
        border-top: 1px solid #d7e4ff;
    }

    .education-hero-brand {
        min-height: 150px;
    }

    .education-module-menu {
        border-left: 0;
        border-top: 1px solid #cfe2ff;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 60;
        width: min(322px, calc(100vw - 44px));
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(-105%);
        visibility: hidden;
        box-shadow: 24px 0 52px rgba(4, 18, 58, 0.28);
        transition: transform 180ms ease, visibility 180ms ease;
    }

    body.tenant-sidebar-open {
        overflow: hidden;
    }

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

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 55;
        display: block;
        background: rgba(5, 18, 54, 0.52);
        opacity: 0;
        pointer-events: none;
        transition: opacity 160ms ease;
    }

    .sidebar-backdrop[hidden] {
        display: none;
    }

    body.tenant-sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .main {
        grid-column: 1;
        grid-row: 1;
    }

    .tenant-brand {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .tenant-logo {
        height: 42px;
    }

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

    .topbar {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-height: 64px;
        padding: 10px 14px;
        z-index: 45;
    }

    .topbar-title {
        flex: 1 1 auto;
        min-width: 0;
    }

    .topbar-title strong,
    .topbar-title .muted {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar .actions {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .topbar .user-chip {
        min-height: 42px;
        padding: 4px;
    }

    .topbar .user-chip > div:not(.avatar) {
        display: none;
    }

    .page-head,
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .page {
        padding: 20px 16px 36px;
    }

    .tenant-hero-copy,
    .tenant-hero-card {
        min-height: auto;
    }

    .tenant-hero-copy h1 {
        font-size: 28px;
    }

    .dashboard-profile-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .tenant-brand,
    .tenant-hero-stats {
        grid-template-columns: 1fr;
    }

    .tenant-dashboard-hero {
        padding: 18px;
    }

    .tenant-analytics-card {
        padding: 12px;
    }

    .analytics-card-header,
    .analytics-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-line-chart svg {
        min-height: 138px;
    }

    .chart-axis-labels {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-bar-chart {
        height: 112px;
        gap: 6px;
    }

    .tenant-hero-actions,
    .topbar .actions,
    .user-chip {
        width: 100%;
    }

    .tenant-hero-actions .button,
    .topbar .actions .button {
        width: 100%;
    }

    .user-chip {
        justify-content: flex-start;
    }

    .topbar .actions {
        width: auto;
        flex-wrap: nowrap;
        gap: 6px;
    }

    .topbar .actions .button {
        width: auto;
        min-height: 34px;
        padding: 6px 9px;
    }

    .topbar .user-chip {
        width: auto;
        flex: 0 0 auto;
    }

    .topbar-title span,
    .topbar-title .muted {
        display: none;
    }

    .topbar-title strong {
        font-size: 16px;
    }
}

@media (max-width: 860px) {
    html body.tenant-sidebar-open .shell .sidebar {
        transform: translateX(0);
        visibility: visible;
    }
}

/* =========================================================================
   Tenant login redesign (login & setup)
   ========================================================================= */
.login-body {
    background:
        radial-gradient(1100px 600px at -10% -20%, rgba(74, 127, 247, 0.22) 0%, rgba(74, 127, 247, 0) 60%),
        radial-gradient(900px 600px at 110% 120%, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 60%),
        #f0f4fa;
    min-height: 100vh;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.login-scene {
    --login-brand: #1e40e0;
    --login-brand-2: #0d1b3e;
    --login-accent: #4a7ff7;
    --login-cyan: #38bdf8;
}

.login-scene {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    background: transparent;
}

/* --- Left art panel --- */
.login-art {
    position: relative;
    overflow: hidden;
    padding: 56px 60px;
    display: flex;
    align-items: stretch;
    background:
        radial-gradient(620px 420px at 18% 12%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 70%),
        linear-gradient(155deg, #0d1b3e 0%, #162d6e 38%, #1e40e0 72%, #4a7ff7 100%);
    color: #f1f7fa;
    isolation: isolate;
}

.login-art-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%);
    opacity: 0.7;
    z-index: 0;
}

.login-art-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    z-index: 0;
}

.login-art-orb-a {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at 30% 30%, #4a7ff7, transparent 65%);
    top: -120px;
    right: -80px;
    opacity: 0.55;
}

.login-art-orb-b {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle at 40% 40%, #38bdf8, transparent 65%);
    bottom: -120px;
    left: -80px;
    opacity: 0.5;
}

.login-art-orb-c {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle at 50% 50%, #3b82f6, transparent 65%);
    top: 40%;
    left: 55%;
    opacity: 0.28;
}

.login-art-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    max-width: 560px;
    margin: auto 0;
}

.login-art-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 7px 14px 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #d6f1f5;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.login-art-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a7ff7;
    box-shadow: 0 0 0 4px rgba(74, 127, 247, 0.25);
}

.login-art h1 {
    margin: 0;
    font-family: "Sora", "Inter", sans-serif;
    font-size: 44px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0;
    color: #ffffff;
}

.login-art p {
    margin: 16px 0 0;
    max-width: 480px;
    color: #cfe4ea;
    font-size: 16px;
    line-height: 1.6;
}

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

.login-art-stat {
    padding: 14px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.login-art-stat strong {
    font-family: "Sora", "Inter", sans-serif;
    font-size: 22px;
    color: #ffffff;
}

.login-art-stat span {
    color: #a8c8d1;
    font-size: 12px;
    line-height: 1.4;
}

.login-art-quote,
.login-art-steps {
    margin: 0;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.login-art-quote {
    position: relative;
}

.login-art-quote-mark {
    position: absolute;
    top: -18px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4a7ff7, #38bdf8);
    color: #0d1b3e;
    display: grid;
    place-items: center;
    font-family: "Sora", serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.login-art-quote p {
    margin: 0;
    color: #e7f3f6;
    font-size: 14.5px;
    line-height: 1.6;
}

.login-art-quote-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.login-art-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0;
}

.login-art-quote-meta strong {
    display: block;
    color: #ffffff;
    font-size: 13.5px;
}

.login-art-quote-meta span {
    color: #a8c8d1;
    font-size: 12px;
}

.login-art-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 10px;
    padding-left: 20px;
    padding-right: 20px;
}

.login-art-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d6eaef;
    font-size: 14px;
}

.login-art-steps li span {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(74, 127, 247, 0.35);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12.5px;
    flex: 0 0 auto;
}

/* --- Right login panel --- */
.login-panel {
    display: grid;
    place-items: center;
    padding: 40px 32px;
    background:
        radial-gradient(600px 320px at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
        transparent;
}

.login-card {
    width: min(100%, 400px);
    padding: 30px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 30px 60px -30px rgba(15, 33, 55, 0.18),
        0 18px 40px -20px rgba(15, 118, 110, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: login-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.login-card-wide {
    width: min(100%, 520px);
    padding: 32px 32px 28px;
}

@keyframes login-rise {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card .brand-row {
    margin-bottom: 22px;
}

.login-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 122px;
    height: 44px;
    padding: 6px 8px;
    border: 1px solid #dbe6f5;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(13, 27, 62, 0.1);
    flex: 0 0 auto;
}

.login-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-tag {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    background: rgba(30, 64, 224, 0.12);
    color: var(--login-brand);
}

.login-tag-warn {
    background: rgba(180, 107, 18, 0.14);
    color: var(--warn);
}

.login-headline {
    margin: 4px 0 22px;
}

.login-headline h2 {
    margin: 0 0 6px;
    font-family: "Sora", "Inter", sans-serif;
    font-size: 24px;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: 0;
}

.login-headline p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.login-form {
    display: block;
}

.login-field {
    margin-bottom: 14px;
}

.login-field label {
    margin-bottom: 6px;
    font-size: 12.5px;
    color: #344054;
}

.login-input {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 12px 0 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.login-input:hover {
    border-color: #b9c7d3;
}

.login-input:focus-within {
    border-color: var(--login-brand);
    box-shadow: 0 0 0 4px rgba(30, 64, 224, 0.16);
    background: #ffffff;
}

.login-input-icon {
    display: grid;
    place-items: center;
    color: #5a6b8a;
    flex: 0 0 auto;
}

.login-input input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--ink);
    font: inherit;
}

.login-input input:focus {
    outline: none;
    box-shadow: none;
}

.login-input input::placeholder {
    color: #9aa6b2;
}

.login-input-action {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #5a6b8a;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    min-height: 30px;
}

.login-input-action:hover {
    color: var(--login-brand);
    background: rgba(30, 64, 224, 0.1);
}

.login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 18px;
    font-size: 12.5px;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475467;
    user-select: none;
}

.login-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.login-check-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #c1cbd6;
    background: #ffffff;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex: 0 0 auto;
}

.login-check input:checked + .login-check-box {
    background: var(--login-brand);
    border-color: var(--login-brand);
}

.login-check input:checked + .login-check-box::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.login-help {
    color: var(--login-brand);
    font-weight: 600;
}

.login-help:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e40e0 0%, #4a7ff7 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 14.5px;
    letter-spacing: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 14px 30px -14px rgba(30, 64, 224, 0.55);
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.__UNUSED__ {
    color: #ffffff;
    font-weight: 800;
    font-size: 14.5px;
    letter-spacing: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 14px 30px -14px rgba(15, 118, 110, 0.55);
    transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px -14px rgba(30, 64, 224, 0.65);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit svg {
    transition: transform 0.18s ease;
}

.login-submit:hover svg {
    transform: translateX(2px);
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 14px;
    color: #98a2b3;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d9e2ec, transparent);
}

.login-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}

.login-foot-center {
    justify-content: center;
    margin-top: 16px;
}

.login-foot a {
    color: var(--login-brand);
    transition: color 0.15s ease;
}

.login-foot a:hover {
    color: var(--login-brand);
    text-decoration: underline;
}

.login-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 18px auto 0;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 64, 224, 0.1);
    color: var(--login-brand);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
    width: max-content;
    display: flex;
    justify-content: center;
}

.login-trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 0 3px rgba(20, 122, 85, 0.18);
}

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

/* --- Responsive --- */
@media (max-width: 1080px) {
    .login-scene {
        grid-template-columns: 1fr;
    }

    .login-art {
        min-height: 320px;
        padding: 36px 32px;
    }

    .login-art h1 {
        font-size: 32px;
    }

    .login-art-quote,
    .login-art-steps {
        display: none;
    }

    .login-art-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .login-art {
        padding: 28px 22px;
        min-height: 260px;
    }

    .login-art h1 {
        font-size: 26px;
    }

    .login-art-stats {
        grid-template-columns: 1fr;
    }

    .login-panel {
        padding: 24px 18px 36px;
    }

    .login-card,
    .login-card-wide {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .login-form-grid {
        grid-template-columns: 1fr;
    }

    .login-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
