/* Analytics & Shop Benefits Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.analytics-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.analytics-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-revenue .card-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.card-profit .card-icon {
    background-color: var(--accent-light);
    color: var(--accent);
}

.card-storage-value .card-icon {
    background-color: #f8fafc;
    color: #475569;
    border: 1px solid var(--border);
}

.card-alerts .card-icon {
    background-color: var(--color-red-bg);
    color: var(--color-red-text);
}

.card-content h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-value {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}

.card-subtext {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Form Styles */
.dashboard-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group label .required {
    color: var(--color-red-text);
    margin-left: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Inputs and Select Customization */
.dashboard-form input,
.dashboard-form select,
.dashboard-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--bg-app);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.dashboard-form input:focus,
.dashboard-form select:focus,
.dashboard-form textarea:focus {
    background-color: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.dashboard-form input::placeholder,
.dashboard-form textarea::placeholder {
    color: var(--text-muted);
}

.dashboard-form textarea {
    resize: vertical;
    min-height: 80px;
    font-family: var(--font-sans);
}

/* Custom styles for select elements */
.dashboard-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

.med-category-select {
    appearance: none;
    width: 100%;
    padding: 12px 16px;
    padding-right: 44px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: #f8fbff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    border: 1.5px solid var(--primary-light-hover);
    border-radius: var(--radius-md);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: var(--transition);
    outline: none;
}

.med-category-select:hover {
    background-color: #f0f7ff;
    border-color: #bfdbfe;
}

.med-category-select:focus {
    background-color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

/* Buttons */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--accent);
    color: white;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    transition: var(--transition);
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.3);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit svg {
    transition: var(--transition);
}

.btn-submit:hover svg {
    transform: rotate(90deg);
}

/* Sell button distinct color */
.btn-sell {
    background-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.2);
}

.btn-sell:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 12px -2px rgba(29, 78, 216, 0.3);
}

.btn-sell:hover svg {
    transform: translateX(3px);
}

/* Button Clear/Cancel Actions */
.btn-clear-edit {
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-edit:hover {
    background-color: #e2e8f0;
    color: var(--text-primary);
}

.btn-clear-sales {
    background-color: transparent;
    border: 1px dashed var(--color-red-border);
    color: var(--color-red-text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-clear-sales:hover {
    background-color: var(--color-red-bg);
}

/* Table Card Formatting */
.table-card {
    padding: 0;
    overflow: hidden;
}

.table-header-row {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.title-section h2 {
    margin-bottom: 4px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Live Search Box */
.search-filter-box {
    position: relative;
    width: 320px;
}

.search-filter-box input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border-radius: 30px;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
    background-color: var(--bg-app);
    outline: none;
    transition: var(--transition);
}

.search-filter-box input:focus {
    background-color: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

/* Table Elements */
.table-scroll-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    flex: 1;
    min-height: 480px;
}

/* Custom Scrollbar for Wrapper */
.table-scroll-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
}

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

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

.dashboard-table {
    width: 100% !important;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-table th {
    background-color: var(--surface-hover);
    padding: 14px 24px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.dashboard-table td {
    padding: 16px 24px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.dashboard-table tbody tr {
    transition: var(--transition);
}

.dashboard-table tbody tr:hover {
    background-color: var(--surface-hover);
}

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

/* Medicine Cell Typography */
.med-title-cell {
    font-weight: 600;
    color: var(--text-primary);
}

/* Price Cells styling */
.price-display {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.price-sell {
    font-weight: 600;
    color: var(--text-primary);
}

.price-cost {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Expiry Date Layout */
.expiry-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.expiry-date-text {
    font-weight: 500;
}

/* Traffic Light Badge Classes */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid transparent;
}

/* Good State (Green) */
.badge.status-good {
    background-color: var(--color-green-bg);
    color: var(--color-green-text);
    border-color: var(--color-green-border);
}

/* Warning State (Yellow/Orange) */
.badge.status-warning {
    background-color: var(--color-yellow-bg);
    color: var(--color-yellow-text);
    border-color: var(--color-yellow-border);
}

/* Danger/Critical State (Red) */
.badge.status-danger {
    background-color: var(--color-red-bg);
    color: var(--color-red-text);
    border-color: var(--color-red-border);
    animation: alertPulseBorder 2s infinite alternate ease-in-out;
}

/* Actions Column & Buttons */
.actions-col {
    text-align: right;
    white-space: nowrap;
}

.action-buttons-wrap {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* POS UI REDESIGN */
.pos-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-auto-rows: minmax(140px, auto);
    align-content: start;
    gap: 16px;
    padding-bottom: 20px;
    height: 60vh;
    overflow-y: auto;
}

.pos-item-card {
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pos-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

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

.pos-item-card.out-of-stock {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(1);
}

.pos-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.3;
}

.pos-item-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: auto;
}

.pos-item-stock {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.cart-item {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-qty-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.btn-qty {
    background: none;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.2s;
}

.btn-qty:hover {
    background: var(--border);
}

.cart-qty-value {
    padding: 0 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-remove-item {
    color: var(--danger);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-remove-item:hover {
    opacity: 1;
}

.pos-search-header {
    position: sticky;
    top: 0;
    background: var(--bg-panel);
    z-index: 10;
    padding-bottom: 8px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action-edit {
    color: var(--primary);
}

.btn-action-edit:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light-hover);
}

.btn-action-delete {
    color: #ef4444;
}

.btn-action-delete:hover {
    background-color: var(--color-red-bg);
    border-color: var(--color-red-border);
}

/* Sales Ledger Styles */
.sales-table .sale-profit-positive {
    color: var(--accent-hover);
    font-weight: 600;
}

.sales-table .sale-profit-negative {
    color: #ef4444;
    font-weight: 600;
}

.sales-table .sale-date-cell {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(29, 78, 216, 0);
    }
}

@keyframes alertPulseBorder {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2);
    }
    100% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Fade In Row Effect */
.row-fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-primary) !important;
    margin-bottom: 1rem;
}
.dataTables_wrapper .dataTables_filter input {
    background-color: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
}
.dataTables_wrapper .dataTables_length select {
    background-color: var(--bg-app);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-primary) !important;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.25rem 0.75rem;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bg-hover) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
}
table.dataTable.no-footer {
    border-bottom: 1px solid var(--border-color);
}
table.dataTable thead th {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}
table.dataTable tbody tr {
    background-color: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
}
table.dataTable tbody tr:hover {
    background-color: var(--bg-hover) !important;
}
table.dataTable tbody td {
    border-top: none;
}

/* Supplier Cards and List Styles */
.suppliers-list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.supplier-card {
    background-color: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    cursor: pointer;
}

.supplier-card:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    box-shadow: 0 4px 6px -1px rgba(29, 78, 216, 0.1);
}

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

.supplier-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.supplier-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.supplier-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-unpaid {
    background-color: var(--color-red-bg);
    color: var(--color-red-text);
}

.status-partial {
    background-color: var(--color-yellow-bg);
    color: var(--color-yellow-text);
}

.status-paid {
    background-color: var(--color-green-bg);
    color: var(--color-green-text);
}

.supplier-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.detail-amount {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.supplier-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding: 8px;
    background-color: white;
    border-radius: var(--radius-sm);
}

.supplier-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.btn-action-small {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: white;
    cursor: pointer;
    transition: var(--transition);
}

.btn-action-small:hover {
    background-color: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-pay-small {
    background-color: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-pay-small:hover {
    background-color: var(--accent);
    color: white;
}

.btn-delete-small {
    background-color: var(--color-red-bg);
    border-color: var(--color-red-border);
    color: var(--color-red-text);
}

.btn-delete-small:hover {
    background-color: var(--color-red-text);
    color: white;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.empty-state svg {
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Modal and Receipt Styles */
.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.receipt-container {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
}

/* POS 80mm Receipt Styles */
.pos-receipt-wrap {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15);
}

.pos-receipt {
    width: 302px; /* 80mm in pixels at 96dpi */
    background: #fff;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.5;
    padding: 12px 10px;
    border: 1px dashed #ccc;
    border-radius: 4px;
}

.pos-receipt-header {
    text-align: center;
    margin-bottom: 6px;
}

.pos-receipt-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
    color: var(--primary);
}

.pos-receipt-store-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pos-receipt-store-krd {
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}

.pos-receipt-tag {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
}

.pos-receipt-sep {
    color: #aaa;
    font-size: 11px;
    text-align: center;
    margin: 6px 0;
    letter-spacing: 2px;
    overflow: hidden;
}

.pos-receipt-meta {
    margin: 6px 0;
}

.pos-receipt-meta-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #444;
    padding: 1px 0;
}

.pos-receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    margin: 4px 0;
}

.pos-receipt-table th {
    font-weight: 700;
    border-bottom: 1px solid #aaa;
    padding: 3px 2px;
    text-align: left;
}

.pos-receipt-table td {
    padding: 3px 2px;
    border-bottom: 1px dotted #ddd;
    vertical-align: top;
}

.pos-receipt-table .col-item { width: 44%; }
.pos-receipt-table .col-qty  { width: 10%; text-align: center; }
.pos-receipt-table .col-price { width: 22%; text-align: right; }
.pos-receipt-table .col-total { width: 24%; text-align: right; }

.pos-receipt-total {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 0;
    border-top: 2px solid #000;
}

.pos-receipt-footer {
    text-align: center;
    font-size: 10px;
    color: #777;
    margin-top: 4px;
    line-height: 1.8;
}

.pos-receipt-powered {
    font-size: 9px;
    color: #bbb;
}


.receipt-header {
    text-align: center;
    margin-bottom: 20px;
}

.receipt-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.receipt-header h4 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.receipt-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.receipt-divider {
    height: 1px;
    background-color: var(--border);
    margin: 16px 0;
}

.receipt-divider.dashed {
    border-top: 1px dashed var(--border);
    background: none;
}

.receipt-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.receipt-row span {
    font-weight: 500;
}

.receipt-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.receipt-row.total-row {
    font-size: 1.1rem;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.receipt-items-container {
    margin-bottom: 12px;
}

.receipt-items-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.receipt-items-table th {
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.receipt-items-table th:last-child {
    text-align: right;
}

.receipt-items-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-green-border);
    color: var(--text-secondary);
}

.receipt-items-table td:last-child {
    text-align: right;
}

.receipt-summary {
    margin-bottom: 12px;
}

.receipt-footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.receipt-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.developer-credit {
    font-size: 0.75rem !important;
    color: var(--text-muted);
}

 / *   P O S   U I   R E D E S I G N   * / 
 . p o s - i t e m s - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i l l ,   m i n m a x ( 1 6 0 p x ,   1 f r ) ) ; 
         g a p :   1 6 p x ; 
         p a d d i n g - b o t t o m :   2 0 p x ; 
         h e i g h t :   6 0 v h ; 
         o v e r f l o w - y :   a u t o ; 
 } 
 
 . p o s - i t e m - c a r d   { 
         b a c k g r o u n d :   v a r ( - - b g - a p p ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ; 
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - m d ) ; 
         p a d d i n g :   1 6 p x ; 
         c u r s o r :   p o i n t e r ; 
         t r a n s i t i o n :   a l l   0 . 2 s   e a s e ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         p o s i t i o n :   r e l a t i v e ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 
 . p o s - i t e m - c a r d : h o v e r   { 
         t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ; 
         b o x - s h a d o w :   v a r ( - - s h a d o w - m d ) ; 
         b o r d e r - c o l o r :   v a r ( - - p r i m a r y - l i g h t ) ; 
 } 
 
 . p o s - i t e m - c a r d : a c t i v e   { 
         t r a n s f o r m :   t r a n s l a t e Y ( 0 ) ; 
 } 
 
 . p o s - i t e m - c a r d . o u t - o f - s t o c k   { 
         o p a c i t y :   0 . 6 ; 
         p o i n t e r - e v e n t s :   n o n e ; 
         f i l t e r :   g r a y s c a l e ( 1 ) ; 
 } 
 
 . p o s - i t e m - n a m e   { 
         f o n t - w e i g h t :   6 0 0 ; 
         f o n t - s i z e :   0 . 9 5 r e m ; 
         m a r g i n - b o t t o m :   8 p x ; 
         c o l o r :   v a r ( - - t e x t - m a i n ) ; 
         l i n e - h e i g h t :   1 . 3 ; 
 } 
 
 . p o s - i t e m - p r i c e   { 
         f o n t - w e i g h t :   7 0 0 ; 
         c o l o r :   v a r ( - - p r i m a r y ) ; 
         f o n t - s i z e :   1 . 1 r e m ; 
         m a r g i n - t o p :   a u t o ; 
 } 
 
 . p o s - i t e m - s t o c k   { 
         f o n t - s i z e :   0 . 8 r e m ; 
         c o l o r :   v a r ( - - t e x t - s e c o n d a r y ) ; 
         m a r g i n - t o p :   4 p x ; 
 } 
 
 . c a r t - i t e m   { 
         b a c k g r o u n d :   v a r ( - - b g - p a n e l ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ; 
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - s m ) ; 
         p a d d i n g :   1 2 p x ; 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         g a p :   8 p x ; 
 } 
 
 . c a r t - i t e m - h e a d e r   { 
         d i s p l a y :   f l e x ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         a l i g n - i t e m s :   f l e x - s t a r t ; 
 } 
 
 . c a r t - i t e m - n a m e   { 
         f o n t - w e i g h t :   6 0 0 ; 
         f o n t - s i z e :   0 . 9 5 r e m ; 
         l i n e - h e i g h t :   1 . 3 ; 
 } 
 
 . c a r t - i t e m - p r i c e   { 
         f o n t - w e i g h t :   6 0 0 ; 
         c o l o r :   v a r ( - - p r i m a r y ) ; 
 } 
 
 . c a r t - i t e m - c o n t r o l s   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
 } 
 
 . c a r t - q t y - w r a p p e r   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         b a c k g r o u n d :   v a r ( - - b g - a p p ) ; 
         b o r d e r :   1 p x   s o l i d   v a r ( - - b o r d e r ) ; 
         b o r d e r - r a d i u s :   v a r ( - - r a d i u s - s m ) ; 
         o v e r f l o w :   h i d d e n ; 
 } 
 
 . b t n - q t y   { 
         b a c k g r o u n d :   n o n e ; 
         b o r d e r :   n o n e ; 
         p a d d i n g :   4 p x   1 0 p x ; 
         c u r s o r :   p o i n t e r ; 
         c o l o r :   v a r ( - - t e x t - m a i n ) ; 
         t r a n s i t i o n :   b a c k g r o u n d   0 . 2 s ; 
 } 
 
 . b t n - q t y : h o v e r   { 
         b a c k g r o u n d :   v a r ( - - b o r d e r ) ; 
 } 
 
 . c a r t - q t y - v a l u e   { 
         p a d d i n g :   0   1 2 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
         f o n t - s i z e :   0 . 9 5 r e m ; 
 } 
 
 . b t n - r e m o v e - i t e m   { 
         c o l o r :   v a r ( - - d a n g e r ) ; 
         b a c k g r o u n d :   n o n e ; 
         b o r d e r :   n o n e ; 
         p a d d i n g :   4 p x ; 
         c u r s o r :   p o i n t e r ; 
         o p a c i t y :   0 . 7 ; 
         t r a n s i t i o n :   o p a c i t y   0 . 2 s ; 
 } 
 
 . b t n - r e m o v e - i t e m : h o v e r   { 
         o p a c i t y :   1 ; 
 } 
 
 . p o s - s e a r c h - h e a d e r   { 
         p o s i t i o n :   s t i c k y ; 
         t o p :   0 ; 
         b a c k g r o u n d :   v a r ( - - b g - p a n e l ) ; 
         z - i n d e x :   1 0 ; 
         p a d d i n g - b o t t o m :   8 p x ; 
 } 
 
 
 
.btn-add-to-cart {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add-to-cart:hover:not([disabled]) {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-add-to-cart:active:not([disabled]) {
    transform: translateY(1px);
}

.btn-add-to-cart[disabled] {
    background-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Audit Log Filters */
.search-input, .dashboard-select {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: var(--bg-app);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus, .dashboard-select:focus {
    background-color: var(--bg-card);
    border-color: var(--primary);
}

.dashboard-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

/* POS Cart Scrolling */
.cart-items-list {
    max-height: 40vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}
.cart-items-list::-webkit-scrollbar-track {
    background: transparent;
}
.cart-items-list::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}
.cart-items-list::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-muted);
}
/* Utility Classes */
.print-only {
    display: none !important;
}
