:root {
    color-scheme: light;
    --primary: #1976f3;
    --primary-rgb: 25, 118, 243;
    --primary-dark: #1354c7;
    --accent: #7c3aed;
    --accent-rgb: 124, 58, 237;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #111827;
    --text-muted: #64748b;
    --border: #dbe3ef;
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 26px 70px rgba(18, 31, 58, 0.16);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --auth-card-height: min(760px, calc(100vh - 48px));
    --sidebar-bg: #07152d;
    --header-bg: #f77902;
    --sidebar-text: #aab8d0;
    --sidebar-active: #ffffff;
    --topbar-bg: rgba(255, 255, 255, 0.88);
    --button-primary: #1976f3;
    --button-primary-hover: #1354c7;
    --font-main: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d111c;
    --surface: #141a29;
    --surface-soft: #1a2335;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #263248;
    --shadow-sm: 0 12px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-main);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.18), transparent 32rem),
        radial-gradient(circle at bottom right, rgba(var(--accent-rgb), 0.12), transparent 30rem),
        linear-gradient(135deg, #eef6ff 0%, #f8fbff 50%, #f2f5ff 100%);
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 49fr) minmax(0, 51fr);
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: min(100%, 1510px);
    height: 100vh;
    margin: 0 auto;
    padding: 24px;
}

.auth-visual {
    position: relative;
    display: grid;
    height: var(--auth-card-height);
    min-height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 64px;
    background:
        linear-gradient(180deg, rgba(4, 14, 34, 0.74) 0%, rgba(4, 14, 34, 0.72) 48%, rgba(4, 14, 34, 0.58) 100%),
        url("../images/nut bolt.png") bottom center / 100% 46% no-repeat,
        linear-gradient(135deg, #06152d, #081b3a),
        #06152d;
    box-shadow: var(--shadow-lg);
    color: #ffffff;
    grid-template-rows: 1fr auto;
}

.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.auth-visual::before {
    top: 48px;
    left: 48px;
    width: 76px;
    height: 76px;
    background-image: radial-gradient(circle, rgba(var(--primary-rgb), 0.95) 0 3px, transparent 3.5px);
    background-position: 0 0;
    background-size: 22px 22px;
    opacity: 0.85;
}

.auth-visual::after {
    width: 390px;
    height: 390px;
    right: -86px;
    top: -50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    box-shadow:
        -110px 64px 0 -1px rgba(255, 255, 255, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    align-self: center;
    max-width: min(100%, 620px);
    min-width: 0;
}

.auth-visual-content::after {
    content: "";
    position: absolute;
    top: -170px;
    right: -360px;
    width: 560px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 76px 0 rgba(255, 255, 255, 0.06);
    transform: rotate(-48deg);
}

.auth-visual h1 {
    margin: 0;
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
}

.auth-visual h1 span {
    display: block;
    font-size: clamp(48px, 5vw, 78px);
}

.auth-visual h1 span:first-child {
    font-size: clamp(42px, 4vw, 70px);
}

.gradient-text {
    color: transparent;
    background: linear-gradient(90deg, #38a6ff 0%, #8c63ff 92%);
    -webkit-background-clip: text;
    background-clip: text;
}

.auth-visual h1::after {
    content: "";
    display: block;
    width: 52px;
    height: 3px;
    margin-top: 22px;
    border-radius: 999px;
    background: var(--primary);
}

.auth-visual p:last-child {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.25vw, 1.2rem);
    line-height: 1.55;
}

.developer-credit {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    font-size: 0.92rem;
    line-height: 1.4;
    backdrop-filter: blur(14px);
}

.credit-copy {
    display: grid;
    gap: 2px;
}

.credit-copy strong {
    color: #ffffff;
    font-size: 0.94rem;
}

.credit-copy strong span {
    color: #2490ff;
}

.credit-copy p {
    margin: 0;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--auth-card-height);
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-lg);
    padding: clamp(32px, 4vw, 62px);
    backdrop-filter: blur(22px);
}

.login-card {
    width: min(100%, 560px);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo {
    position: relative;
    display: grid;
    place-items: center;
    margin-bottom: 46px;
}

.login-logo::before {
    content: "";
    position: absolute;
    width: 176px;
    height: 150px;
    border-radius: 44%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.46) 54%, transparent 72%),
        radial-gradient(circle at 55% 62%, rgba(var(--accent-rgb), 0.2), transparent 68%);
    filter: blur(2px);
    box-shadow: 0 28px 70px rgba(var(--accent-rgb), 0.26), 0 18px 54px rgba(var(--primary-rgb), 0.18);
}

.login-logo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 150px;
    max-height: 130px;
    object-fit: contain;
    filter: drop-shadow(0 16px 28px rgba(42, 36, 92, 0.16));
}

.login-form {
    display: grid;
    gap: 22px;
}

.auth-alert {
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #991b1b;
    background: rgba(254, 242, 242, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
}

.form-group {
    display: grid;
    gap: 10px;
}

.form-group label {
    color: #07142b;
    font-size: 1rem;
    font-weight: 800;
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 24px;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    color: rgba(16, 24, 40, 0.72);
}

.input-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.form-group input {
    width: 100%;
    min-height: 68px;
    border: 1px solid #d6dee9;
    border-radius: 14px;
    padding: 0 66px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-group input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.14);
}

.password-toggle {
    position: absolute;
    right: 20px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    outline: none;
}

.password-toggle svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.btn-primary {
    min-height: 68px;
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(100deg, #176df6 0%, #2385ff 35%, #8b2df6 100%);
    box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.28), 0 12px 32px rgba(var(--accent-rgb), 0.24);
    cursor: pointer;
    font-size: 1.12rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.34), 0 12px 28px rgba(var(--accent-rgb), 0.22);
}

.btn-primary:active {
    transform: translateY(0);
}

@media (min-width: 901px) and (max-height: 720px) {
    .auth-visual {
        padding: 42px;
    }

    .auth-visual h1 span {
        font-size: clamp(44px, 4.2vw, 62px);
    }

    .auth-visual h1 span:first-child {
        font-size: clamp(38px, 3.7vw, 56px);
    }

    .auth-visual h1::after {
        margin-top: 16px;
    }

    .auth-visual p:last-child {
        margin-top: 16px;
        font-size: 1rem;
    }

    .developer-credit {
        padding: 12px 14px;
    }

    .auth-panel {
        padding: 22px 40px;
    }

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

    .login-logo img {
        width: 108px;
        max-height: 92px;
    }

    .login-logo::before {
        width: 132px;
        height: 112px;
    }

    .login-form {
        gap: 14px;
    }

    .form-group {
        gap: 8px;
    }

    .form-group input,
    .btn-primary {
        min-height: 58px;
    }
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        color-scheme: dark;
    }
}

@media (max-width: 900px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .auth-shell {
        grid-template-columns: 1fr;
        width: 100%;
        height: auto;
        min-height: 100vh;
        gap: 16px;
        padding: 24px;
    }

    .auth-visual,
    .auth-panel {
        height: auto;
        min-height: auto;
    }

    .auth-visual {
        min-height: 430px;
        padding: 32px;
    }

    .auth-panel {
        padding: 42px 24px;
    }

    .login-logo img {
        width: 120px;
        max-height: 104px;
    }

    .login-logo::before {
        width: 146px;
        height: 126px;
    }
}

@media (max-width: 560px) {
    .auth-shell {
        gap: 14px;
        padding: 12px;
    }

    .auth-visual {
        min-height: 480px;
        border-radius: 24px;
        padding: 24px;
    }

    .auth-visual h1 span,
    .auth-visual h1 span:first-child {
        font-size: clamp(2.5rem, 12vw, 3.25rem);
    }

    .auth-visual p:last-child {
        font-size: 0.98rem;
    }

    .login-card {
        width: 100%;
    }

    .auth-panel {
        border-radius: 24px;
        padding: 36px 22px;
    }

    .developer-credit {
        gap: 14px;
        padding: 14px;
    }

    .credit-copy strong,
    .credit-copy p {
        font-size: 0.9rem;
    }

    .form-group input {
        min-height: 64px;
        font-size: 1rem;
        padding: 0 58px;
    }

    .input-icon {
        left: 20px;
    }

    .password-toggle {
        right: 12px;
    }

    .btn-primary {
        min-height: 68px;
    }
}

.utility-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    overflow: auto;
}

.utility-card {
    width: min(100%, 560px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg);
    padding: clamp(30px, 6vw, 56px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
    text-align: center;
    backdrop-filter: blur(22px);
}

.utility-kicker {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.utility-card h1 {
    margin: 0;
    color: #06142d;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.utility-card p:not(.utility-kicker) {
    margin: 18px auto 0;
    max-width: 420px;
    color: var(--text-muted);
    line-height: 1.7;
}

.utility-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 28px;
    border-radius: var(--radius-sm);
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(100deg, #176df6 0%, #2385ff 35%, #8b2df6 100%);
    box-shadow: 0 14px 28px rgba(var(--primary-rgb), 0.24);
    font-weight: 800;
    text-decoration: none;
}

.dashboard-body {
    height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(var(--primary-rgb), 0.12), transparent 30rem),
        linear-gradient(135deg, #eef6ff 0%, #f8fbff 48%, #f3f6ff 100%);
}

.dashboard-body.dashboard-no-animations *,
.dashboard-body.dashboard-no-animations *::before,
.dashboard-body.dashboard-no-animations *::after {
    transition: none !important;
    animation: none !important;
}

.dashboard-body.dashboard-no-glass .dashboard-topbar,
.dashboard-body.dashboard-no-glass .module-card,
.dashboard-body.dashboard-no-glass .welcome-card,
.dashboard-body.dashboard-no-glass .stat-card,
.dashboard-body.dashboard-no-glass .empty-state-card,
.dashboard-body.dashboard-no-glass .settings-card {
    backdrop-filter: none !important;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    height: 100vh;
    overflow: hidden;
}

.dashboard-sidebar {
    position: relative;
    z-index: 30;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    box-shadow: 16px 0 42px rgba(15, 23, 42, 0.14);
    transition: width 180ms ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 86px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 16px 30px rgba(var(--primary-rgb), 0.24);
    font-weight: 900;
}

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

.sidebar-brand-text,
.sidebar-label {
    min-width: 0;
    white-space: nowrap;
    transition: opacity 160ms ease, transform 160ms ease;
}

.sidebar-brand-text {
    display: grid;
    align-content: center;
    gap: 3px;
}

.sidebar-brand-text strong {
    color: #ffffff;
    font-size: 1rem;
}

.sidebar-brand-text span {
    font-size: 0.78rem;
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 14px;
    scrollbar-width: none;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.sidebar-link,
.sidebar-collapse {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    padding: 0 14px;
    color: var(--sidebar-text);
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.sidebar-group {
    display: grid;
    gap: 6px;
}

.sidebar-group summary {
    list-style: none;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group-caret {
    display: grid;
    width: 18px;
    height: 18px;
    margin-left: auto;
    place-items: center;
    transition: transform 160ms ease;
}

.sidebar-group-caret svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.sidebar-group[open] .sidebar-group-caret {
    transform: rotate(180deg);
}

.sidebar-child-list {
    display: grid;
    gap: 5px;
    padding-left: 12px;
}

.sidebar-child-list .sidebar-link {
    min-height: 42px;
    padding-left: 12px;
}

.sidebar-empty {
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    margin: 4px 0;
    padding: 16px 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
}

.sidebar-link:hover,
.sidebar-collapse:hover {
    color: #ffffff;
    background: var(--sidebar-hover);
}

.sidebar-link.is-active {
    color: #ffffff;
    background: var(--sidebar-active);
    box-shadow: inset 3px 0 0 var(--sidebar-active), 0 12px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-icon,
.sidebar-collapse span:first-child {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
}

.sidebar-icon svg,
.sidebar-collapse svg,
.mobile-menu-button svg,
.user-caret {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.sidebar-collapse {
    min-height: 56px;
    margin: auto 14px 16px;
    font-weight: 800;
}

.dashboard-workspace {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 86px;
    border-bottom: 1px solid rgba(219, 227, 239, 0.8);
    padding: 16px 28px;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-title h1 {
    margin: 0;
    color: #07142b;
    font-size: 1.55rem;
    line-height: 1.1;
}

.topbar-title p {
    margin: 5px 0 0;
    color: var(--text-muted);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #07142b;
    background: #ffffff;
    cursor: pointer;
}

.user-menu {
    position: relative;
    flex: 0 0 auto;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 50px;
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 16px;
    padding: 6px 10px 6px 7px;
    color: #07142b;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 900;
}

.user-meta {
    display: grid;
    gap: 1px;
    text-align: left;
}

.user-meta strong {
    max-width: 150px;
    overflow: hidden;
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta small {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: capitalize;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: 210px;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

.user-menu.is-open .user-dropdown {
    display: grid;
}

.user-dropdown a {
    border-radius: 11px;
    padding: 11px 12px;
    color: #07142b;
    font-weight: 700;
    text-decoration: none;
}

.user-dropdown a:hover {
    background: var(--surface-soft);
}

.dashboard-main {
    display: grid;
    gap: 22px;
    min-height: 0;
    overflow-y: auto;
    padding: 28px;
}

.welcome-card,
.stat-card,
.empty-state-card {
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 22px;
    background: color-mix(in srgb, var(--card-bg, #ffffff) 90%, transparent);
    box-shadow: var(--shadow-sm);
}

.welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
}

.section-kicker {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.welcome-card h2,
.empty-state-card h2 {
    margin: 0;
    color: #07142b;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.12;
}

.welcome-card p:not(.section-kicker),
.empty-state-card p:not(.section-kicker) {
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.welcome-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 13px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--button-primary);
    box-shadow: 0 14px 24px rgba(var(--primary-rgb), 0.22);
    font-weight: 800;
    text-decoration: none;
}

.welcome-action:hover {
    background: var(--button-primary-hover);
}

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

.supplier-dashboard-stats,
.customer-dashboard-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 118px;
    padding: 20px;
}

.stat-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.stat-card p {
    margin: 0;
    color: var(--text-muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin-top: 4px;
    color: #07142b;
    font-size: 2rem;
    line-height: 1;
}

.empty-state-card {
    padding: 28px;
}

.executive-dashboard {
    overflow-x: hidden;
}

.executive-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    align-items: center;
    gap: 28px;
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 22px;
    padding: 30px;
    background: color-mix(in srgb, var(--card-bg, #ffffff) 92%, transparent);
    box-shadow: var(--shadow-sm);
}

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

.executive-hero-copy h2 {
    margin: 0;
    color: #07142b;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.04;
}

.executive-hero-copy p:not(.section-kicker) {
    max-width: 660px;
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.executive-hero-copy time {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid rgba(var(--primary-rgb), 0.16);
    border-radius: 12px;
    margin-top: 22px;
    padding: 0 13px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    font-weight: 900;
}

.owner-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-width: 0;
    margin: 0;
}

.owner-card img {
    width: clamp(170px, 22vw, 238px);
    aspect-ratio: 1;
    border: 6px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.owner-card figcaption {
    display: grid;
    justify-items: center;
    gap: 3px;
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 16px;
    padding: 11px 16px;
    color: var(--text);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.owner-card figcaption strong {
    color: #07142b;
    font-size: 0.96rem;
}

.owner-card figcaption span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

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

.quick-action-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 132px;
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 18px;
    padding: 18px;
    color: inherit;
    background: color-mix(in srgb, var(--card-bg, #ffffff) 94%, transparent);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.quick-action-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 18px 36px rgba(var(--primary-rgb), 0.14);
    transform: translateY(-2px);
}

.quick-action-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.quick-action-icon svg,
.quick-action-arrow svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.quick-action-content {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.quick-action-content strong {
    color: #07142b;
    font-size: 1rem;
}

.quick-action-content span {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.quick-action-arrow {
    display: grid;
    color: var(--primary);
}

.developer-brand-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(219, 227, 239, 0.84);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text-muted);
    background: color-mix(in srgb, var(--card-bg, #ffffff) 88%, transparent);
    box-shadow: var(--shadow-sm);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.developer-brand-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.developer-brand-card div:last-child {
    justify-items: end;
    text-align: right;
}

.developer-brand-card strong {
    color: #07142b;
    font-size: 0.92rem;
}

.developer-brand-card a {
    color: var(--primary);
    font-weight: 900;
    text-decoration: none;
}

.module-page-header,
.module-card {
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 22px;
    background: color-mix(in srgb, var(--card-bg, #ffffff) 90%, transparent);
    box-shadow: var(--shadow-sm);
}

.users-page-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.users-page-row h2 {
    margin: 0;
    color: #07142b;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.1;
}

.module-page-header {
    padding: 28px;
}

.module-page-header h2 {
    margin: 0;
    color: #07142b;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.1;
}

.module-page-header p:not(.section-kicker) {
    margin: 10px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.module-card {
    padding: 22px;
}

.compact-card {
    scroll-margin-top: 110px;
}

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

.module-card-header h3 {
    margin: 0;
    color: #07142b;
    font-size: 1.18rem;
}

.module-card-header p {
    margin: 6px 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.module-alert {
    border-radius: 16px;
    padding: 14px 16px;
    font-weight: 800;
}

.module-alert.is-success {
    border: 1px solid rgba(22, 163, 74, 0.22);
    color: #166534;
    background: rgba(240, 253, 244, 0.92);
}

.module-alert.is-error {
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #991b1b;
    background: rgba(254, 242, 242, 0.92);
}

.admin-form {
    display: grid;
    gap: 18px;
}

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

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

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

.admin-form label {
    display: grid;
    gap: 8px;
    color: #07142b;
    font-weight: 800;
}

.admin-form label span {
    font-size: 0.92rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.admin-form input,
.admin-form select {
    min-height: 46px;
    padding: 0 13px;
}

.admin-form textarea {
    min-height: 92px;
    padding: 12px 13px;
    resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

.wide-field {
    grid-column: 1 / -1;
}

.permission-panel {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(219, 227, 239, 0.8);
    border-radius: 16px;
    padding: 16px;
    background: var(--surface-soft);
}

.permission-panel strong {
    color: #07142b;
}

.permission-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

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

.permission-option {
    display: flex !important;
    align-items: center;
    gap: 9px !important;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 10px;
    background: #ffffff;
    font-weight: 800;
}

.permission-option input {
    width: 16px;
    min-height: 16px;
    accent-color: var(--primary);
}

.admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--button-primary);
    box-shadow: 0 14px 24px rgba(var(--primary-rgb), 0.22);
    cursor: pointer;
    font-weight: 900;
    text-decoration: none;
}

.admin-button:not(.is-light):hover {
    background: var(--button-primary-hover);
}

.admin-button.is-light {
    border: 1px solid var(--border);
    color: var(--text);
    background: #ffffff;
    box-shadow: none;
}

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

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 820px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--border);
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-table td {
    color: #07142b;
    font-weight: 700;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: capitalize;
}

.status-badge.is-active {
    color: #166534;
    background: rgba(22, 163, 74, 0.12);
}

.status-badge.is-inactive {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.1);
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions a,
.table-actions button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    color: #07142b;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.table-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.table-actions .danger {
    color: #991b1b;
}

.statement-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(160px, 0.8fr)) auto;
    gap: 14px;
    align-items: end;
}

.statement-filter-form label {
    display: grid;
    gap: 8px;
    color: #07142b;
    font-weight: 800;
}

.statement-filter-form label span {
    font-size: 0.9rem;
}

.statement-filter-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.statement-filter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

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

.supplier-action-grid,
.customer-action-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.supplier-dashboard-page,
.customer-dashboard-page {
    overflow-x: hidden;
}

.supplier-dashboard-page .dashboard-main,
.supplier-dashboard-page .module-card,
.supplier-dashboard-page .stat-card,
.customer-dashboard-page .dashboard-main,
.customer-dashboard-page .module-card,
.customer-dashboard-page .stat-card {
    min-width: 0;
}

.supplier-dashboard-page .stat-card,
.customer-dashboard-page .stat-card {
    align-items: flex-start;
    height: 100%;
}

.supplier-dashboard-page .stat-card > div,
.customer-dashboard-page .stat-card > div {
    min-width: 0;
}

.supplier-dashboard-page .stat-card strong,
.customer-dashboard-page .stat-card strong {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(1.22rem, 1.6vw, 1.82rem);
    line-height: 1.12;
}

.supplier-dashboard-page .supplier-dashboard-stats .stat-card,
.customer-dashboard-page .customer-dashboard-stats .stat-card {
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 18px;
}

.supplier-dashboard-page .supplier-dashboard-stats .stat-icon,
.customer-dashboard-page .customer-dashboard-stats .stat-icon {
    display: none;
}

.supplier-dashboard-page .supplier-dashboard-stats .stat-card > div,
.customer-dashboard-page .customer-dashboard-stats .stat-card > div {
    display: grid;
    gap: 7px;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.supplier-dashboard-page .supplier-dashboard-stats .stat-card p,
.customer-dashboard-page .customer-dashboard-stats .stat-card p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-dashboard-page .supplier-dashboard-stats .stat-card strong,
.customer-dashboard-page .customer-dashboard-stats .stat-card strong {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #07142b;
    font-size: clamp(1.08rem, 1.28vw, 1.46rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: nowrap;
}

.supplier-dashboard-page .supplier-action-grid .admin-button,
.customer-dashboard-page .customer-action-grid .admin-button {
    min-width: 156px;
    white-space: normal;
}

.supplier-dashboard-page .supplier-outstanding-table-wrap,
.customer-dashboard-page .customer-balance-table-wrap {
    overflow-x: visible;
}

.supplier-dashboard-page .admin-table,
.customer-dashboard-page .admin-table {
    min-width: 0;
    table-layout: fixed;
}

.supplier-dashboard-page .admin-table th:first-child,
.supplier-dashboard-page .admin-table td:first-child,
.customer-dashboard-page .admin-table th:first-child,
.customer-dashboard-page .admin-table td:first-child {
    width: 58%;
}

.supplier-dashboard-page .admin-table th:last-child,
.supplier-dashboard-page .admin-table td:last-child,
.customer-dashboard-page .admin-table th:last-child,
.customer-dashboard-page .admin-table td:last-child {
    width: 42%;
    text-align: right;
}

.supplier-dashboard-page .admin-table td,
.customer-dashboard-page .admin-table td {
    overflow-wrap: anywhere;
}

.supplier-dashboard-page .supplier-outstanding-amount,
.customer-dashboard-page .customer-balance-amount {
    color: var(--text);
    font-weight: 900;
}

.supplier-dashboard-page .supplier-outstanding-amount.is-outstanding {
    color: #dc2626;
}

.supplier-dashboard-page .supplier-outstanding-amount.is-credit {
    color: #16a34a;
}

.customer-dashboard-page .customer-balance-amount.is-receivable {
    color: #16a34a;
}

.customer-dashboard-page .customer-balance-amount.is-advance {
    color: #dc2626;
}

.supplier-view-more-wrap,
.customer-view-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.suppliers-page {
    overflow-x: hidden;
}

.items-page,
.stock-entries-page,
.stock-ledger-page,
.customers-page,
.stock-dashboard-page {
    overflow-x: hidden;
}

.suppliers-page .dashboard-main,
.suppliers-page .module-card,
.customers-page .dashboard-main,
.customers-page .module-card,
.items-page .dashboard-main,
.items-page .module-card,
.stock-entries-page .dashboard-main,
.stock-entries-page .module-card,
.stock-ledger-page .dashboard-main,
.stock-ledger-page .module-card,
.stock-dashboard-page .dashboard-main,
.stock-dashboard-page .module-card {
    min-width: 0;
}

.suppliers-page .admin-table,
.customers-page .admin-table,
.items-page .admin-table,
.stock-entries-page .admin-table,
.stock-ledger-page .admin-table,
.stock-dashboard-page .admin-table {
    min-width: 0;
}

.supplier-purchases-page,
.customer-sales-page {
    overflow-x: hidden;
}

.supplier-purchases-page .dashboard-main,
.supplier-purchases-page .module-card,
.customer-sales-page .dashboard-main,
.customer-sales-page .module-card {
    min-width: 0;
}

.supplier-purchases-page .admin-table,
.customer-sales-page .admin-table {
    min-width: 0;
}

.supplier-purchases-page .supplier-purchase-amount {
    color: #dc2626;
    font-weight: 900;
}

.customer-sales-page .customer-sale-amount,
.supplier-payments-page .supplier-payment-amount,
.customer-payments-page .customer-payment-amount {
    color: #16a34a;
    font-weight: 900;
}

.supplier-returns-page .supplier-return-amount {
    color: #16a34a;
    font-weight: 900;
}

.customer-returns-page .customer-return-amount {
    color: #dc2626;
    font-weight: 900;
}

.supplier-payments-page,
.customer-payments-page,
.expenses-page {
    overflow-x: hidden;
}

.supplier-payments-page .dashboard-main,
.supplier-payments-page .module-card,
.customer-payments-page .dashboard-main,
.customer-payments-page .module-card,
.expenses-page .dashboard-main,
.expenses-page .module-card {
    min-width: 0;
}

.supplier-payments-page .admin-table,
.customer-payments-page .admin-table,
.expenses-page .admin-table {
    min-width: 0;
}

.expenses-page .table-wrap {
    overflow-x: visible;
}

.expenses-page .admin-table {
    table-layout: fixed;
}

.expenses-page .admin-table td {
    overflow-wrap: anywhere;
}

.supplier-returns-page,
.customer-returns-page {
    overflow-x: hidden;
}

.supplier-returns-page .dashboard-main,
.supplier-returns-page .module-card,
.customer-returns-page .dashboard-main,
.customer-returns-page .module-card {
    min-width: 0;
}

.supplier-returns-page .admin-table,
.customer-returns-page .admin-table {
    min-width: 0;
}

.supplier-purchase-filter-card,
.supplier-payment-filter-card,
.expense-filter-card,
.supplier-return-filter-card,
.stock-entry-filter-card,
.stock-ledger-filter-card,
.stock-dashboard-filter-card,
.statement-filter {
    padding: 18px;
}

.supplier-purchase-filter-form,
.supplier-payment-filter-form,
.expense-filter-form,
.supplier-return-filter-form,
.stock-entry-filter-form,
.stock-ledger-filter-form,
.stock-dashboard-filter-form {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(160px, 0.8fr)) auto;
    gap: 14px;
    align-items: end;
}

.customer-sales-page .supplier-purchase-filter-form {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) repeat(2, minmax(150px, 0.8fr)) auto;
}

.customer-sales-page .supplier-purchase-filter-actions {
    flex-wrap: nowrap;
}

.stock-ledger-page .stock-ledger-filter-form {
    grid-template-columns: minmax(170px, 1fr) minmax(150px, 0.85fr) repeat(2, minmax(140px, 0.75fr)) auto;
}

.stock-ledger-page .stock-ledger-filter-actions {
    flex-wrap: nowrap;
}

.expense-filter-form {
    grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(150px, 0.8fr)) auto;
}

.expenses-page .expense-filter-form {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.expenses-page .expense-filter-actions {
    min-width: 0;
}

.expenses-page .expense-filter-actions .admin-button {
    min-width: max-content;
}

.supplier-purchase-filter-form label,
.supplier-payment-filter-form label,
.expense-filter-form label,
.supplier-return-filter-form label,
.stock-entry-filter-form label,
.stock-ledger-filter-form label,
.stock-dashboard-filter-form label {
    display: grid;
    gap: 8px;
    color: #07142b;
    font-weight: 800;
}

.supplier-purchase-filter-form label span,
.supplier-payment-filter-form label span,
.expense-filter-form label span,
.supplier-return-filter-form label span,
.stock-entry-filter-form label span,
.stock-ledger-filter-form label span,
.stock-dashboard-filter-form label span {
    font-size: 0.9rem;
}

.supplier-purchase-filter-form input,
.supplier-payment-filter-form input,
.expense-filter-form input,
.expense-filter-form select,
.supplier-return-filter-form input,
.stock-entry-filter-form input,
.stock-ledger-filter-form input,
.stock-ledger-filter-form select,
.stock-dashboard-filter-form input,
.stock-dashboard-filter-form select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 13px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.supplier-purchase-filter-form input:focus,
.supplier-payment-filter-form input:focus,
.expense-filter-form input:focus,
.expense-filter-form select:focus,
.supplier-return-filter-form input:focus,
.stock-entry-filter-form input:focus,
.stock-ledger-filter-form input:focus,
.stock-ledger-filter-form select:focus,
.stock-dashboard-filter-form input:focus,
.stock-dashboard-filter-form select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

.supplier-purchase-filter-actions,
.supplier-payment-filter-actions,
.expense-filter-actions,
.supplier-return-filter-actions,
.stock-entry-filter-actions,
.stock-ledger-filter-actions,
.stock-dashboard-filter-actions,
.report-filter-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

[data-load-more-item][hidden] {
    display: none;
}

.supplier-purchase-load-more-wrap,
.supplier-payment-load-more-wrap,
.customer-payment-load-more-wrap,
.expense-load-more-wrap,
.supplier-return-load-more-wrap,
.customer-return-load-more-wrap,
.customers-load-more-wrap,
.customer-sale-load-more-wrap,
.items-load-more-wrap,
.stock-entry-load-more-wrap,
.stock-ledger-load-more-wrap,
.stock-dashboard-load-more-wrap,
.report-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.reports-page .dashboard-main,
.reports-page .module-card {
    min-width: 0;
}

.reports-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 0;
}

.reports-dashboard-page .reports-summary-grid .stat-card {
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    padding: 18px;
}

.reports-dashboard-page .reports-summary-grid .stat-icon {
    display: none;
}

.reports-dashboard-page .reports-summary-grid .stat-card > div {
    display: grid;
    gap: 7px;
    width: 100%;
    min-width: 0;
    text-align: center;
}

.reports-dashboard-page .reports-summary-grid .stat-card p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-dashboard-page .reports-summary-grid .stat-card strong {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    color: #07142b;
    font-size: clamp(1rem, 1.15vw, 1.34rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    overflow-wrap: normal;
    text-overflow: clip;
    white-space: nowrap;
}

.reports-section-header {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.reports-table tfoot th {
    background: rgba(37, 99, 235, 0.08);
    color: var(--text-primary);
    font-weight: 800;
}

.reports-table-wrap {
    width: 100%;
}

.stock-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.stock-status-badge.is-in-stock {
    color: #166534;
    background: rgba(22, 163, 74, 0.14);
}

.stock-status-badge.is-out-of-stock {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.14);
}

.stock-ledger-card-header {
    align-items: center;
}

.stock-ledger-filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.stock-ledger-filter-summary span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    border-radius: 999px;
    padding: 0 11px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    font-size: 0.8rem;
    font-weight: 900;
}

.stock-ledger-type-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.stock-ledger-type-badge.is-stock-in {
    color: #166534;
    background: rgba(22, 163, 74, 0.12);
}

.stock-ledger-type-badge.is-sale-out {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.1);
}

.stock-ledger-type-badge.is-sale-return {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.12);
}

.stock-ledger-type-badge.is-adjustment {
    color: #9a3412;
    background: rgba(234, 88, 12, 0.12);
}

.stock-ledger-type-badge.is-neutral {
    color: var(--text-muted);
    background: var(--surface-soft);
}

.stock-ledger-notes-cell {
    white-space: pre-line;
}

.stock-warning {
    border: 1px solid rgba(220, 38, 38, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    color: #991b1b;
    background: rgba(254, 242, 242, 0.92);
    font-size: 0.9rem;
    font-weight: 900;
}

.statement-print-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.statement-print-header h2 {
    margin: 0;
    color: #07142b;
    font-size: 1.45rem;
}

.statement-print-header p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-weight: 800;
}

.statement-print-meta {
    display: grid;
    grid-column: 1 / -1;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.statement-print-meta strong {
    color: var(--text);
}

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

.statement-summary-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: rgba(248, 250, 252, 0.88);
}

.statement-summary-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.statement-summary-card strong {
    color: #07142b;
    font-size: 1.2rem;
}

.statement-summary-card strong.is-debit,
.statement-table td.is-debit {
    color: #b91c1c;
}

.statement-summary-card strong.is-credit,
.statement-table td.is-credit {
    color: #047857;
}

.statement-summary-card strong.is-neutral,
.statement-table td.is-neutral {
    color: var(--text);
}

.customer-statement-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.statement-type-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    font-size: 0.78rem;
    font-weight: 900;
}

.supplier-statement-page .statement-type-badge.is-purchase {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.12);
}

.supplier-statement-page .statement-type-badge.is-payment {
    color: #047857;
    background: rgba(4, 120, 87, 0.12);
}

.supplier-statement-page .statement-type-badge.is-return {
    color: #c2410c;
    background: rgba(194, 65, 12, 0.12);
}

.customer-statement-page .statement-type-badge.is-sale {
    color: #c2410c;
    background: rgba(194, 65, 12, 0.12);
}

.customer-statement-page .statement-type-badge.is-payment {
    color: #047857;
    background: rgba(4, 120, 87, 0.12);
}

.customer-statement-page .statement-type-badge.is-return {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.12);
}

.supplier-statement-page .statement-type-badge.is-opening,
.supplier-statement-page .statement-type-badge.is-neutral,
.customer-statement-page .statement-type-badge.is-opening,
.customer-statement-page .statement-type-badge.is-neutral {
    color: #475569;
    background: rgba(71, 85, 105, 0.12);
}

.customer-statement-page .customer-statement-debit,
.customer-statement-page .customer-statement-balance.is-debit {
    color: #dc2626;
    font-weight: 900;
}

.customer-statement-page .customer-statement-credit,
.customer-statement-page .customer-statement-balance.is-credit {
    color: #16a34a;
    font-weight: 900;
}

.customer-statement-page .customer-statement-balance.is-neutral {
    color: var(--text);
    font-weight: 900;
}

.statement-empty-note {
    margin-top: 18px;
}

.statement-card-print-button {
    justify-self: end;
}

.statement-description-cell {
    white-space: pre-line;
}

.print-only {
    display: none;
}

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

.empty-inline-state {
    display: grid;
    min-height: 220px;
    place-items: center;
    text-align: center;
}

.empty-inline-state h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.4rem;
}

.empty-inline-state p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.has-modal-open {
    overflow: hidden;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    place-items: center;
    padding: 24px;
}

.app-modal.is-open {
    display: grid;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 11, 25, 0.58);
    backdrop-filter: blur(4px);
}

.app-modal-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.settings-page {
    display: grid;
    gap: 18px;
}

.settings-tabs {
    display: inline-flex;
    width: fit-content;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 5px;
    background: color-mix(in srgb, var(--card-bg, #ffffff) 88%, transparent);
    box-shadow: var(--shadow-sm);
}

.settings-tab {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    font-weight: 900;
}

.settings-tab.is-active {
    color: #ffffff;
    background: var(--button-primary);
}

.settings-panel {
    display: none;
}

.settings-panel.is-active {
    display: block;
}

.settings-card {
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 22px;
    padding: 24px;
    background: color-mix(in srgb, var(--card-bg, #ffffff) 90%, transparent);
    box-shadow: var(--shadow-sm);
}

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

.settings-card-header h2 {
    margin: 0;
    color: #07142b;
    font-size: 1.35rem;
}

.settings-card-header p {
    margin: 6px 0 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 22px;
}

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

.settings-field {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 850;
}

.settings-field input,
.settings-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 13px;
    color: var(--text);
    background: color-mix(in srgb, var(--card-bg, #ffffff) 92%, white);
}

.color-input {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
}

.color-input input[type="color"] {
    padding: 4px;
}

.toggle-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 13px;
    color: var(--text);
    background: color-mix(in srgb, var(--card-bg, #ffffff) 92%, white);
    font-weight: 900;
}

.toggle-field input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.appearance-preview {
    display: grid;
    align-content: center;
    gap: 14px;
    border-radius: 20px;
    padding: 22px;
    background: var(--sidebar-bg);
}

.preview-sidebar-item {
    border-radius: 14px;
    padding: 13px 14px;
    color: #ffffff;
    background: var(--sidebar-active);
    font-weight: 900;
}

.preview-header {
    border-radius: 14px;
    padding: 13px 14px;
    color: #ffffff;
    background: var(--header-bg);
    font-weight: 900;
}

.preview-card {
    display: grid;
    gap: 12px;
    border-radius: 18px;
    padding: 18px;
    color: var(--text);
    background: var(--card-bg, #ffffff);
}

.preview-card span {
    color: var(--text-muted);
    font-weight: 800;
}

.preview-card button,
.restore-card button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: var(--button-primary);
    font-weight: 900;
}

.preview-card button:hover {
    background: var(--button-primary-hover);
}

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

.desktop-download-card {
    max-width: 760px;
}

.desktop-download-card .settings-card-header {
    margin-bottom: 18px;
}

.desktop-download-content {
    display: grid;
    gap: 18px;
}

.desktop-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-feature-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: var(--text);
    font-weight: 850;
    line-height: 1.4;
}

.desktop-feature-list span {
    display: inline-grid;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--button-primary);
    font-size: 0.78rem;
    font-weight: 900;
}

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

.desktop-download-details div {
    display: grid;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--surface-soft);
}

.desktop-download-details dt {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.desktop-download-details dd {
    margin: 0;
    color: var(--text);
    font-weight: 900;
}

.desktop-download-button {
    width: fit-content;
}

.mobile-web-app-card {
    margin-top: 18px;
}

.mobile-web-app-details {
    grid-template-columns: minmax(0, 1fr);
    max-width: 220px;
}

.mobile-install-content {
    display: grid;
    gap: 16px;
    color: var(--text);
}

.mobile-install-safari-note,
.mobile-install-note {
    margin: 0;
    border-radius: 14px;
    padding: 12px 14px;
    color: var(--text);
    background: var(--surface-soft);
    line-height: 1.55;
}

.mobile-install-safari-note {
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    font-weight: 850;
}

.mobile-install-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 22px;
    line-height: 1.55;
}

.mobile-install-steps li {
    padding-left: 4px;
}

.settings-field.wide {
    grid-column: span 2;
}

.restore-card {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    background: var(--surface-soft);
}

.restore-card strong {
    color: var(--text);
}

.restore-card p {
    margin: 0;
    color: var(--text-muted);
}

.restore-card button {
    width: fit-content;
    opacity: 0.55;
    cursor: not-allowed;
    padding: 0 16px;
}

.app-modal.is-small .app-modal-card {
    width: min(100%, 460px);
}

.modal-header h2 {
    margin: 0;
    color: #07142b;
    font-size: 1.35rem;
    line-height: 1.15;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    background: #ffffff;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.modal-close:hover {
    color: #07142b;
    background: var(--surface-soft);
}

.sidebar-overlay {
    display: none;
}

.dashboard-shell.is-sidebar-collapsed {
    grid-template-columns: 84px minmax(0, 1fr);
}

.dashboard-shell.is-sidebar-collapsed .sidebar-brand,
.dashboard-shell.is-sidebar-collapsed .sidebar-link,
.dashboard-shell.is-sidebar-collapsed .sidebar-collapse {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.dashboard-shell.is-sidebar-collapsed .sidebar-label,
.dashboard-shell.is-sidebar-collapsed .sidebar-brand-text,
.dashboard-shell.is-sidebar-collapsed .sidebar-group-caret,
.dashboard-shell.is-sidebar-collapsed .sidebar-empty {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.dashboard-shell.is-sidebar-collapsed .sidebar-collapse svg {
    transform: rotate(180deg);
}

.dashboard-shell.is-sidebar-collapsed .sidebar-child-list {
    padding-left: 0;
}

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

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

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

    .form-grid,
    .management-grid,
    .settings-layout,
    .settings-form-grid {
        grid-template-columns: 1fr;
    }

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

    .statement-summary-grid,
    .statement-print-header {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .supplier-purchase-filter-form,
    .supplier-payment-filter-form,
    .expense-filter-form,
    .supplier-return-filter-form,
    .statement-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .supplier-purchase-filter-actions,
    .supplier-payment-filter-actions,
    .expense-filter-actions,
    .supplier-return-filter-actions,
    .statement-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .dashboard-body {
        height: 100vh;
        overflow: hidden;
    }

    .dashboard-shell,
    .dashboard-shell.is-sidebar-collapsed {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(84vw, 320px);
        transform: translateX(-104%);
        transition: transform 200ms ease;
    }

    .dashboard-shell.is-mobile-sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 25;
        display: none;
        background: rgba(4, 11, 25, 0.5);
        backdrop-filter: blur(2px);
    }

    .dashboard-shell.is-mobile-sidebar-open .sidebar-overlay {
        display: block;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-brand,
    .dashboard-shell.is-sidebar-collapsed .sidebar-link,
    .dashboard-shell.is-sidebar-collapsed .sidebar-collapse {
        justify-content: flex-start;
        padding-left: 14px;
        padding-right: 14px;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-label,
    .dashboard-shell.is-sidebar-collapsed .sidebar-brand-text,
    .dashboard-shell.is-sidebar-collapsed .sidebar-group-caret,
    .dashboard-shell.is-sidebar-collapsed .sidebar-empty {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        opacity: 1;
    }

    .dashboard-shell.is-sidebar-collapsed .sidebar-child-list {
        padding-left: 12px;
    }

    .mobile-menu-button {
        display: grid;
    }

    .dashboard-topbar {
        padding: 14px 18px;
    }

    .topbar-title h1 {
        font-size: 1.25rem;
    }

    .topbar-title p,
    .user-meta {
        display: none;
    }

    .dashboard-main {
        padding: 20px;
    }

    .welcome-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .executive-hero {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .owner-card {
        justify-self: center;
    }

    .developer-brand-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .developer-brand-card div:last-child {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 620px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

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

    .dashboard-main {
        padding: 16px;
    }

    .executive-hero {
        padding: 22px;
    }

    .executive-hero-copy h2 {
        font-size: 2rem;
    }

    .owner-card img {
        width: min(70vw, 190px);
    }

    .quick-action-card {
        grid-template-columns: 48px minmax(0, 1fr) 22px;
        min-height: 118px;
        padding: 16px;
    }

    .quick-action-icon {
        width: 48px;
        height: 48px;
    }

    .welcome-card,
    .empty-state-card,
    .module-page-header,
    .module-card {
        padding: 22px;
    }

    .form-grid.two-col,
    .form-grid.one-col,
    .permission-grid,
    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-card-header,
    .users-page-row {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-tabs {
        width: 100%;
    }

    .settings-tab {
        flex: 1;
    }

    .settings-field.wide {
        grid-column: auto;
    }

    .desktop-feature-list,
    .desktop-download-details {
        grid-template-columns: 1fr;
    }

    .desktop-download-button {
        width: 100%;
        justify-self: stretch;
    }

    .users-page-row {
        align-items: stretch;
        flex-direction: column;
    }

    .suppliers-page .users-page-row .admin-button,
    .customers-page .users-page-row .admin-button,
    .items-page .users-page-row .admin-button,
    .stock-entries-page .users-page-row .admin-button,
    .stock-ledger-page .users-page-row .admin-button,
    .stock-dashboard-page .users-page-row .admin-button {
        width: 100%;
        justify-self: stretch;
    }

    .suppliers-page .table-wrap,
    .customers-page .table-wrap,
    .items-page .table-wrap,
    .stock-entries-page .table-wrap,
    .stock-ledger-page .table-wrap,
    .stock-dashboard-page .table-wrap {
        overflow-x: visible;
    }

    .suppliers-page .admin-table,
    .suppliers-page .admin-table thead,
    .suppliers-page .admin-table tbody,
    .suppliers-page .admin-table tr,
    .suppliers-page .admin-table th,
    .suppliers-page .admin-table td,
    .customers-page .admin-table,
    .customers-page .admin-table thead,
    .customers-page .admin-table tbody,
    .customers-page .admin-table tr,
    .customers-page .admin-table th,
    .customers-page .admin-table td,
    .items-page .admin-table,
    .items-page .admin-table thead,
    .items-page .admin-table tbody,
    .items-page .admin-table tr,
    .items-page .admin-table th,
    .items-page .admin-table td,
    .stock-entries-page .admin-table,
    .stock-entries-page .admin-table thead,
    .stock-entries-page .admin-table tbody,
    .stock-entries-page .admin-table tr,
    .stock-entries-page .admin-table th,
    .stock-entries-page .admin-table td,
    .stock-ledger-page .admin-table,
    .stock-ledger-page .admin-table thead,
    .stock-ledger-page .admin-table tbody,
    .stock-ledger-page .admin-table tr,
    .stock-ledger-page .admin-table th,
    .stock-ledger-page .admin-table td,
    .stock-dashboard-page .admin-table,
    .stock-dashboard-page .admin-table thead,
    .stock-dashboard-page .admin-table tbody,
    .stock-dashboard-page .admin-table tr,
    .stock-dashboard-page .admin-table th,
    .stock-dashboard-page .admin-table td {
        display: block;
        width: 100%;
    }

    .suppliers-page .admin-table thead,
    .customers-page .admin-table thead,
    .items-page .admin-table thead,
    .stock-entries-page .admin-table thead,
    .stock-ledger-page .admin-table thead,
    .stock-dashboard-page .admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .suppliers-page .admin-table tbody,
    .customers-page .admin-table tbody,
    .items-page .admin-table tbody,
    .stock-entries-page .admin-table tbody,
    .stock-ledger-page .admin-table tbody,
    .stock-dashboard-page .admin-table tbody {
        display: grid;
        gap: 12px;
    }

    .suppliers-page .admin-table tr,
    .customers-page .admin-table tr,
    .items-page .admin-table tr,
    .stock-entries-page .admin-table tr,
    .stock-ledger-page .admin-table tr,
    .stock-dashboard-page .admin-table tr {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 12px;
        background: color-mix(in srgb, var(--card-bg, #ffffff) 94%, transparent);
    }

    .suppliers-page .admin-table td,
    .customers-page .admin-table td,
    .items-page .admin-table td,
    .stock-entries-page .admin-table td,
    .stock-ledger-page .admin-table td,
    .stock-dashboard-page .admin-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        padding: 10px 0;
        overflow-wrap: anywhere;
    }

    .suppliers-page .admin-table td::before,
    .customers-page .admin-table td::before,
    .items-page .admin-table td::before,
    .stock-entries-page .admin-table td::before,
    .stock-ledger-page .admin-table td::before,
    .stock-dashboard-page .admin-table td::before {
        content: attr(data-label);
        flex: 0 0 88px;
        color: var(--text-muted);
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .suppliers-page .admin-table td:last-child,
    .customers-page .admin-table td:last-child,
    .items-page .admin-table td:last-child,
    .stock-entries-page .admin-table td:last-child,
    .stock-ledger-page .admin-table td:last-child,
    .stock-dashboard-page .admin-table td:last-child {
        border-bottom: 0;
    }

    .suppliers-page .admin-table td[data-label="Actions"],
    .customers-page .admin-table td[data-label="Actions"],
    .items-page .admin-table td[data-label="Actions"],
    .stock-entries-page .admin-table td[data-label="Actions"] {
        display: grid;
        gap: 10px;
    }

    .suppliers-page .admin-table td[data-label="Actions"]::before,
    .customers-page .admin-table td[data-label="Actions"]::before,
    .items-page .admin-table td[data-label="Actions"]::before,
    .stock-entries-page .admin-table td[data-label="Actions"]::before {
        flex-basis: auto;
    }

    .suppliers-page .table-actions,
    .customers-page .table-actions,
    .items-page .table-actions,
    .stock-entries-page .table-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .suppliers-page .table-actions form,
    .customers-page .table-actions form,
    .items-page .table-actions form,
    .stock-entries-page .table-actions form {
        display: contents;
    }

    .suppliers-page .table-actions a,
    .suppliers-page .table-actions button,
    .customers-page .table-actions a,
    .customers-page .table-actions button,
    .items-page .table-actions a,
    .items-page .table-actions button,
    .stock-entries-page .table-actions a,
    .stock-entries-page .table-actions button {
        justify-content: center;
        width: 100%;
    }

    .supplier-purchases-page .users-page-row .admin-button {
        width: 100%;
        justify-self: stretch;
    }

    .customer-sales-page .users-page-row .admin-button {
        width: 100%;
        justify-self: stretch;
    }

    .supplier-payments-page .users-page-row .admin-button {
        width: 100%;
        justify-self: stretch;
    }

    .customer-payments-page .users-page-row .admin-button,
    .expenses-page .users-page-row .admin-button {
        width: 100%;
        justify-self: stretch;
    }

    .supplier-returns-page .users-page-row .admin-button,
    .customer-returns-page .users-page-row .admin-button,
    .stock-entries-page .users-page-row .admin-button,
    .stock-ledger-page .users-page-row .admin-button {
        width: 100%;
        justify-self: stretch;
    }

    .supplier-purchase-filter-card,
    .supplier-payment-filter-card,
    .expense-filter-card,
    .supplier-return-filter-card,
    .stock-entry-filter-card,
    .stock-ledger-filter-card,
    .stock-dashboard-filter-card,
    .statement-filter {
        padding: 18px;
    }

    .supplier-purchase-filter-form,
    .supplier-payment-filter-form,
    .expense-filter-form,
    .supplier-return-filter-form,
    .stock-entry-filter-form,
    .stock-ledger-filter-form,
    .stock-dashboard-filter-form,
    .statement-filter-form {
        grid-template-columns: 1fr;
    }

    .supplier-purchase-filter-actions,
    .supplier-payment-filter-actions,
    .expense-filter-actions,
    .supplier-return-filter-actions,
    .stock-entry-filter-actions,
    .stock-ledger-filter-actions,
    .stock-dashboard-filter-actions,
    .statement-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .supplier-purchase-filter-actions .admin-button,
    .supplier-payment-filter-actions .admin-button,
    .expense-filter-actions .admin-button,
    .supplier-return-filter-actions .admin-button,
    .statement-filter-actions .admin-button,
    .supplier-purchase-load-more-wrap .admin-button,
    .customer-sale-load-more-wrap .admin-button,
    .supplier-payment-load-more-wrap .admin-button,
    .customer-payment-load-more-wrap .admin-button,
    .expense-load-more-wrap .admin-button,
    .supplier-return-load-more-wrap .admin-button,
    .customer-return-load-more-wrap .admin-button,
    .customers-load-more-wrap .admin-button,
    .items-load-more-wrap .admin-button,
    .stock-entry-load-more-wrap .admin-button,
    .stock-ledger-load-more-wrap .admin-button,
    .stock-dashboard-load-more-wrap .admin-button {
        width: 100%;
    }

    .supplier-purchases-page .table-wrap,
    .customer-sales-page .table-wrap,
    .supplier-payments-page .table-wrap,
    .customer-payments-page .table-wrap,
    .expenses-page .table-wrap,
    .supplier-returns-page .table-wrap,
    .customer-returns-page .table-wrap,
    .stock-entries-page .table-wrap,
    .stock-ledger-page .table-wrap,
    .stock-dashboard-page .table-wrap {
        overflow-x: visible;
    }

    .supplier-purchases-page .admin-table,
    .supplier-purchases-page .admin-table thead,
    .supplier-purchases-page .admin-table tbody,
    .supplier-purchases-page .admin-table tr,
    .supplier-purchases-page .admin-table th,
    .supplier-purchases-page .admin-table td {
        display: block;
        width: 100%;
    }

    .customer-sales-page .admin-table,
    .customer-sales-page .admin-table thead,
    .customer-sales-page .admin-table tbody,
    .customer-sales-page .admin-table tr,
    .customer-sales-page .admin-table th,
    .customer-sales-page .admin-table td {
        display: block;
        width: 100%;
    }

    .supplier-payments-page .admin-table,
    .supplier-payments-page .admin-table thead,
    .supplier-payments-page .admin-table tbody,
    .supplier-payments-page .admin-table tr,
    .supplier-payments-page .admin-table th,
    .supplier-payments-page .admin-table td {
        display: block;
        width: 100%;
    }

    .customer-payments-page .admin-table,
    .customer-payments-page .admin-table thead,
    .customer-payments-page .admin-table tbody,
    .customer-payments-page .admin-table tr,
    .customer-payments-page .admin-table th,
    .customer-payments-page .admin-table td {
        display: block;
        width: 100%;
    }

    .expenses-page .admin-table,
    .expenses-page .admin-table thead,
    .expenses-page .admin-table tbody,
    .expenses-page .admin-table tr,
    .expenses-page .admin-table th,
    .expenses-page .admin-table td {
        display: block;
        width: 100%;
    }

    .supplier-returns-page .admin-table,
    .supplier-returns-page .admin-table thead,
    .supplier-returns-page .admin-table tbody,
    .supplier-returns-page .admin-table tr,
    .supplier-returns-page .admin-table th,
    .supplier-returns-page .admin-table td,
    .customer-returns-page .admin-table,
    .customer-returns-page .admin-table thead,
    .customer-returns-page .admin-table tbody,
    .customer-returns-page .admin-table tr,
    .customer-returns-page .admin-table th,
    .customer-returns-page .admin-table td,
    .stock-entries-page .admin-table,
    .stock-entries-page .admin-table thead,
    .stock-entries-page .admin-table tbody,
    .stock-entries-page .admin-table tr,
    .stock-entries-page .admin-table th,
    .stock-entries-page .admin-table td,
    .stock-ledger-page .admin-table,
    .stock-ledger-page .admin-table thead,
    .stock-ledger-page .admin-table tbody,
    .stock-ledger-page .admin-table tr,
    .stock-ledger-page .admin-table th,
    .stock-ledger-page .admin-table td,
    .stock-dashboard-page .admin-table,
    .stock-dashboard-page .admin-table thead,
    .stock-dashboard-page .admin-table tbody,
    .stock-dashboard-page .admin-table tr,
    .stock-dashboard-page .admin-table th,
    .stock-dashboard-page .admin-table td {
        display: block;
        width: 100%;
    }

    .supplier-purchases-page .admin-table thead,
    .customer-sales-page .admin-table thead,
    .supplier-payments-page .admin-table thead,
    .customer-payments-page .admin-table thead,
    .expenses-page .admin-table thead,
    .supplier-returns-page .admin-table thead,
    .customer-returns-page .admin-table thead,
    .stock-entries-page .admin-table thead,
    .stock-ledger-page .admin-table thead,
    .stock-dashboard-page .admin-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .supplier-purchases-page .admin-table tbody,
    .customer-sales-page .admin-table tbody,
    .supplier-payments-page .admin-table tbody,
    .customer-payments-page .admin-table tbody,
    .expenses-page .admin-table tbody,
    .supplier-returns-page .admin-table tbody,
    .customer-returns-page .admin-table tbody,
    .stock-entries-page .admin-table tbody,
    .stock-ledger-page .admin-table tbody,
    .stock-dashboard-page .admin-table tbody {
        display: grid;
        gap: 12px;
    }

    .supplier-purchases-page .admin-table tr,
    .customer-sales-page .admin-table tr,
    .supplier-payments-page .admin-table tr,
    .customer-payments-page .admin-table tr,
    .expenses-page .admin-table tr,
    .supplier-returns-page .admin-table tr,
    .customer-returns-page .admin-table tr,
    .stock-entries-page .admin-table tr,
    .stock-ledger-page .admin-table tr,
    .stock-dashboard-page .admin-table tr {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 12px;
        background: color-mix(in srgb, var(--card-bg, #ffffff) 94%, transparent);
    }

    .supplier-purchases-page .admin-table td,
    .customer-sales-page .admin-table td,
    .supplier-payments-page .admin-table td,
    .customer-payments-page .admin-table td,
    .expenses-page .admin-table td,
    .supplier-returns-page .admin-table td,
    .customer-returns-page .admin-table td,
    .stock-entries-page .admin-table td,
    .stock-ledger-page .admin-table td,
    .stock-dashboard-page .admin-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        padding: 10px 0;
        overflow-wrap: anywhere;
    }

    .supplier-purchases-page .admin-table td::before,
    .customer-sales-page .admin-table td::before,
    .supplier-payments-page .admin-table td::before,
    .customer-payments-page .admin-table td::before,
    .expenses-page .admin-table td::before,
    .supplier-returns-page .admin-table td::before,
    .customer-returns-page .admin-table td::before,
    .stock-entries-page .admin-table td::before,
    .stock-ledger-page .admin-table td::before,
    .stock-dashboard-page .admin-table td::before {
        content: attr(data-label);
        flex: 0 0 102px;
        color: var(--text-muted);
        font-size: 0.78rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .supplier-purchases-page .admin-table td:last-child,
    .customer-sales-page .admin-table td:last-child,
    .supplier-payments-page .admin-table td:last-child,
    .customer-payments-page .admin-table td:last-child,
    .expenses-page .admin-table td:last-child,
    .supplier-returns-page .admin-table td:last-child,
    .customer-returns-page .admin-table td:last-child,
    .stock-entries-page .admin-table td:last-child,
    .stock-ledger-page .admin-table td:last-child,
    .stock-dashboard-page .admin-table td:last-child {
        border-bottom: 0;
    }

    .supplier-purchases-page .admin-table td[data-label="Actions"],
    .customer-sales-page .admin-table td[data-label="Actions"],
    .supplier-payments-page .admin-table td[data-label="Actions"],
    .customer-payments-page .admin-table td[data-label="Actions"],
    .expenses-page .admin-table td[data-label="Actions"],
    .supplier-returns-page .admin-table td[data-label="Actions"],
    .customer-returns-page .admin-table td[data-label="Actions"],
    .stock-entries-page .admin-table td[data-label="Actions"] {
        display: grid;
        gap: 10px;
    }

    .supplier-purchases-page .admin-table td[data-label="Actions"]::before,
    .customer-sales-page .admin-table td[data-label="Actions"]::before,
    .supplier-payments-page .admin-table td[data-label="Actions"]::before,
    .customer-payments-page .admin-table td[data-label="Actions"]::before,
    .expenses-page .admin-table td[data-label="Actions"]::before,
    .supplier-returns-page .admin-table td[data-label="Actions"]::before,
    .customer-returns-page .admin-table td[data-label="Actions"]::before,
    .stock-entries-page .admin-table td[data-label="Actions"]::before {
        flex-basis: auto;
    }

    .supplier-purchases-page .table-actions,
    .customer-sales-page .table-actions,
    .supplier-payments-page .table-actions,
    .customer-payments-page .table-actions,
    .expenses-page .table-actions,
    .supplier-returns-page .table-actions,
    .customer-returns-page .table-actions,
    .stock-entries-page .table-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .supplier-purchases-page .table-actions form,
    .customer-sales-page .table-actions form,
    .supplier-payments-page .table-actions form,
    .customer-payments-page .table-actions form,
    .expenses-page .table-actions form,
    .supplier-returns-page .table-actions form,
    .customer-returns-page .table-actions form,
    .stock-entries-page .table-actions form {
        display: contents;
    }

    .supplier-purchases-page .table-actions a,
    .supplier-purchases-page .table-actions button,
    .customer-sales-page .table-actions a,
    .customer-sales-page .table-actions button,
    .supplier-payments-page .table-actions a,
    .supplier-payments-page .table-actions button,
    .customer-payments-page .table-actions a,
    .customer-payments-page .table-actions button,
    .expenses-page .table-actions a,
    .expenses-page .table-actions button,
    .supplier-returns-page .table-actions a,
    .supplier-returns-page .table-actions button,
    .customer-returns-page .table-actions a,
    .customer-returns-page .table-actions button,
    .stock-entries-page .table-actions a,
    .stock-entries-page .table-actions button {
        justify-content: center;
        width: 100%;
    }

    .app-modal {
        padding: 14px;
    }

    .app-modal-card {
        max-height: calc(100vh - 28px);
        padding: 22px;
    }

    .statement-summary-grid,
    .statement-print-header {
        grid-template-columns: 1fr;
    }

    .supplier-dashboard-page .supplier-dashboard-stats,
    .customer-dashboard-page .customer-dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .supplier-dashboard-page .stat-card,
    .customer-dashboard-page .stat-card {
        flex-direction: column;
        gap: 10px;
        min-height: 136px;
        padding: 14px;
    }

    .supplier-dashboard-page .stat-icon,
    .customer-dashboard-page .stat-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 13px;
    }

    .supplier-dashboard-page .stat-card p,
    .customer-dashboard-page .stat-card p {
        font-size: 0.78rem;
        line-height: 1.25;
    }

    .supplier-dashboard-page .stat-card strong,
    .customer-dashboard-page .stat-card strong {
        font-size: clamp(1rem, 6vw, 1.32rem);
    }

    .supplier-dashboard-page .supplier-dashboard-stats,
    .customer-dashboard-page .customer-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .supplier-dashboard-page .supplier-dashboard-stats .stat-card,
    .customer-dashboard-page .customer-dashboard-stats .stat-card {
        min-height: 104px;
        padding: 14px;
    }

    .supplier-dashboard-page .supplier-dashboard-stats .stat-icon,
    .customer-dashboard-page .customer-dashboard-stats .stat-icon {
        display: none;
    }

    .supplier-dashboard-page .supplier-dashboard-stats .stat-card strong,
    .customer-dashboard-page .customer-dashboard-stats .stat-card strong {
        font-size: clamp(1.08rem, 7vw, 1.38rem);
        overflow-wrap: normal;
        white-space: nowrap;
    }

    .supplier-dashboard-page .supplier-action-grid,
    .customer-dashboard-page .customer-action-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .supplier-dashboard-page .supplier-action-grid .admin-button,
    .customer-dashboard-page .customer-action-grid .admin-button {
        width: 100%;
        min-width: 0;
        padding: 0 10px;
        text-align: center;
    }

    .supplier-dashboard-page .module-card-header,
    .customer-dashboard-page .module-card-header {
        margin-bottom: 14px;
    }

    .supplier-dashboard-page .admin-table th,
    .supplier-dashboard-page .admin-table td,
    .customer-dashboard-page .admin-table th,
    .customer-dashboard-page .admin-table td {
        padding: 12px 8px;
        font-size: 0.86rem;
    }

    .supplier-dashboard-page .admin-table th,
    .customer-dashboard-page .admin-table th {
        letter-spacing: 0.03em;
    }
}

@media (max-width: 900px) {
    .reports-page .table-wrap {
        overflow: visible;
    }

    .reports-page .admin-table,
    .reports-page .admin-table thead,
    .reports-page .admin-table tbody,
    .reports-page .admin-table tfoot,
    .reports-page .admin-table tr,
    .reports-page .admin-table th,
    .reports-page .admin-table td {
        display: block;
        width: 100%;
    }

    .reports-page .admin-table thead {
        display: none;
    }

    .reports-page .admin-table tbody,
    .reports-page .admin-table tfoot {
        display: grid;
        gap: 14px;
    }

    .reports-page .admin-table tr {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--card-bg);
        overflow: hidden;
    }

    .reports-page .admin-table td,
    .reports-page .admin-table tfoot th {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        text-align: right;
        border-bottom: 1px solid var(--border-color);
        white-space: normal;
        word-break: break-word;
    }

    .reports-page .admin-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-weight: 700;
        text-align: left;
    }

    .reports-page .admin-table td:last-child,
    .reports-page .admin-table tfoot th:last-child {
        border-bottom: 0;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 12mm;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body.dashboard-body {
        height: auto;
        overflow: visible;
        color: #111111;
        background: #ffffff;
        font-size: 11px;
    }

    .dashboard-sidebar,
    .dashboard-topbar,
    .sidebar-overlay,
    .statement-actions,
    .statement-filter,
    .stock-ledger-actions,
    .stock-ledger-filter-card,
    .sidebar-collapse {
        display: none !important;
    }

    .dashboard-shell,
    .dashboard-workspace,
    .dashboard-main {
        display: block;
        width: 100%;
        height: auto;
        overflow: visible;
        padding: 0;
        background: #ffffff;
    }

    .module-card:not(.statement-print-area):not(.stock-ledger-print-area),
    .statement-card-print-button,
    .stock-ledger-print-button,
    .screen-only {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    .statement-print-area,
    .stock-ledger-print-area {
        border: 0;
        padding: 0;
        color: #111111;
        background: #ffffff;
    }

    .statement-document-header,
    .stock-ledger-document-header {
        margin-bottom: 12px;
        text-align: center;
    }

    .statement-document-header img,
    .stock-ledger-document-header img {
        display: block;
        width: 58px;
        height: 58px;
        object-fit: contain;
        margin: 0 auto 6px;
    }

    .statement-document-header h1,
    .stock-ledger-document-header h1 {
        margin: 0;
        color: #111111;
        font-size: 20px;
        line-height: 1.2;
    }

    .statement-document-header p,
    .stock-ledger-document-header p {
        margin: 4px 0 0;
        color: #111111;
        font-size: 13px;
        font-weight: 700;
    }

    .statement-print-header,
    .stock-ledger-card-header {
        display: none;
    }

    .statement-print-info,
    .stock-ledger-print-info {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 4px;
        border: 0;
        margin: 0 0 12px;
    }

    .statement-print-info div,
    .stock-ledger-print-info div {
        display: flex;
        gap: 6px;
        min-height: 0;
        border: 0;
        padding: 0;
    }

    .statement-print-info span,
    .statement-print-summary span,
    .statement-print-totals span,
    .stock-ledger-print-info span {
        font-weight: 700;
    }

    .statement-print-info strong,
    .stock-ledger-print-info strong {
        font-weight: 600;
    }

    .statement-print-info span,
    .stock-ledger-print-info span {
        min-width: 92px;
    }

    .statement-summary-grid {
        display: none;
    }

    .statement-print-summary {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border: 1px solid #888888;
        margin-bottom: 10px;
    }

    .statement-print-summary div {
        display: grid;
        gap: 4px;
        border-right: 1px solid #888888;
        padding: 7px 8px;
        text-align: center;
    }

    .statement-print-summary div:last-child {
        border-right: 0;
    }

    .statement-print-summary strong {
        font-size: 12px;
    }

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

    .statement-summary-card {
        break-inside: avoid;
        border-color: #d1d5db;
        padding: 10px;
        background: #ffffff;
    }

    .statement-table-wrap,
    .stock-ledger-table-wrap,
    .reports-table-wrap {
        overflow: visible;
    }

    .statement-table,
    .stock-ledger-table,
    .reports-table {
        min-width: 0;
        width: 100%;
        border-collapse: collapse;
        color: #111111;
        font-size: 10.5px;
        table-layout: fixed;
    }

    .statement-table th:nth-child(2),
    .statement-table td:nth-child(2) {
        display: none;
    }

    .stock-ledger-table {
        font-size: 9.4px;
    }

    .stock-ledger-table th:nth-child(1),
    .stock-ledger-table td:nth-child(1) {
        width: 10%;
    }

    .stock-ledger-table th:nth-child(2),
    .stock-ledger-table td:nth-child(2) {
        width: 16%;
    }

    .stock-ledger-table th:nth-child(3),
    .stock-ledger-table td:nth-child(3) {
        width: 10%;
    }

    .stock-ledger-table th:nth-child(4),
    .stock-ledger-table td:nth-child(4),
    .stock-ledger-table th:nth-child(5),
    .stock-ledger-table td:nth-child(5) {
        width: 8%;
        text-align: right;
    }

    .stock-ledger-table th:nth-child(6),
    .stock-ledger-table td:nth-child(6),
    .stock-ledger-table th:nth-child(7),
    .stock-ledger-table td:nth-child(7),
    .stock-ledger-table th:nth-child(8),
    .stock-ledger-table td:nth-child(8) {
        width: 10%;
        text-align: right;
    }

    .stock-ledger-table th:nth-child(9),
    .stock-ledger-table td:nth-child(9) {
        width: 18%;
        text-align: left;
    }

    .statement-table th:nth-child(1),
    .statement-table td:nth-child(1) {
        width: 13%;
    }

    .statement-table th:nth-child(3),
    .statement-table td:nth-child(3) {
        width: 31%;
        text-align: left;
    }

    .statement-table th:nth-child(4),
    .statement-table td:nth-child(4),
    .statement-table th:nth-child(5),
    .statement-table td:nth-child(5) {
        width: 10%;
        text-align: right;
    }

    .statement-table th:nth-child(6),
    .statement-table td:nth-child(6),
    .statement-table th:nth-child(7),
    .statement-table td:nth-child(7),
    .statement-table th:nth-child(8),
    .statement-table td:nth-child(8) {
        width: 12%;
        text-align: right;
    }

    .admin-table th,
    .admin-table td {
        border: 1px solid #999999;
        padding: 6px;
        color: #111111;
        vertical-align: top;
    }

    .admin-table th {
        background: #eeeeee;
        font-size: 10px;
        letter-spacing: 0;
    }

    .statement-table tr,
    .stock-ledger-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .stock-ledger-table [data-load-more-item][hidden] {
        display: table-row;
    }

    .reports-table [data-load-more-item][hidden] {
        display: table-row;
    }

    .reports-table tfoot th {
        background: #eeeeee;
        color: #111111;
    }

    .statement-description-cell,
    .stock-ledger-notes-cell {
        white-space: pre-line;
    }

    .statement-type-badge,
    .stock-ledger-type-badge {
        border-radius: 0;
        padding: 0;
        color: #111111;
        background: transparent;
    }

    .statement-print-totals {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        border: 1px solid #888888;
        margin-top: 10px;
    }

    .statement-print-totals div {
        display: grid;
        gap: 4px;
        border-right: 1px solid #888888;
        padding: 7px 8px;
        text-align: center;
    }

    .statement-print-totals div:last-child {
        border-right: 0;
    }

    .statement-print-footer,
    .stock-ledger-print-footer {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
        margin-top: 34px;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .statement-print-footer div,
    .stock-ledger-print-footer div {
        border-top: 1px solid #111111;
        padding-top: 6px;
    }

    .statement-print-footer div:last-of-type {
        text-align: right;
    }

    .statement-print-footer span,
    .stock-ledger-print-footer span {
        display: inline;
        margin-bottom: 0;
        font-weight: 700;
    }

    .statement-print-footer strong,
    .stock-ledger-print-footer strong {
        font-weight: 700;
    }

    .statement-print-footer p,
    .stock-ledger-print-footer p {
        grid-column: 1 / -1;
        margin: 20px 0 0;
        text-align: center;
        font-size: 10px;
    }

    .statement-print-footer p::after,
    .stock-ledger-print-footer p::after {
        content: " | Page " counter(page);
    }
}
