/*
! tailwindcss v3.4.4 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden] {
  display: none;
}

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  inset: 0px;
}
.left-3 {
  left: 0.75rem;
}
.top-1\/2 {
  top: 50%;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.h-1 {
  height: 0.25rem;
}
.h-2 {
  height: 0.5rem;
}
.h-3 {
  height: 0.75rem;
}
.h-\[320px\] {
  height: 320px;
}
.max-h-\[240px\] {
  max-height: 240px;
}
.max-h-\[320px\] {
  max-height: 320px;
}
.min-h-screen {
  min-height: 100vh;
}
.w-2 {
  width: 0.5rem;
}
.w-3 {
  width: 0.75rem;
}
.w-\[140px\] {
  width: 140px;
}
.w-\[302px\] {
  width: 302px;
}
.w-full {
  width: 100%;
}
.max-w-7xl {
  max-width: 80rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.cursor-pointer {
  cursor: pointer;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-8 {
  gap: 2rem;
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-t-xl {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / var(--tw-border-opacity));
}
.border-gray-100 {
  --tw-border-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-border-opacity));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / var(--tw-border-opacity));
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity));
}
.border-yellow-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 240 138 / var(--tw-border-opacity));
}
.bg-black\/40 {
  background-color: rgb(0 0 0 / 0.4);
}
.bg-blue-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / var(--tw-bg-opacity));
}
.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity));
}
.bg-green-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(187 247 208 / var(--tw-bg-opacity));
}
.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / var(--tw-bg-opacity));
}
.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity));
}
.bg-green-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(22 163 74 / var(--tw-bg-opacity));
}
.bg-purple-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(168 85 247 / var(--tw-bg-opacity));
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity));
}
.bg-red-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 202 202 / var(--tw-bg-opacity));
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity));
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity));
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.bg-yellow-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / var(--tw-bg-opacity));
}
.bg-yellow-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 240 138 / var(--tw-bg-opacity));
}
.bg-yellow-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 252 232 / var(--tw-bg-opacity));
}
.bg-yellow-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / var(--tw-bg-opacity));
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-blue-50 {
  --tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-500 {
  --tw-gradient-from: #3b82f6 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(59 130 246 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-emerald-500 {
  --tw-gradient-from: #10b981 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(16 185 129 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-emerald-600 {
  --tw-gradient-from: #059669 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(5 150 105 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-gray-100 {
  --tw-gradient-from: #f3f4f6 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-green-50 {
  --tw-gradient-from: #f0fdf4 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(240 253 244 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-red-50 {
  --tw-gradient-from: #fef2f2 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(254 242 242 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-slate-500 {
  --tw-gradient-from: #64748b var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(100 116 139 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-yellow-50 {
  --tw-gradient-from: #fefce8 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(254 252 232 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-yellow-500 {
  --tw-gradient-from: #eab308 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(234 179 8 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-amber-400 {
  --tw-gradient-to: #fbbf24 var(--tw-gradient-to-position);
}
.to-blue-100 {
  --tw-gradient-to: #dbeafe var(--tw-gradient-to-position);
}
.to-gray-200 {
  --tw-gradient-to: #e5e7eb var(--tw-gradient-to-position);
}
.to-gray-400 {
  --tw-gradient-to: #9ca3af var(--tw-gradient-to-position);
}
.to-green-100 {
  --tw-gradient-to: #dcfce7 var(--tw-gradient-to-position);
}
.to-green-400 {
  --tw-gradient-to: #4ade80 var(--tw-gradient-to-position);
}
.to-red-100 {
  --tw-gradient-to: #fee2e2 var(--tw-gradient-to-position);
}
.to-sky-400 {
  --tw-gradient-to: #38bdf8 var(--tw-gradient-to-position);
}
.to-teal-400 {
  --tw-gradient-to: #2dd4bf var(--tw-gradient-to-position);
}
.to-yellow-100 {
  --tw-gradient-to: #fef9c3 var(--tw-gradient-to-position);
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-\[2px\] {
  padding-top: 2px;
  padding-bottom: 2px;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pl-10 {
  padding-left: 2.5rem;
}
.pr-4 {
  padding-right: 1rem;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-4 {
  padding-top: 1rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity));
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity));
}
.text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity));
}
.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity));
}
.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / var(--tw-text-opacity));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity));
}
.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}
.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity));
}
.text-yellow-700 {
  --tw-text-opacity: 1;
  color: rgb(161 98 7 / var(--tw-text-opacity));
}
.text-yellow-800 {
  --tw-text-opacity: 1;
  color: rgb(133 77 14 / var(--tw-text-opacity));
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  display: flex;
  place-items: center;
  min-width: 320px;
  min-height: 100vh;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

.hover\:scale-\[1\.01\]:hover {
  --tw-scale-x: 1.01;
  --tw-scale-y: 1.01;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity));
}

.hover\:bg-gray-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity));
}

.hover\:bg-green-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(21 128 61 / var(--tw-bg-opacity));
}

.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity));
}

.hover\:shadow-md:hover {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.focus\:border-transparent:focus {
  border-color: transparent;
}

.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
}

.disabled\:opacity-50:disabled {
  opacity: 0.5;
}

.disabled\:opacity-60:disabled {
  opacity: 0.6;
}

@media (min-width: 640px) {

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 768px) {

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media print {

  .print\:hidden {
    display: none;
  }

  .print\:bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity));
  }

  .print\:p-0 {
    padding: 0px;
  }

  .print\:shadow-none {
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
}
/* ===== POS FULL PAGE LAYOUT ===== */

.product-admin {
  width: 100%;
  height: calc(100vh - 110px); /* subtract top header + bottom nav */
  display: flex;
  flex-direction: column;
  background: #fafafa;
  font-family: system-ui, sans-serif;
}

/* ===== PAGE TITLE ===== */
.product-admin h2 {
  text-align: left;
  margin: 6px 0 10px;
  font-size: 20px;
}

/* ===== STICKY TOP TOOLBAR ===== */
.page-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: white;
  padding: 12px 14px;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* ===== TOOLBAR ROWS ===== */
.toolbar,
.create-form,
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Inputs */
.create-form input,
.filter-bar input,
.filter-bar select,
.toolbar input {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  height: 34px;
}

/* Create form grid feel */
.create-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

/* ===== BUTTONS ===== */
button {
  border: none;
  background: #eeeeee;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background: #dddddd;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-green {
  background: #16a34a;
  color: white;
}

.btn-green:hover {
  background: #15803d;
}

button.danger {
  background: #ef4444;
  color: white;
}

button.danger:hover {
  background: #c62828;
}

/* ===== SCROLLABLE CONTENT ===== */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 30px;
}

/* Scrollbar for POS */
.page-content::-webkit-scrollbar {
  width: 8px;
}
.page-content::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 6px;
}
.page-content::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* ===== TABLE BOX ===== */
.table-box {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ===== TABLE ===== */
.table-box table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f4f6f8;
}

/* Sticky table header */
.page-content thead th {
  position: sticky;
  top: 0;
  background: #f4f6f8;
  z-index: 5;
}

th, td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

tbody tr:hover {
  background: #f9fbff;
}

/* inactive row */
tbody tr.inactive {
  opacity: 0.5;
}

/* product image */
td img {
  width: 45px;
  height: 45px;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
}

/* ===== STATUS DOT ALIGN FIX ===== */
td:last-child {
  white-space: nowrap;
}

/* ===== RESPONSIVE FIX ===== */
@media (max-width: 900px) {
  .create-form {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
@media (max-width: 1366px) {
  .pos-main {
    grid-template-columns: 120px minmax(0, 1fr) 340px;
  }
}


#root,
body,
html {
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  
  max-width: 100%;
  overflow-x: hidden;
}



.app,
.pos-page,
.app-layout,
.main-content,
.pos-shell,
.pos-main {
  max-width: 100vw;
  overflow-x: hidden !important;
}


* {
  box-sizing: border-box;
}

.pos-products,
.pos-cart,
.pos-sidebar {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(148,163,184,0.12);
}
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
.table-wrapper {
  max-height: calc(100vh - 200px);   /* adjust based on header height */
  overflow-y: auto;
}
/* APP LAYOUT */
.app-layout {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.main-content {
  flex: 1;
  display: flex;
  min-height: 0;          /* ⭐ CRITICAL */
}
.pos-shell {
  height: calc(100vh - 12px); /* 🔥 reserve space for bottom nav */
  padding: 12px;
  box-sizing: border-box;
  background: #f4f6f8;
}
.categories-panel {
  width: 220px;
  overflow-y: auto;
  padding: 8px;
}
.pos-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}
.pos-cart h3 {
  padding: 4px 8px;
  margin: 0;
}
.top-left {
  display: flex;
  align-items: center;
}

.company-logo {   /* adjust size */
  width: auto;
  -o-object-fit: contain;
     object-fit: contain;
  height: 38px;
  max-width: 150px;
}

.logged-user {
  font-weight: 600;
  margin-right: 12px;
  color: #0d47a1;
}

/* TOP BAR */
.pos-topbar {
  height: 72px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  display: grid;
  grid-template-columns: 60px 1fr 120px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid #38bdf8;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 20;
}
.store-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0f172a;
}
.top-title {
  text-align: center;
  font-size: 18px;
}

/* MAIN AREA */
.pos-main {
  display: grid;

  /* 🔥 PERFECT WIDTHS FOR 1366px */
  grid-template-columns:
    120px              /* Categories */
    minmax(0, 1fr)     /* Products */
    360px;             /* Cart */

  gap: 12px;

  height: 100%;
  min-height: 0;
  overflow: hidden;

  padding: 10px;
}


.top-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.logout-btn {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
/* LEFT SIDEBAR */
.pos-sidebar {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 10px;
  border: 1px solid #38bdf8;
overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
 width: 120px; 
  height: 100%;        /* 🔥 take full column height */
  min-height: 0;       /* 🔥 allow child scrolling */
}
/* ✅ CATEGORY SCROLL FIX */
.category-panel.vertical {
  flex: 1;                /* 🔥 fill remaining sidebar height */
  min-height: 0;          /* 🔥 allow scrolling */
  overflow-y: auto;       /* 🔥 enable scroll */
  padding-right: 6px;
}
.pos-sidebar .pos-search {
  width: 200%;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #38bdf8;
  box-sizing: border-box;  /* 🔑 this is important */
}
.pos-sidebar .nav-tab {
  white-space: normal;
  text-align: center;
  padding: 10px 6px;
  font-size: 14px;
  line-height: 1.2;
}
.pos-sidebar button {
  white-space: normal;
  word-break: normal;
}
.pos-search {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;

  outline: none;
}
.pos-sidebar input[type="search"],
.pos-sidebar input[type="text"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;          /* 🔥 CRITICAL */
  box-sizing: border-box;
}
.search-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;          /* 🔥 REQUIRED */
  overflow: hidden;
}
.search-box input,
.pos-sidebar input {
  width: 100%;
  max-width: 100%;
  min-width: 0;          /* 🔥 THIS FIXES EVERYTHING */
  box-sizing: border-box;
}
.category-item {
  white-space: nowrap;        /* allow wrap */
  word-break: normal;     /* 🔥 important */
  text-align: center;
  line-height: 1.2;
}
.search-box input::-moz-placeholder {
  white-space: nowrap;
  text-overflow: ellipsis;
}
.search-box input::placeholder {
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pos-search:focus {
  border-color: #2563eb;
  background: #ffffff;
}
.category-panel.vertical,
.cart-items {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
/* PRODUCTS AREA */
.pos-products {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 18px;
border: 1px solid #38bdf8;
  overflow-y: auto;     /* 🔥 enable scrolling */
  min-height: 0;        /* 🔥 required */
}

/* CART PANEL */
.pos-cart {
  border: 1px solid #38bdf8;   /* 🔥 all 4 sides */
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
   display: flex;
  flex-direction: column;

    margin-right: 12px;          /* ✅ right-side gap */
  margin-bottom: 12px;         /* ✅ bottom gap */

 padding-bottom: calc(16px + 72px); /* 🔥 reserve nav space */
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;

  align-content: flex-start;
}


/* SQUARE PRODUCT CARD */
.product-card {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
}
.product-card:active {
  transform: scale(0.96);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}
.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.pos-cart {
  width: 100%;
  max-width: 360px;

  display: flex;
  flex-direction: column;

  height: 100%;
  min-height: 0;

  overflow: hidden;

  border-radius: 16px;
  background: #ffffff;
}



.product-card-body {
  padding: 10px;
  font-weight: 600;
}
.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* OK here */
}
/* 🔥 THIS IS THE KEY */
.content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* PAGE ROOT */
.pos-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* BOTTOM BAR */
.pos-bottom-bar {
  height: 70px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 12px;
  padding: 10px;
}
.cart-row span:last-child {
  min-width: 60px;
  text-align: right;
  font-weight: 600;
}
.pos-bottom-bar button {
  border-radius: 10px;
  font-size: 18px;
}

/* ACTIVE PAYMENT */
.btn.active {
  background: #2563eb;
  color: white;
}

* {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ORDER ACTION AREA */
.order-actions {
  position: sticky;
  bottom: 72px;            /* 🔥 sits above bottom nav */
  background: #ffffff;
  padding-top: 12px;
}
/* =========================
   UNIFIED BUTTON BASE
========================= */
:root {
  --pastel-primary: #7dd3fc;    /* soft sky blue */
  --pastel-primary-dark: #38bdf8;
  --pastel-success: #86efac;    /* mint green */
  --pastel-bg: #f8fafc;
  --pastel-border: #e2e8f0;
  --pastel-text: #0f172a;
}
.pay-btn,
.pay-primary {
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.15s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.10);
}
.pay-btn {
  height: 42px;
  font-size: 14px;
  border: 1.5px solid var(--pastel-border);
  background: #ffffff;
  color: var(--pastel-text);
}
.pay-btn:hover {
  background: #f1f5f9;
}
.pay-btn.active {
  background: linear-gradient(
    135deg,
    var(--pastel-primary),
    var(--pastel-primary-dark)
  );
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(56,189,248,0.35);
}

.pay-primary {
  height: 52px;
  font-size: 18px;
  border: none;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #7c2d12;
  box-shadow: 0 6px 18px rgba(251,146,60,0.35);
}

.pay-primary:hover {
  filter: brightness(1.05);
}


.pay-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
/* CASH / UPI ROW */
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;

}

/* FULL SCREEN */


/* CART PANEL */


/* HEADER */
.pos-header {
  height: 60px;
  background: #2e7d32;
  color: white;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;         /* ✅ modern POS feel */
  margin-bottom: 10px;        /* space below header */
}
.qty-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #2e7d32;
  color: white;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}



/* ORDER CONTENT SCROLL */
.cart-items {
  flex: 1;             /* 🔥 fill free space */
  overflow-y: auto;    /* 🔥 enable scroll */
  min-height: 0;       /* 🔥 required for flex scrolling */
  padding-right: 6px;
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent);
          mask-image: linear-gradient(to bottom, black 90%, transparent);
}
.cart-items::-webkit-scrollbar {
  width: 6px;
}
.cart-items::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 6px;
}
.cart-items::-webkit-scrollbar-track {
  background: transparent;
}
/* PRODUCT GRID */


.product-image-wrapper img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
/* Overlay at bottom */
.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 12px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.1)
  );
  color: white;
}
/* Text styles */
.product-name {
  font-size: 16px;
  font-weight: 700;
}

.product-price {
  font-size: 14px;
  opacity: 0.9;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.product-card-body {
  font-size: 18px;
  padding: 14px;
}
.category-tab {
  height: 48px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.category-tab.active {
  background: #2563eb;
  color: white;
}
.cart-row {
  display: grid;
  grid-template-columns: 1fr 120px 80px; /* 🔥 FIXED columns */
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.cart-row .item-name {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-row .item-price {
  text-align: right;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.cart-row:not(:last-child) {
  border-bottom: 1px dashed #e5e7eb;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-row.latest {
  background: #f0fdf4;
  border-radius: 6px;
  padding: 6px;
}
.qty-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.qty-controls button {
  width: 34px;
  height: 34px;
  font-size: 18px;
  border-radius: 50%;
}

.cart-summary {
  padding: 1px;
  border-top: 1px dashed #ccc;
}
.cart-summary .total {
  font-size: 22px;
  font-weight: 800;
}
.cart-summary div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.order-actions {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding-top: 12px;
}

.fire-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #ff5722;
  color: white;
  border: none;
  border-radius: 6px;
}
.pos-footer button {
  font-size: 15px;
  font-weight: 600;
}
.pos-cart {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.cart-row {
  padding: 8px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.out-of-stock {
  pointer-events: none;
}

.out-of-stock img {
  filter: grayscale(100%) blur(1.5px);
  opacity: 0.6;
}

/* Center label */
.stock-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  color: white;
  background: rgba(0,0,0,0.45);
}

/* Default */
.product-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
}

/* Category accents */
.cat-burgers {
  box-shadow: inset 0 0 0 3px #ff7043;
}

.cat-pizza {
  box-shadow: inset 0 0 0 3px #fbc02d;
}

.cat-appetizers {
  box-shadow: inset 0 0 0 3px #66bb6a;
}


.pos-sync {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.sync {
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
}

.sync.online {
  background: #e8f5e9;
  color: #2e7d32;
}

.sync.offline {
  background: #fff3cd;
  color: #856404;
}

.sync.syncing {
  background: #e3f2fd;
  color: #1565c0;
}

.sync.error {
  background: #fdecea;
  color: #c62828;
  cursor: pointer;
}


.nav-item span {
  font-size: 12px;
  font-weight: 500;
}


.nav-item.active::after {
  content: "";
  width: 32px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
  margin-top: 4px;
}
/* ================================
   BOTTOM NAV
================================ */
.pos-bottom-nav {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  position: sticky;
  bottom: 0;
outline: 2px solid #38bdf8;
  height: 56px;
  min-height: 56px;

  display: flex;
  gap: 2px;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;

  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(229, 231, 235, 0.8);
  z-index: 10;
}


/* 🔥 HARD CLAMP */
.pos-bottom-nav > * {
  overflow: hidden;
}

/* NAV ITEM */
.nav-item {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* BADGE */
.badge {
  position: absolute;
  top: 4px;
  right: 50%;
  transform: translateX(50%);
}


.heartbeat {
  display: flex;
  align-items: center;
}
.hb {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.hb.online {
  background: #e8f5e9;
  color: #2e7d32;
}

.hb.pending {
  background: #fff3cd;
  color: #856404;
}

.hb.error {
  background: #fdecea;
  color: #c62828;
}



.logout-btn:hover {
  background: #fee2e2;
}

.outlet-name {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
}
.product-card.out-of-stock {
  opacity: 0.45;
  filter: grayscale(100%) blur(1px);
  pointer-events: none;
}

.stock-label {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}
.category-panel {
  display: flex;
  gap: 10px;
}

.category-panel.vertical {
  flex-direction: column;
}

/* 🔥 SAME SIZE */
.category-btn {
  width: 100%;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: #fff;

  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn:hover {
  border-color: #4caf50;
  background: #f3fff5;
}

.category-btn.active {
  background: #cbdacc;
  color: #5c4949;
  border-color: #4caf50;
}
/* ==============================
   CATEGORY ICON BUTTONS
============================== */

.category-panel.vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-btn {
  height: 42px;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: 10px;
  border: 1.5px solid #e0e0e0;
  background: #ffffff;

  font-size: 14px;
  font-weight: 600;
  cursor: pointer;

  transition: all 0.18s ease;
}

.category-btn:hover {
  background: #f0fdf4;
  border-color: #4caf50;
}

.category-btn.active {
  background: linear-gradient(135deg, #bbf7d0, #86efac);
  color: #065f46;
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34,197,94,0.25);
}

.cat-icon {
  font-size: 18px;
  line-height: 1;
}
/* USER CHIP */
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 6px 12px;
  border-radius: 999px;

  background: linear-gradient(135deg, #e0f2fe, #f0fdf4);
  border: 1px solid #bae6fd;

  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: linear-gradient(135deg, #38bdf8, #22c55e);
  color: white;

  font-weight: 800;
  font-size: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.user-role {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* STATUS WRAPPER */
.status-pill {
  display: flex;
  align-items: center;
}

/* HEARTBEAT STATES */
.hb {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 6px 12px;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 600;
}

.hb.online {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.hb.pending {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.hb.error {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.status-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.status-label {
  font-weight: 700;
}

.status-sub {
  font-size: 11px;
  opacity: 0.85;
}
/* =========================
   MODERN TOP BAR
========================= */

.top-right.modern {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* USER PILL */
.user-pill.modern {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 8px 16px;
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);

  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.user-avatar.modern {
  width: 38px;
  height: 38px;
  border-radius: 50%;

  background: linear-gradient(135deg, #34d399, #22c55e);
  color: white;

  font-weight: 800;
  font-size: 16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.user-role {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

/* STATUS PILL */
.status-pill.modern {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 14px;
  border-radius: 16px;

  background: #ecfdf5;
  border: 1px solid #bbf7d0;

  font-size: 12px;
  font-weight: 600;
  color: #166534;
}

/* STATUS DOT */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,0.15);
}

.status-dot.pending {
  background: #f59e0b;
}

.status-dot.error {
  background: #ef4444;
}

/* LOGOUT */
.logout-pill.modern {
  padding: 9px 16px;
  border-radius: 14px;

  background: #f8fafc;
  border: 1px solid #e5e7eb;

  font-size: 13px;
  font-weight: 600;
  color: #0f172a;

  cursor: pointer;
  transition: all 0.15s ease;
}

.logout-pill.modern:hover {
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}
@keyframes onlinePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0.35);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34,197,94,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0);
  }
}

.status-dot.online {
  animation: onlinePulse 2.2s ease-out infinite;
}
@keyframes slideFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-pill.modern,
.status-pill.modern,
.logout-pill.modern {
  animation: slideFadeIn 0.35s ease-out;
}
.user-avatar.modern {
  position: relative;
}

.user-avatar.modern::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(34,197,94,0.25),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.user-pill.modern:hover .user-avatar.modern::after {
  opacity: 1;
}
.logout-pill.modern {
  position: relative;
}

.logout-pill.modern::after {
  content: "Sign out";
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #64748b;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.logout-pill.modern:hover::after {
  opacity: 1;
}
.status-pill.modern {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}
/* =========================
   STORE / OUTLET HEADER
========================= */

.top-title.modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

/* Store Name */
.store-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-icon {
  font-size: 18px;
}

.store-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #0f172a;
}

/* Outlet */
.outlet-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

/* Location dot */
.outlet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

/* Subtle entrance */
.top-title.modern {
  animation: fadeSlideDown 0.25s ease-out;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.outlet-line {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}
/* =========================
   MODERN TOP BAR
========================= */

.pos-topbar.modern {
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

/* BRAND */
.top-left.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 32px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

/* CENTER TITLE */
.top-center {
  text-align: center;
}

.store-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.outlet-title {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.outlet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* RIGHT CLUSTER */
.top-right.modern {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.payment-toggle {
  display: flex;
  gap: 10px;
  margin: 12px 0;
}

.pay-mode {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #ddd;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.pay-mode.active {
  border-color: #ff9800;
  background: #fff3e0;
}
.payment-toggle {
  display: flex;
  gap: 12px;
  margin: 14px 0;
}

.pay-mode {
  flex: 1;
  height: 56px;
  border-radius: 14px;
  border: 2px solid #e0e0e0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pay-mode img {
  height: 22px;
}

.pay-mode.active {
  border-color: #ff9800;
  background: #fff3e0;
  color: #e65100;
}

.pay-mode.upi.active {
  border-color: #4caf50;
  background: #e8f5e9;
  color: #2e7d32;
}

.pay-primary:disabled {
  background: #e0e0e0;
  color: #888;
  cursor: not-allowed;
}
/* TOPBAR */
.pos-topbar.modern {
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e6ecff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* LEFT SIDE */
.top-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.company-logo {
  height: 36px;
}

/* TENANT CHIP */
.tenant-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #eef3ff);
  border: 1px solid #dde6ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  animation: fadeSlide 0.4s ease;
}

.tenant-flag {
  font-size: 20px;
}

.tenant-text {
  display: flex;
  flex-direction: column;
}

.tenant-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.outlet-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.outlet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.outlet-name {
  font-size: 12px;
  color: #64748b;
}

/* RIGHT SIDE */
.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* USER PILL */
.user-pill.modern {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info {
  line-height: 1.1;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
}

.user-role {
  font-size: 11px;
  color: #64748b;
}

/* STATUS */
.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill.online {
  background: #ecfdf5;
  color: #166534;
}

.status-pill.offline {
  background: #fef2f2;
  color: #991b1b;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* LOGOUT */
.logout-pill {
  border: none;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.logout-pill:hover {
  background: #e2e8f0;
}

/* ANIMATION */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pos-topbar.modern {
  position: relative;
  height: 64px;
  padding: 0 18px;
  background: #ffffff;
  border-bottom: 1px solid #e6ecff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* LEFT */
.top-left {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

/* CENTER — TRUE CENTER */
.top-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* RIGHT */
.top-right {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}
.discount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.discount-btn {
  background: #f1f5f9;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.discount-info {
  color: #dc2626;
  font-weight: 700;
}

.discount-info button {
  margin-left: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.cart-discount {
  margin: 10px 0;
}

.discount-btn {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  font-weight: 600;
  cursor: pointer;
}

.discount-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.discount-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  background: #ecfeff;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.discount-applied .amount {
  color: #16a34a;
}

.discount-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.discount-modal > div {
  background: #fff;
  padding: 16px;
  border-radius: 14px;
  width: 280px;
}

.discount-modal input,
.discount-modal select {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
}

.discount-modal .actions {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.discount-modal .apply {
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  padding: 8px 14px;
}
.discount-row {
  color: #d97706;
  font-weight: 600;
}




/* WIDE METRICS TILE */
.nav-wide {
  flex: 0 0 220px;              /* 🔥 wider than normal buttons */
  scroll-snap-align: start;

  align-items: flex-start;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
}

/* METRIC LINES */
.metric-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* NORMAL NAV ITEMS */
.nav-item:not(.nav-wide) {
  flex: 0 0 72px;
}

/* ICON + LABEL */
.icon {
  font-size: 20px;
}

.label {
  font-size: 11px;
}

/* BACKDROP */

.modal-backdrop{
position:fixed;
inset:0;
background:rgba(0,0,0,0.35);
display:flex;
align-items:center;
justify-content:center;
z-index:999;
}

/* MODAL */

.payment-modal{
background:white;
padding:28px;
border-radius:16px;
width:380px;
box-shadow:0 20px 60px rgba(0,0,0,0.2);
text-align:center;
}

/* TITLE */

.payment-title{
font-size:22px;
font-weight:600;
margin-bottom:10px;
}

/* TOTAL */

.payment-total{
font-size:32px;
font-weight:700;
margin-bottom:20px;
color:#111827;
}

/* BUTTON GRID */

.payment-grid{
display:flex;
gap:14px;
margin-bottom:20px;
}

/* BUTTON */

.payment-btn{
flex:1;
padding:18px;
font-size:18px;
border-radius:12px;
border:none;
cursor:pointer;
font-weight:600;
transition:0.2s;
}

/* CASH */

.payment-btn.cash{
background:#16a34a;
color:white;
}

.payment-btn.cash:hover{
background:#15803d;
}

/* UPI */

.payment-btn.upi{
background:#2563eb;
color:white;
}

.payment-btn.upi:hover{
background:#1d4ed8;
}

/* CANCEL */

.payment-cancel{
background:#f3f4f6;
border:none;
padding:10px 18px;
border-radius:8px;
cursor:pointer;
}

/* CASH MODAL */

.cash-modal{
background:white;
padding:30px;
border-radius:18px;
width:420px;
box-shadow:0 25px 70px rgba(0,0,0,0.25);
text-align:center;
}

/* TITLE */

.cash-title{
font-size:22px;
font-weight:600;
margin-bottom:10px;
}

/* TOTAL */

.cash-total{
font-size:20px;
margin-bottom:15px;
color:#374151;
}

/* INPUT */

.cash-input{
width:100%;
padding:14px;
font-size:18px;
border-radius:10px;
border:1px solid #d1d5db;
margin-bottom:16px;
}

/* QUICK CASH */

.quick-cash{
display:flex;
gap:10px;
justify-content:center;
margin-bottom:18px;
}

.quick-cash button{
padding:10px 14px;
border-radius:8px;
border:1px solid #d1d5db;
background:#f9fafb;
cursor:pointer;
font-weight:600;
}

.quick-cash button:hover{
background:#f3f4f6;
}

/* CHANGE BOX */

.change-box{
background:#f1f5f9;
padding:14px;
border-radius:10px;
font-size:18px;
margin-bottom:20px;
display:flex;
justify-content:space-between;
font-weight:600;
}

.change-box span{
color:#16a34a;
font-size:22px;
}

/* ACTION BUTTONS */

.modal-actions{
display:flex;
justify-content:flex-end;
gap:10px;
}

.cancel-btn{
background:#e5e7eb;
border:none;
padding:10px 18px;
border-radius:8px;
cursor:pointer;
}

.confirm-btn{
background:#16a34a;
color:white;
border:none;
padding:10px 18px;
border-radius:8px;
cursor:pointer;
}

.confirm-btn:hover{
background:#15803d;
}
.cart-actions{
display:flex;
flex-direction:column;
gap:10px;
margin-top:10px;
}

/* ADD ITEM */

.btn-add-item{
padding:14px;
border-radius:10px;
border:none;
background:#eef2ff;
color:#4338ca;
font-weight:600;
font-size:15px;
cursor:pointer;
transition:0.2s;
}

.btn-add-item:hover{
background:#e0e7ff;
}

/* DISCOUNT */

.btn-discount{
padding:14px;
border-radius:10px;
border:1px dashed #cbd5e1;
background:#f8fafc;
font-weight:600;
cursor:pointer;
transition:0.2s;
}

.btn-discount:hover{
background:#f1f5f9;
}

/* PAY BUTTON */

.btn-pay{
padding:16px;
border-radius:12px;
border:none;
background:linear-gradient(135deg,#16a34a,#22c55e);
color:white;
font-size:18px;
font-weight:700;
cursor:pointer;
transition:0.2s;
}

.btn-pay:hover{
transform:translateY(-1px);
box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.btn-pay:disabled{
background:#e5e7eb;
color:#9ca3af;
cursor:not-allowed;
box-shadow:none;
}
.cart-actions{
display:flex;
flex-direction:column;
gap:10px;
margin-top:10px;
}

/* row layout */

.cart-row{
display:grid;
grid-template-columns:1fr auto auto;
gap:10px;
align-items:center;
}

/* ADD ITEM */

.btn-add-item{
padding:14px;
border-radius:10px;
border:none;
background:#eef2ff;
color:#4338ca;
font-weight:600;
cursor:pointer;
}

/* DISCOUNT */

.btn-discount{
padding:14px;
border-radius:10px;
border:1px dashed #cbd5e1;
background:#f8fafc;
font-weight:600;
cursor:pointer;
}

/* PAY BUTTON */

.btn-pay{
padding:16px;
border-radius:12px;
border:none;
background:#16a34a;
color:white;
font-size:18px;
font-weight:700;
cursor:pointer;
}

.btn-pay:disabled{
background:#e5e7eb;
color:#9ca3af;
cursor:not-allowed;
}


.quick-cash button:hover{
background:#f1f5f9;
}

.quick-cash{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:10px;
margin-top:12px;
width:100%;
}

.quick-cash button{
padding:10px 8px;
border-radius:8px;
border:1px solid #d1d5db;
background:#f9fafb;
font-weight:600;
cursor:pointer;
transition:0.2s;
width:100%;
white-space:nowrap;
}

.cash-modal{
width:460px;
max-width:95%;
}
.modal-backdrop{
position:fixed;
inset:0;
background:rgba(0,0,0,0.35);
display:flex;
align-items:center;
justify-content:center;
z-index:999;
}

.modal-card{
background:#fff;
border-radius:16px;
padding:24px;
width:420px;
box-shadow:0 25px 60px rgba(0,0,0,0.2);
display:flex;
flex-direction:column;
gap:12px;
}

.drag-bar{
width:40px;
height:5px;
background:#e5e7eb;
border-radius:4px;
margin:0 auto 6px;
}

.modal-title{
text-align:left;
font-size:20px;
font-weight:600;
margin-bottom:8px;
}

/* IMAGE */

.image-editor{
display:flex;
align-items:center;
gap:12px;
}

.product-preview{
width:70px;
height:70px;
-o-object-fit:cover;
   object-fit:cover;
border-radius:10px;
border:1px solid #e5e7eb;
}

.file-upload input{
padding:8px;
border-radius:8px;
border:1px solid #e5e7eb;
}

/* INPUTS */

input{
padding:10px;
border-radius:8px;
border:1px solid #e5e7eb;
font-size:14px;
}

label{
font-size:13px;
color:#555;
margin-top:6px;
}

/* STOCK */

.stock-editor{
display:flex;
align-items:center;
gap:8px;
}

.step-btn{
width:36px;
height:36px;
border-radius:8px;
border:none;
background:#f1f5f9;
font-size:18px;
cursor:pointer;
}

.step-btn:hover{
background:#e2e8f0;
}

.stock-editor input{
text-align:center;
width:100%;
}

/* ERROR */

.error{
color:#dc2626;
font-size:13px;
}

/* ACTIONS */

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

.btn{
padding:10px 18px;
border-radius:8px;
border:none;
font-weight:600;
cursor:pointer;
}

.btn.cancel{
background:#e5e7eb;
}

.btn.save{
background:#16a34a;
color:white;
}

.btn.save:hover{
background:#15803d;
}


.receipt-line {
  display: grid;
  grid-template-columns: 1fr 28px 58px;
  gap: 3px;
  align-items: start;
  margin: 2px 0;
}

.receipt-name {
  word-break: break-word;
}

.receipt-qty {
  text-align: center;
  white-space: nowrap;
}

.receipt-amt {
  text-align: right;
  white-space: nowrap;
}

@media print {
  .receipt,
  .receipt > * {
    page-break-inside: avoid !important;
    -moz-column-break-inside: avoid !important;
         break-inside: avoid !important;
  }
}

.receipt-table-header,
.receipt-table-row {
  display: grid;
  grid-template-columns: 1fr 35px 70px;
  gap: 4px;
  align-items: start;
}

.receipt-table-header {
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
  padding: 3px 0;
  margin: 6px 0 4px;
  font-weight: bold;
}

.receipt-table-row {
  padding: 2px 0;
}

.receipt-item-name {
  word-break: break-word;
  line-height: 1.2;
}

.receipt-item-qty {
  text-align: center;
  white-space: nowrap;
}

.receipt-item-amt {
  text-align: right;
  white-space: nowrap;
}

.total-row {
  font-size: 14px;
}

.thankyou {
  margin-top: 5px;
}.analog-clock {
  width: 40px;
  height: 40px;
  margin-left: 16px;
}

.dial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #90de08;   /* softer border */
  background: #f5f5fa;         /* light dial */
  position: relative;
}


.hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom;
  transform: translateX(-50%);
}

.hour {
  width: 4px;
  height: 16px;
  background: #222;
  border-radius: 2px;
}

.minute {
  width: 3px;
  height: 22px;
  background: #333;
  border-radius: 2px;
}

.second {
  width: 2px;
  height: 26px;
  background: #ff4d4d;
  border-radius: 2px;
}

.center-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgb(31, 58, 5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}.upi-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.upi-modal {
  background: white;
  width: 360px;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
}

.upi-amount {
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0;
  color: #2e7d32;
}

.upi-qr {
  margin: 12px 0;
  border-radius: 12px;
}

.upi-id {
  margin-bottom: 16px;
  font-size: 14px;
}

.upi-actions {
  display: flex;
  gap: 12px;
}

.upi-actions .btn {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: none;
}

.btn.cancel {
  background: #eee;
}

.btn.success {
  background: #2e7d32;
  color: white;
}
.btn.intent {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #1565c0;
  color: white;
  border-radius: 6px;
  border: none;
}

/* 🧭 Bottom Nav Container */
.pos-bottom-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  font-family: system-ui, sans-serif;

  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.pos-bottom-nav::-webkit-scrollbar {
  display: none;
}

/* 📊 LEFT METRICS (Orders + Revenue) */
.nav-item.nav-wide {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  background: #f8fafc;
  border-radius: 16px;
  font-weight: 600;
  flex-shrink: 0;
}

/* 💰 Revenue text */
.revenue {
  font-weight: 700;
  font-size: 18px;
  color: #16a34a;
  transition: transform 0.2s ease;
}

/* 🔥 Revenue flash animation */
.revenue.flash {
  animation: revenuePulse 0.45s ease-in-out;
}

@keyframes revenuePulse {
  0% {
    transform: scale(1);
    color: #16a34a;
  }
  50% {
    transform: scale(1.12);
    color: #22c55e;
  }
  100% {
    transform: scale(1);
    color: #16a34a;
  }
}

/* 🧭 NAV LINKS */
.nav-item {
  min-width: 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 4px;
  padding: 8px 12px;
  border-radius: 14px;

  color: #64748b;
  text-decoration: none;
  font-weight: 500;

  transition: all 0.2s ease;
  flex-shrink: 0;
}

/* ICON */
.nav-item > span:first-child,
.nav-item svg {
  font-size: 20px;
  line-height: 1;
}

/* LABEL */
.nav-item span {
  font-size: 12px;
  white-space: nowrap;
}

/* HOVER */
.nav-item:hover {
  background: #f1f5f9;
}

/* ACTIVE */
.nav-item.active {
  background: #e0e7ff;
  color: #2563eb;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #2563eb;
}
/* 🧭 Bottom Nav – force single row */
.pos-bottom-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  height: 64px;               /* 🔥 lock height */
  background: #ffffff;
  border-top: 1px solid #e5e7eb;

  overflow-x: auto;
  white-space: nowrap;
}

/* 📊 METRICS PILL */
.nav-item.nav-wide {
  display: flex;
  align-items: center;
  gap: 14px;

  height: 44px;               /* 🔥 same as nav items */
  padding: 0 16px;

  background: #f8fafc;
  border-radius: 999px;
  font-weight: 600;

  flex-shrink: 0;
}

/* 🧾 Orders text */
.nav-item.nav-wide > div:first-child {
  color: #475569;
  font-size: 14px;
}

/* 💰 Revenue */
.revenue {
  font-weight: 700;
  font-size: 16px;
  color: #16a34a;
  display: flex;
  align-items: center;
}

/* 🔥 Revenue flash */
.revenue.flash {
  animation: revenuePulse 0.45s ease-in-out;
}

/* 🧭 NAV ITEMS */
.nav-item {
  height: 44px;               /* 🔥 match metrics */
  min-width: 88px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 2px;
  padding: 6px 12px;
  border-radius: 999px;

  color: #64748b;
  font-weight: 500;
  text-decoration: none;

  flex-shrink: 0;
  transition: all 0.2s ease;
}

/* ICON */
.nav-item > span:first-child {
  font-size: 18px;
  line-height: 1;
}

/* LABEL */
.nav-item span {
  font-size: 11px;
}

/* ACTIVE TAB */
.nav-item.active {
  background: #e0e7ff;
  color: #2563eb;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 #2563eb;
}

/* HOVER */
.nav-item:hover {
  background: #f1f5f9;
}
/* Make reports page fill POS screen */
.reports-page {
  width: 100%;
  height: calc(100vh - 110px); /* header + bottom nav */
  display: flex;
  flex-direction: column;
   background: linear-gradient(#f8fafc, #eef2f7);
}
/* Center content container */
.reports-page .page-content {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
/* Main card holding report tables */
.reports-page .table-box {
  width: 100%;
  max-width: 980px;   /* ✅ Perfect tablet width */
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  padding: 12px 16px;
}

/* Toolbar also centered */
.reports-page .page-toolbar {
  background: white;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  border-bottom: 1px solid #eee;
}
.reports-page h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0f172a;
}

/* Tabs styling */
.report-tabs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.report-tabs button {
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: #f1f1f1;
  font-weight: 600;
  cursor: pointer;
}

.report-tabs button.active {
  background: #2563eb;
  color: white;
}

/* Tables */
.table-box table {
  width: 100%;
  border-collapse: collapse;
}

.table-box th {
  background: #f8fafc;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
}
.table-box td {
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

/* Status pills reused */
.status-ok {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
}

.status-pending {
  background: #fee2e2;
  color: #991b1b;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 12px;
}
/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

/* KPI Card */
.kpi-card {
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover feel (nice on desktop, harmless on POS) */
.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* Label */
.kpi-card .label {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Value */
.kpi-card .value {
  font-size: 30px;
  font-weight: 800;
  margin-top: 6px;
  color: #0f172a;
}

/* Special Accent Card */
.kpi-card.subtle {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border-color: #bbf7d0;
}

.kpi-card.subtle .value {
  color: #15803d;
}

/* Chart Card */
.chart-card {
  margin-top: 24px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.chart-card h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

/* Bar Chart Layout */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  height: 160px;
  padding: 8px 4px;
}

/* Individual Bar */
.bar-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Bar Style */
.bar {
  width: 100%;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-radius: 8px 8px 4px 4px;
  transition: 0.3s;
}

/* Hover effect */
.bar:hover {
  background: linear-gradient(180deg, #22c55e, #15803d);
}
/* Line Chart Wrapper */
.line-chart-wrapper {
  margin-top: 10px;
}

/* SVG size */
.line-chart {
  width: 100%;
  height: 160px;
}

/* Background grid */
.grid-line {
  fill: none;
  stroke: #e5e7eb;
  stroke-width: 1;
}

/* Main sales line */
.sales-line {
  fill: none;
  stroke: #22c55e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Data dots */
.sales-dot {
  fill: #22c55e;
  stroke: #fff;
  stroke-width: 2;
}

/* X labels */
.line-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -6px;
  font-size: 12px;
  color: #64748b;
}
/* Main two-column layout */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr; /* KPIs left, Charts right */
  gap: 22px;
  margin-top: 20px;
}

/* KPI grid stays as before */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Charts right column */
.charts-column {
  display: grid;
  gap: 16px;
}

/* Chart card styling */
.chart-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.report-tabs {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.report-tabs button {
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  background: #eee;
  cursor: pointer;
  font-size: 14px;
}

.report-tabs button.active {
  background: #2563eb;
  color: white;
}

.date-filter-bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-filter-bar label {
  font-size: 13px;
  font-weight: 600;
}

.date-filter-bar input {
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
}

.date-filter-bar button.primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.report-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.report-filter-bar label {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.report-filter-bar input {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
}

.report-filter-bar button {
  padding: 6px 14px;
  border-radius: 6px;
}
.report-pill-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.report-pill-bar button {
  padding: 6px 14px;
  border-radius: 18px;
  background: #f1f1f1;
  font-size: 13px;
  border: none;
  cursor: pointer;
}

.report-pill-bar button:hover {
  background: #e2e2e2;
}

.report-pill-bar button.active {
  background: #2563eb;
  color: white;
}
.report-pill-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.pill {
  background: #f1f5f9;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.pill:hover {
  background: #e2e8f0;
}

.pill.active {
  background: #2563eb;
  color: white;
  box-shadow: 0 0 0 1px #2563eb;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
}

.modal-card {
  background: white;
  width: 100%;
  max-width: 420px;
  border-radius: 18px 18px 0 0;
  padding: 16px;
  animation: slideUp .25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.drag-bar {
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 10px;
  margin: 0 auto 10px;
}

.modal-card label {
  font-size: 13px;
  font-weight: 600;
}

.modal-card input {
  width: 100%;
  padding: 10px;
  margin: 6px 0 12px;
  font-size: 16px;
}

.image-editor {
  display: flex;
  gap: 12px;
  align-items: center;
}

.image-editor img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  border: 1px solid #ddd;
}

.stock-editor {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stock-editor button {
  width: 40px;
  height: 40px;
  font-size: 22px;
  border-radius: 8px;
  border: none;
  background: #eee;
}

.stock-editor input {
  text-align: center;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
}

.cancel {
  background: #eee;
}

.save {
  background: #4caf50;
  color: white;
}

.error {
  color: red;
  font-size: 13px;
}
.materials-page {
  padding: 20px 24px 80px;
  font-family: "Inter", system-ui, sans-serif;
  background: #f7f8fa;
  min-height: 100vh;
}

/* Page title */
.materials-page h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Create bar */
.create-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}

.create-bar input,
.create-bar select {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  min-width: 120px;
}

.create-bar button {
  background: #6c5ce7;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
}

.create-bar button:hover {
  background: #5a4ad1;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}

.toolbar input[type="text"],
.toolbar input {
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

/* Table */
.materials-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.materials-table th {
  background: #f0f2f5;
  font-weight: 600;
  font-size: 14px;
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.materials-table td {
  padding: 10px;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

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

/* Status pill */
.status-ok {
  background: #e6f9ee;
  color: #1a9b50;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

.status-low {
  background: #ffeaea;
  color: #e53935;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 12px;
}

/* Action buttons */
.actions {
  display: flex;
  gap: 8px;
}

.actions button {
  border: none;
  background: #f4f4f4;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 15px;
}

.actions button:hover {
  background: #e9e9e9;
}

.actions .danger {
  color: #e53935;
}

/* Tablet responsive */
@media (max-width: 900px) {
  .materials-page {
    padding: 12px;
  }

  .create-bar {
    gap: 8px;
  }

  .materials-table th,
  .materials-table td {
    font-size: 13px;
    padding: 8px;
  }
}
/* ===== MODAL BACKDROP ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* ===== MODAL CARD ===== */
.modal-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  width: 360px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: pop 0.15s ease-out;
}

@keyframes pop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

/* Inputs */
.modal-card label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  display: block;
}

.modal-card input,
.modal-card select {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* Buttons */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions button {
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.modal-actions .primary {
  background: #6c5ce7;
  color: white;
}

.modal-actions .primary:hover {
  background: #5a4ad1;
}
/* ===== POS MODAL BACKDROP ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* ===== POS MODAL CARD ===== */
.pos-modal {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  animation: pop 0.15s ease-out;
}

@keyframes pop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Modal form layout */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.modal-form input,
.modal-form select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Modal buttons */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
/* ============================= */
/*   PURCHASE ORDERS - STYLES    */
/*   (inherits Product Admin UI) */
/* ============================= */

/* Status Pills */
.status-ok {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-partial {
  background: #fef3c7;
  color: #92400e;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.status-pending {
  background: #e0e7ff;
  color: #3730a3;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Receive Button */
.po-receive-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.po-receive-btn:hover {
  background: #1e40af;
}

/* Table spacing matches Product Admin */
.po-table {
  width: 100%;
  border-collapse: collapse;
}

.po-table th,
.po-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
}
/* ===== Match Product Admin table container ===== */
.po-page .table-box {
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ===== Table base ===== */
.po-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/* ===== Header styling ===== */
.po-table thead {
  background: #f4f6f8;
}

.po-table th {
  padding: 10px;
  text-align: center;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

/* ===== Row cells ===== */
.po-table td {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

/* ===== Hover effect ===== */
.po-table tbody tr:hover {
  background: #f9fbff;
}

/* ===== Row height consistency ===== */
.po-table tbody tr {
  height: 52px;
}

/* ===== Status Pills (already good — just align center) */
.status-ok,
.status-partial,
.status-pending {
  display: inline-block;
  min-width: 70px;
  text-align: center;
}

/* ===== Receive button size match ===== */
.po-receive-btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
}

/* ===== Keep Action column from shrinking ===== */
.po-table td:last-child {
  white-space: nowrap;
  width: 120px;
}
.page-toolbar h2 {
  margin-bottom: 8px;
  font-size: 20px;
}.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-card {
  background: #ffffff;
  width: 380px;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: pop 0.18s ease-out;
  font-family: system-ui, sans-serif;
}

@keyframes pop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-card h3 {
  margin: 0;
  font-size: 18px;
}

.po-number {
  color: #666;
  margin-bottom: 14px;
  font-size: 13px;
}

.modal-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.modal-row input {
  width: 90px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  text-align: center;
}

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

.btn-primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-secondary {
  background: #eee;
  border: none;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #ddd;
}
.modal-card.large {
  width: 720px;
}

.invoice-head {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}

.invoice-head div {
  flex: 1;
}

.invoice-head input {
  width: 100%;
  padding: 6px;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.invoice-table th,
.invoice-table td {
  border-bottom: 1px solid #eee;
  padding: 8px;
  text-align: center;
}

.invoice-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.invoice-footer .total {
  font-size: 18px;
  font-weight: bold;
}
.invoice-table th,
.invoice-table td {
  padding: 10px;
  text-align: center;
}
@page {
  size: 80mm auto;
  margin: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-family: "Courier New", monospace;
}

.receipt {
  width: 72mm;
  margin: 0 auto;
  padding: 4mm;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- HEADER ---------- */

.center {
  text-align: center;
}

.store-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.store-branch {
  font-size: 12px;
  margin-top: 2px;
}

.bold {
  font-weight: 900;
}

.small {
  font-size: 10px;
}

.tiny {
  font-size: 9px;
}

/* ---------- DIVIDERS ---------- */

.divider {
  border-top: 1px dashed #000;
  margin: 6px 0;
}

/* ---------- INFO ROWS ---------- */

.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0;
}

.row span:first-child {
  flex: 1;
}

.row span:last-child {
  text-align: right;
  font-weight: 700;
}

.receipt-info {
  margin-bottom: 6px;
}

/* ---------- ITEMS ---------- */

.receipt-table-header,
.receipt-table-row {
  display: grid;
  grid-template-columns: 1fr 40px 75px;
  gap: 4px;
  align-items: center;
}

.receipt-table-header {
  font-weight: 900;
  padding: 4px 0;
  border-top: 1px dashed #000;
  border-bottom: 1px dashed #000;
  margin-bottom: 2px;
}

.receipt-table-row {
  padding: 3px 0;
}

.receipt-item-name {
  word-break: break-word;
}

.receipt-item-qty {
  text-align: center;
}

.receipt-item-amt {
  text-align: right;
}

/* ---------- TOTALS ---------- */

.total-section {
  margin-top: 4px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
  padding: 4px 0;
}

.total-row span:last-child {
  font-size: 20px;
}

/* ---------- PAYMENT ---------- */

.payment-section {
  text-align: center;
  margin-top: 6px;
  font-weight: 700;
}

.txn {
  margin-top: 2px;
  font-size: 10px;
  word-break: break-all;
}

/* ---------- FOOTER ---------- */

.thankyou {
  text-align: center;
  margin-top: 8px;
}

.thankyou-message {
  font-size: 13px;
  font-weight: 800;
}

.powered {
  font-size: 10px;
  margin-top: 3px;
}

.footer-note {
  font-size: 9px;
  margin-top: 3px;
}

/* ---------- PRINT ---------- */

@media print {
  html,
  body {
    width: 80mm;
    background: white;
  }

  .receipt {
    width: 72mm;
    padding: 3mm;
    margin: 0;
  }

  .Toastify,
  .Toastify__toast-container,
  .Toastify__toast,
  [role="alert"],
  .toast,
  .notification,
  .snackbar {
    display: none !important;
    visibility: hidden !important;
  }

  button,
  .no-print {
    display: none !important;
  }
}.daily-report-container {
  min-height: 100vh;
  padding: 32px;
  max-width: none;
  background: linear-gradient(135deg, #f4f8ff, #eef3f8);
  font-family: "Inter", system-ui, sans-serif;
  color: #0f172a;
}

/* Header */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.report-subtitle {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 4px;
}

.daily-report-heading {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

/* Controls */
.daily-report-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.daily-report-controls button,
.date-input,
.select-mode {
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d0d7e2;
  padding: 0 16px;
  font-size: 15px;
  background: #ffffff;
}

.date-input,
.select-mode {
  color: #0f172a;
  outline: none;
}

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

.btn-home {
  background: #2563eb !important;
  color: white;
  border: none !important;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-export {
  color: white;
  border: none !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
}

.btn-export:hover,
.btn-home:hover {
  transform: translateY(-1px);
}

.btn-export:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.excel {
  background: #16a34a !important;
}

.pdf {
  background: #dc2626 !important;
}

/* Tenant Banner */
.tenant-banner {
  margin: 4px 0 24px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #ffffff;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.tenant-info h3 {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.tenant-label {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tenant-meta {
  display: flex;
  gap: 42px;
}

.tenant-meta div {
  text-align: right;
}

.tenant-meta span {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.tenant-meta strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  color: #ffffff;
}

/* Summary Cards */
.report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 18px;
  margin: 20px 0 24px;
}

.summary-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  min-height: 100px;
  border-left: 5px solid #2563eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: all 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-card:nth-child(2) {
  border-left-color: #f59e0b;
}

.summary-card:nth-child(3) {
  border-left-color: #16a34a;
}

.summary-card span {
  display: block;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 10px;
}

.summary-card strong {
  font-size: 28px;
  color: #0f172a;
}

.summary-card.amount strong {
  color: #16a34a;
}

/* Table Card */
.table-card {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.table-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.table-title-row h3 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.table-title-row span {
  color: #64748b;
  font-size: 14px;
}

/* Table */
.daily-report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.daily-report-table thead {
  background: linear-gradient(90deg, #2563eb, #0284c7);
  color: white;
}

.daily-report-table th {
  padding: 15px 16px;
  font-size: 14px;
  text-align: left;
  letter-spacing: 0.4px;
  font-weight: 800;
}

.daily-report-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: #1e293b;
  border-bottom: 1px solid #eef2f7;
}

.daily-report-table tbody tr {
  height: 54px;
  transition: all 0.2s ease;
}

.daily-report-table tbody tr:hover {
  background: #eff6ff;
}

.daily-report-table th:first-child,
.daily-report-table td:first-child {
  text-align: left !important;
}

.daily-report-table td:first-child {
  padding-left: 24px;
  font-weight: 500;
}

.center {
  text-align: center !important;
}

.right {
  text-align: right !important;
}

/* Total Row */
.grand-total-row td {
  background: #e0f2fe;
  color: #0c4a6e;
  font-weight: 800;
  font-size: 15px;
  border-top: 2px solid #0284c7;
}

.no-data-message {
  text-align: center;
  padding: 35px !important;
  color: #64748b;
}

/* Mobile */
@media (max-width: 768px) {
  .daily-report-container {
    padding: 24px 16px;
  }

  .report-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .daily-report-heading {
    font-size: 24px;
  }

  .daily-report-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .daily-report-controls button,
  .date-input,
  .select-mode {
    width: 100%;
  }

  .tenant-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 20px;
  }

  .tenant-info h3 {
    font-size: 20px;
  }

  .tenant-meta {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .tenant-meta div {
    text-align: left;
  }

  .report-summary {
    grid-template-columns: 1fr;
  }

  .table-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .daily-report-table {
    min-width: 600px;
  }

  .table-card {
    overflow-x: auto;
  }
/* Sales Chart */
.chart-card {
  margin-top: 24px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}
.chart-card .table-title-row {
  padding: 16px 22px;
}
.chart-wrapper {
  width: 100%;
  height: 320px;
  padding: 4px 24px 0px;
}

.chart-wrapper .recharts-cartesian-grid line {
  stroke: #e5e7eb;
}

.chart-wrapper .recharts-text {
  font-size: 12px;
  fill: #64748b;
}

.chart-wrapper .recharts-tooltip-wrapper {
  border-radius: 12px;
}
  
}