/* Tailwind CSS directives */
*, ::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:  ;
}
/* ! tailwindcss v3.4.18 | 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 */ /* 3 */
  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::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]:where(:not([hidden="until-found"])) {
  display: none;
}
:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
  }
* {
  border-color: hsl(214.3 31.8% 91.4%);
  border-color: hsl(var(--border));
}
body {
  color: hsl(222.2 84% 4.9%);
  color: hsl(var(--foreground));
}
.container {
  width: 100%;
}
@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.collapse {
  visibility: collapse;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: -webkit-sticky;
  position: sticky;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.max-h-96 {
  max-height: 24rem;
}
.w-20 {
  width: 5rem;
}
.w-3 {
  width: 0.75rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-full {
  width: 100%;
}
.max-w-32 {
  max-width: 8rem;
}
.flex-1 {
  flex: 1 1;
}
.border-collapse {
  border-collapse: collapse;
}
.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));
}
.resize {
  resize: both;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.justify-end {
  justify-content: flex-end;
}
.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-6 {
  gap: 1.5rem;
}
.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-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.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));
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
  border-radius: var(--radius);
}
.border {
  border-width: 1px;
}
.border-2 {
  border-width: 2px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / 1);
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
}
.border-blue-600 {
  --tw-border-opacity: 1;
  border-color: rgb(37 99 235 / 1);
  border-color: rgb(37 99 235 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / 1);
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / 1);
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / 1);
  border-color: rgb(187 247 208 / var(--tw-border-opacity, 1));
}
.border-indigo-200 {
  --tw-border-opacity: 1;
  border-color: rgb(199 210 254 / 1);
  border-color: rgb(199 210 254 / var(--tw-border-opacity, 1));
}
.border-orange-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 215 170 / 1);
  border-color: rgb(254 215 170 / var(--tw-border-opacity, 1));
}
.border-purple-200 {
  --tw-border-opacity: 1;
  border-color: rgb(233 213 255 / 1);
  border-color: rgb(233 213 255 / var(--tw-border-opacity, 1));
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / 1);
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.border-red-500 {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / 1);
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.border-teal-200 {
  --tw-border-opacity: 1;
  border-color: rgb(153 246 228 / 1);
  border-color: rgb(153 246 228 / var(--tw-border-opacity, 1));
}
.border-yellow-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 240 138 / 1);
  border-color: rgb(254 240 138 / var(--tw-border-opacity, 1));
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / 1);
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(96 165 250 / 1);
  background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
}
.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / 1);
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / 1);
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / 1);
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / 1);
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / 1);
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-green-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(74 222 128 / 1);
  background-color: rgb(74 222 128 / var(--tw-bg-opacity, 1));
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / 1);
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / 1);
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / 1);
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-yellow-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / 1);
  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}
.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}
.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-gray-50 {
  --tw-gradient-from: #f9fafb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(249 250 251 / 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-indigo-50 {
  --tw-gradient-from: #eef2ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(238 242 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-orange-50 {
  --tw-gradient-from: #fff7ed var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 247 237 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-50 {
  --tw-gradient-from: #faf5ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(250 245 255 / 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-teal-50 {
  --tw-gradient-from: #f0fdfa var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(240 253 250 / 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);
}
.to-blue-100 {
  --tw-gradient-to: #dbeafe var(--tw-gradient-to-position);
}
.to-gray-100 {
  --tw-gradient-to: #f3f4f6 var(--tw-gradient-to-position);
}
.to-green-100 {
  --tw-gradient-to: #dcfce7 var(--tw-gradient-to-position);
}
.to-indigo-100 {
  --tw-gradient-to: #e0e7ff var(--tw-gradient-to-position);
}
.to-orange-100 {
  --tw-gradient-to: #ffedd5 var(--tw-gradient-to-position);
}
.to-purple-100 {
  --tw-gradient-to: #f3e8ff var(--tw-gradient-to-position);
}
.to-red-100 {
  --tw-gradient-to: #fee2e2 var(--tw-gradient-to-position);
}
.to-teal-100 {
  --tw-gradient-to: #ccfbf1 var(--tw-gradient-to-position);
}
.to-yellow-100 {
  --tw-gradient-to: #fef9c3 var(--tw-gradient-to-position);
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.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-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.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;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}
.italic {
  font-style: italic;
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / 1);
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / 1);
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
.text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(30 58 138 / 1);
  color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / 1);
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / 1);
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / 1);
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / 1);
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / 1);
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / 1);
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}
.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(22 101 52 / 1);
  color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}
.text-green-900 {
  --tw-text-opacity: 1;
  color: rgb(20 83 45 / 1);
  color: rgb(20 83 45 / var(--tw-text-opacity, 1));
}
.text-indigo-700 {
  --tw-text-opacity: 1;
  color: rgb(67 56 202 / 1);
  color: rgb(67 56 202 / var(--tw-text-opacity, 1));
}
.text-indigo-900 {
  --tw-text-opacity: 1;
  color: rgb(49 46 129 / 1);
  color: rgb(49 46 129 / var(--tw-text-opacity, 1));
}
.text-orange-600 {
  --tw-text-opacity: 1;
  color: rgb(234 88 12 / 1);
  color: rgb(234 88 12 / var(--tw-text-opacity, 1));
}
.text-orange-700 {
  --tw-text-opacity: 1;
  color: rgb(194 65 12 / 1);
  color: rgb(194 65 12 / var(--tw-text-opacity, 1));
}
.text-orange-900 {
  --tw-text-opacity: 1;
  color: rgb(124 45 18 / 1);
  color: rgb(124 45 18 / var(--tw-text-opacity, 1));
}
.text-purple-700 {
  --tw-text-opacity: 1;
  color: rgb(126 34 206 / 1);
  color: rgb(126 34 206 / var(--tw-text-opacity, 1));
}
.text-purple-900 {
  --tw-text-opacity: 1;
  color: rgb(88 28 135 / 1);
  color: rgb(88 28 135 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / 1);
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / 1);
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / 1);
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}
.text-red-900 {
  --tw-text-opacity: 1;
  color: rgb(127 29 29 / 1);
  color: rgb(127 29 29 / var(--tw-text-opacity, 1));
}
.text-teal-700 {
  --tw-text-opacity: 1;
  color: rgb(15 118 110 / 1);
  color: rgb(15 118 110 / var(--tw-text-opacity, 1));
}
.text-teal-900 {
  --tw-text-opacity: 1;
  color: rgb(19 78 74 / 1);
  color: rgb(19 78 74 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / 1);
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}
.text-yellow-700 {
  --tw-text-opacity: 1;
  color: rgb(161 98 7 / 1);
  color: rgb(161 98 7 / var(--tw-text-opacity, 1));
}
.text-yellow-800 {
  --tw-text-opacity: 1;
  color: rgb(133 77 14 / 1);
  color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}
.text-yellow-900 {
  --tw-text-opacity: 1;
  color: rgb(113 63 18 / 1);
  color: rgb(113 63 18 / var(--tw-text-opacity, 1));
}
.underline {
  -webkit-text-decoration-line: underline;
          text-decoration-line: underline;
}
.line-through {
  -webkit-text-decoration-line: line-through;
          text-decoration-line: line-through;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.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: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline {
  outline-style: solid;
}
.blur {
  --tw-blur: blur(8px);
  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);
}
.grayscale {
  --tw-grayscale: grayscale(100%);
  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);
}
.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, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.btn-primary {
  border-radius: 0px;
  background-color: #d4af37;
  background-color: var(--color-gold);
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  --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: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
  background-color: #b8941f;
  background-color: var(--color-gold-dark);
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.btn-primary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }
.btn-secondary {
  border-radius: 0px;
  border-width: 2px;
  border-color: #d4af37;
  border-color: var(--color-gold);
  padding-left: 2rem;
  padding-right: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  color: #d4af37;
  color: var(--color-gold);
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}
.btn-secondary:hover {
  background-color: #d4af37;
  background-color: var(--color-gold);
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / 1);
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.btn-secondary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

/* Shadcn/ui layer */

/* Modern Design System for Inventory Management */
:root {
  /* Premium Textile Color Palette */
  --color-charcoal: #2b2d2f;
  --color-ivory: #f8f6f3;
  --color-gold: #d4af37;
  --color-gold-light: #e8d4a0;
  --color-gold-dark: #b8941f;

  /* Color Palette */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --success-50: #ecfdf5;
  --success-500: #10b981;
  --success-600: #059669;

  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-urdu: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaleeq', 'Pak Nastaleeq', 'Urdu Typesetting', 'Arabic Typesetting', 'Times New Roman', serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Force scrollbar to always be visible to prevent layout shift */
html {
  overflow-y: scroll;
  overflow-x: hidden;
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-family: var(--font-sans);
  background-color: #f9fafb;
  background-color: var(--gray-50);
  color: #111827;
  color: var(--gray-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  width: 100%;
  /* Prevent body from creating its own scrollbar */
  overflow-x: hidden;
}

/* Layout Components */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}

.main-content {
  flex: 1 1;
  padding: 1.5rem;
  padding: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Card Component */
.card {
  background: white;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
  overflow: visible;
  transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 1.5rem;
  padding: var(--space-6);
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--gray-200);
  background: #f9fafb;
  background: var(--gray-50);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  color: var(--gray-900);
  margin: 0;
}

.card-subtitle {
  font-size: 0.875rem;
  color: #4b5563;
  color: var(--gray-600);
  margin-top: 0.25rem;
  margin-top: var(--space-1);
}

.card-body {
  padding: 1.5rem;
  padding: var(--space-6);
  overflow: visible;
}

.card-footer {
  padding: 1rem 1.5rem;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid #e5e7eb;
  border-top: 1px solid var(--gray-200);
  background: #f9fafb;
  background: var(--gray-50);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  gap: var(--space-3);
}

/* Form Components */
.form-group {
  margin-bottom: 1.25rem;
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid #d1d5db;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px #dbeafe;
  box-shadow: 0 0 0 3px var(--primary-100);
}

.form-input:disabled {
  background: #f3f4f6;
  background: var(--gray-100);
  color: #6b7280;
  color: var(--gray-500);
  cursor: not-allowed;
}

.form-input.error {
  border-color: #ef4444;
  border-color: var(--error-500);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px #fef2f2;
  box-shadow: 0 0 0 3px var(--error-50);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  -webkit-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 1rem;
  padding-right: 2.5rem;
  padding-right: var(--space-10);
}

.form-error {
  color: #dc2626;
  color: var(--error-600);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  margin-top: var(--space-1);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  gap: var(--space-1);
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  gap: var(--space-2);
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
}

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

.btn-primary {
  background: #2563eb;
  background: var(--primary-600);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #1d4ed8;
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: white;
  color: #374151;
  color: var(--gray-700);
  border: 1px solid #d1d5db;
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover:not(:disabled) {
  background: #f9fafb;
  background: var(--gray-50);
  border-color: #9ca3af;
  border-color: var(--gray-400);
}

.btn-success {
  background: #059669;
  background: var(--success-600);
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: var(--success-700);
}

.btn-warning {
  background: #d97706;
  background: var(--warning-600);
  color: white;
}

.btn-warning:hover:not(:disabled) {
  background: var(--warning-700);
}

.btn-danger {
  background: #dc2626;
  background: var(--error-600);
  color: white;
}

.btn-danger:hover:not(:disabled) {
  background: var(--error-700);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  font-size: 0.75rem;
  min-height: 32px;
}

.btn-lg {
  padding: 1rem 1.5rem;
  padding: var(--space-4) var(--space-6);
  font-size: 1rem;
  min-height: 48px;
}

/* Table Components */
.table-container {
  background: white;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--shadow-sm);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: #f9fafb;
  background: var(--gray-50);
  padding: 1rem;
  padding: var(--space-4);
  text-align: left;
  font-weight: 600;
  color: #374151;
  color: var(--gray-700);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--gray-200);
}

.table td {
  padding: 1rem;
  padding: var(--space-4);
  border-bottom: 1px solid #f3f4f6;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f9fafb;
  background: var(--gray-50);
}

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

/* Alert Components */
.alert {
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  max-width: 100%;
  min-height: 0;
}

.alert svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.alert-success {
  background: #ecfdf5;
  background: var(--success-50);
  color: var(--success-800);
  border: 1px solid var(--success-200);
}

.alert-warning {
  background: #fffbeb;
  background: var(--warning-50);
  color: var(--warning-800);
  border: 1px solid var(--warning-200);
}

.alert-error {
  background: #fef2f2;
  background: var(--error-50);
  color: var(--error-800);
  border: 1px solid var(--error-200);
}

.alert-info {
  background: #eff6ff;
  background: var(--primary-50);
  color: #1e40af;
  color: var(--primary-800);
  border: 1px solid #bfdbfe;
  border: 1px solid var(--primary-200);
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border: 2px solid var(--gray-200);
  border-top: 2px solid #2563eb;
  border-top: 2px solid var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Navigation */
.nav {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
  color: var(--primary-600);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  gap: var(--space-6);
  list-style: none;
}

.nav-link {
  color: #4b5563;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast);
  padding: 0.5rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb;
  color: var(--primary-600);
  background: #eff6ff;
  background: var(--primary-50);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  padding: var(--space-4);
}

.modal {
  background: white;
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalEnter 0.2s ease-out;
}

.modal.large {
  max-width: 800px;
}

.modal-header {
  padding: 1.5rem;
  padding: var(--space-6);
  border-bottom: 1px solid #e5e7eb;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  color: var(--gray-900);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  padding: var(--space-1);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: #4b5563;
  color: var(--gray-600);
  background: #f3f4f6;
  background: var(--gray-100);
}

.modal-body {
  padding: 1.5rem;
  padding: var(--space-6);
}

.modal-footer {
  padding: 1rem 1.5rem;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid #e5e7eb;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.75rem;
  gap: var(--space-3);
  justify-content: flex-end;
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE DESIGN
   ============================================ */

/* Base Mobile Optimizations */
@media (max-width: 768px) {

  /* Typography */
  .professional-header {
    font-size: 1.75rem;
  }

  .professional-subtitle {
    font-size: 0.95rem;
  }

  /* Spacing */
  .main-content {
    padding: 0.75rem;
    padding: var(--space-3);
  }

  .card-header,
  .card-body {
    padding: 0.75rem;
    padding: var(--space-3);
  }

  .nav-container {
    padding: 0 0.75rem;
    padding: 0 var(--space-3);
    height: 56px;
  }

  /* Tables - Horizontal scroll */
  .table-container {
    overflow-x: auto;
  }

  .table {
    min-width: 600px;
  }

  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Modals */
  .modal {
    margin: 0.5rem;
    margin: var(--space-2);
    max-width: none;
    max-height: 95vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
    padding: var(--space-4);
  }

  .modal-overlay {
    padding: 0.5rem;
    padding: var(--space-2);
  }

  /* Forms */
  .professional-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
    margin-bottom: var(--space-4);
  }

  .form-input,
  .professional-input,
  .professional-select {
    font-size: 16px;
    /* Prevents zoom on iOS */
    padding: 0.75rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem;
    padding: var(--space-3);
    font-size: 0.875rem;
    min-height: 44px;
    /* Touch-friendly */
  }

  .btn-sm {
    min-height: 36px;
    padding: 0.5rem;
    padding: var(--space-2);
  }

  .btn-lg {
    min-height: 50px;
    padding: 1rem;
    padding: var(--space-4);
  }

  /* Grid layouts */
  .filter-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .professional-search-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .header-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat-item {
    padding: 0.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  /* Navigation */
  .professional-nav-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-tab {
    width: 100%;
    justify-content: center;
    padding: 0.875rem;
  }

  /* Action buttons */
  .professional-form-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-professional {
    width: 100%;
    justify-content: center;
  }

  .card-footer {
    flex-direction: column;
    gap: 0.5rem;
  }

  .card-footer .btn {
    width: 100%;
  }

  /* Supplier/Customer actions */
  .supplier-actions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .action-buttons-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Search */
  .search-input-wrapper {
    flex-direction: column;
  }

  /* Stats cards */
  .sale-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .detail-card {
    padding: 1rem;
  }

  /* Dropdowns */
  .professional-dropdown {
    max-height: 50vh;
  }

  /* Login */
  .login-card {
    padding: 1.5rem;
    padding: var(--space-6);
    margin: 1rem;
    margin: var(--space-4);
  }

  .login-card h2 {
    font-size: 1.5rem;
  }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {

  /* Even tighter spacing */
  .main-content {
    padding: 0.5rem;
    padding: var(--space-2);
  }

  .card {
    border-radius: 0.375rem;
    border-radius: var(--radius-md);
  }

  .card-header,
  .card-body,
  .card-footer {
    padding: 0.75rem;
    padding: var(--space-3);
  }

  /* Typography */
  .professional-header {
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1rem;
  }

  /* Hide less important columns in tables */
  .table .hide-mobile {
    display: none;
  }

  /* Stats in single column */
  .header-stats {
    grid-template-columns: 1fr;
  }

  /* Modal fullscreen on very small devices */
  .modal {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    height: 100vh;
  }

  .modal-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 0;
  }

  /* Touch-friendly spacing */
  .table th,
  .table td {
    padding: 0.625rem 0.375rem;
  }

  /* Larger touch targets */
  .btn {
    min-height: 48px;
    padding: 0.75rem;
  }

  .form-input,
  .professional-input {
    min-height: 48px;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .modal {
    max-height: 90vh;
  }

  .professional-dropdown {
    max-height: 40vh;
  }
}

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .main-content {
    padding: 1.25rem;
    padding: var(--space-5);
  }

  .professional-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .professional-search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

  /* Larger tap targets */
  .btn,
  .form-input,
  .professional-input,
  .professional-select {
    min-height: 44px;
  }

  /* Remove hover effects on touch */
  .btn:hover,
  .table tr:hover,
  .dropdown-option:hover {
    transform: none;
  }

  /* Better touch feedback */
  .btn:active {
    transform: scale(0.98);
  }

  /* Improve scrolling */
  .table-container,
  .professional-dropdown,
  .modal-body {
    -webkit-scroll-behavior: smooth;
    scroll-behavior: smooth;
  }

  @supports not (scroll-behavior: smooth) {

    .table-container,
    .professional-dropdown,
    .modal-body {
      -webkit-scroll-behavior: auto;
      scroll-behavior: auto;
    }
  }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  /* Sharper borders and shadows */
  .card,
  .modal,
  .btn {
    border-width: 0.5px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

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

.text-left {
  text-align: left;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-gray-500 {
  color: #6b7280;
  color: var(--gray-500);
}

.text-gray-600 {
  color: #4b5563;
  color: var(--gray-600);
}

.text-gray-700 {
  color: #374151;
  color: var(--gray-700);
}

.text-gray-900 {
  color: #111827;
  color: var(--gray-900);
}

.text-primary {
  color: #2563eb;
  color: var(--primary-600);
}

.text-success {
  color: #059669;
  color: var(--success-600);
}

.text-warning {
  color: #d97706;
  color: var(--warning-600);
}

.text-error {
  color: #dc2626;
  color: var(--error-600);
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 0.5rem;
  margin-bottom: var(--space-2);
}

.mb-4 {
  margin-bottom: 1rem;
  margin-bottom: var(--space-4);
}

.mb-6 {
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-6);
}

.mb-8 {
  margin-bottom: 2rem;
  margin-bottom: var(--space-8);
}

.mt-0 {
  margin-top: 0;
}

.mt-2 {
  margin-top: 0.5rem;
  margin-top: var(--space-2);
}

.mt-4 {
  margin-top: 1rem;
  margin-top: var(--space-4);
}

.mt-6 {
  margin-top: 1.5rem;
  margin-top: var(--space-6);
}

.mt-8 {
  margin-top: 2rem;
  margin-top: var(--space-8);
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
  gap: var(--space-2);
}

.gap-4 {
  gap: 1rem;
  gap: var(--space-4);
}

.gap-6 {
  gap: 1.5rem;
  gap: var(--space-6);
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-not-allowed {
  cursor: not-allowed;
}

.select-none {
  -webkit-user-select: none;
  user-select: none;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-x-auto {
  overflow-x: auto;
}

.overflow-y-auto {
  overflow-y: auto;
}

.rounded {
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: 0.75rem;
  border-radius: var(--radius-xl);
}

.shadow {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-lg);
}

.border {
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
}

.border-gray-300 {
  border-color: #d1d5db;
  border-color: var(--gray-300);
}

.border-primary {
  border-color: #3b82f6;
  border-color: var(--primary-500);
}

.bg-white {
  background-color: white;
}

.bg-gray-50 {
  background-color: #f9fafb;
  background-color: var(--gray-50);
}

.bg-gray-100 {
  background-color: #f3f4f6;
  background-color: var(--gray-100);
}

.bg-primary {
  background-color: #2563eb;
  background-color: var(--primary-600);
}

.bg-success {
  background-color: #059669;
  background-color: var(--success-600);
}

.bg-warning {
  background-color: #d97706;
  background-color: var(--warning-600);
}

.bg-error {
  background-color: #dc2626;
  background-color: var(--error-600);
}

.hover\\:bg-gray-50:hover {
  background-color: #f9fafb;
  background-color: var(--gray-50);
}

.hover\\:bg-primary-700:hover {
  background-color: #1d4ed8;
  background-color: var(--primary-700);
}

.transition {
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: all var(--transition-fast);
}

.transition-colors {
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Login Page Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
  padding: 1rem;
  padding: var(--space-4);
}

.login-card {
  background: white;
  border-radius: 0.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-xl);
  padding: 2rem;
  padding: var(--space-8);
  width: 100%;
  max-width: 400px;
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
}

.login-card h2 {
  text-align: center;
  color: #111827;
  color: var(--gray-900);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-6);
}

.login-info {
  background: #f9fafb;
  background: var(--gray-50);
  border: 1px solid #e5e7eb;
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  padding: 1rem;
  padding: var(--space-4);
  margin-bottom: 1.5rem;
  margin-bottom: var(--space-6);
  font-size: 0.875rem;
}

.login-info p {
  margin: 0.25rem 0;
  margin: var(--space-1) 0;
  color: #374151;
  color: var(--gray-700);
}

.login-info code {
  background: #e5e7eb;
  background: var(--gray-200);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #1f2937;
  color: var(--gray-800);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--space-4);
}

.login-form .input-group {
  display: flex;
  flex-direction: column;
}

.login-form .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  border: 1px solid #d1d5db;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
}

.login-form .form-input:focus {
  outline: none;
  border-color: #3b82f6;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px #dbeafe;
  box-shadow: 0 0 0 3px var(--primary-100);
}

.login-button {
  width: 100%;
  background: #2563eb;
  background: var(--primary-600);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  padding: var(--space-3) var(--space-4);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button:hover {
  background: #1d4ed8;
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  box-shadow: var(--shadow-md);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  background: #9ca3af;
  background: var(--gray-400);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-button:disabled:hover {
  background: #9ca3af;
  background: var(--gray-400);
  transform: none;
}

.error-message {
  background: #fef2f2;
  background: var(--error-50);
  border: 1px solid var(--error-200);
  color: var(--error-700);
  padding: 0.75rem;
  padding: var(--space-3);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  text-align: center;
  margin-top: 0.5rem;
  margin-top: var(--space-2);
}

/* Sales Component Styles */
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  align-items: end;
}

/* Enhanced Filter Styles */
.filter-section {
  margin-bottom: 1.5rem;
}

.filter-section-title {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-actions {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* Advanced Filter Container */
.advanced-filters {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  border: 1px solid #0ea5e9;
  padding: 20px;
  margin-top: 20px;
}

/* Global Search Styling */
.global-search-container {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
  border: 2px solid #4f46e5;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

/* Filter Tags */
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #92400e;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.filter-tag-remove {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border: none;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.filter-tag-remove:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Statistics Cards */
.stat-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #4b5563;
  color: var(--gray-600);
  font-weight: 500;
}

/* Transaction Row Styles */
.transaction-row {
  transition: background-color 0.2s ease;
}

.transaction-row:hover {
  background-color: #f8f9fa !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transaction-row:hover td {
  background-color: transparent;
}

/* Customer Card Styles */
.customer-card {
  transition: all 0.2s ease;
}

.customer-card:hover {
  background-color: #e3f2fd !important;
  border-color: #2196f3 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.table-id {
  font-weight: 600;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

.customer-name {
  color: var(--text-color);
  font-weight: 500;
}

.walk-in-customer {
  color: #4b5563;
  color: var(--gray-600);
  font-style: italic;
}

.discount-amount {
  color: var(--success-color);
  font-weight: 600;
}

.no-discount {
  color: #9ca3af;
  color: var(--gray-400);
  font-style: italic;
}

.amount-total {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1em;
}

.quantity-badge {
  background: var(--primary-light);
  color: var(--primary-color);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

.item-total {
  color: var(--primary-color);
  font-weight: 600;
}

/* Sale Details Modal */
.sale-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
}

.detail-card h4 {
  margin: 0 0 1rem 0;
  color: var(--primary-color);
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-label {
  color: #4b5563;
  color: var(--gray-600);
  font-weight: 500;
}

.detail-value {
  font-weight: 600;
  color: var(--text-color);
}

.total-row {
  background: var(--primary-light);
  padding: 1rem !important;
  margin: 0.5rem -1rem 0 -1rem;
  border-radius: 6px;
  border: none !important;
}

.total-row .detail-label,
.total-row .detail-value {
  font-size: 1.1em;
  font-weight: 700;
}

.items-section {
  margin-top: 2rem;
}

.items-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

/* Modal size variants */
.modal-lg {
  max-width: 800px;
}

.modal-xl {
  max-width: 1200px;
}

/* Suppliers Component Professional Enhancements */
.supplier-actions-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: start;
}

.search-section {
  min-width: 0;
}

.search-results-count {
  font-size: 0.875rem;
  color: #4b5563;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

.action-buttons-section {
  flex-shrink: 0;
}

.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

.table-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.supplier-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.supplier-name {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  text-align: left;
}

.supplier-name:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

.supplier-id {
  font-size: 0.75rem;
  color: #6b7280;
  color: var(--gray-500);
  font-family: 'Courier New', monospace;
}

.brand-info,
.contact-info {
  display: flex;
  flex-direction: column;
}

.brand-name,
.contact-details {
  color: var(--text-color);
  font-weight: 500;
}

.no-brand,
.no-contact {
  color: #9ca3af;
  color: var(--gray-400);
  font-style: italic;
  font-size: 0.875rem;
}

.balance-display {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-start;
}

.balance-amount {
  font-weight: 700;
  font-size: 1.1em;
}

.balance-positive {
  color: var(--success-color);
}

.balance-negative {
  color: var(--error-color);
}

.balance-status {
  font-size: 0.75rem;
}

.status-paid {
  color: var(--success-color);
  font-weight: 500;
}

.status-pending {
  color: var(--warning-color);
  font-weight: 500;
}

/* Responsive adjustments for supplier actions */
@media (max-width: 768px) {
  .supplier-actions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .action-buttons-grid {
    grid-template-columns: 1fr;
  }

  .balance-display {
    align-items: center;
    text-align: center;
  }
}

/* Professional Products Component Enhancements */
.professional-header {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.professional-subtitle {
  font-size: 1.1rem;
  color: #4b5563;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.header-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-item {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #4b5563;
  color: var(--gray-600);
  font-weight: 500;
}

/* Professional Navigation Tabs */
.professional-nav-card {
  background: linear-gradient(135deg, var(--primary-light), var(--background-color));
  border: 1px solid var(--primary-light);
}

.professional-nav-tabs {
  display: flex;
  gap: 0.5rem;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
}

.nav-tab-active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-tab-inactive {
  background: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.nav-tab-inactive:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

.nav-icon {
  font-size: 1.1em;
}

.nav-text {
  font-weight: 600;
}

.nav-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.nav-tab-inactive .nav-badge {
  background: var(--primary-color);
  color: white;
}

/* Professional Form Styling */
.professional-form-card {
  background: linear-gradient(135deg, var(--background-color), var(--background-secondary));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.professional-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.form-icon {
  font-size: 1.5rem;
}

.professional-form-subtitle {
  color: #4b5563;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.5;
}

.professional-form {
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.professional-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
  overflow: visible;
  width: 100%;
  /* Prevent grid items from causing horizontal shifts */
  min-width: 0;
}

.professional-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.professional-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.95rem;
}

.label-icon {
  font-size: 1rem;
}

.input-wrapper {
  position: relative;
  overflow: visible;
  /* Ensure wrapper doesn't cause layout shifts */
  min-width: 0;
  width: 100%;
}

.professional-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background-color);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.professional-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-focus-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  background-clip: padding-box;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.professional-input:focus+.input-focus-border {
  opacity: 1;
}

/* Price Input Styling */
.price-input {
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 1rem;
  color: #4b5563;
  color: var(--gray-600);
  font-weight: 600;
  z-index: 2;
}

.price-field {
  padding-left: 2rem;
}

/* Supplier Search Styling */
.supplier-input-group {
  position: relative;
  overflow: visible;
  /* Ensure proper containment without causing layout shifts */
  contain: layout;
}

.supplier-search-wrapper {
  position: relative;
  overflow: visible;
  width: 100%;
  /* Prevent layout shifts when dropdown opens */
  isolation: isolate;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  color: var(--gray-500);
  z-index: 2;
}

.supplier-search {
  padding-left: 2.5rem;
  padding-right: 3rem;
  /* Make room for dropdown button */
  width: 100%;
  box-sizing: border-box;
  /* Prevent text overflow from causing shifts */
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s ease;
  color: #6b7280;
  color: var(--gray-500);
}

.dropdown-toggle-btn:hover {
  background: #f3f4f6;
  background: var(--gray-100);
  color: #2563eb;
  color: var(--primary-600);
}

.dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  line-height: 1;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.professional-dropdown {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  /* Prevent dropdown from extending page or causing shifts */
  will-change: transform;
  /* Ensure dropdown doesn't affect parent layout */
  contain: layout style paint;
  /* Prevent horizontal overflow */
  min-width: 100%;
  max-width: 100%;
}

.dropdown-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-light);
}

.dropdown-option:hover {
  background: var(--primary-light);
}

.dropdown-option:last-child {
  border-bottom: none;
}

.supplier-option-name {
  font-weight: 600;
  color: var(--text-color);
}

.supplier-option-brand {
  font-size: 0.875rem;
  color: #6b7280;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* Professional Button Styling */
.professional-form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.btn-professional {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-professional-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-professional-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-professional-secondary {
  background: var(--background-secondary);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-professional-secondary:hover {
  background: #f3f4f6;
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 1.1em;
}

.btn-text {
  font-weight: 600;
}

.btn-loading-indicator {
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  position: absolute;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.btn-professional:active .btn-loading-indicator {
  width: 100%;
}

/* Professional Search Card */
.professional-search-card {
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

.professional-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.professional-search-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 1rem;
  color: #6b7280;
  color: var(--gray-500);
  z-index: 2;
}

.professional-search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background-color);
  transition: all 0.3s ease;
}

.professional-search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-clear-btn {
  position: absolute;
  right: 1rem;
  color: #9ca3af;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.search-clear-btn:hover {
  background: #f3f4f6;
  background: var(--gray-100);
  color: #4b5563;
  color: var(--gray-600);
}

/* Professional Select Styling */
.professional-select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  background: var(--background-color);
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-appearance: none;
          appearance: none;
}

.professional-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.select-arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  color: var(--gray-500);
  pointer-events: none;
  font-size: 0.875rem;
}

/* Sort Toggle Buttons */
.sort-toggle-wrapper {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.sort-toggle {
  flex: 1 1;
  padding: 0.75rem 1rem;
  border: none;
  background: var(--background-color);
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sort-toggle.active {
  background: var(--primary-color);
  color: white;
}

.sort-toggle:not(.active):hover {
  background: var(--primary-light);
  color: var(--primary-color);
}

/* Search Results Summary */
.search-results-summary {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}

/* Enhanced Table Styling */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.table th {
  background: var(--background-secondary);
  font-weight: 600;
  color: #374151;
  color: var(--gray-700);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tr:nth-child(even) {
  background: var(--background-secondary);
}

.table tr:hover {
  background: var(--primary-light);
  transition: background-color 0.2s ease;
}

/* Professional Action Buttons */
.table .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .professional-form-grid {
    grid-template-columns: 1fr;
  }

  .professional-search-grid {
    grid-template-columns: 1fr;
  }

  .header-stats {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .professional-nav-tabs {
    flex-direction: column;
  }

  .professional-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-professional {
    width: 100%;
    justify-content: center;
  }
}

/* Editing Mode Styling */
.editing-mode {
  border: 2px solid #f59e0b !important;
  border: 2px solid var(--warning-500) !important;
  background: linear-gradient(135deg, #fffbeb, #f9fafb) !important;
  background: linear-gradient(135deg, var(--warning-50), var(--gray-50)) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important;
}

.editing-mode .card-header {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  background: linear-gradient(135deg, var(--warning-500), var(--warning-600)) !important;
  color: white !important;
}

.editing-mode .professional-form-title {
  color: white !important;
}

.editing-mode .professional-form-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Grid System */
.grid {
  display: grid;
}

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

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

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

/* Responsive Grid */
@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1024px) {
  .lg\\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Additional Color Utilities */
.bg-purple-100 {
  background-color: #f3e8ff;
}

.text-purple-600 {
  color: #9333ea;
}

.bg-success-100 {
  background-color: #ecfdf5;
  background-color: var(--success-50);
}

.text-success-800 {
  color: #065f46;
}

.bg-warning-100 {
  background-color: #fffbeb;
  background-color: var(--warning-50);
}

/* Additional spacing utilities */
.gap-6 {
  gap: 1.5rem;
  gap: var(--space-6);
}

.gap-8 {
  gap: 2rem;
  gap: var(--space-8);
}

.mb-8 {
  margin-bottom: 2rem;
  margin-bottom: var(--space-8);
}

.py-8 {
  padding-top: 2rem;
  padding-top: var(--space-8);
  padding-bottom: 2rem;
  padding-bottom: var(--space-8);
}

.p-3 {
  padding: 0.75rem;
  padding: var(--space-3);
}

.p-6 {
  padding: 1.5rem;
  padding: var(--space-6);
}

/* Table footer styling */
.table tfoot td {
  font-weight: 600;
  background: #f9fafb;
  background: var(--gray-50);
  border-top: 2px solid #e5e7eb;
  border-top: 2px solid var(--gray-200);
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

/* Ensure main content scrolls properly */
.main-content {
  flex: 1 1;
  padding: 1.5rem;
  padding: var(--space-6);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  overflow-y: auto;
  height: 100%;
}

/* Ensure body and html allow scrolling */
html,
body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Urdu Text Support */
.urdu-text {
  font-family: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaleeq', 'Pak Nastaleeq', 'Urdu Typesetting', 'Arabic Typesetting', 'Times New Roman', serif;
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  unicode-bidi: bidi-override;
}

.urdu-text h1,
.urdu-text h2,
.urdu-text h3,
.urdu-text h4,
.urdu-text h5,
.urdu-text h6 {
  font-family: 'Noto Sans Urdu', 'Noto Sans Arabic', 'Jameel Noori Nastaleeq', 'Pak Nastaleeq', 'Urdu Typesetting', 'Arabic Typesetting', 'Times New Roman', serif;
  font-family: var(--font-urdu);
  direction: rtl;
  text-align: right;
  font-weight: bold;
}

.urdu-text li {
  direction: rtl;
  text-align: right;
  margin-bottom: 4px;
}

/* Enhanced font rendering for Urdu */
.urdu-text {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-text-rendering: optimizeLegibility;
  text-rendering: optimizeLegibility;
}

/* Prevent modal overlay from blocking scrolling when not visible */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 1rem;
  padding: var(--space-4);
}

/* Pagination Styles */
.pagination-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  gap: var(--space-4);
  padding: 1rem;
  padding: var(--space-4);
  border-top: 1px solid #e5e7eb;
  border-top: 1px solid var(--gray-200);
  background: #f9fafb;
  background: var(--gray-50);
}

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

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.pagination-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
}

.pagination-selector select {
  padding: 0.5rem 0.75rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid #d1d5db;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
}

.pagination-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  gap: var(--space-2);
}

.pagination-numbers {
  display: flex;
  gap: 0.25rem;
  gap: var(--space-1);
}

.pagination-buttons .btn {
  min-width: 40px;
  height: 32px;
  padding: 0 0.75rem;
  padding: 0 var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.pagination-buttons .btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-controls {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    gap: var(--space-3);
  }

  .pagination-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Premium Textile Website Styles */

/* Premium Textile Typography */
.premium-textile h1,
.premium-textile h2,
.premium-textile h3,
.premium-textile h4,
.premium-textile h5,
.premium-textile h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.premium-textile h1 {
  font-size: 4rem;
  line-height: 1.1;
}

.premium-textile h2 {
  font-size: 3rem;
  line-height: 1.2;
}

.premium-textile h3 {
  font-size: 2rem;
  line-height: 1.3;
}

.premium-textile h4 {
  font-size: 1.5rem;
  line-height: 1.4;
}

.premium-textile p {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 400;
}

.hover\:bg-blue-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / 1);
  background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1));
}

.hover\:bg-blue-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / 1);
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

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

.hover\:text-gray-600:hover {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / 1);
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.hover\:text-teal-900:hover {
  --tw-text-opacity: 1;
  color: rgb(19 78 74 / 1);
  color: rgb(19 78 74 / var(--tw-text-opacity, 1));
}

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

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* ==========================================================================
   Zafar Yaqoob Bedding Store — public website
   Classic textile-merchant treatment. Scoped under .zy-site.
   ========================================================================== */

.zy-site {
  --paper:      #F7F5F0;
  --paper-deep: #EDE9E0;
  --ink:        #1C2231;
  --ink-soft:   #3C4454;
  --muted:      #646B78;
  --indigo:     #27395C;
  --indigo-dk:  #1B2A47;
  --brass:      #A4823A;
  --brass-lt:   #C9AE6A;
  --rule:       #D8D2C6;
  --rule-dk:    #B9B1A2;
  --white:      #FFFFFF;
  --paper-70:   rgba(247, 245, 240, .70);
  --paper-55:   rgba(247, 245, 240, .55);
  --paper-16:   rgba(247, 245, 240, .16);

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Jost", "Segoe UI", system-ui, sans-serif;
  --urdu:  "Noto Sans Urdu", "Noto Sans Arabic", serif;

  --measure: 62ch;
  --gutter: clamp(20px, 4vw, 48px);
  --max: 1180px;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.zy-site *, .zy-site *::before, .zy-site *::after { box-sizing: border-box; }
.zy-site img { display: block; max-width: 100%; }
.zy-site :where(a) { color: inherit; text-decoration: none; }
.zy-site button { font: inherit; }
.zy-site :focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }

/* ---- type ---- */
.zy-site h1, .zy-site h2, .zy-site h3, .zy-site .zy-display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.zy-site h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.zy-site h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.zy-site h3 { font-size: 1.45rem; }
.zy-site p  { margin: 0; }
.zy-site em { font-family: var(--serif); font-style: italic; font-weight: 500; }

.zy-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
}
.zy-lede { font-size: 1.125rem; color: var(--ink-soft); max-width: var(--measure); }
.zy-small { font-size: .875rem; color: var(--muted); }

/* ---- layout ---- */
.zy-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.zy-section { padding-block: clamp(64px, 9vw, 112px); }
.zy-section--deep { background: var(--paper-deep); }
.zy-section__head { display: grid; grid-gap: 14px; gap: 14px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }
.zy-section__head--center { text-align: center; margin-inline: auto; justify-items: center; }

/* ornament: short brass rule with a diamond, marks a section break */
.zy-ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--brass); margin: 0 auto;
}
.zy-ornament::before, .zy-ornament::after { content: ""; width: 44px; height: 1px; background: currentColor; }
.zy-ornament span { width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }

/* ---- buttons ---- */
.zy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; min-height: 48px;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.zy-btn:hover { background: var(--indigo-dk); border-color: var(--indigo-dk); }
.zy-site .zy-btn { color: var(--paper); }
.zy-btn--ghost, .zy-site .zy-btn--ghost { background: transparent; color: var(--ink); }
.zy-site .zy-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.zy-btn--wa { background: var(--indigo); border-color: var(--indigo); }
.zy-btn--wa:hover { background: var(--indigo-dk); }
.zy-btn svg { width: 16px; height: 16px; }

/* ---- masthead & nav ---- */
.zy-mast { background: var(--paper); border-top: 4px double var(--ink); }
.zy-mast__inner {
  display: grid; justify-items: center; grid-gap: 4px; gap: 4px; text-align: center;
  padding: 26px var(--gutter) 18px;
}
.zy-mast__name {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; color: var(--ink);
}
.zy-mast__tag { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.zy-nav {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.zy-nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 52px; gap: 20px; }
.zy-nav__links { display: flex; gap: clamp(18px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.zy-nav__links a {
  display: inline-block; padding: 14px 0;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.zy-nav__links a:hover, .zy-nav__links a[aria-current="page"] { border-bottom-color: var(--brass); color: var(--indigo); }
.zy-nav__brand { display: none; font-family: var(--serif); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.zy-nav__cta { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--indigo); }
.zy-nav__cta svg { width: 15px; height: 15px; }
.zy-nav__burger { display: none; background: none; border: 1px solid var(--rule-dk); padding: 8px; cursor: pointer; color: var(--ink); }
.zy-nav__burger svg { width: 20px; height: 20px; display: block; }
.zy-nav__mobile { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.zy-nav__mobile ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; display: grid; }
.zy-nav__mobile a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.zy-nav__mobile li:last-child a { border-bottom: 0; }

@media (max-width: 820px) {
  .zy-mast__tag { letter-spacing: .14em; }
  .zy-nav__links { display: none; }
  .zy-nav__brand { display: block; }
  .zy-nav__burger { display: inline-flex; }
  .zy-nav__mobile[data-open="true"] { display: block; }
  .zy-nav__cta span { display: none; }
}

/* ---- hero ---- */
.zy-hero { padding-block: clamp(56px, 9vw, 120px) clamp(48px, 7vw, 88px); }
.zy-hero__inner { display: grid; grid-gap: 28px; gap: 28px; max-width: 52rem; }
.zy-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.zy-hero h1 em { font-weight: 400; }
.zy-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.zy-hero__facts {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; padding-top: 22px;
  border-top: 1px solid var(--rule); font-size: .82rem; color: var(--muted); letter-spacing: .04em;
}
.zy-hero__facts b { color: var(--ink); font-weight: 500; }

.zy-frontis { position: relative; margin-bottom: 28px; }
.zy-frontis img { width: 100%; height: clamp(260px, 46vw, 560px); object-fit: cover; filter: saturate(.9); }
.zy-frontis__cap {
  position: absolute; right: var(--gutter); bottom: 0; transform: translateY(50%);
  background: var(--paper); border: 1px solid var(--rule-dk); padding: 12px 18px;
  font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ink-soft);
}

/* ---- house (about) ---- */
.zy-house { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-gap: clamp(32px, 6vw, 80px); gap: clamp(32px, 6vw, 80px); align-items: start; }
.zy-house__text { display: grid; grid-gap: 18px; gap: 18px; max-width: var(--measure); }
.zy-house__text p { color: var(--ink-soft); }
.zy-house__list { display: grid; grid-gap: 0; gap: 0; border-top: 1px solid var(--rule-dk); }
.zy-house__item { display: grid; grid-template-columns: 34px 1fr; grid-gap: 18px; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.zy-house__item svg { width: 26px; height: 26px; color: var(--indigo); stroke-width: 1.4; margin-top: 2px; }
.zy-house__item h3 { font-size: 1.3rem; margin-bottom: 6px; }
.zy-house__item p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .zy-house { grid-template-columns: 1fr; } }

/* ---- collection plates ---- */
.zy-plates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: clamp(22px, 3.5vw, 40px) clamp(18px, 3vw, 32px); gap: clamp(22px, 3.5vw, 40px) clamp(18px, 3vw, 32px); }
@media (max-width: 900px) { .zy-plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .zy-plates { grid-template-columns: 1fr; } }
.zy-plate { display: grid; grid-gap: 14px; gap: 14px; grid-template-rows: auto 1fr; }
.zy-plate__frame { border: 1px solid var(--rule-dk); padding: 8px; background: var(--white); }
.zy-plate__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.88); transition: filter .3s; }
.zy-plate:hover .zy-plate__frame img { filter: saturate(1); }
.zy-plate__cap { display: grid; grid-gap: 4px; gap: 4px; padding-inline: 4px; align-content: start; }
.zy-plate__cap h3 { font-size: 1.35rem; }
.zy-plate__cap .zy-small { letter-spacing: .04em; }
.zy-plate__cap a { color: var(--indigo); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; margin-top: 4px; }
.zy-plate__cap a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* text plate: Urdu trade card */
.zy-plate--card .zy-plate__frame { background: var(--ink); border-color: var(--ink); }
.zy-plate--card .zy-plate__frame > div {
  aspect-ratio: 4 / 5; display: grid; place-content: center; text-align: center; grid-gap: 12px; gap: 12px; width: 100%;
  border: 1px solid var(--brass); padding: 20px;
}
.zy-plate__urdu { font-family: var(--urdu); direction: rtl; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.3; color: var(--paper); }
.zy-plate__roman { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--paper); opacity: .85; }
.zy-plate--card .zy-eyebrow { color: var(--brass-lt); }

/* ---- trade terms ---- */
.zy-terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule-dk); background: var(--white); }
.zy-terms > div { padding: 30px 26px; border-right: 1px solid var(--rule); display: grid; grid-gap: 10px; gap: 10px; align-content: start; }
.zy-terms > div:last-child { border-right: 0; }
.zy-terms .zy-eyebrow { color: var(--muted); }
.zy-terms h3 { font-size: 1.35rem; }
.zy-terms p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) {
  .zy-terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zy-terms > div:nth-child(2n) { border-right: 0; }
  .zy-terms > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 540px) {
  .zy-terms { grid-template-columns: 1fr; }
  .zy-terms > div { border-right: 0; border-bottom: 1px solid var(--rule); }
  .zy-terms > div:last-child { border-bottom: 0; }
}

/* ---- contact ---- */
.zy-contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-gap: clamp(32px, 6vw, 72px); gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 860px) { .zy-contact { grid-template-columns: 1fr; } }
.zy-card { border: 1px solid var(--rule-dk); background: var(--white); padding: clamp(24px, 4vw, 36px); display: grid; grid-gap: 22px; gap: 22px; }
.zy-card__row { display: grid; grid-template-columns: 22px 1fr; grid-gap: 14px; gap: 14px; align-items: start; }
.zy-card__row svg { width: 20px; height: 20px; color: var(--indigo); stroke-width: 1.5; margin-top: 3px; }
.zy-card__row .zy-eyebrow { color: var(--muted); margin-bottom: 4px; }
.zy-card__row a:hover { text-decoration: underline; text-underline-offset: 4px; }
.zy-card__urdu { font-family: var(--urdu); direction: rtl; text-align: right; font-size: 1rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; }

.zy-form { display: grid; grid-gap: 18px; gap: 18px; }
.zy-form__grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 18px; gap: 18px; }
@media (max-width: 540px) { .zy-form__grid { grid-template-columns: 1fr; } }
.zy-field { display: grid; grid-gap: 6px; gap: 6px; }
.zy-field label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.zy-field input, .zy-field select, .zy-field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--rule-dk); padding: 12px 14px; width: 100%; min-width: 0; border-radius: 0;
}
.zy-field textarea { min-height: 120px; resize: vertical; }
.zy-field input:focus, .zy-field select:focus, .zy-field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(39, 57, 92, .14); }
.zy-form__note { font-size: .85rem; color: var(--muted); }

/* ---- footer ---- */
.zy-foot { background: var(--ink); color: var(--paper); border-top: 4px double var(--brass); }
.zy-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; grid-gap: 36px; gap: 36px; padding-block: clamp(44px, 6vw, 64px) 36px; }
@media (max-width: 900px) { .zy-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .zy-foot__grid { grid-template-columns: 1fr; } }
.zy-foot__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.15; color: var(--paper); }
.zy-foot__blurb { color: var(--paper-70); font-size: .92rem; max-width: 34ch; margin-top: 12px; }
.zy-foot h4 { margin: 0 0 14px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--brass-lt); }
.zy-foot ul { list-style: none; margin: 0; padding: 0; display: grid; grid-gap: 9px; gap: 9px; }
.zy-foot li a { color: var(--paper-70); font-size: .92rem; }
.zy-foot li a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.zy-foot__bar { border-top: 1px solid var(--paper-16); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--paper-55); }

/* ---- whatsapp float ---- */
.zy-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--brass);
  padding: 12px 16px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  box-shadow: 0 10px 30px rgba(28, 34, 49, .25);
}
.zy-site .zy-wa { color: var(--paper); }
.zy-wa svg { width: 18px; height: 18px; }
.zy-wa:hover { background: var(--indigo-dk); }
@media (max-width: 540px) { .zy-wa span { display: none; } .zy-wa { padding: 14px; } }

/* ---- catalogue page ---- */
.zy-cat-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--rule); }
.zy-cat-head__inner { display: grid; grid-gap: 14px; gap: 14px; max-width: 48rem; }
.zy-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px; position: -webkit-sticky; position: sticky; top: 52px; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--rule); }
.zy-filters button {
  background: transparent; border: 1px solid var(--rule-dk); color: var(--ink-soft);
  padding: 8px 14px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; cursor: pointer;
}
.zy-filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.zy-filters button:hover:not([aria-pressed="true"]) { border-color: var(--ink); color: var(--ink); }
.zy-cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: clamp(22px, 3.5vw, 40px) clamp(18px, 3vw, 32px); gap: clamp(22px, 3.5vw, 40px) clamp(18px, 3vw, 32px); padding-block: clamp(28px, 4vw, 44px) clamp(56px, 8vw, 96px); }
@media (max-width: 900px) { .zy-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .zy-cat-grid { grid-template-columns: 1fr; } }
.zy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.zy-tags span { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); padding: 3px 8px; }
.zy-cat-count { font-size: .82rem; color: var(--muted); padding-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .zy-site * { transition: none !important; scroll-behavior: auto !important; }
}

