@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
    /* Color Palette */
    --color-primary: #0A7FAA;
    --color-success: #4CAF50;
    --color-success-hover: #45a049;
    --color-danger: #de3a2e;
    --color-white: #fff;

    /* Neutral Colors */
    --color-gray-50: #f8f8f8;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #f1f1f1;
    --color-gray-300: #eee;
    --color-gray-400: #e0e0e0;
    --color-gray-500: #ddd;
    --color-gray-600: #ccc;
    --color-gray-700: #777;
    --color-gray-800: #666;
    --color-gray-900: #555;
    --color-gray-950: #333;

    /* Semantic Colors */
    --color-text-primary: var(--color-gray-950);
    --color-text-secondary: var(--color-gray-900);
    --color-text-tertiary: var(--color-gray-800);
    --color-text-muted: rgba(0, 0, 0, 0.6);
    --color-border: var(--color-gray-500);
    --color-border-light: var(--color-gray-300);

    /* Background Colors */
    --bg-body: linear-gradient(180deg, rgba(212, 243, 255, 1) 0%, rgba(252, 254, 255, 1) 100%);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-overlay-light: rgba(255, 255, 255, 0.2);
    --bg-toast: #333;

    /* Spacing Scale */
    --space-1: 6px;
    --space-2: 8px;
    --space-3: 10px;
    --space-4: 12px;
    --space-5: 14px;
    --space-6: 16px;
    --space-7: 18px;
    --space-8: 20px;
    --space-9: 24px;

    /* Typography */
    --font-family: "Lexend Deca", sans-serif;
    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 16px;
    --font-size-lg: 24px;
    --font-size-xl: 48px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 17px;
    --radius-xl: 40px;
    --radius-full: 50px;

    /* Transitions */
    --transition-faster: 0.1s;
    --transition-fast: 0.2s;
    --transition-smooth: 0.5s ease-in-out;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-card: 10px 10px 28px -7px rgba(0, 0, 0, 0.12);
}

/* ========================================
   BASE STYLES
   ======================================== */
html {
    background: linear-gradient(to top left, #cff3ff, white);
;
    background: var(--bg-body);
    background-attachment: fixed;
    min-height: 100%;
}

[data-hide-landing] #landingPage {
    display: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-weight: var(--font-weight-normal);
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    touch-action: manipulation;
    height: 100vh;
    overflow: hidden;
}

/* Remove spinner from number inputs */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    appearance: textfield;
}

input[type=checkbox] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 3px solid #0A7FAA;
    background: white;
    margin: 4px;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast);
    display: none;
}

input[type=checkbox]:checked {
    background: #0A7FAA;
    border: #0A7FAA;
}

input[type=checkbox]:active,
input[type=checkbox]:hover,
input[type=checkbox]:visited,
input[type=checkbox]:focus {
    border: #0A7FAA 3px solid;
}

.edit-mode-active input[type=checkbox] {
    display: block;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid black;
    background-color: var(--color-white);
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    background-color: var(--color-white);
    cursor: pointer;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h2 {
    margin-bottom: var(--space-8);
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
}

h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    font-weight: 1000;
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #0A7FAA 0%, #1E8FB0 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-9);
    margin: 115px 20px var(--space-6) 20px;
    box-shadow: var(--shadow-lg);
}

h4 {
    color: var(--color-primary);
    margin: var(--space-6) var(--space-8) 0;
    font-size: var(--font-size-lg);
    padding: 0;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

/* Tab Navigation */
.tab .tablinks span{
    display: block;
    text-align: center;
    color: var(--primary-blue)!important;
}

.tab {
    overflow: hidden;
    background-color: #ffffff;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
}

.tablinks {
    flex: 1;              
  text-align: center;
  padding: 10px 0;
  min-width: 0;
  font-size: 10px;
  color: #0A7FAA;
}

.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: var(--space-5) var(--space-6);
    transition: var(--transition-fast);
}

.tab button:hover {
    background-color: #d6f4ff;
}

.tab button.active {
    background-color: #98e3ff;
}

.tabcontent {
    display: none;
    padding: 0;
    margin: 0;
    border-top: none;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

/* ========================================
   FORM COMPONENTS
   ======================================== */
.form-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000;
    padding: var(--space-9);
}

.form-container.active {
    display: block;
    background: linear-gradient(to top left, #cff3ff, white);
}

.form-group {
    margin-bottom: var(--space-6);
}

label {
    display: block;
    margin-bottom: var(--space-1);
    color: #0A7FAA;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-success);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */
button {
    padding: var(--space-3) var(--space-8);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.button-group {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-9);
}

.btn-clear {
    background: var(--color-gray-100);
    color: var(--color-text-tertiary);
    flex: 1;
}

.btn-clear:hover {
    background: var(--color-gray-400);
}

.btn-confirm {
    background: var(--color-success);
    color: var(--color-white);
    flex: 1;
}

.btn-confirm:hover {
    background: var(--color-success-hover);
}

.btn-confirm-red {
    background: var(--color-danger);
    color: var(--color-white);
    flex: 1;
}

.btn-confirm-red:hover {
    background: var(--color-danger);
}

.demo-button {
    padding: var(--space-4) var(--space-9);
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-md);
    cursor: pointer;
    margin-bottom: var(--space-8);
}

.demo-button:hover {
    background: #1976D2;
}

/* ========================================
   TABLE COMPONENTS
   ======================================== */

.tableContainer {
     display: block;
    height: 67vh;
    margin: var(--space-7);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
    transition: var(--transition-fast);
    background-color: white;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 25px;
    padding-top: 0px;
    color: #0A7FAA;
}

#inventoryList th {
    text-align: left;
    font-size: 14px;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

#inventory{
    padding-top: 40px;
}


#inventoryList {
    margin: 0;
    padding: 0;
    width: 100%;
}

#inventoryList td,
#inventoryList th {
    padding: var(--space-1) 0;
    padding-right: 15px;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--space-2);
    font-size: 13px;
}

.inventory-table th,
.inventory-table td {
    padding: var(--space-2);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.inventory-table th {
    background: #0A7FAA;
    font-weight: var(--font-weight-semibold);
    color: white;
}

.inventoryCheckbox {
    width: min-content;
}

#inventoryList th:nth-child(1), #inventoryList td:nth-child(1) {
    padding-left: 10px;
}

#inventoryList th:nth-child(2), #inventoryList td:nth-child(2) {
    width: 160px;
    min-width: 67px;
    max-width: 90px;
}

#inventoryList th:nth-child(3), #inventoryList td:nth-child(3) {
    width: 160px;
    max-width: 80px;
}

/* ========================================
   PRODUCT & INVENTORY COMPONENTS
   ======================================== */
.product-name {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-bold);
    display: block;
    width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.product-sku {
    font-size: var(--font-size-sm);
    display: block;
}

/* Inventory Action Bar */
#inventoryActionBarParent {
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 50px;
    left: 0;
    width: 100%;
}

#inventoryAdd {
    border-radius:100%;
    margin-left: 20px;
    background-color:#0A7FAA;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #ffffff;
}

.inventoryTable{
    width: 100%;
    height: 50px;
    align-items: center;
    margin-top: 20px;
    display: flex;
    color: var(--color-primary);
    font-size: large;

}

.inventoryTableText {
    padding-left: 10px;
    flex: 1;
}

.inventoryEdit {
        margin-right: 20px;
        border-radius: var(--radius-lg);
        background-color: #0A7FAA;
        color: white;
}

#inventoryActionBar {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-1) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-6);
    z-index: 1000;
    border-radius: var(--radius-md);
    position: relative;
}

#inventoryActionBar button {
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: var(--space-2);
    display: flex;
    align-items: center;
    border-radius: 100px;
    text-align: center;
    transition: all var(--transition-fast);
}

#inventoryActionBar button:hover {
    background: var(--bg-overlay-light);
}

/* Overflow Menu */
#overflowMenu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-bottom: 5px;
    background: var(--color-primary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    z-index: 1000;
}

#overflowMenu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: var(--space-2) var(--space-4);
    border: none;
    background: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
    border-radius: 0;
}

#overflowMenu button:hover {
    background-color: var(--bg-overlay-light);
}

#overflowMenu button .material-symbols-outlined {
    vertical-align: middle;
    margin-right: var(--space-2);
}

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
#toast-parent {
    display: flex;
    align-items: center;
    justify-content: center;
}

#toast {
    min-width: 250px;
    background-color: var(--bg-toast);
    color: var(--color-white);
    text-align: center;
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-5);
    position: fixed;
    z-index: 9999;
    bottom: 30px;
    font-size: var(--font-size-sm);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#toast #header {
    font-weight: var(--font-weight-bold);
    display: block;
}

#toast #message {
    font-size: var(--font-size-xs);
    display: block;
}

/* ========================================
   CART & COUNTER COMPONENTS
   ======================================== */
.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.cart-item-name {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    display: block;
}

.cart-item-sku {
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    display: block;
}

.cart-item-price {
    text-align: right;
}

.counter-container {
    display: inline-flex;
    align-items: center;
    gap: var(--space-6);
    background: white;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.counter-btn {
    width: 12px;
    height: 24px;
    border: none;
    background: none;
    color: #5b7ff5;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    transition: opacity var(--transition-fast);
    user-select: none;
}

.counter-btn:hover {
    opacity: 0.7;
}

.counter-btn:active {
    opacity: 0.5;
}

.counter-value {
    font-weight: var(--font-weight-normal);
    color: var(--color-gray-950);
    text-align: center;
    min-width: 15px;
}

/* ========================================
   QR & SCANNER COMPONENTS
   ======================================== */

#leftDiv {
    color:#0A7FAA;
}

.add-to-cart-btn {
    display: block;
    background-color: var(--color-primary);
    color: white;
    border-radius: 7px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 15px;
    padding-right: 15px;
}

.qrCart {
    display: block;
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-2);
    margin: var(--space-1) 0;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 12px;
    margin-bottom: 8px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 7px;
}
   
.qrSearch {
    display: block;
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-2);
    margin: var(--space-1) 0;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 12px;
    margin-bottom: 8px;
    border-radius: 7px;
}

#qrInput {
    border-radius: 7px;
    length: 70px;
    padding-bottom: 5px;
    padding-top: 5px;
    border-color: #0A7FAA;
    background-color: transparent;
}

#qrScreen {
    margin-left: 20px;
    margin-right: 20px;
    padding-top: 40px;
}

#reader {
    width: 98%;
    height: 180px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    border: 1.5px solid #0A7FAA !important;
}

#reader__scan_region video {
    object-fit: cover;
    object-position: center;
}

#reader__dashboard_section {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0 4px !important;
    width: 98%;
    margin: 0 auto;
    justify-content: center; /* centers items horizontally */
  gap: 20px;  
}

#reader__dashboard_section_csr,
#reader__dashboard_section_fsr {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

#reader__dashboard_section_swaplink,
#html5-qrcode-button-camera-permission,
#html5-qrcode-button-camera-start,
#html5-qrcode-button-camera-stop,
#html5-qrcode-button-file-selection {
    background-color: var(--color-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    padding: 5px 12px !important;
    cursor: pointer !important;
    font-size: 10px !important;
    text-decoration: none !important;
    transition: background-color var(--transition-fast) !important;
    display: inline-block !important;
    white-space: nowrap !important;

}

#reader__dashboard_section_swaplink:hover,
#html5-qrcode-button-camera-permission:hover,
#html5-qrcode-button-camera-start:hover,
#html5-qrcode-button-camera-stop:hover,
#html5-qrcode-button-file-selection:hover {
    background-color: #086a8e !important;
}

#reader__camera_selection {
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid #0A7FAA !important;
    background-color: transparent !important;
    color: inherit !important;
    padding: 5px 8px !important;
    font-size: var(--font-size-sm) !important;
}

#searchElements {
    padding: var(--space-3);
    height: 137px;
    overflow-y: auto;
    border-bottom: 1px solid var(--bg-overlay);
}

.search-product {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 3px;
}

#cart {
    padding: var(--space-3);
    border-top: 1px solid var(--bg-overlay-light);
    margin-left: 20px;
    margin-right: 20px;
    padding-left: unset;
    padding-right: unset;
    color:#0A7FAA;
    max-height: calc(91vh - 500px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

#rightDiv {
    display: flex;
    align-items: center;
    justify-content: center;
}

.right {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

/* QR Navigation Buttons */



#qr {
    color:#0A7FAA;
}

#qrNextScreen {
    position: fixed;
    right: 20px;
    background: #0A7FAA;
    color: var(--color-white);
    border: none;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-fast);
    z-index: 1000;
     bottom: 80px;
}

#qrFinishButton {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background: #0A7FAA;
    color: var(--color-white);
    border: none;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-fast);
    z-index: 1000;
}

#qrBackButton {
    position: fixed;
    bottom: 80px;
    right: 120px;
    background: #0A7FAA;
    color: var(--color-white);
    border: none;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background-color var(--transition-fast);
    z-index: 1000;
}

/* ========================================
   PAYMENT COMPONENTS
   ======================================== */
#paymentDueBox {
    text-align: center;
    padding-top: 40px;
}

#paymentCheckout {
    margin-top: 0px;
}

#totalPaymentDue {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
}

#modeOfPaymentBox {
    margin-top: var(--space-4);
    display: flex;
    justify-content: center;
    align-items: center;
}

#cashPaidBox {
    margin-top: var(--space-3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

#cashPaidText {
    color: #0A7FAA;
}

#cashPaidInput {
    width: 130px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 500;
    color: #0A7FAA;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 9px;
    outline: none;
    text-align: right;
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.07);
}

#cashPaidInput:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

#amountDueParent {
    display: block;
    text-align: right;
}

/* ========================================
   TRANSACTION COMPONENTS
   ======================================== */

#listOfTransactions {
    display: block;
    height: 110vh;
    padding: var(--space-4);
    transition: var(--transition-fast);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 25px;
    padding-top: unset;
    color: #0A7FAA;
    margin-right: 8px;
    margin-left: 8px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
}

#listOfTransactions::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

#homeTransactions {
    padding: var(--space-4);
}

#activity h3 {
    margin-top: 0px;
}

#activity {
    padding-top: 40px;
    background: linear-gradient(to top left, #cff3ff, white);
}


#transactionIdBox {
    margin-top: 20px;
    border: 1px solid #0A7FAA;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 7px;
    margin-right: 35px;
    margin-left: 35px;
    margin-top: 10px;
}


.date {
    display: block;
    background: linear-gradient(135deg, #0A7FAA 0%, #1E8FB0 100%);
    color: white;
    padding: 12px 16px;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 0;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(232, 232, 232, 0.25);
    border-radius: 8px;
}

.transactionItem {
    display: flex;
    justify-content: space-between;
    margin: var(--space-7) 0;
}

.transactionleft .title,
.transactionleft .status {
    display: block;
}

.transactionRight {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;  
}

.transactionItem .title {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
}

.transactionItem .status {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

#homeTransactions .transactionItem,
#bestSeller .transactionItem {
    border-bottom: 1px solid var(--color-gray-200);
    padding: var(--space-1) 0;
    margin: var(--space-1) 0;
}

#transacHistoryForm #totalRevenue {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

/* ========================================
   DASHBOARD COMPONENTS
   ======================================== */
#focusBoxParent {
    margin: var(--space-9) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 180px;
    padding: 0 var(--space-6);
    margin-top: 0px;

}

#focusBox {
    height: 180px;
    width: 100%;
    background-color: var(--color-primary);
    box-shadow: var(--shadow-card);
    transition: var(--transition-fast);
    border-radius: var(--radius-xl);
}

#focusBoxContent {
    padding: var(--space-4) var(--space-9);
}

#focusBoxContent p {
    margin: 0;
    padding: 0;
    color: white;
}

#totalSalesText {
    font-style: normal;
    font-weight: var(--font-weight-normal);
    font-size: var(--font-size-md);
    line-height: 17px;
}

#totalSalesValue {
    font-style: normal;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    line-height: 57px;
    color: var(--color-white);
}

#focusBoxTabContainerParent {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: var(--space-2) 0 var(--space-5);
}

.focus-box-tab-container {
    background: white;
    border-radius: var(--radius-full);
    padding: 2px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    gap: 4px;
}

.focus-box-tab-button {
    padding: var(--space-2) var(--space-6);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--color-primary);
}

.focus-box-tab-button:hover:not(.active) {
    background-color: #f0fdfa;
}

.focus-box-tab-button.active {
    background-color: #0891b2;
    color: white;
    box-shadow: 0 4px 6px rgba(8, 145, 178, 0.3);
}

#homeTransactionsParent,
#bestSellerParent {
    display: block;
    height: 250px;
    margin: var(--space-7);
    padding: var(--space-4);
    box-shadow: var(--shadow-card);
    transition: var(--transition-fast);
    background-color: white;
    border-radius: var(--radius-xl);
}

#homeTransactionsParent {
    overflow-y: hidden;
}

#bestSellerParent {
    overflow-y: hidden;
}

#bestSellerParent::-webkit-scrollbar {
    display: none;
}

/* ========================================
   SETTINGS COMPONENTS
   ======================================== */

#showLandingPage-settings {
    display: block;
}

#settings h3 {
    margin-top: 0px;
}

#settings {
    padding-top: 40px;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2);
    transition: var(--transition-faster);
    padding-left: 20px;
    padding-right: 20px;
}

.settings-item:active {
    background-color: var(--bg-overlay);
}

.settings-item .title {
    font-weight: var(--font-weight-semibold);
}

.data
{
    color:#0A7FAA;
    font-size: 12px;
}

.title {
    color:#0A7FAA;
    margin-bottom: -3px;
    display: block;
}


.actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

#sku-parent {
    display: flex;
    gap: 8px;
}

#randomizer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0A7FAA;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.header-with-close {
    display: flex;
    justify-content: space-between;
}

.close {
    background-color: unset;
}



/* ========================================
   PRINT STYLES
   ======================================== */
.for-prompts {
    overflow-y: hidden;
}

#printArea {
    display: none;
}

@media print {
    body>*:not(#printArea) {
        display: none !important;
    }

    #printArea {
        display: block !important;
        width: 8.5in;
        height: 11in;
        margin: 0;
    }

    .tile-grid {
        width: 100%;
        height: 100%;
    }

    .tile-grid img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.hidden {
    display: none !important;
}

.image-container {
     width: 100%;           /* full width of the page */
  height: 50px;         /* adjust as needed */
  align-items: center;   /* vertical centering */
  display: flex;
  color:var(--color-primary);
  font-size: large;
}

.image-container img {
   max-width: 100%;       /* scale image to fit div width */
  max-height: 100%;      /* scale image to fit div height */
  display: block;
  object-fit: contain;   /* maintain aspect ratio */
  padding-left: 25px;
}

#homeTransactionsParent h4 {
        margin-left: 10px;
}

#homeTransactions {
    padding-top: 0px;
}

#bestSellerParent h4{
    margin-left: 10px;
}

#bestSeller {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: unset;
    padding-bottom: 12px;

}

.select-wrapper {
    position: relative;
    width: 180px;
  }

  /* Arrow icon — sits behind the select so it never blocks clicks */
  .select-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    transition: transform 0.2s ease;
  }

  /* Arrow rotates ONLY while the select is actively focused */
  .select-wrapper:has(select:focus-visible)::after {
    transform: translateY(-50%) rotate(180deg);
  }

  select#modeOfPaymentChoice {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 9px 36px 9px 13px;
    font-size: 13px;
    font-weight: 500;
    color: #0A7FAA;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 9px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.07);
    margin-left: 5px;
  }

  select#modeOfPaymentChoice:hover {
    border-color: #60a5fa;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.12);
  }

  /* Highlight ONLY while focused — clears automatically on blur, no JS needed */
  select#modeOfPaymentChoice:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 2px 10px rgba(37, 99, 235, 0.12);
    background: #f0f6ff;
  }

  select#modeOfPaymentChoice option {
    background: #ffffff;
    color: #1e3a8a;
    font-weight: 500;
    font-size: 10px;
    padding: 1px 1px;
  }

  /* Stock parent container - similar to SKU */
#stock-parent {
    display: flex;
    gap: 8px;
}

#stock-parent input {
    flex: 1;
}

#editStockBtn {
    background: #0A7FAA;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

#editStockBtn:hover {
    background: #0891B2;
}

#editStockBtn .material-symbols-outlined {
    font-size: 20px;
}

/* Stock adjustment field */
#stockAdjustmentField {
    margin-top: -10px;
}

.stock-adjustment-hint {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* Readonly stock input */
#stock:read-only {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.settingsHeader {
    display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
  margin-bottom: 5px;
  color:#31AE05;
  padding-left: 22px;
  padding-right: 24px;
  margin-top:5px;
}

.settingsHeader::after {
  content: '';
  flex: 1;
  height: 2px;
  background-color: #31AE05;
}

#deleteDontAskAgain-settings {
    display: block;
}

.setting-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 3px 10px 3px 7px;
      font-size: 15px;
      font-weight: var(--font-weight-semibold);
      color: var(--color-text-primary);
      padding-left: 20px;
      padding-right: 20px;
      padding-bottom: 8px;
      padding-top: 6px;

    }

.setting-row .title {
    font-weight: var(--font-weight-semibold);
}

select.settingsChoices {
appearance: none;
-webkit-appearance: none;
    padding: 5px 15px 5px 15px;
    font-size: 13px;
    font-weight: 500;
    color: #0A7FAA;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 9px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.07);
    margin-left: 5px;
}

button.settingsBtn {
    padding: 5px 15px;
    font-size: 13px;
    font-weight: 500;
    color: #0A7FAA;
    background: #ffffff;
    border: 1.5px solid #bfdbfe;
    border-radius: 9px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(37, 99, 235, 0.07);
    white-space: nowrap;
}

button.settingsBtn:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.branding {
  position: fixed;
  bottom: 56px; /* height of your nav bar */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.bracket-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px;
  position: relative;
  margin-bottom: 25px;
}

/* Left bracket */
.bracket-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 100%;
  border: 2px solid #6b7280;
  border-right: none;
  border-radius: 3px 0 0 3px;
}

/* Right bracket */
.bracket-frame::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 100%;
  border: 2px solid #6b7280;
  border-left: none;
  border-radius: 0 3px 3px 0;
}

.brand-name {
  font-size: 14px;
  font-weight: 800;
  color: #6b7280;
  letter-spacing: 2px;
}

.brand-version {
  font-size: 11px;
  color: #6b7280;
  letter-spacing: 1px;
}

/* ========================================
   LANDING PAGE
   ======================================== */
#landingPage {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(180deg, #1a9fcb 0%, #0a7faa 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 30px 50px;
    transition: opacity 0.4s ease;
}

#landingPage.fade-out {
    opacity: 0;
    pointer-events: none;
}

#landingPage.hidden {
    display: none;
}

.landing-pills-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    transform: scale(1.7);
}

.landing-pills-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    transform: scale(1.7);
}

.landing-pill {
    height: 13px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 50px;
}

.landing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    gap: 6px;
}

.landing-tagline {
    font-size: 21px;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

.landing-brand-img {
    max-width: 220px;
    width: 100%;
    object-fit: contain;
}

#landingGetStarted {
    background: white;
    color: #0a7faa;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    align-self: center;
}

html {
    background: linear-gradient(to top left, #cff3ff, white);
}

/* ========================================
   RECEIPT PAGE
   ======================================== */
#receiptPaidValue {
    font-size: 22px;
}


#receiptPage {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg-body);
    background-attachment: fixed;
    overflow-y: auto;
    scrollbar-width: none;
    padding-top: 40px;
    padding-bottom: 160px;
    color: #0A7FAA;
}

#receiptPage::-webkit-scrollbar {
    display: none;
}

#receiptPage h3 {
    margin-top: 0px;
}

#receiptTidBox {
    padding: 6px 20px;
    font-size: 13px;
    color: var(--color-primary);
}

#receiptItemsList {
    margin: 4px 20px;
    padding: 4px 0;
    max-height: 30vh;
    overflow-y: auto;
    scrollbar-width: none;
}

#receiptItemsList::-webkit-scrollbar {
    display: none;
}

#receiptChange {
    padding-top: 10px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    gap: 8px;
    font-size: 13px;
}

.receipt-item:last-child {
    border-bottom: none;
}

.receipt-item-left {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.receipt-item-name {
    font-weight: 500;
    font-size: 16px;
}

.receipt-item-sku {
    font-size: 12px;
    color: var(--color-primary);
}

.receipt-item-price {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 13px;
    white-space: nowrap;
}

/* Totals: right-aligned group, label + large value side by side */
#receiptTotalsBox {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 14px 20px;
    gap: 8px;
}

.receipt-total-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.receipt-label {
    font-size: 14px;
    color: var(--color-primary);
    font-weight: 500;
}

.receipt-big-val {
    font-size: 30px;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}


#receiptBtnPair {
    display: flex;
    gap: 10px;
    position: fixed;
    bottom: 130px;
    left: 20px;
    right: 20px;
}

#receiptBackBtn,
#receiptHomeBtn {
    flex: 1;
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-md);
}

#receiptBackBtn:hover,
#receiptHomeBtn:hover {
    background: #086a8e;
}

#receiptNewTxnBtn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    right: 20px;
    background: var(--color-success);
    color: white;
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-md);
}

#receiptNewTxnBtn:hover {
    background: var(--color-success-hover);
}