/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f6f8;
    color: #333;
    padding-top: 80px; /* Add padding to account for fixed navbar */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4px;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}
.inventory-page .inventory-tiles-grid {
    grid-template-columns: repeat(4, 1fr);
  } 
/* Controls section */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

#searchInventory {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

tr:hover {
    background-color: #f5f5f5;
}

.total-row {
    background-color: #f8f9fa;
    font-weight: bold;
}

.total-row td {
    border-top: 2px solid #ddd;
}

/* Button styles */
.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.danger {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.danger:hover {
    background-color: #c0392b;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    width: 100%;
    max-width: 500px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Alert styles */
#customAlertContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.alert-success {
    background-color: #2ecc71;
    color: white;
}

.alert-error {
    background-color: #e74c3c;
    color: white;
}

.alert-info {
    background-color: #3498db;
    color: white;
}

.alert button.close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
    
    th, td {
        min-width: 120px;
    }
    
    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
}

/* Basic Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Navbar */
.navbar {
    background-color: #1f2937;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.store-name {
    font-size: 1.5em;
    font-weight: bold;
}

.store-name, .store-name a {
    color: #fff !important;
    text-decoration: none !important;
}

.store-name a,
.store-name a:visited,
.store-name a:hover,
.store-name a:active,
.store-name a:focus {
    color: #fff !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-text-decoration-skip: none !important;
}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar ul li {
    margin-left: 20px;
    display: flex;
    align-items: center;
    height: 100%;
}

.navbar ul li a {
    color: #fff;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    line-height: 1.5;
    display: inline-block;
    vertical-align: middle;
}

.navbar ul li a:hover {
    background-color: #374151;
    color: #a7f3d0;
    text-decoration: none;
}

/* Headings */
h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Card Layout */
.card, .inventory-card, .record-sale-card, .sales-history-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 20px;
    overflow: hidden;
}

.module-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-left: -50px;
    margin-right: -50px;
}

/* Inventory Card */
.inventory-card {
    width: 100%;
    max-width: 650px;
    margin-left: -5%;
    margin-right: auto;
}

.inventory-card .add-item-btn {
    background-color: #6f42c1;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-bottom: 20px;
}

.inventory-card .barcode-input {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.inventory-card .barcode-input label {
    margin-right: 10px;
    font-weight: bold;
}

.inventory-card .barcode-input input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.inventory-card .barcode-placeholder {
    width: 100px; /* Placeholder for barcode image */
    height: 40px;
    border: 1px dashed #ccc;
    margin-left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    color: #999;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    max-height: 80vh; /* Make the table container scrollable vertically */
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
}

thead th {
    background: #f3f4f6;
    font-weight: bold;
    color: #374151;
    padding: 12px 8px;
    border-bottom: 2px solid #e5e7eb;
}

tbody tr:nth-child(even) {
    background: #f9fafb;
}

tbody tr:hover {
    background: #f1f5f9;
}

td {
    padding: 10px 8px;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

/* Record Sale Card */
.record-sale-card {
    width: 125%;
    max-width: 800px;
    margin-left: -5%;
    margin-right: -25%;
}

.record-sale-card .form-group {
    margin-bottom: 15px;
}

.record-sale-card label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.record-sale-card input[type="text"],
.record-sale-card input[type="date"],
.record-sale-card select,
.record-sale-card input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.record-sale-card .item-entry {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 10px;
}

.record-sale-card .item-entry > * {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-sale-card .item-entry .select-item {
    min-width: 120px;
    padding: 6px 10px;
    flex-grow: 1;
    box-sizing: border-box;
}

.record-sale-card .item-entry .quantity-sold {
    max-width: 80px;
    min-width: 60px;
    width: 100%;
    box-sizing: border-box;
}

.record-sale-card .item-entry .item-wp,
.record-sale-card .item-entry .item-mrp {
    width: 80px; /* Fixed width for price display */
    text-align: right;
    font-weight: bold;
}

.record-sale-card .item-entry .remove-item-btn {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.record-sale-card .button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.record-sale-card .add-btn,
.record-sale-card .scan-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    flex: 1;
    min-width: 80px;
}

.record-sale-card .sale-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    background: none;
    box-shadow: none;
    padding: 0;
    margin-top: 24px;
}

.record-sale-card .summary-container {
    margin-top: 24px;
}

.record-sale-card .summary-table-row {
    display: table-row;
}

.record-sale-card .summary-table-row:first-child .summary-box {
    background: #f3f4f6;
}

.record-sale-card .summary-box {
    display: table-cell;
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 12px;
    text-align: center;
    vertical-align: middle;
    width: 160px;
}

.record-sale-card .summary-label {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    margin-bottom: 0;
    text-align: center;
}

.record-sale-card .summary-value {
    font-size: 20px;
    font-weight: bold;
    color: #111827;
    margin-top: 6px;
    text-align: center;
}

.record-sale-card .summary-box.discount-box label {
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    margin-bottom: 0;
    text-align: center;
    display: block;
}

.record-sale-card .summary-box.discount-box input[type="text"] {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    margin-top: 6px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: center;
}

.record-sale-card .btn-primary {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 20px;
    width: 100%;
}

/* Sales History Card */
.sales-history-card {
    margin-left: -10%;
    margin-right: -10%;
}

/* Responsive Design */
@media (max-width: 850px) {
    .record-sale-card {
        width: 100%;
        min-width: 0;
    }
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 20px;
    color: #333;
    font-size: 0.9em;
}

.user-info span {
    margin: 2px 0;
}

#userFullName {
    font-weight: bold;
    color: #007bff;
}

#userLastLogin {
    font-size: 0.8em;
    color: #666;
}

/* Button Consistency */
button, .btn-primary, .add-btn, .scan-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    background: #4CAF50;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
button:hover, .btn-primary:hover, .add-btn:hover, .scan-btn:hover {
    background: #388e3c;
}
.danger, .remove-item-btn, .delete-sale-btn {
    background: #DC3545 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: background 0.2s;
}
.danger:hover, .remove-item-btn:hover, .delete-sale-btn:hover {
    background: #a71d2a !important;
}

/* Input and Select Styling */
input[type="text"], input[type="number"], input[type="date"], select {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px;
    font-size: 1em;
    margin: 4px 0;
    box-sizing: border-box;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    background: #fff;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="date"]:focus, select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    background: #fff;
}

.counter-incharge-navbar {
    color: #fff !important;
    font-weight: 600;
    margin-left: 16px;
    margin-right: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Alert Messages */
#customAlertContainer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
    display: flex;
    flex-direction: column-reverse;
    pointer-events: none;
}

.alert {
    pointer-events: auto;
    padding: 16px 24px;
    margin: 8px 0;
    border-radius: 6px;
    font-size: 1.05em;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f1f8ff;
    color: #1a202c;
    position: relative;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.alert-success {
    background: #4CAF50;
    color: white;
    border: none;
}

.alert-error {
    background: #DC3545;
    color: white;
    border: none;
}

.alert-warning {
    background: #FFC107;
    color: #1a202c;
    border: none;
}

.alert-info {
    background: #2196F3;
    color: white;
    border: none;
}

.alert .close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.2em;
    color: inherit;
    cursor: pointer;
    opacity: 0.9;
    transition: opacity 0.2s;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.alert .close:hover {
    opacity: 1;
}

/* Animation for alerts */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert {
    animation: slideInUp 0.3s ease forwards;
}

/* Counter Incharge Input Styling */
#counterInchargeInput {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px;
    font-size: 1.1em;
    width: 90%;
    margin: 12px 0;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#counterInchargeInput:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

#counterInchargeInput::-webkit-calendar-picker-indicator {
    opacity: 0.6;
    cursor: pointer;
}

#counterInchargeInput::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Counter Incharge Dropdown */
.navbar .dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}
.navbar .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 110%;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 8px;
    min-width: 180px;
    z-index: 2000;
    margin-top: 8px;
    padding: 8px 0;
}
.navbar .dropdown-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar .dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0;
    transition: background 0.2s, color 0.2s;
}
.navbar .dropdown-menu a:hover {
    background: #f8d7da;
    color: #a71d2a;
}
.navbar .counter-incharge-navbar {
    color: #2196f3;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    background: #222e3c;
    display: inline-block;
    line-height: 1.5;
    vertical-align: middle;
}
.navbar .counter-incharge-navbar:visited,
.navbar .counter-incharge-navbar:active {
    color: #2196f3;
    text-decoration: none;
}

/* Ensure navbar and parents do not clip dropdowns */
.navbar, .navbar * {
    overflow: visible !important;
}

/* Remove spinner arrows from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

.delete-sale-btn,
.print-receipt-btn {
    width: 110px;
    min-width: 110px;
    display: block;
    margin: 0 auto 8px auto;
    text-align: center;
    box-sizing: border-box;
} 

.clickable-row {
    cursor: pointer;
    transition: background 0.15s;
}
.clickable-row:hover {
    background: #e3f2fd !important;
} 

.inventory-tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px; /* more vertical gap between rows */
  margin-bottom: 32px;
  max-width: 100%;
  overflow-x: unset;
  padding-bottom: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.inventory-tile {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: box-shadow 0.2s, transform 0.18s cubic-bezier(0.4,0.2,0.2,1);
  margin-bottom: 0;
  overflow: hidden;
  padding: 10px 6px 8px 6px;
  box-sizing: border-box;
}
.inventory-tile:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  transform: scale(1.045);
  z-index: 20;
}
.inventory-tile .tile-img-row {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inventory-tile .tile-img-overlay {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 28%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 6px 6px 8px 6px;
  background: none;
  color: #111;
  font-size: 0.9em;
  pointer-events: none;
}
.inventory-tile .tile-img-overlay .item-name {
  font-size: 0.95em;
  font-weight: 600;
  color: #111;
  margin-bottom: 2px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}
.inventory-tile .tile-img-overlay .item-qty,
.inventory-tile .tile-img-overlay .item-wp,
.inventory-tile .tile-img-overlay .item-mrp {
  font-size: 1.08em;
  color: #111;
  text-align: center;
  margin-bottom: 1px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  /* white-space: nowrap; */
  white-space: normal;
  word-break: break-word;
  line-height: 1.15;
  min-height: 1.2em;
  max-height: 2.4em;
  display: block;
  text-shadow: 0 1px 4px #fff, 0 0px 2px #fff;
}
.inventory-tile img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0;
  background: #f7f7fa;
  display: block;
}
.inventory-tile .item-name {
  font-size: 0.85em;
  font-weight: 600;
  color: #222;
  margin-bottom: 3px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}
.inventory-tile .item-mrp {
  font-size: 0.8em;
  color: #ff7a00;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inventory-tile .item-qty {
  font-size: 0.8em;
  color: #555;
  text-align: center;
  margin-bottom: 2px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} 
.inventory-tile .tile-hover-details {
  display: none !important;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  color: #111;
  z-index: 10;
  border-radius: 14px;
  padding: 12px 8px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.05em;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.inventory-tile:hover .tile-hover-details {
  display: flex !important;
} 
.inventory-tile .tile-menu-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20; /* increase to ensure above name */
  background: transparent;
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  color: #444;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.2s;
}
.inventory-tile .tile-menu-btn:hover {
  background: #eee;
}
.inventory-tile .tile-menu-dropdown {
  display: none;
  position: absolute;
  top: 36px;
  right: 8px;
  z-index: 10;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 90px;
  padding: 6px 0;
  flex-direction: column;
  align-items: stretch;
}
.inventory-tile .tile-menu-dropdown button {
  background: none;
  border: none;
  color: #333;
  font-size: 0.95em;
  padding: 8px 16px;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s;
}
.inventory-tile .tile-menu-dropdown button:hover {
  background: #f7f7fa;
}
.inventory-tile .tile-menu-dropdown .danger {
  color: #e74c3c;
}
.inventory-tile .tile-menu-dropdown.show {
  display: flex;
} 
.tile-name-top {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 5;
  font-size: 1.15em;
  font-weight: 700;
  color: #111;
  text-align: center;
  background: rgba(255,255,255,0.85);
  padding: 4px 6px 2px 6px;
  border-radius: 8px 8px 0 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
  pointer-events: none;
} 
.inventory-page .inventory-tile .tile-img-overlay .item-mrp {
  color: #ff8800;
  text-shadow: 0 1px 4px #fff, 0 0px 2px #fff;
} 
.tile-name-top,
.inventory-tile .tile-img-overlay .item-name,
.tile-hover-details .item-name {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.2em;
  display: block;
} 
.progress-bar-container {
  width: 100%;
  background: #f1f1f1;
  border-radius: 8px;
  height: 12px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  position: relative;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4f8cff 0%, #1cb5e0 100%);
  border-radius: 8px;
  transition: width 0.2s cubic-bezier(0.4,0.2,0.2,1);
  box-shadow: 0 1px 4px rgba(76,140,255,0.15);
} 

@media (max-width: 900px) {
  .module-grid {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-right: 0;
    gap: 16px;
  }
  .inventory-card, .record-sale-card, .sales-history-card {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 4px;
  }
  .module-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
  }
  .inventory-card, .record-sale-card, .sales-history-card {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 12px;
  }
  .record-sale-card .item-entry {
    flex-direction: column;
    gap: 6px;
  }
  .record-sale-card .item-entry > * {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: flex-start;
  }
  .record-sale-card .button-group {
    flex-direction: column;
    gap: 6px;
  }
  .record-sale-card .summary-container {
    overflow-x: auto;
  }
  .record-sale-card .summary-table-row, .record-sale-card .summary-box {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 4px 0;
  }
  .record-sale-card .summary-label, .record-sale-card .summary-value {
    font-size: 1em;
  }
  .table-responsive {
    overflow-x: auto;
  }
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  th, td {
    min-width: unset;
    padding: 8px 4px;
    text-align: left;
  }
  thead {
    display: none;
  }
  tr {
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
  }
}

/* Ensure images and videos are responsive */
img, video {
  max-width: 100%;
  height: auto;
  display: block;
} 