
/* ===== theme-package-2.css ===== */
/* Theme Package 2 — Navigation refinements */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .28);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, .42);
}

.sidebar-nav a {
    position: relative;
}

.sidebar-nav a.active {
    background: var(--sidebar-active);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .18);
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #60a5fa;
}

.sidebar-nav a span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-section:first-child {
    margin-top: 4px;
}

@media (max-width: 860px) {
    .sidebar {
        width: min(86vw, 300px);
    }

    .brand {
        padding-right: 18px;
    }

    .sidebar-nav {
        padding-bottom: 35px;
    }
}


/* ===== theme-package-3.css ===== */
/* Inventory SaaS — Theme Package 3
   Tables, filters, list pages, pagination, status badges, empty states
*/

:root {
    --table-header-bg: #f8fafc;
    --table-row-hover: #f8fbff;
    --filter-bg: #ffffff;
    --muted-2: #94a3b8;
}

/* Page toolbar */
.list-toolbar,
.report-toolbar,
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.list-toolbar-left,
.list-toolbar-right,
.filter-bar-left,
.filter-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.list-toolbar h1,
.list-toolbar h2,
.report-toolbar h1,
.report-toolbar h2 {
    margin: 0;
}

.list-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

/* Search */
.search-box {
    position: relative;
    min-width: 260px;
}

.search-box input {
    margin: 0;
    padding-left: 38px;
    background: #fff;
}

.search-box::before {
    content: "⌕";
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-2);
    font-size: 18px;
    pointer-events: none;
}

/* Filter bar */
.filter-bar {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--filter-bg);
    box-shadow: var(--shadow);
}

.filter-bar label {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 150px;
}

.filter-field input,
.filter-field select {
    margin: 0;
    min-height: 38px;
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 18px;
}

/* Data card/table */
.table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.table-card-title {
    margin: 0;
    font-size: 15px;
    font-weight: 750;
}

.table-card-meta {
    color: var(--muted);
    font-size: 12px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.table-modern {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.table-modern th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--table-header-bg);
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table-modern td,
.table-modern th {
    padding: 13px 15px;
    border-bottom: 1px solid #edf2f7;
}

.table-modern tbody tr {
    transition: background .12s ease;
}

.table-modern tbody tr:hover {
    background: var(--table-row-hover);
}

.table-modern tbody tr:last-child td {
    border-bottom: 0;
}

.table-modern td.numeric,
.table-modern th.numeric {
    text-align: right;
}

.table-modern td.actions {
    white-space: nowrap;
    text-align: right;
}

.table-modern .primary-cell {
    font-weight: 700;
    color: #0f172a;
}

.table-modern .secondary-text {
    color: var(--muted);
    font-size: 12px;
}

/* Compact action links */
.row-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.row-actions a,
.row-actions button {
    min-height: 32px;
    padding: 6px 9px;
    margin: 0;
    border-radius: 7px;
    font-size: 12px;
    box-shadow: none;
}

.row-actions .action-secondary {
    background: #fff;
    color: #334155;
    border: 1px solid var(--border);
}

.row-actions .action-secondary:hover {
    background: #f8fafc;
}

.row-actions .action-danger {
    background: #fff;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.row-actions .action-danger:hover {
    background: var(--danger-bg);
}

/* Generic badges */
.badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.badge-neutral {
    background: #f1f5f9;
    color: #475569;
}

.badge-success,
.status-active,
.status-paid,
.status-approved,
.status-completed,
.status-received {
    background: var(--success-bg);
    color: #166534;
}

.badge-warning,
.status-pending,
.status-partially_paid,
.status-partial,
.status-draft {
    background: var(--warning-bg);
    color: #854d0e;
}

.badge-danger,
.status-overdue,
.status-cancelled,
.status-canceled,
.status-void,
.status-rejected,
.status-inactive {
    background: var(--danger-bg);
    color: #991b1b;
}

.badge-info,
.status-processing,
.status-open,
.status-issued {
    background: var(--info-bg);
    color: #075985;
}

/* Inventory emphasis */
.stock-low {
    color: var(--danger);
    font-weight: 750;
}

.stock-ok {
    color: var(--success);
    font-weight: 700;
}

.money-positive {
    color: var(--success);
    font-weight: 700;
}

.money-negative {
    color: var(--danger);
    font-weight: 700;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    background: #fff;
}

.pagination-summary {
    color: var(--muted);
    font-size: 12px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination a,
.pagination span {
    min-width: 34px;
    min-height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: #334155;
    background: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 650;
}

.pagination a:hover {
    background: #f8fafc;
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .disabled {
    opacity: .45;
    pointer-events: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}

.empty-state-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 22px;
    font-weight: 800;
}

.empty-state h3 {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 16px;
}

.empty-state p {
    max-width: 460px;
    margin: 0 auto 16px;
}

/* Summary strip for reports */
.summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.summary-strip .summary-item {
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.summary-item-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.summary-item-value {
    margin-top: 5px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.025em;
}

/* Utilities */
.text-muted { color: var(--muted) !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.nowrap { white-space: nowrap !important; }

@media (max-width: 760px) {
    .list-toolbar,
    .report-toolbar,
    .filter-bar {
        align-items: stretch;
    }

    .list-toolbar-left,
    .list-toolbar-right,
    .filter-bar-left,
    .filter-bar-right {
        width: 100%;
    }

    .search-box,
    .filter-field {
        min-width: 100%;
        width: 100%;
    }

    .filter-actions {
        width: 100%;
        padding-top: 0;
    }

    .filter-actions .btn,
    .filter-actions button {
        flex: 1;
    }

    .table-modern td,
    .table-modern th {
        white-space: nowrap;
    }

    .pagination-wrap {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    .list-toolbar-right,
    .filter-bar,
    .pagination-wrap,
    .row-actions {
        display: none !important;
    }

    .table-card {
        border: 0;
        box-shadow: none;
    }

    .table-modern th {
        position: static;
    }
}


/* ===== theme-package-4.css ===== */
/* Inventory SaaS — Theme Package 4
   Forms, validation, modals, confirmations, alerts
*/

.form-page {
    max-width: 1180px;
    margin: 0 auto;
}

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

.form-page-title {
    margin: 0;
    font-size: 26px;
    letter-spacing: -.035em;
}

.form-page-subtitle {
    margin: 5px 0 0;
    color: var(--muted);
}

.form-shell {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-section {
    padding: 22px;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: 0;
}

.form-section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.form-section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.form-section-description {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.form-grid-2,
.form-grid-3,
.form-grid-4 {
    display: grid;
    gap: 16px;
}

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

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

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

.form-field {
    min-width: 0;
}

.form-field label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 750;
    color: #334155;
}

.form-field label .required {
    color: var(--danger);
}

.form-field input,
.form-field textarea,
.form-field select {
    margin: 0;
}

.form-field textarea {
    min-height: 110px;
}

.form-help {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.form-error {
    margin-top: 6px;
    color: var(--danger);
    font-size: 11px;
    font-weight: 650;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: var(--danger);
    background: #fffafa;
}

.form-field.has-error input:focus,
.form-field.has-error select:focus,
.form-field.has-error textarea:focus,
input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(185, 28, 28, .10);
}

.form-field.has-success input,
.form-field.has-success select,
.form-field.has-success textarea,
input.is-valid,
select.is-valid,
textarea.is-valid {
    border-color: #22c55e;
}

.input-group {
    display: flex;
    align-items: stretch;
}

.input-group > * {
    border-radius: 0;
}

.input-group > *:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.input-group > *:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.input-prefix,
.input-suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--muted);
    font-weight: 650;
}

.input-group input {
    flex: 1;
}

.checkbox-row,
.radio-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.checkbox-item,
.radio-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input,
.radio-item input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px;
    background: #f8fafc;
    border-top: 1px solid var(--border);
}

.form-actions.sticky {
    position: sticky;
    bottom: 0;
    z-index: 50;
}

.form-actions .btn,
.form-actions button {
    min-width: 110px;
}

.btn-light {
    background: #fff;
    color: #334155;
    border: 1px solid var(--border);
}

.btn-light:hover {
    background: #f8fafc;
    color: var(--text);
}

.btn-outline-danger {
    background: #fff;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.btn-outline-danger:hover {
    background: var(--danger-bg);
}

.alert-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.alert {
    position: relative;
}

.alert-title {
    font-weight: 800;
    margin-bottom: 2px;
}

.alert-text {
    font-size: 12px;
}

.alert-dismissible {
    padding-right: 42px;
}

.alert-close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: currentColor;
    opacity: .65;
}

.alert-close:hover {
    background: rgba(255,255,255,.4);
    opacity: 1;
}

/* Modal system */
.modal-backdrop-app {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .55);
    z-index: 2000;
}

.modal-backdrop-app.is-open {
    display: flex;
}

.modal-app {
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .30);
    border: 1px solid var(--border);
}

.modal-app.modal-lg {
    width: min(100%, 820px);
}

.modal-header-app,
.modal-footer-app {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header-app {
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.modal-footer-app {
    justify-content: flex-end;
    border-top: 1px solid var(--border);
    background: #f8fafc;
}

.modal-title-app {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}

.modal-body-app {
    padding: 18px;
}

.modal-close-app {
    width: 34px;
    height: 34px;
    min-height: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border);
    color: #475569;
}

.modal-close-app:hover {
    background: #f8fafc;
    color: var(--text);
}

/* Confirmation dialog */
.confirm-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 14px;
    font-weight: 900;
    font-size: 20px;
}

.confirm-icon.warning {
    background: var(--warning-bg);
    color: #92400e;
}

.confirm-icon.danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.confirm-copy h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.confirm-copy p {
    margin: 0;
    color: var(--muted);
}

/* Details/summary blocks */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.detail-item {
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.detail-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.detail-value {
    margin-top: 4px;
    font-weight: 750;
}

/* Wizard / step forms */
.form-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
}

.form-step {
    flex: 1;
    min-width: 140px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.form-step.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.form-step.completed {
    border-color: #bbf7d0;
    background: var(--success-bg);
    color: #166534;
}

@media (max-width: 900px) {
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .form-page-header {
        flex-direction: column;
    }

    .form-grid-2,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }

    .form-section {
        padding: 18px 15px;
    }

    .form-actions {
        padding: 14px 15px;
        flex-direction: column-reverse;
    }

    .form-actions .btn,
    .form-actions button {
        width: 100%;
    }

    .modal-backdrop-app {
        padding: 10px;
        align-items: flex-end;
    }

    .modal-app,
    .modal-app.modal-lg {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 14px 14px 0 0;
    }
}

@media print {
    .form-actions,
    .modal-backdrop-app,
    .alert-close {
        display: none !important;
    }

    .form-shell {
        box-shadow: none;
        border: 0;
    }
}


/* ===== theme-package-5.css ===== */
/* Inventory SaaS — Theme Package 5
   POS redesign
*/

.pos-page {
    max-width: 1600px;
    margin: 0 auto;
}

.pos-page .page-header {
    margin-bottom: 16px;
}

.pos-layout,
.pos-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
    gap: 18px;
    align-items: start;
}

/* Left side: catalogue */
.pos-products,
.pos-catalogue {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pos-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.pos-panel-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.pos-panel-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.pos-search-row {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.pos-search {
    flex: 1;
    position: relative;
}

.pos-search input {
    margin: 0;
    min-height: 46px;
    padding-left: 40px;
    font-size: 14px;
    background: #fff;
}

.pos-search::before {
    content: "⌕";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 20px;
    z-index: 2;
}

.pos-barcode-btn {
    min-width: 48px;
    padding-inline: 13px;
}

.pos-category-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    scrollbar-width: thin;
}

.pos-category-tabs a,
.pos-category-tabs button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 11px;
    background: #fff;
    color: #475569;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    box-shadow: none;
}

.pos-category-tabs .active,
.pos-category-tabs a:hover,
.pos-category-tabs button:hover {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: #bfdbfe;
}

.product-list,
.pos-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 12px;
    padding: 16px;
    margin: 0;
    max-height: calc(100vh - 285px);
    min-height: 420px;
    overflow-y: auto;
}

.product-item,
.pos-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 132px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.product-item:hover,
.pos-product-card:hover {
    transform: translateY(-1px);
    border-color: #bfdbfe;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .08);
    background: #fff;
}

.product-item:active,
.pos-product-card:active {
    transform: translateY(0);
}

.pos-product-name {
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.pos-product-sku {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.pos-product-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-end;
    margin-top: 12px;
}

.pos-product-price {
    color: #0f172a;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.pos-product-stock {
    color: var(--muted);
    font-size: 10px;
    text-align: right;
}

.pos-product-stock.low {
    color: var(--danger);
    font-weight: 750;
}

.pos-product-card.out-of-stock,
.product-item.out-of-stock {
    opacity: .55;
    cursor: not-allowed;
    background: #f8fafc;
}

/* Right side: cart */
.pos-cart {
    position: sticky;
    top: calc(var(--topbar-height) + 18px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pos-cart-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pos-cart-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.pos-cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.pos-customer-box {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.pos-customer-box label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .045em;
}

.pos-customer-box select,
.pos-customer-box input {
    margin: 5px 0 0;
}

.pos-cart-items {
    max-height: 355px;
    overflow-y: auto;
}

.pos-cart-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--muted);
}

.pos-cart-empty strong {
    display: block;
    color: var(--text);
    margin-bottom: 5px;
}

.pos-cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
}

.pos-cart-row:hover {
    background: #fafcff;
}

.pos-cart-item-name {
    font-weight: 750;
    line-height: 1.3;
}

.pos-cart-item-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.pos-cart-item-total {
    text-align: right;
    font-weight: 800;
}

.pos-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
}

.pos-qty-controls button {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    background: #fff;
    color: #334155;
    border: 1px solid var(--border);
    box-shadow: none;
}

.pos-qty-controls button:hover {
    background: #f8fafc;
}

.pos-qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 750;
}

.pos-remove {
    margin-top: 7px;
    padding: 0;
    min-height: auto;
    background: transparent;
    color: var(--danger);
    font-size: 11px;
}

.pos-remove:hover {
    background: transparent;
    text-decoration: underline;
}

.cart-summary,
.pos-summary {
    margin: 0;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 0;
    border-top: 1px solid var(--border);
}

.pos-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 5px 0;
    color: #475569;
}

.pos-summary-row strong {
    color: var(--text);
}

.pos-summary-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    color: var(--text);
    font-size: 19px;
    font-weight: 850;
}

.pos-summary-row.total strong {
    font-size: 22px;
    letter-spacing: -.03em;
}

.pos-payment {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border);
}

.pos-payment-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.pos-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 12px;
}

.pos-payment-method {
    min-height: 42px;
    background: #fff;
    color: #334155;
    border: 1px solid var(--border);
    box-shadow: none;
}

.pos-payment-method:hover,
.pos-payment-method.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: #93c5fd;
}

.pos-tender-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.pos-tender-grid .form-field {
    margin: 0;
}

.pos-tender-grid input,
.pos-tender-grid select {
    margin: 0;
}

.pos-change-box {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--success-bg);
    color: #166534;
    font-weight: 750;
}

.pos-checkout-actions {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8px;
    margin-top: 13px;
}

.pos-clear-cart {
    background: #fff;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.pos-clear-cart:hover {
    background: var(--danger-bg);
}

.pos-complete-sale {
    min-height: 48px;
    font-size: 15px;
    font-weight: 800;
}

/* Register status */
.pos-register-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.pos-register-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.pos-register-status.open {
    background: var(--success-bg);
    color: #166534;
}

.pos-register-status.open::before {
    background: #22c55e;
}

.pos-register-status.closed {
    background: var(--danger-bg);
    color: #991b1b;
}

.pos-register-status.closed::before {
    background: #ef4444;
}

/* POS alert strip */
.pos-alert {
    margin-bottom: 14px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: 12px;
    font-weight: 650;
}

.pos-alert-warning {
    background: var(--warning-bg);
    color: #854d0e;
    border-color: #fde68a;
}

.pos-alert-danger {
    background: var(--danger-bg);
    color: #991b1b;
    border-color: #fecaca;
}

/* Receipt refinements */
.receipt-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.receipt {
    width: min(100%, 420px);
    background: #fff;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.receipt .center {
    text-align: center;
}

.receipt table {
    width: 100%;
    margin-top: 12px;
    background: transparent;
}

.receipt table th,
.receipt table td {
    padding: 7px 3px;
    background: transparent;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 12px;
}

.receipt-buttons {
    margin-top: 18px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.grand {
    font-size: 18px;
    font-weight: 850;
}

/* Fullscreen-friendly POS */
body.pos-focus-mode .sidebar {
    display: none;
}

body.pos-focus-mode .main-area {
    margin-left: 0;
    width: 100%;
}

body.pos-focus-mode .content {
    max-width: none;
}

/* Responsive */
@media (max-width: 1180px) {
    .pos-layout,
    .pos-wrapper {
        grid-template-columns: minmax(0, 1fr) 390px;
    }

    .product-list,
    .pos-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 980px) {
    .pos-layout,
    .pos-wrapper {
        grid-template-columns: 1fr;
    }

    .pos-cart {
        position: static;
    }

    .product-list,
    .pos-product-grid {
        max-height: 480px;
        min-height: 320px;
    }

    .pos-cart-items {
        max-height: 320px;
    }
}

@media (max-width: 620px) {
    .pos-panel-header,
    .pos-search-row,
    .pos-category-tabs,
    .product-list,
    .pos-product-grid,
    .pos-cart-header,
    .pos-customer-box,
    .pos-payment {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-list,
    .pos-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .product-item,
    .pos-product-card {
        min-height: 122px;
        padding: 11px;
    }

    .pos-payment-methods {
        grid-template-columns: 1fr;
    }

    .pos-tender-grid {
        grid-template-columns: 1fr;
    }

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

    .pos-complete-sale {
        order: -1;
    }
}

@media print {
    .pos-page,
    .pos-wrapper,
    .pos-layout,
    .pos-products,
    .pos-catalogue,
    .pos-cart,
    .receipt-buttons {
        box-shadow: none;
    }

    .pos-products,
    .pos-catalogue,
    .pos-cart {
        display: none !important;
    }

    .receipt {
        width: 100%;
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}


/* ===== theme-package-7.css ===== */
/* Inventory SaaS — Theme Package 7
   Billing, subscriptions, system health, platform administration
*/

.admin-page {
    max-width: 1500px;
    margin: 0 auto;
}

.admin-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.admin-page-title {
    margin: 0;
    font-size: 26px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.admin-page-subtitle {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.saas-summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.saas-summary-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.saas-summary-value {
    margin-top: 7px;
    color: var(--text);
    font-size: 27px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.04em;
}

.saas-summary-meta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

/* Billing overview */
.billing-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 16px;
    margin-bottom: 18px;
}

.billing-panel,
.system-panel,
.platform-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

.panel-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
}

.panel-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.panel-body {
    padding: 18px;
}

.current-plan-card {
    padding: 18px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: linear-gradient(180deg, #eff6ff, #fff);
}

.current-plan-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.current-plan-name {
    margin: 0;
    color: #1e3a8a;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.current-plan-price {
    margin-top: 5px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
}

.plan-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.plan-status-pill.active {
    background: var(--success-bg);
    color: #166534;
}

.plan-status-pill.trial {
    background: var(--info-bg);
    color: #075985;
}

.plan-status-pill.past-due,
.plan-status-pill.cancelled,
.plan-status-pill.canceled {
    background: var(--danger-bg);
    color: #991b1b;
}

.billing-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.billing-meta-item {
    padding: 11px 12px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: #fff;
}

.billing-meta-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.billing-meta-value {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 750;
}

/* Usage */
.usage-list {
    display: grid;
    gap: 14px;
}

.usage-item {
    display: grid;
    gap: 6px;
}

.usage-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #475569;
    font-size: 12px;
}

.usage-header strong {
    color: var(--text);
}

.usage-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.usage-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.usage-fill.warning {
    background: #f59e0b;
}

.usage-fill.danger {
    background: #dc2626;
}

/* Plan cards */
.plan-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.plan-card-modern {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.plan-card-modern.featured {
    border-color: #93c5fd;
    box-shadow: 0 14px 35px rgba(37, 99, 235, .11);
}

.plan-ribbon {
    position: absolute;
    right: 13px;
    top: 13px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.plan-card-header {
    padding: 20px 20px 12px;
}

.plan-card-name {
    margin: 0;
    font-size: 19px;
    font-weight: 900;
}

.plan-card-description {
    margin-top: 7px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.plan-card-price {
    margin-top: 15px;
    color: var(--text);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.plan-card-price small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0;
}

.plan-feature-list {
    flex: 1;
    display: grid;
    gap: 9px;
    padding: 14px 20px 20px;
}

.plan-feature {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    color: #475569;
    font-size: 12px;
}

.plan-feature::before {
    content: "✓";
    color: #16a34a;
    font-weight: 900;
}

.plan-card-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
}

.plan-card-footer .btn,
.plan-card-footer button {
    width: 100%;
}

/* Feature audit */
.feature-audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.feature-audit-card {
    padding: 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.feature-audit-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.feature-audit-name {
    font-size: 13px;
    font-weight: 800;
}

.feature-audit-description {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.feature-state {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.feature-state.enabled {
    background: var(--success-bg);
    color: #166534;
}

.feature-state.disabled {
    background: #f1f5f9;
    color: #64748b;
}

.feature-state.locked {
    background: var(--warning-bg);
    color: #92400e;
}

/* System health */
.health-hero {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

.health-score-ring {
    width: 154px;
    height: 154px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, white 59%, transparent 60%),
        conic-gradient(var(--primary) 0 88%, #e2e8f0 88% 100%);
}

.health-score-ring strong {
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.health-score-ring span {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.health-summary-list {
    display: grid;
    gap: 9px;
}

.health-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
}

.health-summary-item:last-child {
    border-bottom: 0;
}

.health-status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin-right: 7px;
}

.health-status-dot.ok { background: #22c55e; }
.health-status-dot.warn { background: #f59e0b; }
.health-status-dot.fail { background: #ef4444; }

.health-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.health-check-card {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.health-check-title {
    font-size: 12px;
    font-weight: 800;
}

.health-check-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.health-check-value {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 850;
}

/* Operational status */
.ops-status-list {
    display: grid;
    gap: 10px;
}

.ops-status-row {
    display: grid;
    grid-template-columns: minmax(140px, .8fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid #edf2f7;
}

.ops-status-row:last-child {
    border-bottom: 0;
}

.ops-name {
    font-size: 12px;
    font-weight: 800;
}

.ops-description {
    color: var(--muted);
    font-size: 11px;
}

.ops-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.ops-pill.ok {
    background: var(--success-bg);
    color: #166534;
}

.ops-pill.warn {
    background: var(--warning-bg);
    color: #92400e;
}

.ops-pill.fail {
    background: var(--danger-bg);
    color: #991b1b;
}

/* Alert center */
.platform-alert-list {
    display: grid;
    gap: 10px;
}

.platform-alert {
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.platform-alert.high {
    border-left: 4px solid #ef4444;
}

.platform-alert.medium {
    border-left: 4px solid #f59e0b;
}

.platform-alert.low {
    border-left: 4px solid #38bdf8;
}

.platform-alert-title {
    font-size: 12px;
    font-weight: 800;
}

.platform-alert-meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.platform-alert-copy {
    margin-top: 7px;
    color: #475569;
    font-size: 11px;
    line-height: 1.55;
}

/* SMTP / queue / backup cards */
.system-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.system-tool-card {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    padding: 17px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.system-tool-title {
    font-size: 14px;
    font-weight: 850;
}

.system-tool-copy {
    flex: 1;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.system-tool-stat {
    margin: 14px 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.035em;
}

/* Billing invoice doc enhancements */
.invoice-status-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.invoice-total-box {
    margin-left: auto;
    width: min(100%, 360px);
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.invoice-total-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 6px 0;
    color: #475569;
}

.invoice-total-row.grand-total {
    margin-top: 6px;
    padding-top: 11px;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
}

/* Admin tables */
.platform-table .critical-row {
    background: #fff7f7;
}

.platform-table .warning-row {
    background: #fffbeb;
}

/* Responsive */
@media (max-width: 1180px) {
    .saas-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .plan-comparison-grid,
    .system-tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .billing-overview {
        grid-template-columns: 1fr;
    }

    .health-hero {
        grid-template-columns: 1fr;
    }

    .health-score-ring {
        margin: 0;
    }
}

@media (max-width: 680px) {
    .saas-summary-grid,
    .plan-comparison-grid,
    .system-tool-grid,
    .billing-meta-grid {
        grid-template-columns: 1fr;
    }

    .admin-page-header,
    .current-plan-row,
    .invoice-status-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-actions {
        width: 100%;
    }

    .admin-actions .btn,
    .admin-actions button {
        flex: 1;
    }

    .ops-status-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media print {
    .admin-actions,
    .system-tool-grid .btn,
    .plan-card-footer {
        display: none !important;
    }

    .billing-panel,
    .system-panel,
    .platform-panel,
    .plan-card-modern,
    .system-tool-card {
        box-shadow: none;
    }
}


/* ===== brand-blue-orange.css ===== */
/* Inventory SaaS — Integrated Blue & Orange Brand Layer */

:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-soft: #eff6ff;

    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-soft: #fff7ed;

    --sidebar-bg: #0f2a52;
    --sidebar-bg-2: #123765;
    --sidebar-active: #1d4ed8;
    --sidebar-text: #dbeafe;
    --sidebar-muted: #93c5fd;

    --text: #172033;
    --muted: #64748b;
    --surface: #ffffff;
    --page-bg: #f5f7fb;
    --border: #e2e8f0;

    --success: #15803d;
    --success-bg: #f0fdf4;
    --warning: #c2410c;
    --warning-bg: #fff7ed;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
    --info-bg: #eff6ff;
}

/* Main shell */
body {
    background: var(--page-bg);
}

.sidebar {
    background:
        linear-gradient(180deg, var(--sidebar-bg) 0%, #0b1f3a 100%);
}

.brand-mark,
.auth-brand-mark {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 8px 20px rgba(249, 115, 22, .18);
}

.sidebar nav a,
.sidebar-nav a {
    color: var(--sidebar-text);
}

.sidebar-nav a.active,
.sidebar nav a:hover,
.sidebar-nav a:hover {
    background: linear-gradient(90deg, rgba(29, 78, 216, .95), rgba(29, 78, 216, .72));
    color: #fff;
}

.sidebar-nav a.active::before {
    background: var(--accent);
}

.nav-section {
    color: #93c5fd;
}

/* Buttons */
.btn,
button {
    background: var(--primary);
}

.btn:hover,
button:hover {
    background: var(--primary-hover);
}

.btn-accent,
.btn-orange,
.pos-complete-sale {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-accent:hover,
.btn-orange:hover,
.pos-complete-sale:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary,
.btn-light {
    background: #fff;
    color: var(--primary);
    border: 1px solid #bfdbfe;
}

.btn-secondary:hover,
.btn-light:hover {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

/* Dashboard metrics */
.metric-card,
.saas-summary-card,
.summary-card {
    position: relative;
    overflow: hidden;
}

.metric-card::before,
.saas-summary-card::before,
.summary-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.metric-card:nth-child(even)::before,
.saas-summary-card:nth-child(even)::before,
.summary-card:nth-child(even)::before {
    background: var(--accent);
}

/* Links and focus */
a {
    color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .10);
}

/* Tables */
.table-modern th {
    background: #f1f5fb;
    color: #334155;
}

.table-modern tbody tr:hover {
    background: #f8fbff;
}

/* Badges */
.badge-info,
.status-processing,
.status-open,
.status-issued {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.badge-warning,
.status-pending,
.status-partially_paid,
.status-partial,
.status-draft {
    background: var(--accent-soft);
    color: #9a3412;
}

/* POS */
.pos-category-tabs .active,
.pos-category-tabs a:hover,
.pos-category-tabs button:hover,
.pos-payment-method:hover,
.pos-payment-method.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: #93c5fd;
}

.pos-product-card:hover,
.product-item:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 22px rgba(29, 78, 216, .09);
}

.pos-cart {
    border-top: 3px solid var(--accent);
}

.pos-summary-row.total strong {
    color: var(--primary);
}

.pos-change-box {
    border-left: 4px solid var(--accent);
}

/* Billing / plans */
.plan-card-modern.featured {
    border-color: #60a5fa;
}

.plan-ribbon {
    background: var(--accent-soft);
    color: #c2410c;
}

.current-plan-card {
    border-color: #bfdbfe;
    background: linear-gradient(180deg, #eff6ff 0%, #fff 72%);
}

.current-plan-card::after {
    content: "";
    display: block;
    height: 4px;
    margin: 16px -18px -18px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.usage-fill {
    background: var(--primary);
}

.usage-fill.warning {
    background: var(--accent);
}

/* System health */
.health-score-ring {
    background:
        radial-gradient(circle at center, white 59%, transparent 60%),
        conic-gradient(var(--primary) 0 88%, var(--accent) 88% 94%, #e2e8f0 94% 100%);
}

/* Authentication */
.auth-brand-panel {
    background:
        radial-gradient(circle at 18% 18%, rgba(29, 78, 216, .32), transparent 34%),
        radial-gradient(circle at 82% 72%, rgba(249, 115, 22, .22), transparent 30%),
        #0f2342;
}

.auth-link,
.password-toggle {
    color: var(--primary);
}

.auth-submit {
    background: linear-gradient(90deg, var(--primary), #2563eb);
}

.auth-submit:hover {
    background: linear-gradient(90deg, var(--primary-hover), var(--primary));
}

.twofa-icon {
    background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
    color: var(--primary);
}

/* Orange emphasis helpers */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent-soft {
    background: var(--accent-soft) !important;
}

.border-accent {
    border-color: #fdba74 !important;
}

/* Use orange for attention, blue for primary action */
.locked-feature small {
    color: #fdba74;
}

.alert.warning {
    border-left: 4px solid var(--accent);
}

/* Print */
@media print {
    :root {
        --primary: #1d4ed8;
        --accent: #f97316;
    }
}
