/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/*
! tailwindcss v3.4.10 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

b,
strong {
  font-weight: bolder;
}

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

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

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

small {
  font-size: 80%;
}

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

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

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

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

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

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

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

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

button,
select {
  text-transform: none;
}

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

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

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

:-moz-focusring {
  outline: auto;
}

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

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

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

progress {
  vertical-align: baseline;
}

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

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

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

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

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

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

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

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

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

summary {
  display: list-item;
}

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

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

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

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

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

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

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

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

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

/*
Set the default cursor for buttons.
*/

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

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

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

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

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

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

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden] {
  display: none;
}
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --radius: 0.5rem;
  }
  * {
  border-color: hsl(var(--border));
}
  body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

*, ::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:  ;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.-right-1\.5 {
  right: -0.375rem;
}
.-top-1\.5 {
  top: -0.375rem;
}
.bottom-0 {
  bottom: 0px;
}
.left-2 {
  left: 0.5rem;
}
.left-\[50\%\] {
  left: 50%;
}
.right-2 {
  right: 0.5rem;
}
.right-4 {
  right: 1rem;
}
.top-4 {
  top: 1rem;
}
.top-\[50\%\] {
  top: 50%;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.m-0 {
  margin: 0px;
}
.-mx-1 {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.-ml-2 {
  margin-left: -0.5rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-auto {
  margin-left: auto;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.h-12 {
  height: 3rem;
}
.h-2 {
  height: 0.5rem;
}
.h-24 {
  height: 6rem;
}
.h-28 {
  height: 7rem;
}
.h-3 {
  height: 0.75rem;
}
.h-3\.5 {
  height: 0.875rem;
}
.h-4 {
  height: 1rem;
}
.h-40 {
  height: 10rem;
}
.h-5 {
  height: 1.25rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[160px\] {
  height: 160px;
}
.h-\[18px\] {
  height: 18px;
}
.h-\[var\(--radix-select-trigger-height\)\] {
  height: var(--radix-select-trigger-height);
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.max-h-\[--radix-select-content-available-height\] {
  max-height: var(--radix-select-content-available-height);
}
.max-h-\[360px\] {
  max-height: 360px;
}
.max-h-\[90vh\] {
  max-height: 90vh;
}
.max-h-\[var\(--radix-dropdown-menu-content-available-height\)\] {
  max-height: var(--radix-dropdown-menu-content-available-height);
}
.min-h-\[180px\] {
  min-height: 180px;
}
.min-h-\[200px\] {
  min-height: 200px;
}
.min-h-\[80px\] {
  min-height: 80px;
}
.min-h-\[84px\] {
  min-height: 84px;
}
.min-h-screen {
  min-height: 100vh;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 3rem;
}
.w-2 {
  width: 0.5rem;
}
.w-24 {
  width: 6rem;
}
.w-28 {
  width: 7rem;
}
.w-3 {
  width: 0.75rem;
}
.w-3\.5 {
  width: 0.875rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-64 {
  width: 16rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.w-\[18px\] {
  width: 18px;
}
.w-\[360px\] {
  width: 360px;
}
.w-\[50px\] {
  width: 50px;
}
.w-\[70px\] {
  width: 70px;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[1\.25rem\] {
  min-width: 1.25rem;
}
.min-w-\[100px\] {
  min-width: 100px;
}
.min-w-\[140px\] {
  min-width: 140px;
}
.min-w-\[180px\] {
  min-width: 180px;
}
.min-w-\[190px\] {
  min-width: 190px;
}
.min-w-\[220px\] {
  min-width: 220px;
}
.min-w-\[28rem\] {
  min-width: 28rem;
}
.min-w-\[360px\] {
  min-width: 360px;
}
.min-w-\[8rem\] {
  min-width: 8rem;
}
.min-w-\[var\(--radix-select-trigger-width\)\] {
  min-width: var(--radix-select-trigger-width);
}
.max-w-\[180px\] {
  max-width: 180px;
}
.max-w-\[200px\] {
  max-width: 200px;
}
.max-w-\[95vw\] {
  max-width: 95vw;
}
.max-w-\[calc\(100vw-2rem\)\] {
  max-width: calc(100vw - 2rem);
}
.max-w-lg {
  max-width: 32rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.caption-bottom {
  caption-side: bottom;
}
.border-collapse {
  border-collapse: collapse;
}
.origin-\[--radix-dropdown-menu-content-transform-origin\] {
  transform-origin: var(--radix-dropdown-menu-content-transform-origin);
}
.origin-\[--radix-select-content-transform-origin\] {
  transform-origin: var(--radix-select-content-transform-origin);
}
.translate-x-\[-50\%\] {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-\[-50\%\] {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.rotate-180 {
  --tw-rotate: 180deg;
  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 pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-default {
  cursor: default;
}
.cursor-pointer {
  cursor: pointer;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-\[minmax\(0\2c 10rem\)_1fr\] {
  grid-template-columns: minmax(0,10rem) 1fr;
}
.grid-cols-\[minmax\(0\2c 8rem\)_1fr\] {
  grid-template-columns: minmax(0,8rem) 1fr;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.gap-x-8 {
  -moz-column-gap: 2rem;
       column-gap: 2rem;
}
.gap-y-5 {
  row-gap: 1.25rem;
}
.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-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));
}
.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-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * 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-5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * 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]) {
  border-color: hsl(var(--border));
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.text-pretty {
  text-wrap: pretty;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}
.rounded-sm {
  border-radius: calc(var(--radius) - 4px);
}
.rounded-xl {
  border-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-2 {
  border-width: 2px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-dashed {
  border-style: dashed;
}
.border-amber-200 {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / var(--tw-border-opacity));
}
.border-border {
  border-color: hsl(var(--border));
}
.border-border\/60 {
  border-color: hsl(var(--border) / 0.6);
}
.border-border\/70 {
  border-color: hsl(var(--border) / 0.7);
}
.border-border\/80 {
  border-color: hsl(var(--border) / 0.8);
}
.border-destructive\/30 {
  border-color: hsl(var(--destructive) / 0.3);
}
.border-emerald-200 {
  --tw-border-opacity: 1;
  border-color: rgb(167 243 208 / var(--tw-border-opacity));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity));
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(187 247 208 / var(--tw-border-opacity));
}
.border-input {
  border-color: hsl(var(--input));
}
.border-muted-foreground\/30 {
  border-color: hsl(var(--muted-foreground) / 0.3);
}
.border-primary {
  border-color: hsl(var(--primary));
}
.border-primary\/10 {
  border-color: hsl(var(--primary) / 0.1);
}
.border-primary\/20 {
  border-color: hsl(var(--primary) / 0.2);
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity));
}
.border-transparent {
  border-color: transparent;
}
.border-t-transparent {
  border-top-color: transparent;
}
.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity));
}
.bg-amber-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity));
}
.bg-background {
  background-color: hsl(var(--background));
}
.bg-black\/80 {
  background-color: rgb(0 0 0 / 0.8);
}
.bg-card {
  background-color: hsl(var(--card));
}
.bg-destructive {
  background-color: hsl(var(--destructive));
}
.bg-destructive\/5 {
  background-color: hsl(var(--destructive) / 0.05);
}
.bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity));
}
.bg-emerald-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity));
}
.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 244 / var(--tw-bg-opacity));
}
.bg-muted {
  background-color: hsl(var(--muted));
}
.bg-muted\/10 {
  background-color: hsl(var(--muted) / 0.1);
}
.bg-muted\/20 {
  background-color: hsl(var(--muted) / 0.2);
}
.bg-muted\/30 {
  background-color: hsl(var(--muted) / 0.3);
}
.bg-muted\/40 {
  background-color: hsl(var(--muted) / 0.4);
}
.bg-muted\/5 {
  background-color: hsl(var(--muted) / 0.05);
}
.bg-muted\/50 {
  background-color: hsl(var(--muted) / 0.5);
}
.bg-muted\/60 {
  background-color: hsl(var(--muted) / 0.6);
}
.bg-popover {
  background-color: hsl(var(--popover));
}
.bg-primary {
  background-color: hsl(var(--primary));
}
.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}
.bg-primary\/5 {
  background-color: hsl(var(--primary) / 0.05);
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity));
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity));
}
.bg-rose-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(244 63 94 / var(--tw-bg-opacity));
}
.bg-secondary {
  background-color: hsl(var(--secondary));
}
.bg-sky-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(14 165 233 / var(--tw-bg-opacity));
}
.bg-teal-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(20 184 166 / var(--tw-bg-opacity));
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.bg-white\/70 {
  background-color: rgb(255 255 255 / 0.7);
}
.bg-\[linear-gradient\(180deg\2c rgba\(236\2c 234\2c 227\2c 0\.74\)_0\%\2c rgba\(231\2c 228\2c 221\2c 0\.82\)_100\%\)\] {
  background-image: linear-gradient(180deg,rgba(236,234,227,0.74) 0%,rgba(231,228,221,0.82) 100%);
}
.fill-current {
  fill: currentColor;
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.object-center {
  -o-object-position: center;
     object-position: center;
}
.p-0 {
  padding: 0px;
}
.p-1 {
  padding: 0.25rem;
}
.p-12 {
  padding: 3rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.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-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-0 {
  padding-top: 0px;
  padding-bottom: 0px;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-6 {
  padding-bottom: 1.5rem;
}
.pl-1\.5 {
  padding-left: 0.375rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-8 {
  padding-left: 2rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-3 {
  padding-right: 0.75rem;
}
.pr-8 {
  padding-right: 2rem;
}
.pt-0 {
  padding-top: 0px;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.align-top {
  vertical-align: top;
}
.align-middle {
  vertical-align: middle;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-\[0\.8rem\] {
  font-size: 0.8rem;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.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-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-none {
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.text-amber-800 {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / var(--tw-text-opacity));
}
.text-card-foreground {
  color: hsl(var(--card-foreground));
}
.text-destructive {
  color: hsl(var(--destructive));
}
.text-destructive-foreground {
  color: hsl(var(--destructive-foreground));
}
.text-emerald-500 {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity));
}
.text-emerald-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity));
}
.text-emerald-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / var(--tw-text-opacity));
}
.text-foreground {
  color: hsl(var(--foreground));
}
.text-foreground\/80 {
  color: hsl(var(--foreground) / 0.8);
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity));
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-muted-foreground\/50 {
  color: hsl(var(--muted-foreground) / 0.5);
}
.text-muted-foreground\/80 {
  color: hsl(var(--muted-foreground) / 0.8);
}
.text-popover-foreground {
  color: hsl(var(--popover-foreground));
}
.text-primary {
  color: hsl(var(--primary));
}
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity));
}
.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity));
}
.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}
.underline {
  text-decoration-line: underline;
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.ring-offset-background {
  --tw-ring-offset-color: hsl(var(--background));
}
.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-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-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-200 {
  transition-duration: 200ms;
}
@keyframes enter {

  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
  }
}
@keyframes exit {

  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
  }
}
.duration-200 {
  animation-duration: 200ms;
}

/* =========================================================
   STARGATE Design System (based on provided dashboard UI)
   Version: 1.0
   Goals: clean enterprise UI, soft depth, orange accent, dark sidebar
   ========================================================= */

/* -----------------------------
   1) TOKENS (CSS VARIABLES)
------------------------------ */
:root {
  /* Brand */
  --sg-brand: #F4734F;          /* primary orange (approx from screenshot) */
  --sg-brand-600: #D85B3A;
  --sg-brand-700: #B55236;
  --sg-brand-100: #FCE4DC;

  /* Neutrals */
  --sg-bg: #F6F7F9;             /* app background */
  --sg-surface: #FFFFFF;        /* cards/panels */
  --sg-surface-2: #FAFBFC;      /* subtle panel */
  --sg-border: #ECEFF3;         /* hairline borders */
  --sg-border-2: #E3E7EE;

  --sg-text: #121417;           /* primary text */
  --sg-text-2: #5B6472;         /* secondary text */
  --sg-text-3: #8A93A3;         /* muted text */

  /* Sidebar (dark blue curvy like reference) */
  --sg-sidebar: #1A2A47;
  --sg-sidebar-2: #243B5C;
  --sg-sidebar-3: #2D4A6F;
  --sg-sidebar-text: #E8EDF5;
  --sg-sidebar-muted: #8FA3BF;
  --sg-sidebar-active: rgba(59, 130, 246, 0.25);
  --sg-sidebar-radius: 24px;
  --sg-sidebar-w: 260px;
  --sg-sidebar-w-collapsed: 72px;

  /* Semantic */
  --sg-success: #22C55E;
  --sg-success-bg: #E9F9EF;

  --sg-danger: #EF4444;
  --sg-danger-bg: #FDECEC;

  --sg-warning: #F59E0B;
  --sg-warning-bg: #FFF3D6;

  --sg-info: #3B82F6;
  --sg-info-bg: #EAF2FF;

  /* Typography */
  --sg-font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  --sg-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --sg-fs-12: 12px;
  --sg-fs-13: 13px;
  --sg-fs-14: 14px;
  --sg-fs-16: 16px;
  --sg-fs-18: 18px;
  --sg-fs-20: 20px;
  --sg-fs-24: 24px;
  --sg-fs-28: 28px;

  --sg-fw-400: 400;
  --sg-fw-500: 500;
  --sg-fw-600: 600;
  --sg-fw-700: 700;

  --sg-lh-tight: 1.2;
  --sg-lh-normal: 1.45;
  --sg-lh-relaxed: 1.6;

  /* Spacing (8pt system) */
  --sg-2: 2px;
  --sg-4: 4px;
  --sg-6: 6px;
  --sg-8: 8px;
  --sg-10: 10px;
  --sg-12: 12px;
  --sg-14: 14px;
  --sg-16: 16px;
  --sg-20: 20px;
  --sg-24: 24px;
  --sg-28: 28px;
  --sg-32: 32px;
  --sg-40: 40px;

  /* Radius */
  --sg-r-8: 8px;
  --sg-r-10: 10px;
  --sg-r-12: 12px;
  --sg-r-16: 16px;

  /* Shadow (soft like screenshot) */
  --sg-shadow-1: 0 6px 18px rgba(16, 24, 40, 0.06);
  --sg-shadow-2: 0 10px 28px rgba(16, 24, 40, 0.10);

  /* Focus ring */
  --sg-ring: 0 0 0 4px rgba(244, 115, 79, 0.18);

  /* Layout */
  --sg-topbar-h: 72px;

  /* Motion */
  --sg-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --sg-fast: 120ms;
  --sg-med: 180ms;
}

/* Optional: dark mode */
[data-theme="dark"] {
  --sg-bg: #0E0F12;
  --sg-surface: #12141A;
  --sg-surface-2: #0F1116;
  --sg-border: #23283A;
  --sg-border-2: #2B3148;

  --sg-text: #EDEFF5;
  --sg-text-2: #B7BECC;
  --sg-text-3: #8B94A8;
}

/* -----------------------------
   2) BASE / RESET
------------------------------ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sg-font-sans);
  font-size: var(--sg-fs-14);
  line-height: var(--sg-lh-normal);
  color: var(--sg-text);
  background: var(--sg-bg);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }

::-moz-selection { background: rgba(244, 115, 79, 0.22); }

::selection { background: rgba(244, 115, 79, 0.22); }

/* Utilities */
.sg-container { width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--sg-24); }
.sg-row { display: flex; gap: var(--sg-16); }
.sg-col { display: flex; flex-direction: column; gap: var(--sg-16); }
.sg-muted { color: var(--sg-text-2); }
.sg-subtle { color: var(--sg-text-3); }
.sg-divider { height: 1px; background: var(--sg-border); }
.sg-card {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-r-12);
  box-shadow: var(--sg-shadow-1);
}
.sg-card__hd { padding: var(--sg-16) var(--sg-16) var(--sg-8); }
.sg-card__bd { padding: var(--sg-16); }
.sg-card__ft { padding: var(--sg-12) var(--sg-16) var(--sg-16); }

/* -----------------------------
   3) APP SHELL (Sidebar + Main)
------------------------------ */
.sg-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sg-sidebar-w) 1fr;
  background: var(--sg-bg);
  transition: grid-template-columns var(--sg-med) var(--sg-ease);
}
.sg-app--sidebar-collapsed {
  grid-template-columns: var(--sg-sidebar-w-collapsed) 1fr;
}

.sg-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sg-sidebar-w);
  padding: var(--sg-20) var(--sg-12);
  color: var(--sg-sidebar-text);
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: var(--sg-8);
  transition: width var(--sg-med) var(--sg-ease), padding var(--sg-med) var(--sg-ease);
  overflow: hidden;
}
.sg-sidebar--collapsed {
  width: var(--sg-sidebar-w-collapsed);
  padding: var(--sg-20) var(--sg-8);
}
.sg-sidebar__menu-shell {
  flex: 1 1 auto;
  min-height: 0;
  padding: var(--sg-16) var(--sg-12);
  color: var(--sg-sidebar-text);
  background: var(--sg-sidebar);
  border-top-right-radius: var(--sg-sidebar-radius);
  border-bottom-right-radius: var(--sg-sidebar-radius);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sg-sidebar--collapsed .sg-sidebar__menu-shell {
  padding: var(--sg-16) var(--sg-8);
}
.sg-sidebar--collapsed .sg-sidebar__collapse-label,
.sg-sidebar--collapsed .sg-nav__label,
.sg-sidebar--collapsed .sg-nav__item-text,
.sg-sidebar--collapsed .sg-nav__sublist,
.sg-sidebar--collapsed .sg-nav__expand-icon,
.sg-sidebar--collapsed .sg-sidebar__user-name,
.sg-sidebar--collapsed .sg-sidebar__user-role {
  opacity: 0;
  width: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}
.sg-sidebar--collapsed .sg-brand__name { display: none; }
.sg-sidebar--collapsed .sg-nav__sublist { display: none !important; }
.sg-sidebar--collapsed .sg-nav {
  align-items: center;
  gap: 4px;
}
.sg-sidebar--collapsed .sg-nav__item,
.sg-sidebar--collapsed .sg-nav__section-trigger {
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 0;
  width: 46px;
  height: 46px;
  min-height: 46px;
  border-radius: 999px;
  box-sizing: border-box;
}
.sg-sidebar--collapsed .sg-nav__item .sg-nav__icon,
.sg-sidebar--collapsed .sg-nav__section-trigger .sg-nav__icon {
  margin: 0;
}
.sg-sidebar--collapsed .sg-nav__label {
  display: none;
}
.sg-sidebar--collapsed .sg-nav > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.sg-sidebar--collapsed .sg-nav__section-trigger {
  width: 46px;
}
.sg-sidebar--collapsed .sg-sidebar__user {
  justify-content: center;
  gap: var(--sg-6);
  padding: 8px;
}
.sg-sidebar--collapsed .sg-sidebar__user-signout {
  margin-left: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
}
.sg-sidebar--collapsed .sg-sidebar__user-signout-text { display: none; }
.sg-sidebar--collapsed .sg-brand {
  justify-content: center;
  gap: var(--sg-6);
  padding: 0;
}
.sg-sidebar--collapsed .sg-brand__identity { flex: 0 0 auto; }
.sg-sidebar--collapsed .sg-sidebar__collapse-btn {
  margin-left: 0;
  width: 28px;
  height: 28px;
}

.sg-brand-wrap {
  padding: var(--sg-8) var(--sg-8) var(--sg-12);
}
.sg-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sg-10);
}
.sg-brand__identity {
  display: flex;
  align-items: center;
  gap: var(--sg-10);
  min-width: 0;
}
.sg-brand__logo {
  width: 34px; height: 34px;
  border-radius: var(--sg-r-10);
  background: linear-gradient(135deg, var(--sg-brand), #FF8A6C);
  box-shadow: 0 10px 18px rgba(244, 115, 79, 0.18);
}
.sg-brand__name { font-weight: var(--sg-fw-700); letter-spacing: 0.4px; }

.sg-nav {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sg-6);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}
.sg-nav__label {
  margin: var(--sg-16) var(--sg-8) var(--sg-6);
  font-size: var(--sg-fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-sidebar-muted);
}
.sg-nav__item {
  display: flex;
  align-items: center;
  gap: var(--sg-10);
  padding: 10px 12px;
  border-radius: var(--sg-r-10);
  color: var(--sg-sidebar-text);
  opacity: 0.92;
  transition: transform var(--sg-fast) var(--sg-ease),
              background var(--sg-fast) var(--sg-ease),
              opacity var(--sg-fast) var(--sg-ease);
}
.sg-nav__item:hover {
  background: rgba(255, 255, 255, 0.06);
  opacity: 1;
}
.sg-nav__item--active {
  background: var(--sg-sidebar-active);
  color: #fff;
}
.sg-nav__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.95;
}
.sg-nav__item-text { transition: opacity var(--sg-med) var(--sg-ease); }
.sg-nav__section-trigger {
  display: flex;
  align-items: center;
  gap: var(--sg-10);
  padding: 10px 12px;
  border-radius: var(--sg-r-10);
  color: var(--sg-sidebar-text);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  font: inherit;
  text-align: left;
  transition: background var(--sg-fast) var(--sg-ease), opacity var(--sg-fast) var(--sg-ease);
}
.sg-nav__section-trigger:hover { background: rgba(255, 255, 255, 0.06); }
.sg-nav__expand-icon {
  margin-left: auto;
  transition: transform var(--sg-fast) var(--sg-ease);
}
.sg-nav__section-trigger[aria-expanded="true"] .sg-nav__expand-icon { transform: rotate(180deg); }
.sg-nav__sublist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
  margin-left: 28px;
  padding-left: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: opacity var(--sg-med) var(--sg-ease), max-height var(--sg-med) var(--sg-ease);
}
.sg-nav__sublist .sg-nav__item { padding: 8px 12px; font-size: var(--sg-fs-13); }
.sg-sidebar__user {
  margin-top: auto;
  padding-top: var(--sg-16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sg-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sg-sidebar__user-main {
  display: flex;
  align-items: center;
  gap: var(--sg-10);
  min-width: 0;
}
.sg-sidebar__user-avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--sg-sidebar-2);
  flex-shrink: 0;
}
.sg-sidebar__user-name { font-weight: var(--sg-fw-600); font-size: var(--sg-fs-13); }
.sg-sidebar__user-role { font-size: var(--sg-fs-12); color: var(--sg-sidebar-muted); }
.sg-sidebar__user-signout {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--sg-sidebar-text);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--sg-fast) var(--sg-ease), border-color var(--sg-fast) var(--sg-ease),
    color var(--sg-fast) var(--sg-ease);
}
.sg-sidebar__user-signout:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}
.sg-sidebar__user-signout-text {
  font-size: var(--sg-fs-12);
  font-weight: var(--sg-fw-600);
}
.sg-main-area {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sg-sidebar__collapse-btn {
  position: static;
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-sidebar-text);
  flex-shrink: 0;
  transition: background var(--sg-fast) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease),
    border-color var(--sg-fast) var(--sg-ease), color var(--sg-fast) var(--sg-ease);
}
.sg-sidebar__collapse-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.sg-sidebar__collapse-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--sg-sidebar), 0 0 0 4px rgba(59, 130, 246, 0.4);
}
.sg-sidebar__collapse-btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 2.25;
}

.sg-main {
  min-width: 0;
  padding: var(--sg-24);
  flex: 1;
}

/* -----------------------------
   4) TOPBAR + PAGE HEADER
------------------------------ */
.sg-topbar {
  height: var(--sg-topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sg-16);
  padding: 0 var(--sg-24);
  border-radius: var(--sg-r-16);
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow-1);
}

.sg-title {
  font-size: var(--sg-fs-24);
  font-weight: var(--sg-fw-700);
  line-height: var(--sg-lh-tight);
}

.sg-user {
  display: flex;
  align-items: center;
  gap: var(--sg-10);
}
.sg-avatar {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: #DCE3EE;
  border: 2px solid rgba(244, 115, 79, 0.18);
}
.sg-user__meta { display: flex; flex-direction: column; line-height: 1.1; }
.sg-user__name { font-weight: var(--sg-fw-600); font-size: var(--sg-fs-13); }
.sg-user__role { font-size: var(--sg-fs-12); color: var(--sg-text-3); }

/* Page intro block (Welcome + filters like screenshot) */
.sg-hero {
  margin-top: var(--sg-16);
  padding: var(--sg-16);
  border-radius: var(--sg-r-16);
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow-1);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sg-16);
}
.sg-hero__left h2 {
  margin: 0 0 var(--sg-6);
  font-size: var(--sg-fs-18);
  font-weight: var(--sg-fw-700);
}
.sg-hero__left p {
  margin: 0;
  color: var(--sg-text-2);
  font-size: var(--sg-fs-13);
}

/* -----------------------------
   5) BUTTONS + CONTROLS
------------------------------ */
.sg-btn {
  border: 1px solid var(--sg-border-2);
  background: var(--sg-surface);
  color: var(--sg-text);
  border-radius: var(--sg-r-10);
  padding: 10px 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--sg-8);
  cursor: pointer;
  transition: transform var(--sg-fast) var(--sg-ease),
              box-shadow var(--sg-fast) var(--sg-ease),
              border-color var(--sg-fast) var(--sg-ease);
}
.sg-btn:hover { box-shadow: var(--sg-shadow-1); transform: translateY(-1px); }
.sg-btn:active { transform: translateY(0); }
.sg-btn:focus { outline: none; box-shadow: var(--sg-shadow-1), var(--sg-ring); }

.sg-btn--primary {
  background: var(--sg-brand);
  border-color: rgba(0,0,0,0.06);
  color: #fff;
}
.sg-btn--primary:hover { box-shadow: 0 10px 22px rgba(244, 115, 79, 0.24); }

.sg-btn--ghost {
  background: transparent;
  border-color: transparent;
}
.sg-btn--ghost:hover { background: rgba(18, 20, 23, 0.04); }

.sg-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: var(--sg-fs-12);
  border: 1px solid var(--sg-border);
  background: var(--sg-surface-2);
  color: var(--sg-text-2);
}

.sg-select, .sg-input {
  height: 38px;
  border-radius: var(--sg-r-10);
  border: 1px solid var(--sg-border-2);
  background: var(--sg-surface);
  padding: 0 var(--sg-12);
  color: var(--sg-text);
  outline: none;
  transition: box-shadow var(--sg-fast) var(--sg-ease), border-color var(--sg-fast) var(--sg-ease);
}
.sg-select:focus, .sg-input:focus { box-shadow: var(--sg-ring); border-color: rgba(244, 115, 79, 0.45); }

.sg-actions { display: flex; align-items: center; gap: var(--sg-10); flex-wrap: wrap; }

/* -----------------------------
   6) KPI CARDS (Top stats row)
------------------------------ */
.sg-kpis {
  margin-top: var(--sg-16);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sg-16);
}
@media (max-width: 1100px) { .sg-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .sg-kpis { grid-template-columns: 1fr; } }

.sg-kpi {
  padding: var(--sg-16);
  border-radius: var(--sg-r-12);
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  box-shadow: var(--sg-shadow-1);
  display: flex;
  flex-direction: column;
  gap: var(--sg-8);
}
.sg-kpi__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sg-10); }
.sg-kpi__label { color: var(--sg-text-2); font-size: var(--sg-fs-13); font-weight: var(--sg-fw-500); }
.sg-kpi__value { font-size: var(--sg-fs-28); font-weight: var(--sg-fw-700); line-height: var(--sg-lh-tight); }
.sg-kpi__foot { display: flex; align-items: center; justify-content: space-between; color: var(--sg-text-3); font-size: var(--sg-fs-12); }

.sg-delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: var(--sg-fs-12);
  border: 1px solid var(--sg-border);
}
.sg-delta--up { background: var(--sg-success-bg); color: #166534; border-color: rgba(34,197,94,0.18); }
.sg-delta--down { background: var(--sg-danger-bg); color: #991B1B; border-color: rgba(239,68,68,0.18); }

/* Small icon chip (top-right like screenshot) */
.sg-kpi__icon {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: rgba(244, 115, 79, 0.12);
  border: 1px solid rgba(244, 115, 79, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-brand-700);
}

/* -----------------------------
   7) DASHBOARD GRID (Charts + Panels)
------------------------------ */
.sg-grid {
  margin-top: var(--sg-16);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--sg-16);
}
@media (max-width: 1100px) { .sg-grid { grid-template-columns: 1fr; } }

/* Chart headers */
.sg-panel-title {
  font-size: var(--sg-fs-14);
  font-weight: var(--sg-fw-700);
  margin: 0;
}
.sg-panel-sub {
  margin: 6px 0 0;
  color: var(--sg-text-3);
  font-size: var(--sg-fs-12);
}

/* Chart canvas container (for Chart.js, Recharts, etc.) */
.sg-chart {
  height: 280px;
  border-radius: var(--sg-r-12);
  background: linear-gradient(180deg, var(--sg-surface) 0%, var(--sg-surface-2) 100%);
  border: 1px dashed rgba(227, 231, 238, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sg-text-3);
}

/* Donut/summary legend block */
.sg-legend {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sg-10);
  margin-top: var(--sg-12);
}
.sg-legend__row {
  display: contents;
}
.sg-legend__name {
  display: flex;
  align-items: center;
  gap: var(--sg-8);
  color: var(--sg-text-2);
  font-size: var(--sg-fs-13);
}
.sg-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--sg-brand);
}
.sg-dot.bg-teal-500 { background: #14b8a6 !important; }
.sg-dot.bg-amber-500 { background: #f59e0b !important; }
.sg-dot.bg-red-500 { background: #ef4444 !important; }
.sg-legend__val {
  font-size: var(--sg-fs-13);
  color: var(--sg-text);
  font-weight: var(--sg-fw-600);
}

/* -----------------------------
   8) TABLE (Attendance list style)
------------------------------ */
.sg-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--sg-r-12);
  border: 1px solid var(--sg-border);
  background: var(--sg-surface);
}
.sg-table th, .sg-table td {
  padding: 12px 12px;
  text-align: left;
  font-size: var(--sg-fs-13);
  border-bottom: 1px solid var(--sg-border);
  white-space: nowrap;
}
.sg-table th {
  color: var(--sg-text-2);
  font-weight: var(--sg-fw-600);
  background: var(--sg-surface-2);
}
.sg-table tr:last-child td { border-bottom: 0; }
.sg-table tr:hover td { background: rgba(18, 20, 23, 0.02); }

.sg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: var(--sg-fs-12);
  border-radius: 999px;
  border: 1px solid var(--sg-border);
  background: var(--sg-surface-2);
  color: var(--sg-text-2);
}
.sg-badge--wfo {
  background: rgba(244, 115, 79, 0.10);
  border-color: rgba(244, 115, 79, 0.20);
  color: var(--sg-brand-700);
}

/* -----------------------------
   9) LIST CARDS (Circular letter / Feed)
------------------------------ */
.sg-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sg-10);
}
.sg-feed-item {
  padding: var(--sg-12);
  border-radius: var(--sg-r-12);
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  transition: box-shadow var(--sg-fast) var(--sg-ease), transform var(--sg-fast) var(--sg-ease);
}
.sg-feed-item:hover { box-shadow: var(--sg-shadow-1); transform: translateY(-1px); }
.sg-feed-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sg-10);
  margin-bottom: var(--sg-8);
}
.sg-tag {
  font-size: var(--sg-fs-12);
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--sg-border);
  background: var(--sg-surface-2);
  color: var(--sg-text-2);
}
.sg-tag--urgent {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: #991B1B;
}
.sg-feed-item__title {
  font-weight: var(--sg-fw-700);
  font-size: var(--sg-fs-13);
  margin: 0;
}
.sg-feed-item__text {
  margin: 0;
  color: var(--sg-text-2);
  font-size: var(--sg-fs-13);
}

/* -----------------------------
   10) SPACING HELPERS (optional)
------------------------------ */
.sg-mt-8 { margin-top: var(--sg-8); }
.sg-mt-16 { margin-top: var(--sg-16); }
.sg-mt-24 { margin-top: var(--sg-24); }
.sg-p-16 { padding: var(--sg-16); }
.sg-p-24 { padding: var(--sg-24); }

/* -------------------------------------------------
   Visual Refresh Only (content preserved)
-------------------------------------------------- */
:root {
  --sg-brand: #f4c94a;
  --sg-brand-600: #deb43f;
  --sg-brand-700: #c59a35;
  --sg-brand-100: #fff4cd;

  --sg-bg: #eceae3;
  --sg-surface: #f9f8f5;
  --sg-surface-2: #f1eee7;
  --sg-border: #ddd9cf;
  --sg-border-2: #d5d1c5;

  --sg-text: #1f252f;
  --sg-text-2: #666c6a;
  --sg-text-3: #8a908d;

  --sg-sidebar: #f8f7f3;
  --sg-sidebar-2: #f0ede6;
  --sg-sidebar-3: #e7e3d9;
  --sg-sidebar-text: #1f252f;
  --sg-sidebar-muted: #8a8f8c;
  --sg-sidebar-active: rgba(20, 27, 38, 0.92);
  --sg-sidebar-w: 270px;
  --sg-sidebar-w-collapsed: 76px;

  --sg-ring: 0 0 0 4px rgba(244, 201, 74, 0.25);
  --sg-shadow-1: 0 10px 24px rgba(41, 37, 30, 0.08);
  --sg-shadow-2: 0 18px 32px rgba(41, 37, 30, 0.12);
}

body {
  background: linear-gradient(180deg, #eceae3 0%, #e7e4dd 100%);
  color: var(--sg-text);
}

::-moz-selection {
  background: rgba(244, 201, 74, 0.3);
}

::selection {
  background: rgba(244, 201, 74, 0.3);
}

.sg-app {
  min-height: 100vh;
  padding: 20px;
  gap: 20px;
  background: transparent;
}

.sg-app,
.sg-app--sidebar-collapsed {
  display: grid;
  grid-template-columns: var(--sg-sidebar-w) 1fr;
}

.sg-app--sidebar-collapsed {
  grid-template-columns: var(--sg-sidebar-w-collapsed) 1fr;
}

.sg-sidebar {
  position: sticky;
  top: 20px;
  height: calc(100vh - 40px);
  width: 100%;
  padding: 2px 6px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--sg-sidebar-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sg-sidebar--collapsed {
  width: 100%;
  padding: 2px;
}

.sg-sidebar__menu-shell {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 30px;
  border: 1px solid var(--sg-border);
  background: #f8f7f3;
  box-shadow: var(--sg-shadow-1);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sg-sidebar--collapsed .sg-sidebar__menu-shell {
  padding: 10px 6px;
}

.sg-brand-wrap {
  padding: 2px 6px 8px;
}

.sg-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
}

.sg-brand__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sg-brand__logo {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f252f;
  box-shadow: 0 8px 18px rgba(23, 29, 39, 0.24);
  color: #ffe37b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.sg-brand__logo::before {
  content: "TH";
  line-height: 1;
}

.sg-nav {
  gap: 10px;
  margin-top: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.sg-nav__label {
  margin: 8px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: var(--sg-sidebar-muted);
}

.sg-nav__item,
.sg-nav__section-trigger {
  border-radius: 999px;
  border: 1px solid #e4dfd3;
  background: #f4f2ec;
  color: #222936;
  padding: 10px 12px;
  transition: transform var(--sg-fast) var(--sg-ease), box-shadow var(--sg-fast) var(--sg-ease),
    background var(--sg-fast) var(--sg-ease), color var(--sg-fast) var(--sg-ease), border-color var(--sg-fast) var(--sg-ease);
}

.sg-nav__item:hover,
.sg-nav__section-trigger:hover {
  background: #141b26;
  color: #ffe37b;
  border-color: #141b26;
  box-shadow: 0 8px 18px rgba(20, 27, 38, 0.24);
  transform: translateY(-1px);
}

.sg-nav__item--active,
.sg-nav__item--active:hover {
  background: #141b26;
  color: #ffe37b;
  border-color: #141b26;
  box-shadow: 0 10px 22px rgba(20, 27, 38, 0.28);
}

.sg-nav__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ece9e1;
  color: #202731;
}

.sg-nav__item--active .sg-nav__icon {
  background: rgba(255, 226, 110, 0.18);
  color: #ffe37b;
}

.sg-nav__section-trigger {
  border-radius: 16px;
}

.sg-nav__expand-icon {
  color: currentColor;
}

.sg-nav__sublist {
  margin-top: 6px;
  margin-left: 0;
  border-left: none;
  padding: 6px;
  border-radius: 14px;
  background: #eeebe4;
  border: 1px solid #e4dfd3;
  gap: 6px;
}

.sg-nav__sublist .sg-nav__item {
  border-radius: 12px;
  padding: 8px 10px;
}

.sg-sidebar__user {
  margin-top: auto;
  border-top: none;
  border-radius: 14px;
  border: 1px solid #e4dfd3;
  background: #f1eee7;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sg-sidebar__user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sg-sidebar__user-avatar {
  background: linear-gradient(135deg, #f2d8ac 0%, #e8ba70 100%);
  border: 1px solid #dcc48f;
}

.sg-sidebar__user-role {
  color: #7f847f;
}

.sg-sidebar__user-signout {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ddd5c5;
  background: #f8f5ec;
  color: #4d5560;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.sg-sidebar__user-signout:hover {
  background: #141b26;
  border-color: #141b26;
  color: #ffe37b;
}

.sg-sidebar__user-signout-text {
  font-size: 12px;
  font-weight: 600;
}

.sg-main-area {
  min-width: 0;
}

.sg-sidebar__collapse-btn {
  position: static;
  left: auto;
  top: auto;
  margin-left: auto;
  transform: none;
  width: 30px;
  height: 30px;
  border: 1px solid #d9d2c3;
  background: #fbf9f3;
  color: #525a63;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 10px rgba(30, 28, 24, 0.12);
  flex-shrink: 0;
}

.sg-sidebar__collapse-btn:hover {
  background: #141b26;
  color: #ffe37b;
  border-color: #141b26;
}

.sg-sidebar--collapsed .sg-brand {
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.sg-sidebar--collapsed .sg-brand__identity {
  flex: 0 0 auto;
}

.sg-sidebar--collapsed .sg-sidebar__collapse-btn {
  margin-left: 0;
  width: 28px;
  height: 28px;
}

.sg-sidebar--collapsed .sg-sidebar__user {
  justify-content: center;
  gap: 6px;
  padding: 8px 6px;
}

.sg-sidebar--collapsed .sg-sidebar__user-signout {
  margin-left: 0;
  width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
}

.sg-sidebar--collapsed .sg-sidebar__user-signout-text {
  display: none;
}

.sg-main {
  padding: 0;
}

.sg-topbar {
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 8px 2px 14px;
  border-radius: 0;
}

.sg-title {
  font-size: clamp(26px, 2vw, 38px);
  letter-spacing: -0.02em;
  color: #1f252f;
}

.sg-topbar .sg-avatar {
  border-color: rgba(20, 27, 38, 0.12);
}

.sg-hero {
  margin-top: 0;
  border-radius: 26px;
  border: 1px solid var(--sg-border);
  background: #c9c1b0;
  box-shadow: var(--sg-shadow-1);
  padding: 20px;
}

.sg-hero__left h2 {
  color: #1f252f;
  font-size: clamp(26px, 2vw, 34px);
  letter-spacing: -0.01em;
}

.sg-hero__left p {
  color: #383f49;
  max-width: 520px;
}

.sg-hero.sg-hero--compact,
.sg-hero.sg-hero--rules {
  border-radius: 20px;
  padding: 14px 16px;
}

.sg-hero.sg-hero--compact .sg-hero__left h2,
.sg-hero.sg-hero--rules .sg-hero__left h2 {
  font-size: clamp(20px, 1.5vw, 28px);
  margin-bottom: 2px;
}

.sg-hero.sg-hero--compact .sg-hero__left p,
.sg-hero.sg-hero--rules .sg-hero__left p {
  font-size: 14px;
}

.sg-hero.sg-hero--compact h1,
.sg-hero.sg-hero--rules h1 {
  font-size: clamp(20px, 1.5vw, 28px);
  line-height: 1.2;
}

.sg-kpis {
  margin-top: 14px;
  gap: 14px;
}

.sg-kpi {
  border-radius: 24px;
  border: 1px solid var(--sg-border);
  background: #f8f7f4;
  box-shadow: var(--sg-shadow-1);
}

.sg-kpi__label {
  color: #4e555f;
  font-size: 13px;
}

.sg-kpi__value {
  font-size: clamp(30px, 2.4vw, 42px);
  color: #1f252f;
}

.sg-kpi__icon {
  background: #f2efe6;
  border-color: #ded8ca;
  color: #252c36;
}

.sg-grid {
  margin-top: 14px;
  gap: 14px;
}

.sg-grid > div,
.sg-health-card,
.sg-panel {
  border-radius: 26px;
}

.sg-grid > div {
  border: 1px solid var(--sg-border) !important;
  background: #f8f7f4 !important;
  box-shadow: var(--sg-shadow-1);
}

.sg-panel-title {
  font-size: 20px;
  color: #1f252f;
}

.sg-panel-sub {
  color: #6b726f;
}

.sg-legend__name {
  color: #4c535d;
}

.sg-legend__val {
  color: #252b34;
}

.sg-feed-item,
.sg-feed > li > a,
.sg-feed > li {
  border-radius: 16px;
}

.sg-table,
.sg-table th,
.sg-table td {
  border-color: #dfdbd1;
}

.sg-btn,
button,
[role="button"] {
  border-radius: 999px;
}

.sg-btn--primary {
  background: #141b26;
  border-color: #141b26;
}

.sg-btn--primary:hover {
  background: #0e141d;
  border-color: #0e141d;
  box-shadow: 0 10px 20px rgba(20, 27, 38, 0.24);
}

@media (max-width: 1100px) {
  .sg-app,
  .sg-app--sidebar-collapsed {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 12px;
  }

  .sg-sidebar {
    position: static;
    height: auto;
    padding: 0;
  }

  .sg-sidebar__menu-shell {
    border-radius: 24px;
    min-height: 0;
  }

  .sg-sidebar__collapse-btn {
    display: none;
  }

  .sg-nav {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .sg-nav > div {
    min-width: 230px;
  }

  .sg-sidebar__user {
    display: none;
  }

  .sg-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .sg-title {
    font-size: 24px;
  }
}

@media (max-width: 680px) {
  .sg-kpi,
  .sg-grid > div,
  .sg-hero {
    border-radius: 18px;
  }
}

/* Login visual alignment with the same dashboard theme */
.sg-login {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #eceae3 0%, #e7e4dd 100%);
}

.sg-login__card {
  width: min(460px, 100%);
  border-radius: 34px;
  border: 1px solid #ddd9cf;
  background: #f8f7f4;
  box-shadow: 0 16px 34px rgba(41, 37, 30, 0.12);
  padding: 26px 24px 20px;
}

.sg-login__logo-wrap {
  display: grid;
  place-items: center;
}

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

.sg-login__header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.02em;
  color: #1f252f;
}

.sg-login__header p {
  margin: 8px 0 0;
  color: #666c6a;
  font-size: 15px;
}

.sg-login__form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.sg-login__label {
  color: #3c434b;
  font-weight: 600;
}

.sg-login__field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  height: 16px;
  width: 16px;
  color: #6d7472;
  pointer-events: none;
}

.sg-login__input {
  height: 46px;
  padding-left: 42px;
  border-radius: 999px;
  border-color: #d8d3c9;
  background: #f1eee7;
  color: #1f252f;
}

.sg-login__input::-moz-placeholder {
  color: #8a908d;
}

.sg-login__input::placeholder {
  color: #8a908d;
}

.sg-login__input:focus {
  border-color: #cdb468;
  box-shadow: 0 0 0 3px rgba(244, 201, 74, 0.2);
}

.sg-login__error {
  border-radius: 14px;
  border: 1px solid #f1c7c7;
  background: #fff2f2;
  padding: 10px 12px;
}

.sg-login__error p {
  margin: 0;
  color: #8e2f2f;
  font-size: 13px;
  text-align: center;
}

.sg-login__submit {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #141b26;
  background: #141b26;
  color: #f5f5f2;
  font-weight: 700;
}

.sg-login__submit:hover {
  background: #0d131d;
  border-color: #0d131d;
  box-shadow: 0 10px 20px rgba(20, 27, 38, 0.24);
}

.sg-login__copyright {
  margin: 14px 0 0;
  text-align: center;
  color: #8a908d;
  font-size: 12px;
}

/* Dashboard Motion System (reusable for CRUD screens) */
.sg-dashboard-motion {
  --sg-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sg-motion-duration: 620ms;
}

.sg-dashboard-motion .sg-hero {
  position: relative;
  overflow: hidden;
}

.sg-dashboard-motion .sg-hero::after {
  content: "";
  position: absolute;
  inset: -40% -25%;
  pointer-events: none;
  background:
    radial-gradient(40% 30% at 25% 15%, rgba(255, 245, 188, 0.34) 0%, rgba(255, 245, 188, 0) 75%),
    radial-gradient(44% 30% at 78% 85%, rgba(255, 221, 133, 0.24) 0%, rgba(255, 221, 133, 0) 75%);
  animation: sg-hero-glow 10s ease-in-out infinite alternate;
}

.sg-animate-in {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.985);
  animation: sg-reveal var(--sg-motion-duration) var(--sg-motion-ease) forwards;
  animation-delay: var(--sg-delay, 0ms);
  will-change: transform, opacity;
}

.sg-animate-in--hero {
  transform: translate3d(0, 22px, 0) scale(1);
}

.sg-animate-in--rise {
  transform: translate3d(0, 14px, 0) scale(0.992);
}

.sg-animate-in--left {
  transform: translate3d(-18px, 14px, 0) scale(0.988);
}

.sg-animate-in--right {
  transform: translate3d(18px, 14px, 0) scale(0.988);
}

.sg-dashboard-panel {
  position: relative;
  isolation: isolate;
}

.sg-dashboard-panel::before {
  content: "";
  position: absolute;
  inset: -28% -22%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--sg-motion-ease);
  background:
    radial-gradient(36% 32% at 18% 16%, rgba(255, 242, 178, 0.22) 0%, rgba(255, 242, 178, 0) 75%),
    radial-gradient(44% 36% at 84% 78%, rgba(20, 27, 38, 0.08) 0%, rgba(20, 27, 38, 0) 76%);
}

.sg-dashboard-panel:hover::before {
  opacity: 1;
}

.sg-dashboard-panel > * {
  position: relative;
  z-index: 1;
}

.sg-dashboard-motion .sg-kpi {
  transition: transform 220ms var(--sg-motion-ease), box-shadow 220ms var(--sg-motion-ease);
  transform: translateZ(0);
}

.sg-dashboard-motion .sg-kpi:hover {
  transform: translateY(-4px);
}

.sg-quick-link {
  transition: transform 180ms var(--sg-motion-ease), background-color 180ms var(--sg-motion-ease),
    border-color 180ms var(--sg-motion-ease), box-shadow 180ms var(--sg-motion-ease);
}

.sg-quick-link:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 18px rgba(20, 27, 38, 0.14);
}

.sg-trend-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: sg-line-draw 1200ms var(--sg-motion-ease) forwards;
  animation-delay: calc(var(--sg-delay, 0ms) + 220ms);
}

.sg-donut-ring {
  opacity: 0;
  transform: scale(0.84) rotate(-20deg);
  transform-origin: 50% 50%;
  animation: sg-donut-pop 920ms var(--sg-motion-ease) forwards;
  animation-delay: var(--sg-delay, 0ms);
}

@keyframes sg-reveal {
  0% {
    opacity: 0;
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes sg-line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sg-donut-pop {
  0% {
    opacity: 0;
    transform: scale(0.84) rotate(-20deg);
  }
  62% {
    opacity: 1;
    transform: scale(1.04) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes sg-hero-glow {
  from {
    transform: translate3d(-2%, -1%, 0);
  }
  to {
    transform: translate3d(2%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-animate-in,
  .sg-trend-line,
  .sg-donut-ring,
  .sg-dashboard-motion .sg-hero::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .sg-dashboard-panel::before {
    display: none;
  }

  .sg-dashboard-motion .sg-kpi,
  .sg-quick-link {
    transition: none !important;
    transform: none !important;
  }
}

/* Sidebar Menu Motion */
.sg-nav--animated .sg-menu-anim {
  opacity: 0;
  transform: translate3d(-14px, 6px, 0) scale(0.98);
  filter: blur(4px);
  animation: sg-menu-item-in 480ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
  animation-delay: var(--sg-menu-delay, 0ms);
  will-change: transform, opacity;
}

.sg-nav--animated .sg-nav__sublist--animated {
  transform-origin: top center;
  animation: sg-menu-sublist-in 240ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
  animation-delay: var(--sg-menu-delay, 0ms);
}

.sg-nav--animated .sg-menu-anim-sub {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.985);
  filter: blur(3px);
  animation: sg-menu-subitem-in 360ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
  animation-delay: var(--sg-menu-delay, 0ms);
  will-change: transform, opacity;
}

.sg-nav--animated .sg-nav__section-trigger[aria-expanded="true"] .sg-nav__icon {
  animation: sg-menu-icon-pop 360ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

@keyframes sg-menu-item-in {
  0% {
    opacity: 0;
    transform: translate3d(-14px, 6px, 0) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes sg-menu-sublist-in {
  0% {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes sg-menu-subitem-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) scale(0.985);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes sg-menu-icon-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.08) translateY(-1px); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .sg-nav--animated .sg-menu-anim,
  .sg-nav--animated .sg-menu-anim-sub,
  .sg-nav--animated .sg-nav__sublist--animated,
  .sg-nav--animated .sg-nav__section-trigger[aria-expanded="true"] .sg-nav__icon {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Route Content Motion (masters/rules/settings) */
.sg-route-enter {
  animation: sg-route-fade-in 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sg-route-enter > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(0.992);
  animation: sg-route-item-in 520ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

.sg-route-enter--stagger > *:nth-child(1) { animation-delay: 70ms; }
.sg-route-enter--stagger > *:nth-child(2) { animation-delay: 130ms; }
.sg-route-enter--stagger > *:nth-child(3) { animation-delay: 190ms; }
.sg-route-enter--stagger > *:nth-child(4) { animation-delay: 250ms; }
.sg-route-enter--stagger > *:nth-child(5) { animation-delay: 310ms; }
.sg-route-enter--stagger > *:nth-child(6) { animation-delay: 370ms; }

.sg-page-stagger > * {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.995);
  animation: sg-route-item-in 460ms cubic-bezier(0.2, 0.85, 0.2, 1) forwards;
}

.sg-page-stagger > *:nth-child(1) { animation-delay: 90ms; }
.sg-page-stagger > *:nth-child(2) { animation-delay: 150ms; }
.sg-page-stagger > *:nth-child(3) { animation-delay: 210ms; }
.sg-page-stagger > *:nth-child(4) { animation-delay: 270ms; }

@keyframes sg-route-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes sg-route-item-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.992);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-route-enter,
  .sg-route-enter > *,
  .sg-page-stagger > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Responsive polish (tablet/mobile) while keeping the same visual direction */
@media (max-width: 1100px) {
  .sg-app,
  .sg-app--sidebar-collapsed {
    padding: 10px;
    gap: 10px;
  }

  .sg-sidebar__menu-shell {
    border-radius: 22px;
    padding: 12px;
  }

  .sg-nav {
    flex-direction: column;
    overflow: visible;
    padding-right: 0;
    gap: 8px;
  }

  .sg-nav > div {
    min-width: 0;
    width: 100%;
  }

  .sg-main {
    padding: 0 2px 8px;
  }

  .sg-topbar {
    padding: 8px 2px 12px;
    gap: 10px;
  }

  .sg-topbar > .flex.items-center.gap-2 {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sg-hero {
    padding: 16px;
    border-radius: 22px;
  }

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

  .sg-grid {
    grid-template-columns: 1fr;
  }

  .sg-grid > div {
    min-width: 0;
  }
}

@media (max-width: 860px) {
  .sg-title {
    font-size: clamp(22px, 5vw, 28px);
    line-height: 1.15;
  }

  .sg-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .sg-hero .sg-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .sg-app,
  .sg-app--sidebar-collapsed {
    padding: 8px;
    gap: 8px;
  }

  .sg-sidebar__menu-shell {
    border-radius: 18px;
    padding: 10px;
  }

  .sg-nav__label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .sg-main {
    padding: 0 0 8px;
  }

  .sg-topbar {
    padding: 6px 0 10px;
  }

  .sg-topbar > .flex.items-center.gap-2 {
    justify-content: space-between;
  }

  .sg-kpis {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sg-kpi,
  .sg-grid > div,
  .sg-hero {
    border-radius: 16px;
  }

  .sg-panel-title {
    font-size: 18px;
  }
}

/* Login animation and responsiveness aligned with dashboard motion */
.sg-login.sg-dashboard-motion::after {
  content: "";
  position: absolute;
  inset: -30% -18%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(36% 30% at 18% 14%, rgba(255, 245, 188, 0.34) 0%, rgba(255, 245, 188, 0) 75%),
    radial-gradient(42% 34% at 82% 82%, rgba(255, 221, 133, 0.24) 0%, rgba(255, 221, 133, 0) 75%);
  animation: sg-hero-glow 10s ease-in-out infinite alternate;
}

@media (max-width: 1100px) {
  .sg-login {
    padding: 18px;
  }
}

@media (max-width: 680px) {
  .sg-login {
    padding: 12px;
    place-items: start center;
    overflow-y: auto;
  }

  .sg-login__card {
    margin-top: 18px;
    border-radius: 24px;
    padding: 20px 16px 16px;
  }

  .sg-login__header h1 {
    font-size: clamp(26px, 8vw, 32px);
  }

  .sg-login__header p {
    font-size: 14px;
  }

  .sg-login__form {
    margin-top: 14px;
    gap: 12px;
  }

  .sg-login__input,
  .sg-login__submit {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-login.sg-dashboard-motion::after {
    animation: none !important;
  }
}

.file\:border-0::file-selector-button {
  border-width: 0px;
}

.file\:bg-transparent::file-selector-button {
  background-color: transparent;
}

.file\:text-sm::file-selector-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.file\:font-medium::file-selector-button {
  font-weight: 500;
}

.file\:text-foreground::file-selector-button {
  color: hsl(var(--foreground));
}

.placeholder\:text-muted-foreground::-moz-placeholder {
  color: hsl(var(--muted-foreground));
}

.placeholder\:text-muted-foreground::placeholder {
  color: hsl(var(--muted-foreground));
}

.last\:border-b-0:last-child {
  border-bottom-width: 0px;
}

.hover\:border-border:hover {
  border-color: hsl(var(--border));
}

.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}

.hover\:bg-destructive\/10:hover {
  background-color: hsl(var(--destructive) / 0.1);
}

.hover\:bg-destructive\/80:hover {
  background-color: hsl(var(--destructive) / 0.8);
}

.hover\:bg-destructive\/90:hover {
  background-color: hsl(var(--destructive) / 0.9);
}

.hover\:bg-muted:hover {
  background-color: hsl(var(--muted));
}

.hover\:bg-muted\/40:hover {
  background-color: hsl(var(--muted) / 0.4);
}

.hover\:bg-muted\/50:hover {
  background-color: hsl(var(--muted) / 0.5);
}

.hover\:bg-primary\/10:hover {
  background-color: hsl(var(--primary) / 0.1);
}

.hover\:bg-primary\/80:hover {
  background-color: hsl(var(--primary) / 0.8);
}

.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.hover\:bg-secondary\/80:hover {
  background-color: hsl(var(--secondary) / 0.8);
}

.hover\:bg-transparent:hover {
  background-color: transparent;
}

.hover\:text-accent-foreground:hover {
  color: hsl(var(--accent-foreground));
}

.hover\:text-destructive:hover {
  color: hsl(var(--destructive));
}

.hover\:text-foreground:hover {
  color: hsl(var(--foreground));
}

.hover\:underline:hover {
  text-decoration-line: underline;
}

.hover\:no-underline:hover {
  text-decoration-line: none;
}

.hover\:opacity-100:hover {
  opacity: 1;
}

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

.focus\:bg-accent:focus {
  background-color: hsl(var(--accent));
}

.focus\:text-accent-foreground:focus {
  color: hsl(var(--accent-foreground));
}

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

.focus\:ring-1: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(1px + 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-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:focus {
  --tw-ring-color: hsl(var(--primary));
}

.focus\:ring-ring:focus {
  --tw-ring-color: hsl(var(--ring));
}

.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}

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

.focus-visible\:ring-1:focus-visible {
  --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(1px + 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-visible\:ring-2:focus-visible {
  --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-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}

.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}

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

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

.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
  cursor: not-allowed;
}

.peer:disabled ~ .peer-disabled\:opacity-70 {
  opacity: 0.7;
}

.data-\[disabled\]\:pointer-events-none[data-disabled] {
  pointer-events: none;
}

.data-\[side\=bottom\]\:translate-y-1[data-side="bottom"] {
  --tw-translate-y: 0.25rem;
  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));
}

.data-\[side\=left\]\:-translate-x-1[data-side="left"] {
  --tw-translate-x: -0.25rem;
  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));
}

.data-\[side\=right\]\:translate-x-1[data-side="right"] {
  --tw-translate-x: 0.25rem;
  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));
}

.data-\[side\=top\]\:-translate-y-1[data-side="top"] {
  --tw-translate-y: -0.25rem;
  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));
}

.data-\[state\=active\]\:bg-background[data-state="active"] {
  background-color: hsl(var(--background));
}

.data-\[state\=open\]\:bg-accent[data-state="open"] {
  background-color: hsl(var(--accent));
}

.data-\[state\=selected\]\:bg-muted[data-state="selected"] {
  background-color: hsl(var(--muted));
}

.data-\[placeholder\]\:text-muted-foreground[data-placeholder] {
  color: hsl(var(--muted-foreground));
}

.data-\[state\=active\]\:text-foreground[data-state="active"] {
  color: hsl(var(--foreground));
}

.data-\[state\=open\]\:text-muted-foreground[data-state="open"] {
  color: hsl(var(--muted-foreground));
}

.data-\[disabled\]\:opacity-50[data-disabled] {
  opacity: 0.5;
}

.data-\[state\=active\]\:shadow[data-state="active"] {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.data-\[state\=active\]\:shadow-sm[data-state="active"] {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.data-\[state\=open\]\:animate-in[data-state="open"] {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}

.data-\[state\=closed\]\:animate-out[data-state="closed"] {
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}

.data-\[state\=closed\]\:fade-out-0[data-state="closed"] {
  --tw-exit-opacity: 0;
}

.data-\[state\=open\]\:fade-in-0[data-state="open"] {
  --tw-enter-opacity: 0;
}

.data-\[state\=closed\]\:zoom-out-95[data-state="closed"] {
  --tw-exit-scale: .95;
}

.data-\[state\=open\]\:zoom-in-95[data-state="open"] {
  --tw-enter-scale: .95;
}

.data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"] {
  --tw-enter-translate-y: -0.5rem;
}

.data-\[side\=left\]\:slide-in-from-right-2[data-side="left"] {
  --tw-enter-translate-x: 0.5rem;
}

.data-\[side\=right\]\:slide-in-from-left-2[data-side="right"] {
  --tw-enter-translate-x: -0.5rem;
}

.data-\[side\=top\]\:slide-in-from-bottom-2[data-side="top"] {
  --tw-enter-translate-y: 0.5rem;
}

.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state="closed"] {
  --tw-exit-translate-x: -50%;
}

.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state="closed"] {
  --tw-exit-translate-y: -48%;
}

.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state="open"] {
  --tw-enter-translate-x: -50%;
}

.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state="open"] {
  --tw-enter-translate-y: -48%;
}

.dark\:border-red-800:is(.dark *) {
  --tw-border-opacity: 1;
  border-color: rgb(153 27 27 / var(--tw-border-opacity));
}

.dark\:bg-red-950\/40:is(.dark *) {
  background-color: rgb(69 10 10 / 0.4);
}

.dark\:text-red-200:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(254 202 202 / var(--tw-text-opacity));
}

.dark\:text-red-300:is(.dark *) {
  --tw-text-opacity: 1;
  color: rgb(252 165 165 / var(--tw-text-opacity));
}

@media (min-width: 640px) {

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

  .sm\:block {
    display: block;
  }

  .sm\:h-28 {
    height: 7rem;
  }

  .sm\:w-28 {
    width: 7rem;
  }

  .sm\:w-\[140px\] {
    width: 140px;
  }

  .sm\:w-\[200px\] {
    width: 200px;
  }

  .sm\:w-auto {
    width: auto;
  }

  .sm\:max-w-3xl {
    max-width: 48rem;
  }

  .sm\:max-w-\[425px\] {
    max-width: 425px;
  }

  .sm\:max-w-\[700px\] {
    max-width: 700px;
  }

  .sm\:max-w-md {
    max-width: 28rem;
  }

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

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

  .sm\:items-start {
    align-items: flex-start;
  }

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

  .sm\:justify-end {
    justify-content: flex-end;
  }

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

  .sm\: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)));
  }

  .sm\:rounded-lg {
    border-radius: var(--radius);
  }

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

@media (min-width: 768px) {

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

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

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

  .md\:gap-x-8 {
    -moz-column-gap: 2rem;
         column-gap: 2rem;
  }

  .md\:gap-y-5 {
    row-gap: 1.25rem;
  }

  .md\:border-b-0 {
    border-bottom-width: 0px;
  }

  .md\:border-r {
    border-right-width: 1px;
  }

  .md\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

@media (min-width: 1024px) {

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

  .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-\[120px_1fr\] {
    grid-template-columns: 120px 1fr;
  }

  .lg\:justify-start {
    justify-content: flex-start;
  }
}

.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]) {
  padding-right: 0px;
}

.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox] {
  --tw-translate-y: 2px;
  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));
}

.\[\&\>span\]\:line-clamp-1>span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.\[\&\>svg\]\:size-4>svg {
  width: 1rem;
  height: 1rem;
}

.\[\&\>svg\]\:shrink-0>svg {
  flex-shrink: 0;
}

.\[\&\>tr\]\:last\:border-b-0:last-child>tr {
  border-bottom-width: 0px;
}

.\[\&_svg\]\:pointer-events-none svg {
  pointer-events: none;
}

.\[\&_svg\]\:size-4 svg {
  width: 1rem;
  height: 1rem;
}

.\[\&_svg\]\:shrink-0 svg {
  flex-shrink: 0;
}

.\[\&_tr\:last-child\]\:border-0 tr:last-child {
  border-width: 0px;
}

.\[\&_tr\]\:border-b tr {
  border-bottom-width: 1px;
}

