
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    padding: 0;
    margin: 0;
}

    *:before, *:after {
        box-sizing: border-box;
    }

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: 0.8rem;
    margin-top: 7px;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.auth-form {
    width: 100%;
}

.selected-row {
    background-color: #1976d2 !important;
    color: white !important;
}

    .selected-row:hover {
        background-color: #1565c0 !important;
    }

    /* Ensure selected row text is visible */
    .selected-row td {
        color: white !important;
    }

.grid-container:focus {
    outline: 2px solid #1976d2;
    outline-offset: -2px;
}

/*Process Sales*/
.pos-container {
    color: #ffffff;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    contain: layout style paint;
    -webkit-overflow-scrolling: touch;
}

/* Header Section */
.pos-header {
    background-color: #1B2937;
    padding: 10px 16px;
    border-bottom: 1px solid #1B2937;
    flex-shrink: 0;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
    gap: 20px;
    flex-wrap: wrap;
}

/* Header Logo Section (Left) */
.header-logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.header-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.header-logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}


/* Header Info Section (Right) */
.header-info-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.date-time-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.date-display {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.time-display {
    font-size: 12px;
    color: #e0e0e0;
}

.salesperson-selector {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.salesperson-label {
    font-size: 11px;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.salesperson-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 32px;
}

    .salesperson-dropdown:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

.salesperson-name {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.salesperson-dropdown i {
    font-size: 10px;
    color: #e0e0e0;
}

.search-box {
    position: relative;
}

.search-icon,
.search-icon-right {
    position: absolute;
    color: #6c757d;
    font-size: 14px;
    z-index: 2;
    pointer-events: auto;
    transition: color 0.2s ease;
}


.icon-title {
    font-size: 12px;
    font-weight: 400;
}

.search-input::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}
    .action-buttons .btn-customer-action{
        width:calc(100% / 3 - 10px);
    }
    .btn-action-blue {
        background-color: #1B2937;
        border: none;
        color: #ffffff;
        border: 1px solid #f2f2f2;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        touch-action: manipulation;
        white-space: nowrap;
        min-height: 36px;
    }

    .btn-action-blue:hover {
        background-color: #1B2937;
    }



/* Main Content */
.pos-main-content {
    display: flex;
    flex: 1;
    flex-direction: row;
    max-width: 100%;
    margin: 0;
    padding: 10px 16px;
    gap: 15px;
    overflow: hidden;
    min-height: 0;
    background: #223444;
}

/* Left Column - Customer Info and Sales List */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    order: 1;
}

/* Customer Info Section */
.customer-info-section {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    justify-content:space-between;
}

.header-item-scan-section .search-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-box input {
    font-size: 12px;
    border: 1px solid #d2d2d2;
    background: #fff;
    height: 36px;
    padding: 8px 50px 8px 10px;
    border-radius: 4px;
    width: 100%;
}

.header-item-scan-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.section-title {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.btn-customer-action {
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000;
    font-size: 12px;
    background-color: rgba(242, 242, 242, 0.6);
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    gap: 6px;
}

    .btn-customer-action svg {
        width: 14px;
        height: 14px;
    }

.header-item-scan-section .action-buttons {
    display: flex;
    gap: 8px;       
    flex-wrap: nowrap; 
    align-items: center;
}

    .header-item-scan-section .action-buttons button {
        background: rgba(51,78,102,1); 
        color: #f4f5f7;
        border: 1px solid rgba(242, 242, 242, 0.6);
    }

        .header-item-scan-section .action-buttons button:hover {
            background: rgba(51,78,102,0.5);
        }

.search-icon {
    background: #7699BC;
    height: 36px;
    padding: 8px 12px;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 4px;
}

.customer-info-section .search-box {
    background: #ffffff;
}


.customer-info-section .section-title {
    color: #000;
}

.customer-info-section .search-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: calc(100% - 120px);
}

.customer-info-section .search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    width: calc(100% - 620px);

}


.sales-list-section {
    flex: 1;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #1B2937;
    min-height: 0;
}

.items-table-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #bdc3c7;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-weight: normal;
    min-width: 800px;
}

    .items-table th {
        background-color: #e6e6e6;
        color: #0d0d0d;
        padding: 4px 8px;
        font-size: 12px;
        text-align: left;
        font-weight: 500;
        border-bottom: 1px solid #bdc3c7;
        position: sticky;
        top: 0;
        z-index: 10;
        white-space: nowrap;
    }

    .items-table td {
        padding: 4px 8px;
        border-bottom: 1px solid #e6e6e6;
        color: #0d0d0d;
        font-size: 12px;
        font-weight: normal;
    }

    .items-table tbody tr:hover {
        background-color: #f8f9fa;
    }

    .items-table tbody tr.discounted-item {
        background-color: #e8f4fd;
    }

.item-description {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discount-label {
    background-color: #e74c3c;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    width: fit-content;
}

.empty-cart {
    text-align: center;
    padding: 30px;
    color: #7f8c8d;
    font-style: italic;
}
/* Right Sidebar */
.pos-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #223444;
    order: 2;
}

.totals-section {
    background-color: #436689;
    border-radius: 0px;
    padding: 12px;
    color: #fff;
}

.totals-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 12px;
    color: #fff;
}

.sale-total-container {
    border-top: 1px solid #ffff;
    padding-top: 10px;
    color: #fff;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 12px;
}


.sale-total-amount {
    text-align: right;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0px 0px 20px;
}

.quote-buttons-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.btn-tender {
    background: rgba(77, 144, 120, 1);
    border: none;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px;
    touch-action: manipulation;
    display:inline-flex;
    gap:10px;
    align-items:center;
    justify-content:center;
    line-height:1;
}

    .btn-tender svg {
        width: 12px;
    }

    .btn-tender:hover:not(:disabled) {
        background: rgba(77, 144, 120, 0.75);
        transform: translateY(-1px);
    }

    .btn-tender:disabled {
        background: rgba(77, 144, 120, 0.5);
        cursor: not-allowed;
    }

.btn-sidebar-secondary {
    background: rgba(51, 78, 102, 0.7);
    border: 2px solid #7699bc;
    color: #efefef;
    padding: 4px 25px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
}

    .btn-sidebar-secondary .icon-section .icon-title {
        font-size: 10px;
    }

    .btn-sidebar-secondary .icon-section svg {
        width: 12px;
        height: 12px;
    }

    .btn-sidebar-secondary:hover {
        background-color: rgba(46,71,92, 0.5);
    }


.quote-buttons-row .btn-sidebar-secondary {
    flex: 1;
}

.btn-sidebar-help {
    background: rgba(223, 159, 32, 0.08);
    border: 1px solid #DF9F20;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    min-height: 40px;
}

    .btn-sidebar-help:hover {
        background: rgba(223, 159, 32, 0.05);
    }


    .btn-sidebar-help small {
        font-size: 10px;
        opacity: 0.9;
        margin-left: auto;
    }
/* Bottom Action Buttons */
.bottom-actions {
    background-color: #1B2937;
    padding: 10px 16px;
    border-top: 1px solid #1B2937;
    flex-shrink: 0;
}

button:focus {
    outline: 0;
    outline-offset: 0;
}

.action-grid {
    width: 98vw;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    padding-right: 5px;
}

    .action-grid button {
        gap: 6px;
        text-align: left;
        color: #f4f5f7;
        font-size: 12px;
        color: #ffffff;
        padding: 8px 15px;
        border-radius: 8px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        flex-direction: column;
        background: rgba(27,41,55, 1 );
        border: 1px solid transparent;
    }

.icon-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

    .icon-section svg {
        width: 14px;
        height: 14px;
    }

    .icon-section .icon-title {
        font-size: 10px;
    }

.action-grid .btn-action-green {
    border: 1px solid #47856f;
    background: rgba(77, 144, 120, 0.1);
}

.action-grid .btn-action-yellow {
    border: 1px solid #DF9F20;
    background: rgba(223, 159, 32, 0.08);
}

.action-grid .btn-action-red {
    border: 1px solid #BF5A64;
    background: rgba(248, 68, 86, 0.08);
}

.action-grid .btn-action-blue {
    border: 1px solid #7699bc;
    background: rgba(34, 51, 68, 0.2);
}



.btn-action-green i {
    font-size: 16px;
    color: #27ae60;
}

.btn-action-yellow i {
    font-size: 16px;
    color: #DF9F20;
}

.btn-action-red i {
    font-size: 16px;
    color: #e74c3c;
}

.bottom-actions .btn-action-blue i {
    font-size: 16px;
    color: #3498db;
}
/* Status Messages */
.status-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 18px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

    .status-message.success {
        background-color: #27ae60;
        color: #ffffff;
        border-left: 4px solid #2ecc71;
    }

    .status-message.error {
        background-color: #e74c3c;
        color: #ffffff;
        border-left: 4px solid #c0392b;
    }

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    min-height: 24px;
    min-width: 24px;
}

    .close-btn:hover {
        opacity: 0.8;
    }
/* Scrollbar Styling */
.items-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.items-table-container::-webkit-scrollbar-track {
    background: #ecf0f1;
    border-radius: 4px;
}

.items-table-container::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

    .items-table-container::-webkit-scrollbar-thumb:hover {
        background: #95a5a6;
    }
/* Large Desktop (1920px and above) */
@media (min-width: 1920px) {
    .header-logo-img {
        height: 60px;
    }



    .items-table {
        font-size: 13px;
    }

    .action-grid {
        max-width: 1400px;
        gap: 12px;
    }
}
/* Desktop (1200px to 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .header-logo-img {
        height: 50px;
    }
}
/* Laptop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .header-logo-img {
        height: 45px;
    }


    .items-table {
        font-size: 11px;
    }

    .action-grid {
        gap: 8px;
    }
}
/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {

    .header-row {
        gap: 15px;
        flex-wrap: nowrap
    }

    .header-item-scan-section .action-buttons button {
        padding: 8px 12px;
    }

    .header-logo-img {
        height: 40px;
    }

    .date-display {
        font-size: 12px;
    }

    .pos-main-content {
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .pos-sidebar {
        width: 100%;
        flex-direction: row;
        gap: 12px;
    }

    .totals-section {
        flex: 1;
    }

    .sidebar-actions {
        flex: 0 0 250px;
    }

    .action-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 8px;
    }

    .items-table {
        font-size: 11px;
    }
}
/* Tablet Portrait (600px to 767px) */
@media (min-width: 600px) and (max-width: 767px) {



    .header-row {
        flex-direction: column;
        gap: 12px;
    }

    .header-logo-img {
        height: 38px;
    }



    .search-box {
        max-width: 100%;
    }

    .action-buttons {
        flex-direction: row;
        justify-content: space-between;
    }

    .pos-main-content {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }



    .pos-sidebar {
        width: 100%;
        flex-direction: column;
    }

    .action-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 8px;
    }
}
/* Mobile Landscape (480px to 599px) */
@media (min-width: 480px) and (max-width: 599px) {



    .header-row {
        flex-direction: column;
        gap: 10px;
    }

    .header-logo-img {
        height: 35px;
    }

    /*.action-buttons {
    flex-direction: column;
    gap: 6px;
}*/

    .btn-action-blue,
    .btn-customer-action {
        width: 100%;
        justify-content: center;
    }

    .pos-main-content {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }



    .items-table {
        font-size: 10px;
        min-width: 600px;
    }



    .pos-sidebar {
        width: 100%;
    }

    .totals-section {
        padding: 10px;
    }

    .total-line {
        font-size: 10px;
    }

    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 6px;
    }
}




/* Focus states for accessibility */


.search-input:focus {
    outline: none;
}
/* Print styles */
@media print {
    .pos-container {
        background-color: white;
        color: black;
    }

    .bottom-actions {
        display: none;
    }

    .pos-header,
    .sidebar-actions {
        display: none;
    }
}
/* Clickable rows */
.items-table tbody .data-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}
    /* Hover */
    .items-table tbody .data-row:hover > td {
        background-color: #f8f9fa;
    }
    /* Discounted item */
    .items-table tbody .data-row.discounted-item > td {
        background-color: #e8f4fd;
    }
    /* Selected row (HIGHEST PRIORITY) */
    .items-table tbody .data-row.selected > td {
        background-color: #dde6ee;
        color: #0d0d0d;
    }

@media(min-width:990px) and (max-width:1024px) {
    .customer-info-section .section-title {
        min-width: 100px;
    }
    .customer-info-section,
    .customer-info-section .search-container {
        flex-direction: column;
        width: 100%;
    }
    .action-buttons,
    .customer-info-section .search-box {
        width: 100%;
    }
}

@media(min-width:1025px) {
    .header-row {
        justify-content: space-between;
    }

    .header-item-scan-section {
        width: 420px;
    }

    .left-column {
        width: calc(100% - 350px);
    }
}

@media(max-width:1023px) {
    .customer-info-section .section-title {
        min-width: 100px;
    }

    .customer-info-section .search-container {
        flex-direction: column;
        width: 100%;
    }

    .customer-info-section .search-box {
        width: 100%;
    }
}

@media(max-width:640px) {
    .customer-info-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-info-section {
        flex-direction: row;
        align-items: center;
    }
}

/* Mobile Portrait (up to 479px) */
@media (max-width: 479px) {



    .header-row {
        flex-direction: column;
        gap: 8px;
    }

    .header-logo-img {
        height: 32px;
    }


    .date-display {
        font-size: 11px;
    }

    .salesperson-name {
        font-size: 11px;
    }



    .search-box {
        max-width: 100%;
        min-width: 100%;
    }

    .search-input {
        padding: 8px 32px 8px 10px;
        font-size: 12px;
    }

    .action-buttons {
        gap: 5px;
    }

    .left-column .search-container .action-buttons {
        flex-direction: row;
    }

        .left-column .search-container .action-buttons button {
            width: calc(100% / 3 - 6px);
        }

    .pos-main-content {
        flex-direction: column;
        padding: 6px;
        gap: 6px;
    }


    .customer-info-section .action-buttons {
        flex-direction: column;
        width: 100%;
    }



    .items-table {
        font-size: 9px;
        min-width: 550px;
    }

        .items-table th,
        .items-table td {
            padding: 6px 3px;
        }

    .empty-cart {
        padding: 20px;
        font-size: 12px;
    }

    .pos-sidebar {
        width: 100%;
        gap: 8px;
    }

    .totals-section {
        padding: 8px;
    }

    .total-line {
        font-size: 10px;
    }

    .sale-total-label,
    .sale-total-amount {
        font-size: 11px;
    }



    .btn-sidebar-secondary,
    .btn-sidebar-help {
        padding: 8px 10px;
        font-size: 11px;
        min-height: 38px;
    }



    .action-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 5px;
    }

    .status-message {
        top: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 14px;
        font-size: 12px;
    }
}

/*Keyboard Shortcut Dialog */
/* FIXED DIALOG HEIGHT */
/*.fixed-dialog {
    height: 550px !important;
    max-height: 550px !important;
}*/

/* FULL HEIGHT LAYOUT */
/*.command-lookup-dialog .mud-dialog-content {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    overflow: hidden !important;
}
.command-grid .mud-table-container {
    overflow-y: auto !important;
}*/
/* BODY */
/*.dialog-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}*/

/* HEADER FIXED */
/*.dialog-header-fixed {
    flex-shrink: 0;
    padding-bottom: 12px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}*/

/* GRID SCROLL AREA */
/*.result-section {
    flex: 1;
    min-height: 0;
    display: flex;
    width: 100%;
}*/

/* GRID SCROLL */
/*.command-grid {
    height: 100%;
    overflow-y: auto;
    width: 100% !important;
}*/

/* SELECTED ROW */
/*.selected-row {
    background-color: #e3f2fd !important;
}

    .selected-row td {
        border-left: 4px solid #1e88e5;
    }*/

/* SHORTCUT STYLE */
/*.shortcut-chip {
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid #ddd;
}*/