:root {
    --navy:#111d32;
    --navy-soft:#1b2a43;
    --primary:#3267e3;
    --ink:#1e2b43;
    --muted:#7b8595;
    --border:#e9edf3;
    --page:#f5f7fb;
    --sidebar-width:252px;
    --bs-primary:#3267e3;
    --bs-body-font-family:"Segoe UI",Arial,sans-serif;
    --bs-body-color:var(--ink);
    --bs-border-color:var(--border)
}

@media print {
    .sidebar,.topbar,.app-footer,.d-print-none { display:none !important; }
    .app-shell { margin:0 !important; }
    .main-content { padding:0 !important; }
    .voucher-print { max-width:none !important; }
}

* {
    box-sizing:border-box
}

body {
    margin:0;
    font-size:14px;
    background:var(--page);
    -webkit-font-smoothing:antialiased
}

a {
    text-decoration:none
}

.icon {
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex-shrink:0
}

button,a,input {
    touch-action:manipulation
}

button:focus-visible,a:focus-visible {
    outline:3px solid #83b3ff;
    outline-offset:3px
}

.skip-link {
    position:fixed;
    top:-60px;
    left:20px;
    z-index:1100;
    background:#fff;
    padding:12px 20px
}

.skip-link:focus {
    top:8px
}

.btn {
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    font-size:13px;
    font-weight:600;
    border-radius:8px;
    padding:10px 18px
}

.btn-primary {
    --bs-btn-bg:var(--primary);
    --bs-btn-border-color:var(--primary);
    --bs-btn-hover-bg:#2455c5;
    --bs-btn-hover-border-color:#2455c5;
    --bs-btn-active-bg:#204ab0
}

.icon-button {
    border:0;
    background:transparent;
    color:#788397;
    width:40px;
    height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:8px
}

.icon-button:hover {
    background:#eef2f9;
    color:var(--primary)
}

.sidebar {
    --bs-offcanvas-width:var(--sidebar-width);
    width:var(--sidebar-width);
    background:var(--navy)!important;
    color:#a8b4c9;
    display:flex;
    flex-direction:column;
    z-index:1045
}

.sidebar-brand {
    height:90px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 23px;
    flex-shrink:0
}

.brand {
    color:#fff;
    display:flex;
    align-items:center;
    gap:11px;
    font-size:22px;
    line-height:1.15;
    font-weight:650;
    letter-spacing:-.5px
}

.brand:hover {
    color:#fff
}

.brand small {
    display:block;
    font-size:7px;
    font-weight:500;
    letter-spacing:1.5px;
    color:#9daec8;
    margin-top:7px
}

.brand img {
    flex-shrink:0
}

.sidebar-scroll {
    overflow-y:auto;
    flex:1;
    padding:0 15px 14px;
    scrollbar-width:thin;
    scrollbar-color:#3a4860 transparent
}

.workspace-label {
    margin:5px 5px 28px;
    padding:15px 10px;
    background:#1a2942;
    border:1px solid #293750;
    border-radius:9px;
    display:flex;
    align-items:center;
    gap:10px;
    color:#e2e8f2;
    font-size:11px;
    font-weight:600
}

.workspace-label small {
    display:block;
    font-size:9px;
    color:#8e9eb7;
    margin-top:4px;
    font-weight:400
}

.workspace-avatar {
    width:29px;
    height:31px;
    display:grid;
    place-items:center;
    background:#2b3e5e;
    border:1px solid #3e5272;
    border-radius:6px;
    color:#cedbfd;
    font-size:13px
}

.status-dot {
    height:6px;
    width:6px;
    border-radius:50%;
    background:#35b68a;
    display:inline-block;
    flex-shrink:0
}

.nav-heading {
    font-size:9px;
    letter-spacing:1.6px;
    color:#7e8fa9;
    padding:0 15px;
    margin-bottom:12px;
    font-weight:600
}

.nav-heading-secondary {
    margin-top:27px
}

.nav-item {
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 15px;
    border:0;
    width:100%;
    border-radius:7px;
    margin-bottom:4px;
    color:#aebbd0;
    background:transparent;
    font-size:12px;
    min-height:44px;
    text-align:left
}

.nav-item:hover {
    background:#1d2c46;
    color:#fff
}

.nav-item.active {
    background:#3267e3;
    color:#fff;
    box-shadow:0 4px 12px #08163320
}

.nav-item .icon {
    width:18px;
    height:18px
}

.nav-chevron {
    margin-left:auto;
    width:13px!important;
    transition:transform .15s
}

.nav-group:not(.collapsed) .nav-chevron {
    transform:rotate(180deg)
}

.subnav {
    margin:4px 0 12px 23px;
    border-left:1px solid #3a4860;
    padding-left:13px
}

.subnav a {
    display:block;
    padding:11px 10px;
    color:#aebbd0;
    font-size:11px;
    min-height:38px;
    border-radius:5px
}

.subnav a:hover,.subnav a.active {
    background:#203456;
    color:#fff
}

.sidebar-bottom {
    padding:25px 27px;
    border-top:1px solid #ffffff0b;
    font-size:10px;
    flex-shrink:0
}

.phase-pill {
    font-size:8px;
    font-weight:600;
    letter-spacing:1.2px;
    background:#233655;
    color:#a4c2ff;
    padding:5px 8px;
    border-radius:4px
}

.sidebar-bottom p {
    margin:13px 0 7px;
    color:#bdc8d9;
    font-size:10px
}

.sidebar-bottom>span:last-child {
    color:#7487a5;
    font-size:9px
}

.app-shell {
    margin-left:var(--sidebar-width);
    min-height:100vh;
    display:flex;
    flex-direction:column;
    transition:margin-left .2s
}

.topbar {
    height:78px;
    padding:0 32px;
    background:#fff;
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px
}

.breadcrumb-text {
    color:#8a94a3;
    font-size:11px;
    display:flex;
    align-items:center;
    gap:16px
}

.breadcrumb-text>span {
    color:#c9d0dc
}

.breadcrumb-text strong {
    font-weight:500;
    color:#3f4e65
}

.environment-badge {
    font-size:10px;
    color:#627289;
    display:flex;
    align-items:center;
    gap:7px
}

.topbar-divider {
    height:28px;
    width:1px;
    background:var(--border);
    margin:0 4px
}

.profile-button {
    border:0;
    display:flex;
    align-items:center;
    gap:10px;
    background:transparent;
    text-align:left;
    padding:0;
    min-height:44px
}

.avatar {
    width:36px;
    height:36px;
    border-radius:50%;
    background:#edf2fe;
    color:#3e68bb;
    display:grid;
    place-items:center;
    font-size:13px;
    font-weight:600;
    border:3px solid #f8faff
}

.profile-name {
    font-size:11px;
    color:#32425a;
    font-weight:600;
    max-width:150px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}

.profile-name small {
    display:block;
    color:#8a95a5;
    font-size:9px;
    margin-top:2px;
    font-weight:400
}

.profile-button>.icon {
    width:13px;
    margin-left:12px;
    color:#8a95a5
}

.account-menu {
    font-size:13px;
    padding:12px 0;
    min-width:235px;
    border:1px solid var(--border);
    box-shadow:0 10px 30px #25365815
}

.dropdown-item {
    min-height:42px;
    display:flex;
    gap:9px;
    align-items:center
}

.main-content {
    padding:32px 34px 18px;
    flex:1;
    min-width:0;
    width:100%;
    max-width:1760px;
    margin:0 auto
}

.page-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:25px
}

.eyebrow {
    color:#8792a4;
    font-size:9px;
    font-weight:650;
    letter-spacing:1.5px;
    margin-bottom:8px
}

h1 {
    font-size:28px;
    font-weight:650;
    letter-spacing:-.8px;
    margin-bottom:8px
}

.page-subtitle {
    color:#8290a3;
    font-size:12px;
    margin-bottom:0
}

.date-chip {
    display:flex;
    align-items:center;
    gap:9px;
    border:1px solid #e2e7ef;
    background:#fff;
    border-radius:7px;
    padding:10px 13px;
    font-size:11px;
    color:#586981;
    white-space:nowrap
}

.date-chip .icon {
    width:15px;
    height:15px
}

.demo-notice {
    border:1px solid #dae6fc;
    background:#eef4ff;
    display:flex;
    align-items:center;
    gap:13px;
    padding:15px 18px;
    border-radius:9px;
    margin-bottom:23px
}

.notice-icon {
    color:#4776d5;
    width:28px;
    display:flex;
    justify-content:center
}

.demo-notice strong {
    font-size:11px;
    font-weight:600;
    color:#3b588b;
    display:block;
    margin-bottom:3px
}

.demo-notice div>span {
    color:#758aaa;
    font-size:10px
}

.demo-badge {
    margin-left:auto;
    background:#fff;
    border:1px solid #dce5f6;
    color:#5877b0;
    border-radius:5px;
    padding:5px 9px;
    font-size:9px;
    white-space:nowrap;
    font-weight:600
}

.metrics-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:17px;
    margin-bottom:24px
}

.metric-card {
    background:#fff;
    border:1px solid var(--border);
    border-radius:10px;
    padding:20px 21px 17px;
    box-shadow:0 2px 3px #14284902;
    min-width:0
}

.metric-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:11px;
    font-weight:550;
    color:#707e92;
    gap:7px
}

.metric-icon {
    width:34px;
    height:34px;
    border-radius:9px;
    display:grid;
    place-items:center
}

.metric-icon .icon {
    width:18px;
    height:18px
}

.tone-blue {
    background:#edf3ff;
    color:#4c7ce4
}

.tone-green {
    background:#e8f8f1;
    color:#34a97f
}

.tone-violet {
    background:#f2edfc;
    color:#9873d8
}

.tone-amber {
    background:#fff6e6;
    color:#dca640
}

.tone-red {
    background:#fff0ef;
    color:#e7756e
}

.metric-value {
    font-size:28px;
    font-weight:650;
    letter-spacing:-.8px;
    line-height:1.4;
    margin:8px 0 12px;
    white-space:nowrap
}

.metric-value>span {
    font-size:12px;
    font-weight:500;
    color:#97a2b2;
    letter-spacing:0;
    margin-right:5px
}

.metric-value>.items-unit {
    margin-left:5px;
    font-size:13px
}

.metric-bottom {
    display:flex;
    align-items:center;
    gap:9px;
    color:#929ca9;
    font-size:10px;
    border-top:1px solid #f0f2f6;
    padding-top:11px
}

.attention-dot {
    width:5px;
    height:5px;
    background:#e78a79;
    border-radius:50%
}

.dashboard-columns {
    display:grid;
    grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);
    gap:21px;
    margin-bottom:23px
}

.card {
    border:1px solid var(--border);
    border-radius:10px;
    box-shadow:0 2px 3px #14284902;
    overflow:hidden
}

.card-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:21px 22px 19px;
    gap:12px
}

.card-heading h2 {
    font-size:13px;
    font-weight:650;
    margin-bottom:6px;
    display:flex;
    align-items:center;
    gap:8px
}

.card-heading p {
    font-size:10px;
    color:#919bab;
    margin-bottom:0
}

.count-badge {
    display:inline-grid;
    place-items:center;
    background:#f1f4f8;
    color:#8b97a8;
    border:1px solid #e9edf3;
    font-size:9px;
    width:20px;
    height:19px;
    border-radius:5px
}

.text-action {
    display:inline-flex;
    align-items:center;
    gap:7px;
    font-size:10px;
    color:#5680d5;
    white-space:nowrap;
    min-height:40px
}

.text-action .icon {
    width:13px;
    height:13px
}

.table-responsive {
    scrollbar-width:thin
}

.sales-table {
    font-size:10px;
    --bs-table-border-color:#f0f2f6;
    white-space:nowrap
}

.sales-table thead th {
    background:#fafbfd;
    color:#99a2b0;
    font-weight:550;
    letter-spacing:.6px;
    font-size:8px;
    padding:12px 10px;
    border-top:1px solid #f0f2f6
}

.sales-table td {
    padding:17px 10px
}

.sales-table th:first-child,.sales-table td:first-child {
    padding-left:22px
}

.sales-table th:last-child,.sales-table td:last-child {
    padding-right:22px
}

.customer-cell {
    display:flex;
    align-items:center;
    gap:10px
}

.customer-avatar {
    display:grid;
    place-items:center;
    width:30px;
    height:30px;
    border:1px solid #e6ebf6;
    background:#f0f4fb;
    color:#7187a7;
    border-radius:50%;
    font-size:9px
}

.customer-cell strong {
    display:block;
    font-size:10px;
    font-weight:600
}

.customer-cell small {
    display:block;
    font-size:8px;
    color:#a0a9b7;
    margin-top:3px
}

.sales-table .product-cell {
    color:#8893a4;
    font-size:9px
}

.sales-table .amount-cell {
    font-size:10px;
    color:#4c5c73;
    font-weight:600
}

.status-badge {
    font-size:8px;
    border-radius:4px;
    padding:5px 7px;
    display:inline-block
}

.status-success {
    background:#eaf7f0;
    color:#4da780
}

.status-primary {
    background:#edf3ff;
    color:#648bdb
}

.status-warning {
    background:#fff6e7;
    color:#c59a47
}

.card-bottom-note {
    padding:13px 22px;
    color:#8e9bad;
    display:flex;
    align-items:center;
    gap:6px;
    font-size:9px
}

.card-bottom-note .icon {
    width:12px;
    height:12px
}

.small-icon {
    width:29px;
    height:29px;
    border-radius:7px;
    display:inline-flex;
    align-items:center;
    justify-content:center
}

.small-icon .icon {
    width:16px;
    height:16px
}

.installment-list {
    padding:0 22px;
    flex:1
}

.installment-item {
    display:flex;
    align-items:center;
    gap:11px;
    padding:16px 0;
    border-bottom:1px solid #f0f2f6
}

.installment-item:first-child {
    padding-top:9px
}

.installment-item:last-child {
    border-bottom:0
}

.due-date {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    width:38px;
    height:43px;
    border:1px solid #e7ebf2;
    background:#fafbfd;
    border-radius:6px;
    color:#64748c;
    font-size:16px;
    font-weight:600;
    flex-shrink:0
}

.due-date small {
    font-size:7px;
    font-weight:400;
    letter-spacing:.5px
}

.due-overdue {
    background:#fff2ef;
    border-color:#f8e1db;
    color:#d78b7d
}

.installment-person {
    min-width:0
}

.installment-person strong {
    font-weight:600;
    font-size:10px;
    display:block
}

.installment-person>span {
    display:block;
    font-size:8px;
    color:#9aa4b3;
    margin-top:4px
}

.installment-person .overdue-label {
    color:#d68b7e
}

.installment-person .due-label {
    color:#cca351
}

.installment-amount {
    white-space:nowrap;
    font-size:10px;
    font-weight:600;
    color:#4c5c73;
    margin-left:auto
}

.card-link-bottom {
    border-top:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:10px;
    color:#6388d0;
    padding:15px
}

.card-link-bottom:hover {
    background:#f7faff
}

.card-link-bottom .icon {
    height:13px;
    width:13px
}

.stock-card .card-heading {
    padding-bottom:16px
}

.stock-card h2 {
    gap:9px
}

.sample-label {
    font-size:7px;
    letter-spacing:1px;
    font-weight:500;
    background:#f2f4f8;
    color:#9aa5b4;
    padding:4px 6px;
    border-radius:4px
}

.stock-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:6px 22px 24px;
    gap:20px
}

.stock-item {
    display:flex;
    gap:12px;
    border-right:1px solid var(--border);
    padding-right:16px;
    min-width:0
}

.stock-item:last-child {
    border:0;
    padding-right:0
}

.stock-product-icon {
    width:43px;
    height:57px;
    background:#f5f7fb;
    border:1px solid #edf0f6;
    border-radius:7px;
    display:grid;
    place-items:center;
    color:#9daec7;
    flex-shrink:0
}

.stock-product-icon .icon {
    width:27px;
    height:35px
}

.stock-description {
    min-width:0;
    flex:1
}

.stock-description>strong {
    font-size:10px;
    font-weight:600;
    display:block;
    line-height:1.5
}

.stock-description>span {
    font-size:8px;
    color:#a0a9b7;
    display:block;
    margin-top:4px
}

.stock-level {
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:9px;
    color:#a0a9b7;
    font-size:8px
}

.stock-remaining {
    color:#cf9c3d;
    background:#fff6e5;
    padding:3px 7px;
    border-radius:4px;
    font-weight:600;
    white-space:nowrap
}

.dashboard-footnote {
    color:#9da6b5;
    font-size:9px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin:23px 0 0;
    flex-wrap:wrap
}

.dashboard-footnote .icon {
    width:12px;
    height:12px
}

.dashboard-footnote>span {
    color:#abb3c0
}

.app-footer {
    display:flex;
    justify-content:space-between;
    gap:15px;
    margin:0 34px;
    padding:18px 0;
    border-top:1px solid #e8edf4;
    font-size:9px;
    color:#9fa9b8
}

.placeholder-card {
    min-height:470px;
    text-align:center;
    align-items:center;
    justify-content:center;
    padding:50px 25px
}

.placeholder-icon {
    background:#edf3ff;
    color:#6990e3;
    width:70px;
    height:70px;
    border-radius:20px;
    display:grid;
    place-items:center;
    margin-bottom:25px
}

.placeholder-icon .icon {
    width:32px;
    height:32px
}

.placeholder-card h2 {
    font-size:25px;
    margin-top:10px;
    letter-spacing:-.5px
}

.placeholder-card p {
    color:#8d98aa;
    max-width:430px;
    line-height:1.9;
    font-size:13px;
    margin:8px 0 25px
}

.login-layout {
    min-height:100vh;
    display:grid;
    grid-template-columns:1fr 1fr
}

.login-story {
    background:var(--navy);
    padding:45px 55px;
    display:flex;
    flex-direction:column;
    position:relative;
    overflow:hidden
}

.login-story-content {
    margin:auto 0;
    padding:65px 0 35px;
    max-width:440px
}

.story-eyebrow {
    font-size:9px;
    letter-spacing:2px;
    color:#8eaddf
}

.login-story h1 {
    font-size:48px;
    line-height:1.2;
    color:#fff;
    font-weight:550;
    margin:22px 0;
    letter-spacing:-1.7px
}

.login-story-content>p {
    max-width:340px;
    color:#97a9c3;
    font-size:13px;
    line-height:1.9
}

.story-footnote {
    color:#7990b2;
    font-size:10px
}

.login-copyright {
    font-size:10px;
    color:#7086a7
}

.story-art {
    height:225px;
    position:relative;
    margin:10px 0 20px;
    max-width:350px
}

.art-grid {
    position:absolute;
    inset:10px 0;
    background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);
    background-size:25px 25px;
    border-radius:50%;
    border:1px solid #ffffff08
}

.art-center {
    position:absolute;
    top:76px;
    left:130px;
    width:72px;
    height:72px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:#3267e3;
    box-shadow:0 0 60px #3267e333;
    transform:rotate(-8deg);
    color:#fff
}

.art-center .icon {
    width:33px;
    height:33px
}

.art-tile {
    position:absolute;
    border:1px solid #354965;
    border-radius:10px;
    background:#1b2b45;
    color:#a9bddb;
    padding:13px 16px;
    display:flex;
    align-items:center;
    gap:9px;
    font-size:10px;
    box-shadow:0 9px 20px #08101d22
}

.art-tile .icon {
    color:#82a7e5;
    width:19px
}

.art-tile-one {
    top:25px;
    left:8px;
    transform:rotate(-5deg)
}

.art-tile-two {
    right:0;
    top:61px;
    transform:rotate(6deg)
}

.art-tile-three {
    bottom:18px;
    left:42px;
    transform:rotate(3deg)
}

.login-form-section {
    display:flex;
    align-items:center;
    justify-content:center;
    padding:55px 40px;
    background:#fff
}

.login-form-wrap {
    width:100%;
    max-width:360px
}

.login-mark {
    height:49px;
    width:49px;
    border-radius:13px;
    background:#edf3ff;
    color:#5d85d8;
    display:grid;
    place-items:center
}

.login-mark .icon {
    width:23px;
    height:23px
}

.login-form-wrap h2 {
    font-size:27px;
    letter-spacing:-.9px;
    font-weight:650;
    margin-top:13px;
    margin-bottom:10px
}

.login-form-wrap>.text-secondary {
    font-size:12px
}

.form-label {
    font-size:11px;
    font-weight:600;
    margin-bottom:9px;
    color:#58677e
}

.form-control {
    min-height:47px;
    border-radius:7px;
    border-color:#dfe5ef;
    font-size:12px;
    padding:12px 14px
}

.form-control::placeholder {
    color:#a6aebb
}

.form-control:focus {
    border-color:#86a7f0;
    box-shadow:0 0 0 3px #3267e315
}

.password-field {
    position:relative
}

.password-field input {
    padding-right:46px
}

.password-toggle {
    position:absolute;
    right:4px;
    top:4px
}

.password-toggle .icon {
    width:17px
}

.sign-in-button {
    min-height:47px;
    font-size:12px;
    justify-content:space-between;
    padding:12px 17px;
    margin-top:1px
}

.sign-in-button .icon {
    width:17px
}

.login-help {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    color:#9ca6b5;
    font-size:9px;
    margin-top:21px
}

.login-help .icon {
    width:12px;
    height:12px
}

.login-setup-note {
    border-top:1px solid var(--border);
    padding-top:24px;
    margin-top:30px;
    font-size:10px;
    line-height:1.8;
    color:#9aa5b5
}

.login-setup-note strong {
    display:block;
    color:#76869c;
    font-size:10px;
    font-weight:500;
    margin-bottom:3px
}

.alert {
    font-size:12px;
    line-height:1.6
}

.auth-page .skip-link {
    z-index:1
}

@media(min-width:992px) {
    .sidebar {
        position:fixed!important;
        top:0;
        bottom:0;
        left:0;
        visibility:visible!important;
        transition:transform .2s!important
    }
    .sidebar-collapsed .sidebar {
        transform:translateX(-100%)!important;
        visibility:hidden!important
    }
    .sidebar-collapsed .app-shell {
        margin-left:0
    }
}

@media(min-width:1600px) {
    .metrics-grid {
        grid-template-columns:repeat(6,minmax(0,1fr))
    }
    .metric-value {
        font-size:25px
    }
    .metric-card {
        padding:18px 15px
    }
    .metric-value>span {
        font-size:10px
    }
    .metric-top {
        font-size:10px
    }
    .metric-bottom {
        font-size:9px
    }
}

@media(max-width:1199.98px) {
    .main-content {
        padding:27px 24px 18px
    }
    .topbar {
        padding:0 22px
    }
    .dashboard-columns {
        grid-template-columns:1fr
    }
    .installment-list {
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:16px;
        padding-bottom:17px
    }
    .installment-item {
        border-bottom:0;
        flex-wrap:wrap;
        padding:8px 0!important;
        gap:9px
    }
    .installment-amount {
        margin-left:47px
    }
    .stock-grid {
        gap:13px
    }
    .stock-product-icon {
        width:35px
    }
    .stock-item {
        gap:8px;
        padding-right:8px
    }
    .stock-description>strong {
        font-size:9px
    }
    .login-story {
        padding:35px
    }
    .login-story h1 {
        font-size:42px
    }
}

@media(max-width:991.98px) {
    .app-shell {
        margin-left:0
    }
    .sidebar {
        height:100dvh
    }
    .sidebar-brand {
        height:80px
    }
    .topbar {
        height:70px
    }
    .login-story {
        padding:32px
    }
    .login-story h1 {
        font-size:36px
    }
    .login-form-section {
        padding:35px 30px
    }
    .login-story-content>p {
        font-size:12px
    }
    .story-art {
        transform:scale(.88);
        transform-origin:left center
    }
    .profile-name {
        max-width:100px
    }
}

@media(max-width:767.98px) {
    .main-content {
        padding:25px 18px 15px
    }
    .topbar {
        padding:0 15px
    }
    .environment-badge,.topbar-divider {
        display:none
    }
    .metrics-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:12px
    }
    .metric-card {
        padding:15px
    }
    .metric-value {
        font-size:25px
    }
    .metric-value>span {
        font-size:10px
    }
    .metric-top {
        font-size:10px
    }
    .metric-bottom {
        font-size:9px
    }
    .demo-notice {
        padding:13px;
        gap:10px;
        align-items:flex-start
    }
    .demo-notice div>span {
        line-height:1.7;
        display:block
    }
    .demo-notice>.demo-badge {
        display:none
    }
    .notice-icon {
        padding-top:3px
    }
    .page-heading {
        align-items:flex-start
    }
    h1 {
        font-size:26px
    }
    .date-chip {
        font-size:10px;
        padding:9px
    }
    .stock-grid {
        grid-template-columns:1fr;
        padding:0 20px 10px;
        gap:0
    }
    .stock-item {
        border-right:0;
        border-bottom:1px solid var(--border);
        padding:16px 0;
        gap:14px
    }
    .stock-description>strong {
        font-size:11px
    }
    .stock-description>span {
        font-size:10px
    }
    .stock-product-icon {
        width:45px
    }
    .stock-level {
        font-size:10px
    }
    .installment-list {
        display:block
    }
    .installment-item {
        flex-wrap:nowrap;
        padding:15px 0!important;
        border-bottom:1px solid #f0f2f6
    }
    .installment-amount {
        margin-left:auto;
        font-size:12px
    }
    .installment-person strong {
        font-size:12px
    }
    .installment-person>span {
        font-size:10px
    }
    .installment-person .overdue-label,.installment-person .due-label {
        font-size:9px
    }
    .installment-list {
        padding-bottom:0
    }
    .login-layout {
        display:block
    }
    .login-story {
        padding:24px;
        background:var(--navy)
    }
    .login-story .brand {
        font-size:21px
    }
    .login-story-content,.login-copyright {
        display:none
    }
    .login-form-section {
        min-height:calc(100dvh - 90px);
        padding:35px 24px
    }
    .login-form-wrap h2 {
        font-size:26px
    }
    .app-footer {
        margin:0 18px;
        font-size:8px
    }
    .dashboard-footnote {
        line-height:1.7
    }
    .dashboard-columns {
        gap:18px
    }
    .card-heading {
        padding:18px
    }
    .card-heading p {
        font-size:9px
    }
    .stock-card h2 {
        font-size:12px
    }
    .sample-label {
        display:none
    }
    .placeholder-card {
        min-height:400px
    }
    .placeholder-card h2 {
        font-size:22px
    }
}

@media(max-width:399.98px) {
    .metric-value {
        font-size:22px
    }
    .metric-card {
        padding:12px
    }
    .metric-top {
        font-size:9px
    }
    .metric-icon {
        width:27px;
        height:27px
    }
    .metric-bottom {
        font-size:8px;
        line-height:1.6
    }
    .breadcrumb-text {
        gap:8px;
        font-size:10px
    }
    .profile-name {
        display:none
    }
    .profile-button>.icon {
        margin-left:0
    }
    .date-chip .icon {
        display:none
    }
    .page-subtitle {
        font-size:11px
    }
    .installment-person>span {
        font-size:9px
    }
    .installment-amount {
        font-size:10px
    }
    .card-heading {
        padding:16px
    }
    .card-heading h2 {
        font-size:12px
    }
    .text-action {
        font-size:9px
    }
    .main-content {
        padding-left:13px;
        padding-right:13px
    }
}

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

/* Phase 6 purchases */
.purchase-items th,.purchase-items td{min-width:105px}.purchase-items th:first-child,.purchase-items td:first-child{min-width:260px}.purchase-items th:nth-child(7),.purchase-items td:nth-child(7){min-width:220px}.purchase-totals dt,.purchase-totals dd{padding:.25rem 0}.return-item-list{max-height:65vh;overflow:auto}
@media(max-width:767.98px){.purchase-items-wrap{overflow:visible}.purchase-items thead{display:none}.purchase-items,.purchase-items tbody,.purchase-items tr,.purchase-items td{display:block;width:100%}.purchase-items tr{border:1px solid var(--bs-border-color);border-radius:12px;margin:12px;padding:12px}.purchase-items td{border:0;padding:6px 0;min-width:0!important}.purchase-items td:before{content:attr(data-label);display:block;font-size:.75rem;color:var(--bs-secondary);margin-bottom:3px}.purchase-items td:last-child{text-align:right}.purchase-form .sticky-form-actions{flex-wrap:wrap}.purchase-form .sticky-form-actions .btn{flex:1;min-width:110px}}

/* Phase 7 retail POS */
.sale-items th,.sale-items td{min-width:92px}.sale-items th:first-child,.sale-items td:first-child{min-width:220px}.sale-items th:nth-child(8),.sale-items td:nth-child(8){min-width:180px}.pos-summary{position:sticky;top:18px}.sale-cart{min-height:280px}
@media(max-width:767.98px){.sale-items-wrap{overflow:visible}.sale-items thead{display:none}.sale-items,.sale-items tbody,.sale-items tr,.sale-items td{display:block;width:100%}.sale-items tr{border:1px solid var(--bs-border-color);border-radius:12px;margin:12px;padding:12px}.sale-items td{border:0;padding:5px 0;min-width:0!important}.sale-items td:before{content:attr(data-label);display:block;font-size:.72rem;color:var(--bs-secondary);margin-bottom:3px}.sale-items td:last-child{text-align:right}.pos-summary{position:static}.sale-form .btn-lg{min-height:52px}}

/* Phase 8 installment workflows */
.installment-terms{position:relative}.installment-payment-form .fs-3{letter-spacing:-.035em}.installment-schedule td,.installment-schedule th{white-space:nowrap}.installment-form [data-schedule-card]{scroll-margin-top:16px}
.module-hub-card{color:inherit;text-decoration:none;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.module-hub-card:hover,.module-hub-card:focus-visible{color:inherit;transform:translateY(-2px);box-shadow:0 .75rem 1.75rem rgba(35,48,72,.12)!important}.module-hub-icon{display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:rgba(34,91,219,.1);color:var(--bs-primary)}.module-hub-icon svg{width:21px;height:21px}.module-hub-arrow{color:var(--bs-secondary);transition:transform .16s ease}.module-hub-card:hover .module-hub-arrow{transform:translateX(3px)}.module-hub-arrow svg{width:18px;height:18px}
@media(max-width:767.98px){.installment-schedule-wrap{overflow:visible}.installment-schedule thead{display:none}.installment-schedule,.installment-schedule tbody,.installment-schedule tr,.installment-schedule td{display:block;width:100%}.installment-schedule tr{border:1px solid var(--bs-border-color);border-radius:12px;margin:12px;padding:12px}.installment-schedule td{border:0;padding:5px 0;text-align:right!important;white-space:normal}.installment-schedule td:before{content:attr(data-label);float:left;font-size:.72rem;color:var(--bs-secondary);margin-right:12px}.installment-payment-form .btn-lg,.installment-form .btn-lg{min-height:54px}.installment-form [data-custom-dates] .col-6{width:100%}}

/* Phase 9 recovery and in-app reminders */
.recovery-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.recovery-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.recovery-touch-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.recovery-touch-actions .btn{min-height:46px;display:flex;align-items:center;justify-content:center}.recovery-timeline{border-left:2px solid #dfe5ec;margin-left:24px}.timeline-entry{position:relative;padding:0 0 22px 20px}.timeline-entry:before{content:"";position:absolute;left:-7px;top:5px;width:12px;height:12px;border-radius:50%;background:var(--bs-primary);box-shadow:0 0 0 4px #fff}.timeline-entry:last-child{padding-bottom:0}.recovery-case-card{overflow:hidden}.recovery-schedule td,.recovery-schedule th{white-space:nowrap}
@media(max-width:1199.98px){.recovery-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.recovery-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767.98px){.recovery-metrics,.recovery-card-grid{grid-template-columns:1fr}.recovery-due-table>.table-responsive{overflow:visible}.recovery-due-table thead,.recovery-schedule thead{display:none}.recovery-due-table table,.recovery-due-table tbody,.recovery-due-table tr,.recovery-due-table td,.recovery-schedule,.recovery-schedule tbody,.recovery-schedule tr,.recovery-schedule td{display:block;width:100%}.recovery-due-table tr,.recovery-schedule tr{border:1px solid var(--bs-border-color);border-radius:12px;margin:12px;padding:12px}.recovery-due-table td,.recovery-schedule td{border:0;padding:5px 0;text-align:right!important;white-space:normal}.recovery-due-table td:before,.recovery-schedule td:before{content:attr(data-label);float:left;font-size:.72rem;color:var(--bs-secondary);margin-right:12px}.recovery-touch-actions .btn{min-height:52px;font-weight:600}[data-recovery-followup] .btn-lg{min-height:54px}.recovery-timeline{margin-left:10px}.recovery-case-card .card-body{padding:18px}}
.account-tree-node{border:1px solid var(--bs-border-color);border-radius:10px;margin-bottom:10px;background:#fff}.account-tree-node>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;cursor:pointer}.account-tree-node>summary small{display:block;color:var(--bs-secondary)}.account-tree-children{padding:0 10px 10px 24px}.account-tree-ledger{display:flex;justify-content:space-between;gap:12px;padding:9px 12px;border-left:2px solid #dfe5ec;text-decoration:none}.account-tree-ledger:hover{background:#f7f9fc}.account-tree-ledger small{color:var(--bs-secondary);white-space:nowrap}
@media(max-width:767.98px){.account-tree-children{padding-left:10px}.account-tree-node>summary,.account-tree-ledger{align-items:flex-start}.accounting-table thead{display:none}.accounting-table,.accounting-table tbody,.accounting-table tr,.accounting-table td{display:block;width:100%}.accounting-table tr{border:1px solid var(--bs-border-color);border-radius:12px;margin:10px;padding:10px}.accounting-table td{border:0;padding:5px 0;text-align:right!important;white-space:normal}.accounting-table td:before{content:attr(data-label);float:left;color:var(--bs-secondary);font-size:.75rem;margin-right:12px}.accounting-table input{min-width:130px}.account-tree-ledger{flex-direction:column}.account-tree-ledger small{white-space:normal}}


/* Phase 2 foundation modules */
.foundation-table th, .foundation-table td { padding: 16px; }
.foundation-table td { max-width: 280px; overflow-wrap: anywhere; }
.foundation-table th { white-space: nowrap; }
.foundation-actions { min-width: 145px; }
.foundation-actions .btn { min-height: 40px; display: inline-flex; align-items: center; }
.foundation-form .form-control, .foundation-form .form-select { min-height: 44px; }
.company-logo { max-width: 180px; max-height: 120px; object-fit: contain; }
.context-badge { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.permission-group .form-check-label { padding: 4px 0; cursor: pointer; }
@media (max-width: 767.98px) {
    .foundation-form .btn { min-height: 44px; }
    .foundation-table th, .foundation-table td { padding: 12px; }
    .context-badge { display: none; }
    .page-heading h1 { overflow-wrap: anywhere; }
}

/* Phase 3 product catalog */
.catalog-thumb { width:52px; height:52px; object-fit:cover; border-radius:10px; border:1px solid #dfe5ec; background:#f5f7fa; display:inline-grid; place-items:center; }
.catalog-preview { max-width:240px; max-height:180px; object-fit:contain; border:1px solid #dfe5ec; border-radius:12px; padding:6px; background:#fff; }
.product-table th,.product-table td { padding:14px; white-space:nowrap; }
.product-table td:nth-child(4) { min-width:210px; white-space:normal; }
.catalog-form .form-control,.catalog-form .form-select { min-height:44px; }
.catalog-tabs { gap:8px; overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }
.catalog-tabs .nav-link { white-space:nowrap; }
.select2-container { width:100%!important; }
.select2-container .select2-selection--single { min-height:44px; border-color:#dee2e6; padding:7px 10px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height:42px; }
.catalog-image-card { position:relative; border:1px solid #dfe5ec; border-radius:12px; padding:10px; height:100%; background:#fff; }
.catalog-image-card.is-primary { border:2px solid var(--bs-primary); }
.catalog-image-card img { width:100%; height:150px; object-fit:contain; border-radius:8px; background:#f7f8fa; }
.catalog-image-card .primary-label { position:absolute; left:16px; top:16px; }
.product-view-images { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.product-view-images figure { margin:0; }
.product-view-images figure.primary { grid-column:1/-1; }
.product-view-images img { width:100%; height:110px; object-fit:contain; border-radius:10px; background:#f7f8fa; border:1px solid #e5e8ed; }
.product-view-images figure.primary img { height:280px; }
.product-view-images figcaption { font-size:12px; color:#6c757d; margin-top:5px; }
.catalog-description { white-space:normal; overflow-wrap:anywhere; }
.sticky-form-actions { position:sticky; bottom:12px; z-index:10; background:rgba(255,255,255,.94); padding:12px; border:1px solid #e4e8ee; border-radius:12px; backdrop-filter:blur(8px); }
@media (max-width:767.98px) {
    .catalog-tabs { margin-left:-13px; margin-right:-13px; padding-left:13px; padding-right:13px; }
    .catalog-form .tab-pane { padding:16px!important; }
    .product-view-images figure.primary img { height:210px; }
    .catalog-image-card img { height:120px; }
    .sticky-form-actions .btn { min-height:44px; flex:1; }
}

/* Professional POS workspace */
.pos-page-header {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    overflow:hidden;
    padding:24px 26px;
    border:1px solid #dfe8f4;
    border-radius:20px;
    background:linear-gradient(120deg,#fff 0%,#f5f9ff 64%,#edf5ff 100%);
    box-shadow:0 12px 34px rgba(28,51,84,.07)
}
.pos-page-header::after {
    content:"";
    position:absolute;
    right:-55px;
    top:-90px;
    width:230px;
    height:230px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(34,91,219,.12),rgba(34,91,219,0) 70%);
    pointer-events:none
}
.pos-page-header h1 {font-size:clamp(1.55rem,2.2vw,2.1rem);font-weight:750;letter-spacing:-.035em;color:#17243b}
.pos-page-header>div {position:relative;z-index:1}
.pos-kicker-icon {display:inline-grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--bs-primary);color:#fff;font-size:20px;font-weight:400;line-height:1}
.pos-header-actions {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.pos-ready-badge {display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid #cfe8d8;border-radius:999px;background:#f1fbf5;color:#217142;font-size:.76rem;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.pos-ready-badge>span {width:8px;height:8px;border-radius:50%;background:#23a55a;box-shadow:0 0 0 4px rgba(35,165,90,.12)}
.sale-form .card {border:1px solid #e2e8f0!important;border-radius:17px;box-shadow:0 10px 28px rgba(28,51,84,.055)!important}
.sale-form>.pos-workspace>.col-12>section {overflow:hidden}
.sale-form>.pos-workspace>.col-xl-8>section:first-child {background:linear-gradient(135deg,#fff,#f9fbfe)}
.sale-form>.pos-workspace>.col-xl-8>section:first-child .card-body {padding:18px 20px}
.sale-form .form-label {margin-bottom:7px;color:#536176;font-size:.73rem;font-weight:700;letter-spacing:.025em}
.sale-form .form-control,.sale-form .form-select {border-color:#dce3ec;border-radius:10px;background-color:#fff}
.sale-form .form-control:focus,.sale-form .form-select:focus {border-color:#7da3ef;box-shadow:0 0 0 .2rem rgba(34,91,219,.1)}
.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header {padding:18px 20px;background:#fff!important;border-bottom:1px solid #e8edf3}
.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group {padding:5px;border:1px solid #dbe4ee;border-radius:13px;background:#f6f8fb}
.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group .form-control {border:0;background:transparent;box-shadow:none;font-size:.95rem}
.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group .btn {border-radius:9px;padding-left:24px;padding-right:24px;font-weight:700}
#pos_product_search {min-height:46px;margin-top:3px}
.sale-cart {min-height:330px;background:#fff}
.sale-items {font-size:.79rem}
.sale-items thead th {padding:12px 10px;border:0;border-bottom:1px solid #dfe6ef;background:#f7f9fc;color:#6b778a;font-size:.64rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap}
.sale-items tbody td {padding:14px 10px;border-color:#edf1f5;vertical-align:middle}
.sale-items tbody tr {transition:background-color .15s ease}
.sale-items tbody tr:hover {background:#fbfcff}
.sale-product-name {display:block;color:#1c2a40;font-size:.79rem;line-height:1.35}
.sale-model {margin-top:4px;font-size:.66rem}
.sale-stock {display:inline-flex;align-items:center;justify-content:center;min-width:40px;padding:4px 8px;border-radius:999px;background:#eef4ff;color:#2d5caf;font-size:.7rem;font-weight:750}
.sale-tax-rate {color:#607089;font-size:.72rem;font-weight:650}
.sale-row-net {color:#17243b;font-size:.82rem;font-weight:800}
.sale-items .input-group-sm .btn,.sale-items .form-control-sm,.sale-items .form-select-sm {min-height:34px}
.sale-items [data-remove-sale-item] {width:34px;height:34px;padding:0;border:0;border-radius:9px;background:#fff1f1;color:#c43d3d;font-size:1.15rem}
.sale-items [data-remove-sale-item]:hover {background:#dc3545;color:#fff}
.sale-form aside>section>.card-header {padding:15px 17px;border-bottom:1px solid #e8edf3;background:#fff!important}
.sale-form aside>section>.card-header h2 {color:#23314a;font-size:.82rem;font-weight:800;letter-spacing:.01em}
.sale-form aside>section>.card-body {padding:17px}
.sale-form aside>section:nth-of-type(2) select[name="sale_mode"] {min-height:52px;border:1px solid #cfdbea;background-color:#f8fbff;color:#1d3762;font-weight:650}
.sale-form aside .form-check.form-switch {padding:15px 14px 14px 48px!important;border:1px solid #dfe7f0!important;border-radius:12px;background:#f8fafc}
.sale-form aside .form-switch .form-check-input {width:2.35rem;height:1.2rem;margin-left:-34px}
.sale-form aside [data-installment-fields] {padding:15px;border:1px solid #dfe8f4;border-radius:13px;background:#f8fbff}
.sale-form [data-payment-row] {padding:11px!important;border-color:#e2e8f0!important;border-radius:12px!important;background:#fafbfd}
.sale-form [data-payment-row]:last-child {margin-bottom:0!important}
.pos-summary {top:16px;border-color:#cbdaf0!important;background:linear-gradient(180deg,#fff,#fbfdff)}
.pos-summary .card-body {padding:19px}
.pos-summary dl {margin-left:-3px;margin-right:-3px;padding:14px;border-radius:13px;background:#f6f9fd}
.pos-summary dt,.pos-summary dd {margin:0;padding:5px 3px;color:#536176;font-size:.78rem}
.pos-summary dd {color:#1f2e45;font-variant-numeric:tabular-nums;font-weight:700}
.pos-summary [data-sale-net] {color:#1558c0;font-size:1.35rem!important;font-weight:850}
.pos-summary dt:has(+ [data-sale-net]) {color:#17243b;font-size:.95rem!important;font-weight:800}
.pos-summary [data-sale-balance] {color:#c74747}
.pos-summary .card-footer {padding:15px 18px 18px;border-top:1px solid #e7edf4!important}
.pos-summary .card-footer .btn {border-radius:11px;font-size:.88rem;font-weight:750}
.pos-summary .card-footer .btn-primary {box-shadow:0 8px 18px rgba(34,91,219,.2)}

@media(max-width:1199.98px) {
    .pos-summary {position:static}
}
@media(max-width:767.98px) {
    .pos-page-header {align-items:flex-start;padding:19px;border-radius:16px}
    .pos-page-header,.pos-header-actions {flex-direction:column}
    .pos-header-actions {align-items:stretch;width:100%}
    .pos-header-actions .btn {width:100%}
    .pos-ready-badge {align-self:flex-start}
    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header {padding:14px}
    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group {display:grid;grid-template-columns:1fr}
    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group>.form-control,.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group>.btn {width:100%;border-radius:8px!important}
    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group>.btn {margin-top:5px;min-height:44px}
    .sale-items tr {margin:10px 0;padding:13px;border-color:#e0e7f0;box-shadow:0 5px 15px rgba(28,51,84,.045)}
    .sale-items td {display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:10px;text-align:left!important}
    .sale-items td::before {margin:0!important;font-weight:700}
    .sale-items td:first-child {display:block}
    .sale-items td:last-child {display:flex;justify-content:flex-end}
}
