html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent scrollbars during splash screen */
}

* {
    box-sizing: border-box;
}

app {
    display: block;
    height: 100%;
    width: 100%;
}

.header-logo {
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url('../images/Logo.png');
    mask: url('../images/Logo.png');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 28px;
    height: 24px;
}

/* Splash Screen Animations */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05) translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Splash Screen Styles */
.splash-screen-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: fadeInScale 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: 9999;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.splash-screen-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    /* Animation properties */
    animation: fadeInScale 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both, pulse 2s cubic-bezier(0.4, 0, 0.6, 1) 1.5s infinite;
    /* Smooth transitions for all properties */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Text Styles */
.splash-text {
    margin-bottom: 40px;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(45deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.splash-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Loading Section */
.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s both;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Hover effects for interactive feel */
.splash-screen-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Exit animation class (can be triggered via JavaScript) */
.splash-screen-container.fade-out {
    animation: fadeOut 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

.splash-screen-logo.fade-out {
    animation: fadeOut 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

/* Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 56, 56, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(13, 56, 56, 0.5);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    border: 3px solid #d4af37;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #d4af37;
    background: linear-gradient(135deg, #0d3838 0%, #1a4d4d 100%);
    color: #f0c75e;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0c75e;
}

.modal-close {
    background: transparent;
    border: 2px solid #f0c75e;
    color: #f0c75e;
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0c75e;
    color: #0d3838;
}

.modal-body {
    padding: 1.5rem 1.25rem;
}

.modal-body p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #0d3838;
}

.confirmation-details {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 1rem;
    border: 2px solid #1a4d4d;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #0d3838;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.detail-value {
    font-weight: 600;
    color: #0d3838;
}

.total-detail {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid #1a4d4d;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(135deg, #0d3838 0%, #1a4d4d 100%);
    color: #f0c75e;
    padding: 0.75rem;
    border-radius: 4px;
    margin: 0.5rem -1rem -1rem -1rem;
}

.total-detail span {
    color: #f0c75e !important;
}

.total-detail .detail-value {
    color: #f0c75e !important;
    font-size: 1.3rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 2px solid #e0e0e0;
    background: #fafafa;
}

.btn-modal {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modal-cancel {
    background: #757575;
    color: white;
}

.btn-modal-cancel:hover {
    background: #616161;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-modal-confirm {
    background: linear-gradient(135deg, #1a4d4d 0%, #0d3838 100%);
    color: #f0c75e;
    border: 2px solid #d4af37;
}

.btn-modal-confirm:hover {
    background: linear-gradient(135deg, #0d3838 0%, #1a4d4d 100%);
    box-shadow: 0 3px 12px rgba(13, 56, 56, 0.5);
}

/* Print Invoice Option */
.print-option {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
}

.print-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #0d3838;
    user-select: none;
}

.print-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #1a4d4d;
}

.print-checkbox span {
    font-weight: 500;
}

/* Success Modal */
.success-modal {
    max-width: 450px;
}

.success-header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

.success-header h3 {
    color: white !important;
}

.success-header .modal-close {
    border-color: white;
    color: white;
}

.success-header .modal-close:hover {
    background: white;
    color: #2e7d32;
}

.success-details {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.success-details h4 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: #0d3838;
}

.success-info {
    background: #f9f9f9;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    border: 2px solid #1a4d4d;
}

.btn-modal-print {
    background: #d4af37;
    color: #0d3838;
    font-weight: 700;
}

.btn-modal-print:hover {
    background: #c29d2f;
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
}

/* Cash Payment Section in Modal */
.cash-payment-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 6px;
    border: 2px solid #1a4d4d;
}

.cash-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #0d3838;
    margin-bottom: 0.5rem;
}

.cash-modal-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #1a4d4d;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: right;
    transition: all 0.2s;
}

.cash-modal-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.change-display {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 4px;
    border: 2px solid #2e7d32;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.change-display.insufficient {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #c62828;
}

.change-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1b5e20;
}

.change-display.insufficient .change-label {
    color: #b71c1c;
}

.change-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1b5e20;
}

.change-display.insufficient .change-amount {
    color: #b71c1c;
}

.insufficient-warning {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #ffcdd2;
    color: #b71c1c;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #c62828;
    animation: pulse 1s ease-in-out infinite;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .splash-screen-container,
    .splash-screen-logo,
    .splash-text,
    .loading-section {
        animation: none;
        transition: none;
    }

        .splash-screen-logo:hover {
            transform: none;
        }

    .loading-spinner {
        animation: none;
    }
}

/* Restore scrolling after splash screen is gone */
body.splash-hidden {
    overflow: auto;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

.xaf-navmenu a .xaf-nav-link {
    text-decoration: revert !important;
}

.dxbl-grid-command-cell .dxbl-btn-link > span {
    text-decoration: revert !important;
}

/* Point of Sale Styles */
.pos-container {
    display: flex;
    flex-direction: column;
    height: 93dvh;
    width: 100%;
    overflow: hidden;
}

.pos-content {
    display: flex;
    flex-direction: row;
    flex: 1;
    overflow: hidden;
    width: 100%;
    gap: 0;
    height: 100%; /* Take full height */
}

.pos-header {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0d3838 0%, #1a4d4d 100%);
    color: #f0c75e;
    flex-shrink: 0;
    border-bottom: 3px solid #d4af37;
}

.pos-header h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.3rem;
    color: #f0c75e;
}

.pos-info {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: #f0c75e;
}

.pos-info span {
    color: #f0c75e;
}

.pos-left-panel {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #f5f5f5;
    overflow: hidden;
    min-width: 0;
    flex: 1; /* Take remaining space */
}

.search-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.search-input {
    flex: 2;
    padding: 0.6rem;
    border: 2px solid #1a4d4d;
    border-radius: 4px;
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.category-filter,
.warehouse-filter {
    flex: 1;
    padding: 0.6rem;
    border: 2px solid #1a4d4d;
    border-radius: 4px;
    font-size: 0.95rem;
}

.category-filter:focus,
.warehouse-filter:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    overflow-y: auto;
    padding: 0.25rem;
    height: 100%;
}

.product-card {
    background: white;
    border-radius: 6px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e0e0e0;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(13, 56, 56, 0.3);
    border-color: #1a4d4d;
}

.product-card.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

.product-header {
    flex-shrink: 0;
}

.product-header h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #0d3838;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.2rem;
    max-height: 2.2rem;
}

.product-code {
    font-size: 0.72rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.product-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-price {
    font-size: 1.05rem;
    font-weight: bold;
    color: #006400;
    flex-shrink: 0;
}

.product-stock-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    flex-shrink: 0;
}

.product-stock {
    font-size: 0.75rem;
    white-space: nowrap;
}

.product-reserved {
    font-size: 0.7rem;
    color: #666;
    white-space: nowrap;
}

.in-stock {
    color: #2e7d32;
    font-weight: bold;
}

.no-stock {
    color: #c62828;
    font-weight: bold;
}

.reserved-stock {
    color: #d4af37;
    font-weight: 600;
}

.stock-warning {
    margin-top: 0.5rem;
    padding: 0.25rem;
    background: #ffebee;
    color: #c62828;
    text-align: center;
    border-radius: 4px;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Right Panel - Cart */
.pos-right-panel {
    display: flex;
    flex-direction: column;
    background: white;
    border-left: 3px solid #1a4d4d;
    overflow: hidden;
    width: 600px; /* Fixed width for cart panel */
    flex-shrink: 0; /* Prevent shrinking */
}

/* Collapsible Sections */
.collapsible-section {
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
    background: white;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: linear-gradient(135deg, #1a4d4d 0%, #0d3838 100%);
    color: #f0c75e;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, #0d3838 0%, #1a4d4d 100%);
}

.collapsible-title {
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.collapsible-badge {
    background: #d4af37;
    color: #0d3838;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.collapsible-icon {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.collapsible-icon.expanded {
    transform: rotate(180deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f9f9f9;
}

.collapsible-content.expanded {
    max-height: 300px;
    transition: max-height 0.3s ease-in;
}

.collapsible-body {
    padding: 0.75rem;
}

.customer-select {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #1a4d4d;
    border-radius: 4px;
    font-size: 0.9rem;
}

.customer-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Total Payable Section - Always Visible */
.total-payable-section {
    background: white;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
}

/* Summary rows inside collapsible */
.collapsible-body .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.collapsible-body .summary-value {
    font-weight: 600;
    color: #0d3838;
    font-size: 0.85rem;
}

.collapsible-body .discount-input {
    width: 90px;
    padding: 0.3rem;
    border: 2px solid #1a4d4d;
    border-radius: 3px;
    text-align: right;
    font-size: 0.85rem;
    height: 24px;
}

.collapsible-body .discount-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.collapsible-body .notes-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #1a4d4d;
    border-radius: 3px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.85rem;
    min-height: 60px;
}

.collapsible-body .notes-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.customer-section {
    padding: 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
    background: #f9f9f9;
}

.customer-section label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0d3838;
}

.customer-select {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #1a4d4d;
    border-radius: 4px;
    font-size: 0.9rem;
}

.customer-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Cart Section - Scrollable */
.cart-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-bottom: 2px solid #e0e0e0;
    min-height: 0;
}

.cart-section h3 {
    margin: 0;
    padding: 0.6rem 0.75rem 0.3rem 0.75rem;
    font-size: 1rem;
    color: #0d3838;
    flex-shrink: 0;
    background: #f9f9f9;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.75rem 0.6rem 0.75rem;
    min-height: 0;
}

.cart-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    border: 2px solid #e0e0e0;
}

.cart-item-info {
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: space-between
}

.item-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #0d3838;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.item-code {
    font-size: 0.75rem;
    color: #666;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 2px solid #1a4d4d;
    background: white;
    color: #1a4d4d;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.qty-btn:hover {
    background: #1a4d4d;
    color: #f0c75e;
    border-color: #1a4d4d;
}

.qty-input {
    width: 45px;
    padding: 0.3rem;
    text-align: center;
    border: 2px solid #1a4d4d;
    border-radius: 3px;
    font-size: 0.85rem;
    height: 24px;
}

.item-price {
    font-size: 0.8rem;
    color: #006400;
    min-width: 50px;
    font-weight: 600;
}

.item-total {
    font-size: 0.9rem;
    font-weight: bold;
    color: #d4af37;
    min-width: 70px;
    text-align: right;
    margin-left: auto;
}

.remove-btn {
    width: 24px;
    height: 24px;
    border: 2px solid #c62828;
    background: white;
    color: #c62828;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.remove-btn:hover {
    background: #c62828;
    color: white;
}

.empty-cart {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    padding: 1.5rem 0.75rem;
}

.empty-cart p {
    margin: 0.2rem 0;
    font-size: 0.9rem;
}

.empty-cart-hint {
    font-size: 0.8rem;
}

/* Cart Summary - Fixed Position */
.cart-summary {
    padding: 0.6rem 0.75rem;
    background: #fafafa;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.summary-value {
    font-weight: 600;
    color: #0d3838;
    font-size: 0.85rem;
}

.discount-input {
    width: 90px;
    padding: 0.3rem;
    border: 2px solid #1a4d4d;
    border-radius: 3px;
    text-align: right;
    font-size: 0.85rem;
    height: 24px;
}

.discount-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.total-row {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid #ddd;
    font-size: 1.05rem;
    font-weight: bold;
}

.total-value {
    font-size: 1.25rem;
    color: #d4af37;
}

/* Enhanced Total Payable Styling - NDTC Colors */
.total-payable {
    background: linear-gradient(135deg, #0d3838 0%, #1a4d4d 100%);
    color: #f0c75e !important;
    padding: 0.75rem !important;
    margin: 0.5rem -0.75rem !important;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(13, 56, 56, 0.4);
    border: 2px solid #d4af37;
}

.total-payable-label {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    color: #f0c75e !important;
}

.total-payable-value {
    font-size: 2rem !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: #f0c75e !important;
}

/* Cash Provided Row */
.cash-provided-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid #ddd;
}

.cash-provided-input {
    width: 120px;
    padding: 0.5rem;
    border: 2px solid #1a4d4d;
    border-radius: 4px;
    text-align: right;
    font-size: 1.1rem;
    font-weight: 600;
    height: auto;
}

.cash-provided-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Change Row */
.change-row {
    margin-top: 0.5rem;
    padding: 0.65rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 4px;
    border: 2px solid #2e7d32;
    font-size: 1.1rem;
    font-weight: bold;
}

.change-row.insufficient-cash {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #c62828;
}

.change-label {
    font-size: 1.1rem;
    color: #1b5e20;
}

.change-row.insufficient-cash .change-label {
    color: #b71c1c;
}

.change-value {
    font-size: 1.4rem;
    color: #1b5e20;
}

.change-row.insufficient-cash .change-value {
    color: #b71c1c;
}

/* Insufficient Cash Message */
.insufficient-cash-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #ffcdd2;
    color: #b71c1c;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    animation: pulse 1s ease-in-out infinite;
    border: 2px solid #c62828;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Notes Section */
.notes-section {
    padding: 0.6rem 0.75rem;
    border-bottom: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.notes-input {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #1a4d4d;
    border-radius: 3px;
    resize: none;
    font-family: inherit;
    font-size: 0.85rem;
}

.notes-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Action Buttons - NDTC Colors */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    flex-shrink: 0;
}

.btn {
    flex: 1;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-clear {
    background: #757575 !important;
    color: white !important;
}

.btn-clear:hover:not(:disabled) {
    background: #616161 !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.btn-hold {
    background: #d4af37 !important;
    color: #0d3838 !important;
    font-weight: 700;
}

.btn-hold:hover:not(:disabled) {
    background: #c29d2f !important;
    box-shadow: 0 3px 8px rgba(212, 175, 55, 0.4);
}

.btn-checkout {
    background: #1a4d4d !important;
    color: #f0c75e !important;
    font-weight: 700;
}

.btn-checkout:hover:not(:disabled) {
    background: #0d3838 !important;
    box-shadow: 0 3px 8px rgba(13, 56, 56, 0.5);
}

/* Status Messages */
.status-message {
    margin: 0 0.75rem 0.6rem 0.75rem;
    padding: 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    text-align: center;
    flex-shrink: 0;
}

.status-message.success {
    background: #e8f5e9;
    color: #1b5e20;
    border: 2px solid #2e7d32;
}

.status-message.error {
    background: #ffebee;
    color: #b71c1c;
    border: 2px solid #c62828;
}

.status-message.info {
    background: #e3f2fd;
    color: #0d47a1;
    border: 2px solid #1976d2;
}

/* Floating Status Messages */
.floating-message {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out, fadeOut 0.3s ease-in 2.7s;
    font-size: 1rem;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.floating-message.success {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: 3px solid #2e7d32;
}

.floating-message.error {
    background: linear-gradient(135deg, #f44336 0%, #e57373 100%);
    color: white;
    border: 3px solid #c62828;
}

.floating-message.info {
    background: linear-gradient(135deg, #2196f3 0%, #64b5f6 100%);
    color: white;
    border: 3px solid #1976d2;
}

.message-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
}

/* Barcode Scan Indicator */
