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

@media print {

    .sidebar,
    .topbar,
    .app-footer,
    .d-print-none {
        display: none !important;
    }

    .app-shell {
        margin: 0 !important;
    }

    .main-content {
        padding: 0 !important;
    }

    .voucher-print {
        max-width: none !important;
    }
}

* {
    box-sizing: border-box
}

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

a {
    text-decoration: none
}

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

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

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

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

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

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

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

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

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

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

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

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

.brand:hover {
    color: #fff
}

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

.brand img {
    flex-shrink: 0
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.table-responsive {
    scrollbar-width: thin
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.installment-person {
    min-width: 0
}

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

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

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

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

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

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

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

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

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

.stock-card h2 {
    gap: 9px
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.password-field {
    position: relative
}

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

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

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

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

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

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

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

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

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

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

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

@media(min-width:992px) {
    .sidebar {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        visibility: visible !important;
        transition: transform .2s !important
    }

    .sidebar-collapsed .sidebar {
        transform: translateX(-100%) !important;
        visibility: hidden !important
    }

    .sidebar-collapsed .app-shell {
        margin-left: 0
    }
}

@media(min-width:1600px) {
    .metrics-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr))
    }

    .metric-value {
        font-size: 25px
    }

    .metric-card {
        padding: 18px 15px
    }

    .metric-value>span {
        font-size: 10px
    }

    .metric-top {
        font-size: 10px
    }

    .metric-bottom {
        font-size: 9px
    }
}

@media(max-width:1199.98px) {
    .main-content {
        padding: 27px 24px 18px
    }

    .topbar {
        padding: 0 22px
    }

    .dashboard-columns {
        grid-template-columns: 1fr
    }

    .installment-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        padding-bottom: 17px
    }

    .installment-item {
        border-bottom: 0;
        flex-wrap: wrap;
        padding: 8px 0 !important;
        gap: 9px
    }

    .installment-amount {
        margin-left: 47px
    }

    .stock-grid {
        gap: 13px
    }

    .stock-product-icon {
        width: 35px
    }

    .stock-item {
        gap: 8px;
        padding-right: 8px
    }

    .stock-description>strong {
        font-size: 9px
    }

    .login-story {
        padding: 35px
    }

    .login-story h1 {
        font-size: 42px
    }
}

@media(max-width:991.98px) {
    .app-shell {
        margin-left: 0
    }

    .sidebar {
        height: 100dvh
    }

    .sidebar-brand {
        height: 80px
    }

    .topbar {
        height: 70px
    }

    .login-story {
        padding: 32px
    }

    .login-story h1 {
        font-size: 36px
    }

    .login-form-section {
        padding: 35px 30px
    }

    .login-story-content>p {
        font-size: 12px
    }

    .story-art {
        transform: scale(.88);
        transform-origin: left center
    }

    .profile-name {
        max-width: 100px
    }
}

@media(max-width:767.98px) {
    .main-content {
        padding: 25px 18px 15px
    }

    .topbar {
        padding: 0 15px
    }

    .environment-badge,
    .topbar-divider {
        display: none
    }

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

    .metric-card {
        padding: 15px
    }

    .metric-value {
        font-size: 25px
    }

    .metric-value>span {
        font-size: 10px
    }

    .metric-top {
        font-size: 10px
    }

    .metric-bottom {
        font-size: 9px
    }

    .demo-notice {
        padding: 13px;
        gap: 10px;
        align-items: flex-start
    }

    .demo-notice div>span {
        line-height: 1.7;
        display: block
    }

    .demo-notice>.demo-badge {
        display: none
    }

    .notice-icon {
        padding-top: 3px
    }

    .page-heading {
        align-items: flex-start
    }

    h1 {
        font-size: 26px
    }

    .date-chip {
        font-size: 10px;
        padding: 9px
    }

    .stock-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 10px;
        gap: 0
    }

    .stock-item {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 16px 0;
        gap: 14px
    }

    .stock-description>strong {
        font-size: 11px
    }

    .stock-description>span {
        font-size: 10px
    }

    .stock-product-icon {
        width: 45px
    }

    .stock-level {
        font-size: 10px
    }

    .installment-list {
        display: block
    }

    .installment-item {
        flex-wrap: nowrap;
        padding: 15px 0 !important;
        border-bottom: 1px solid #f0f2f6
    }

    .installment-amount {
        margin-left: auto;
        font-size: 12px
    }

    .installment-person strong {
        font-size: 12px
    }

    .installment-person>span {
        font-size: 10px
    }

    .installment-person .overdue-label,
    .installment-person .due-label {
        font-size: 9px
    }

    .installment-list {
        padding-bottom: 0
    }

    .login-layout {
        display: block
    }

    .login-story {
        padding: 24px;
        background: var(--navy)
    }

    .login-story .brand {
        font-size: 21px
    }

    .login-story-content,
    .login-copyright {
        display: none
    }

    .login-form-section {
        min-height: calc(100dvh - 90px);
        padding: 35px 24px
    }

    .login-form-wrap h2 {
        font-size: 26px
    }

    .app-footer {
        margin: 0 18px;
        font-size: 8px
    }

    .dashboard-footnote {
        line-height: 1.7
    }

    .dashboard-columns {
        gap: 18px
    }

    .card-heading {
        padding: 18px
    }

    .card-heading p {
        font-size: 9px
    }

    .stock-card h2 {
        font-size: 12px
    }

    .sample-label {
        display: none
    }

    .placeholder-card {
        min-height: 400px
    }

    .placeholder-card h2 {
        font-size: 22px
    }
}

@media(max-width:399.98px) {
    .metric-value {
        font-size: 22px
    }

    .metric-card {
        padding: 12px
    }

    .metric-top {
        font-size: 9px
    }

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

    .metric-bottom {
        font-size: 8px;
        line-height: 1.6
    }

    .breadcrumb-text {
        gap: 8px;
        font-size: 10px
    }

    .profile-name {
        display: none
    }

    .profile-button>.icon {
        margin-left: 0
    }

    .date-chip .icon {
        display: none
    }

    .page-subtitle {
        font-size: 11px
    }

    .installment-person>span {
        font-size: 9px
    }

    .installment-amount {
        font-size: 10px
    }

    .card-heading {
        padding: 16px
    }

    .card-heading h2 {
        font-size: 12px
    }

    .text-action {
        font-size: 9px
    }

    .main-content {
        padding-left: 13px;
        padding-right: 13px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important
    }
}

/* Phase 6 purchases */
.purchase-items th,
.purchase-items td {
    min-width: 105px
}

.purchase-items th:first-child,
.purchase-items td:first-child {
    min-width: 260px
}

.purchase-items th:nth-child(7),
.purchase-items td:nth-child(7) {
    min-width: 220px
}

.purchase-totals dt,
.purchase-totals dd {
    padding: .25rem 0
}

.return-item-list {
    max-height: 65vh;
    overflow: auto
}

@media(max-width:767.98px) {
    .purchase-items-wrap {
        overflow: visible
    }

    .purchase-items thead {
        display: none
    }

    .purchase-items,
    .purchase-items tbody,
    .purchase-items tr,
    .purchase-items td {
        display: block;
        width: 100%
    }

    .purchase-items tr {
        border: 1px solid var(--bs-border-color);
        border-radius: 12px;
        margin: 12px;
        padding: 12px
    }

    .purchase-items td {
        border: 0;
        padding: 6px 0;
        min-width: 0 !important
    }

    .purchase-items td:before {
        content: attr(data-label);
        display: block;
        font-size: .75rem;
        color: var(--bs-secondary);
        margin-bottom: 3px
    }

    .purchase-items td:last-child {
        text-align: right
    }

    .purchase-form .sticky-form-actions {
        flex-wrap: wrap
    }

    .purchase-form .sticky-form-actions .btn {
        flex: 1;
        min-width: 110px
    }
}

/* Phase 7 retail POS */
.sale-items th,
.sale-items td {
    min-width: 92px
}

.sale-items th:first-child,
.sale-items td:first-child {
    min-width: 220px
}

.sale-items th.col-serials,
.sale-items td.col-serials,
.sale-items th:nth-child(9),
.sale-items td:nth-child(9) {
    min-width: 180px
}

.sale-base-price[readonly] {
    background-color: #f8f9fa;
    cursor: default
}

.pos-summary {
    position: sticky;
    top: 18px
}

.sale-cart {
    min-height: 280px
}

@media(max-width:767.98px) {
    .sale-items-wrap {
        overflow: visible
    }

    .sale-items thead {
        display: none
    }

    .sale-items,
    .sale-items tbody,
    .sale-items tr,
    .sale-items td {
        display: block;
        width: 100%
    }

    .sale-items tr {
        border: 1px solid var(--bs-border-color);
        border-radius: 12px;
        margin: 12px;
        padding: 12px
    }

    .sale-items td {
        border: 0;
        padding: 5px 0;
        min-width: 0 !important
    }

    .sale-items td:before {
        content: attr(data-label);
        display: block;
        font-size: .72rem;
        color: var(--bs-secondary);
        margin-bottom: 3px
    }

    .sale-items td:last-child {
        text-align: right
    }

    .pos-summary {
        position: static
    }

    .sale-form .btn-lg {
        min-height: 52px
    }
}

/* Phase 8 installment workflows */
.installment-terms {
    position: relative
}

.installment-payment-form .fs-3 {
    letter-spacing: -.035em
}

.installment-schedule td,
.installment-schedule th {
    white-space: nowrap
}

.installment-form [data-schedule-card] {
    scroll-margin-top: 16px
}

.module-hub-card {
    color: inherit;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease
}

.module-hub-card:hover,
.module-hub-card:focus-visible {
    color: inherit;
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.75rem rgba(35, 48, 72, .12) !important
}

.module-hub-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(34, 91, 219, .1);
    color: var(--bs-primary)
}

.module-hub-icon svg {
    width: 21px;
    height: 21px
}

.module-hub-arrow {
    color: var(--bs-secondary);
    transition: transform .16s ease
}

.module-hub-card:hover .module-hub-arrow {
    transform: translateX(3px)
}

.module-hub-arrow svg {
    width: 18px;
    height: 18px
}

@media(max-width:767.98px) {
    .installment-schedule-wrap {
        overflow: visible
    }

    .installment-schedule thead {
        display: none
    }

    .installment-schedule,
    .installment-schedule tbody,
    .installment-schedule tr,
    .installment-schedule td {
        display: block;
        width: 100%
    }

    .installment-schedule tr {
        border: 1px solid var(--bs-border-color);
        border-radius: 12px;
        margin: 12px;
        padding: 12px
    }

    .installment-schedule td {
        border: 0;
        padding: 5px 0;
        text-align: right !important;
        white-space: normal
    }

    .installment-schedule td:before {
        content: attr(data-label);
        float: left;
        font-size: .72rem;
        color: var(--bs-secondary);
        margin-right: 12px
    }

    .installment-payment-form .btn-lg,
    .installment-form .btn-lg {
        min-height: 54px
    }

    .installment-form [data-custom-dates] .col-6 {
        width: 100%
    }
}

/* Phase 9 recovery and in-app reminders */
.recovery-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px
}

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

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

.recovery-touch-actions .btn {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center
}

.recovery-timeline {
    border-left: 2px solid #dfe5ec;
    margin-left: 24px
}

.timeline-entry {
    position: relative;
    padding: 0 0 22px 20px
}

.timeline-entry:before {
    content: "";
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 4px #fff
}

.timeline-entry:last-child {
    padding-bottom: 0
}

.recovery-case-card {
    overflow: hidden
}

.recovery-schedule td,
.recovery-schedule th {
    white-space: nowrap
}

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

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

@media(max-width:767.98px) {

    .recovery-metrics,
    .recovery-card-grid {
        grid-template-columns: 1fr
    }

    .recovery-due-table>.table-responsive {
        overflow: visible
    }

    .recovery-due-table thead,
    .recovery-schedule thead {
        display: none
    }

    .recovery-due-table table,
    .recovery-due-table tbody,
    .recovery-due-table tr,
    .recovery-due-table td,
    .recovery-schedule,
    .recovery-schedule tbody,
    .recovery-schedule tr,
    .recovery-schedule td {
        display: block;
        width: 100%
    }

    .recovery-due-table tr,
    .recovery-schedule tr {
        border: 1px solid var(--bs-border-color);
        border-radius: 12px;
        margin: 12px;
        padding: 12px
    }

    .recovery-due-table td,
    .recovery-schedule td {
        border: 0;
        padding: 5px 0;
        text-align: right !important;
        white-space: normal
    }

    .recovery-due-table td:before,
    .recovery-schedule td:before {
        content: attr(data-label);
        float: left;
        font-size: .72rem;
        color: var(--bs-secondary);
        margin-right: 12px
    }

    .recovery-touch-actions .btn {
        min-height: 52px;
        font-weight: 600
    }

    [data-recovery-followup] .btn-lg {
        min-height: 54px
    }

    .recovery-timeline {
        margin-left: 10px
    }

    .recovery-case-card .card-body {
        padding: 18px
    }
}

.account-tree-node {
    border: 1px solid var(--bs-border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff
}

.account-tree-node>summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer
}

.account-tree-node>summary small {
    display: block;
    color: var(--bs-secondary)
}

.account-tree-children {
    padding: 0 10px 10px 24px
}

.account-tree-ledger {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-left: 2px solid #dfe5ec;
    text-decoration: none
}

.account-tree-ledger:hover {
    background: #f7f9fc
}

.account-tree-ledger small {
    color: var(--bs-secondary);
    white-space: nowrap
}

@media(max-width:767.98px) {
    .account-tree-children {
        padding-left: 10px
    }

    .account-tree-node>summary,
    .account-tree-ledger {
        align-items: flex-start
    }

    .accounting-table thead {
        display: none
    }

    .accounting-table,
    .accounting-table tbody,
    .accounting-table tr,
    .accounting-table td {
        display: block;
        width: 100%
    }

    .accounting-table tr {
        border: 1px solid var(--bs-border-color);
        border-radius: 12px;
        margin: 10px;
        padding: 10px
    }

    .accounting-table td {
        border: 0;
        padding: 5px 0;
        text-align: right !important;
        white-space: normal
    }

    .accounting-table td:before {
        content: attr(data-label);
        float: left;
        color: var(--bs-secondary);
        font-size: .75rem;
        margin-right: 12px
    }

    .accounting-table input {
        min-width: 130px
    }

    .account-tree-ledger {
        flex-direction: column
    }

    .account-tree-ledger small {
        white-space: normal
    }
}


/* Phase 2 foundation modules */
.foundation-table th,
.foundation-table td {
    padding: 16px;
}

.foundation-table td {
    max-width: 280px;
    overflow-wrap: anywhere;
}

.foundation-table th {
    white-space: nowrap;
}

.foundation-actions {
    min-width: 145px;
}

.foundation-actions .btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.foundation-form .form-control,
.foundation-form .form-select {
    min-height: 44px;
}

.company-logo {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
}

.context-badge {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.permission-group .form-check-label {
    padding: 4px 0;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .foundation-form .btn {
        min-height: 44px;
    }

    .foundation-table th,
    .foundation-table td {
        padding: 12px;
    }

    .context-badge {
        display: none;
    }

    .page-heading h1 {
        overflow-wrap: anywhere;
    }
}

/* Phase 3 product catalog */
.catalog-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dfe5ec;
    background: #f5f7fa;
    display: inline-grid;
    place-items: center;
}

.catalog-preview {
    max-width: 240px;
    max-height: 180px;
    object-fit: contain;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    padding: 6px;
    background: #fff;
}

.product-table th,
.product-table td {
    padding: 14px;
    white-space: nowrap;
}

.product-table td:nth-child(4) {
    min-width: 210px;
    white-space: normal;
}

.catalog-form .form-control,
.catalog-form .form-select {
    min-height: 44px;
}

.catalog-tabs {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
}

.catalog-tabs .nav-link {
    white-space: nowrap;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    min-height: 44px;
    border-color: #dee2e6;
    padding: 7px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 42px;
}

.catalog-image-card {
    position: relative;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    padding: 10px;
    height: 100%;
    background: #fff;
}

.catalog-image-card.is-primary {
    border: 2px solid var(--bs-primary);
}

.catalog-image-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 8px;
    background: #f7f8fa;
}

.catalog-image-card .primary-label {
    position: absolute;
    left: 16px;
    top: 16px;
}

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

.product-view-images figure {
    margin: 0;
}

.product-view-images figure.primary {
    grid-column: 1/-1;
}

.product-view-images img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    border-radius: 10px;
    background: #f7f8fa;
    border: 1px solid #e5e8ed;
}

.product-view-images figure.primary img {
    height: 280px;
}

.product-view-images figcaption {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

.catalog-description {
    white-space: normal;
    overflow-wrap: anywhere;
}

.sticky-form-actions {
    position: sticky;
    bottom: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, .94);
    padding: 12px;
    border: 1px solid #e4e8ee;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

@media (max-width:767.98px) {
    .catalog-tabs {
        margin-left: -13px;
        margin-right: -13px;
        padding-left: 13px;
        padding-right: 13px;
    }

    .catalog-form .tab-pane {
        padding: 16px !important;
    }

    .product-view-images figure.primary img {
        height: 210px;
    }

    .catalog-image-card img {
        height: 120px;
    }

    .sticky-form-actions .btn {
        min-height: 44px;
        flex: 1;
    }
}

/* Professional POS workspace */
.pos-page-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 24px 26px;
    border: 1px solid #dfe8f4;
    border-radius: 20px;
    background: linear-gradient(120deg, #fff 0%, #f5f9ff 64%, #edf5ff 100%);
    box-shadow: 0 12px 34px rgba(28, 51, 84, .07)
}

.pos-page-header::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -90px;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 91, 219, .12), rgba(34, 91, 219, 0) 70%);
    pointer-events: none
}

.pos-page-header h1 {
    font-size: clamp(1.55rem, 2.2vw, 2.1rem);
    font-weight: 750;
    letter-spacing: -.035em;
    color: #17243b
}

.pos-page-header>div {
    position: relative;
    z-index: 1
}

.pos-kicker-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    line-height: 1
}

.pos-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap
}

.pos-ready-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #cfe8d8;
    border-radius: 999px;
    background: #f1fbf5;
    color: #217142;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap
}

.pos-ready-badge>span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #23a55a;
    box-shadow: 0 0 0 4px rgba(35, 165, 90, .12)
}

.sale-form .card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 17px;
    box-shadow: 0 10px 28px rgba(28, 51, 84, .055) !important
}

.sale-form>.pos-workspace>.col-12>section {
    overflow: hidden
}

.sale-form>.pos-workspace>.col-xl-8>section:first-child {
    background: linear-gradient(135deg, #fff, #f9fbfe)
}

.sale-form>.pos-workspace>.col-xl-8>section:first-child .card-body {
    padding: 18px 20px
}

.sale-form .form-label {
    margin-bottom: 7px;
    color: #536176;
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .025em
}

.sale-form .form-control,
.sale-form .form-select {
    border-color: #dce3ec;
    border-radius: 10px;
    background-color: #fff
}

.sale-form .form-control:focus,
.sale-form .form-select:focus {
    border-color: #7da3ef;
    box-shadow: 0 0 0 .2rem rgba(34, 91, 219, .1)
}

.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header {
    padding: 18px 20px;
    background: #fff !important;
    border-bottom: 1px solid #e8edf3
}

.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group {
    padding: 5px;
    border: 1px solid #dbe4ee;
    border-radius: 13px;
    background: #f6f8fb
}

.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    font-size: .95rem
}

.sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group .btn {
    border-radius: 9px;
    padding-left: 24px;
    padding-right: 24px;
    font-weight: 700
}

#pos_product_search {
    min-height: 46px;
    margin-top: 3px
}

.sale-cart {
    min-height: 330px;
    background: #fff
}

.sale-items {
    font-size: .79rem
}

.sale-items thead th {
    padding: 12px 10px;
    border: 0;
    border-bottom: 1px solid #dfe6ef;
    background: #f7f9fc;
    color: #6b778a;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap
}

.sale-items tbody td {
    padding: 14px 10px;
    border-color: #edf1f5;
    vertical-align: middle
}

.sale-items tbody tr {
    transition: background-color .15s ease
}

.sale-items tbody tr:hover {
    background: #fbfcff
}

.sale-product-name {
    display: block;
    color: #1c2a40;
    font-size: .79rem;
    line-height: 1.35
}

.sale-model {
    margin-top: 4px;
    font-size: .66rem
}

.sale-stock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2d5caf;
    font-size: .7rem;
    font-weight: 750
}

.sale-tax-rate {
    color: #607089;
    font-size: .72rem;
    font-weight: 650
}

.sale-row-net {
    color: #17243b;
    font-size: .82rem;
    font-weight: 800
}

.sale-items .input-group-sm .btn,
.sale-items .form-control-sm,
.sale-items .form-select-sm {
    min-height: 34px
}

.sale-items [data-remove-sale-item] {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #fff1f1;
    color: #c43d3d;
    font-size: 1.15rem
}

.sale-items [data-remove-sale-item]:hover {
    background: #dc3545;
    color: #fff
}

.sale-form aside>section>.card-header {
    padding: 15px 17px;
    border-bottom: 1px solid #e8edf3;
    background: #fff !important
}

.sale-form aside>section>.card-header h2 {
    color: #23314a;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .01em
}

.sale-form aside>section>.card-body {
    padding: 17px
}

.sale-form aside>section:nth-of-type(2) select[name="sale_mode"] {
    min-height: 52px;
    border: 1px solid #cfdbea;
    background-color: #f8fbff;
    color: #1d3762;
    font-weight: 650
}

.sale-form aside .form-check.form-switch {
    padding: 15px 14px 14px 48px !important;
    border: 1px solid #dfe7f0 !important;
    border-radius: 12px;
    background: #f8fafc
}

.sale-form aside .form-switch .form-check-input {
    width: 2.35rem;
    height: 1.2rem;
    margin-left: -34px
}

.sale-form aside [data-installment-fields] {
    padding: 15px;
    border: 1px solid #dfe8f4;
    border-radius: 13px;
    background: #f8fbff
}

.sale-form [data-payment-row] {
    padding: 11px !important;
    border-color: #e2e8f0 !important;
    border-radius: 12px !important;
    background: #fafbfd
}

.sale-form [data-payment-row]:last-child {
    margin-bottom: 0 !important
}

.pos-summary {
    top: 16px;
    border-color: #cbdaf0 !important;
    background: linear-gradient(180deg, #fff, #fbfdff)
}

.pos-summary .card-body {
    padding: 19px
}

.pos-summary dl {
    margin-left: -3px;
    margin-right: -3px;
    padding: 14px;
    border-radius: 13px;
    background: #f6f9fd
}

.pos-summary dt,
.pos-summary dd {
    margin: 0;
    padding: 5px 3px;
    color: #536176;
    font-size: .78rem
}

.pos-summary dd {
    color: #1f2e45;
    font-variant-numeric: tabular-nums;
    font-weight: 700
}

.pos-summary [data-sale-net] {
    color: #1558c0;
    font-size: 1.35rem !important;
    font-weight: 850
}

.pos-summary dt:has(+ [data-sale-net]) {
    color: #17243b;
    font-size: .95rem !important;
    font-weight: 800
}

.pos-summary [data-sale-balance] {
    color: #c74747
}

.pos-summary .card-footer {
    padding: 15px 18px 18px;
    border-top: 1px solid #e7edf4 !important
}

.pos-summary .card-footer .btn {
    border-radius: 11px;
    font-size: .88rem;
    font-weight: 750
}

.pos-summary .card-footer .btn-primary {
    box-shadow: 0 8px 18px rgba(34, 91, 219, .2)
}

@media(max-width:1199.98px) {
    .pos-summary {
        position: static
    }
}

@media(max-width:767.98px) {
    .pos-page-header {
        align-items: flex-start;
        padding: 19px;
        border-radius: 16px
    }

    .pos-page-header,
    .pos-header-actions {
        flex-direction: column
    }

    .pos-header-actions {
        align-items: stretch;
        width: 100%
    }

    .pos-header-actions .btn {
        width: 100%
    }

    .pos-ready-badge {
        align-self: flex-start
    }

    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header {
        padding: 14px
    }

    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group {
        display: grid;
        grid-template-columns: 1fr
    }

    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group>.form-control,
    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group>.btn {
        width: 100%;
        border-radius: 8px !important
    }

    .sale-form>.pos-workspace>.col-xl-8>section:nth-of-type(2)>.card-header .input-group>.btn {
        margin-top: 5px;
        min-height: 44px
    }

    .sale-items tr {
        margin: 10px 0;
        padding: 13px;
        border-color: #e0e7f0;
        box-shadow: 0 5px 15px rgba(28, 51, 84, .045)
    }

    .sale-items td {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        text-align: left !important
    }

    .sale-items td::before {
        margin: 0 !important;
        font-weight: 700
    }

    .sale-items td:first-child {
        display: block
    }

    .sale-items td:last-child {
        display: flex;
        justify-content: flex-end
    }
}

/* ==========================================================================
   Modern Dashboard 2.0 (Executive Redesign)
   ========================================================================== */
.dash-hero {
    background: linear-gradient(135deg, #0d1726 0%, #152438 50%, #1e3557 100%);
    border-radius: 18px;
    padding: 26px 30px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.45);
    position: relative;
    overflow: hidden;
}

.dash-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(50, 103, 227, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.dash-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.dash-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    color: #a5b4fc;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dash-hero h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.dash-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
    flex-wrap: wrap;
}

.dash-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dash-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.dash-act-btn-pos {
    background: linear-gradient(135deg, #3267e3, #1e40af);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(50, 103, 227, 0.4);
}

.dash-act-btn-pos:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(50, 103, 227, 0.55);
}

.dash-act-btn-glass {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: #e2e8f0 !important;
}

.dash-act-btn-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff !important;
    transform: translateY(-2px);
}

.dash-filter-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.dash-kpis-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

@media (max-width: 1200px) {
    .dash-kpis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dash-kpis-grid {
        grid-template-columns: 1fr;
    }
}

.dash-kpi-card {
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(20, 40, 73, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dash-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(20, 40, 73, 0.08);
    border-color: #cbd5e1;
}

.dash-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.dash-kpi-blue::before {
    background: linear-gradient(90deg, #3267e3, #60a5fa);
}

.dash-kpi-green::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.dash-kpi-purple::before {
    background: linear-gradient(90deg, #8b5cf6, #c084fc);
}

.dash-kpi-amber::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.dash-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.dash-kpi-title {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.dash-kpi-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.dash-kpi-icon-wrap .icon {
    width: 22px;
    height: 22px;
}

.dash-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.dash-icon-green {
    background: #ecfdf5;
    color: #059669;
}

.dash-icon-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.dash-icon-amber {
    background: #fffbeb;
    color: #d97706;
}

.dash-kpi-amount {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.dash-kpi-amount small {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    margin-right: 4px;
}

.dash-kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: #64748b;
}

.dash-box {
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 3px 10px rgba(20, 40, 73, 0.03);
    overflow: hidden;
}

.dash-box-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}

.dash-box-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-box-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.dash-box-body {
    padding: 20px 22px;
}

.dash-sales-table {
    margin: 0;
}

.dash-sales-table th {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 14px;
    background: #f8fafc;
}

.dash-sales-table td {
    padding: 14px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dash-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3267e3, #60a5fa);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.dash-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.dash-status-paid {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.dash-status-balance {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.dash-stock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.dash-stock-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.dash-stock-progress-wrap {
    min-width: 140px;
    text-align: right;
}

.dash-stock-progress {
    height: 7px;
    border-radius: 10px;
    background: #e2e8f0;
    overflow: hidden;
    margin-top: 5px;
}

.dash-stock-bar {
    height: 100%;
    border-radius: 10px;
}

.dash-due-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #fafbfc;
    border: 1px solid #eef2f6;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.dash-due-card:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dash-day-badge {
    width: 44px;
    height: 48px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    flex-shrink: 0;
}

.dash-day-badge small {
    font-size: 9px;
    text-transform: uppercase;
    color: #64748b;
    margin-top: -2px;
}

.dash-day-badge.overdue {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.dash-day-badge.overdue small {
    color: #dc2626;
}

.dash-payment-row {
    margin-bottom: 14px;
}

.dash-payment-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

/* ==========================================================================
   Sidebar 2.0 (Modern Executive Styling)
   ========================================================================== */
.sidebar {
    --bs-offcanvas-width: 260px;
    width: 260px;
    background: linear-gradient(180deg, #0b121e 0%, #111c2e 50%, #0d1624 100%) !important;
    color: #94a3b8;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    z-index: 1045;
}

.sidebar-brand {
    height: 86px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.brand:hover {
    color: #ffffff;
}

.brand-logo-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(50, 103, 227, 0.25), rgba(30, 64, 175, 0.5));
    border: 1px solid rgba(96, 165, 250, 0.35);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(50, 103, 227, 0.25);
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 17px;
    font-weight: 750;
    color: #ffffff;
    letter-spacing: -0.4px;
    line-height: 1.15;
}

.brand-sub {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: #60a5fa;
    text-transform: uppercase;
    margin-top: 3px;
}

.sidebar-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 16px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.workspace-label {
    margin: 0 0 18px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f1f5f9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.workspace-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.workspace-info {
    min-width: 0;
    flex: 1;
}

.workspace-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-role {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 1px;
}

.status-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.nav-heading {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #64748b;
    padding: 0 12px;
    margin: 18px 0 8px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-heading:first-of-type {
    margin-top: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 0;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 4px;
    color: #cbd5e1;
    background: transparent;
    font-size: 13px;
    font-weight: 550;
    min-height: 42px;
    text-align: left;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    transform: translateX(3px);
}

.nav-item:hover .icon {
    color: #60a5fa;
}

.nav-item.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    font-weight: 650;
}

.nav-item.active .icon {
    color: #ffffff;
}

.nav-item .icon {
    width: 19px;
    height: 19px;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.nav-sub-items {
    padding-left: 12px;
    margin: 4px 0 8px 24px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
}

.nav-sub-item {
    font-size: 11.5px;
    color: #94a3b8;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
    display: block;
}

.nav-sub-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(2px);
}

.nav-sub-item.active {
    color: #60a5fa;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.12);
}

.sidebar-bottom {
    padding: 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.18);
    font-size: 11px;
    flex-shrink: 0;
}

.sidebar-status-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 11px;
    color: #94a3b8;
}

/* ==========================================================================
   Modern Pie / Donut Chart Styles
   ========================================================================== */
.dash-pie-card {
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 3px 10px rgba(20, 40, 73, 0.03);
    overflow: hidden;
}

.dash-pie-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
    flex-wrap: wrap;
    gap: 12px;
}

.dash-pie-body {
    padding: 24px 22px;
}

.dash-pie-layout {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 28px;
    flex-wrap: wrap;
}

.dash-pie-svg-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    flex-shrink: 0;
}

.dash-pie-svg {
    transform: rotate(-90deg);
    border-radius: 50%;
    width: 240px;
    height: 240px;
    overflow: visible;
}

.dash-pie-slice {
    transition: stroke-width 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
}

.dash-pie-slice:hover {
    stroke-width: 44 !important;
    opacity: 0.92;
}

.dash-pie-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    width: 100%;
}

.dash-pie-center-num {
    font-size: 28px;
    font-weight: 750;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.dash-pie-center-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 3px;
}

.dash-pie-legend {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dash-pie-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.dash-pie-legend-item:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transform: translateX(3px);
}

.dash-pie-legend-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-pie-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.dash-pie-legend-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.dash-pie-legend-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-pie-legend-count {
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
}

.dash-pie-legend-pct {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #334155;
}

/* ==========================================================================
   Modern Executive Topbar Styles
   ========================================================================== */
.topbar.topbar-modern {
    height: 72px;
    padding: 0 28px;
    background: #ffffff;
    border-bottom: 1px solid #e9edf3;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.topbar-btn:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.topbar-btn .icon {
    width: 17px;
    height: 17px;
}

.topbar-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-left: 4px;
}

.topbar-crumb-root {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.topbar-crumb-root:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.topbar-crumb-root .icon {
    width: 14px;
    height: 14px;
    color: #3b82f6;
}

.topbar-crumb-sep {
    color: #cbd5e1;
    font-weight: 400;
    font-size: 11px;
}

.topbar-crumb-page {
    color: #0f172a;
    font-weight: 700;
    background: #f8fafc;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 12.5px;
}

.topbar-quick-sale {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 12px;
    padding: 7px 15px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.topbar-quick-sale:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.topbar-quick-sale .icon {
    width: 14px;
    height: 14px;
}

.topbar-context-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    max-width: 220px;
    cursor: default;
}

.topbar-context-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
    flex-shrink: 0;
    animation: topbar-pulse 2s infinite ease-in-out;
}

@keyframes topbar-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.topbar-icon-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.topbar-icon-link:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #2563eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.topbar-icon-link .icon {
    width: 17px;
    height: 17px;
}

.topbar-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 12px 4px 5px;
    border-radius: 30px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.topbar-profile-btn:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.topbar-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 750;
    font-size: 13px;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.2);
}

.topbar-profile-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.topbar-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-user-role {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
}

.topbar-chevron {
    color: #94a3b8;
    margin-left: 2px;
}

.topbar-chevron .icon {
    width: 12px;
    height: 12px;
}

.topbar-account-menu {
    min-width: 250px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

.topbar-dropdown-header {
    padding: 6px 8px 10px 8px;
}

.topbar-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Restructured Module Hub & Cards Styles
   ========================================================================== */
.mod-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #1d4ed8 100%);
    border-radius: 20px;
    padding: 32px 36px;
    margin-bottom: 26px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.18);
}

.mod-hero-banner::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 70%);
    pointer-events: none;
}

.mod-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.mod-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mod-hero-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    place-items: center;
    color: #60a5fa;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.mod-hero-icon-box .icon {
    width: 30px;
    height: 30px;
}

.mod-hero-tag {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.22);
    border: 1px solid rgba(147, 197, 253, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 6px;
}

.mod-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.mod-hero-desc {
    color: #cbd5e1;
    font-size: 13.5px;
    margin-bottom: 0;
    max-width: 620px;
    line-height: 1.5;
}

.mod-hero-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mod-hero-stat-badge {
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
}

/* Module Filter Bar */
.mod-filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
}

.mod-filter-icon {
    color: #94a3b8;
    display: flex;
    align-items: center;
}

.mod-filter-icon .icon {
    width: 17px;
    height: 17px;
}

.mod-filter-input {
    border: none;
    background: transparent;
    font-size: 13.5px;
    color: #0f172a;
    width: 100%;
    outline: none;
}

.mod-filter-input::placeholder {
    color: #94a3b8;
}

/* Module Hub Card */
.mod-hub-card {
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 16px;
    padding: 22px 22px 18px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(20, 40, 73, 0.02);
}

.mod-hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #6366f1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mod-hub-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.12);
}

.mod-hub-card:hover::before {
    opacity: 1;
}

.mod-hub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.mod-hub-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    transition: all 0.2s ease;
}

.mod-hub-card:hover .mod-hub-icon-wrap {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.08);
}

.mod-hub-icon-wrap .icon {
    width: 20px;
    height: 20px;
}

.mod-hub-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    background: #f1f5f9;
    color: #475569;
    letter-spacing: 0.3px;
}

.mod-hub-card-title {
    font-size: 15px;
    font-weight: 750;
    color: #0f172a;
    margin-bottom: 6px;
    transition: color 0.15s ease;
}

.mod-hub-card:hover .mod-hub-card-title {
    color: #2563eb;
}

.mod-hub-card-desc {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 18px;
    flex-grow: 1;
}

.mod-hub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}

.mod-hub-arrow {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    display: grid;
    place-items: center;
    transition: all 0.2s ease;
}

.mod-hub-card:hover .mod-hub-arrow {
    background: #eff6ff;
    color: #2563eb;
    transform: translateX(4px);
}

.mod-hub-arrow .icon {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   Restructured Placeholder Screen Styles
   ========================================================================== */
.mod-placeholder-card {
    background: #ffffff;
    border: 1px solid #e9edf3;
    border-radius: 20px;
    padding: 60px 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    max-width: 680px;
    margin: 30px auto;
}

.mod-placeholder-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.mod-placeholder-icon-wrap .icon {
    width: 36px;
    height: 36px;
}

.mod-placeholder-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.mod-placeholder-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.mod-placeholder-desc {
    font-size: 14px;
    color: #64748b;
    max-width: 480px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

/* ==============================================================
   CRUD MODERN DESIGN SYSTEM & RESPONSIVE PERFECTION
   Applies to Foundation, Catalog, Partners, Products, Accounts, etc.
   ============================================================== */

/* 1. Page Heading & Module Banners */
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 2px;
}

.page-heading .eyebrow {
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-heading h1 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    margin-bottom: 4px;
    line-height: 1.25;
}

.page-heading p.text-secondary {
    font-size: 13.5px;
    color: #64748b !important;
    font-weight: 450;
}

.page-heading .btn {
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
    padding: 8px 18px;
    min-height: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease-in-out;
}

.page-heading .btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.page-heading .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

/* 2. CRUD Filter Cards */
form.card.mb-4,
.card.mb-3 form,
.card.mb-4 form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease;
}

form.card.mb-4:focus-within {
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.06);
}

.card .form-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

/* 3. Form Controls & Floating Labels */
.form-control,
.form-select {
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font-size: 13.5px;
    color: #0f172a;
    background-color: #ffffff;
    padding: 8px 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
    background-color: #ffffff;
}

.form-control::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

textarea.form-control {
    min-height: 88px;
}

.form-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 5px;
    line-height: 1.45;
}

/* 4. CRUD Table Cards & Table Responsive */
section.card,
.card.border-0.shadow-sm,
.card.table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
    overflow: hidden;
}

.table-responsive {
    border-radius: 13px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.table-responsive::-webkit-scrollbar {
    height: 7px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8fafc;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Table Styling */
.table,
.foundation-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13.5px;
    color: #1e293b;
}

.table thead tr th,
.foundation-table thead tr th {
    background: #f8fafc;
    color: #475569;
    font-size: 11.5px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 13px 18px;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.table tbody tr td,
.foundation-table tbody tr td {
    padding: 13px 18px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #1e293b;
    transition: background 0.12s ease;
}

.table tbody tr:hover td,
.foundation-table tbody tr:hover td {
    background: #f8fafc;
}

.table tbody tr:last-child td,
.foundation-table tbody tr:last-child td {
    border-bottom: none;
}

.table td strong {
    font-weight: 650;
    color: #0f172a;
}

.table td small.text-secondary {
    font-size: 12px;
    color: #64748b !important;
    margin-top: 2px;
    line-height: 1.4;
}

.table code {
    background: #f1f5f9;
    color: #0284c7;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

/* 5. Status Badges & Pills */
.badge {
    font-size: 11px;
    font-weight: 650;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.badge.text-bg-success,
.badge.bg-success,
.badge.bg-success-subtle {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border-color: #a7f3d0 !important;
}

.badge.text-bg-success::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.badge.text-bg-secondary,
.badge.bg-secondary-subtle {
    background-color: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

.badge.text-bg-secondary::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
}

.badge.text-bg-info {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}

/* 6. Action Buttons in Tables */
.foundation-actions,
td .btn-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 100px;
}

.foundation-actions .btn-sm,
td .btn-sm {
    min-height: 30px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.foundation-actions .btn-outline-secondary,
td .btn-outline-secondary {
    border: 1px solid #e2e8f0;
    color: #475569;
    background: #ffffff;
}

.foundation-actions .btn-outline-secondary:hover,
td .btn-outline-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.foundation-actions .btn-outline-primary,
td .btn-outline-primary {
    border: 1px solid #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
}

.foundation-actions .btn-outline-primary:hover,
td .btn-outline-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
}

/* 7. Pagination Footer */
.table-responsive+div,
.card-footer {
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 18px !important;
}

.card-footer span,
.table-responsive+div>span {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 550;
}

.pagination-nav .btn,
.table-responsive+div nav .btn {
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
}

/* 8. CRUD Form (Create / Edit) Styling */
form.foundation-form {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

form.foundation-form hr {
    border-color: #e2e8f0;
    margin: 22px 0 16px;
}

form.foundation-form h2.h5 {
    font-size: 16px;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

form.foundation-form .btn {
    border-radius: 9px;
    font-weight: 650;
    padding: 9px 20px;
    font-size: 13.5px;
}

/* 9. CRUD View / Details Screen */
section.card dl.row dt {
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    margin-bottom: 4px;
}

section.card dl.row dd {
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
    margin-bottom: 0;
}

section.card dl.row code.text-primary {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb !important;
    border: 1px solid #bfdbfe;
    padding: 5px 13px;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13.5px !important;
    letter-spacing: 0.5px;
    font-weight: 700;
    word-break: break-all;
}

/* 10. Catalog Media & Logos */
.catalog-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    display: inline-block;
    vertical-align: middle;
}

.catalog-thumb-empty {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #94a3b8;
    font-weight: 600;
    border: 1px dashed #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.company-logo {
    max-height: 68px;
    max-width: 190px;
    object-fit: contain;
    border-radius: 8px;
    padding: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* 11. Alerts */
.alert {
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 500;
    padding: 12px 18px;
    border-width: 1px;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ==============================================================
   RESPONSIVE DESIGN GUARDS (Zero layout breakages down to 360px)
   ============================================================== */
@media (max-width: 991.98px) {
    .page-heading {
        margin-bottom: 18px;
    }

    .table thead tr th,
    .foundation-table thead tr th {
        padding: 10px 14px;
        font-size: 11px;
    }

    .table tbody tr td,
    .foundation-table tbody tr td {
        padding: 11px 14px;
        font-size: 13px;
    }
}

@media (max-width: 767.98px) {
    .page-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 16px;
    }

    .page-heading h1 {
        font-size: 20px;
    }

    .page-heading .btn {
        width: 100%;
        justify-content: center;
    }

    form.card.mb-4,
    .card.border-0.shadow-sm,
    section.card,
    form.foundation-form {
        border-radius: 12px !important;
        padding: 14px !important;
    }

    .table thead tr th,
    .foundation-table thead tr th {
        padding: 9px 12px;
        font-size: 10.5px;
    }

    .table tbody tr td,
    .foundation-table tbody tr td {
        padding: 10px 12px;
        font-size: 12.5px;
    }

    .foundation-actions {
        min-width: 80px;
        gap: 4px;
    }

    .foundation-actions .btn-sm {
        padding: 3px 8px;
        font-size: 11.5px;
    }

    /* Filter buttons wrap cleanly */
    form.card .d-flex.gap-2 {
        width: 100%;
    }

    form.card .d-flex.gap-2 .btn {
        flex: 1;
        justify-content: center;
    }

    /* Form action buttons */
    form.foundation-form .d-flex.gap-2 {
        flex-direction: column;
    }

    form.foundation-form .d-flex.gap-2 .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .page-heading h1 {
        font-size: 18px;
    }

    .form-control,
    .form-select {
        font-size: 13px;
        padding: 7px 11px;
    }
}