/* =============================================
   View Transitions API - Admin Panel / Inventory Dashboard
   =============================================
   
   DESIGN PHILOSOPHY:
   - Fast, subtle fade optimized for productivity dashboards
   - Main content transitions while sidebar/header stay static
   - Enterprise SaaS feel: minimal, professional, non-distracting
   
   CUSTOMIZATION:
   - Duration: Adjust --transition-duration (default: 160ms)
   - Easing: Adjust --transition-easing (default: ease-out)
   - Opacity start: Adjust opacity in keyframes (default: 0.4)
   
   ============================================= */

:root {
  /* Transition timing - adjust these to fine-tune the feel */
  --transition-duration: 160ms;          /* Fast for productivity (150-180ms ideal) */
  --transition-easing: ease-out;         /* Snappy deceleration */
  --transition-opacity-start: 0.4;       /* Start partially visible for subtlety */
}

/* Opt-in to View Transitions */
@view-transition {
  navigation: auto;
}

/* =============================================
   STATIC ELEMENTS - Sidebar & Header
   These elements do NOT transition, keeping UI stable
   ============================================= */

/* Mark sidebar as static (no transition) */
#sidebar {
  view-transition-name: sidebar;
}
::view-transition-old(sidebar),
::view-transition-new(sidebar) {
  animation: none;
  mix-blend-mode: normal;
}

/* Mark navbar/header as static (no transition) */
nav,
.navbar,
[data-navbar],
#navbar,
#header,
header {
  view-transition-name: header;
}
::view-transition-old(header),
::view-transition-new(header) {
  animation: none;
  mix-blend-mode: normal;
}

/* =============================================
   MAIN CONTENT AREA - Clean fade transition
   Only the primary content container animates
   ============================================= */

/* Assign transition name to main content area */
main,
.main-content,
[data-main-content],
#mainContent,
.content-area {
  view-transition-name: main-content;
}

/* Main content transition group */
::view-transition-group(main-content) {
  animation-duration: var(--transition-duration);
  animation-timing-function: var(--transition-easing);
}

/* Old content fades out quickly */
::view-transition-old(main-content) {
  animation: var(--transition-duration) var(--transition-easing) both content-fade-out;
}

/* New content fades in smoothly */
::view-transition-new(main-content) {
  animation: var(--transition-duration) var(--transition-easing) both content-fade-in;
}

/* Clean fade-in for main content - starts at partial opacity for subtlety */
@keyframes content-fade-in {
  from {
    opacity: var(--transition-opacity-start);
  }
  to {
    opacity: 1;
  }
}

/* Clean fade-out for main content */
@keyframes content-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* =============================================
   ROOT FALLBACK - Minimal fade for full page navigations
   Used when specific containers aren't matched
   ============================================= */

::view-transition-group(root) {
  animation-duration: var(--transition-duration);
  animation-timing-function: var(--transition-easing);
}

::view-transition-old(root) {
  animation: var(--transition-duration) var(--transition-easing) both root-fade-out;
}

::view-transition-new(root) {
  animation: var(--transition-duration) var(--transition-easing) both root-fade-in;
}

@keyframes root-fade-in {
  from { opacity: var(--transition-opacity-start); }
  to { opacity: 1; }
}

@keyframes root-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* =============================================
   FALLBACK - For browsers without View Transitions
   Provides a subtle fade-in on page load
   ============================================= */

/* Simple fade for non-supporting browsers */
@keyframes page-load-fade {
  from { opacity: var(--transition-opacity-start); }
  to { opacity: 1; }
}

/* Apply to main content area only, not entire body */
main,
.main-content,
[data-main-content],
#mainContent,
.content-area {
  animation: page-load-fade var(--transition-duration) var(--transition-easing);
}

/* =============================================
   ACCESSIBILITY - Respect reduced motion preference
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-duration: 0.01ms;
  }
  
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  
  main,
  .main-content,
  [data-main-content],
  #mainContent,
  .content-area {
    animation: none !important;
  }
}

/* ============================================= */

/* Collapsed sidebar for dashboard */
#sidebar.collapsed {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1);
}
#sidebar.collapsed .flex.flex-col.h-full {
  display: none !important;
}
#sidebar.collapsed .p-6,
#sidebar.collapsed .mt-auto,
#sidebar.collapsed .border-t {
  display: none !important;
}
#sidebar.collapsed .sidebar-icon-only {
  display: flex !important;
  justify-content: center;
  align-items: center;
  height: 100%;
}

/* =============================================
   SIDEBAR MINIMIZED STATE - body.sidebar-icon-only
   Collapses the sidebar to icon-only view (70px width)
   ============================================= */

body.sidebar-icon-only #sidebar {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
  transition: width 0.3s ease;
}

/* Hide all text labels and scrollable content area in collapsed state */
body.sidebar-icon-only #sidebar .p-6,
body.sidebar-icon-only #sidebar .flex-1,
body.sidebar-icon-only #sidebar nav,
body.sidebar-icon-only #sidebar .space-y-3 {
  display: none !important;
}

/* Hide user info section at bottom when collapsed */
body.sidebar-icon-only #sidebar .border-t {
  display: none !important;
}

/* Show and style the icon-only view */
body.sidebar-icon-only #sidebar .sidebar-icon-only {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 2rem;
  padding: 1rem 0;
}

/* Center icons within the narrow sidebar */
body.sidebar-icon-only #sidebar .sidebar-icon-only svg {
  display: block;
  margin: 0 auto;
}

/* Adjust main content wrapper to account for collapsed sidebar width */
body.sidebar-icon-only .main-content {
  margin-left: 0;
  padding-left: 0;
  width: calc(100% - 70px);
  transition: width 0.3s ease;
}

/* Move the sidebar toggle button to align with 70px width */
body.sidebar-icon-only #sidebarToggle {
  left: 70px !important;
  transition: left 0.3s ease;
}

/* Smooth sidebar animation settings */
body.sidebar-icon-only #sidebar {
  overflow: hidden;
}

html, body {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

#mainLayout {
  height: 100vh;
  min-height: 0;
  display: flex;
}

.main-content {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* overflow: hidden; */
}

#sidebar {
  height: 100vh;
  min-height: 0;
  overflow-y: auto;
  background: #d0e3fa;
}
/* Improve main content visibility and fix tile/button overlap */
.main-content {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 32px 0 rgba(44, 62, 80, 0.08), 0 1.5px 6px 0 rgba(44, 62, 80, 0.04);
}

/* Ensure sidebar toggle button is always above tiles/cards */
#sidebarToggle {
  z-index: 60 !important;
}

/* Prevent product/category card hover from overlapping toggle button */
.card.card-hover:hover, .card.card-hover:focus-within {
  position: relative;
  z-index: 10;
  box-shadow: 0 8px 32px 0 rgba(44, 62, 80, 0.16), 0 2px 8px 0 rgba(44, 62, 80, 0.08);
}

/* Dashboard metrics carousel - ensure cards are separate and individual */
#metricsCarouselInner .relative {
  z-index: 1;
}

#metricsCarouselInner .relative:hover {
  z-index: 20;
}

/* Ensure carousel container allows for hover expansion with optimized spacing */
#metricsCarousel {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Dashboard card wrapper - ensure proper spacing */
#metricsCarouselInner > div {
  transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

*, ::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.17 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: Inter, system-ui, sans-serif;
  /* 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 */
}

/* Custom layout tweaks */
@media (min-width: 1024px) {
  #cameraCaptureSection > div:first-child {
    margin-left: 24px !important;
  }

  #cameraCaptureSection > div:last-child {
    margin-right: 24px !important;
  }
}

/*
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: JetBrains Mono, monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

html {
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
}

.btn-primary{
  border-radius: 0.5rem;
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.btn-primary:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.btn-primary:focus{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
  --tw-ring-offset-width: 2px;
}

.btn-primary{
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 250ms;
  transition-timing-function: ease-out;
  --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-primary:hover{
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-secondary{
  border-radius: 0.5rem;
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-weight: 500;
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.btn-secondary:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
}

.btn-secondary:focus{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(100 116 139 / var(--tw-ring-opacity, 1));
  --tw-ring-offset-width: 2px;
}

.btn-secondary{
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 250ms;
  transition-timing-function: ease-out;
}


.card {
  border-radius: 1.25rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 2px 8px 0 rgba(37, 99, 235, 0.08), 0 1.5px 4px 0 rgba(0,0,0,0.04);
  border: 1.5px solid #e0e7ef;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.25s cubic-bezier(0.4,0,0.2,1);
}

.card-hover:hover {
  box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.18), 0 4px 12px 0 rgba(0,0,0,0.10);
  transform: translateY(-4px) scale(1.035);
  background: linear-gradient(135deg, #e0e7ff 0%, #f0f4ff 100%);
  border-color: #2563eb;
}

/* =============================================
   FLAT SECTION OVERRIDE - Remove Card Styling
   Use on sections that should NOT look like cards
   ============================================= */
.section-flat {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* =============================================
   CAROUSEL NAVIGATION BUTTONS
   Minimal, accessible carousel controls
   ============================================= */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #1f2937;
  padding: 0;
}

.carousel-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn.carousel-prev {
  left: 8px;
}

.carousel-nav-btn.carousel-next {
  right: 8px;
}

.carousel-nav-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  flex-shrink: 0;
}

/* =============================================
   CAROUSEL DOTS
   Minimal indicator navigation
   ============================================= */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-out;
  background-color: #d1d5db;
  padding: 0;
}

.carousel-dot:hover {
  background-color: #9ca3af;
}

.carousel-dot.active {
  background-color: #2563eb;
  width: 24px;
  border-radius: 4px;
}

/* =============================================
   RESPONSIVE SPACING HELPERS
   Flexbox gap utilities for layouts
   ============================================= */
.gap-spacing-mobile {
  gap: 1rem; /* 16px */
}

.gap-spacing-tablet {
  gap: 2rem; /* 32px */
}

.gap-spacing-desktop {
  gap: 3rem; /* 48px */
}

@media (min-width: 1024px) {
  .gap-spacing-responsive {
    gap: 3rem; /* 48px on large screens */
  }
}

@media (max-width: 1023px) {
  .gap-spacing-responsive {
    gap: 2rem; /* 32px on tablets */
  }
}

@media (max-width: 640px) {
  .gap-spacing-responsive {
    gap: 1rem; /* 16px on mobile */
  }
}

.products-list .list-view-header {
  display: grid;
  grid-template-columns: 2.25fr 1fr 0.9fr 1fr 1fr;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 252, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.products-list .list-view-row {
  display: grid;
  grid-template-columns: 2.25fr 1fr 0.9fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.products-list .list-view-row:nth-of-type(even) {
  background: #f8fafc;
}

.products-list .list-view-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

.products-list .list-view-row .list-view-cell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products-list .list-view-row .list-col-actions .btn-primary {
  padding: 0.5rem 1.25rem;
}

.products-list .list-view-row .list-col-actions .view-btn,
.products-list .list-view-row .list-col-actions .delete-btn {
  margin-left: 0.25rem;
}

.products-list .list-view-row .list-col-status {
  gap: 0.35rem;
}

.products-list .list-view-cell.list-col-actions {
  justify-content: flex-end;
}

.products-list .list-view-row .list-col-category,
.products-list .list-view-row .list-col-price,
.products-list .list-view-row .list-col-status {
  text-align: right;
}

.products-list .list-view-row .list-col-category {
  text-transform: capitalize;
  font-size: 0.9rem;
}

.products-list .list-view-row .list-col-price {
  font-size: 1rem;
  font-weight: 600;
}

.products-list .list-view-row .list-col-status p {
  font-size: 0.7rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .products-list .list-view-header {
    display: none;
  }

  .products-list .list-view-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .products-list .list-view-row .list-view-cell {
    width: 100%;
  }

  .products-list .list-view-row .list-col-actions {
    justify-content: flex-start;
  }
}

.text-mono {
  font-family: 'JetBrains Mono', monospace;
}

.pointer-events-none{
  pointer-events: none;
}

.static{
  position: static;
}

.fixed{
  position: fixed;
}

.absolute{
  position: absolute;
}

.relative{
  position: relative;
}

.inset-0{
  inset: 0px;
}

.inset-y-0{
  top: 0px;
  bottom: 0px;
}

.-bottom-40{
  bottom: -10rem;
}

.-left-40{
  left: -10rem;
}

.-right-1{
  right: -0.25rem;
}

.-right-40{
  right: -10rem;
}

.-top-1{
  top: -0.25rem;
}

.-top-40{
  top: -10rem;
}

.bottom-6{
  bottom: 1.5rem;
}

.left-0{
  left: 0px;
}

.left-3{
  left: 0.75rem;
}

.right-0{
  right: 0px;
}

.right-2{
  right: 0.5rem;
}

.right-4{
  right: 1rem;
}

.right-6{
  right: 1.5rem;
}

.top-2{
  top: 0.5rem;
}

.top-2\.5{
  top: 0.625rem;
}

.top-4{
  top: 1rem;
}

.z-50{
  z-index: 50;
}

.mx-4{
  margin-left: 1rem;
  margin-right: 1rem;
}

.mx-8{
  margin-left: 2rem;
  margin-right: 2rem;
}

.mx-auto{
  margin-left: auto;
  margin-right: auto;
}

.mb-1{
  margin-bottom: 0.25rem;
}

.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-1{
  margin-left: 0.25rem;
}

.ml-2{
  margin-left: 0.5rem;
}

.ml-4{
  margin-left: 1rem;
}

.ml-auto{
  margin-left: auto;
}

.mr-1{
  margin-right: 0.25rem;
}

.mr-2{
  margin-right: 0.5rem;
}

.mr-3{
  margin-right: 0.75rem;
}

.mt-1{
  margin-top: 0.25rem;
}

.mt-2{
  margin-top: 0.5rem;
}

.mt-4{
  margin-top: 1rem;
}

.mt-6{
  margin-top: 1.5rem;
}

.mt-8{
  margin-top: 2rem;
}

.block{
  display: block;
}

.flex{
  display: flex;
}

.inline-flex{
  display: inline-flex;
}

.table{
  display: table;
}

.grid{
  display: grid;
}

.hidden{
  display: none;
}

.aspect-square{
  aspect-ratio: 1 / 1;
}

.h-10{
  height: 2.5rem;
}

.h-12{
  height: 3rem;
}

.h-14{
  height: 3.5rem;
}

.h-16{
  height: 4rem;
}

.h-2{
  height: 0.5rem;
}

.h-3{
  height: 0.75rem;
}

.h-4{
  height: 1rem;
}

.h-5{
  height: 1.25rem;
}

.h-6{
  height: 1.5rem;
}

.h-64{
  height: 16rem;
}

.h-8{
  height: 2rem;
}

.h-80{
  height: 20rem;
}

.h-full{
  height: 100%;
}

.max-h-\[90vh\]{
  max-height: 90vh;
}

.max-h-screen{
  max-height: 100vh;
}

.min-h-screen{
  min-height: 100vh;
}

.w-1\/3{
  width: 33.333333%;
}

.w-1\/4{
  width: 25%;
}

.w-10{
  width: 2.5rem;
}

.w-12{
  width: 3rem;
}

.w-14{
  width: 3.5rem;
}

.w-16{
  width: 4rem;
}

.w-3{
  width: 0.75rem;
}

.w-3\/4{
  width: 75%;
}

.w-4{
  width: 1rem;
}

.w-5{
  width: 1.25rem;
}

.w-6{
  width: 1.5rem;
}

.w-64{
  width: 16rem;
}

.w-8{
  width: 2rem;
}

.w-80{
  width: 20rem;
}

.w-full{
  width: 100%;
}

.max-w-2xl{
  max-width: 42rem;
}

.max-w-4xl{
  max-width: 56rem;
}

.max-w-7xl{
  max-width: 80rem;
}

.max-w-md{
  max-width: 28rem;
}

.max-w-sm{
  max-width: 24rem;
}

.flex-1{
  flex: 1 1 0%;
}

.flex-shrink-0{
  flex-shrink: 0;
}

.translate-x-full{
  --tw-translate-x: 100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes spin{
  to{
    transform: rotate(360deg);
  }
}

.animate-spin{
  animation: spin 1s linear infinite;
}

.cursor-pointer{
  cursor: pointer;
}

.grid-cols-1{
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.flex-col{
  flex-direction: column;
}

.flex-wrap{
  flex-wrap: wrap;
}

.items-center{
  align-items: center;
}

.justify-end{
  justify-content: flex-end;
}

.justify-center{
  justify-content: center;
}

.justify-between{
  justify-content: space-between;
}

.gap-3{
  gap: 0.75rem;
}

.gap-4{
  gap: 1rem;
}

.gap-6{
  gap: 1.5rem;
}

.space-x-1 > :not([hidden]) ~ :not([hidden]){
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}

.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-x-3 > :not([hidden]) ~ :not([hidden]){
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-4 > :not([hidden]) ~ :not([hidden]){
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}

.space-x-8 > :not([hidden]) ~ :not([hidden]){
  --tw-space-x-reverse: 0;
  margin-right: calc(2rem * var(--tw-space-x-reverse));
  margin-left: calc(2rem * calc(1 - var(--tw-space-x-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));
}

.divide-y > :not([hidden]) ~ :not([hidden]){
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}

.divide-border > :not([hidden]) ~ :not([hidden]){
  --tw-divide-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-divide-opacity, 1));
}

.overflow-hidden{
  overflow: hidden;
}

.overflow-x-auto{
  overflow-x: auto;
}

.overflow-y-auto{

/* Top Products list: distribute product rows evenly in the card
   so varying content heights don't leave large gaps at the bottom. */
#topProductsList {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: max(0.5rem, 2vh);
  min-height: 180px;
  max-height: 100%;
  overflow: hidden;
  padding: 0.25rem 0;
}

#topProductsList > * {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.5rem 0;
  overflow: hidden;
}
  overflow-y: auto;
}

.rounded{
  border-radius: 0.25rem;
}

.rounded-full{
  border-radius: 9999px;
}

.rounded-lg{
  border-radius: 0.5rem;
}

.rounded-md{
  border-radius: 0.375rem;
}

.rounded-xl{
  border-radius: 0.75rem;
}

.rounded-r-full{
  border-top-right-radius: 9999px;
  border-bottom-right-radius: 9999px;
}

.border{
  border-width: 1px;
}

.border-b{
  border-bottom-width: 1px;
}

.border-r{
  border-right-width: 1px;
}

.border-t{
  border-top-width: 1px;
}

.border-accent-100{
  --tw-border-opacity: 1;
  border-color: rgb(209 250 229 / var(--tw-border-opacity, 1));
}

.border-border{
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
}

.border-border-light{
  --tw-border-opacity: 1;
  border-color: rgb(241 245 249 / var(--tw-border-opacity, 1));
}

.border-error{
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.border-error-100{
  --tw-border-opacity: 1;
  border-color: rgb(254 226 226 / var(--tw-border-opacity, 1));
}

.border-primary-100{
  --tw-border-opacity: 1;
  border-color: rgb(219 234 254 / var(--tw-border-opacity, 1));
}

.border-success-100{
  --tw-border-opacity: 1;
  border-color: rgb(209 250 229 / var(--tw-border-opacity, 1));
}

.border-warning-100{
  --tw-border-opacity: 1;
  border-color: rgb(254 243 199 / var(--tw-border-opacity, 1));
}

.bg-accent-100{
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}

.bg-accent-50{
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}

.bg-black{
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}

.bg-border{
  --tw-bg-opacity: 1;
  background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
}

.bg-error{
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}

.bg-error-100{
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}

.bg-error-50{
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}

.bg-primary{
  --tw-bg-opacity: 1;
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.bg-primary-100{
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}

.bg-primary-50{
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.bg-success{
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}

.bg-success-100{
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}

.bg-success-50{
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}

.bg-surface{
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}

.bg-warning{
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}

.bg-warning-100{
  --tw-bg-opacity: 1;
  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));
}

.bg-warning-50{
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}

.bg-white{
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-opacity-50{
  --tw-bg-opacity: 0.5;
}

.bg-gradient-to-br{
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-slate-50{
  --tw-gradient-from: #f8fafc var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(248 250 252 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-slate-100{
  --tw-gradient-to: #f1f5f9 var(--tw-gradient-to-position);
}

.fill-current{
  fill: currentColor;
}

.object-cover{
  -o-object-fit: cover;
     object-fit: cover;
}

.p-1{
  padding: 0.25rem;
}

.p-2{
  padding: 0.5rem;
}

.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-2\.5{
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.px-3{
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4{
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6{
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-0\.5{
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}

.py-1{
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-12{
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-2{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4{
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8{
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pl-10{
  padding-left: 2.5rem;
}

.pl-3{
  padding-left: 0.75rem;
}

.pr-12{
  padding-right: 3rem;
}

.pr-3{
  padding-right: 0.75rem;
}

.pr-4{
  padding-right: 1rem;
}

.pt-2{
  padding-top: 0.5rem;
}

.pt-3{
  padding-top: 0.75rem;
}

.pt-6{
  padding-top: 1.5rem;
}

.text-left{
  text-align: left;
}

.text-center{
  text-align: center;
}

.text-right{
  text-align: right;
}

.font-inter{
  font-family: Inter, sans-serif;
}

.font-mono{
  font-family: JetBrains Mono, monospace;
}

.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl{
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.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;
}

.tracking-wider{
  letter-spacing: 0.05em;
}

.text-accent{
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.text-accent-600{
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.text-error{
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-error-600{
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.text-primary{
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-primary-600{
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-success{
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
}

.text-success-600{
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.text-text-muted{
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.text-text-primary{
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.text-text-secondary{
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.text-warning{
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}

.text-warning-600{
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}

.text-white{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.placeholder-text-muted::-moz-placeholder{
  --tw-placeholder-opacity: 1;
  color: rgb(100 116 139 / var(--tw-placeholder-opacity, 1));
}

.placeholder-text-muted::placeholder{
  --tw-placeholder-opacity: 1;
  color: rgb(100 116 139 / var(--tw-placeholder-opacity, 1));
}

.opacity-20{
  opacity: 0.2;
}

.opacity-25{
  opacity: 0.25;
}

.opacity-75{
  opacity: 0.75;
}

.shadow-card{
  --tw-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-strong{
  --tw-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  --tw-shadow-colored: 0 4px 12px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.blur-3xl{
  --tw-blur: blur(64px);
  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);
}

.backdrop-blur-sm{
  --tw-backdrop-blur: blur(4px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.transition{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -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-backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all{
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform{
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-250{
  transition-duration: 250ms;
}

.duration-300{
  transition-duration: 300ms;
}

.ease-out{
  transition-timing-function: ease-out;
}

.shadow-strong {
  box-shadow: var(--shadow-lg);
}

:root {
  /* Primary Colors */
  --color-primary: #2563EB;
  /* blue-600 */
  --color-primary-50: #EFF6FF;
  /* blue-50 */
  --color-primary-100: #DBEAFE;
  /* blue-100 */
  --color-primary-500: #3B82F6;
  /* blue-500 */
  --color-primary-600: #2563EB;
  /* blue-600 */
  --color-primary-700: #1D4ED8;
  /* blue-700 */
  --color-primary-900: #1E3A8A;
  /* blue-900 */
  /* Secondary Colors */
  --color-secondary: #64748B;
  /* slate-500 */
  --color-secondary-100: #F1F5F9;
  /* slate-100 */
  --color-secondary-200: #E2E8F0;
  /* slate-200 */
  --color-secondary-300: #CBD5E1;
  /* slate-300 */
  --color-secondary-400: #94A3B8;
  /* slate-400 */
  --color-secondary-500: #64748B;
  /* slate-500 */
  --color-secondary-600: #475569;
  /* slate-600 */
  --color-secondary-700: #334155;
  /* slate-700 */
  /* Accent Colors */
  --color-accent: #059669;
  /* emerald-600 */
  --color-accent-50: #ECFDF5;
  /* emerald-50 */
  --color-accent-100: #D1FAE5;
  /* emerald-100 */
  --color-accent-500: #10B981;
  /* emerald-500 */
  --color-accent-600: #059669;
  /* emerald-600 */
  --color-accent-700: #047857;
  /* emerald-700 */
  /* Background Colors */
  --color-background: #FFFFFF;
  /* white */
  --color-surface: #F8FAFC;
  /* slate-50 */
  --color-surface-100: #F1F5F9;
  /* slate-100 */
  /* Text Colors */
  --color-text-primary: #0F172A;
  /* slate-900 */
  --color-text-secondary: #475569;
  /* slate-600 */
  --color-text-muted: #64748B;
  /* slate-500 */
  /* Status Colors */
  --color-success: #10B981;
  /* emerald-500 */
  --color-success-50: #ECFDF5;
  /* emerald-50 */
  --color-success-100: #D1FAE5;
  /* emerald-100 */
  --color-success-600: #059669;
  /* emerald-600 */
  --color-warning: #F59E0B;
  /* amber-500 */
  --color-warning-50: #FFFBEB;
  /* amber-50 */
  --color-warning-100: #FEF3C7;
  /* amber-100 */
  --color-warning-600: #D97706;
  /* amber-600 */
  --color-error: #EF4444;
  /* red-500 */
  --color-error-50: #FEF2F2;
  /* red-50 */
  --color-error-100: #FEE2E2;
  /* red-100 */
  --color-error-600: #DC2626;
  /* red-600 */
  /* Border Colors */
  --color-border: #E2E8F0;
  /* slate-200 */
  --color-border-light: #F1F5F9;
  /* slate-100 */
  /* Shadow Variables */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px 0 rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 10px 25px 0 rgba(0, 0, 0, 0.1);
  /* Animation Variables */
  --transition-fast: 250ms ease-out;
  --transition-normal: 300ms ease-out;
}

/* Base Styles */

/* Component Styles */

/* Utility Classes */

.hover\:scale-105:hover{
  --tw-scale-x: 1.05;
  --tw-scale-y: 1.05;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.hover\:bg-accent-50:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}

.hover\:bg-primary-50:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.hover\:bg-primary-700:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.hover\:bg-surface:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}

.hover\:text-accent:hover{
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.hover\:text-error:hover{
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.hover\:text-primary:hover{
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.hover\:text-primary-700:hover{
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}

.hover\:text-secondary:hover{
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.hover\:text-text-primary:hover{
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}

.hover\:text-text-secondary:hover{
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}

.hover\:shadow-xl:hover{
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.focus\:border-primary-500:focus{
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.focus\:ring-2:focus{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-primary-500:focus{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}

.disabled\:cursor-not-allowed:disabled{
  cursor: not-allowed;
}

.disabled\:opacity-50:disabled{
  opacity: 0.5;
}

@media (min-width: 640px){
  .sm\:mt-0{
    margin-top: 0px;
  }

  .sm\:block{
    display: block;
  }

  .sm\:flex-row{
    flex-direction: row;
  }

  .sm\:items-center{
    align-items: center;
  }

  .sm\:justify-between{
    justify-content: space-between;
  }
}

@media (min-width: 768px){
  .md\:block{
    display: block;
  }

  .md\:flex{
    display: flex;
  }

  .md\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-4{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:flex-row{
    flex-direction: row;
  }

  .md\:items-center{
    align-items: center;
  }

  .md\:justify-between{
    justify-content: space-between;
  }

  .md\:space-y-0 > :not([hidden]) ~ :not([hidden]){
    --tw-space-y-reverse: 0;
    margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0px * var(--tw-space-y-reverse));
  }
}

@media (min-width: 1024px){
  .lg\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:flex-row{
    flex-direction: row;
  }

  .lg\:items-center{
    align-items: center;
  }

  .lg\:justify-between{
    justify-content: space-between;
  }

  .lg\:space-y-0 > :not([hidden]) ~ :not([hidden]){
    --tw-space-y-reverse: 0;
    margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0px * var(--tw-space-y-reverse));
  }
}

@media (min-width: 1280px){
  .xl\:grid-cols-4{
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --- Appended from pages/products.html (custom scrollbar & carousel styles) --- */
/* Custom scrollbar for category list */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* For Firefox */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

/* Carousel styles */
.carousel-image {
  visibility: visible;
  opacity: 1;
  display: block;
}

.carousel-image.opacity-100 {
  visibility: visible;
  opacity: 1;
}

.view-carousel-image {
  visibility: visible;
  opacity: 1;
  display: block;
}

.view-carousel-image.opacity-100 {
  visibility: visible;
  opacity: 1;
}

.carousel-prev, .carousel-next {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev:hover, .carousel-next:hover {
  transform: scale(1.1);
}

.carousel-prev svg, .carousel-next svg {
  display: block;
}

/* Ensure backdrop-blur works */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* --- Appended from pages/inventory-nodata.html (button hover styles) --- */
.add-inventory-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-1px);
}

.add-inventory-btn:active {
  transform: translateY(0);
}

/* --- Added for inventory description scroll box and image count badge --- */
.description-box {
  max-height: 10.0rem; /* match image cell height visually */
  overflow-y: auto;
  padding-right: 0.25rem; /* small breathing room for scrollbar */
  white-space: normal;
}

.image-count-badge {
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-weight: 600;
}

/* --- APPEND: unique styles from wwwroot_mine/css/main.css (keeps conflicts - Option A) --- */

/* List view grid for accounts */
.list-view {
  /* Grid classes applied dynamically via Tailwind in JS */
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Allow nested elements to shrink below their intrinsic width to prevent overflow on zoom */
.list-view * {
  min-width: 0;
  box-sizing: border-box;
}

.list-view .account-item {
  width: 100%;
  min-width: 0;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.list-view .account-item:hover {
  border-color: #cbd5f5;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.list-view .account-image {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #eef2ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.list-view .account-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Action button appearances for list cards */
.list-view .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.list-view .action-btn.action-edit {
  background-color: rgba(37,99,235,0.06);
  color: #2563eb;
}
.list-view .action-btn.action-edit:hover {
  background-color: rgba(37,99,235,0.12);
}
.list-view .action-btn.action-delete {
  background-color: rgba(239,68,68,0.06);
  color: #ef4444;
}
.list-view .action-btn.action-delete:hover {
  background-color: rgba(239,68,68,0.12);
}

/* Accounts sidebar gradient styling */
.accounts-sidebar {
  background: linear-gradient(180deg, #dbeafe 0%, #eef2ff 55%, #ffffff 100%);
  border-right: 1px solid #c7d2fe;
  box-shadow: 6px 0 24px rgba(15, 23, 42, 0.08);
}

.accounts-sidebar h3 {
  color: #1d4ed8;
}

.accounts-sidebar .btn-secondary {
  background-color: rgba(37,99,235,0.08);
  color: #1e3a8a;
  border: 1px solid rgba(37,99,235,0.12);
}

.accounts-sidebar .btn-secondary:hover {
  background-color: rgba(37,99,235,0.16);
}

.accounts-sidebar .btn-primary {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* Fix margin-bottom utility to ensure it always applies */
.mb-8 {
    margin-bottom: 2rem !important;
}

/* Add better spacing for sidebar sections */
#sidebar .p-6 > div:not(:last-child) {
    margin-bottom: 2rem;
}

/* Improve Quick Actions section spacing */
#sidebar h3 {
    margin-bottom: 0.75rem;
}

/* Ensure consistent button spacing in Quick Actions */
#sidebar .space-y-2 > button {
    margin-bottom: 0.5rem;
}

#sidebar .space-y-2 > button:last-child {
    margin-bottom: 0;
}

/* Accounts page improvements */
body.accounts-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.accounts-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.accounts-layout {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.accounts-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.accounts-table-shell,
.accounts-table-shell > div {
  min-height: 0;
}

.accounts-table-scroll {
  border: 1px solid var(--color-border, #e5e7eb);
}

.accounts-table {
  border-collapse: separate;
  border-spacing: 0;
}

.accounts-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.08);
}

.accounts-table tbody tr {
  transition: background-color 0.2s ease;
}

.accounts-table tbody tr:hover {
  background-color: rgba(59, 130, 246, 0.04);
}

.account-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3730a3;
  background: #eef2ff;
  border-radius: 9999px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}

.table-action-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: var(--color-text-muted, #6b7280);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.table-action-btn:hover {
  background-color: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

.table-action-btn.delete:hover {
  background-color: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

/* Tooltip styling */
.tooltip-container {
    cursor: help;
    position: relative;
}

.tooltip-container:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background-color: #1f2937;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip-container:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    z-index: 1000;
    margin-bottom: -5px;
}

/* Masked key styling */
.masked-key {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
}

/* Copy button hover effects */
.copy-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Account type badge colors */
.bg-blue-100 {
    background-color: #dbeafe;
}

.text-blue-800 {
    color: #1e40af;
}

.bg-indigo-100 {
    background-color: #e0e7ff;
}

.text-indigo-800 {
    color: #3730a3;
}

.bg-green-100 {
    background-color: #d1fae5;
}

.text-green-800 {
    color: #065f46;
}

.bg-yellow-100 {
    background-color: #fef3c7;
}

.text-yellow-800 {
    color: #92400e;
}

.bg-purple-100 {
    background-color: #ede9fe;
}

.text-purple-800 {
    color: #5b21b6;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.text-gray-800 {
    color: #1f2937;
}

/* Pagination styling improvements */
#paginationControls {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#paginationControls button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

#pageNumbers button {
    min-width: 2rem;
    font-weight: 500;
}

/* Show/hide key button hover */
.show-key-btn:hover svg {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Table cell improvements */
table tbody td {
    vertical-align: middle;
}

/* Better spacing for action buttons in table */
table tbody td button {
    transition: all 0.25s ease;
}

table tbody td button:hover {
    transform: translateY(-1px);
}



/* --- Accounts Page Layout Fixes --- */

.accounts-table-shell {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
  height: 100%;
}
.accounts-table-scroll {
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* 1. Make the main content area fill the screen height */
.main-content-wrapper {
    /* Assuming navbar is approx 60px, but flex-1 on main usually handles this if parent is flex-col h-screen */
    /* We will apply this class to the main container */
    height: calc(100vh - 80px); /* Adjusted for potential header/padding */
    display: flex;
    flex-direction: column;
    min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

/* 2. Make the Table Card grow to fill space */
.table-card {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* 3. Handle the Table scrolling internally */
.accounts-table-shell {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
  flex-direction: column;
  overflow: hidden;
}

.accounts-table-scroll {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
}

/* 4. Sidebar pagination: clean, modern, and spacious design */

/* Main pagination container with professional styling */
.pagination-container {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(59, 130, 246, 0.01) 100%);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.pagination-container:hover {
    border-color: rgba(37, 99, 235, 0.15);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(59, 130, 246, 0.02) 100%);
}

/* Records counter - spacious and readable */
.pagination-counter {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid rgba(229, 231, 235, 0.6);
}

.pagination-counter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pagination-counter-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary, #2563eb);
}

.pagination-counter-total {
    font-size: 0.75rem;
    color: var(--color-text-muted, #6b7280);
    font-weight: 500;
}

/* Items per page section - modern form field */
.pagination-items-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pagination-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-primary, #1f2937);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* Items per page selector - modern dropdown styling */
.items-per-page-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.5rem 0.75rem;
    padding-right: 1.75rem;
    border: 1px solid var(--color-border, #e5e7eb);
    background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'><path fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/></svg>") no-repeat right 0.5rem center/1rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5rem;
    color: var(--color-text-primary, #1f2937);
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    background-color: #fafafa;
}

.items-per-page-select:hover {
    border-color: var(--color-primary, #2563eb);
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563eb'><path fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/></svg>");
    box-shadow: inset 0 0 0 1px var(--color-primary, #2563eb);
}

.items-per-page-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), inset 0 0 0 1px var(--color-primary, #2563eb);
    border-color: var(--color-primary, #2563eb);
    background-color: #fff;
}

/* Pagination navigation section */
.pagination-nav-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

/* Page indicator styling - centered and prominent */
.pagination-page-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary, #1f2937);
    min-width: 3.5rem;
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 0.375rem;
    letter-spacing: 0.5px;
}

/* ===== Header Pagination Variant (25% larger) ===== */
.pagination-container--header {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.pagination-container--header:hover {
    border-color: transparent;
    background: transparent;
}

/* Header variant - counter with larger text */
.pagination-container--header .pagination-counter {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 0.875rem;
}

.pagination-container--header .pagination-counter-label {
    font-size: 0.8125rem;
    font-weight: 600;
}

.pagination-container--header .pagination-counter-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary, #2563eb);
}

.pagination-container--header .pagination-counter-total {
    font-size: 0.8125rem;
}

/* Header variant - items per page (25% larger) */
.pagination-container--header .pagination-items-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
}

.pagination-container--header .pagination-label {
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline;
    margin: 0;
}

.pagination-container--header .items-per-page-select {
    padding: 0.625rem 0.9375rem;
    padding-right: 2.1875rem;
    font-size: 0.9625rem;
    font-weight: 600;
    width: auto;
    min-width: 5.5rem;
    background-size: 1.25rem 1.25rem;
    background-position: right 0.625rem center;
}

/* Header variant - nav section (25% larger) */
.pagination-container--header .pagination-nav-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9375rem;
    padding: 0;
}

.pagination-container--header .pagination-page-indicator {
    font-size: 0.9625rem;
    font-weight: 700;
    padding: 0.625rem 0.9375rem;
    min-width: 4.375rem;
}

.pagination-container--header .pagination-nav-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0.75rem;
}

/* ===== Unified Sidebar System ===== */
/* Standard sidebar container - ensures consistent scrolling behavior */
[data-sidebar="container"] {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Scrollable content area within sidebar - allows internal scrolling */
[data-sidebar="content"] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    padding: 1.5rem;
}

/* Sidebar toggle button - fixed positioning with smooth transitions */
[data-sidebar="toggle-btn"] {
    position: fixed;
    z-index: 20;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 64px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: left 0.3s ease-in-out, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

[data-sidebar="toggle-btn"]:hover {
    background-color: #f3f4f6;
}

[data-sidebar="toggle-btn"]:focus {
    outline: none;
    ring: 2px solid #2563eb;
    ring-offset: 2px;
}

/* Toggle icon rotation animation */
[data-sidebar="toggle-icon"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

/* Sidebar hidden state - collapses sidebar and adjusts layout */
.sidebar-hidden aside,
.sidebar-hidden [data-sidebar="container"],
.sidebar-hidden .sidebar {
    display: none !important;
    width: 0 !important;
}

.sidebar-hidden [data-sidebar="toggle-btn"] {
    left: 0 !important;
}

.sidebar-hidden [data-sidebar="toggle-icon"] {
    transform: rotate(180deg);
}

/* Main layout container - ensures sidebar and content fit properly */
[data-layout="main"] {
    position: relative;
    display: flex;
    height: calc(100vh - 6rem);
    min-height: 0;
}

/* Content wrapper for flex-based layout */
[data-layout="content"] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

/* Pagination navigation buttons - modern and tactile */
.pagination-nav-btn {
    padding: 0.5rem;
    border: 1.5px solid var(--color-border, #e5e7eb);
    border-radius: 0.5rem;
    background: #fff;
    color: var(--color-text-muted, #6b7280);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex: 1;
    min-height: 2.25rem;
    position: relative;
    overflow: hidden;
}

.pagination-nav-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pagination-nav-btn:hover:not(:disabled) {
    background: var(--color-primary, #2563eb);
    border-color: var(--color-primary, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.pagination-nav-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.pagination-nav-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}

.pagination-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

/* Icon styling for nav buttons */
.pagination-nav-btn svg {
    transition: transform 0.25s ease;
}

.pagination-nav-btn:hover:not(:disabled) svg {
    transform: scale(1.15);
}

/* Specific button modifiers */
.pagination-nav-btn--prev:hover:not(:disabled) svg {
    transform: scale(1.15) translateX(-2px);
}

.pagination-nav-btn--next:hover:not(:disabled) svg {
    transform: scale(1.15) translateX(2px);
}

/* Page indicator styling */
#pageIndicator {
    font-size: 0.75rem;
    color: var(--color-text-primary, #1f2937);
    min-width: 3rem;
    text-align: center;
}
.account-type-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    margin: 0 auto;
}

.type-1 { background-color: #e3f2fd; color: #1976d2; }
.type-2 { background-color: #fff3e0; color: #e65100; }
.type-3 { background-color: #ffebee; color: #c62828; }
.type-4 { background-color: #f3e5f5; color: #7b1fa2; }
.type-5 { background-color: #e8f5e9; color: #388e3c; }
.type-default { background-color: #f5f5f5; color: #616161; }

.accounts-table thead th {
    position: sticky;
    top: 0;
    background-color: #f9fafb;
    z-index: 10;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e5e7eb;
}

.accounts-table tbody tr:hover {
    background-color: #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-btn-polish {
    padding: 0.5rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
    background: transparent;
}
.action-btn-polish:hover {
    background-color: #e3f2fd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Sidebar Toggle - Hide/Show Functionality */
.sidebar-hidden aside,
.sidebar-hidden .sidebar {
    display: none !important;
    width: 0 !important;
}

/* ===== MODAL STYLES ===== */
/* Ensure modals are always on top of everything */
[id$="Modal"] {
    z-index: 9999 !important;
}

.fixed.inset-0.bg-black.bg-opacity-50 {
    z-index: 9999 !important;
}

/* When modal is visible, hide toggle button completely */
[data-sidebar="toggle-btn"].modal-open {
    display: none !important;
    pointer-events: none !important;
}

/* Modal backdrop - ensure it captures all pointer events */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    pointer-events: auto;
}

/* Modal content - ensure it's above backdrop */
.modal-content {
    position: relative;
    z-index: 10000;
    pointer-events: auto;
}

/* =============================================
   Products Page Specific Styles
   ============================================= */

/* Searchable Dropdown Styles */
.searchable-dropdown {
    position: relative;
}

.searchable-dropdown-input-wrapper {
    position: relative;
    width: 100%;
}

.searchable-dropdown-list {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 50;
}

.searchable-dropdown-list.hidden {
    display: none;
}

.dropdown-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: #f9fafb;
}

.dropdown-option.selected {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.dropdown-option.hidden {
    display: none;
}

.no-results {
    padding: 0.75rem 1rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Sidebar hide/show for products page */
.sidebar-hidden .sidebar {
    display: none !important;
}

/* Product Variants Modal Styling */
#productVariantsModal table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

#productVariantsModal table thead th {
    background-color: #EFF6FF;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center;
    padding: 12px 24px;
}

#productVariantsModal table tbody tr {
    transition: background-color 0.15s ease;
}

#productVariantsModal table tbody tr:hover {
    background-color: #F9FAFB;
}

#productVariantsModal table td,
#productVariantsModal table th {
    vertical-align: middle;
    text-align: center;
}

/* Left align specific columns */
#productVariantsModal table td:first-child,
#productVariantsModal table th:first-child {
    text-align: left;
}

/* Attributes column (5th) */
#productVariantsModal table td:nth-child(5),
#productVariantsModal table th:nth-child(5) {
  text-align: left;
  min-width: 250px;
  max-width: 400px;
}

/* Actions column (6th) - keep compact */
#productVariantsModal table td:nth-child(6),
#productVariantsModal table th:nth-child(6) {
  text-align: center;
  width: 1%;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
}

#productVariantsModal .attribute-badge {
    display: inline-flex;
    align-items: center;
    margin: 2px;
    white-space: nowrap;
}

/* =============================================
   Product Attributes Multi-Select Dropdown Styling
   ============================================= */

#attributeSelectBtn,
#attributeSelectBtnAdd {
    cursor: pointer;
    transition: all 0.15s ease;
}

#attributeSelectBtn:hover,
#attributeSelectBtnAdd:hover {
    border-color: #3B82F6;
}

#attributeSelectBtn svg,
#attributeSelectBtnAdd svg {
    transition: transform 0.2s ease;
}

#attributeSelectBtn.active svg,
#attributeSelectBtnAdd.active svg {
    transform: rotate(180deg);
}

#attributeDropdownMenu,
#attributeDropdownMenuAdd {
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#attributeSearchInput,
#attributeSearchInputAdd {
    font-size: 14px;
}

#attributeSearchInput:focus,
#attributeSearchInputAdd:focus {
    outline: none;
}

/* Attribute option item */
.attribute-option,
.attribute-option-add {
    padding: 10px 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attribute-option:last-child,
.attribute-option-add:last-child {
    border-bottom: none;
}

.attribute-option:hover,
.attribute-option-add:hover {
    background-color: #f9fafb;
}

.attribute-option input[type="checkbox"],
.attribute-option-add input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #3B82F6;
}

.attribute-option label,
.attribute-option-add label {
    cursor: pointer;
    flex-grow: 1;
    font-size: 14px;
    color: #374151;
    margin: 0;
}

/* Selected attributes badges */
#selectedAttributesBadges,
#selectedAttributesBadgesAdd {
    margin-top: 8px;
}

.attribute-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.attribute-badge .remove-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(30, 64, 175, 0.1);
    color: #1E40AF;
    transition: all 0.15s ease;
    font-size: 14px;
    padding: 0;
    border: none;
}

.attribute-badge .remove-btn:hover {
    background-color: rgba(30, 64, 175, 0.2);
}

/* End appended content */



