
/* =========================
   MAIN LAYOUT
   ========================= */

.bc-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    background: #f3f6fb;
}

.bc-sidebar {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    min-height: 100vh !important;
    height: auto !important;
    position: relative !important;
    top: auto !important;
    padding: 14px !important;
    background: #e8edf5 !important;
    border-right: 1px solid #d8dee8;
    overflow: visible !important;
}

.bc-main {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #f3f6fb;
}

.bc-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
}

/* =========================
   SIDEBAR
   ========================= */

.bc-shell-nav {
    overflow: visible !important;
    height: auto !important;
    min-height: calc(100vh - 28px);
}

.bc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 18px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    margin-bottom: 14px;
}

.bc-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
}

.bc-brand-title {
    font-size: 17px;
    font-weight: 800;
    color: white;
}

.bc-brand-sub {
    font-size: 11px;
    opacity: .7;
    color: white;
}

.bc-userbox {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .bc-userbox span {
        font-size: 13px;
        font-weight: 700;
        color: white;
    }

    .bc-userbox a,
    .bc-logout {
        color: #93c5fd;
        font-size: 12px;
        font-weight: 800;
        background: none;
        border: none;
        cursor: pointer;
    }

.bc-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bc-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

    .bc-menu-item:hover {
        background: rgba(255,255,255,.08);
        color: white;
        text-decoration: none;
    }

    .bc-menu-item.active {
        background: #2563eb;
        color: white;
        box-shadow: 0 6px 16px rgba(37,99,235,.35);
    }

/* =========================
   COMMON BUTTONS / INPUTS
   ========================= */

.btn,
.bc-btn,
.bc26-btn,
button.btn {
    border: none;
    border-radius: 8px;
    background: #0067b8;
    color: white !important;
    padding: 8px 14px;
    min-height: 38px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn:hover,
    .bc-btn:hover,
    .bc26-btn:hover {
        background: #00589c;
        text-decoration: none;
    }

    .bc26-btn.secondary,
    .btn.secondary {
        background: #e5eaf1;
        color: #111827 !important;
    }

    .bc26-btn.danger,
    .btn.danger {
        background: #dc2626;
    }

.input,
.bc-input,
.bc26-input,
input.input,
select.input {
    width: 100%;
    height: 38px;
    border: 1px solid #c7d2e3;
    border-radius: 8px;
    padding: 0 10px;
    background: white;
    color: #10233f;
    outline: none;
}

    .input:focus,
    .bc-input:focus,
    .bc26-input:focus {
        border-color: #0067b8;
        box-shadow: 0 0 0 3px rgba(0,103,184,.12);
    }

.right {
    text-align: right;
}

.amount {
    font-weight: 800;
    white-space: nowrap;
}

/* =========================
   LOGIN
   ========================= */

.bc26-login-page,
.login-page {
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(0,103,184,.16), transparent 30%), linear-gradient(135deg, #f4f7fb, #e8eef7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.bc26-login-card,
.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,.96);
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 28px 70px rgba(16,35,63,.18);
}

.bc26-login-brand,
.login-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.bc26-login-logo,
.login-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #004578, #0078d4);
    color: white;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 800;
}

.bc26-login-brand h1,
.login-title h1 {
    margin: 0;
    font-size: 27px;
    color: #10233f;
}

.bc26-login-brand span,
.login-title p {
    font-size: 13px;
    color: #66758f;
}

.bc26-login-field,
.login-field {
    margin-bottom: 15px;
}

    .bc26-login-field label,
    .login-field label {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
        font-weight: 700;
    }

    .bc26-login-field input,
    .login-field input {
        width: 100%;
        height: 46px;
        border: 1px solid #c7d2e3;
        border-radius: 10px;
        padding: 0 13px;
    }

.bc26-login-button,
.login-button {
    width: 100%;
    height: 47px;
    border: none;
    border-radius: 10px;
    background: #0078d4;
    color: white;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
}

.bc26-login-message,
.login-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 10px;
    background: #fff4ce;
    border: 1px solid #ffda7a;
    color: #5d4500;
    font-weight: 700;
}

/* =========================
   DASHBOARD PRO OVERRIDE
   ========================= */

.dashboard-pro {
    padding: 22px;
    background: linear-gradient(180deg, #eef4ff 0%, #f7f9fc 100%);
    min-height: calc(100vh - 0px);
}

    .dashboard-pro .dash-hero {
        background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
        border: 1px solid #d6e3f5;
        border-radius: 20px;
        padding: 20px 22px;
        box-shadow: 0 14px 34px rgba(16,35,63,.08);
    }

    .dashboard-pro .bc-sub {
        color: #66758f;
        font-size: 14px;
    }

    .dashboard-pro .bc-btn.primary {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #fff;
        border: 0;
        border-radius: 12px;
        padding: 11px 17px;
        font-weight: 800;
        box-shadow: 0 8px 18px rgba(37,99,235,.25);
    }

    .dashboard-pro .pro-kpi-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 14px;
        margin-bottom: 16px;
    }

    .dashboard-pro .pro-kpi {
        background: white;
        border: 1px solid #dbe4f0;
        border-radius: 20px;
        padding: 16px;
        min-height: 118px;
        box-shadow: 0 12px 28px rgba(16,35,63,.07);
    }

        .dashboard-pro .pro-kpi span {
            display: block;
            color: #66758f;
            font-size: 12px;
            font-weight: 700;
        }

        .dashboard-pro .pro-kpi b {
            display: block;
            margin-top: 6px;
            color: #10233f;
            font-size: 20px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .dashboard-pro .kpi-icon {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: #eef5ff;
        font-size: 21px;
        margin-bottom: 10px;
    }

    .dashboard-pro .bc-card {
        border-radius: 18px;
        border: 1px solid #dbe4f0;
        box-shadow: 0 10px 26px rgba(16,35,63,.06);
        overflow: hidden;
    }

    .dashboard-pro .bc-card-title {
        padding: 14px 16px;
        border-bottom: 1px solid #e6edf6;
        font-size: 15px;
        font-weight: 900;
        color: #10233f;
    }

    .dashboard-pro .with-search {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .dashboard-pro .bc-search {
        width: 220px;
        border: 1px solid #dbe4f0;
        border-radius: 11px;
        padding: 9px 12px;
        outline: none;
    }

        .dashboard-pro .bc-search:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,.12);
        }

    .dashboard-pro .bc-table {
        width: 100%;
        border-collapse: collapse;
    }

        .dashboard-pro .bc-table th {
            background: #f1f5fb;
            color: #40516b;
            font-size: 12px;
            font-weight: 900;
            padding: 11px 12px;
        }

        .dashboard-pro .bc-table td {
            padding: 12px;
            border-top: 1px solid #eef2f7;
            font-size: 13px;
        }

        .dashboard-pro .bc-table tbody tr:hover {
            background: #f8fbff;
        }

    .dashboard-pro .right {
        text-align: right;
    }

    .dashboard-pro .amount {
        font-weight: 900;
        color: #10233f;
    }

    .dashboard-pro .chart-card {
        margin-bottom: 14px;
    }

    .dashboard-pro .bc-bar-row {
        padding: 11px 16px;
    }

    .dashboard-pro .bc-bar-head {
        display: flex;
        justify-content: space-between;
        margin-bottom: 7px;
        font-size: 13px;
    }

    .dashboard-pro .bc-bar {
        height: 13px;
        background: #e8eef7;
        border-radius: 999px;
        overflow: hidden;
    }

    .dashboard-pro .bc-bar-fill {
        height: 100%;
        background: linear-gradient(90deg, #2563eb, #22c55e);
        border-radius: 999px;
    }

    .dashboard-pro .bc-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-bottom: 14px;
    }

    .dashboard-pro .bc-sales-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        padding: 14px;
    }

    .dashboard-pro .pro-sales-card {
        background: #f8fbff;
        border: 1px solid #dbe4f0;
        border-radius: 16px;
        padding: 14px;
    }

        .dashboard-pro .pro-sales-card span {
            color: #66758f;
            font-size: 12px;
            font-weight: 800;
        }

        .dashboard-pro .pro-sales-card b {
            display: block;
            margin-top: 5px;
            font-size: 17px;
            color: #2563eb;
        }

@media (max-width: 1100px) {
    .dashboard-pro .pro-kpi-grid,
    .dashboard-pro .bc-sales-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-pro .bc-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .dashboard-pro {
        padding: 12px;
    }

        .dashboard-pro .bc-header {
            flex-direction: column;
            align-items: stretch;
        }

        .dashboard-pro .pro-kpi-grid,
        .dashboard-pro .bc-sales-grid {
            grid-template-columns: 1fr;
        }

        .dashboard-pro .with-search {
            flex-direction: column;
            align-items: stretch;
        }

        .dashboard-pro .bc-search {
            width: 100%;
        }
}
/* DASHBOARD SAME STYLE AS SALES */

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

    .dashboard-grid + .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

.dashboard-chart-card,
.dashboard-side-card {
    min-height: 320px;
}

.table-toolbar small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
}

.dash-bars {
    padding: 18px;
}

.dash-bar-row {
    margin-bottom: 16px;
}

.dash-bar-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

    .dash-bar-head span {
        color: #64748b;
        font-weight: 800;
    }

    .dash-bar-head b {
        color: #0f172a;
    }

.dash-bar {
    height: 14px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}

.dash-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg,#2563eb,#22c55e);
}

.dash-salesperson-list {
    padding: 16px;
}

.dash-salesperson-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 13px 14px;
    margin-bottom: 10px;
}

    .dash-salesperson-row span {
        font-weight: 900;
        color: #2563eb;
    }

    .dash-salesperson-row b {
        color: #0f172a;
    }

@media (max-width: 1100px) {
    .dashboard-grid,
    .dashboard-grid + .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.bc26-message.success {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.bc26-message.warning {
    background: #fffaeb;
    color: #b54708;
    border: 1px solid #fedf89;
}

.bc26-message.error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.bc26-info {
    font-size: 11px;
    color: #2563eb;
    margin-top: 3px;
}
/* =========================
   SUMMARY CARDS
   ========================= */

.bc26-summary-grid,
.bc-kpi-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.bc26-summary-card,
.bc-kpi,
.admin-card {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 14px;
}

    .bc26-summary-card span,
    .bc-kpi span,
    .admin-card span {
        display: block;
        font-size: 12px;
        color: #6b7280;
    }

    .bc26-summary-card b,
    .bc-kpi b,
    .admin-card b {
        font-size: 18px;
    }

/* =========================
   SALES DETAILS TABLE
   ========================= */

.bc26-table-card {
    width: 100%;
    overflow-x: auto;
}

.bc26-sales-table,
.sales-table,
.dashboard-table,
.bc-table {
    width: 100%;
    border-collapse: collapse;
}

    .bc26-sales-table th,
    .sales-table th,
    .dashboard-table th,
    .bc-table th {
        background: #f2f6fb;
        text-align: left;
        padding: 11px;
        font-size: 12px;
        color: #374151;
        border-bottom: 1px solid #dbe4f0;
    }

    .bc26-sales-table td,
    .sales-table td,
    .dashboard-table td,
    .bc-table td {
        padding: 11px;
        border-bottom: 1px solid #edf2f7;
        font-size: 14px;
    }

    .bc26-sales-table tr:hover,
    .sales-table tr:hover,
    .dashboard-table tr:hover,
    .bc-table tr:hover {
        background: #f8fbff;
    }
/* =========================
   SALES DETAILS PRO
   ========================= */

.sales-pro-page .sales-table-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #dbe4f0;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
}

.sales-pro-page .sales-pro-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

    .sales-pro-page .sales-pro-table th {
        background: #f8fafc;
        padding: 14px 16px;
        font-size: 12px;
        font-weight: 900;
        color: #64748b;
        border-bottom: 1px solid #e5edf7;
        white-space: nowrap;
    }

    .sales-pro-page .sales-pro-table td {
        padding: 15px 16px;
        border-bottom: 1px solid #eef2f7;
        font-size: 14px;
        color: #0f172a;
        vertical-align: middle;
    }

    .sales-pro-page .sales-pro-table tbody tr {
        transition: background .15s ease;
    }

        .sales-pro-page .sales-pro-table tbody tr:hover {
            background: #f8fbff;
        }

.sales-pro-page .table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.sales-pro-page .amount {
    font-weight: 900;
    color: #0f172a;
}

.sales-pro-page .right {
    text-align: right;
}

.sales-pro-page .date-pill {
    display: inline-block;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.sales-pro-page .badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

    .sales-pro-page .badge.blue {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .sales-pro-page .badge.purple {
        background: #f3e8ff;
        color: #7e22ce;
    }

.sales-pro-page .export-btn-pro {
    border: 0;
    background: #eef2f7;
    color: #0f172a;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    text-decoration: none;
}

    .sales-pro-page .export-btn-pro:hover {
        background: #e2e8f0;
    }

.details-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {

    .details-kpi-grid {
        grid-template-columns: 1fr;
    }

    .sales-pro-page .sales-pro-table th,
    .sales-pro-page .sales-pro-table td {
        padding: 12px;
    }
}
/* =========================
   SALES PRO UI
   ========================= */

.sales-pro-page {
    padding: 22px;
    background: linear-gradient(180deg,#f4f7fc 0%,#eef3f9 100%);
    min-height: 100vh;
}

.sales-hero-card {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.sales-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.sales-kicker {
    font-size: 12px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
}

.sales-hero-top h1 {
    margin: 4px 0;
    font-size: 44px;
    color: #0f172a;
}

.sales-hero-top p {
    margin: 0;
    color: #64748b;
}

.hero-actions {
    display: flex;
    gap: 10px;
}

.reload-btn,
.new-sale-btn {
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
}

.reload-btn {
    background: #eef2f7;
}

.new-sale-btn {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
}

.sales-filter-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .filter-group label {
        font-size: 12px;
        font-weight: 800;
        color: #64748b;
    }

    .filter-group input,
    .filter-group select {
        border: 1px solid #dbe4f0;
        background: white;
        border-radius: 14px;
        padding: 12px 14px;
        outline: none;
        font-size: 14px;
    }

        .filter-group input:focus,
        .filter-group select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,.12);
        }

.search-box {
    position: relative;
}

    .search-box span {
        position: absolute;
        right: 14px;
        top: 12px;
    }

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.btn-reset,
.btn-filter {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
}

.btn-reset {
    background: #eef2f7;
}

.btn-filter {
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
}

.sales-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.sales-kpi-card {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    box-shadow: 0 10px 26px rgba(15,23,42,.05);
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.blue .kpi-icon {
    background: #dbeafe;
}

.green .kpi-icon {
    background: #dcfce7;
}

.purple .kpi-icon {
    background: #f3e8ff;
}

.orange .kpi-icon {
    background: #ffedd5;
}

.sales-kpi-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.sales-kpi-card b {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    color: #0f172a;
}

.sales-kpi-card small {
    color: #94a3b8;
}

.sales-table-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #dbe4f0;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
}

.table-toolbar {
    padding: 18px;
    border-bottom: 1px solid #e8edf5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-tabs {
    display: flex;
    gap: 10px;
}

    .table-tabs button {
        border: 0;
        background: #f1f5f9;
        border-radius: 12px;
        padding: 10px 16px;
        font-weight: 800;
        cursor: pointer;
    }

    .table-tabs .active {
        background: #2563eb;
        color: white;
    }

.table-search {
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 10px 14px;
    width: 240px;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.sales-pro-table {
    width: 100%;
    border-collapse: collapse;
}

    .sales-pro-table th {
        background: #f8fafc;
        padding: 14px;
        text-align: left;
        font-size: 12px;
        color: #64748b;
        border-bottom: 1px solid #e5edf7;
    }

    .sales-pro-table td {
        padding: 15px 14px;
        border-bottom: 1px solid #eef2f7;
    }

    .sales-pro-table tbody tr:hover {
        background: #f8fbff;
    }

.doc-link {
    color: #2563eb;
    font-weight: 800;
    text-decoration: none;
}

.date-pill {
    background: #f1f5f9;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

    .badge.blue {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .badge.purple {
        background: #f3e8ff;
        color: #7e22ce;
    }

.amount {
    font-weight: 900;
    color: #0f172a;
}

.view-btn {
    border: 0;
    background: #eff6ff;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    cursor: pointer;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.loading-card,
.error-card,
.empty-card {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 24px;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #dbe4f0;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width:1100px) {

    .sales-filter-grid,
    .sales-kpi-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:700px) {

    .sales-filter-grid,
    .sales-kpi-grid {
        grid-template-columns: 1fr;
    }

    .sales-hero-top,
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .table-search {
        width: 100%;
    }
}
/* =========================
   NEW SALE GENERAL
   ========================= */

.bc26-card {
    padding: 14px;
    margin-bottom: 16px;
    overflow: visible;
}

.bc26-card-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 14px;
}

.bc26-general-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: end;
}

.bc26-field {
    position: relative;
}

    .bc26-field label {
        display: block;
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: 700;
    }

/* =========================
   NEW SALE LINES - NO BAD SCROLL
   ========================= */

.bc26-lines-wrap {
    width: 100%;
    overflow: visible;
    padding-bottom: 8px;
}

.bc26-lines-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
}

    .bc26-lines-table th {
        background: #eef3f9;
        color: #10233f;
        font-size: 12px;
        padding: 8px 6px;
        border-bottom: 1px solid #d7e1ee;
        text-align: left;
        white-space: nowrap;
    }

    .bc26-lines-table td {
        padding: 7px 6px;
        border-bottom: 1px solid #edf2f7;
        vertical-align: top;
        overflow: visible;
        font-size: 12.5px;
    }

        .bc26-lines-table th:nth-child(1),
        .bc26-lines-table td:nth-child(1) {
            width: 260px;
        }

        .bc26-lines-table th:nth-child(2),
        .bc26-lines-table td:nth-child(2) {
            width: 170px;
        }

        .bc26-lines-table th:nth-child(3),
        .bc26-lines-table td:nth-child(3) {
            width: 65px;
        }

        .bc26-lines-table th:nth-child(4),
        .bc26-lines-table td:nth-child(4) {
            width: 70px;
        }

        .bc26-lines-table th:nth-child(5),
        .bc26-lines-table td:nth-child(5),
        .bc26-lines-table th:nth-child(6),
        .bc26-lines-table td:nth-child(6),
        .bc26-lines-table th:nth-child(7),
        .bc26-lines-table td:nth-child(7) {
            width: 85px;
        }

        .bc26-lines-table th:nth-child(8),
        .bc26-lines-table td:nth-child(8),
        .bc26-lines-table th:nth-child(9),
        .bc26-lines-table td:nth-child(9) {
            width: 105px;
        }

        .bc26-lines-table th:nth-child(10),
        .bc26-lines-table td:nth-child(10) {
            width: 48px;
        }

.bc26-item-cell {
    position: relative;
    z-index: 5;
}

    .bc26-item-cell:focus-within {
        z-index: 999999;
    }

.bc26-item-input,
.bc26-number {
    width: 100%;
    min-width: 0;
    height: 34px;
    border-radius: 7px;
    font-size: 12.5px;
    padding: 0 7px;
}

.bc26-number {
    text-align: right;
}

.bc26-amount {
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    text-align: right;
    padding-top: 10px;
}

.bc26-delete {
    text-align: center;
}

    .bc26-delete .bc26-btn,
    .bc26-btn.danger {
        width: 38px;
        min-width: 38px;
        height: 36px;
        border-radius: 8px;
        padding: 0;
    }

.add-line-btn {
    margin-top: 8px;
}

/* dropdown */
.bc26-search-panel,
.bc26-item-panel {
    position: absolute;
    top: 38px;
    left: 0;
    width: 470px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 999999;
    background: white;
    border: 1px solid #b9c9dc;
    border-radius: 9px;
    box-shadow: 0 14px 34px rgba(16,35,63,.20);
}

.bc26-search-row {
    padding: 9px 11px;
    cursor: pointer;
    border-bottom: 1px solid #edf2f7;
    font-size: 13px;
}

    .bc26-search-row:hover,
    .bc26-search-row.active {
        background: #dbeafe;
    }

    .bc26-search-row small {
        display: block;
        margin-top: 3px;
        color: #66758f;
        font-size: 12px;
    }

/* =========================
   TOTAL BAR
   ========================= */

.bc26-totalbar,
.bc-total-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    padding: 10px 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}

    .bc26-totalbar div,
    .bc-total-bar div {
        text-align: right;
    }

    .bc26-totalbar span,
    .bc-total-bar span {
        display: block;
        color: #66758f;
        font-size: 11px;
    }

    .bc26-totalbar b,
    .bc-total-bar b {
        font-size: 16px;
    }

    .bc26-totalbar .save {
        min-width: 80px;
        height: 38px;
    }

/* =========================
   MODAL
   ========================= */

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(15,35,70,.35);
    z-index: 1000;
}

.modal-custom {
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    border: 1px solid #dbe4f0;
    box-shadow: 0 25px 70px rgba(16,35,63,.25);
    z-index: 1001;
    overflow: hidden;
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: #f2f6fb;
    border-bottom: 1px solid #dbe4f0;
}

.modal-body-custom {
    padding: 18px;
}

.btn-close-custom {
    border: none;
    background: #dbe4f0;
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
}

/* =========================
   DEVICES
   ========================= */

.status-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

    .status-pill.active {
        background: #dcfce7;
        color: #166534;
    }

    .status-pill.blocked {
        background: #fee2e2;
        color: #991b1b;
    }

    .status-pill.inactive {
        background: #e5e7eb;
        color: #374151;
    }

.muted {
    color: #6b7280;
    font-size: 12px;
}

.device-edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

    .device-edit-grid label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .device-edit-grid .wide {
        grid-column: 1 / -1;
    }

.textarea {
    height: 90px;
    padding-top: 10px;
    resize: vertical;
}
/* =========================
   DEVICES PRO
   ========================= */

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    min-width: 82px;
    letter-spacing: .02em;
}

    .status-pill.active {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .status-pill.blocked {
        background: #fee2e2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    .status-pill.inactive {
        background: #f1f5f9;
        color: #475569;
        border: 1px solid #e2e8f0;
    }

.muted {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.device-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}

    .device-edit-grid label {
        display: block;
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: 800;
        color: #64748b;
    }

    .device-edit-grid input,
    .device-edit-grid select,
    .device-edit-grid textarea {
        width: 100%;
        border: 1px solid #dbe4f0;
        border-radius: 14px;
        padding: 12px 14px;
        background: white;
        font-size: 14px;
        outline: none;
        transition: all .15s ease;
    }

        .device-edit-grid input:focus,
        .device-edit-grid select:focus,
        .device-edit-grid textarea:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,.12);
        }

    .device-edit-grid .wide {
        grid-column: 1 / -1;
    }

.textarea {
    min-height: 110px;
    resize: vertical;
    padding-top: 12px;
}

.device-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.device-modal {
    width: 840px;
    max-width: 95%;
    border-radius: 24px;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f7;
}

    .modal-header-custom h4 {
        margin: 0;
        font-size: 20px;
        color: #0f172a;
    }

.modal-body-custom {
    padding: 22px;
}

.btn-close-custom {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 900;
}

.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.45);
    backdrop-filter: blur(3px);
    z-index: 9998;
}

.modal-custom {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.success-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg,#16a34a,#15803d);
    color: white;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
    z-index: 99999;
    font-weight: 700;
}

@media (max-width: 900px) {

    .device-edit-grid {
        grid-template-columns: 1fr;
    }

        .device-edit-grid .wide {
            grid-column: span 1;
        }

    .device-modal {
        width: 96%;
    }

    .modal-body-custom {
        padding: 16px;
    }
}

/* =========================
   ALERTS / EMPTY
   ========================= */

.bc26-empty,
.bc26-alert,
.bc-empty {
    padding: 22px;
    text-align: center;
    color: #6b7280;
}

.bc26-alert {
    color: #991b1b;
    background: #fff1f2;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
    .bc-layout {
        display: block;
    }

    .bc-sidebar {
        position: relative;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
    }

    .bc-shell-nav {
        min-height: auto;
    }

    .bc-content {
        padding: 10px;
    }

    .bc26-general-grid,
    .device-edit-grid,
    .bc26-summary-grid,
    .bc-kpi-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .bc26-lines-wrap {
        overflow-x: visible;
    }

    .bc26-lines-table,
    .bc26-lines-table thead,
    .bc26-lines-table tbody,
    .bc26-lines-table tr,
    .bc26-lines-table th,
    .bc26-lines-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

        .bc26-lines-table thead {
            display: none;
        }

        .bc26-lines-table tr {
            background: white;
            border: 1px solid #dbe4f0;
            border-radius: 12px;
            padding: 12px;
            margin-bottom: 12px;
            box-shadow: 0 4px 14px rgba(16,35,63,.06);
        }

        .bc26-lines-table td {
            border: none;
            padding: 6px 0;
            white-space: normal;
        }

    .bc26-totalbar,
    .bc-total-bar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

        .bc26-totalbar div,
        .bc-total-bar div {
            display: flex;
            justify-content: space-between;
            text-align: left;
        }

        .bc26-totalbar .save {
            width: 100%;
        }

    .bc26-search-panel,
    .bc26-item-panel {
        width: 95vw;
        left: 0;
    }

    .bc26-sales-header,
    .bc-header,
    .bc-sale-header {
        flex-direction: column;
    }
}
/* CUSTOMER DROPDOWN FINAL */
/* CUSTOMER SEARCH - MOS E MBULO INPUTIN */
.bc26-customer-cell {
    position: relative !important;
    z-index: 99999 !important;
}

    .bc26-customer-cell .bc26-search-panel {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 0 !important;
        width: 420px !important;
        max-height: 260px !important;
        overflow-y: auto !important;
        background: white !important;
        border: 1px solid #c7d2e3 !important;
        border-radius: 10px !important;
        box-shadow: 0 18px 40px rgba(16,35,63,.22) !important;
        z-index: 999999 !important;
    }

.bc26-card:has(.bc26-customer-cell .bc26-search-panel) {
    padding-bottom: 265px !important;
}

.bc26-search-row {
    padding: 9px 12px !important;
    font-size: 13px !important;
}

    .bc26-search-row small {
        display: block;
        margin-top: 3px;
        color: #66758f;
    }

   
/* =========================
   NEW SALE PRO - CLEAN
   ========================= */

.newsale-pro-page .bc26-card,
.newsale-pro-page .bc26-totalbar {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
    overflow: visible;
}

.newsale-pro-page .bc26-card {
    overflow: visible !important;
}

.newsale-pro-page .bc26-card-title {
    padding: 14px 18px;
    border-bottom: 1px solid #e8edf5;
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.newsale-pro-page .bc26-general-grid {
    padding: 16px;
    display: grid;
    grid-template-columns: 2fr 1.15fr 1.15fr 1fr;
    gap: 12px;
}

.newsale-pro-page .bc26-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
}

.newsale-pro-page .bc26-input {
    width: 100%;
    height: 38px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 8px 11px;
    outline: none;
    background: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.newsale-pro-page select.bc26-input {
    height: 38px;
    font-size: 13px;
    padding: 7px 34px 7px 11px;
}

.newsale-pro-page .location-select {
    min-width: 0;
    font-size: 13px;
}

.newsale-pro-page .bc26-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

.newsale-pro-page .bc26-readonly {
    background: #f8fafc;
    color: #475569;
}



.newsale-pro-page .bc26-lines-table {
    width: 100%;
    table-layout: fixed;
}

    .newsale-pro-page .bc26-lines-table th {
        background: #f8fafc;
        padding: 11px 10px;
        font-size: 12px;
        font-weight: 900;
        color: #64748b;
        border-bottom: 1px solid #e5edf7;
        white-space: nowrap;
    }

    .newsale-pro-page .bc26-lines-table td {
        padding: 10px;
        border-bottom: 1px solid #eef2f7;
        vertical-align: top;
        position: relative;
    }

.newsale-pro-page .bc26-item-cell {
    position: relative;
    width: 360px;
    min-width: 360px;
    overflow: visible !important;
}

.newsale-pro-page .bc26-item-input {
    width: 100%;
    min-width: 0;
}

.newsale-pro-page .bc26-item-panel {
    position: absolute !important;
    top: 42px;
    left: 10px;
    width: 360px !important;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999999;
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
}

.newsale-pro-page .bc26-search-row {
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.25;
}

    .newsale-pro-page .bc26-search-row:hover,
    .newsale-pro-page .bc26-search-row.active {
        background: #eff6ff;
    }

    .newsale-pro-page .bc26-search-row b {
        color: #2563eb;
    }

    .newsale-pro-page .bc26-search-row small {
        display: block;
        color: #64748b;
        margin-top: 2px;
        font-size: 11px;
    }

.newsale-pro-page .bc26-customer-cell {
    position: relative;
    overflow: visible;
}

    .newsale-pro-page .bc26-customer-cell .bc26-search-panel {
        width: 100%;
        left: 0;
        top: 44px;
    }

.newsale-pro-page .bc26-number {
    width: 82px;
    height: 36px;
    text-align: right;
    font-size: 13px;
}

.newsale-pro-page .bc26-amount {
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    text-align: right;
    font-size: 13px;
}

.newsale-pro-page .bc26-btn {
    border: 0;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    background: linear-gradient(135deg,#2563eb,#1d4ed8);
    color: white;
}

    .newsale-pro-page .bc26-btn.secondary {
        background: #eef2f7;
        color: #0f172a;
    }

    .newsale-pro-page .bc26-btn.save {
        background: linear-gradient(135deg,#16a34a,#15803d);
    }

    .newsale-pro-page .bc26-btn.danger {
        background: #fee2e2;
        color: #991b1b;
        padding: 7px 10px;
    }

.newsale-pro-page .bc26-totalbar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    padding: 13px 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

    .newsale-pro-page .bc26-totalbar div {
        min-width: 120px;
    }

    .newsale-pro-page .bc26-totalbar span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 800;
    }

    .newsale-pro-page .bc26-totalbar b {
        display: block;
        margin-top: 3px;
        font-size: 18px;
        color: #0f172a;
    }

.newsale-pro-page .bc26-error {
    margin-top: 4px;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .newsale-pro-page .bc26-general-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .newsale-pro-page .bc26-general-grid {
        grid-template-columns: 1fr;
    }

    .newsale-pro-page .bc26-totalbar {
        position: static;
        flex-direction: column;
        align-items: stretch;
    }

        .newsale-pro-page .bc26-totalbar div,
        .newsale-pro-page .bc26-totalbar button {
            width: 100%;
        }
}
/* FIX NEW SALE DROPDOWN + NO SCROLL */

.newsale-pro-page .bc26-card {
    overflow: visible !important;
    position: relative;
    z-index: 20;
}

.newsale-pro-page .bc26-lines-wrap {
    overflow: visible !important;
    position: relative;
}

.newsale-pro-page .bc26-lines-table {
    width: 100%;
    table-layout: fixed;
    overflow: visible !important;
}

    .newsale-pro-page .bc26-lines-table td {
        overflow: visible !important;
        position: relative;
    }

.newsale-pro-page .bc26-item-cell {
    width: 360px;
    min-width: 360px;
    max-width: 360px;
    overflow: visible !important;
    position: relative;
}

.newsale-pro-page .bc26-item-input {
    width: 100%;
    min-width: 0;
    height: 36px;
    font-size: 13px;
}

.newsale-pro-page .bc26-item-panel {
    position: absolute !important;
    top: 42px;
    left: 10px;
    width: 360px !important;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999999 !important;
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
}

.newsale-pro-page .bc26-search-row {
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.25;
}

    .newsale-pro-page .bc26-search-row small {
        font-size: 11px;
    }

.newsale-pro-page .bc26-totalbar {
    position: relative !important;
    z-index: 5 !important;
    margin-top: 14px;
}

@media (max-width: 900px) {
    .newsale-pro-page .bc26-lines-wrap {
        overflow-x: auto !important;
    }

    .newsale-pro-page .bc26-lines-table {
        min-width: 1050px;
    }
}

/*MOBILERIGHTS*/
.rights-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.rights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.right-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    padding: 14px;
    background: #f8fafc;
    cursor: pointer;
    transition: all .15s ease;
}

    .right-card:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
    }

    .right-card input {
        width: 18px;
        height: 18px;
    }

    .right-card b {
        display: block;
        color: #0f172a;
        font-size: 14px;
    }

    .right-card span {
        display: block;
        margin-top: 3px;
        font-size: 12px;
        font-weight: 800;
    }

    .right-card.allowed {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

        .right-card.allowed span {
            color: #15803d;
        }

    .right-card.blocked {
        background: #fff7ed;
        border-color: #fed7aa;
    }

        .right-card.blocked span {
            color: #c2410c;
        }

@media (max-width: 1100px) {
    .rights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .rights-grid {
        grid-template-columns: 1fr;
    }
}

/*INVOICE*/
.invoice-preview-page {
    padding: 16px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.invoice-preview-toolbar {
    display: flex;
    gap: 10px;
}

.invoice-frame {
    width: 100%;
    flex: 1;
    border: 1px solid #dbe4f0;
    border-radius: 16px;
    background: white;
}
.invoice-toolbar {
    display: flex;
    gap: 10px;
    padding: 18px 36px;
    background: #f3f6fb;
}

.btn-primary {
    background: #0078d4;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
}

.btn-secondary {
    background: #e8eef7;
    color: #111827;
    border: none;
    padding: 10px 16px;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
}

.invoice-frame-wrap {
    background: #f3f6fb;
    padding: 0 36px 40px 36px;
}

.invoice-frame {
    width: 100%;
    height: calc(100vh - 95px);
    border: 1px solid #d5deea;
    border-radius: 12px;
    background: white;
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        margin: 0;
        background: white;
    }

    .invoice-frame-wrap {
        padding: 0;
        background: white;
    }

    .invoice-frame {
        width: 100%;
        height: 100vh;
        border: none;
        border-radius: 0;
    }
}
@page {
    size: A4 portrait;
    margin: 6mm;
}

html, body {
    margin: 0;
    padding: 0;
    background: #fff;
    font-family: Arial, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.invoice-page {
    width: 190mm;
    min-height: 277mm;
    margin: 0 auto;
    background: white;
    box-sizing: border-box;
}
@media print {

    body {
        margin: 0;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }

    @page {
        size: A4;
        margin: 6mm;
    }
}
@media print {

    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    @page {
        size: A4 portrait;
        margin: 6mm;
    }

    .invoice-page {
        width: 100% !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        border: none !important;
    }

    .no-print {
        display: none !important;
    }
}

/*Ruta*/
.route-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
    border: 1px solid #e5e7eb;
}

.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.route-title {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.route-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.route-count {
    background: #eff6ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.route-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.route-item {
    display: grid;
    grid-template-columns: 50px 1fr 44px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #f8fafc;
}

.route-order {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #1e3a8a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.route-name {
    font-weight: 800;
    color: #111827;
}

.route-meta {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
}

.empty-route {
    padding: 18px;
    border-radius: 14px;
    background: #f8fafc;
    color: #6b7280;
    font-weight: 700;
}

@media (max-width: 900px) {
    .route-list {
        grid-template-columns: 1fr;
    }
}
.route-page {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    padding: 20px;
}

.route-form-card,
.route-table-card {
    background: white;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 18px;
}

.save-btn {
    margin-top: 18px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: #1e3a8a;
    color: white;
    padding: 12px;
    font-weight: 700;
}

.route-table {
    width: 100%;
    border-collapse: collapse;
}

    .route-table th,
    .route-table td {
        padding: 12px;
        border-bottom: 1px solid #eee;
    }

.delete-btn {
    border: 0;
    background: #dc2626;
    color: white;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

@media(max-width:900px) {
    .route-page {
        grid-template-columns: 1fr;
    }
}
.rm-page {
    padding: 24px;
}

.rm-header {
    margin-bottom: 22px;
}

.rm-kicker {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: .08em;
}

.rm-header h1 {
    margin: 4px 0;
    font-size: 34px;
    font-weight: 800;
}

.rm-header p {
    color: #6b7280;
}

.rm-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
}

.rm-card {
    background: white;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.rm-card-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
}

.rm-form-grid {
    display: grid;
    gap: 14px;
}

    .rm-form-grid label {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
        font-weight: 700;
        color: #374151;
    }

.rm-input {
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 0 14px;
    font-size: 14px;
}

.rm-days {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 10px;
    margin-top: 18px;
}

    .rm-days label {
        font-size: 14px;
    }

.rm-save-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 14px;
    margin-top: 18px;
    background: #1e3a8a;
    color: white;
    font-weight: 800;
    font-size: 15px;
}

.rm-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.rm-sub {
    color: #6b7280;
    font-size: 13px;
}

.rm-refresh-btn {
    border: 0;
    background: #eff6ff;
    color: #1e3a8a;
    border-radius: 12px;
    height: 42px;
    padding: 0 16px;
    font-weight: 700;
}

.rm-table {
    width: 100%;
    border-collapse: collapse;
}

    .rm-table th {
        text-align: left;
        padding: 12px;
        font-size: 13px;
        color: #6b7280;
        border-bottom: 1px solid #e5e7eb;
    }

    .rm-table td {
        padding: 14px 12px;
        border-bottom: 1px solid #f1f5f9;
    }

.rm-order {
    background: #1e3a8a;
    color: white;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.rm-customer-no {
    font-weight: 800;
}

.rm-customer-name {
    color: #6b7280;
    font-size: 13px;
    margin-top: 3px;
}

.rm-delete-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 0;
    background: #dc2626;
    color: white;
    font-weight: 800;
}

@media(max-width:1000px) {

    .rm-grid {
        grid-template-columns: 1fr;
    }
}
.success-card {
    background: #dcfce7;
    color: #166534;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    margin-bottom: 16px;
}

.rm-clear-btn {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 14px;
    margin-top: 10px;
    background: #e5e7eb;
    color: #111827;
    font-weight: 800;
}

.days-text {
    font-size: 12px;
    font-weight: 800;
    color: #1e3a8a;
}
/* =========================
   NEW SALE PREMIUM RESPONSIVE
   ========================= */

.newsale-pro-page {
    max-width: 100%;
}

    .newsale-pro-page .sales-hero-card,
    .newsale-pro-page .bc26-card,
    .newsale-pro-page .bc26-totalbar,
    .newsale-pro-page .bc26-message {
        border-radius: 18px;
        border: 1px solid #dbe4f0;
        background: #fff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    }

    .newsale-pro-page .sales-hero-card {
        padding: 18px 20px;
    }

    .newsale-pro-page .sales-hero-top {
        align-items: center;
        margin-bottom: 0;
    }

        .newsale-pro-page .sales-hero-top h1 {
            font-size: 28px;
            margin: 2px 0;
        }

    .newsale-pro-page .sales-kicker {
        display: none;
    }

.draft-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    padding: 9px 14px;
    color: #10233f;
}

    .draft-pill b {
        display: block;
        font-size: 13px;
        font-weight: 900;
        line-height: 1;
    }

    .draft-pill small {
        display: block;
        margin-top: 3px;
        font-size: 11px;
        color: #66758f;
    }

.draft-dot {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #dcfce7;
    color: #16a34a;
    font-size: 12px;
    font-weight: 900;
}

.bc26-message {
    margin-top: 14px;
    padding: 14px 16px;
    font-weight: 800;
}

    .bc26-message.warning {
        background: #ecfdf3 !important;
        color: #027a48 !important;
        border-color: #abefc6 !important;
    }

.bc26-general-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.bc26-lines-table {
    border-collapse: separate;
    border-spacing: 0;
}

    .bc26-lines-table th {
        background: #f8fafc !important;
        color: #475569 !important;
        font-weight: 900;
        padding: 12px 10px !important;
    }

    .bc26-lines-table td {
        padding: 10px !important;
    }

    .bc26-lines-table tr:hover {
        background: #fbfdff;
    }

.bc26-btn.save {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
}

.bc26-btn.secondary {
    background: #eef2f7 !important;
    color: #111827 !important;
}

.bc26-btn.danger {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-radius: 12px !important;
}

.bc26-totalbar {
    margin-top: 14px;
    gap: 26px;
}

    .bc26-totalbar b {
        font-size: 18px;
    }

/* MOBILE NEW SALE */
@media (max-width: 900px) {
    .sales-pro-page {
        padding: 10px !important;
    }

    .newsale-pro-page .sales-hero-card {
        border-radius: 18px;
        padding: 14px;
    }

    .newsale-pro-page .sales-hero-top {
        flex-direction: row !important;
        align-items: flex-start;
        gap: 10px;
    }

        .newsale-pro-page .sales-hero-top h1 {
            font-size: 22px;
        }

        .newsale-pro-page .sales-hero-top p {
            font-size: 12px;
        }

    .hero-actions {
        margin-left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .reload-btn {
        padding: 8px 10px;
        min-height: 34px;
        font-size: 12px;
    }

    .draft-pill {
        padding: 7px 10px;
        border-radius: 12px;
    }

        .draft-pill b {
            font-size: 11px;
        }

        .draft-pill small {
            display: none;
        }

    .bc26-card {
        border-radius: 18px;
        padding: 14px !important;
        margin-bottom: 12px;
    }

    .bc26-card-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .bc26-general-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .bc26-field label {
        font-size: 11px;
    }

    .bc26-input {
        height: 38px;
        border-radius: 10px;
        font-size: 13px;
    }

    .bc26-lines-wrap {
        overflow: visible !important;
    }

    .bc26-lines-table,
    .bc26-lines-table tbody,
    .bc26-lines-table tr,
    .bc26-lines-table td {
        display: block !important;
        width: 100% !important;
    }

        .bc26-lines-table thead {
            display: none !important;
        }

        .bc26-lines-table tr {
            position: relative;
            border: 1px solid #dbe4f0;
            border-radius: 16px;
            padding: 12px;
            margin-bottom: 12px;
            background: #fff;
            box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
        }

        .bc26-lines-table td {
            border: 0 !important;
            padding: 5px 0 !important;
        }

    .bc26-item-cell {
        padding-right: 42px !important;
    }

    .bc26-item-input {
        font-weight: 900;
    }

    .bc26-lines-table td:nth-child(2),
    .bc26-lines-table td:nth-child(3) {
        font-size: 12px;
        color: #475569;
    }

    .bc26-lines-table td:nth-child(4),
    .bc26-lines-table td:nth-child(5),
    .bc26-lines-table td:nth-child(6),
    .bc26-lines-table td:nth-child(7) {
        display: inline-block !important;
        width: 23.5% !important;
        vertical-align: top;
        margin-right: 1%;
    }

        .bc26-lines-table td:nth-child(4)::before {
            content: "Qty";
        }

        .bc26-lines-table td:nth-child(5)::before {
            content: "Price";
        }

        .bc26-lines-table td:nth-child(6)::before {
            content: "Rabat %";
        }

        .bc26-lines-table td:nth-child(7)::before {
            content: "Extra %";
        }

        .bc26-lines-table td:nth-child(4)::before,
        .bc26-lines-table td:nth-child(5)::before,
        .bc26-lines-table td:nth-child(6)::before,
        .bc26-lines-table td:nth-child(7)::before {
            display: block;
            margin-bottom: 4px;
            color: #64748b;
            font-size: 10px;
            font-weight: 900;
        }

    .bc26-lines-table td:nth-child(8),
    .bc26-lines-table td:nth-child(9) {
        display: inline-block !important;
        width: 49% !important;
        vertical-align: top;
        margin-top: 8px;
    }

        .bc26-lines-table td:nth-child(8)::before {
            content: "Discount";
        }

        .bc26-lines-table td:nth-child(9)::before {
            content: "Line Total";
        }

        .bc26-lines-table td:nth-child(8)::before,
        .bc26-lines-table td:nth-child(9)::before {
            display: block;
            margin-bottom: 2px;
            color: #64748b;
            font-size: 10px;
            font-weight: 900;
        }

    .bc26-amount {
        text-align: left !important;
        font-size: 14px !important;
        padding-top: 0 !important;
    }

    .bc26-lines-table td:nth-child(9) {
        text-align: right !important;
    }

    .bc26-delete {
        position: absolute;
        top: 10px;
        right: 10px;
        width: auto !important;
        padding: 0 !important;
    }

        .bc26-delete .bc26-btn {
            width: 34px !important;
            min-width: 34px !important;
            height: 34px !important;
            border-radius: 10px !important;
        }

    .bc26-search-panel,
    .bc26-item-panel {
        width: calc(100vw - 44px) !important;
        max-height: 240px !important;
        left: 0 !important;
    }

    .bc26-totalbar {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px !important;
        padding: 14px !important;
        border-radius: 18px;
    }

        .bc26-totalbar div {
            display: block !important;
            text-align: center !important;
        }

        .bc26-totalbar span {
            font-size: 10px;
        }

        .bc26-totalbar b {
            font-size: 15px;
        }

        .bc26-totalbar button {
            width: 100%;
        }

            .bc26-totalbar button.secondary {
                grid-column: 1 / 2;
            }

            .bc26-totalbar button.save {
                grid-column: 2 / 4;
            }

    .bc26-message {
        border-radius: 18px;
        padding: 13px 14px;
        font-size: 12px;
    }
}

.mobile-lines {
    display: none;
}

@media (max-width: 900px) {
    .desktop-lines {
        display: none !important;
    }

    .mobile-lines {
        display: block !important;
    }

    .mobile-line-card {
        position: relative;
        background: #fff;
        border: 1px solid #dbe4f0;
        border-radius: 18px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 8px 22px rgba(15,23,42,.06);
    }

    .mobile-line-delete {
        position: absolute;
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        border: 0;
        border-radius: 10px;
        background: #fee2e2;
        color: #ef4444;
        font-size: 22px;
        font-weight: 900;
    }

    .mobile-line-field {
        margin-bottom: 10px;
    }

        .mobile-line-field.full {
            padding-right: 44px;
        }

        .mobile-line-field label {
            display: block;
            margin-bottom: 5px;
            color: #64748b;
            font-size: 11px;
            font-weight: 900;
        }

    .mobile-desc {
        color: #475569;
        font-size: 13px;
        margin-top: 8px;
    }

    .mobile-unit {
        color: #475569;
        font-size: 13px;
        margin: 4px 0 12px;
        font-weight: 700;
    }

    .mobile-line-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mobile-line-totals {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        border-top: 1px solid #edf2f7;
        padding-top: 12px;
        margin-top: 4px;
    }

        .mobile-line-totals span {
            display: block;
            color: #64748b;
            font-size: 11px;
            font-weight: 900;
        }

        .mobile-line-totals b {
            display: block;
            margin-top: 3px;
            color: #0f172a;
            font-size: 16px;
            font-weight: 900;
        }

        .mobile-line-totals div:last-child {
            text-align: right;
        }

    .mobile-search-panel {
        position: absolute !important;
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
        top: 72px !important;
        z-index: 999999 !important;
    }

    .bc26-totalbar {
        padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
        margin-bottom: 18px;
    }
}


/* POS icon special */
.pos-icon {
    background: linear-gradient(135deg, #14b8a6, #2563eb) !important;
    color: white !important;
    box-shadow: 0 8px 18px rgba(20,184,166,.25);
}

/* MOBILE */
@media (max-width: 700px) {
    .bc-sidebar,
    .bc-sidebar:has(.bc-shell-nav.collapsed) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 8px !important;
    }

    .bc-shell-nav,
    .bc-shell-nav.collapsed {
        width: 100% !important;
        min-height: auto !important;
        border-radius: 18px;
        padding: 12px !important;
        align-items: stretch !important;
    }

    .bc-collapse-btn {
        display: none !important;
    }
}
/* =========================
   DASHBOARD FINAL COMPACT
   ========================= */

.dashboard-page {
    padding: 18px;
    min-height: 100vh;
    background: linear-gradient(180deg, #f4f7fc 0%, #eef3f9 100%);
}

.dash-head {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    padding: 18px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

    .dash-head span {
        font-size: 11px;
        font-weight: 900;
        color: #2563eb;
        letter-spacing: .08em;
    }

    .dash-head h1 {
        margin: 2px 0;
        font-size: 30px;
        color: #0f172a;
    }

    .dash-head p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
    }

.dash-actions {
    display: flex;
    gap: 10px;
}

.dash-btn {
    border: 0;
    border-radius: 13px;
    padding: 10px 16px;
    font-weight: 900;
    cursor: pointer;
}

    .dash-btn.primary {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: white;
    }

    .dash-btn.secondary {
        background: #eef2f7;
        color: #0f172a;
    }

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.dash-kpi-card {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);
}

    .dash-kpi-card span {
        display: block;
        font-size: 12px;
        color: #64748b;
        font-weight: 800;
    }

    .dash-kpi-card b {
        display: block;
        margin-top: 5px;
        font-size: 22px;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dash-kpi-card small {
        color: #94a3b8;
        font-size: 11px;
    }

.dash-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.dash-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.dash-card {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.dash-card-head {
    padding: 14px 16px;
    border-bottom: 1px solid #e8edf5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

    .dash-card-head b {
        color: #0f172a;
        font-size: 15px;
    }

    .dash-card-head small {
        display: block;
        margin-top: 2px;
        color: #94a3b8;
        font-size: 12px;
    }

    .dash-card-head strong {
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

.route-compact-list {
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.route-compact-item {
    display: grid;
    grid-template-columns: 44px 1fr 38px;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e5edf7;
    border-radius: 14px;
    padding: 10px;
}

.route-no {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #1e3a8a;
    color: white;
    font-weight: 900;
}

.route-compact-item b {
    display: block;
    font-size: 13px;
    color: #0f172a;
}

.route-compact-item small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
}

.route-compact-item button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 11px;
    background: #eff6ff;
    cursor: pointer;
}

.salesperson-compact-list {
    padding: 12px;
    max-height: 250px;
    overflow-y: auto;
}

.salesperson-compact-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e5edf7;
    border-radius: 13px;
    padding: 11px 12px;
    margin-bottom: 8px;
}

    .salesperson-compact-row span {
        font-weight: 900;
        color: #2563eb;
    }

    .salesperson-compact-row b {
        color: #0f172a;
        white-space: nowrap;
    }

.sales7-compact-card {
    margin-bottom: 14px;
}

.sales7-compact-list {
    padding: 12px 16px 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.sales7-row {
    min-width: 0;
}

.sales7-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 12px;
}

    .sales7-info span {
        font-weight: 900;
        color: #64748b;
    }

    .sales7-info b {
        color: #0f172a;
        white-space: nowrap;
    }

.sales7-bar {
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: #e8eef7;
}

.sales7-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #22c55e);
}

.dash-search {
    width: 220px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    padding: 9px 12px;
    outline: none;
}

    .dash-search:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,.10);
    }

.dash-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

    .dash-table th {
        background: #f8fafc;
        color: #64748b;
        font-size: 12px;
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #e5edf7;
    }

    .dash-table td {
        padding: 12px;
        border-bottom: 1px solid #eef2f7;
        font-size: 13px;
    }

    .dash-table tbody tr:hover {
        background: #f8fbff;
    }

.dash-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

    .dash-badge.purple {
        background: #f3e8ff;
        color: #7e22ce;
    }

.right {
    text-align: right;
}

.amount {
    font-weight: 900;
    white-space: nowrap;
}

.dash-empty,
.dash-loading,
.dash-alert {
    padding: 18px;
    color: #64748b;
}

.dash-loading {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dash-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 16px;
    margin-bottom: 14px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .dash-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-main-grid,
    .dash-table-grid {
        grid-template-columns: 1fr;
    }

    .sales7-compact-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-page {
        padding: 10px;
    }

    .dash-head {
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
    }

        .dash-head h1 {
            font-size: 24px;
        }

    .dash-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .dash-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dash-kpi-card {
        padding: 12px;
        border-radius: 16px;
    }

        .dash-kpi-card b {
            font-size: 17px;
        }

    .route-compact-list {
        grid-template-columns: 1fr;
    }

    .dash-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-search {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .dash-kpi-grid {
        grid-template-columns: 1fr;
    }
}
/* FIX: mos shfaq brand-in mobile në desktop */
.bc-mobile-top {
    display: none !important;
}

/* USER BOX CLEANER */
.bc-user-compact {
    display: grid;
    grid-template-columns: 40px 1fr 34px;
    align-items: center;
    gap: 10px;
    padding: 9px;
    margin-bottom: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.10);
}

.bc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg,#2563eb,#22c55e);
    color: white;
    font-weight: 900;
}

.bc-user-main {
    min-width: 0;
}

    .bc-user-main b {
        display: block;
        color: white;
        font-size: 13px;
        font-weight: 900;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bc-user-main small {
        display: block;
        color: #93c5fd;
        font-size: 11px;
        font-weight: 800;
    }

.bc-user-logout {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(239,68,68,.15);
    color: #fecaca;
    cursor: pointer;
}

    .bc-user-logout:hover {
        background: #ef4444;
        color: white;
    }

 /* MOBILE - FIX TOUCH + NO ZOOM */
@media (max-width: 900px) {
    html, body

{
    touch-action: manipulation;
    overflow-x: hidden;
}

input,
select,
textarea,
button,
.bc26-input,
.bc26-number,
.bc26-item-input {
    font-size: 16px !important;
}

button,
.bc26-btn,
.qty-btn,
.discount-btn,
.mobile-line-delete {
    touch-action: manipulation;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}

.mobile-line-card input {
    transform: none !important;
    zoom: 1 !important;
}
}
@media (max-width: 900px) {
    .mobile-stepper {
        display: grid;
        grid-template-columns: 42px 1fr 42px;
        gap: 8px;
        align-items: center;
    }

    .step-btn {
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 12px;
        background: #2563eb;
        color: white;
        font-size: 22px;
        font-weight: 900;
        line-height: 1;
        touch-action: manipulation;
    }

        .step-btn:active {
            transform: scale(.96);
        }

        .step-btn:disabled {
            opacity: .45;
        }

    .step-input {
        text-align: center !important;
        height: 42px !important;
        font-size: 16px !important;
    }
}
/* MOBILE LINE GRID FIX */
@media (max-width: 900px) {

    .mobile-line-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 14px !important;
        align-items: end;
    }

    .mobile-line-field {
        min-width: 0 !important;
        margin-bottom: 0 !important;
    }

        .mobile-line-field:nth-child(1),
        .mobile-line-field:nth-child(4) {
            grid-column: 1 / -1 !important;
        }

    .mobile-stepper {
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) 52px !important;
        gap: 10px !important;
        width: 100% !important;
        align-items: center !important;
    }

    .step-btn {
        width: 52px !important;
        height: 52px !important;
        min-width: 52px !important;
        border-radius: 16px !important;
        font-size: 24px !important;
        padding: 0 !important;
    }

    .step-input {
        width: 100% !important;
        min-width: 0 !important;
        height: 52px !important;
        text-align: center !important;
        font-size: 18px !important;
    }

    .mobile-line-field:nth-child(2) input,
    .mobile-line-field:nth-child(3) input {
        height: 52px !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 18px !important;
    }

    .mobile-line-card {
        overflow: hidden !important;
    }
}
/* COLLAPSED */

.bc-shell-nav.collapsed {
    width: 68px !important;
    padding: 18px 8px !important;
    align-items: center !important;
}

    .bc-shell-nav.collapsed .bc-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding-bottom: 18px !important;
    }

    .bc-shell-nav.collapsed .bc-brand-info,
    .bc-shell-nav.collapsed .bc-menu-text,
    .bc-shell-nav.collapsed .bc-menu-section,
    .bc-shell-nav.collapsed .bc-user-main {
        display: none !important;
    }

    .bc-shell-nav.collapsed .bc-menu {
        align-items: center !important;
    }

    .bc-shell-nav.collapsed .bc-menu-item {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        height: 52px !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .bc-shell-nav.collapsed .bc-menu-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        margin: 0 !important;
    }

    .bc-shell-nav.collapsed .bc-user-compact {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 0 0 !important;
    }

    .bc-shell-nav.collapsed .bc-avatar,
    .bc-shell-nav.collapsed .bc-user-logout {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

.pos-icon {
    background: linear-gradient(135deg, #14b8a6, #2563eb) !important;
    color: white !important;
    box-shadow: 0 8px 18px rgba(20,184,166,.25);
}

/* MOBILE ONLY */

@media (max-width: 700px) {
    .bc-layout {
        display: block !important;
    }

    .bc-sidebar,
    .bc-sidebar:has(.bc-shell-nav.collapsed) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 8px !important;
    }

    .bc-shell-nav,
    .bc-shell-nav.collapsed {
        width: 100% !important;
        min-height: auto !important;
        padding: 12px !important;
        border-radius: 18px !important;
        align-items: stretch !important;
    }

    .bc-mobile-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .desktop-brand {
        display: none !important;
    }

    .bc-nav-content {
        display: none !important;
        min-height: auto !important;
        padding-top: 12px !important;
    }

        .bc-nav-content.open {
            display: flex !important;
        }

    .bc-collapse-btn {
        display: none !important;
    }
}
/* ========================================
   NAVMENU PATCH FINAL
======================================== */

.bc-sidebar {
    width: 290px !important;
    min-width: 290px !important;
    max-width: 290px !important;
    overflow: visible !important;
}

    .bc-sidebar:has(.bc-shell-nav.collapsed) {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }

.bc-shell-nav {
    width: 260px !important;
    position: relative !important;
    overflow: visible !important;
}

.bc-brand {
    grid-template-columns: 44px minmax(0,1fr) !important;
    position: relative !important;
}

.bc-brand-info {
    min-width: 0 !important;
    width: 100% !important;
    padding-right: 70px !important;
}

.bc-brand-title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.bc-brand-sub {
    white-space: nowrap !important;
}
.bc-brand .bc-collapse-btn {
    display: none !important;
}

.bc-shell-nav.collapsed .bc-brand-info,
.bc-shell-nav.collapsed .bc-menu-text,
.bc-shell-nav.collapsed .bc-menu-section,
.bc-shell-nav.collapsed .bc-user-main {
    display: none !important;
}

.bc-shell-nav.collapsed .bc-menu-item {
    justify-content: center !important;
    padding: 0 !important;
    width: 52px !important;
}

.bc-shell-nav.collapsed .bc-user-compact {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.bc-shell-nav.collapsed .bc-collapse-floating {
    right: 8px !important;
}
/* =========================
   NAVMENU FINAL STABLE
========================= */

.bc-layout {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    align-items: start !important;
    min-height: 100vh !important;
}

.bc-sidebar {
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    min-height: 100vh !important;
    height: auto !important;
    position: relative !important;
    padding: 14px !important;
    background: #e8edf5 !important;
    overflow: visible !important;
    transition: all .22s ease;
}

    .bc-sidebar:has(.bc-shell-nav.collapsed) {
        width: 96px !important;
        min-width: 96px !important;
        max-width: 96px !important;
    }

.bc-shell-nav {
    width: 252px !important;
    min-height: calc(100vh - 28px) !important;
    padding: 18px !important;
    border-radius: 26px !important;
    background: linear-gradient(180deg, #1e2d49 0%, #14213a 50%, #111827 100%) !important;
    box-shadow: 0 18px 45px rgba(15,23,42,.22);
    color: white !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.bc-nav-content {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 64px) !important;
}

.bc-mobile-top {
    display: none !important;
}

.bc-brand {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 38px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0 0 18px !important;
    margin-bottom: 20px !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    background: transparent !important;
}

.bc-brand-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    background: #0f172a !important;
    color: white !important;
    font-size: 20px !important;
    font-weight: 950 !important;
}

.bc-brand-info {
    min-width: 0 !important;
    overflow: hidden !important;
}

.bc-brand-title {
    color: white !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.bc-brand-sub {
    color: #aebce0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.bc-collapse-btn {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.09) !important;
    color: white !important;
    font-size: 21px !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.bc-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
}

.bc-menu-section {
    margin: 16px 10px 8px !important;
    color: #91a7db !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.bc-menu-item {
    width: 100% !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 0 13px !important;
    border-radius: 16px !important;
    color: #e5edff !important;
    background: transparent !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    overflow: hidden !important;
}

    .bc-menu-item:hover,
    .bc-menu-item.active {
        background: rgba(15,23,42,.72) !important;
        color: white !important;
    }

.bc-menu-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 12px !important;
    display: grid !important;
    place-items: center !important;
    background: rgba(255,255,255,.09) !important;
    font-size: 18px !important;
}

.bc-menu-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.bc-user-compact {
    order: 10 !important;
    margin-top: auto !important;
    display: grid !important;
    grid-template-columns: 40px minmax(0,1fr) 34px !important;
    align-items: center !important;
    gap: 10px !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

.bc-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    display: grid !important;
    place-items: center !important;
    background: linear-gradient(135deg,#2563eb,#22c55e) !important;
    color: white !important;
    font-weight: 900 !important;
}

.bc-user-main {
    min-width: 0 !important;
    overflow: hidden !important;
}

    .bc-user-main b {
        display: block !important;
        color: white !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .bc-user-main small {
        display: block !important;
        color: #aebce0 !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

.bc-user-logout {
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: rgba(239,68,68,.15) !important;
    color: #fecaca !important;
}

.pos-icon {
    background: linear-gradient(135deg, #14b8a6, #2563eb) !important;
    color: white !important;
}

/* COLLAPSED */
.bc-shell-nav.collapsed {
    width: 68px !important;
    padding: 18px 8px !important;
    align-items: center !important;
}

    .bc-shell-nav.collapsed .bc-brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding-bottom: 18px !important;
    }

    .bc-shell-nav.collapsed .bc-brand-info,
    .bc-shell-nav.collapsed .bc-menu-text,
    .bc-shell-nav.collapsed .bc-menu-section,
    .bc-shell-nav.collapsed .bc-user-main {
        display: none !important;
    }

    .bc-shell-nav.collapsed .bc-menu {
        align-items: center !important;
    }

    .bc-shell-nav.collapsed .bc-menu-item {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        height: 52px !important;
        padding: 0 !important;
        justify-content: center !important;
        gap: 0 !important;
    }

    .bc-shell-nav.collapsed .bc-menu-icon {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
    }

    .bc-shell-nav.collapsed .bc-user-compact {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 0 0 !important;
    }

    .bc-shell-nav.collapsed .bc-avatar,
    .bc-shell-nav.collapsed .bc-user-logout {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
    }

/* MOBILE */
@media (max-width: 700px) {
    .bc-layout {
        display: block !important;
    }

    .bc-sidebar,
    .bc-sidebar:has(.bc-shell-nav.collapsed) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 8px !important;
    }

    .bc-shell-nav,
    .bc-shell-nav.collapsed {
        width: 100% !important;
        min-height: auto !important;
        padding: 12px !important;
        border-radius: 18px !important;
        align-items: stretch !important;
    }

    .bc-mobile-top {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .desktop-brand {
        display: none !important;
    }

    .bc-nav-content {
        display: none !important;
        min-height: auto !important;
        padding-top: 12px !important;
    }

        .bc-nav-content.open {
            display: flex !important;
        }

    .bc-collapse-btn {
        display: none !important;
    }
}
/* BRAND TITLE FIX */
.bc-brand {
    grid-template-columns: 44px minmax(140px,1fr) 38px !important;
}

.bc-brand-title {
    font-size: 15px !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important;
}

.bc-brand-info {
    padding-right: 6px !important;
}
/* MOBILE DATE FIX */
@media (max-width: 700px) {

    .newsale-pro-page input[type="date"],
    .newsale-pro-page .bc26-input[type="date"] {
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 14px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-align: left !important;
        border-radius: 16px !important;
    }

    .newsale-pro-page .bc26-general-grid {
        gap: 16px !important;
    }

    .newsale-pro-page .bc26-card {
        padding: 18px !important;
    }
}
/* MOBILE NAV FINAL FIX */
@media (max-width: 700px) {

    .bc-collapse-btn,
    .bc-collapse-floating {
        display: none !important;
    }

    .bc-sidebar,
    .bc-sidebar:has(.bc-shell-nav.collapsed) {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 8px 10px !important;
        background: #e8edf5 !important;
    }

    .bc-shell-nav,
    .bc-shell-nav.collapsed {
        width: 100% !important;
        min-height: auto !important;
        padding: 12px 14px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .bc-mobile-top {
        display: grid !important;
        grid-template-columns: 1fr 46px !important;
        align-items: center !important;
        gap: 10px !important;
    }

        .bc-mobile-top .bc-brand {
            display: grid !important;
            grid-template-columns: 44px 1fr !important;
            gap: 12px !important;
            padding: 0 !important;
            margin: 0 !important;
            border-bottom: none !important;
            min-width: 0 !important;
        }

        .bc-mobile-top .bc-brand-info {
            min-width: 0 !important;
            padding-right: 0 !important;
        }

        .bc-mobile-top .bc-brand-title {
            font-size: 18px !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
        }

        .bc-mobile-top .bc-brand-sub {
            font-size: 12px !important;
        }

    .bc-mobile-menu-btn {
        width: 46px !important;
        height: 46px !important;
        border: 1px solid rgba(255,255,255,.16) !important;
        border-radius: 14px !important;
        background: rgba(255,255,255,.12) !important;
        color: #93c5fd !important;
        font-size: 24px !important;
        font-weight: 900 !important;
        display: grid !important;
        place-items: center !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }

    .bc-nav-content {
        display: none !important;
        padding-top: 14px !important;
        min-height: auto !important;
    }

        .bc-nav-content.open {
            display: flex !important;
            flex-direction: column !important;
        }

    .bc-menu {
        gap: 8px !important;
    }

    .bc-menu-item {
        height: 50px !important;
    }

    .bc-user-compact {
        margin-top: 16px !important;
        padding: 14px !important;
        border: 1px solid rgba(255,255,255,.12) !important;
        border-radius: 16px !important;
    }

    .bc-content {
        padding-top: 10px !important;
    }

    .dashboard-page,
    .sales-pro-page,
    .newsale-pro-page {
        padding-top: 10px !important;
    }
}
/* MOBILE GAP REMOVE FINAL */
@media (max-width: 700px) {

    .bc-layout,
    .bc-sidebar,
    .bc-shell-nav,
    .bc-nav-content {
        min-height: 0 !important;
        height: auto !important;
    }

    .bc-sidebar {
        margin: 0 !important;
        padding: 6px 8px !important;
    }

    .bc-shell-nav {
        margin: 0 !important;
        padding: 10px 12px !important;
        border-radius: 18px !important;
    }

    .bc-nav-content {
        display: none !important;
        padding-top: 10px !important;
    }

        .bc-nav-content.open {
            display: flex !important;
        }

    .bc-main,
    .bc-content {
        margin-top: 0 !important;
        padding-top: 8px !important;
    }

    .dashboard-page,
    .sales-pro-page,
    .newsale-pro-page {
        margin-top: 0 !important;
        padding-top: 8px !important;
    }
}
/* NEW SALE DESKTOP POLISH */
@media (min-width: 701px) {
    .newsale-pro-page .sales-hero-card,
    .newsale-pro-page .bc26-card,
    .newsale-pro-page .bc26-totalbar {
        border-radius: 22px !important;
        box-shadow: 0 14px 34px rgba(15,23,42,.06) !important;
    }

    .newsale-pro-page .sales-hero-card {
        padding: 20px 24px !important;
    }

    .newsale-pro-page .bc26-card-title {
        font-size: 17px !important;
        padding-bottom: 14px !important;
    }

    .newsale-pro-page .bc26-input {
        height: 42px !important;
        border-radius: 13px !important;
    }

    .newsale-pro-page .bc26-lines-table th {
        background: #f8fafc !important;
        font-size: 12px !important;
        letter-spacing: .01em;
    }

    .newsale-pro-page .bc26-lines-table td {
        padding: 12px 10px !important;
    }

    .newsale-pro-page .bc26-btn.save {
        min-width: 96px;
        border-radius: 14px !important;
    }

    .newsale-pro-page .bc26-btn.secondary {
        border-radius: 14px !important;
    }
}
/* MOBILE DATE SAME SIZE */
@media (max-width: 700px) {

    .newsale-pro-page input[type="date"],
    .newsale-pro-page .bc26-input[type="date"] {
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 14px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        border-radius: 16px !important;
        appearance: none !important;
        -webkit-appearance: none !important;
        line-height: 1 !important;
    }

    .newsale-pro-page .bc26-general-grid .bc26-input {
        height: 54px !important;
    }
}
/* MOBILE NEW SALE LINE - MAUI STYLE */
@media (max-width: 700px) {

    .mobile-line-card {
        border-left: 4px solid #2563eb !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .mobile-line-field.full {
        padding-right: 46px !important;
        margin-bottom: 8px !important;
    }

        .mobile-line-field.full input {
            height: 46px !important;
            text-align: left !important;
            font-size: 15px !important;
            font-weight: 900 !important;
        }

    .mobile-desc {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #475569 !important;
        margin: 4px 0 6px !important;
    }

    .mobile-unit {
        display: inline-flex !important;
        padding: 5px 10px !important;
        border-radius: 999px !important;
        background: #dbeafe !important;
        color: #1d4ed8 !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        margin-bottom: 8px !important;
    }

    .mobile-line-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px !important;
        align-items: end !important;
    }

    .mobile-line-field label {
        font-size: 10px !important;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .mobile-line-field:nth-child(1),
    .mobile-line-field:nth-child(4) {
        grid-column: auto !important;
    }

    .mobile-stepper {
        grid-template-columns: 34px 1fr 34px !important;
        gap: 0 !important;
        border: 1px solid #dbe4f0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #f8fafc !important;
    }

    .step-btn {
        width: 34px !important;
        height: 36px !important;
        min-width: 34px !important;
        border-radius: 0 !important;
        background: #f1f5f9 !important;
        color: #334155 !important;
        font-size: 16px !important;
        box-shadow: none !important;
    }

    .step-input {
        height: 36px !important;
        border: 0 !important;
        border-left: 1px solid #e2e8f0 !important;
        border-right: 1px solid #e2e8f0 !important;
        border-radius: 0 !important;
        background: white !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .mobile-line-field:nth-child(2) input {
        height: 36px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        text-align: center !important;
    }

    .mobile-line-totals {
        margin-top: 10px !important;
        padding-top: 10px !important;
        grid-template-columns: 1fr !important;
        gap: 4px !important;
    }

        .mobile-line-totals div {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            text-align: left !important;
        }

        .mobile-line-totals span {
            font-size: 12px !important;
        }

        .mobile-line-totals b {
            font-size: 15px !important;
        }

    .mobile-line-delete {
        top: 12px !important;
        right: 12px !important;
        width: 38px !important;
        height: 38px !important;
    }
}
/* MOBILE TOTAL BAR FIX ONLY */
@media (max-width: 700px) {

    .bc26-totalbar,
    .bc-total-bar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 16px !important;
    }

    .bc26-totalbar-values,
    .bc-total-values {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .bc26-totalbar-actions,
    .bc-total-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

        .bc26-totalbar-actions button,
        .bc-total-actions button,
        .bc26-totalbar-actions .bc26-btn,
        .bc-total-actions .bc26-btn {
            width: 100% !important;
            min-width: 0 !important;
            height: 52px !important;
            border-radius: 16px !important;
            box-sizing: border-box !important;
        }
}
/* MOBILE LINE COMPACT + BUTTONS EQUAL */
@media (max-width: 700px) {

    .mobile-stepper,
    .mobile-line-field > input,
    .mobile-line-field > .bc26-input {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }

    .mobile-stepper {
        grid-template-columns: 44px 60px 44px !important;
        border-radius: 15px !important;
    }

        .mobile-stepper .step-btn,
        .mobile-stepper .step-input {
            height: 44px !important;
            min-height: 44px !important;
            max-height: 44px !important;
        }
        .mobile-stepper .step-input {
            padding: 0 6px !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .mobile-stepper .step-btn {
            width: 44px !important;
            min-width: 44px !important;
            max-width: 44px !important;
            font-size: 18px !important;
        }

        .mobile-stepper .step-input,
        .mobile-line-field > input,
        .mobile-line-field > .bc26-input {
            font-size: 16px !important;
            font-weight: 800 !important;
        }

    .mobile-line-grid {
        gap: 10px !important;
    }

    .bc26-totalbar,
    .bc-total-bar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

        .bc26-totalbar-actions,
        .bc-total-actions,
        .bc26-totalbar .actions {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 12px !important;
            width: 100% !important;
        }

        .bc26-totalbar button,
        .bc-total-bar button {
            width: 100% !important;
            min-width: 0 !important;
            height: 48px !important;
            border-radius: 16px !important;
        }
}

/* REMOVE NUMBER ARROWS MOBILE */
@media (max-width: 700px) {

    input[type=number]::-webkit-outer-spin-button,
    input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }

    input[type=number] {
        -moz-appearance: textfield !important;
        appearance: textfield !important;
    }
}
/* DESKTOP/TABLET NEW SALE TABLE FIX */
@media (min-width: 701px) and (max-width: 1300px) {

    .newsale-pro-page .bc26-lines-wrap {
        overflow-x: auto !important;
        overflow-y: visible !important;
        width: 100% !important;
    }

    .newsale-pro-page .bc26-lines-table {
        min-width: 1050px !important;
        table-layout: fixed !important;
    }

        .newsale-pro-page .bc26-lines-table th,
        .newsale-pro-page .bc26-lines-table td {
            white-space: nowrap !important;
        }

            .newsale-pro-page .bc26-lines-table th:nth-child(1),
            .newsale-pro-page .bc26-lines-table td:nth-child(1) {
                width: 270px !important;
            }

            .newsale-pro-page .bc26-lines-table th:nth-child(2),
            .newsale-pro-page .bc26-lines-table td:nth-child(2) {
                width: 190px !important;
            }

            .newsale-pro-page .bc26-lines-table th:nth-child(3),
            .newsale-pro-page .bc26-lines-table td:nth-child(3) {
                width: 80px !important;
            }

            .newsale-pro-page .bc26-lines-table th:nth-child(4),
            .newsale-pro-page .bc26-lines-table td:nth-child(4),
            .newsale-pro-page .bc26-lines-table th:nth-child(5),
            .newsale-pro-page .bc26-lines-table td:nth-child(5),
            .newsale-pro-page .bc26-lines-table th:nth-child(6),
            .newsale-pro-page .bc26-lines-table td:nth-child(6),
            .newsale-pro-page .bc26-lines-table th:nth-child(7),
            .newsale-pro-page .bc26-lines-table td:nth-child(7) {
                width: 95px !important;
            }

            .newsale-pro-page .bc26-lines-table th:nth-child(8),
            .newsale-pro-page .bc26-lines-table td:nth-child(8),
            .newsale-pro-page .bc26-lines-table th:nth-child(9),
            .newsale-pro-page .bc26-lines-table td:nth-child(9) {
                width: 130px !important;
            }
}
/* HIDE TABLE HORIZONTAL SCROLLBAR */
.newsale-pro-page .bc26-lines-wrap {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

    .newsale-pro-page .bc26-lines-wrap::-webkit-scrollbar {
        display: none !important;
    }
/* HIDE TABLE HORIZONTAL SCROLLBAR */
.newsale-pro-page .bc26-lines-wrap {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

    .newsale-pro-page .bc26-lines-wrap::-webkit-scrollbar {
        display: none !important;
    }

/* FIX CONTENT WIDTH WHEN SIDEBAR COLLAPSED */
.bc-layout {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
}

    .bc-layout:has(.bc-shell-nav.collapsed) {
        grid-template-columns: 96px minmax(0, 1fr) !important;
    }

        .bc-layout:has(.bc-shell-nav.collapsed) .bc-sidebar {
            width: 96px !important;
            min-width: 96px !important;
            max-width: 96px !important;
        }

        .bc-layout:has(.bc-shell-nav.collapsed) .bc-main,
        .bc-layout:has(.bc-shell-nav.collapsed) .bc-content {
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
        }
/* COLLAPSE BUTTON REAL FINAL */
.bc-brand .bc-collapse-btn {
    position: static !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 13px !important;
    background: rgba(255,255,255,.10) !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
}

    .bc-brand .bc-collapse-btn:hover {
        background: rgba(255,255,255,.18) !important;
    }

/* collapsed */
.bc-shell-nav.collapsed .bc-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
}

.bc-shell-nav.collapsed .bc-brand-info {
    display: none !important;
}

.bc-shell-nav.collapsed .bc-brand .bc-collapse-btn {
    width: 38px !important;
    height: 34px !important;
}

/* =========================
   REPORTS PAGE FINAL UI
   ========================= */

.reports-page {
    max-width: 1700px;
    margin: 0 auto;
    padding: 22px;
    min-height: 100vh;
    background: linear-gradient(180deg,#f4f7fc 0%,#eef3f9 100%);
}

.reports-hero,
.reports-filter-card,
.reports-card,
.reports-kpi {
    background: #fff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

.reports-hero {
    border-radius: 26px;
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.reports-kicker {
    font-size: 12px;
    font-weight: 950;
    color: #2563eb;
    letter-spacing: .12em;
}

.reports-hero h1 {
    margin: 4px 0;
    font-size: 36px;
    color: #0f172a;
    letter-spacing: -.04em;
}

.reports-hero p {
    margin: 0;
    color: #64748b;
}

.report-refresh,
.report-btn {
    border: 0;
    border-radius: 15px;
    padding: 12px 18px;
    font-weight: 950;
    cursor: pointer;
}

    .report-refresh,
    .report-btn.primary {
        background: linear-gradient(135deg,#2563eb,#1d4ed8);
        color: white;
        box-shadow: 0 10px 22px rgba(37,99,235,.25);
    }

    .report-btn.secondary {
        background: #eef2f7;
        color: #0f172a;
    }

.reports-filter-card {
    position: sticky;
    top: 12px;
    z-index: 20;
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
}

.report-filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

    .report-filter-grid label {
        display: block;
        margin-bottom: 6px;
        color: #64748b;
        font-size: 12px;
        font-weight: 950;
    }

    .report-filter-grid input {
        width: 100%;
        height: 44px;
        border: 1px solid #dbe4f0;
        border-radius: 15px;
        padding: 0 13px;
        outline: none;
        font-weight: 700;
    }

.filter-actions {
    display: flex;
    gap: 10px;
}

.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.reports-kpi {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    padding: 18px;
}

    .reports-kpi::after {
        content: "";
        position: absolute;
        right: -28px;
        top: -28px;
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: rgba(37,99,235,.055);
    }

    .reports-kpi span {
        display: block;
        color: #64748b;
        font-size: 13px;
        font-weight: 900;
    }

    .reports-kpi b {
        display: block;
        margin-top: 6px;
        font-size: 28px;
        color: #0f172a;
        letter-spacing: -.035em;
    }

    .reports-kpi small {
        color: #94a3b8;
    }

.reports-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .reports-tabs::-webkit-scrollbar {
        display: none;
    }

    .reports-tabs button {
        border: 0;
        border-radius: 15px;
        padding: 12px 18px;
        background: #e8eef7;
        color: #0f172a;
        font-weight: 950;
        cursor: pointer;
        white-space: nowrap;
    }

        .reports-tabs button.active {
            background: linear-gradient(135deg,#2563eb,#1d4ed8);
            color: white;
            box-shadow: 0 10px 20px rgba(37,99,235,.25);
        }

.reports-card {
    border-radius: 24px;
    overflow: hidden;
}

.reports-card-head {
    padding: 16px 18px;
    border-bottom: 1px solid #e8edf5;
}

    .reports-card-head b {
        color: #0f172a;
        font-size: 17px;
    }

    .reports-card-head small {
        display: block;
        margin-top: 3px;
        color: #94a3b8;
    }

.reports-table-wrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
}

    .reports-table th {
        background: #f8fafc;
        color: #64748b;
        font-size: 12px;
        padding: 10px 13px;
        text-align: left;
        border-bottom: 1px solid #e5edf7;
        white-space: nowrap;
    }

    .reports-table td {
        padding: 10px 13px;
        border-bottom: 1px solid #eef2f7;
        font-size: 13px;
        color: #0f172a;
    }

    .reports-table tbody tr:hover {
        background: #f8fbff;
    }

.report-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 950;
}

.right {
    text-align: right !important;
}

.amount {
    font-weight: 950;
    white-space: nowrap;
}

.positive {
    color: #15803d !important;
}

.reports-loading,
.reports-error {
    padding: 24px;
    font-weight: 950;
}

.reports-error {
    color: #991b1b;
    background: #fef2f2;
}
.report-export-btn.disabled {
    background: #e5e7eb !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* MOBILE */
@media (max-width: 900px) {
    .reports-page {
        padding: 10px;
    }

    .reports-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 22px;
    }

        .reports-hero h1 {
            font-size: 28px;
        }

    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .reports-kpi-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .reports-kpi b {
        font-size: 22px;
    }

    .reports-table {
        min-width: 760px;
    }
}

@media (max-width: 480px) {
    .reports-kpi-grid {
        grid-template-columns: 1fr;
    }
}
.reports-tabs-wrap {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.reports-export-actions {
    display: flex;
    gap: 10px;
}

.report-export-btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 900;
    border: 0;
    cursor: pointer;
}

    .report-export-btn.excel {
        background: linear-gradient(135deg,#16a34a,#15803d);
        color: white;
        box-shadow: 0 10px 20px rgba(22,163,74,.25);
    }

    .report-export-btn.pdf {
        background: linear-gradient(135deg,#dc2626,#b91c1c);
        color: white;
        box-shadow: 0 10px 20px rgba(220,38,38,.22);
    }
/* DASHBOARD DYNAMIC FINAL */

.dashboard-page {
    padding: 22px;
    min-height: 100vh;
    background: linear-gradient(180deg,#f4f7fc 0%,#eef3f9 100%);
}

.dash-head,
.dash-card,
.dash-kpi-card,
.quick-action-card {
    background: #fff;
    border: 1px solid #dbe4f0;
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
}

.dash-head {
    border-radius: 26px;
    padding: 24px;
    margin-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

    .dash-head span {
        color: #2563eb;
        font-size: 12px;
        font-weight: 950;
        letter-spacing: .12em;
    }

    .dash-head h1 {
        margin: 4px 0;
        font-size: 36px;
        color: #0f172a;
        letter-spacing: -.04em;
    }

    .dash-head p {
        margin: 0;
        color: #64748b;
    }

.dash-actions {
    display: flex;
    gap: 12px;
}

.dash-btn {
    border: 0;
    border-radius: 16px;
    padding: 13px 20px;
    font-weight: 950;
    cursor: pointer;
}

    .dash-btn.primary {
        background: linear-gradient(135deg,#2563eb,#1d4ed8);
        color: white;
        box-shadow: 0 10px 22px rgba(37,99,235,.25);
    }

    .dash-btn.secondary {
        background: #eef2f7;
        color: #0f172a;
    }

.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dash-kpi-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 20px;
}

    .dash-kpi-card::after {
        content: "";
        position: absolute;
        right: -20px;
        top: -20px;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: linear-gradient( 135deg, rgba(37,99,235,.08), rgba(59,130,246,.02) );
    }
.bc26-message.error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

    .dash-kpi-card span {
        display: block;
        color: #64748b;
        font-size: 13px;
        font-weight: 900;
    }

    .dash-kpi-card b {
        display: block;
        margin-top: 6px;
        font-size: 27px;
        color: #0f172a;
        letter-spacing: -.035em;
    }

    .dash-kpi-card small {
        color: #94a3b8;
    }

.dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.quick-action-card {
    border-radius: 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: .2s;
    text-align: left;
}

    .quick-action-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 40px rgba(37,99,235,.14);
    }

    .quick-action-card b {
        display: block;
        color: #0f172a;
        font-size: 17px;
    }

    .quick-action-card small {
        color: #64748b;
    }

.quick-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 23px;
    color: white;
}

    .quick-icon.blue {
        background: linear-gradient(135deg,#2563eb,#1d4ed8);
    }

    .quick-icon.green {
        background: linear-gradient(135deg,#16a34a,#15803d);
    }

    .quick-icon.purple {
        background: linear-gradient(135deg,#7c3aed,#6d28d9);
    }

    .quick-icon.orange {
        background: linear-gradient(135deg,#ea580c,#c2410c);
    }

.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.dash-card {
    border-radius: 24px;
    overflow: hidden;
}

.dash-card-head {
    padding: 16px 18px;
    border-bottom: 1px solid #e8edf5;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

    .dash-card-head b {
        color: #0f172a;
        font-size: 17px;
    }

    .dash-card-head small {
        display: block;
        margin-top: 3px;
        color: #94a3b8;
    }

    .dash-card-head strong {
        background: #dbeafe;
        color: #1d4ed8;
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 13px;
    }

.dash-empty {
    padding: 22px;
    color: #64748b;
    font-weight: 800;
}

.salesperson-compact-list,
.sales7-compact-list,
.route-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.salesperson-compact-row,
.route-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

    .salesperson-compact-row span,
    .route-row b {
        font-weight: 900;
        color: #0f172a;
    }

    .salesperson-compact-row b {
        color: #2563eb;
    }

    .route-row span {
        display: block;
        margin-top: 2px;
        color: #64748b;
        font-size: 13px;
    }

    .route-row small {
        background: #e0f2fe;
        color: #0369a1;
        border-radius: 999px;
        padding: 6px 10px;
        font-weight: 900;
    }

.sales7-row {
    display: grid;
    gap: 7px;
}

.sales7-info {
    display: flex;
    justify-content: space-between;
    color: #475569;
    font-size: 13px;
    font-weight: 900;
}

.sales7-bar {
    height: 10px;
    border-radius: 999px;
    background: #e8eef7;
    overflow: hidden;
}

.sales7-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg,#2563eb,#22c55e);
}

.dash-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.dash-search {
    width: 230px;
    height: 42px;
    border: 1px solid #dbe4f0;
    border-radius: 15px;
    padding: 0 13px;
    outline: none;
    font-weight: 700;
}

.dash-table-wrap {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
}

    .dash-table th {
        background: #f8fafc;
        color: #64748b;
        font-size: 12px;
        padding: 11px 13px;
        text-align: left;
        border-bottom: 1px solid #e5edf7;
        white-space: nowrap;
    }

    .dash-table td {
        padding: 11px 13px;
        border-bottom: 1px solid #eef2f7;
        font-size: 13px;
        color: #0f172a;
    }

    .dash-table tbody tr:hover {
        background: #f8fbff;
    }

.dash-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 950;
}

    .dash-badge.purple {
        background: #f3e8ff;
        color: #7e22ce;
    }

.right {
    text-align: right !important;
}

.amount {
    font-weight: 950;
    white-space: nowrap;
}

.dash-alert.error {
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 16px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 900;
}

.dash-loading {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    padding: 30px;
    display: flex;
    gap: 14px;
    align-items: center;
    color: #0f172a;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #dbe4f0;
    border-top-color: #2563eb;
    border-radius: 999px;
    animation: dashSpin .8s linear infinite;
}

@keyframes dashSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .dash-kpi-grid,
    .dash-quick-grid,
    .dash-main-grid,
    .dash-table-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .dashboard-page {
        padding: 10px;
    }

    .dash-head {
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border-radius: 22px;
    }

        .dash-head h1 {
            font-size: 30px;
        }

    .dash-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .dash-kpi-grid,
    .dash-quick-grid,
    .dash-main-grid,
    .dash-table-grid {
        grid-template-columns: 1fr;
    }

    .dash-kpi-card b {
        font-size: 23px;
    }

    .dash-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-search {
        width: 100%;
    }

    .dash-table {
        min-width: 640px;
    }
}
/* MOBILE DASHBOARD WIDTH FIX */
@media (max-width: 700px) {

    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .bc-layout {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
        overflow-x: hidden !important;
    }

    .bc-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 6px 8px !important;
        box-sizing: border-box !important;
    }

    .bc-content,
    .bc-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 8px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .dashboard-page {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .dash-head,
    .dash-kpi-card,
    .dash-card,
    .quick-action-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .dash-actions,
    .dash-kpi-grid,
    .dash-quick-grid,
    .dash-main-grid,
    .dash-table-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    .dash-btn {
        width: 100% !important;
        min-width: 0 !important;
    }
}
/* MOBILE NEW SALE STEPPER CLEAN FINAL */
@media (max-width: 700px) {

    .mobile-line-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        align-items: end !important;
    }

    .mobile-line-field {
        min-width: 0 !important;
        width: 100% !important;
    }

    .mobile-stepper {
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        display: grid !important;
        grid-template-columns: 30px minmax(54px, 1fr) 30px !important;
        border: 1px solid #dbe4f0 !important;
        border-radius: 14px !important;
        background: white !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

        .mobile-stepper .step-btn {
            width: 30px !important;
            min-width: 30px !important;
            max-width: 30px !important;
            height: 44px !important;
            border: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
            display: grid !important;
            place-items: center !important;
            color: #0f172a !important;
            font-size: 20px !important;
            font-weight: 950 !important;
            line-height: 1 !important;
            padding: 0 !important;
        }

        .mobile-stepper .step-input {
            width: 100% !important;
            min-width: 54px !important;
            height: 44px !important;
            min-height: 44px !important;
            border: 0 !important;
            border-left: 1px solid #e5edf7 !important;
            border-right: 1px solid #e5edf7 !important;
            border-radius: 0 !important;
            background: white !important;
            color: #0f172a !important;
            text-align: center !important;
            font-size: 16px !important;
            font-weight: 950 !important;
            padding: 0 4px !important;
            box-sizing: border-box !important;
        }

    .mobile-line-field > input,
    .mobile-line-field > .bc26-input {
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        border-radius: 14px !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .mobile-line-field label {
        font-size: 11px !important;
        font-weight: 950 !important;
        letter-spacing: .03em !important;
    }
}

/* NEW SALE ITEM SEARCH DROPDOWN FIX */
.newsale-pro-page .bc26-lines-wrap,
.newsale-pro-page .bc26-card,
.newsale-pro-page .mobile-line-card {
    overflow: visible !important;
}

.newsale-pro-page .bc26-lines-table td {
    overflow: visible !important;
}

.bc26-item-panel,
.bc26-search-panel {
    position: absolute !important;
    z-index: 99999 !important;
    max-height: 360px !important;
    overflow-y: auto !important;
    background: white !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(15,23,42,.18) !important;
}

    .bc26-item-panel .item-row,
    .bc26-search-panel .item-row {
        min-height: 44px !important;
        padding: 10px 12px !important;
        white-space: normal !important;
    }

/* DASHBOARD SALES CARD FIX */
.salesperson-compact-list {
    max-height: 320px !important;
    overflow-y: auto !important;
    padding-right: 6px !important;
}

.salesperson-compact-row {
    min-height: 56px !important;
}

.dash-main-grid {
    grid-template-columns: 1fr !important;
}

.sales7-compact-card {
    margin-top: 18px !important;
}
.sales-today-card {
    background: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);
}

.month-card {
    background: linear-gradient(135deg,#ecfeff 0%,#cffafe 100%);
}

.invoice-card {
    background: linear-gradient(135deg,#f5f3ff 0%,#ede9fe 100%);
}

.seven-card {
    background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%);
}

.dash-kpi-card {
    position: relative;
    overflow: hidden;
    transition: .25s ease;
}

    .dash-kpi-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 40px rgba(15,23,42,.08);
    }

    .dash-kpi-card::after {
        content: "";
        position: absolute;
        right: -25px;
        top: -25px;
        width: 90px;
        height: 90px;
        border-radius: 50%;
        background: rgba(255,255,255,.35);
    }
/* DASHBOARD KPI COLORS FINAL */
.sales-today-card {
    background: linear-gradient(135deg,#eff6ff,#dbeafe) !important;
}

.month-card {
    background: linear-gradient(135deg,#ecfeff,#cffafe) !important;
}

.invoice-card {
    background: linear-gradient(135deg,#f5f3ff,#ede9fe) !important;
}

.seven-card {
    background: linear-gradient(135deg,#f0fdf4,#dcfce7) !important;
}

.dash-kpi-card {
    position: relative !important;
    overflow: hidden !important;
}

    .dash-kpi-card > span,
    .dash-kpi-card > b,
    .dash-kpi-card > small {
        position: relative !important;
        z-index: 2 !important;
    }

    .dash-kpi-card::after {
        z-index: 1 !important;
        background: rgba(255,255,255,.38) !important;
    }
.bc26-download-apk {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    width: 100%;
    height: 42px;
    border-radius: 8px;
    background: #f3f6fb;
    color: #0f4c81;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d6e2f0;
}

    .bc26-download-apk:hover {
        background: #e7f0fb;
        color: #073b66;
    }
/*
    SALES new*/
.sales-bc-page .sales-mini-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 6px 10px 8px !important;
    padding: 8px 10px !important;
    background: #ffffff !important;
    border-radius: 14px !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06) !important;
}

.sales-bc-page .sales-mini-left {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
}

.sales-bc-page .sales-mini-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    white-space: nowrap !important;
}

.sales-bc-page .sales-mini-count {
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    background: #e8f3ff !important;
    color: #0b74d1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

.sales-bc-page .sales-mini-right {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.sales-bc-page button.sales-mini-btn {
    all: unset;
    box-sizing: border-box !important;
    height: 30px !important;
    min-width: 58px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

    .sales-bc-page button.sales-mini-btn.refresh {
        background: #eef2f7 !important;
        color: #334155 !important;
    }

    .sales-bc-page button.sales-mini-btn.new {
        background: #0b7fdc !important;
        color: #ffffff !important;
    }

    .sales-bc-page button.sales-mini-btn:disabled {
        opacity: .65 !important;
    }

.nav-card {
    background: #f7f9fc;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15,23,42,.08);
    height: calc(100vh - 260px);
    overflow-y: auto;
}

.nav-ribbon {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: linear-gradient(#ffffff, #eef3f8);
    border-bottom: 1px solid #cfd8e3;
}

.nav-ribbon-btn {
    border: 1px solid #c7d2de;
    background: #ffffff;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    cursor: pointer;
}

    .nav-ribbon-btn:hover {
        background: #eaf3ff;
    }

    .nav-ribbon-btn.danger {
        color: #991b1b;
    }

.nav-card-title {
    padding: 10px 14px;
    color: #2563eb;
    font-size: 17px;
    font-weight: 800;
    background: #ffffff;
    border-bottom: 1px solid #d8e0ea;
}

    .nav-card-title span {
        color: #0f172a;
    }

.nav-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 10px;
    padding: 10px;
}

.nav-card-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-section {
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
}

.nav-section-title {
    padding: 7px 10px;
    background: linear-gradient(#f8fafc, #e8eef6);
    border-bottom: 1px solid #cfd8e3;
    color: #1f3a5f;
    font-size: 13px;
    font-weight: 800;
}

.nav-form-grid {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 150px minmax(0, 1fr);
    gap: 7px 10px;
    padding: 10px;
    align-items: center;
}

    .nav-form-grid label {
        display: contents;
        font-size: 12px;
        font-weight: 700;
        color: #334155;
    }

    .nav-form-grid input {
        height: 28px;
        border: 1px solid #b9c7d6;
        background: #ffffff;
        padding: 2px 7px;
        font-size: 12px;
        color: #111827;
        border-radius: 2px;
    }

        .nav-form-grid input:focus {
            outline: none;
            border-color: #0078d4;
            box-shadow: 0 0 0 2px rgba(0,120,212,.12);
        }

        .nav-form-grid input[type="checkbox"] {
            width: 18px;
            height: 18px;
        }

.nav-factbox {
    background: #ffffff;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    height: fit-content;
}

.factbox-title {
    padding: 8px 10px;
    background: linear-gradient(#f8fafc, #e8eef6);
    border-bottom: 1px solid #cfd8e3;
    color: #1f3a5f;
    font-size: 13px;
    font-weight: 900;
}

.factbox-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid #eef2f7;
    font-size: 12px;
}

    .factbox-row span {
        color: #475569;
    }

    .factbox-row b {
        color: #2563eb;
        text-align: right;
    }

.nav-actions-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 0;
}

.nav-save,
.nav-cancel {
    min-width: 90px;
    height: 32px;
    border-radius: 3px;
    border: 1px solid #9fb3c8;
    font-weight: 800;
    cursor: pointer;
}

.nav-save {
    background: #0078d4;
    color: white;
}

.nav-cancel {
    background: white;
    color: #334155;
}

@media (max-width: 980px) {
    .nav-card-layout {
        grid-template-columns: 1fr;
    }

    .nav-form-grid {
        grid-template-columns: 1fr;
    }

        .nav-form-grid label {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

    .nav-card {
        height: auto;
    }
}
/* =========================
   CUSTOMERS NAV STYLE FINAL
========================= */

.customers-page {
    padding: 14px !important;
    background: #eef2f6 !important;
    min-height: calc(100vh - 0px) !important;
    overflow: hidden !important;
}

.customers-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: end !important;
    gap: 12px !important;
    margin-bottom: 10px !important;
}

    .customers-header h1 {
        margin: 0 !important;
        font-size: 28px !important;
    }

.customers-toolbar {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 8px !important;
    background: #fff !important;
    border: 1px solid #cfd8e3 !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
}

    .customers-toolbar input {
        height: 32px !important;
        border-radius: 3px !important;
        border: 1px solid #b9c7d6 !important;
        padding: 0 8px !important;
    }

.customers-grid {
    display: grid !important;
    grid-template-columns: 40% 60% !important;
    gap: 10px !important;
    height: calc(100vh - 210px) !important;
    overflow: hidden !important;
}

.customers-table,
.nav-card {
    height: 100% !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
    border-radius: 6px !important;
}

.customers-table {
    background: #fff !important;
    border: 1px solid #cfd8e3 !important;
}

    .customers-table table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    .customers-table th {
        position: sticky !important;
        top: 0 !important;
        z-index: 20 !important;
        background: linear-gradient(#f8fafc, #e8eef6) !important;
        border-bottom: 1px solid #cfd8e3 !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        color: #1f3a5f !important;
    }

    .customers-table td {
        padding: 8px 10px !important;
        border-bottom: 1px solid #eef2f7 !important;
        font-size: 12px !important;
    }

    .customers-table tr {
        cursor: pointer !important;
    }

        .customers-table tr:hover {
            background: #eef6ff !important;
        }

        .customers-table tr.active {
            background: #dbeafe !important;
        }

.nav-card {
    background: #f7f9fc !important;
    border: 1px solid #cfd8e3 !important;
    box-shadow: none !important;
}

.nav-ribbon {
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
    display: flex !important;
    gap: 6px !important;
    padding: 8px !important;
    background: linear-gradient(#fff, #eef3f8) !important;
    border-bottom: 1px solid #cfd8e3 !important;
}

.nav-card-title {
    padding: 10px 12px !important;
    background: white !important;
    border-bottom: 1px solid #d8e0ea !important;
    color: #2563eb !important;
    font-size: 17px !important;
    font-weight: 900 !important;
}

.nav-card-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 220px !important;
    gap: 10px !important;
    padding: 10px !important;
}

.nav-factbox {
    position: sticky !important;
    top: 58px !important;
}

.negative-balance {
    color: #dc2626 !important;
}

.debt {
    color: #b91c1c !important;
    font-weight: 900 !important;
}

.badge.ok {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.badge.danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

@media (max-width: 980px) {
    .customers-page {
        overflow: visible !important;
    }

    .customers-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
        overflow: visible !important;
    }

    .customers-table,
    .nav-card {
        height: auto !important;
        max-height: none !important;
    }

    .customers-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .nav-card-layout {
        grid-template-columns: 1fr !important;
    }

    .nav-factbox {
        position: static !important;
    }
}
/* =========================
   CUSTOMERS NAV CLASSIC FINAL
========================= */

.customers-page {
    background: #eef3f8 !important;
    padding: 10px 12px !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
}

.customers-header {
    background: transparent !important;
    margin-bottom: 8px !important;
}

.page-kicker {
    color: #1f4e79 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

.customers-header h1 {
    color: #0070c0 !important;
    font-size: 26px !important;
    font-weight: 500 !important;
}

.customers-header p {
    color: #333 !important;
    font-size: 13px !important;
}

.btn-primary {
    background: #0078d4 !important;
    border: 1px solid #005a9e !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    height: 34px !important;
    padding: 0 14px !important;
}

.customers-toolbar {
    background: #f8fbff !important;
    border: 1px solid #b8c7d9 !important;
    border-radius: 2px !important;
    padding: 7px !important;
    box-shadow: none !important;
}

    .customers-toolbar input {
        height: 27px !important;
        border-radius: 1px !important;
        border: 1px solid #9fb6cf !important;
        background: white !important;
        font-size: 12px !important;
    }

    .customers-toolbar button {
        height: 28px !important;
        border-radius: 1px !important;
        border: 1px solid #7f9db9 !important;
        background: linear-gradient(#ffffff,#dfe8f3) !important;
        color: #000 !important;
        box-shadow: none !important;
        padding: 0 12px !important;
    }

.customer-stats {
    display: none !important;
}

.customers-grid {
    grid-template-columns: 39% 61% !important;
    height: calc(100vh - 150px) !important;
    gap: 8px !important;
}

.customers-table {
    border: 1px solid #b8c7d9 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

    .customers-table th {
        background: linear-gradient(#edf4fb,#dbe7f3) !important;
        color: #1f3a5f !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-bottom: 1px solid #b8c7d9 !important;
        padding: 6px 8px !important;
    }

    .customers-table td {
        font-size: 12px !important;
        color: #000 !important;
        padding: 6px 8px !important;
        border-bottom: 1px solid #e3eaf2 !important;
    }

    .customers-table tr.active {
        background: #cfe5ff !important;
    }

    .customers-table tr:hover {
        background: #e8f3ff !important;
    }

.badge {
    border-radius: 2px !important;
    padding: 3px 7px !important;
    font-size: 11px !important;
}

.nav-card {
    border: 1px solid #b8c7d9 !important;
    border-radius: 0 !important;
    background: #f5f8fb !important;
    box-shadow: none !important;
}

.nav-ribbon {
    background: linear-gradient(#fdfdfd,#dfe8f3) !important;
    border-bottom: 1px solid #b8c7d9 !important;
    padding: 6px !important;
}

.nav-ribbon-btn {
    height: 28px !important;
    border: 1px solid #b8c7d9 !important;
    border-radius: 1px !important;
    background: linear-gradient(#fff,#eef3f8) !important;
    font-size: 12px !important;
    color: #000 !important;
}

.nav-card-title {
    background: #f8fbff !important;
    border-bottom: 1px solid #b8c7d9 !important;
    color: #0070c0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    padding: 9px 10px !important;
}

.nav-section {
    border: 1px solid #b8c7d9 !important;
    border-radius: 0 !important;
    background: white !important;
}

.nav-section-title {
    background: linear-gradient(#edf4fb,#dbe7f3) !important;
    border-bottom: 1px solid #b8c7d9 !important;
    color: #003b64 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 6px 8px !important;
}

.nav-form-grid {
    grid-template-columns: 150px minmax(0,1fr) 150px minmax(0,1fr) !important;
    gap: 6px 9px !important;
    padding: 9px !important;
}

    .nav-form-grid label {
        color: #003b64 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }

    .nav-form-grid input {
        height: 25px !important;
        border-radius: 0 !important;
        border: 1px solid #9fb6cf !important;
        background: white !important;
        font-size: 12px !important;
        padding: 2px 6px !important;
    }

.nav-factbox {
    border: 1px solid #b8c7d9 !important;
    border-radius: 0 !important;
    background: white !important;
}

.factbox-title {
    background: linear-gradient(#edf4fb,#dbe7f3) !important;
    color: #003b64 !important;
    border-bottom: 1px solid #b8c7d9 !important;
}

.factbox-row {
    padding: 7px 8px !important;
    font-size: 12px !important;
}

    .factbox-row b {
        color: #0057d9 !important;
    }

.nav-save,
.nav-cancel {
    border-radius: 1px !important;
    height: 28px !important;
    box-shadow: none !important;
}

.nav-save {
    background: #0078d4 !important;
}
/* BUSINESS CENTRAL CUSTOMER CARD */

.customer-actions {
    display: flex;
    gap: 8px;
}

.bc-card-btn {
    height: 32px;
    border: 1px solid #c8d3df;
    background: #fff;
    border-radius: 2px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

    .bc-card-btn:hover {
        background: #eef6ff;
    }

.customers-grid.card-only {
    display: grid !important;
    grid-template-columns: 1fr !important;
    height: calc(100vh - 150px) !important;
}

.customers-grid.with-list {
    display: grid !important;
    grid-template-columns: 34% 66% !important;
    height: calc(100vh - 150px) !important;
}

.customers-grid.card-only .nav-card {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.customers-table {
    display: block;
}

.nav-card {
    background: #fff !important;
    border: 1px solid #d5dce5 !important;
}

.nav-card-title {
    font-size: 28px !important;
    color: #6b7280 !important;
    font-weight: 400 !important;
    padding: 18px 22px !important;
}

.nav-ribbon {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 18px !important;
}

.nav-ribbon-btn {
    border: 0 !important;
    background: transparent !important;
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

    .nav-ribbon-btn:hover {
        background: #eef6ff !important;
    }

.nav-card-layout {
    grid-template-columns: minmax(0,1fr) 260px !important;
    padding: 0 !important;
}

.nav-card-main {
    padding: 18px 24px !important;
}

.nav-section {
    border: 0 !important;
    border-bottom: 1px solid #d1d5db !important;
    border-radius: 0 !important;
    background: white !important;
    margin-bottom: 18px !important;
}

.nav-section-title {
    background: white !important;
    border-bottom: 1px solid #9ca3af !important;
    color: #374151 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 8px 0 !important;
}

.nav-form-grid {
    grid-template-columns: 160px minmax(0,1fr) 160px minmax(0,1fr) !important;
    padding: 14px 0 !important;
    gap: 9px 18px !important;
}

    .nav-form-grid label {
        color: #64748b !important;
        font-size: 12px !important;
        font-weight: 500 !important;
    }

    .nav-form-grid input {
        height: 28px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 0 !important;
        background: #fff !important;
        font-size: 12px !important;
    }

        .nav-form-grid input:disabled {
            background: #eef0f3 !important;
            color: #0f172a !important;
        }

.nav-factbox {
    border-left: 1px solid #d5dce5 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    background: #fafafa !important;
    border-radius: 0 !important;
    height: 100% !important;
    position: sticky !important;
    top: 0 !important;
}

.factbox-title {
    background: white !important;
    border-bottom: 1px solid #d5dce5 !important;
    color: #374151 !important;
    font-size: 13px !important;
    padding: 12px !important;
}

.factbox-row {
    padding: 10px 12px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

    .factbox-row b {
        color: #0078d4 !important;
    }

@media (max-width: 980px) {
    .customers-grid.with-list,
    .customers-grid.card-only {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .nav-card-layout {
        grid-template-columns: 1fr !important;
    }

    .nav-factbox {
        position: static !important;
        height: auto !important;
    }
}
.customers-grid.card-only {
    grid-template-columns: 1fr !important;
}

.customers-grid.with-list {
    grid-template-columns: 34% 66% !important;
}

.customers-grid.card-only .nav-card {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}
.bc26-customer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bc26-breadcrumb {
    font-size: 12px;
    color: #6b7280;
}

.bc26-customer-top h1 {
    font-size: 34px;
    font-weight: 300;
    margin: 4px 0;
    color: #666;
}

.customers-grid.card-only {
    grid-template-columns: 1fr !important;
}

.customers-grid.with-list {
    grid-template-columns: 34% 66% !important;
}

.bc26-empty-card {
    background: white;
    border: 1px solid #d5dce5;
    padding: 30px;
    color: #64748b;
}

.bc26-picture {
    height: 130px;
    display: grid;
    place-items: center;
    font-size: 70px;
    color: #cbd5e1;
    border-bottom: 1px solid #e5e7eb;
}
.bc26-breadcrumb {
    display: none !important;
}

.bc26-customer-top {
    background: #eef3f8 !important;
    padding: 10px 14px 8px !important;
    border-bottom: 1px solid #cfd8e3 !important;
}

    .bc26-customer-top h1 {
        margin: 0 !important;
        font-size: 32px !important;
        font-weight: 300 !important;
        color: #5f6b7a !important;
    }

    .bc26-customer-top p {
        margin: 4px 0 0 !important;
        font-size: 14px !important;
        color: #111827 !important;
    }

.customer-actions {
    display: flex !important;
    gap: 6px !important;
}

.bc-card-btn {
    height: 30px !important;
    border: 1px solid #b8c7d9 !important;
    background: linear-gradient(#fff, #e7eef7) !important;
    color: #003b64 !important;
    border-radius: 2px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.nav-ribbon {
    justify-content: flex-start !important;
    gap: 22px !important;
    padding: 9px 24px !important;
    background: #fff !important;
    border-top: 1px solid #d5dce5 !important;
    border-bottom: 1px solid #d5dce5 !important;
}

.nav-ribbon-btn {
    border: 0 !important;
    background: transparent !important;
    color: #1f2937 !important;
    padding: 6px 0 !important;
    height: auto !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

    .nav-ribbon-btn:hover {
        color: #0078d4 !important;
        background: transparent !important;
        text-decoration: underline !important;
    }
/* CUSTOMER SEARCH - BUSINESS CENTRAL STYLE */

.customers-toolbar {
    height: 44px !important;
    background: #f7f9fb !important;
    border: 0 !important;
    border-top: 1px solid #d7dde5 !important;
    border-bottom: 1px solid #d7dde5 !important;
    border-radius: 0 !important;
    padding: 6px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}

    .customers-toolbar input {
        width: 180px !important;
        height: 28px !important;
        border: 0 !important;
        border-bottom: 1px solid #9fb6cf !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 4px !important;
        font-size: 13px !important;
        color: #111827 !important;
    }

        .customers-toolbar input:focus {
            outline: none !important;
            border-bottom: 2px solid #0078d4 !important;
            box-shadow: none !important;
        }

    .customers-toolbar label {
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 13px !important;
        color: #1f2937 !important;
        white-space: nowrap !important;
    }

    .customers-toolbar input[type="checkbox"] {
        width: 14px !important;
        height: 14px !important;
        accent-color: #0078d4 !important;
    }

    .customers-toolbar button {
        height: 28px !important;
        border: 0 !important;
        background: transparent !important;
        color: #0078d4 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        padding: 0 4px !important;
        border-radius: 0 !important;
    }

        .customers-toolbar button:hover {
            text-decoration: underline !important;
            background: transparent !important;
        }
/* BC ACTION RIBBON */

.nav-ribbon {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    height: 42px !important;
    background: linear-gradient(#fbfcfd,#eef3f8) !important;
    border-top: 1px solid #d6dde8 !important;
    border-bottom: 1px solid #d6dde8 !important;
    padding: 0 14px !important;
}

.nav-ribbon-btn {
    position: relative !important;
    height: 42px !important;
    padding: 0 16px !important;
    border: 0 !important;
    border-right: 1px solid #e2e8f0 !important;
    background: transparent !important;
    color: #1f2937 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background .12s ease, color .12s ease !important;
}

    .nav-ribbon-btn:first-child {
        border-left: 1px solid #e2e8f0 !important;
    }

    .nav-ribbon-btn:hover {
        background: #e8f3ff !important;
        color: #0078d4 !important;
    }

    .nav-ribbon-btn:active {
        background: #d6eaff !important;
    }

    .nav-ribbon-btn.active {
        background: white !important;
        color: #0078d4 !important;
        font-weight: 700 !important;
    }

    .nav-ribbon-btn.danger:hover {
        background: #fee2e2 !important;
        color: #b91c1c !important;
    }

    .nav-ribbon-btn::after {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 2px !important;
        background: transparent !important;
    }

    .nav-ribbon-btn:hover::after {
        background: #0078d4 !important;
    }

    .nav-ribbon-btn.active::after {
        background: #0078d4 !important;
    }
.items-web-page {
    padding: 22px;
    background: linear-gradient(180deg,#f4f7fc 0%,#eef3f9 100%);
    min-height: 100vh;
}

.items-web-header {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 14px;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
}

.items-web-kicker {
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.items-web-header h1 {
    margin: 4px 0;
    font-size: 34px;
    color: #0f172a;
}

.items-web-header p {
    margin: 0;
    color: #64748b;
}

.items-web-filters {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr auto;
    gap: 12px;
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(15,23,42,.04);
}

.items-table-card {
    background: white;
    border: 1px solid #dbe4f0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
}

.items-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.items-table {
    min-width: 1100px;
}

.item-modal {
    width: 980px;
    max-width: 95%;
}

.item-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .item-detail-grid div {
        background: #f8fafc;
        border: 1px solid #e5edf7;
        border-radius: 14px;
        padding: 12px;
    }

    .item-detail-grid span {
        display: block;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
    }

    .item-detail-grid b {
        display: block;
        margin-top: 5px;
        color: #0f172a;
        font-size: 13px;
        word-break: break-word;
    }

.item-details-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
}

    .item-details-card div {
        background: #f8fafc;
        border: 1px solid #e5edf7;
        border-radius: 12px;
        padding: 10px;
    }

@media (max-width: 900px) {
    .items-web-page {
        padding: 10px;
    }

    .items-web-filters {
        grid-template-columns: 1fr;
    }

    .item-detail-grid,
    .item-details-card {
        grid-template-columns: 1fr;
    }

    .item-modal {
        width: 96%;
    }
}
.items-bc-page {
    padding: 14px;
    background: #eef3f8;
    min-height: 100vh;
}

.items-bc-header {
    background: white;
    border: 1px solid #cfd8e3;
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.items-bc-kicker {
    color: #0070c0;
    font-size: 12px;
    font-weight: 700;
}

.items-bc-header h1 {
    margin: 2px 0;
    color: #0070c0;
    font-size: 28px;
    font-weight: 500;
}

.items-bc-header p {
    margin: 0;
    color: #475569;
    font-size: 13px;
}

.items-bc-btn {
    height: 32px;
    border: 1px solid #b8c7d9;
    background: linear-gradient(#fff,#e7eef7);
    color: #003b64;
    border-radius: 2px;
    padding: 0 14px;
    font-weight: 700;
}

.items-bc-toolbar {
    display: grid;
    grid-template-columns: 1.5fr 1.3fr auto;
    gap: 8px;
    background: #f8fbff;
    border: 1px solid #b8c7d9;
    padding: 8px;
    margin-bottom: 8px;
}

    .items-bc-toolbar input {
        height: 30px;
        border: 1px solid #9fb6cf;
        background: white;
        padding: 0 8px;
        font-size: 13px;
    }

    .items-bc-toolbar span {
        align-self: center;
        color: #475569;
        font-size: 12px;
        font-weight: 700;
    }

.items-bc-grid {
    display: grid;
    grid-template-columns: 44% 56%;
    gap: 8px;
    height: calc(100vh - 165px);
}

.items-bc-list,
.items-bc-card {
    background: white;
    border: 1px solid #b8c7d9;
    overflow: auto;
}

    .items-bc-list table {
        width: 100%;
        border-collapse: collapse;
    }

    .items-bc-list th {
        position: sticky;
        top: 0;
        z-index: 5;
        background: linear-gradient(#edf4fb,#dbe7f3);
        color: #1f3a5f;
        font-size: 12px;
        padding: 7px 8px;
        border-bottom: 1px solid #b8c7d9;
        text-align: left;
    }

    .items-bc-list td {
        padding: 7px 8px;
        border-bottom: 1px solid #e3eaf2;
        font-size: 12px;
        color: #0f172a;
    }

    .items-bc-list tr {
        cursor: pointer;
    }

        .items-bc-list tr:hover {
            background: #e8f3ff;
        }

        .items-bc-list tr.active {
            background: #cfe5ff;
        }

    .items-bc-list small {
        display: block;
        color: #64748b;
        margin-top: 2px;
    }

.code {
    color: #0057d9;
}

.amount {
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.item-status {
    display: inline-block;
    min-width: 70px;
    text-align: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
}

    .item-status.active {
        background: #dcfce7;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .item-status.blocked {
        background: #fee2e2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

.item-card-title {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 18px 22px;
    border-bottom: 1px solid #d5dce5;
    background: #f8fbff;
}

    .item-card-title span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

    .item-card-title h2 {
        margin: 4px 0;
        color: #5f6b7a;
        font-size: 28px;
        font-weight: 300;
    }

    .item-card-title p {
        margin: 0;
        color: #0070c0;
        font-weight: 700;
    }

.item-sections {
    padding: 18px 24px;
}

    .item-sections section {
        margin-bottom: 20px;
        border-bottom: 1px solid #d1d5db;
        padding-bottom: 16px;
    }

    .item-sections h3 {
        margin: 0 0 12px;
        color: #374151;
        font-size: 15px;
        font-weight: 700;
    }

.item-fields {
    display: grid;
    grid-template-columns: 160px minmax(0,1fr) 160px minmax(0,1fr);
    gap: 8px 18px;
}

    .item-fields div {
        display: contents;
    }

    .item-fields span {
        color: #64748b;
        font-size: 12px;
        font-weight: 500;
    }

    .item-fields b {
        min-height: 28px;
        border: 1px solid #cbd5e1;
        background: #fff;
        padding: 5px 7px;
        font-size: 12px;
        font-weight: 600;
        color: #0f172a;
        word-break: break-word;
    }

.items-empty-card {
    padding: 40px;
    color: #64748b;
}

    .items-empty-card h2 {
        color: #0f172a;
        margin-top: 0;
    }

@media (max-width: 1100px) {
    .items-bc-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .items-bc-list,
    .items-bc-card {
        max-height: none;
    }

    .item-fields {
        grid-template-columns: 150px minmax(0,1fr);
    }
}

@media (max-width: 700px) {
    .items-bc-page {
        padding: 8px;
    }

    .items-bc-header,
    .items-bc-toolbar {
        grid-template-columns: 1fr;
        display: grid;
    }

    .items-bc-list {
        overflow-x: auto;
    }

        .items-bc-list table {
            min-width: 850px;
        }

    .item-card-title {
        flex-direction: column;
    }

    .item-fields {
        grid-template-columns: 1fr;
    }

        .item-fields div {
            display: block;
        }

        .item-fields span {
            display: block;
            margin-bottom: 4px;
        }

        .item-fields b {
            display: block;
        }
}
.items-bc-page {
    background: #ffffff !important;
    padding: 30px !important;
}

    .items-bc-page h1 {
        color: red !important;
        font-size: 50px !important;
    }

.items-bc-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

    .items-bc-table th {
        background: black !important;
        color: white !important;
        padding: 12px !important;
    }

    .items-bc-table td {
        padding: 12px !important;
        border-bottom: 1px solid #ddd !important;
    }
    /*//Salesperson*/
.salespersons-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.salespersons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 18px;
}

.salesperson-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    border: 1px solid #e8eef7;
    box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.salesperson-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.salesperson-code {
    font-size: 13px;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.salesperson-name {
    font-size: 20px;
    font-weight: 900;
    color: #0f172a;
    margin-top: 4px;
}

.salesperson-location {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

.salesperson-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.salesperson-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .salesperson-field label {
        font-size: 12px;
        font-weight: 800;
        color: #475569;
    }

    .salesperson-field select {
        width: 100%;
        height: 46px;
        border-radius: 14px;
        border: 1px solid #dbe4f0;
        background: #ffffff;
        padding: 0 14px;
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
    }

.salesperson-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.salesperson-save-btn {
    border: none;
    border-radius: 16px;
    height: 44px;
    padding: 0 22px;
    background: linear-gradient(135deg,#2563eb,#7c3aed);
    color: white;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(79,70,229,.24);
    transition: .18s ease;
}

    .salesperson-save-btn:hover {
        transform: translateY(-1px);
    }

.salesperson-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 900;
}

    .salesperson-status::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #22c55e;
    }

@media (max-width:768px) {

    .salespersons-grid {
        grid-template-columns: 1fr;
    }

    .salesperson-card {
        border-radius: 20px;
        padding: 16px;
    }

    .salesperson-name {
        font-size: 18px;
    }
}