:root {
    --pos-bg: #f4f7fb;
    --pos-surface: #ffffff;
    --pos-sidebar: #08111f;
    --pos-sidebar-muted: #96a3b6;
    --pos-border: #e3e8ef;
    --pos-text: #172033;
    --pos-muted: #667085;
    --pos-primary: #2563eb;
    --pos-success: #16a34a;
    --pos-warning: #f59e0b;
    --pos-danger: #ef4444;
    --pos-info: #0891b2;
    --pos-shadow: 0 14px 40px rgba(15, 23, 42, .08);
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    background: var(--pos-bg);
    color: var(--pos-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-decoration: none;
}

.pos-shell {
    min-height: 100vh;
    display: flex;
}

.pos-sidebar {
    width: 282px;
    min-height: 100vh;
    position: sticky;
    top: 0;
    flex-direction: column;
    background: var(--pos-sidebar);
    color: #fff;
    padding: 18px 16px;
}

.brand-block {
    padding: 4px 4px 16px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.brand-logo:hover {
    color: #fff;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #14b8a6 55%, #f59e0b);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .28);
    font-weight: 800;
    font-size: 1.3rem;
}

.brand-logo strong,
.brand-logo small {
    display: block;
    line-height: 1.15;
}

.brand-logo small {
    color: var(--pos-sidebar-muted);
    font-size: .75rem;
    margin-top: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 11px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: .92rem;
    font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.sidebar-link.active {
    box-shadow: inset 3px 0 0 var(--item-color, var(--pos-primary));
}

.sidebar-icon {
    width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    color: var(--item-color, #60a5fa);
    background: rgba(255, 255, 255, .08);
    flex: 0 0 auto;
}

.copilot-badge {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(37, 99, 235, .18);
    color: #93c5fd;
}

.pos-main {
    min-width: 0;
    flex: 1;
}

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

.topbar h1 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
}

.topbar-kicker,
.eyebrow,
.panel-kicker {
    color: var(--pos-muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.search-box {
    width: min(360px, 32vw);
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    padding: 0 11px;
}

.search-box i {
    color: var(--pos-muted);
}

.search-box .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 42px;
    padding-left: 0;
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: var(--pos-text);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    min-height: 42px;
    padding: 4px 9px 4px 5px;
}

.user-chip strong,
.user-chip small {
    display: block;
    line-height: 1.1;
    text-align: left;
}

.user-chip small {
    color: var(--pos-muted);
    font-size: .72rem;
}

.avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eff6ff;
    color: var(--pos-primary);
    font-weight: 800;
}

.content-wrap {
    padding: 22px 24px 34px;
}

.welcome-strip,
.module-hero,
.copilot-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: var(--pos-surface);
    box-shadow: var(--pos-shadow);
}

.welcome-strip h2,
.module-hero h2 {
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    font-weight: 850;
    margin: 2px 0 4px;
}

.welcome-strip p,
.module-hero p,
.copilot-panel p {
    color: var(--pos-muted);
    margin: 0;
}

.welcome-actions,
.module-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.module-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    background: color-mix(in srgb, var(--module-color), #fff 84%);
    color: var(--module-color);
    font-size: 1.35rem;
}

.metric-card,
.panel-card,
.feature-card {
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: var(--pos-surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.metric-card {
    min-height: 126px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.metric-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    flex: 0 0 auto;
}

.metric-primary { color: #2563eb; background: #eff6ff; }
.metric-success { color: #16a34a; background: #ecfdf3; }
.metric-warning { color: #d97706; background: #fffbeb; }
.metric-danger { color: #dc2626; background: #fef2f2; }
.metric-info { color: #0891b2; background: #ecfeff; }

.metric-card span,
.cash-box span,
.top-product-item small,
.table-product small {
    display: block;
    color: var(--pos-muted);
    font-size: .78rem;
}

.metric-card strong {
    display: block;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 850;
    margin: 2px 0;
}

.metric-card small {
    color: var(--pos-success);
    font-weight: 700;
    font-size: .76rem;
}

.panel-card {
    padding: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-header h3,
.copilot-panel h3 {
    margin: 1px 0 0;
    font-size: 1rem;
    font-weight: 850;
}

.chart-box {
    position: relative;
    height: 330px;
}

.donut-box {
    position: relative;
    height: 255px;
}

.top-product-list,
.cash-box,
.cart-list {
    display: grid;
    gap: 12px;
}

.top-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-product-item strong,
.table-product strong {
    display: block;
    font-size: .9rem;
}

.product-icon,
.feature-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--item-color);
    background: color-mix(in srgb, var(--item-color), #fff 84%);
}

.cash-box > div {
    padding: 12px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #f8fafc;
}

.cash-box strong {
    display: block;
    margin-top: 4px;
}

.cash-balance {
    background: #fff !important;
}

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

.quick-product-btn {
    min-height: 100px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    display: grid;
    align-content: center;
    justify-items: start;
    text-align: left;
    gap: 4px;
    padding: 12px;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.quick-product-btn:hover {
    transform: translateY(-1px);
    border-color: var(--item-color);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
}

.quick-product-btn i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--item-color);
    background: color-mix(in srgb, var(--item-color), #fff 84%);
}

.quick-product-btn span {
    font-weight: 800;
    font-size: .88rem;
    line-height: 1.2;
}

.quick-product-btn small {
    color: var(--pos-muted);
}

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

.feature-card {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--pos-text);
    transition: border-color .15s ease, transform .15s ease;
}

.feature-card:hover {
    color: var(--pos-text);
    transform: translateY(-1px);
    border-color: var(--item-color);
}

.feature-card strong {
    font-size: .86rem;
    line-height: 1.25;
}

.copilot-panel {
    background: #0f172a;
    color: #fff;
    box-shadow: none;
}

.copilot-panel .panel-kicker,
.copilot-panel h3 {
    color: #fff;
}

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

.table-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--item-color), #fff 86%);
    color: var(--item-color);
    font-weight: 800;
    font-size: .76rem;
}

.badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .36rem .58rem;
}

.badge-soft-primary { color: #1d4ed8; background: #eff6ff; }
.badge-soft-success { color: #15803d; background: #ecfdf3; }
.badge-soft-warning { color: #b45309; background: #fffbeb; }
.badge-soft-danger { color: #b91c1c; background: #fef2f2; }
.badge-soft-info { color: #0e7490; background: #ecfeff; }

.empty-inline {
    min-height: 82px;
    display: grid;
    place-items: center;
    color: var(--pos-muted);
    border: 1px dashed var(--pos-border);
    border-radius: 8px;
    font-size: .86rem;
    text-align: center;
}

.table-action {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-color: var(--pos-border);
}

.dataTables_wrapper .form-control,
.dataTables_wrapper .form-select,
div.dt-container .form-control,
div.dt-container .form-select {
    border-radius: 8px;
    border-color: var(--pos-border);
}

table.dataTable {
    width: 100% !important;
}

table.dataTable thead th {
    color: var(--pos-muted);
    font-size: .78rem;
    text-transform: uppercase;
    white-space: nowrap;
}

table.dataTable tbody td {
    vertical-align: middle;
    font-size: .9rem;
}

.link-action {
    color: var(--pos-primary);
    font-size: .82rem;
    font-weight: 800;
}

.cart-list {
    min-height: 140px;
}

.empty-cart {
    min-height: 132px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    color: var(--pos-muted);
    border: 1px dashed var(--pos-border);
    border-radius: 8px;
}

.empty-cart i {
    font-size: 1.6rem;
    color: var(--pos-primary);
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pos-border);
}

.cart-row-main strong,
.cart-row-main small,
.cart-row-subtotal {
    display: block;
}

.cart-row-main small {
    color: var(--pos-muted);
    font-size: .78rem;
}

.cart-row-qty {
    display: grid;
    gap: 4px;
    min-width: 88px;
}

.cart-qty-label {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    color: var(--pos-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cart-qty-input {
    width: 88px;
    text-align: center;
    font-weight: 700;
}

.cart-row-end {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-row-subtotal {
    min-width: 92px;
    text-align: right;
    font-weight: 800;
    font-size: .9rem;
}

.cart-remove-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-grid;
    place-items: center;
}

.cart-hint {
    font-size: .78rem;
}

.copilot-chat-modal .modal-content {
    border: 0;
    border-radius: 8px;
}

.copilot-chat-modal .modal-body {
    background: #f8fafc;
}

.copilot-messages {
    min-height: 340px;
    max-height: 58vh;
    display: grid;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
    padding-right: 4px;
}

.copilot-message {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
}

.copilot-message.user {
    grid-template-columns: minmax(0, 1fr) 34px;
}

.copilot-message.user .copilot-avatar {
    order: 2;
}

.copilot-message.user .copilot-bubble {
    justify-self: end;
    background: var(--pos-primary);
    color: #fff;
}

.copilot-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--pos-primary);
    background: #eff6ff;
}

.copilot-bubble {
    width: fit-content;
    max-width: min(100%, 680px);
    padding: 11px 13px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: var(--pos-text);
    font-size: .92rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.copilot-message.is-pending .copilot-bubble {
    color: var(--pos-muted);
}

.copilot-message.is-error .copilot-bubble {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.copilot-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.copilot-form textarea {
    resize: none;
}

.checkout-options {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--pos-border);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--pos-border);
}

.cart-total strong {
    font-size: 1.25rem;
}

.mobile-sidebar {
    background: var(--pos-sidebar);
    color: #fff;
}

.mobile-sidebar .offcanvas-body {
    padding-top: 0;
}

.mobile-bottom-nav {
    position: fixed;
    z-index: 30;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .16);
}

.mobile-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 48px;
    color: var(--pos-muted);
    border-radius: 8px;
    font-size: .67rem;
    font-weight: 800;
}

.mobile-bottom-nav a i {
    font-size: 1rem;
}

.mobile-bottom-nav a.active {
    color: var(--pos-primary);
    background: #eff6ff;
}

.sales-page {
    display: grid;
    gap: 16px;
}

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

.sales-page-head h2 {
    margin: 0;
    color: #101828;
    font-size: 1.48rem;
    font-weight: 850;
}

.sales-page-head p {
    margin: 6px 0 0;
    color: #4b5565;
    font-size: .9rem;
}

.sales-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.sales-head-actions .btn {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 750;
}

.sales-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.sales-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 16px;
}

.sales-metric-card {
    min-height: 126px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 35, 66, .06);
}

.sales-metric-card > div {
    min-width: 0;
}

.sales-metric-card span {
    display: block;
    color: #4b5565;
    font-size: .82rem;
    font-weight: 750;
}

.sales-metric-card strong {
    display: block;
    margin: 10px 0 12px;
    color: #101828;
    font-size: 1.25rem;
    line-height: 1.08;
    font-weight: 850;
}

.sales-metric-card .metric-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 8px;
    font-size: 1rem;
}

.sales-metric-card .metric-icon i {
    line-height: 1;
}

.sales-delta {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    min-height: 20px;
    color: #16a34a;
    font-size: .78rem;
    font-weight: 800;
}

.sales-delta.is-down {
    color: #ef4444;
}

.sales-delta.is-flat {
    color: #667085;
}

.sales-delta em {
    color: #667085;
    font-style: normal;
    font-weight: 650;
}

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

.sales-pos-panel {
    padding: 0;
    overflow: visible;
}

.sales-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--pos-border);
}

.sales-tabs button {
    min-height: 56px;
    padding: 0 22px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4b5565;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 800;
}

.sales-tabs button.active {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
}

.sales-tab-pane {
    display: none;
    padding: 16px;
}

.sales-tab-pane.active {
    display: block;
}

.sale-entry-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 270px);
    gap: 12px;
    margin-bottom: 16px;
}

.sales-search-wrap {
    position: relative;
    min-width: 0;
}

.sales-search-wrap > i {
    position: absolute;
    top: 50%;
    left: 16px;
    z-index: 2;
    transform: translateY(-50%);
    color: #667085;
}

.sales-search-wrap .form-control {
    min-height: 46px;
    padding-left: 42px;
    border-color: var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.sale-product-picker {
    position: absolute;
    z-index: 35;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 318px;
    overflow-y: auto;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 35, 66, .16);
}

.sales-search-wrap.is-open .sale-product-picker {
    display: grid;
}

.sale-product-picker .quick-product-btn {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    text-align: left;
}

.sale-product-picker .quick-product-btn:hover {
    transform: none;
    border-color: color-mix(in srgb, var(--item-color), #fff 42%);
    box-shadow: none;
    background: #f8fafc;
}

.sale-product-picker .quick-product-btn strong,
.sale-product-picker .quick-product-btn small,
.sale-product-picker .quick-product-btn em {
    display: block;
}

.sale-product-picker .quick-product-btn strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .88rem;
}

.sale-product-picker .quick-product-btn small {
    margin-top: 2px;
    color: #667085;
    font-size: .76rem;
}

.sale-product-picker .quick-product-btn em {
    color: #101828;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.sales-customer-picker {
    position: relative;
    min-height: 46px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #4b5565;
}

.sales-customer-picker > .fa-user {
    color: #667085;
}

.sales-customer-picker .form-control {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #344054;
    font-weight: 750;
    box-shadow: none;
    padding: 0;
}

.sales-customer-picker .form-control::-webkit-search-cancel-button {
    appearance: none;
}

.sales-customer-toggle {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #667085;
}

.sales-customer-toggle:hover {
    background: #f2f4f7;
    color: #344054;
}

.sale-customer-results {
    position: absolute;
    z-index: 34;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    max-height: 318px;
    overflow-y: auto;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(20, 35, 66, .16);
}

.sales-customer-picker.is-open .sale-customer-results {
    display: grid;
}

.sale-customer-option {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    text-align: left;
}

.sale-customer-option:hover,
.sale-customer-option.active {
    border-color: #bbd3ff;
    background: #f8fbff;
}

.sale-customer-option span,
.sale-customer-option strong,
.sale-customer-option small {
    min-width: 0;
    display: block;
}

.sale-customer-option strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .88rem;
}

.sale-customer-option small {
    margin-top: 2px;
    color: #667085;
    font-size: .76rem;
}

.sale-customer-option > i {
    color: var(--pos-primary);
    opacity: 0;
}

.sale-customer-option.active > i {
    opacity: 1;
}

.sales-pos-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
    gap: 16px;
}

.sales-cart-panel {
    min-width: 0;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.sale-cart-head,
.sale-cart-list .cart-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 78px 104px 126px 38px;
    align-items: center;
    gap: 10px;
}

.sale-cart-head {
    min-height: 42px;
    padding: 0 14px;
    background: #f8fafc;
    color: #667085;
    font-size: .78rem;
    font-weight: 800;
}

.sale-cart-list {
    min-height: 344px;
    max-height: 452px;
    display: block;
    overflow-y: auto;
}

.sale-cart-list .empty-cart {
    min-height: 342px;
    margin: 14px;
}

.sale-cart-list .cart-row {
    min-height: 70px;
    padding: 10px 14px;
    border-bottom: 1px solid #edf1f7;
}

.sale-cart-list .cart-row:last-child {
    border-bottom: 0;
}

.sale-cart-list .cart-row-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-width: 0;
}

.sale-cart-list .cart-row-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #101828;
    font-size: .88rem;
}

.sale-cart-list .cart-row-main small {
    margin-top: 2px;
    color: #667085;
    font-size: .76rem;
}

.cart-stock-label,
.cart-price-label {
    color: #101828;
    font-size: .84rem;
    font-weight: 750;
}

.sale-cart-list .cart-row-qty {
    display: grid;
    grid-template-columns: 32px 46px 32px;
    gap: 4px;
    min-width: 0;
}

.cart-qty-btn,
.cart-remove-btn {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 8px;
}

.sale-cart-list .cart-qty-input {
    width: 46px;
    height: 32px;
    padding: 0 4px;
    text-align: center;
    font-weight: 800;
}

.sale-cart-footer {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--pos-border);
    background: #fff;
}

.sale-cart-footer span {
    color: #667085;
    font-size: .82rem;
    font-weight: 800;
}

.sales-summary-card {
    align-self: start;
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
}

.sales-summary-card h3 {
    margin: 0 0 8px;
    color: #101828;
    font-size: 1rem;
    font-weight: 850;
}

.summary-line,
.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    color: #344054;
    font-size: .88rem;
}

.summary-line span em {
    font-style: normal;
}

.summary-line strong,
.summary-total strong {
    color: #101828;
    font-weight: 850;
}

.summary-total {
    min-height: 50px;
    padding-top: 12px;
    border-top: 1px solid var(--pos-border);
}

.summary-total strong {
    color: var(--pos-primary);
    font-size: 1.35rem;
}

.summary-input {
    width: min(142px, 46%);
    min-height: 38px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
}

.summary-input span {
    color: #667085;
    font-size: .78rem;
    font-weight: 800;
}

.summary-input--suffix {
    grid-template-columns: minmax(0, 1fr) auto;
}

.summary-input input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    text-align: right;
    color: #101828;
    font-weight: 850;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 6px;
}

.payment-methods button {
    min-height: 58px;
    display: grid;
    place-items: center;
    gap: 5px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    font-size: .76rem;
    font-weight: 800;
}

.payment-methods button.active {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
    background: #eff6ff;
}

.change-line strong {
    color: #16a34a;
}

.payment-summary-list,
.recent-sale-list,
.sales-history-list {
    display: grid;
    gap: 0;
}

.sales-history-table-shell {
    min-width: 0;
}

.sales-history-toolbar {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #edf1f7;
}

.sales-history-toolbar > strong {
    color: #101828;
    font-size: .92rem;
    font-weight: 850;
}

.sales-history-data-table {
    margin: 0 !important;
}

.sales-history-data-table thead th {
    background: #f8fafc;
    color: #4b5565 !important;
    font-size: .76rem !important;
    text-transform: none !important;
}

.sales-history-data-table tbody td {
    border-color: #edf1f7;
}

.sales-history-table-shell .dataTables_wrapper > .row,
.sales-history-table-shell div.dt-container > .row {
    margin-right: 0;
    margin-left: 0;
}

.sales-history-table-shell .dataTables_wrapper > .row:first-child,
.sales-history-table-shell div.dt-container > .row:first-child {
    padding: 12px 14px 0;
}

.sales-history-table-shell .dataTables_wrapper > .row:last-child,
.sales-history-table-shell div.dt-container > .row:last-child {
    padding: 0 14px 12px;
}

.payment-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
}

.payment-summary-row:last-child {
    border-bottom: 0;
}

.payment-summary-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #344054;
    font-size: .86rem;
    font-weight: 800;
}

.payment-summary-row span i {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: var(--pos-primary);
    background: #eff6ff;
}

.payment-summary-row strong {
    color: #101828;
    font-size: .88rem;
}

.payment-summary-row small {
    grid-column: 1 / -1;
    padding-left: 34px;
    color: #667085;
    font-size: .76rem;
}

.recent-sale-row,
.sale-history-row {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
}

.recent-sale-row {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.sale-history-row {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.sale-history-row[data-sale-history-row] {
    grid-template-columns: minmax(0, 1fr) auto;
}

.sale-history-main {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.recent-sale-row:last-child,
.sale-history-row:last-child {
    border-bottom: 0;
}

.recent-sale-row:hover,
.sale-history-row:hover,
.sale-history-main:hover {
    color: #101828;
}

.recent-sale-row span:first-child,
.sale-history-row span:first-child,
.sale-history-main span:first-child {
    min-width: 0;
}

.recent-sale-row strong,
.recent-sale-row small,
.sale-history-row strong,
.sale-history-row small,
.sale-history-main strong,
.sale-history-main small {
    display: block;
}

.recent-sale-row span:first-child strong,
.sale-history-row span:first-child strong,
.sale-history-main span:first-child strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .8rem;
}

.recent-sale-row small,
.sale-history-row small,
.sale-history-main small {
    margin-top: 5px;
    color: #667085;
    font-size: .76rem;
}

.recent-sale-row em,
.sale-history-row em,
.sale-history-main em {
    color: #344054;
    font-style: normal;
    font-size: .78rem;
    font-weight: 750;
}

.recent-sale-row > strong,
.sale-history-row > strong,
.sale-history-main > strong {
    white-space: nowrap;
    font-size: .86rem;
}

.sale-history-delete-btn {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    padding: 0;
}

.sales-quick-actions {
    padding: 18px;
}

.sales-quick-actions h3 {
    margin: 0 0 12px;
    color: #101828;
    font-size: 1rem;
    font-weight: 850;
}

.sales-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 12px;
}

.sales-action-grid a,
.sales-action-grid button {
    min-height: 74px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
}

.sales-action-grid a:hover,
.sales-action-grid button:hover {
    border-color: color-mix(in srgb, var(--item-color), #fff 30%);
    color: #101828;
}

.sales-action-grid i {
    color: var(--item-color);
    font-size: 1.25rem;
}

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

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

    .sales-work-grid,
    .sales-pos-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 991.98px) {
    .topbar {
        padding: 12px 16px;
    }

    .content-wrap {
        padding: 16px 16px 94px;
    }

    .welcome-strip,
    .module-hero,
    .copilot-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-actions,
    .module-actions {
        width: 100%;
    }

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

    .sales-head-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .sale-entry-toolbar {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 575.98px) {
    .topbar h1 {
        max-width: 44vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-actions {
        gap: 6px;
    }

    .icon-btn,
    .user-chip {
        width: 38px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        justify-content: center;
    }

    .user-chip::after {
        display: none;
    }

    .module-title {
        align-items: flex-start;
    }

    .module-icon {
        width: 46px;
        height: 46px;
    }

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

    .cart-row,
    .sale-cart-list .cart-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cart-row-end {
        justify-content: space-between;
    }

    .sales-metric-grid,
    .sales-action-grid,
    .payment-methods {
        grid-template-columns: 1fr;
    }

    .sales-tabs button {
        min-height: 50px;
        padding: 0 16px;
        font-size: .84rem;
    }

    .sales-history-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .sales-history-toolbar .table-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .sale-cart-head {
        display: none;
    }

    .sale-cart-list .cart-row-main {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-stock-label::before {
        content: "Stok: ";
        color: #667085;
    }

    .cart-price-label::before {
        content: "Harga: ";
        color: #667085;
    }

    .sale-cart-list .cart-row-qty {
        width: 122px;
    }

    .recent-sale-row,
    .sale-history-row,
    .sale-history-main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .recent-sale-row em,
    .sale-history-main em {
        display: none;
    }

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

    .copilot-form .btn {
        width: 100%;
    }

    .copilot-message,
    .copilot-message.user {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .copilot-message.user .copilot-avatar {
        order: 0;
    }

    .copilot-message.user .copilot-bubble {
        justify-self: start;
    }

    .metric-card {
        min-height: 112px;
    }

    .panel-card {
        padding: 14px;
    }

    .chart-box {
        height: 260px;
    }
}

/* NEXA dashboard refresh */
:root {
    --pos-bg: #f5f8fd;
    --pos-sidebar: #061326;
    --pos-sidebar-strong: #020b18;
    --pos-border: #dfe7f2;
    --pos-text: #101828;
    --pos-muted: #667085;
    --pos-primary: #2f73ff;
    --pos-shadow: 0 10px 26px rgba(20, 35, 66, .07);
}

body {
    background:
        linear-gradient(180deg, #f8fbff 0%, #f4f7fc 45%, #eef4fb 100%);
}

.pos-sidebar {
    width: 292px;
    flex: 0 0 292px;
    padding: 24px 18px 18px;
    background:
        linear-gradient(180deg, #06172f 0%, var(--pos-sidebar-strong) 100%);
    box-shadow: 18px 0 42px rgba(8, 17, 31, .18);
    overflow-x: hidden;
    transition: width .2s ease, flex-basis .2s ease, padding .2s ease, box-shadow .2s ease;
}

.brand-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 20px;
}

.brand-logo {
    min-width: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1d63ff 0%, #6aa7ff 100%);
    color: #dbeafe;
    box-shadow: 0 14px 32px rgba(47, 115, 255, .34);
    font-size: 1.45rem;
}

.brand-logo strong {
    font-size: 1.55rem;
    font-weight: 850;
}

.brand-logo small {
    color: #aebbd0;
    font-size: .72rem;
}

.sidebar-collapse-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c7d2e2;
}

.sidebar-collapse-btn i {
    transition: transform .2s ease;
}

.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.sidebar-nav {
    gap: 8px;
    padding: 0;
}

.sidebar-link {
    position: relative;
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 8px;
    color: #eef4ff;
    font-size: .94rem;
    font-weight: 720;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, #1e63ff 0%, #2f73ff 100%);
    box-shadow: 0 14px 26px rgba(47, 115, 255, .34);
}

.sidebar-link.active::before {
    display: none;
}

.sidebar-link.active {
    box-shadow: 0 14px 26px rgba(47, 115, 255, .34);
}

.sidebar-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #d8e3f2;
    background: transparent;
}

.sidebar-link.active .sidebar-icon {
    color: #fff;
}

.sidebar-ai-chip {
    margin-left: auto;
    min-width: 28px;
    min-height: 20px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, .5);
    border-radius: 5px;
    color: #60a5fa;
    font-size: .68rem;
    font-weight: 850;
}

.sidebar-link.active .sidebar-ai-chip {
    border-color: rgba(255, 255, 255, .36);
    color: #fff;
}

@media (min-width: 992px) {
    .pos-shell.sidebar-collapsed .pos-sidebar {
        width: 86px;
        flex-basis: 86px;
        padding: 24px 12px 18px;
        box-shadow: 14px 0 34px rgba(8, 17, 31, .14);
    }

    .pos-shell.sidebar-collapsed .brand-block {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .pos-shell.sidebar-collapsed .brand-logo {
        justify-content: center;
    }

    .pos-shell.sidebar-collapsed .brand-logo > span:last-child,
    .pos-shell.sidebar-collapsed .sidebar-link > span:not(.sidebar-icon),
    .pos-shell.sidebar-collapsed .sidebar-ai-chip {
        display: none;
    }

    .pos-shell.sidebar-collapsed .sidebar-collapse-btn i {
        transform: rotate(180deg);
    }

    .pos-shell.sidebar-collapsed .sidebar-nav {
        width: 100%;
        align-items: center;
        padding-right: 0;
    }

    .pos-shell.sidebar-collapsed .sidebar-link {
        width: 46px;
        min-height: 46px;
        justify-content: center;
        gap: 0;
        padding: 0;
    }

    .pos-shell.sidebar-collapsed .sidebar-icon {
        width: 30px;
        height: 30px;
    }

}

.pos-main {
    background: transparent;
}

.topbar {
    min-height: 86px;
    padding: 22px 32px 14px;
    border-bottom: 0;
    background: rgba(248, 251, 255, .88);
    backdrop-filter: blur(14px);
}

.topbar h1 {
    font-size: 1.55rem;
    font-weight: 850;
}

.topbar-subtitle {
    display: block;
    margin-top: 4px;
    color: #4b5565;
    font-size: .9rem;
}

.topbar-actions {
    gap: 14px;
}

.icon-btn,
.user-chip {
    border-color: var(--pos-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 20px rgba(20, 35, 66, .05);
}

.user-chip {
    min-height: 48px;
    padding: 4px 12px 4px 5px;
}

.avatar {
    border-radius: 8px;
    background: linear-gradient(135deg, #e8f1ff, #dceafe);
}

.content-wrap {
    padding: 10px 32px 32px;
}

.nexa-dashboard {
    position: relative;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 16px;
}

.nexa-metric-card {
    min-height: 122px;
    justify-content: space-between;
    padding: 20px;
    overflow: hidden;
}

.nexa-metric-card > div {
    min-width: 0;
}

.nexa-metric-card span {
    color: #6b7280;
    font-size: .82rem;
    font-weight: 750;
}

.nexa-metric-card strong {
    margin: 7px 0 10px;
    color: #101828;
    font-size: 1.3rem;
    line-height: 1.1;
}

.nexa-metric-card small {
    color: #16a34a;
    font-size: .78rem;
}

.nexa-metric-card small.is-down {
    color: #ef4444;
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.08rem;
}

.metric-primary { color: #2f73ff; background: #eaf2ff; }
.metric-success { color: #26b761; background: #e8f8ee; }
.metric-purple { color: #8b5cf6; background: #f1eaff; }
.metric-warning { color: #f59e0b; background: #fff1d8; }
.metric-info { color: #2f73ff; background: #eaf2ff; }

.dashboard-main-grid,
.dashboard-lower-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

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

.dashboard-lower-grid {
    grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 1fr) minmax(330px, .95fr);
}

.panel-card {
    border-color: var(--pos-border);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(20, 35, 66, .06);
}

.panel-header {
    align-items: flex-start;
    margin-bottom: 16px;
}

.panel-header h3 {
    color: #101828;
    font-size: 1.06rem;
}

.panel-header p {
    margin: 8px 0 0;
    color: #667085;
    font-size: .84rem;
}

.range-pill {
    min-height: 38px;
    border-color: var(--pos-border);
    color: #4b5565;
    font-weight: 700;
}

.chart-legend-inline {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
    color: #667085;
    font-size: .82rem;
    font-weight: 650;
}

.chart-legend-inline span,
.category-legend-item span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.chart-legend-inline i,
.category-legend-item i {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 999px;
    background: var(--dot-color);
}

.sales-chart-box {
    height: 332px;
}

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

.top-product-table th {
    padding: 0 0 10px;
    color: #667085;
    font-size: .76rem;
    font-weight: 750;
}

.top-product-table td {
    padding: 10px 0;
    border-top: 1px solid #edf1f7;
    color: #1f2937;
    font-size: .84rem;
    white-space: nowrap;
}

.top-product-table th:first-child,
.top-product-table td:first-child {
    width: 26px;
}

.table-product {
    min-width: 180px;
}

.category-content {
    display: grid;
    grid-template-columns: minmax(160px, .9fr) minmax(170px, 1fr);
    align-items: center;
    gap: 18px;
}

.nexa-donut-box {
    height: 218px;
}

.donut-center {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    pointer-events: none;
}

.donut-center strong,
.donut-center span {
    display: block;
}

.donut-center strong {
    color: #101828;
    font-size: 1.05rem;
}

.donut-center span {
    color: #667085;
    font-size: .78rem;
}

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

.category-legend-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    color: #101828;
    font-size: .84rem;
}

.category-legend-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-legend-item strong {
    font-weight: 800;
}

.category-legend-item small {
    grid-column: 1 / -1;
    padding-left: 18px;
    color: #667085;
}

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

.quick-action-card {
    min-height: 112px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 1px solid #e4eaf3;
    border-radius: 8px;
    background: #fff;
    color: #101828;
    text-align: center;
    font-size: .82rem;
    font-weight: 750;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.quick-action-card:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--item-color), #fff 24%);
    box-shadow: 0 12px 24px rgba(20, 35, 66, .08);
    color: #101828;
}

.quick-action-card span {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--item-color), #fff 84%);
    color: var(--item-color);
    font-size: 1.2rem;
}

.quick-action-card strong {
    max-width: 100%;
    color: #101828;
    font-size: .8rem;
    line-height: 1.25;
}

.copilot-cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 100%);
    box-shadow: 0 12px 28px rgba(47, 115, 255, .09);
}

.copilot-cta-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 260px;
}

.copilot-robot {
    width: 56px;
    height: 56px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: linear-gradient(135deg, #dff1ff, #bcdcff);
    color: #1d63ff;
    font-size: 1.45rem;
}

.copilot-cta-panel h3 {
    margin: 0;
    color: #1d63ff;
    font-size: 1rem;
    font-weight: 850;
}

.copilot-cta-panel p {
    margin: 6px 0 0;
    color: #4b5565;
    font-size: .82rem;
}

.copilot-question-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.copilot-question-list button:not(.btn) {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: #fff;
    color: #2f73ff;
    font-size: .78rem;
    font-weight: 650;
}

.floating-copilot-btn {
    position: fixed;
    right: 34px;
    bottom: 26px;
    z-index: 25;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f73ff, #1d63ff);
    color: #fff;
    box-shadow: 0 18px 34px rgba(47, 115, 255, .34);
    font-size: 1.55rem;
}

@media (max-width: 1399.98px) {
    .metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-main-grid,
    .dashboard-lower-grid {
        grid-template-columns: 1fr;
    }

    .category-content {
        grid-template-columns: minmax(220px, .8fr) minmax(220px, 1fr);
    }
}

@media (max-width: 991.98px) {
    .topbar {
        padding: 14px 16px;
    }

    .content-wrap {
        padding: 12px 16px 96px;
    }

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

    .copilot-cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .copilot-question-list {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .metric-grid,
    .quick-action-grid,
    .category-content {
        grid-template-columns: 1fr;
    }

    .nexa-metric-card {
        min-height: 112px;
    }

    .sales-chart-box {
        height: 285px;
    }

    .top-product-table {
        min-width: 560px;
    }

    .floating-copilot-btn {
        right: 18px;
        bottom: 86px;
        width: 56px;
        height: 56px;
    }
}

.product-page {
    display: grid;
    gap: 16px;
}

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

.product-page-head h2 {
    margin: 0;
    color: #101828;
    font-size: 1.48rem;
    font-weight: 850;
}

.product-page-head p {
    margin: 6px 0 0;
    color: #4b5565;
    font-size: .9rem;
}

.product-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.product-head-actions .btn,
.product-search-field,
.product-category-field {
    min-height: 44px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(20, 35, 66, .05);
}

.product-bulk-delete-btn,
.product-delete-all-btn {
    white-space: nowrap;
}

.product-bulk-delete-btn:disabled {
    pointer-events: none;
}

.sales-import-head-btn,
.product-import-head-btn {
    border-color: #21a366;
    background: #21a366;
    color: #fff;
    white-space: nowrap;
}

.sales-head-actions .sales-import-head-btn,
.product-head-actions .product-import-head-btn {
    min-height: 36px;
    padding: 0 12px;
    font-size: .82rem;
}

.sales-import-head-btn:hover,
.sales-import-head-btn:focus,
.product-import-head-btn:hover,
.product-import-head-btn:focus {
    border-color: #18864f;
    background: #18864f;
    color: #fff;
}

.product-search-field,
.product-category-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--pos-border);
    background: #fff;
}

.product-search-field {
    width: min(340px, 28vw);
    padding: 0 14px;
}

.product-search-field i,
.product-category-field i {
    color: #526179;
    flex: 0 0 auto;
}

.product-search-field .form-control,
.product-category-field .form-select {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.product-search-field .form-control {
    min-height: 42px;
    padding: 0;
}

.product-category-field {
    min-width: 160px;
    padding: 0 12px;
}

.product-category-field .form-select {
    min-height: 42px;
    padding: 0 20px 0 0;
    background-image: none;
}

.product-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 16px;
}

.product-metric-card {
    min-height: 126px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 35, 66, .06);
}

.product-metric-card > div {
    min-width: 0;
}

.product-metric-card span {
    display: block;
    color: #4b5565;
    font-size: .82rem;
    font-weight: 750;
}

.product-metric-card strong {
    display: block;
    margin: 10px 0 12px;
    color: #101828;
    font-size: 1.25rem;
    line-height: 1.08;
    font-weight: 850;
}

.product-metric-card small {
    color: #16a34a;
    font-size: .78rem;
    font-weight: 800;
}

.product-metric-card .metric-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.product-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(330px, .95fr);
    gap: 16px;
    align-items: start;
}

.product-table-panel {
    padding: 0;
    overflow: hidden;
}

.product-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--pos-border);
}

.product-tabs button {
    min-height: 58px;
    padding: 0 24px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4b5565;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 800;
}

.product-tabs button.active {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
}

.product-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f7;
}

.product-data-table {
    margin: 0 !important;
}

.product-data-table thead th {
    background: #f8fafc;
    color: #4b5565 !important;
    font-size: .76rem !important;
    text-transform: none !important;
}

.product-data-table tbody td {
    border-color: #edf1f7;
}

.product-check-cell {
    width: 38px;
    text-align: center;
}

.product-table-product {
    min-width: 230px;
    gap: 0;
}

.product-thumb {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--item-color), #fff 72%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--item-color), #fff 87%);
    color: var(--item-color);
}

.product-sku,
.product-stock {
    display: grid;
    gap: 2px;
}

.product-sku strong {
    color: #101828;
    font-size: .84rem;
}

.product-sku small,
.product-stock small {
    color: #667085;
    font-size: .76rem;
}

.product-stock strong {
    color: #101828;
    font-size: .88rem;
}

.product-stock.stock-success small {
    color: #16a34a;
}

.product-stock.stock-danger small {
    color: #f59e0b;
}

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

.product-side-panel {
    padding: 16px;
}

.product-category-content {
    display: grid;
    grid-template-columns: minmax(150px, .9fr) minmax(150px, 1fr);
    align-items: center;
    gap: 18px;
}

.product-donut-box {
    position: relative;
    height: 190px;
}

.product-category-legend {
    display: grid;
    gap: 11px;
}

.product-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    color: #101828;
    font-size: .84rem;
}

.product-category-row span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-category-row i {
    width: 10px;
    height: 10px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--dot-color);
}

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

.product-margin-row {
    display: grid;
    grid-template-columns: minmax(90px, 120px) minmax(120px, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #101828;
    font-size: .82rem;
}

.product-margin-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-margin-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf6;
}

.product-margin-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--bar-color, var(--pos-primary));
}

.product-quick-actions {
    padding: 18px;
}

.product-quick-actions h3 {
    margin: 0 0 12px;
    color: #101828;
    font-size: 1rem;
    font-weight: 850;
}

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

.product-action-grid a,
.product-action-grid button {
    min-height: 74px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
}

.product-action-grid a:hover,
.product-action-grid button:hover {
    border-color: color-mix(in srgb, var(--item-color), #fff 30%);
    color: #101828;
}

.product-action-grid i {
    color: var(--item-color);
    font-size: 1.25rem;
}

.product-import-help {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    color: #667085;
    font-size: .82rem;
}

.product-template-download {
    width: fit-content;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 0 13px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d63ff;
    font-size: .84rem;
    font-weight: 800;
}

.product-template-download:hover {
    color: #164fc8;
    background: #e4efff;
}

.product-import-summary {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.customer-page {
    display: grid;
    gap: 16px;
}

.customer-page-head {
    display: flex;
    justify-content: flex-end;
}

.customer-head-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.customer-head-actions .btn,
.customer-search-field,
.customer-inline-search,
.customer-segment-field {
    min-height: 44px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(20, 35, 66, .05);
}

.customer-search-field,
.customer-inline-search,
.customer-segment-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--pos-border);
    background: #fff;
}

.customer-search-field {
    width: min(340px, 28vw);
    padding: 0 14px;
}

.customer-inline-search {
    flex: 1 1 320px;
    padding: 0 12px;
}

.customer-search-field i,
.customer-inline-search i,
.customer-segment-field i {
    color: #526179;
    flex: 0 0 auto;
}

.customer-search-field .form-control,
.customer-inline-search .form-control,
.customer-segment-field .form-select {
    min-height: 42px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.customer-search-field .form-control,
.customer-inline-search .form-control {
    padding: 0;
}

.customer-segment-field {
    flex: 0 0 210px;
    padding: 0 12px;
}

.customer-segment-field .form-select {
    padding: 0 20px 0 0;
    background-image: none;
}

.customer-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 16px;
}

.customer-metric-card {
    min-height: 126px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 35, 66, .06);
}

.customer-metric-card > div {
    min-width: 0;
}

.customer-metric-card span {
    display: block;
    color: #4b5565;
    font-size: .82rem;
    font-weight: 750;
}

.customer-metric-card strong {
    display: block;
    margin: 10px 0 12px;
    color: #101828;
    font-size: 1.25rem;
    line-height: 1.08;
    font-weight: 850;
}

.customer-metric-card .metric-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.customer-delta {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: .78rem;
    font-weight: 800;
}

.customer-delta.is-down {
    color: #ef4444;
}

.customer-delta.is-flat {
    color: #667085;
}

.customer-delta em {
    color: #667085;
    font-style: normal;
    font-weight: 650;
}

.customer-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, .95fr);
    gap: 16px;
    align-items: start;
}

.customer-table-panel {
    padding: 0;
    overflow: hidden;
}

.customer-tabs {
    display: flex;
    align-items: center;
    overflow-x: auto;
    border-bottom: 1px solid var(--pos-border);
}

.customer-tabs button {
    min-height: 58px;
    padding: 0 24px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4b5565;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 800;
}

.customer-tabs button.active {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
}

.customer-table-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f7;
}

.customer-data-table {
    margin: 0 !important;
}

.customer-data-table thead th {
    background: #f8fafc;
    color: #4b5565 !important;
    font-size: .76rem !important;
    text-transform: none !important;
}

.customer-data-table tbody td {
    border-color: #edf1f7;
    color: #344054;
    font-size: .84rem;
}

.customer-table-person {
    min-width: 230px;
    display: grid;
    gap: 3px;
}

.customer-table-person strong,
.customer-table-person small,
.customer-contact,
.customer-address {
    display: block;
}

.customer-table-person strong {
    color: #101828;
    font-size: .88rem;
    font-weight: 850;
}

.customer-table-person small,
.customer-address {
    color: #667085;
    font-size: .74rem;
}

.customer-contact {
    color: #101828;
    font-weight: 750;
}

.customer-side-stack,
.customer-lower-grid {
    display: grid;
    gap: 16px;
}

.customer-side-panel {
    padding: 16px;
}

.customer-segment-content {
    display: grid;
    grid-template-columns: minmax(150px, .88fr) minmax(160px, 1fr);
    align-items: center;
    gap: 18px;
}

.customer-donut-box {
    position: relative;
    height: 190px;
}

.customer-donut-box canvas,
.customer-activity-box canvas {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
}

.customer-donut-box .donut-center {
    z-index: 2;
}

.customer-chart-fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.customer-fallback-donut {
    width: min(150px, 100%);
    aspect-ratio: 1;
    position: relative;
    display: block;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .18);
}

.customer-fallback-donut::after {
    content: "";
    position: absolute;
    inset: 32%;
    border-radius: inherit;
    background: #fff;
    box-shadow: 0 0 0 9px #fff;
}

.customer-segment-legend {
    display: grid;
    gap: 9px;
}

.customer-segment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #101828;
    text-align: left;
    font-size: .82rem;
}

.customer-segment-row span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-segment-row i {
    width: 10px;
    height: 10px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--dot-color);
}

.customer-segment-row strong {
    color: #101828;
    font-size: .8rem;
    font-weight: 850;
}

.customer-quick-actions {
    padding: 16px;
}

.customer-quick-actions h3 {
    margin: 0 0 12px;
    color: #101828;
    font-size: 1rem;
    font-weight: 850;
}

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

.customer-action-grid a,
.customer-action-grid button {
    min-height: 72px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-align: center;
    font-size: .76rem;
    font-weight: 800;
}

.customer-action-grid a:hover,
.customer-action-grid button:hover {
    border-color: color-mix(in srgb, var(--item-color), #fff 30%);
    color: #101828;
}

.customer-action-grid i {
    color: var(--item-color);
    font-size: 1.25rem;
}

.customer-lower-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: stretch;
}

.customer-top-list {
    display: grid;
    gap: 0;
}

.customer-top-row {
    display: grid;
    grid-template-columns: 28px minmax(120px, 1fr) auto minmax(100px, auto) minmax(75px, .8fr) 34px;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
    font-size: .8rem;
}

.customer-top-row:last-child {
    border-bottom: 0;
}

.customer-top-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
}

.customer-top-row em {
    color: #101828;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.customer-rank {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: .72rem;
    font-weight: 850;
}

.customer-rank.rank-1 { color: #b45309; background: #fff1d8; }
.customer-rank.rank-2 { color: #475467; background: #eef2f7; }
.customer-rank.rank-3 { color: #9a3412; background: #ffedd5; }

.customer-spend-track,
.customer-city-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf6;
}

.customer-spend-track i,
.customer-city-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1d63ff;
}

.customer-activity-box {
    position: relative;
    min-height: 235px;
}

.customer-activity-fallback svg {
    width: 100%;
    height: 100%;
}

.customer-activity-fallback line {
    stroke: #e4eaf3;
    stroke-width: 1;
}

.customer-activity-fallback polyline {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.customer-activity-fallback .customer-line-new {
    stroke: #2f73ff;
}

.customer-activity-fallback .customer-line-repeat {
    stroke: #26b761;
}

.customer-activity-fallback text {
    fill: #667085;
    font-size: 12px;
    font-weight: 700;
}

.customer-city-list {
    display: grid;
    gap: 13px;
}

.customer-city-row {
    display: grid;
    grid-template-columns: minmax(90px, 120px) minmax(90px, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #101828;
    font-size: .82rem;
}

.customer-city-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-city-row strong {
    color: #344054;
    font-size: .78rem;
    white-space: nowrap;
}

.supplier-page {
    display: grid;
    gap: 16px;
}

.supplier-page-head {
    display: flex;
    justify-content: flex-end;
}

.supplier-head-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.supplier-head-actions .btn,
.supplier-search-field,
.supplier-inline-search,
.supplier-status-field,
.supplier-category-field {
    min-height: 44px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(20, 35, 66, .05);
}

.supplier-search-field,
.supplier-inline-search,
.supplier-status-field,
.supplier-category-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--pos-border);
    background: #fff;
}

.supplier-search-field {
    width: min(340px, 28vw);
    padding: 0 14px;
}

.supplier-inline-search {
    flex: 1 1 270px;
    padding: 0 12px;
}

.supplier-search-field i,
.supplier-inline-search i,
.supplier-status-field i,
.supplier-category-field i {
    color: #526179;
    flex: 0 0 auto;
}

.supplier-search-field .form-control,
.supplier-inline-search .form-control,
.supplier-status-field .form-select,
.supplier-category-field .form-select {
    min-height: 42px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.supplier-search-field .form-control,
.supplier-inline-search .form-control {
    padding: 0;
}

.supplier-status-field,
.supplier-category-field {
    flex: 0 0 190px;
    padding: 0 12px;
}

.supplier-status-field .form-select,
.supplier-category-field .form-select {
    padding: 0 20px 0 0;
    background-image: none;
}

.supplier-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 16px;
}

.supplier-metric-card {
    min-height: 126px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 35, 66, .06);
}

.supplier-metric-card > div {
    min-width: 0;
}

.supplier-metric-card span {
    display: block;
    color: #4b5565;
    font-size: .82rem;
    font-weight: 750;
}

.supplier-metric-card strong {
    display: block;
    margin: 10px 0 12px;
    color: #101828;
    font-size: 1.25rem;
    line-height: 1.08;
    font-weight: 850;
}

.supplier-metric-card .metric-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.supplier-delta {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: .78rem;
    font-weight: 800;
}

.supplier-delta.is-down {
    color: #ef4444;
}

.supplier-delta.is-flat {
    color: #667085;
}

.supplier-delta em {
    color: #667085;
    font-style: normal;
    font-weight: 650;
}

.supplier-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, .95fr);
    gap: 16px;
    align-items: start;
}

.supplier-table-panel {
    padding: 0;
    overflow: hidden;
}

.supplier-tabs {
    display: flex;
    align-items: center;
    overflow-x: auto;
    border-bottom: 1px solid var(--pos-border);
}

.supplier-tabs button {
    min-height: 58px;
    padding: 0 24px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4b5565;
    white-space: nowrap;
    font-size: .9rem;
    font-weight: 800;
}

.supplier-tabs button.active {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
}

.supplier-tab-pane {
    display: none;
}

.supplier-tab-pane.active {
    display: block;
}

.supplier-table-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f7;
}

.supplier-data-table {
    margin: 0 !important;
}

.supplier-data-table thead th {
    background: #f8fafc;
    color: #4b5565 !important;
    font-size: .76rem !important;
    text-transform: none !important;
}

.supplier-data-table tbody td {
    border-color: #edf1f7;
    color: #344054;
    font-size: .84rem;
}

.supplier-table-person {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.supplier-table-person strong,
.supplier-table-person small,
.supplier-contact,
.supplier-address {
    display: block;
}

.supplier-table-person strong {
    color: #101828;
    font-size: .88rem;
    font-weight: 850;
}

.supplier-table-person small,
.supplier-address {
    color: #667085;
    font-size: .74rem;
}

.supplier-contact {
    color: #101828;
    font-weight: 750;
}

.supplier-category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--item-color), #fff 82%);
    color: color-mix(in srgb, var(--item-color), #111827 30%);
    font-size: .72rem;
    font-weight: 850;
    white-space: nowrap;
}

.supplier-lead-time {
    color: #101828;
    font-weight: 800;
    white-space: nowrap;
}

.supplier-side-stack,
.supplier-lower-grid {
    display: grid;
    gap: 16px;
}

.supplier-side-panel {
    padding: 16px;
}

.supplier-top-list,
.supplier-due-list {
    display: grid;
    gap: 0;
}

.supplier-top-row {
    display: grid;
    grid-template-columns: 24px minmax(120px, 1fr) minmax(90px, .8fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
    font-size: .8rem;
}

.supplier-top-row:last-child {
    border-bottom: 0;
}

.supplier-top-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
}

.supplier-top-row em,
.supplier-simple-row b {
    color: #101828;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.supplier-top-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf6;
}

.supplier-top-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #1d63ff;
}

.supplier-simple-table {
    display: grid;
    gap: 0;
    padding: 6px 16px 16px;
}

.supplier-simple-row {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(170px, 1.2fr) minmax(110px, auto) minmax(100px, auto) auto;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
    color: #344054;
    font-size: .82rem;
}

.supplier-simple-row:last-child {
    border-bottom: 0;
}

.supplier-simple-row strong {
    color: #101828;
    font-size: .82rem;
}

.supplier-simple-row span,
.supplier-simple-row small {
    display: block;
}

.supplier-simple-row small {
    margin-top: 2px;
    color: #667085;
    font-size: .72rem;
}

.supplier-simple-row em {
    color: #667085;
    font-style: normal;
    font-size: .76rem;
}

.supplier-lower-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
}

.supplier-due-row {
    display: grid;
    grid-template-columns: minmax(110px, 1fr) auto minmax(86px, auto) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
    color: #344054;
    font-size: .8rem;
}

.supplier-due-row:last-child {
    border-bottom: 0;
}

.supplier-due-row span:first-child {
    color: #101828;
    font-weight: 800;
}

.supplier-due-row strong {
    color: #101828;
    white-space: nowrap;
}

.supplier-due-row em {
    color: #667085;
    font-style: normal;
    white-space: nowrap;
}

.supplier-performance-table {
    margin: 0;
}

.supplier-performance-table th {
    color: #667085;
    font-size: .72rem;
    font-weight: 800;
}

.supplier-performance-table td {
    color: #101828;
    font-size: .8rem;
}

.supplier-category-content {
    display: grid;
    grid-template-columns: minmax(135px, .85fr) minmax(160px, 1fr);
    align-items: center;
    gap: 16px;
}

.supplier-donut-box {
    position: relative;
    height: 190px;
}

.supplier-category-legend {
    display: grid;
    gap: 9px;
}

.supplier-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #101828;
    text-align: left;
    font-size: .82rem;
}

.supplier-category-row span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supplier-category-row i {
    width: 10px;
    height: 10px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--dot-color);
}

.supplier-category-row strong {
    color: #101828;
    font-size: .8rem;
    font-weight: 850;
    white-space: nowrap;
}

.supplier-quick-actions {
    padding: 18px;
}

.supplier-quick-actions h3 {
    margin-bottom: 12px;
}

.supplier-action-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.supplier-action-grid a,
.supplier-action-grid button {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-align: center;
    font-size: .8rem;
    font-weight: 800;
}

.supplier-action-grid a:hover,
.supplier-action-grid button:hover {
    border-color: color-mix(in srgb, var(--item-color), #fff 30%);
    color: #101828;
}

.supplier-action-grid i {
    color: var(--item-color);
    font-size: 1rem;
}

.inventory-page {
    display: grid;
    gap: 16px;
}

.inventory-page-head {
    display: flex;
    justify-content: flex-end;
}

.inventory-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.inventory-head-actions .btn {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 750;
}

.inventory-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.inventory-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 16px;
}

.inventory-metric-card {
    min-height: 126px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 35, 66, .06);
}

.inventory-metric-card > div {
    min-width: 0;
}

.inventory-metric-card span {
    display: block;
    color: #4b5565;
    font-size: .82rem;
    font-weight: 750;
}

.inventory-metric-card strong {
    display: block;
    margin: 10px 0 12px;
    color: #101828;
    font-size: 1.25rem;
    line-height: 1.08;
    font-weight: 850;
}

.inventory-metric-card .metric-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.inventory-delta {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: .78rem;
    font-weight: 800;
}

.inventory-delta.is-down {
    color: #ef4444;
}

.inventory-delta.is-flat,
.inventory-card-caption {
    color: #667085;
}

.inventory-delta em {
    color: #667085;
    font-style: normal;
    font-weight: 650;
}

.inventory-card-caption {
    display: block;
    font-size: .78rem;
    font-weight: 800;
}

.inventory-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(340px, .95fr);
    gap: 16px;
    align-items: start;
}

.inventory-main-stack,
.inventory-side-stack {
    display: grid;
    gap: 16px;
}

.inventory-summary-panel {
    padding: 0;
    overflow: hidden;
}

.inventory-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--pos-border);
}

.inventory-tabs button {
    min-height: 58px;
    padding: 0 22px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4b5565;
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 800;
}

.inventory-tabs button.active {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
}

.inventory-tab-pane {
    display: none;
    padding: 16px;
}

.inventory-tab-pane.active {
    display: block;
}

.inventory-tab-pane h3,
.inventory-tab-pane h4,
.inventory-quick-actions h3 {
    margin: 0;
    color: #101828;
    font-size: 1rem;
    font-weight: 850;
}

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

.inventory-status-card {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
}

.inventory-status-card small,
.inventory-status-card strong,
.inventory-status-card em {
    display: block;
}

.inventory-status-card small {
    color: #344054;
    font-size: .78rem;
    font-weight: 750;
}

.inventory-status-card strong {
    margin-top: 4px;
    color: #101828;
    font-size: 1.05rem;
    line-height: 1;
    font-weight: 850;
}

.inventory-status-card em {
    margin-top: 4px;
    font-style: normal;
    font-size: .72rem;
    font-weight: 800;
}

.inventory-status-card > i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.inventory-status-card.status-success { background: #ecfdf3; border-color: #d1fadf; color: #16a34a; }
.inventory-status-card.status-warning { background: #fffbeb; border-color: #fdecc8; color: #f59e0b; }
.inventory-status-card.status-danger { background: #fef2f2; border-color: #fee2e2; color: #ef4444; }
.inventory-status-card.status-primary { background: #eff6ff; border-color: #dbeafe; color: #2f73ff; }

.inventory-chart-head,
.inventory-opname-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.inventory-chart-box {
    position: relative;
    height: 245px;
}

.inventory-side-panel {
    padding: 16px;
}

.inventory-side-panel .panel-header p {
    margin: 6px 0 0;
    color: #4b5565;
    font-size: .82rem;
}

.inventory-recommendation-list {
    display: grid;
    gap: 0;
}

.inventory-recommendation-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f7;
}

.inventory-recommendation-row:last-child {
    border-bottom: 0;
}

.inventory-product-thumb {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid color-mix(in srgb, var(--item-color), #fff 72%);
    border-radius: 8px;
    background: color-mix(in srgb, var(--item-color), #fff 87%);
    color: var(--item-color);
}

.inventory-recommendation-row strong,
.inventory-recommendation-row small,
.inventory-recommendation-row em {
    display: block;
}

.inventory-recommendation-row strong {
    overflow: hidden;
    color: #101828;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 850;
}

.inventory-recommendation-row small {
    margin-top: 3px;
    color: #667085;
    font-size: .76rem;
}

.inventory-recommendation-row em {
    color: #344054;
    font-style: normal;
    font-size: .76rem;
    font-weight: 750;
    white-space: nowrap;
}

.inventory-recommendation-row .btn,
.inventory-reorder-card .btn {
    min-height: 32px;
    border-color: #cfe0ff;
    color: #1d63ff;
    font-size: .76rem;
    font-weight: 800;
}

.inventory-panel-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pos-primary);
    font-size: .82rem;
    font-weight: 800;
}

.inventory-movement-list {
    display: grid;
    gap: 12px;
}

.inventory-movement-row {
    display: grid;
    grid-template-columns: 34px minmax(105px, 145px) minmax(90px, 1fr) auto;
    align-items: center;
    gap: 12px;
    color: #101828;
    font-size: .82rem;
}

.inventory-movement-row strong {
    font-size: .82rem;
    font-weight: 800;
}

.inventory-movement-row em {
    color: #344054;
    font-style: normal;
    font-size: .78rem;
    white-space: nowrap;
}

.movement-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
}

.movement-success { color: #16a34a; background: #ecfdf3; }
.movement-primary { color: #2f73ff; background: #eff6ff; }
.movement-info { color: #0891b2; background: #ecfeff; }
.movement-danger { color: #ef4444; background: #fef2f2; }
.movement-warning { color: #f59e0b; background: #fffbeb; }

.inventory-movement-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf6;
}

.inventory-movement-track i {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
}

.inventory-low-panel {
    padding: 16px;
}

.inventory-low-table,
.inventory-compact-table {
    margin: 0;
}

.inventory-low-table thead th,
.inventory-compact-table thead th {
    color: #4b5565;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.inventory-low-table tbody td,
.inventory-compact-table tbody td {
    border-color: #edf1f7;
    color: #344054;
    font-size: .84rem;
    vertical-align: middle;
}

.inventory-compact-table td strong,
.inventory-compact-table td small {
    display: block;
}

.inventory-compact-table td small {
    color: #667085;
    font-size: .74rem;
}

.inventory-product-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.inventory-product-cell strong,
.inventory-product-cell small {
    display: block;
}

.inventory-product-cell strong {
    color: #101828;
    font-size: .86rem;
}

.inventory-product-cell small {
    color: #667085;
    font-size: .74rem;
}

.inventory-icon-action {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: #fff;
    color: var(--pos-primary);
}

.inventory-reorder-grid {
    display: grid;
    gap: 12px;
}

.inventory-reorder-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
}

.inventory-reorder-card strong,
.inventory-reorder-card small,
.inventory-reorder-card em {
    display: block;
}

.inventory-reorder-card strong {
    color: #101828;
    font-size: .9rem;
    font-weight: 850;
}

.inventory-reorder-card small {
    margin-top: 3px;
    color: #667085;
    font-size: .78rem;
}

.inventory-reorder-card em {
    margin-top: 5px;
    color: #344054;
    font-style: normal;
    font-size: .78rem;
    font-weight: 800;
}

.inventory-quick-actions {
    padding: 18px;
}

.inventory-quick-actions h3 {
    margin-bottom: 12px;
}

.inventory-action-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.inventory-action-grid a,
.inventory-action-grid button {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-align: center;
    font-size: .8rem;
    font-weight: 800;
}

.inventory-action-grid a:hover,
.inventory-action-grid button:hover {
    border-color: color-mix(in srgb, var(--item-color), #fff 30%);
    color: #101828;
}

.inventory-action-grid i {
    color: var(--item-color);
    font-size: 1rem;
}

.expense-page {
    display: grid;
    gap: 16px;
}

.expense-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.expense-head-title h2 {
    margin: 0;
    color: #101828;
    font-size: 1.48rem;
    font-weight: 850;
}

.expense-head-title p {
    margin: 6px 0 0;
    color: #4b5565;
    font-size: .9rem;
}

.expense-head-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}

.expense-head-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(20, 35, 66, .05);
}

.expense-head-actions .btn.btn-sm {
    min-height: 34px;
}

.expense-head-actions .btn i {
    margin-right: 0 !important;
    line-height: 1;
}

.expense-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.15fr) minmax(330px, .9fr);
    gap: 16px;
    align-items: start;
}

.expense-main-stack {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.expense-guide-card {
    padding: 18px 20px 0;
    overflow: hidden;
}

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

.expense-guide-column h3,
.expense-form-card h3 {
    margin: 0 0 10px;
    color: #101828;
    font-size: 1rem;
    font-weight: 850;
}

.expense-guide-column > p {
    margin: 0 0 14px;
    color: #4b5565;
    font-size: .84rem;
    line-height: 1.55;
}

.expense-guide-item {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 11px;
    padding: 8px 0;
}

.expense-guide-item > i,
.expense-category-name i {
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-top: 5px;
    border-radius: 999px;
    background: var(--dot-color);
}

.expense-guide-item strong,
.expense-guide-item small,
.expense-guide-item em {
    display: block;
}

.expense-guide-item strong {
    font-size: .84rem;
    font-weight: 850;
}

.expense-guide-item small,
.expense-guide-item em {
    color: #344054;
    font-size: .8rem;
    line-height: 1.5;
}

.expense-guide-item em {
    margin-top: 2px;
    font-style: normal;
}

.expense-guide-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 0;
    border-top: 1px solid #dfe7f2;
    color: #4338ca;
    font-size: .8rem;
    font-weight: 800;
}

.expense-list-panel {
    padding: 0;
    overflow: hidden;
}

.expense-tabs {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 18px;
    border-bottom: 1px solid var(--pos-border);
    overflow-x: auto;
}

.expense-tabs button {
    min-height: 54px;
    padding: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4b5565;
    white-space: nowrap;
    font-size: .86rem;
    font-weight: 850;
}

.expense-tabs button.active {
    border-color: #4f46e5;
    color: #4f46e5;
}

.expense-filter-row {
    display: grid;
    grid-template-columns: minmax(230px, auto) minmax(160px, auto) minmax(240px, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
}

.expense-filter-field {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #526179;
}

.expense-filter-field input,
.expense-filter-field select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #344054;
    font-size: .82rem;
    font-weight: 750;
}

.expense-filter-field select {
    appearance: none;
    padding-right: 4px;
}

.expense-date-filter input {
    width: 118px;
}

.expense-search-filter {
    width: 100%;
}

.expense-tab-pane {
    display: none;
}

.expense-tab-pane.active {
    display: block;
}

.expense-summary-table {
    width: 100%;
    min-width: 830px;
    margin: 0;
    border-collapse: collapse;
}

.expense-summary-table th,
.expense-summary-table td {
    padding: 12px 18px;
    border-top: 1px solid #edf1f7;
    color: #344054;
    font-size: .82rem;
    vertical-align: middle;
}

.expense-summary-table thead th {
    border-top: 0;
    background: #f8fafc;
    color: #4b5565;
    font-size: .74rem;
    font-weight: 850;
}

.expense-summary-table td strong {
    color: #101828;
    font-weight: 850;
}

.expense-category-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.expense-category-name i {
    margin-top: 0;
}

.expense-category-line td:first-child small {
    display: inline-block;
    margin-left: 16px;
    color: #667085;
    font-size: .76rem;
}

.expense-percent,
.expense-total-percent {
    min-width: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--item-color, #4f46e5), #fff 84%);
    color: var(--item-color, #4f46e5);
    font-size: .78rem;
    font-weight: 850;
}

.expense-total-percent {
    --item-color: #101828;
    background: #101828;
    color: #fff;
}

.expense-toggle {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #172033;
}

.expense-toggle.active i {
    transform: rotate(180deg);
}

.expense-subcategory-line td {
    padding-top: 7px;
    padding-bottom: 7px;
    background: #fcfdff;
    font-size: .78rem;
}

.expense-subcategory-line td:first-child {
    padding-left: 42px;
}

.expense-subcategory-line span {
    color: #172033;
    font-weight: 700;
}

.expense-summary-table tfoot td {
    border-top: 1px solid #dfe7f2;
    color: #101828;
    font-weight: 850;
}

.expense-record-list {
    display: grid;
    gap: 0;
    padding: 0 18px 14px;
}

.expense-record-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(80px, auto) auto auto;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-top: 1px solid #edf1f7;
}

.expense-record-row strong,
.expense-record-row small {
    display: block;
}

.expense-record-row strong {
    color: #101828;
    font-size: .86rem;
    font-weight: 850;
}

.expense-record-row small {
    margin-top: 3px;
    color: #667085;
    font-size: .77rem;
}

.expense-record-row em {
    color: #344054;
    font-style: normal;
    font-size: .8rem;
    font-weight: 750;
}

.expense-record-row b {
    color: #101828;
    white-space: nowrap;
    font-size: .84rem;
}

.expense-row-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 6px;
}

.expense-form-card {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.expense-form-card form {
    display: grid;
    gap: 16px;
}

.expense-form-field {
    display: grid;
    gap: 8px;
    margin: 0;
}

.expense-form-field > span {
    color: #172033;
    font-size: .8rem;
    font-weight: 850;
}

.expense-form-field b {
    color: #ef4444;
}

.expense-input-icon,
.expense-money-input {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #d7dfec;
    border-radius: 8px;
    background: #fff;
    color: #536179;
}

.expense-input-icon {
    padding: 0 12px;
}

.expense-input-icon input,
.expense-input-icon select,
.expense-money-input input,
.expense-form-field textarea {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #344054;
    font-size: .82rem;
    font-weight: 700;
}

.expense-input-icon select {
    appearance: none;
}

.expense-money-input {
    overflow: hidden;
}

.expense-money-input span {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-right: 1px solid #d7dfec;
    color: #101828;
    font-size: .8rem;
    font-weight: 850;
}

.expense-money-input input {
    min-height: 42px;
    padding: 0 12px 0 0;
}

.expense-form-field textarea {
    min-height: 126px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d7dfec;
    border-radius: 8px;
}

.expense-form-field > small {
    justify-self: end;
    color: #667085;
    font-size: .76rem;
    font-weight: 750;
}

.expense-form-field > small em {
    font-style: normal;
}

.expense-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 6px;
}

.expense-form-actions .btn {
    min-width: 96px;
    min-height: 42px;
    border-radius: 8px;
    font-weight: 850;
}

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

    .expense-form-card {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .expense-page-head {
        flex-direction: column;
    }

    .expense-head-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .expense-guide-grid,
    .expense-filter-row {
        grid-template-columns: 1fr;
    }

    .expense-date-filter {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .expense-guide-card,
    .expense-form-card {
        padding: 16px;
    }

    .expense-tabs {
        gap: 18px;
    }

    .expense-tabs button {
        min-height: 50px;
        font-size: .84rem;
    }

    .expense-record-row {
        grid-template-columns: 1fr;
    }

    .expense-row-actions {
        justify-content: flex-start;
    }

    .expense-date-filter {
        flex-wrap: wrap;
    }
}

.finance-page {
    display: grid;
    gap: 16px;
}

.finance-page-head {
    display: flex;
    justify-content: flex-end;
}

.finance-head-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.finance-head-actions .btn,
.finance-date-btn {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(20, 35, 66, .05);
}

.finance-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.finance-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    gap: 16px;
}

.finance-metric-card {
    min-height: 126px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 35, 66, .06);
}

.finance-metric-card > div {
    min-width: 0;
}

.finance-metric-card span {
    display: block;
    color: #4b5565;
    font-size: .82rem;
    font-weight: 750;
}

.finance-metric-card strong {
    display: block;
    margin: 10px 0 12px;
    color: #101828;
    font-size: 1.2rem;
    line-height: 1.08;
    font-weight: 850;
}

.finance-metric-card .metric-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.finance-delta {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: .78rem;
    font-weight: 800;
}

.finance-delta.is-down {
    color: #ef4444;
}

.finance-delta.is-flat {
    color: #667085;
}

.finance-delta em {
    color: #667085;
    font-style: normal;
    font-weight: 650;
}

.finance-card-link {
    color: var(--pos-primary);
    font-size: .78rem;
    font-weight: 850;
}

.finance-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(340px, .95fr);
    gap: 16px;
    align-items: start;
}

.finance-main-stack,
.finance-side-stack {
    display: grid;
    gap: 16px;
}

.finance-summary-panel {
    padding: 0;
    overflow: hidden;
}

.finance-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid var(--pos-border);
}

.finance-tabs button {
    min-height: 58px;
    padding: 0 22px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: #4b5565;
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 800;
}

.finance-tabs button.active {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
}

.finance-tab-pane {
    display: none;
    padding: 16px;
}

.finance-tab-pane.active {
    display: block;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, .95fr);
    gap: 16px;
}

.finance-panel-title {
    display: flex;
    align-items: center;
    gap: 7px;
}

.finance-panel-title h3,
.finance-cash-card h3,
.finance-quick-actions h3 {
    margin: 0;
    color: #101828;
    font-size: 1rem;
    font-weight: 850;
}

.finance-info-dot {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    color: #2f73ff;
    font-size: .68rem;
    font-weight: 850;
}

.finance-chart-legend {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 14px 0 10px;
    color: #344054;
    flex-wrap: wrap;
    font-size: .78rem;
    font-weight: 750;
}

.finance-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.finance-chart-legend i,
.finance-category-row i {
    width: 10px;
    height: 10px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--dot-color);
}

.finance-cash-chart {
    position: relative;
    height: 258px;
}

.finance-cash-card {
    display: grid;
    gap: 14px;
}

.finance-summary-lines {
    display: grid;
    gap: 0;
}

.finance-summary-lines div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
    font-size: .86rem;
}

.finance-summary-lines span {
    color: #344054;
    font-weight: 650;
}

.finance-summary-lines strong {
    font-size: .86rem;
    font-weight: 850;
    white-space: nowrap;
}

.finance-summary-lines .finance-total-line {
    border-bottom: 0;
    padding-top: 12px;
}

.finance-summary-lines .finance-total-line strong {
    color: var(--pos-primary);
    font-size: 1.05rem;
}

.finance-health-note {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 13px;
    border-radius: 8px;
    border: 1px solid #d8e8ff;
    background: #eef6ff;
    color: #1d63ff;
}

.finance-health-note i {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
}

.finance-health-note strong,
.finance-health-note small {
    display: block;
}

.finance-health-note strong {
    color: #1d63ff;
    font-size: .85rem;
    font-weight: 850;
}

.finance-health-note small {
    margin-top: 3px;
    color: #344054;
    font-size: .78rem;
    line-height: 1.35;
}

.finance-health-warning {
    border-color: #fdecc8;
    background: #fffbeb;
    color: #f59e0b;
}

.finance-health-warning strong {
    color: #b45309;
}

.finance-health-danger {
    border-color: #fee2e2;
    background: #fef2f2;
    color: #ef4444;
}

.finance-health-danger strong {
    color: #b91c1c;
}

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

.finance-account-card {
    min-height: 82px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
}

.finance-account-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
}

.finance-account-card strong,
.finance-account-card small,
.finance-account-card em {
    display: block;
}

.finance-account-card strong {
    color: #101828;
    font-size: .9rem;
    font-weight: 850;
}

.finance-account-card small {
    margin-top: 4px;
    color: #667085;
    font-size: .76rem;
}

.finance-account-card em {
    color: #101828;
    font-style: normal;
    font-size: .88rem;
    font-weight: 850;
    white-space: nowrap;
}

.finance-simple-list {
    display: grid;
    gap: 0;
}

.finance-simple-row {
    display: grid;
    grid-template-columns: minmax(170px, 1fr) minmax(150px, .85fr) minmax(80px, auto) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f7;
    color: #344054;
    font-size: .82rem;
}

.finance-simple-row:last-child {
    border-bottom: 0;
}

.finance-simple-row strong {
    overflow: hidden;
    color: #101828;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .86rem;
    font-weight: 850;
}

.finance-simple-row span {
    color: #667085;
}

.finance-simple-row em {
    color: #344054;
    font-style: normal;
    font-weight: 750;
}

.finance-simple-row b {
    color: #101828;
    font-weight: 850;
    white-space: nowrap;
}

.finance-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
    gap: 16px;
}

.finance-transaction-panel,
.finance-category-panel,
.finance-side-panel {
    padding: 16px;
}

.finance-transaction-table {
    margin: 0;
}

.finance-transaction-table thead th {
    color: #4b5565;
    font-size: .74rem;
    font-weight: 850;
    white-space: nowrap;
}

.finance-transaction-table tbody td {
    border-color: #edf1f7;
    color: #344054;
    font-size: .8rem;
    vertical-align: middle;
    white-space: nowrap;
}

.finance-transaction-table tbody td:nth-child(2) {
    min-width: 170px;
    white-space: normal;
}

.finance-transaction-table strong {
    color: #101828;
    font-size: .82rem;
}

.finance-category-content {
    display: grid;
    grid-template-columns: minmax(150px, .85fr) minmax(170px, 1fr);
    align-items: center;
    gap: 16px;
}

.finance-donut-box {
    position: relative;
    height: 190px;
}

.finance-category-legend {
    display: grid;
    gap: 10px;
}

.finance-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    color: #101828;
    font-size: .8rem;
}

.finance-category-row span {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.finance-category-row strong {
    font-weight: 850;
}

.finance-category-row small {
    grid-column: 1 / -1;
    padding-left: 18px;
    color: #667085;
    font-size: .74rem;
}

.finance-panel-link {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 0 12px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    background: #fff;
    color: var(--pos-primary);
    font-size: .82rem;
    font-weight: 850;
}

.finance-due-list {
    display: grid;
    gap: 0;
}

.finance-due-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
}

.finance-due-row:last-child {
    border-bottom: 0;
}

.finance-due-icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}

.due-danger { color: #ef4444; background: #fef2f2; }
.due-warning { color: #f59e0b; background: #fffbeb; }
.due-success { color: #16a34a; background: #ecfdf3; }
.due-primary { color: #2f73ff; background: #eff6ff; }

.finance-due-row strong,
.finance-due-row small,
.finance-due-row em {
    display: block;
}

.finance-due-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
    font-weight: 850;
}

.finance-due-row small {
    margin-top: 3px;
    color: #667085;
    font-size: .74rem;
    font-weight: 650;
}

.finance-due-row em {
    color: #101828;
    font-style: normal;
    font-size: .82rem;
    font-weight: 850;
    white-space: nowrap;
}

.finance-quick-actions {
    padding: 18px;
}

.finance-quick-actions h3 {
    margin-bottom: 12px;
}

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

.finance-action-grid a,
.finance-action-grid button {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #344054;
    text-align: center;
    font-size: .78rem;
    font-weight: 800;
}

.finance-action-grid a:hover,
.finance-action-grid button:hover {
    border-color: color-mix(in srgb, var(--item-color), #fff 30%);
    color: #101828;
}

.finance-action-grid i {
    color: var(--item-color);
    font-size: 1rem;
}

.report-page {
    display: grid;
    gap: 16px;
}

.report-page-head {
    display: flex;
    justify-content: flex-end;
}

.report-head-actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.report-head-actions .btn,
.report-date-btn {
    min-height: 44px;
    border-radius: 8px;
    font-weight: 750;
    box-shadow: 0 8px 20px rgba(20, 35, 66, .05);
}

.report-date-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.report-filter-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.report-period-field {
    min-height: 44px;
    display: inline-grid;
    grid-template-columns: auto 142px;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 35, 66, .04);
}

.report-period-field span {
    color: #667085;
    font-size: .74rem;
    font-weight: 850;
}

.report-period-field .form-control,
.report-outlet-select {
    min-height: 32px;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 750;
}

.report-outlet-select {
    width: 172px;
    min-height: 44px;
}

.report-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 10px;
}

.report-type-card {
    min-height: 88px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #101828;
    text-align: left;
    box-shadow: 0 8px 22px rgba(20, 35, 66, .04);
}

.report-type-card.active {
    border-color: #9ec0ff;
    background: #f7fbff;
    box-shadow: inset 0 0 0 1px #d8e6ff, 0 10px 26px rgba(47, 115, 255, .08);
}

.report-type-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
}

.report-type-card strong,
.report-type-card small {
    display: block;
    min-width: 0;
}

.report-type-card strong {
    color: #101828;
    font-size: .86rem;
    font-weight: 850;
}

.report-type-card small {
    margin-top: 4px;
    color: #667085;
    font-size: .72rem;
    line-height: 1.25;
}

.report-metric-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 16px;
}

.report-metric-card {
    min-height: 126px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 35, 66, .06);
}

.report-metric-card > div {
    min-width: 0;
}

.report-metric-card span {
    display: block;
    color: #4b5565;
    font-size: .82rem;
    font-weight: 750;
}

.report-metric-card strong {
    display: block;
    margin: 10px 0 12px;
    color: #101828;
    font-size: 1.22rem;
    line-height: 1.08;
    font-weight: 850;
}

.report-metric-card .metric-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.report-delta {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    color: #16a34a;
    font-size: .78rem;
    font-weight: 800;
}

.report-delta.is-down {
    color: #ef4444;
}

.report-delta.is-flat {
    color: #667085;
}

.report-delta em {
    color: #667085;
    font-style: normal;
    font-weight: 650;
}

.report-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(420px, .95fr);
    gap: 16px;
    align-items: stretch;
}

.report-main-grid.is-single-panel,
.report-lower-grid.is-single-panel,
.report-detail-grid.is-single-panel,
.report-bottom-grid.is-single-panel {
    grid-template-columns: minmax(0, 1fr);
}

.report-chart-panel,
.report-top-panel,
.report-cashier-panel,
.report-finance-panel,
.report-category-panel,
.report-outlet-panel,
.report-popular-panel,
.report-customer-panel,
.report-inventory-panel {
    padding: 16px;
}

.report-chart-legend {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 16px;
    color: #344054;
    flex-wrap: wrap;
    font-size: .78rem;
    font-weight: 750;
}

.report-chart-legend span,
.report-category-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.report-chart-legend i,
.report-category-row i {
    width: 10px;
    height: 10px;
    display: inline-block;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--dot-color);
}

.report-sales-chart {
    position: relative;
    height: 330px;
}

.report-product-table th,
.report-product-table td {
    white-space: nowrap;
}

.report-cashier-table th:first-child,
.report-cashier-table td:first-child {
    min-width: 160px;
}

.report-cashier-table th:nth-child(2),
.report-cashier-table td:nth-child(2) {
    min-width: 130px;
}

.report-cashier-table td strong {
    color: #101828;
}

.report-lower-grid {
    display: grid;
    grid-template-columns: minmax(270px, .78fr) minmax(360px, 1fr) minmax(360px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.report-finance-list {
    display: grid;
    gap: 0;
}

.report-finance-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f7;
}

.report-finance-row:last-child {
    border-bottom: 0;
}

.report-finance-row .metric-icon {
    width: 30px;
    height: 30px;
    font-size: .82rem;
}

.report-finance-row strong {
    overflow: hidden;
    color: #101828;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
    font-weight: 850;
}

.report-finance-row em {
    color: #101828;
    font-style: normal;
    font-size: .82rem;
    font-weight: 850;
    white-space: nowrap;
}

.report-category-content {
    display: grid;
    grid-template-columns: minmax(150px, .9fr) minmax(170px, 1fr);
    align-items: center;
    gap: 16px;
}

.report-donut-box {
    position: relative;
    height: 198px;
}

.report-category-legend {
    display: grid;
    gap: 10px;
}

.report-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    color: #101828;
    font-size: .8rem;
}

.report-category-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-category-row strong {
    font-weight: 850;
}

.report-category-row small {
    grid-column: 1 / -1;
    padding-left: 18px;
    color: #667085;
    font-size: .74rem;
}

.report-outlet-list {
    display: grid;
    gap: 0;
}

.report-outlet-row {
    display: grid;
    grid-template-columns: minmax(110px, .9fr) minmax(120px, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
    font-size: .82rem;
}

.report-outlet-row:last-child {
    border-bottom: 0;
}

.report-outlet-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 850;
}

.report-outlet-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf4;
}

.report-outlet-track i {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: #2f73ff;
}

.report-outlet-row em {
    color: #101828;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.report-outlet-row span {
    color: #344054;
    font-weight: 800;
    white-space: nowrap;
}

.report-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(360px, .82fr);
    gap: 16px;
    align-items: stretch;
}

.report-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

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

.report-mini-card {
    min-height: 118px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 4px 10px;
    padding: 12px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
}

.report-mini-card .metric-icon {
    width: 34px;
    height: 34px;
    grid-row: 1 / -1;
    font-size: .86rem;
}

.report-mini-card strong,
.report-mini-card em,
.report-mini-card small {
    min-width: 0;
}

.report-mini-card strong {
    overflow: hidden;
    color: #4b5565;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .74rem;
    font-weight: 800;
}

.report-mini-card em {
    overflow-wrap: anywhere;
    color: #101828;
    font-style: normal;
    font-size: .95rem;
    line-height: 1.12;
    font-weight: 850;
}

.report-mini-card .report-delta {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .68rem;
    line-height: 1.2;
}

.report-delta b {
    color: #667085;
    font-weight: 650;
}

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

.report-split-grid h4 {
    margin: 0 0 10px;
    color: #101828;
    font-size: .9rem;
    font-weight: 850;
}

.report-ranked-list,
.report-stock-list {
    display: grid;
    gap: 0;
}

.report-ranked-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(120px, .85fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
}

.report-ranked-row:last-child,
.report-stock-row:last-child {
    border-bottom: 0;
}

.report-ranked-row span,
.report-stock-row span:nth-child(2) {
    min-width: 0;
}

.report-ranked-row strong,
.report-ranked-row small,
.report-stock-row strong,
.report-stock-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-ranked-row strong,
.report-stock-row strong {
    color: #101828;
    font-size: .82rem;
    font-weight: 850;
}

.report-ranked-row small,
.report-stock-row small {
    margin-top: 3px;
    color: #667085;
    font-size: .72rem;
}

.report-ranked-row em,
.report-stock-row em {
    color: #101828;
    font-style: normal;
    font-size: .78rem;
    font-weight: 850;
    white-space: nowrap;
}

.report-stock-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f7;
}

.report-stock-row .metric-icon {
    width: 30px;
    height: 30px;
    font-size: .8rem;
}

.report-popular-panel h3 {
    margin: 0 0 12px;
    color: #101828;
    font-size: 1rem;
    font-weight: 850;
}

.report-popular-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.report-popular-card {
    min-height: 78px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 4px 10px;
    padding: 12px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
    color: #101828;
}

.report-popular-card:hover {
    border-color: #bfd4ff;
    color: #101828;
    box-shadow: 0 10px 24px rgba(20, 35, 66, .07);
}

.report-popular-card .metric-icon {
    width: 34px;
    height: 34px;
    grid-row: 1 / -1;
    font-size: .88rem;
}

.report-popular-card strong,
.report-popular-card small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-popular-card strong {
    font-size: .78rem;
    font-weight: 850;
}

.report-popular-card small {
    color: #667085;
    font-size: .7rem;
}

.product-category-create-btn,
.product-category-manage-btn {
    white-space: nowrap;
}

.product-category-manage-head,
.product-category-manage-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 96px auto;
    align-items: center;
    gap: 10px;
}

.product-category-manage-head {
    padding: 0 10px 8px;
    color: #667085;
    font-size: .74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.product-category-manage-head span:first-child {
    grid-column: 2;
}

.product-category-manage-list {
    display: grid;
    gap: 8px;
}

.product-category-manage-row {
    min-height: 58px;
    padding: 10px;
    border: 1px solid var(--pos-border);
    border-radius: 8px;
    background: #fff;
}

.product-category-manage-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: color-mix(in srgb, var(--item-color) 12%, #fff);
    color: var(--item-color);
}

.product-category-manage-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #101828;
    font-size: .9rem;
    font-weight: 850;
}

.product-category-manage-row small {
    color: #667085;
    font-weight: 750;
}

.product-category-manage-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 6px;
}

.product-category-manage-actions .btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.crud-select-action-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.crud-inline-action-btn {
    width: 40px;
    min-width: 40px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.product-category-field,
.customer-segment-field,
.supplier-status-field,
.supplier-category-field,
.expense-filter-field,
.expense-input-icon {
    position: relative;
}

.product-category-field .form-select,
.customer-segment-field .form-select,
.supplier-status-field .form-select,
.supplier-category-field .form-select,
.expense-filter-field select,
.expense-input-icon select {
    width: 100%;
    flex: 1 1 auto;
    cursor: pointer;
    appearance: none;
    background-image: none;
    padding-right: 30px;
}

.product-category-field > .fa-chevron-down,
.customer-segment-field > .fa-chevron-down,
.supplier-status-field > .fa-chevron-down,
.supplier-category-field > .fa-chevron-down,
.expense-filter-field > .fa-chevron-down,
.expense-input-icon > .fa-chevron-down {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 1;
    margin: 0;
    pointer-events: none;
    transform: translateY(-50%);
}

@media (max-width: 1399.98px) {
    .product-metric-grid,
    .customer-metric-grid,
    .supplier-metric-grid,
    .inventory-metric-grid,
    .finance-metric-grid,
    .report-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-layout-grid,
    .customer-dashboard-grid,
    .supplier-dashboard-grid,
    .inventory-dashboard-grid,
    .finance-dashboard-grid,
    .finance-lower-grid,
    .report-main-grid,
    .report-lower-grid,
    .report-detail-grid,
    .report-bottom-grid {
        grid-template-columns: 1fr;
    }

    .customer-lower-grid,
    .supplier-lower-grid {
        grid-template-columns: 1fr;
    }

    .supplier-action-grid,
    .inventory-action-grid,
    .finance-action-grid,
    .report-type-grid,
    .report-popular-grid,
    .report-mini-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .product-page-head,
    .customer-page-head,
    .supplier-page-head,
    .inventory-page-head,
    .finance-page-head,
    .report-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-head-actions,
    .customer-head-actions,
    .supplier-head-actions,
    .inventory-head-actions,
    .finance-head-actions,
    .report-head-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .report-filter-form {
        justify-content: flex-start;
        width: 100%;
    }

    .product-search-field,
    .customer-search-field,
    .supplier-search-field {
        width: 100%;
    }

    .product-category-field,
    .customer-segment-field,
    .supplier-status-field,
    .supplier-category-field {
        flex: 1 1 180px;
    }

    .product-metric-grid,
    .product-action-grid,
    .customer-metric-grid,
    .customer-action-grid,
    .supplier-metric-grid,
    .supplier-action-grid,
    .inventory-metric-grid,
    .inventory-status-grid,
    .inventory-action-grid,
    .finance-metric-grid,
    .finance-action-grid,
    .finance-account-grid,
    .report-metric-grid,
    .report-type-grid,
    .report-popular-grid,
    .report-mini-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .finance-summary-grid,
    .finance-category-content,
    .report-category-content,
    .report-split-grid {
        grid-template-columns: 1fr;
    }

    .customer-table-toolbar,
    .supplier-table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-table-toolbar .table-toolbar,
    .supplier-table-toolbar .table-toolbar {
        width: 100%;
        justify-content: flex-start;
    }

    .customer-segment-content,
    .supplier-category-content {
        grid-template-columns: 1fr;
    }

    .supplier-simple-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .supplier-simple-row span,
    .supplier-simple-row em {
        grid-column: 1 / -1;
    }

    .inventory-recommendation-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
    }

    .inventory-recommendation-row em {
        grid-column: 2 / -1;
    }

    .finance-simple-row,
    .finance-due-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .finance-simple-row span,
    .finance-simple-row em,
    .finance-due-row strong,
    .finance-due-row .badge {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .product-metric-grid,
    .product-action-grid,
    .product-category-content,
    .customer-metric-grid,
    .customer-action-grid,
    .customer-segment-content,
    .supplier-metric-grid,
    .supplier-action-grid,
    .supplier-category-content,
    .inventory-metric-grid,
    .inventory-status-grid,
    .inventory-action-grid,
    .finance-metric-grid,
    .finance-action-grid,
    .finance-account-grid,
    .report-metric-grid,
    .report-type-grid,
    .report-popular-grid,
    .report-mini-card-grid,
    .report-split-grid,
    .report-category-content {
        grid-template-columns: 1fr;
    }

    .customer-top-row {
        grid-template-columns: 26px minmax(0, 1fr) auto;
    }

    .customer-top-row em,
    .customer-spend-track,
    .customer-top-row > span:last-child {
        grid-column: 2 / -1;
    }

    .customer-city-row {
        grid-template-columns: 1fr;
    }

    .supplier-due-row,
    .supplier-top-row {
        grid-template-columns: 1fr;
    }

    .product-tabs button,
    .supplier-tabs button,
    .inventory-tabs button,
    .finance-tabs button {
        min-height: 50px;
        padding: 0 16px;
        font-size: .84rem;
    }

    .product-table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-category-manage-head {
        display: none;
    }

    .product-category-manage-row {
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .product-category-manage-row small {
        grid-column: 2 / -1;
    }

    .product-category-manage-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .product-margin-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .product-margin-track {
        grid-column: 1 / -1;
        order: 3;
    }

    .inventory-recommendation-row,
    .inventory-reorder-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .inventory-recommendation-row .btn,
    .inventory-reorder-card .btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .inventory-movement-row {
        grid-template-columns: 34px minmax(0, 1fr) auto;
    }

    .inventory-movement-track {
        grid-column: 2 / -1;
    }

    .finance-account-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .finance-account-card em {
        grid-column: 1 / -1;
    }

    .report-head-actions .btn,
    .report-date-btn,
    .report-filter-form,
    .report-period-field,
    .report-period-field .form-control,
    .report-outlet-select {
        width: 100%;
    }

    .report-period-field {
        grid-template-columns: 1fr;
        justify-items: stretch;
        justify-content: center;
    }

    .report-outlet-row,
    .report-ranked-row,
    .report-stock-row,
    .report-finance-row {
        grid-template-columns: 1fr;
    }

    .report-outlet-track {
        width: 100%;
    }

    .inventory-chart-head,
    .inventory-opname-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.page-actionbar {
    justify-content: flex-end;
    min-height: 44px;
}

.page-actionbar .sales-head-actions,
.page-actionbar .product-head-actions {
    width: 100%;
    justify-content: flex-end;
}

.module-actionbar {
    justify-content: flex-end;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.module-actionbar .module-actions {
    width: 100%;
    justify-content: flex-end;
}

.page-actionbar .btn.btn-sm,
.module-actionbar .module-actions .btn.btn-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: .82rem;
    line-height: 1.2;
}

.metric-card .metric-icon,
.nexa-metric-card .metric-icon,
.sales-metric-card .metric-icon,
.product-metric-card .metric-icon,
.customer-metric-card .metric-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: .9rem;
}

.metric-icon i,
.metric-card .metric-icon i,
.nexa-metric-card .metric-icon i,
.sales-metric-card .metric-icon i,
.product-metric-card .metric-icon i,
.customer-metric-card .metric-icon i {
    font-size: .9rem;
    line-height: 1;
}

.quick-action-card span,
.product-icon,
.feature-icon {
    width: 34px;
    height: 34px;
}

.quick-action-card span,
.product-action-grid i,
.sales-action-grid i {
    font-size: 1rem;
}

.sidebar-icon,
.module-icon,
.quick-action-card span,
.product-icon,
.feature-icon,
.copilot-robot,
.movement-icon,
.inventory-icon-action,
.finance-account-icon,
.finance-due-icon,
.report-type-icon,
.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
}

.sidebar-icon > i,
.module-icon > i,
.quick-action-card span > i,
.product-icon > i,
.feature-icon > i,
.copilot-robot > i,
.movement-icon > i,
.inventory-icon-action > i,
.finance-account-icon > i,
.finance-due-icon > i,
.report-type-icon > i,
.metric-icon > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    transform: translateY(1px);
}

.sidebar-icon > i {
    font-size: 1.1rem;
}

.module-icon > i {
    font-size: 1.5rem;
}

.quick-action-card span > i,
.product-icon > i,
.feature-icon > i,
.movement-icon > i,
.inventory-icon-action > i,
.finance-due-icon > i,
.report-type-icon > i,
.metric-icon > i {
    font-size: 1.12rem;
}

.finance-account-icon > i,
.copilot-robot > i {
    font-size: 1.3rem;
}

.sales-action-grid a > i,
.sales-action-grid button > i,
.product-action-grid a > i,
.product-action-grid button > i,
.customer-action-grid a > i,
.customer-action-grid button > i,
.supplier-action-grid a > i,
.supplier-action-grid button > i,
.inventory-action-grid a > i,
.inventory-action-grid button > i,
.finance-action-grid a > i,
.finance-action-grid button > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    min-width: 1.25em;
    height: 1.25em;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    transform: translateY(1px);
}

.sales-action-grid a > i,
.sales-action-grid button > i,
.product-action-grid a > i,
.product-action-grid button > i,
.customer-action-grid a > i,
.customer-action-grid button > i,
.supplier-action-grid a > i,
.supplier-action-grid button > i,
.inventory-action-grid a > i,
.inventory-action-grid button > i,
.finance-action-grid a > i,
.finance-action-grid button > i {
    font-size: 1.16rem;
}

.sidebar-icon > i::before,
.module-icon > i::before,
.quick-action-card span > i::before,
.product-icon > i::before,
.feature-icon > i::before,
.copilot-robot > i::before,
.movement-icon > i::before,
.inventory-icon-action > i::before,
.finance-account-icon > i::before,
.finance-due-icon > i::before,
.report-type-icon > i::before,
.metric-icon > i::before,
.sales-action-grid a > i::before,
.sales-action-grid button > i::before,
.product-action-grid a > i::before,
.product-action-grid button > i::before,
.customer-action-grid a > i::before,
.customer-action-grid button > i::before,
.supplier-action-grid a > i::before,
.supplier-action-grid button > i::before,
.inventory-action-grid a > i::before,
.inventory-action-grid button > i::before,
.finance-action-grid a > i::before,
.finance-action-grid button > i::before {
    display: block;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .page-actionbar .sales-head-actions,
    .page-actionbar .product-head-actions,
    .module-actionbar .module-actions {
        justify-content: flex-start;
    }
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .12), transparent 30%),
        var(--pos-bg);
    padding: 24px;
}

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

.login-card {
    background: var(--pos-surface);
    border: 1px solid var(--pos-border);
    border-radius: 18px;
    box-shadow: var(--pos-shadow);
    padding: 28px;
}

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

.login-brand strong,
.login-brand small {
    display: block;
    line-height: 1.15;
}

.login-brand small {
    color: var(--pos-muted);
}

.login-form .input-group-text {
    background: #f8fafc;
    border-color: var(--pos-border);
    color: var(--pos-muted);
}
