/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
*, ::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.19 | 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', 'Tajawal', Tahoma, Arial, 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 */
}

/*
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]:where(:not([hidden="until-found"])) {
  display: none;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.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;
}
.pointer-events-none {
  pointer-events: none;
}
.collapse {
  visibility: collapse;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.-end-0\.5 {
  inset-inline-end: -0.125rem;
}
.-top-0\.5 {
  top: -0.125rem;
}
.end-0 {
  inset-inline-end: 0px;
}
.left-0 {
  left: 0px;
}
.left-2 {
  left: 0.5rem;
}
.left-3 {
  left: 0.75rem;
}
.left-\[14px\] {
  left: 14px;
}
.right-\[14px\] {
  right: 14px;
}
.top-0 {
  top: 0px;
}
.top-1\/2 {
  top: 50%;
}
.top-4 {
  top: 1rem;
}
.top-full {
  top: 100%;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}
.z-\[1500\] {
  z-index: 1500;
}
.z-\[1\] {
  z-index: 1;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.col-span-3 {
  grid-column: span 3 / span 3;
}
.col-span-full {
  grid-column: 1 / -1;
}
.m-0 {
  margin: 0px;
}
.m-3 {
  margin: 0.75rem;
}
.-mx-4 {
  margin-left: -1rem;
  margin-right: -1rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mx-erp-sm {
  margin-left: 8px;
  margin-right: 8px;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.-mt-4 {
  margin-top: -1rem;
}
.-mt-\[88px\] {
  margin-top: -88px;
}
.mb-0 {
  margin-bottom: 0px;
}
.mb-0\.5 {
  margin-bottom: 0.125rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-2\.5 {
  margin-bottom: 0.625rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mr-6 {
  margin-right: 1.5rem;
}
.mr-auto {
  margin-right: auto;
}
.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-2\.5 {
  margin-top: 0.625rem;
}
.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;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.inline {
  display: inline;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.inline-grid {
  display: inline-grid;
}
.contents {
  display: contents;
}
.hidden {
  display: none;
}
.h-1 {
  height: 0.25rem;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.h-12 {
  height: 3rem;
}
.h-14 {
  height: 3.5rem;
}
.h-16 {
  height: 4rem;
}
.h-2 {
  height: 0.5rem;
}
.h-2\.5 {
  height: 0.625rem;
}
.h-24 {
  height: 6rem;
}
.h-3 {
  height: 0.75rem;
}
.h-32 {
  height: 8rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-6 {
  height: 1.5rem;
}
.h-64 {
  height: 16rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-\[10px\] {
  height: 10px;
}
.h-\[110px\] {
  height: 110px;
}
.h-\[12px\] {
  height: 12px;
}
.h-\[14px\] {
  height: 14px;
}
.h-\[180px\] {
  height: 180px;
}
.h-\[18px\] {
  height: 18px;
}
.h-\[20px\] {
  height: 20px;
}
.h-\[280px\] {
  height: 280px;
}
.h-\[28px\] {
  height: 28px;
}
.h-\[30px\] {
  height: 30px;
}
.h-\[34px\] {
  height: 34px;
}
.h-\[36px\] {
  height: 36px;
}
.h-\[40px\] {
  height: 40px;
}
.h-\[420px\] {
  height: 420px;
}
.h-\[52px\] {
  height: 52px;
}
.h-\[90vh\] {
  height: 90vh;
}
.h-fit {
  height: -moz-fit-content;
  height: fit-content;
}
.h-full {
  height: 100%;
}
.max-h-16 {
  max-height: 4rem;
}
.max-h-\[250px\] {
  max-height: 250px;
}
.max-h-\[280px\] {
  max-height: 280px;
}
.max-h-\[300px\] {
  max-height: 300px;
}
.max-h-\[400px\] {
  max-height: 400px;
}
.max-h-\[40vh\] {
  max-height: 40vh;
}
.max-h-\[500px\] {
  max-height: 500px;
}
.max-h-\[50vh\] {
  max-height: 50vh;
}
.max-h-\[60vh\] {
  max-height: 60vh;
}
.max-h-\[90vh\] {
  max-height: 90vh;
}
.min-h-\[120px\] {
  min-height: 120px;
}
.min-h-\[160px\] {
  min-height: 160px;
}
.min-h-\[200px\] {
  min-height: 200px;
}
.min-h-\[22px\] {
  min-height: 22px;
}
.min-h-\[28px\] {
  min-height: 28px;
}
.min-h-\[300px\] {
  min-height: 300px;
}
.min-h-\[32px\] {
  min-height: 32px;
}
.min-h-\[34px\] {
  min-height: 34px;
}
.min-h-\[36px\] {
  min-height: 36px;
}
.min-h-\[400px\] {
  min-height: 400px;
}
.min-h-\[40px\] {
  min-height: 40px;
}
.min-h-\[42px\] {
  min-height: 42px;
}
.min-h-\[46px\] {
  min-height: 46px;
}
.min-h-\[52px\] {
  min-height: 52px;
}
.min-h-\[60px\] {
  min-height: 60px;
}
.min-h-\[60vh\] {
  min-height: 60vh;
}
.min-h-\[80px\] {
  min-height: 80px;
}
.min-h-screen {
  min-height: 100vh;
}
.\!w-20 {
  width: 5rem !important;
}
.\!w-\[100px\] {
  width: 100px !important;
}
.w-0\.5 {
  width: 0.125rem;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-10 {
  width: 2.5rem;
}
.w-11 {
  width: 2.75rem;
}
.w-12 {
  width: 3rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-28 {
  width: 7rem;
}
.w-3 {
  width: 0.75rem;
}
.w-32 {
  width: 8rem;
}
.w-4 {
  width: 1rem;
}
.w-48 {
  width: 12rem;
}
.w-5 {
  width: 1.25rem;
}
.w-56 {
  width: 14rem;
}
.w-6 {
  width: 1.5rem;
}
.w-64 {
  width: 16rem;
}
.w-7 {
  width: 1.75rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.w-\[100px\] {
  width: 100px;
}
.w-\[120px\] {
  width: 120px;
}
.w-\[130px\] {
  width: 130px;
}
.w-\[140px\] {
  width: 140px;
}
.w-\[150px\] {
  width: 150px;
}
.w-\[160px\] {
  width: 160px;
}
.w-\[180px\] {
  width: 180px;
}
.w-\[18px\] {
  width: 18px;
}
.w-\[200px\] {
  width: 200px;
}
.w-\[20px\] {
  width: 20px;
}
.w-\[34px\] {
  width: 34px;
}
.w-\[36px\] {
  width: 36px;
}
.w-\[40\%\] {
  width: 40%;
}
.w-\[40px\] {
  width: 40px;
}
.w-\[50\%\] {
  width: 50%;
}
.w-\[50px\] {
  width: 50px;
}
.w-\[52px\] {
  width: 52px;
}
.w-\[60\%\] {
  width: 60%;
}
.w-\[60px\] {
  width: 60px;
}
.w-\[80\%\] {
  width: 80%;
}
.w-\[80px\] {
  width: 80px;
}
.w-\[94vw\] {
  width: 94vw;
}
.w-auto {
  width: auto;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-\[100px\] {
  min-width: 100px;
}
.min-w-\[110px\] {
  min-width: 110px;
}
.min-w-\[140px\] {
  min-width: 140px;
}
.min-w-\[150px\] {
  min-width: 150px;
}
.min-w-\[160px\] {
  min-width: 160px;
}
.min-w-\[180px\] {
  min-width: 180px;
}
.min-w-\[2\%\] {
  min-width: 2%;
}
.min-w-\[200px\] {
  min-width: 200px;
}
.min-w-\[20px\] {
  min-width: 20px;
}
.min-w-\[220px\] {
  min-width: 220px;
}
.min-w-\[250px\] {
  min-width: 250px;
}
.min-w-\[50px\] {
  min-width: 50px;
}
.min-w-\[55px\] {
  min-width: 55px;
}
.min-w-\[60px\] {
  min-width: 60px;
}
.min-w-\[90px\] {
  min-width: 90px;
}
.max-w-\[120px\] {
  max-width: 120px;
}
.max-w-\[1400px\] {
  max-width: 1400px;
}
.max-w-\[150px\] {
  max-width: 150px;
}
.max-w-\[200px\] {
  max-width: 200px;
}
.max-w-\[220px\] {
  max-width: 220px;
}
.max-w-\[240px\] {
  max-width: 240px;
}
.max-w-\[250px\] {
  max-width: 250px;
}
.max-w-\[300px\] {
  max-width: 300px;
}
.max-w-\[320px\] {
  max-width: 320px;
}
.max-w-\[420px\] {
  max-width: 420px;
}
.max-w-\[500px\] {
  max-width: 500px;
}
.max-w-\[560px\] {
  max-width: 560px;
}
.max-w-\[600px\] {
  max-width: 600px;
}
.max-w-\[780px\] {
  max-width: 780px;
}
.max-w-\[94vw\] {
  max-width: 94vw;
}
.max-w-full {
  max-width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-xl {
  max-width: 36rem;
}
.max-w-xs {
  max-width: 20rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-none {
  flex: none;
}
.flex-shrink {
  flex-shrink: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink-0 {
  flex-shrink: 0;
}
.border-collapse {
  border-collapse: collapse;
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-rotate-90 {
  --tw-rotate: -90deg;
  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 ping {

  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@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-grab {
  cursor: grab;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.resize-none {
  resize: none;
}
.resize-y {
  resize: vertical;
}
.resize {
  resize: both;
}
.appearance-none {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: 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-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.grid-cols-\[1fr_280px\] {
  grid-template-columns: 1fr 280px;
}
.grid-cols-\[1fr_80px_100px_40px\] {
  grid-template-columns: 1fr 80px 100px 40px;
}
.grid-cols-\[2fr_1fr_1fr_40px\] {
  grid-template-columns: 2fr 1fr 1fr 40px;
}
.grid-cols-\[2fr_80px_110px_auto\] {
  grid-template-columns: 2fr 80px 110px auto;
}
.grid-cols-\[repeat\(auto-fill\2c minmax\(140px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
}
.grid-cols-\[repeat\(auto-fill\2c minmax\(150px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(150px,1fr));
}
.flex-row {
  flex-direction: row;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.place-items-center {
  place-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.items-center {
  align-items: center;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}
.justify-items-center {
  justify-items: center;
}
.gap-0\.5 {
  gap: 0.125rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-2\.5 {
  gap: 0.625rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-3\.5 {
  gap: 0.875rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-\[3px\] {
  gap: 3px;
}
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.125rem * 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-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-\[var\(--rp-border\)\] > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--rp-border);
}
.divide-rp-border > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--rp-border);
}
.self-start {
  align-self: flex-start;
}
.self-end {
  align-self: flex-end;
}
.self-center {
  align-self: center;
}
.justify-self-start {
  justify-self: start;
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.break-all {
  word-break: break-all;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-\[10px\] {
  border-radius: 10px;
}
.rounded-\[12px\] {
  border-radius: 12px;
}
.rounded-\[14px\] {
  border-radius: 14px;
}
.rounded-\[16px\] {
  border-radius: 16px;
}
.rounded-\[20px\] {
  border-radius: 20px;
}
.rounded-\[8px\] {
  border-radius: 8px;
}
.rounded-\[999px\] {
  border-radius: 999px;
}
.rounded-erp-lg {
  border-radius: 18px;
}
.rounded-erp-md {
  border-radius: 14px;
}
.rounded-erp-sm {
  border-radius: 10px;
}
.rounded-erp-xl {
  border-radius: 24px;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-sm {
  border-radius: 0.125rem;
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-b-\[14px\] {
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 14px;
}
.rounded-b-xl {
  border-bottom-right-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
}
.rounded-t-erp-sm {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.rounded-t-erp-xl {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
.rounded-t-lg {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.rounded-t-xl {
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-2 {
  border-width: 2px;
}
.border-4 {
  border-width: 4px;
}
.border-\[3px\] {
  border-width: 3px;
}
.border-x {
  border-left-width: 1px;
  border-right-width: 1px;
}
.\!border-r-\[3px\] {
  border-right-width: 3px !important;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-r-2 {
  border-right-width: 2px;
}
.border-r-4 {
  border-right-width: 4px;
}
.border-r-\[3px\] {
  border-right-width: 3px;
}
.border-t {
  border-top-width: 1px;
}
.border-none {
  border-style: none;
}
.\!border-\[rgba\(34\2c 197\2c 94\2c 0\.3\)\] {
  border-color: rgba(34,197,94,0.3) !important;
}
.border-\[\#22c55e\] {
  --tw-border-opacity: 1;
  border-color: rgb(34 197 94 / var(--tw-border-opacity, 1));
}
.border-\[\#2d3748\] {
  --tw-border-opacity: 1;
  border-color: rgb(45 55 72 / var(--tw-border-opacity, 1));
}
.border-\[\#334155\] {
  --tw-border-opacity: 1;
  border-color: rgb(51 65 85 / var(--tw-border-opacity, 1));
}
.border-\[\#f59e0b\] {
  --tw-border-opacity: 1;
  border-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}
.border-\[rgba\(139\2c 92\2c 246\2c 0\.3\)\] {
  border-color: rgba(139,92,246,0.3);
}
.border-\[rgba\(148\2c 163\2c 184\2c 0\.08\)\] {
  border-color: rgba(148,163,184,0.08);
}
.border-\[rgba\(148\2c 163\2c 184\2c 0\.1\)\] {
  border-color: rgba(148,163,184,0.1);
}
.border-\[rgba\(148\2c 163\2c 184\2c 0\.12\)\] {
  border-color: rgba(148,163,184,0.12);
}
.border-\[rgba\(148\2c 163\2c 184\2c 0\.18\)\] {
  border-color: rgba(148,163,184,0.18);
}
.border-\[rgba\(16\2c 185\2c 129\2c 0\.15\)\] {
  border-color: rgba(16,185,129,0.15);
}
.border-\[rgba\(168\2c 85\2c 247\2c 0\.25\)\] {
  border-color: rgba(168,85,247,0.25);
}
.border-\[rgba\(239\2c 68\2c 68\2c 0\.2\)\] {
  border-color: rgba(239,68,68,0.2);
}
.border-\[rgba\(239\2c 68\2c 68\2c 0\.3\)\] {
  border-color: rgba(239,68,68,0.3);
}
.border-\[rgba\(239\2c 68\2c 68\2c 0\.4\)\] {
  border-color: rgba(239,68,68,0.4);
}
.border-\[rgba\(245\2c 158\2c 11\2c 0\.2\)\] {
  border-color: rgba(245,158,11,0.2);
}
.border-\[rgba\(245\2c 158\2c 11\2c 0\.25\)\] {
  border-color: rgba(245,158,11,0.25);
}
.border-\[rgba\(245\2c 158\2c 11\2c 0\.3\)\] {
  border-color: rgba(245,158,11,0.3);
}
.border-\[rgba\(248\2c 113\2c 113\2c 0\.25\)\] {
  border-color: rgba(248,113,113,0.25);
}
.border-\[rgba\(248\2c 113\2c 113\2c 0\.3\)\] {
  border-color: rgba(248,113,113,0.3);
}
.border-\[rgba\(251\2c 191\2c 36\2c 0\.25\)\] {
  border-color: rgba(251,191,36,0.25);
}
.border-\[rgba\(255\2c 255\2c 255\2c 0\.04\)\] {
  border-color: rgba(255,255,255,0.04);
}
.border-\[rgba\(255\2c 255\2c 255\2c 0\.05\)\] {
  border-color: rgba(255,255,255,0.05);
}
.border-\[rgba\(255\2c 255\2c 255\2c 0\.06\)\] {
  border-color: rgba(255,255,255,0.06);
}
.border-\[rgba\(255\2c 255\2c 255\2c 0\.08\)\] {
  border-color: rgba(255,255,255,0.08);
}
.border-\[rgba\(255\2c 255\2c 255\2c 0\.1\)\] {
  border-color: rgba(255,255,255,0.1);
}
.border-\[rgba\(34\2c 197\2c 94\2c 0\.25\)\] {
  border-color: rgba(34,197,94,0.25);
}
.border-\[rgba\(34\2c 197\2c 94\2c 0\.3\)\] {
  border-color: rgba(34,197,94,0.3);
}
.border-\[rgba\(34\2c 197\2c 94\2c 0\.4\)\] {
  border-color: rgba(34,197,94,0.4);
}
.border-\[rgba\(52\2c 211\2c 153\2c 0\.2\)\] {
  border-color: rgba(52,211,153,0.2);
}
.border-\[rgba\(52\2c 211\2c 153\2c 0\.25\)\] {
  border-color: rgba(52,211,153,0.25);
}
.border-\[rgba\(59\2c 130\2c 246\2c 0\.25\)\] {
  border-color: rgba(59,130,246,0.25);
}
.border-\[rgba\(59\2c 130\2c 246\2c 0\.3\)\] {
  border-color: rgba(59,130,246,0.3);
}
.border-\[rgba\(96\2c 165\2c 250\2c 0\.25\)\] {
  border-color: rgba(96,165,250,0.25);
}
.border-\[var\(--primary\)\] {
  border-color: var(--primary);
}
.border-\[var\(--rp-border\)\] {
  border-color: var(--rp-border);
}
.border-\[var\(--rp-border\2c \#1e293b\)\] {
  border-color: var(--rp-border,#1e293b);
}
.border-\[var\(--rp-danger\)\] {
  border-color: var(--rp-danger);
}
.border-\[var\(--rp-gold\)\] {
  border-color: var(--rp-gold);
}
.border-\[var\(--rp-gold\2c \#fbbf24\)\] {
  border-color: var(--rp-gold,#fbbf24);
}
.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
}
.border-blue-500 {
  --tw-border-opacity: 1;
  border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-rp-border {
  border-color: var(--rp-border);
}
.border-transparent {
  border-color: transparent;
}
.border-white\/5 {
  border-color: rgb(255 255 255 / 0.05);
}
.border-yellow-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 240 138 / var(--tw-border-opacity, 1));
}
.border-b-transparent {
  border-bottom-color: transparent;
}
.border-l-\[rgba\(245\2c 158\2c 11\2c 0\.45\)\] {
  border-left-color: rgba(245,158,11,0.45);
}
.border-l-amber-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}
.border-r-\[\#06b6d4\] {
  --tw-border-opacity: 1;
  border-right-color: rgb(6 182 212 / var(--tw-border-opacity, 1));
}
.border-r-\[\#22c55e\] {
  --tw-border-opacity: 1;
  border-right-color: rgb(34 197 94 / var(--tw-border-opacity, 1));
}
.border-r-\[\#3b82f6\] {
  --tw-border-opacity: 1;
  border-right-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.border-r-\[\#ef4444\] {
  --tw-border-opacity: 1;
  border-right-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.border-r-\[\#f59e0b\] {
  --tw-border-opacity: 1;
  border-right-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}
.border-r-\[var\(--rp-border\)\] {
  border-right-color: var(--rp-border);
}
.border-r-\[var\(--rp-danger\)\] {
  border-right-color: var(--rp-danger);
}
.border-r-\[var\(--rp-error\)\] {
  border-right-color: var(--rp-error);
}
.border-r-\[var\(--rp-info\)\] {
  border-right-color: var(--rp-info);
}
.border-r-\[var\(--rp-success\)\] {
  border-right-color: var(--rp-success);
}
.border-r-\[var\(--rp-warning\)\] {
  border-right-color: var(--rp-warning);
}
.border-r-amber-500 {
  --tw-border-opacity: 1;
  border-right-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}
.border-r-blue-500 {
  --tw-border-opacity: 1;
  border-right-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}
.border-r-green-500 {
  --tw-border-opacity: 1;
  border-right-color: rgb(34 197 94 / var(--tw-border-opacity, 1));
}
.border-r-red-500 {
  --tw-border-opacity: 1;
  border-right-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.border-t-\[var\(--rp-gold\)\] {
  border-top-color: var(--rp-gold);
}
.border-t-\[var\(--rp-gold\2c \#fbbf24\)\] {
  border-top-color: var(--rp-gold,#fbbf24);
}
.border-t-transparent {
  border-top-color: transparent;
}
.\!bg-\[rgba\(34\2c 197\2c 94\2c 0\.15\)\] {
  background-color: rgba(34,197,94,0.15) !important;
}
.bg-\[\#070b14\] {
  --tw-bg-opacity: 1;
  background-color: rgb(7 11 20 / var(--tw-bg-opacity, 1));
}
.bg-\[\#0f172a\] {
  --tw-bg-opacity: 1;
  background-color: rgb(15 23 42 / var(--tw-bg-opacity, 1));
}
.bg-\[\#10b981\] {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}
.bg-\[\#1e293b\] {
  --tw-bg-opacity: 1;
  background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1));
}
.bg-\[\#22c55e\] {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}
.bg-\[\#334155\] {
  --tw-bg-opacity: 1;
  background-color: rgb(51 65 85 / var(--tw-bg-opacity, 1));
}
.bg-\[\#34d399\] {
  --tw-bg-opacity: 1;
  background-color: rgb(52 211 153 / var(--tw-bg-opacity, 1));
}
.bg-\[\#b91c1c\] {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}
.bg-\[\#dbeafe\] {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-\[\#ef4444\] {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-\[\#f0f0f0\] {
  --tw-bg-opacity: 1;
  background-color: rgb(240 240 240 / var(--tw-bg-opacity, 1));
}
.bg-\[\#f59e0b\] {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}
.bg-\[\#f87171\] {
  --tw-bg-opacity: 1;
  background-color: rgb(248 113 113 / var(--tw-bg-opacity, 1));
}
.bg-\[rgba\(0\2c 0\2c 0\2c 0\.06\)\] {
  background-color: rgba(0,0,0,0.06);
}
.bg-\[rgba\(0\2c 0\2c 0\2c 0\.2\)\] {
  background-color: rgba(0,0,0,0.2);
}
.bg-\[rgba\(0\2c 0\2c 0\2c 0\.3\)\] {
  background-color: rgba(0,0,0,0.3);
}
.bg-\[rgba\(12\2c 18\2c 36\2c 0\.6\)\] {
  background-color: rgba(12,18,36,0.6);
}
.bg-\[rgba\(139\2c 92\2c 246\2c 0\.15\)\] {
  background-color: rgba(139,92,246,0.15);
}
.bg-\[rgba\(148\2c 163\2c 184\2c 0\.12\)\] {
  background-color: rgba(148,163,184,0.12);
}
.bg-\[rgba\(15\2c 23\2c 42\2c 0\.5\)\] {
  background-color: rgba(15,23,42,0.5);
}
.bg-\[rgba\(15\2c 23\2c 42\2c 0\.6\)\] {
  background-color: rgba(15,23,42,0.6);
}
.bg-\[rgba\(15\2c 23\2c 42\2c 0\.7\)\] {
  background-color: rgba(15,23,42,0.7);
}
.bg-\[rgba\(16\2c 185\2c 129\2c 0\.06\)\] {
  background-color: rgba(16,185,129,0.06);
}
.bg-\[rgba\(16\2c 185\2c 129\2c 0\.08\)\] {
  background-color: rgba(16,185,129,0.08);
}
.bg-\[rgba\(16\2c 185\2c 129\2c 0\.1\)\] {
  background-color: rgba(16,185,129,0.1);
}
.bg-\[rgba\(16\2c 185\2c 129\2c 0\.12\)\] {
  background-color: rgba(16,185,129,0.12);
}
.bg-\[rgba\(168\2c 85\2c 247\2c 0\.06\)\] {
  background-color: rgba(168,85,247,0.06);
}
.bg-\[rgba\(2\2c 6\2c 23\2c 0\.6\)\] {
  background-color: rgba(2,6,23,0.6);
}
.bg-\[rgba\(239\2c 68\2c 68\2c 0\.05\)\] {
  background-color: rgba(239,68,68,0.05);
}
.bg-\[rgba\(239\2c 68\2c 68\2c 0\.06\)\] {
  background-color: rgba(239,68,68,0.06);
}
.bg-\[rgba\(239\2c 68\2c 68\2c 0\.08\)\] {
  background-color: rgba(239,68,68,0.08);
}
.bg-\[rgba\(239\2c 68\2c 68\2c 0\.1\)\] {
  background-color: rgba(239,68,68,0.1);
}
.bg-\[rgba\(239\2c 68\2c 68\2c 0\.12\)\] {
  background-color: rgba(239,68,68,0.12);
}
.bg-\[rgba\(239\2c 68\2c 68\2c 0\.15\)\] {
  background-color: rgba(239,68,68,0.15);
}
.bg-\[rgba\(239\2c 68\2c 68\2c 0\.18\)\] {
  background-color: rgba(239,68,68,0.18);
}
.bg-\[rgba\(245\2c 158\2c 11\2c 0\.06\)\] {
  background-color: rgba(245,158,11,0.06);
}
.bg-\[rgba\(245\2c 158\2c 11\2c 0\.08\)\] {
  background-color: rgba(245,158,11,0.08);
}
.bg-\[rgba\(245\2c 158\2c 11\2c 0\.1\)\] {
  background-color: rgba(245,158,11,0.1);
}
.bg-\[rgba\(245\2c 158\2c 11\2c 0\.12\)\] {
  background-color: rgba(245,158,11,0.12);
}
.bg-\[rgba\(245\2c 158\2c 11\2c 0\.15\)\] {
  background-color: rgba(245,158,11,0.15);
}
.bg-\[rgba\(245\2c 158\2c 11\2c 0\.2\)\] {
  background-color: rgba(245,158,11,0.2);
}
.bg-\[rgba\(248\2c 113\2c 113\2c 0\.1\)\] {
  background-color: rgba(248,113,113,0.1);
}
.bg-\[rgba\(251\2c 191\2c 36\2c 0\.1\)\] {
  background-color: rgba(251,191,36,0.1);
}
.bg-\[rgba\(251\2c 191\2c 36\2c 0\.12\)\] {
  background-color: rgba(251,191,36,0.12);
}
.bg-\[rgba\(255\2c 255\2c 255\2c 0\.02\)\] {
  background-color: rgba(255,255,255,0.02);
}
.bg-\[rgba\(255\2c 255\2c 255\2c 0\.03\)\] {
  background-color: rgba(255,255,255,0.03);
}
.bg-\[rgba\(255\2c 255\2c 255\2c 0\.04\)\] {
  background-color: rgba(255,255,255,0.04);
}
.bg-\[rgba\(255\2c 255\2c 255\2c 0\.05\)\] {
  background-color: rgba(255,255,255,0.05);
}
.bg-\[rgba\(255\2c 255\2c 255\2c 0\.06\)\] {
  background-color: rgba(255,255,255,0.06);
}
.bg-\[rgba\(255\2c 255\2c 255\2c 0\.08\)\] {
  background-color: rgba(255,255,255,0.08);
}
.bg-\[rgba\(255\2c 255\2c 255\2c 0\.1\)\] {
  background-color: rgba(255,255,255,0.1);
}
.bg-\[rgba\(34\2c 197\2c 94\2c 0\.08\)\] {
  background-color: rgba(34,197,94,0.08);
}
.bg-\[rgba\(34\2c 197\2c 94\2c 0\.1\)\] {
  background-color: rgba(34,197,94,0.1);
}
.bg-\[rgba\(34\2c 197\2c 94\2c 0\.12\)\] {
  background-color: rgba(34,197,94,0.12);
}
.bg-\[rgba\(34\2c 197\2c 94\2c 0\.15\)\] {
  background-color: rgba(34,197,94,0.15);
}
.bg-\[rgba\(5\2c 8\2c 16\2c 0\.2\)\] {
  background-color: rgba(5,8,16,0.2);
}
.bg-\[rgba\(52\2c 211\2c 153\2c 0\.1\)\] {
  background-color: rgba(52,211,153,0.1);
}
.bg-\[rgba\(52\2c 211\2c 153\2c 0\.12\)\] {
  background-color: rgba(52,211,153,0.12);
}
.bg-\[rgba\(52\2c 211\2c 153\2c 0\.15\)\] {
  background-color: rgba(52,211,153,0.15);
}
.bg-\[rgba\(59\2c 130\2c 246\2c 0\.06\)\] {
  background-color: rgba(59,130,246,0.06);
}
.bg-\[rgba\(59\2c 130\2c 246\2c 0\.1\)\] {
  background-color: rgba(59,130,246,0.1);
}
.bg-\[rgba\(59\2c 130\2c 246\2c 0\.15\)\] {
  background-color: rgba(59,130,246,0.15);
}
.bg-\[rgba\(99\2c 102\2c 241\2c 0\.1\)\] {
  background-color: rgba(99,102,241,0.1);
}
.bg-\[var\(--primary\)\] {
  background-color: var(--primary);
}
.bg-\[var\(--rp-\$\{c\}-bg\)\] {
  background-color: var(--rp-${c}-bg);
}
.bg-\[var\(--rp-bg\2c \#070b14\)\] {
  background-color: var(--rp-bg,#070b14);
}
.bg-\[var\(--rp-bg-soft\)\] {
  background-color: var(--rp-bg-soft);
}
.bg-\[var\(--rp-bg-soft\2c \#0c1224\)\] {
  background-color: var(--rp-bg-soft,#0c1224);
}
.bg-\[var\(--rp-border\)\] {
  background-color: var(--rp-border);
}
.bg-\[var\(--rp-danger\)\] {
  background-color: var(--rp-danger);
}
.bg-\[var\(--rp-danger\2c \#f87171\)\] {
  background-color: var(--rp-danger,#f87171);
}
.bg-\[var\(--rp-danger-bg\)\] {
  background-color: var(--rp-danger-bg);
}
.bg-\[var\(--rp-gold\)\] {
  background-color: var(--rp-gold);
}
.bg-\[var\(--rp-gold\2c \#fbbf24\)\] {
  background-color: var(--rp-gold,#fbbf24);
}
.bg-\[var\(--rp-info\)\] {
  background-color: var(--rp-info);
}
.bg-\[var\(--rp-info-bg\)\] {
  background-color: var(--rp-info-bg);
}
.bg-\[var\(--rp-success\)\] {
  background-color: var(--rp-success);
}
.bg-\[var\(--rp-success-bg\)\] {
  background-color: var(--rp-success-bg);
}
.bg-\[var\(--rp-surface\)\] {
  background-color: var(--rp-surface);
}
.bg-\[var\(--rp-surface\2c \#0c1224\)\] {
  background-color: var(--rp-surface,#0c1224);
}
.bg-\[var\(--rp-surface-soft\)\] {
  background-color: var(--rp-surface-soft);
}
.bg-\[var\(--rp-text-muted\)\] {
  background-color: var(--rp-text-muted);
}
.bg-\[var\(--rp-warning\)\] {
  background-color: var(--rp-warning);
}
.bg-\[var\(--rp-warning-bg\)\] {
  background-color: var(--rp-warning-bg);
}
.bg-amber-500\/15 {
  background-color: rgb(245 158 11 / 0.15);
}
.bg-black\/20 {
  background-color: rgb(0 0 0 / 0.2);
}
.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(191 219 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-blue-500\/15 {
  background-color: rgb(59 130 246 / 0.15);
}
.bg-emerald-500\/10 {
  background-color: rgb(16 185 129 / 0.1);
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(34 197 94 / var(--tw-bg-opacity, 1));
}
.bg-green-500\/15 {
  background-color: rgb(34 197 94 / 0.15);
}
.bg-green-500\/20 {
  background-color: rgb(34 197 94 / 0.2);
}
.bg-purple-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-red-500\/10 {
  background-color: rgb(239 68 68 / 0.1);
}
.bg-red-500\/20 {
  background-color: rgb(239 68 68 / 0.2);
}
.bg-rp-surface {
  background-color: var(--rp-surface);
}
.bg-transparent {
  background-color: transparent;
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-white\/5 {
  background-color: rgb(255 255 255 / 0.05);
}
.bg-yellow-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 240 138 / var(--tw-bg-opacity, 1));
}
.bg-yellow-500\/20 {
  background-color: rgb(234 179 8 / 0.2);
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.bg-none {
  background-image: none;
}
.from-\[\#f59e0b\] {
  --tw-gradient-from: #f59e0b var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(245 158 11 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-\[\#fbbf24\] {
  --tw-gradient-from: #fbbf24 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(251 191 36 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-50 {
  --tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-yellow-50 {
  --tw-gradient-from: #fefce8 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(254 252 232 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-\[\#d97706\] {
  --tw-gradient-to: #d97706 var(--tw-gradient-to-position);
}
.to-\[\#f59e0b\] {
  --tw-gradient-to: #f59e0b var(--tw-gradient-to-position);
}
.to-blue-100 {
  --tw-gradient-to: #dbeafe var(--tw-gradient-to-position);
}
.to-yellow-100 {
  --tw-gradient-to: #fef9c3 var(--tw-gradient-to-position);
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.\!p-0 {
  padding: 0px !important;
}
.\!p-12 {
  padding: 3rem !important;
}
.\!p-3 {
  padding: 0.75rem !important;
}
.\!p-4 {
  padding: 1rem !important;
}
.\!p-6 {
  padding: 1.5rem !important;
}
.p-0 {
  padding: 0px;
}
.p-0\.5 {
  padding: 0.125rem;
}
.p-1 {
  padding: 0.25rem;
}
.p-1\.5 {
  padding: 0.375rem;
}
.p-10 {
  padding: 2.5rem;
}
.p-12 {
  padding: 3rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-2\.5 {
  padding: 0.625rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-3\.5 {
  padding: 0.875rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-8 {
  padding: 2rem;
}
.p-\[18px\] {
  padding: 18px;
}
.p-erp-md {
  padding: 16px;
}
.px-0 {
  padding-left: 0px;
  padding-right: 0px;
}
.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-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-\[10px\] {
  padding-left: 10px;
  padding-right: 10px;
}
.px-\[14px\] {
  padding-left: 14px;
  padding-right: 14px;
}
.px-\[18px\] {
  padding-left: 18px;
  padding-right: 18px;
}
.px-\[6px\] {
  padding-left: 6px;
  padding-right: 6px;
}
.px-\[8px\] {
  padding-left: 8px;
  padding-right: 8px;
}
.px-erp-md {
  padding-left: 16px;
  padding-right: 16px;
}
.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-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.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-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-7 {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-\[10px\] {
  padding-top: 10px;
  padding-bottom: 10px;
}
.py-\[2px\] {
  padding-top: 2px;
  padding-bottom: 2px;
}
.py-\[6px\] {
  padding-top: 6px;
  padding-bottom: 6px;
}
.py-\[8px\] {
  padding-top: 8px;
  padding-bottom: 8px;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-px {
  padding-bottom: 1px;
}
.pr-1 {
  padding-right: 0.25rem;
}
.pr-10 {
  padding-right: 2.5rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-\[120px\] {
  padding-right: 120px;
}
.pr-\[42px\] {
  padding-right: 42px;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.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;
}
.text-start {
  text-align: start;
}
.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-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[7px\] {
  font-size: 7px;
}
.text-\[9px\] {
  font-size: 9px;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-erp-sm {
  font-size: 13px;
  line-height: 1.5;
}
.text-erp-xs {
  font-size: 12px;
  line-height: 1.5;
}
.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-\[var\(--rp-font-weight-semibold\)\] {
  font-weight: var(--rp-font-weight-semibold);
}
.font-black {
  font-weight: 900;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.leading-5 {
  line-height: 1.25rem;
}
.leading-8 {
  line-height: 2rem;
}
.leading-none {
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-\[8px\] {
  letter-spacing: 8px;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.\!text-\[\#22c55e\] {
  --tw-text-opacity: 1 !important;
  color: rgb(34 197 94 / var(--tw-text-opacity, 1)) !important;
}
.text-\[\#050810\] {
  --tw-text-opacity: 1;
  color: rgb(5 8 16 / var(--tw-text-opacity, 1));
}
.text-\[\#06b6d4\] {
  --tw-text-opacity: 1;
  color: rgb(6 182 212 / var(--tw-text-opacity, 1));
}
.text-\[\#070b14\] {
  --tw-text-opacity: 1;
  color: rgb(7 11 20 / var(--tw-text-opacity, 1));
}
.text-\[\#10b981\] {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
}
.text-\[\#22c55e\] {
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity, 1));
}
.text-\[\#22d3ee\] {
  --tw-text-opacity: 1;
  color: rgb(34 211 238 / var(--tw-text-opacity, 1));
}
.text-\[\#34d399\] {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / var(--tw-text-opacity, 1));
}
.text-\[\#3b82f6\] {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-\[\#475569\] {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
.text-\[\#4ade80\] {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}
.text-\[\#60a5fa\] {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.text-\[\#64748b\] {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
.text-\[\#666\] {
  --tw-text-opacity: 1;
  color: rgb(102 102 102 / var(--tw-text-opacity, 1));
}
.text-\[\#8b5cf6\] {
  --tw-text-opacity: 1;
  color: rgb(139 92 246 / var(--tw-text-opacity, 1));
}
.text-\[\#94a3b8\] {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}
.text-\[\#a78bfa\] {
  --tw-text-opacity: 1;
  color: rgb(167 139 250 / var(--tw-text-opacity, 1));
}
.text-\[\#cbd5e1\] {
  --tw-text-opacity: 1;
  color: rgb(203 213 225 / var(--tw-text-opacity, 1));
}
.text-\[\#e2e8f0\] {
  --tw-text-opacity: 1;
  color: rgb(226 232 240 / var(--tw-text-opacity, 1));
}
.text-\[\#ef4444\] {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-\[\#f59e0b\] {
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}
.text-\[\#f87171\] {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-\[\#fb923c\] {
  --tw-text-opacity: 1;
  color: rgb(251 146 60 / var(--tw-text-opacity, 1));
}
.text-\[\#fbbf24\] {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}
.text-\[var\(--rp-\$\{c\}\)\] {
  color: var(--rp-${c});
}
.text-\[var\(--rp-bg\2c \#070b14\)\] {
  color: var(--rp-bg,#070b14);
}
.text-\[var\(--rp-danger\)\] {
  color: var(--rp-danger);
}
.text-\[var\(--rp-danger\2c \#f87171\)\] {
  color: var(--rp-danger,#f87171);
}
.text-\[var\(--rp-error\)\] {
  color: var(--rp-error);
}
.text-\[var\(--rp-gold\)\] {
  color: var(--rp-gold);
}
.text-\[var\(--rp-info\)\] {
  color: var(--rp-info);
}
.text-\[var\(--rp-success\)\] {
  color: var(--rp-success);
}
.text-\[var\(--rp-text\)\] {
  color: var(--rp-text);
}
.text-\[var\(--rp-text\2c \#f8fafc\)\] {
  color: var(--rp-text,#f8fafc);
}
.text-\[var\(--rp-text-muted\)\] {
  color: var(--rp-text-muted);
}
.text-\[var\(--rp-text-muted\2c \#64748b\)\] {
  color: var(--rp-text-muted,#64748b);
}
.text-\[var\(--rp-text-soft\)\] {
  color: var(--rp-text-soft);
}
.text-\[var\(--rp-text-soft\2c \#cbd5e1\)\] {
  color: var(--rp-text-soft,#cbd5e1);
}
.text-\[var\(--rp-warning\)\] {
  color: var(--rp-warning);
}
.text-\[var\(--text-secondary\)\] {
  color: var(--text-secondary);
}
.text-amber-400 {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}
.text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}
.text-black {
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}
.text-emerald-400 {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-green-400 {
  --tw-text-opacity: 1;
  color: rgb(74 222 128 / var(--tw-text-opacity, 1));
}
.text-green-500 {
  --tw-text-opacity: 1;
  color: rgb(34 197 94 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}
.text-inherit {
  color: inherit;
}
.text-purple-400 {
  --tw-text-opacity: 1;
  color: rgb(192 132 252 / var(--tw-text-opacity, 1));
}
.text-purple-500 {
  --tw-text-opacity: 1;
  color: rgb(168 85 247 / var(--tw-text-opacity, 1));
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-rp-text {
  color: var(--rp-text);
}
.text-rp-text-muted {
  color: var(--rp-text-muted);
}
.text-rp-text-soft {
  color: var(--rp-text-soft);
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}
.underline {
  text-decoration-line: underline;
}
.no-underline {
  text-decoration-line: none;
}
.placeholder-\[var\(--rp-text-muted\2c \#64748b\)\]::-moz-placeholder {
  color: var(--rp-text-muted,#64748b);
}
.placeholder-\[var\(--rp-text-muted\2c \#64748b\)\]::placeholder {
  color: var(--rp-text-muted,#64748b);
}
.accent-\[\#f59e0b\] {
  accent-color: #f59e0b;
}
.accent-\[var\(--rp-gold\)\] {
  accent-color: var(--rp-gold);
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-80 {
  opacity: 0.8;
}
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_0_0_2px_rgba\(34\2c 197\2c 94\2c 0\.18\)\] {
  --tw-shadow: 0 0 0 2px rgba(34,197,94,0.18);
  --tw-shadow-colored: 0 0 0 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-\[0_0_8px_rgba\(248\2c 113\2c 113\2c 0\.6\)\] {
  --tw-shadow: 0 0 8px rgba(248,113,113,0.6);
  --tw-shadow-colored: 0 0 8px 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-\[0_0_8px_rgba\(52\2c 211\2c 153\2c 0\.6\)\] {
  --tw-shadow: 0 0 8px rgba(52,211,153,0.6);
  --tw-shadow-colored: 0 0 8px 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-\[0_14px_28px_rgba\(245\2c 158\2c 11\2c 0\.15\)\] {
  --tw-shadow: 0 14px 28px rgba(245,158,11,0.15);
  --tw-shadow-colored: 0 14px 28px 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-\[0_8px_18px_rgba\(245\2c 158\2c 11\2c 0\.32\)\] {
  --tw-shadow: 0 8px 18px rgba(245,158,11,0.32);
  --tw-shadow-colored: 0 8px 18px 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-erp-md {
  --tw-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --tw-shadow-colored: 0 16px 40px 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-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[var\(--rp-shadow\)\] {
  --tw-shadow-color: var(--rp-shadow);
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-\[var\(--rp-shadow-soft\)\] {
  --tw-shadow-color: var(--rp-shadow-soft);
  --tw-shadow: var(--tw-shadow-colored);
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.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-\[3px\] {
  --tw-backdrop-blur: blur(3px);
  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, 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-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;
}
.duration-300 {
  transition-duration: 300ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════════
   ERP Design System — Oracle / Odoo / Dynamics / SAP Fusion
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page Shell ── */
.erp-main-inv {
  padding: 24px 28px 40px;
}

/* ── Hero Section ── */
.erp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr);
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.erp-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.erp-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.erp-hero p {
  margin: 10px 0 0;
  max-width: 700px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.erp-hero-value {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 20px;
  background: rgba(7, 11, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.erp-hero-value strong {
  color: #fbbf24;
  font-size: 26px;
  font-weight: 950;
}

.erp-hero-value span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

/* ── Command Bar (Dynamics-style) ── */
.erp-cmdbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.10);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.erp-cmdbar-search {
  flex: 1;
  max-width: 420px;
}

.erp-search-wrap {
  position: relative;
}

.erp-search-input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 11, 20, 0.7);
  color: #f8fafc;
  outline: none;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s;
}

.erp-search-input:focus {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.erp-search-clear {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.erp-cmdbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.erp-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.erp-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

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

.erp-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #070b14 !important;
  border-color: transparent !important;
  font-weight: 950;
}

.erp-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-0.5px);
}

.erp-btn-ghost {
  background: transparent;
  border-color: transparent;
}

.erp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.erp-btn-danger {
  color: #f87171;
}

.erp-btn-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ── KPI Grid (SAP Fiori tiles) ── */
.erp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.erp-kpi {
  position: relative;
  min-height: 120px;
  padding: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.erp-kpi i {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.10;
  background: currentColor;
}

.erp-kpi span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.erp-kpi strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.erp-kpi small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.erp-kpi.gold { color: #f59e0b; }
.erp-kpi.blue { color: #60a5fa; }
.erp-kpi.green { color: #34d399; }
.erp-kpi.red { color: #f87171; }
.erp-kpi.purple { color: #a78bfa; }
.erp-kpi.cyan { color: #22d3ee; }
.erp-kpi.orange { color: #fb923c; }

/* ── Filter Bar (Odoo-style) ── */
.erp-filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(12, 18, 36, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.erp-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-filter-item label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.erp-filter-select,
.erp-filter-input {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.7);
  color: #f8fafc;
  outline: none;
  font-size: 11px;
  font-weight: 700;
}

.erp-filter-select:focus,
.erp-filter-input:focus {
  border-color: rgba(245, 158, 11, 0.35);
}

/* ── Tabs (Oracle-style) ── */
.erp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 3px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.erp-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s;
}

.erp-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.erp-tabs button.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.24);
}

/* ── Panels (SAP Fiori sections) ── */
.erp-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  margin-bottom: 18px;
}

.erp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.erp-panel h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
}

.erp-panel p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.erp-panel-action {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Data Grid (SAP ALV / Oracle table) ── */
.erp-grid-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.erp-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.erp-grid thead {
  background: rgba(7, 11, 20, 0.6);
}

.erp-grid th {
  padding: 10px 12px;
  text-align: right;
  color: #94a3b8;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  white-space: nowrap;
}

.erp-grid td {
  padding: 10px 12px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
  font-weight: 700;
}

.erp-grid tbody tr:hover {
  background: rgba(245, 158, 11, 0.03);
}

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

.erp-grid-row-clickable {
  cursor: pointer;
}

.erp-grid-actions-th {
  width: 80px;
  text-align: center;
}

.erp-grid-actions {
  text-align: center;
  white-space: nowrap;
}

.erp-mono {
  font-family: "Fira Code", "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  direction: ltr;
  display: inline-block;
}

/* ── Badges ── */
.erp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.erp-badge.good {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.erp-badge.warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.erp-badge.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.erp-badge.muted {
  background: rgba(148, 163, 184, 0.10);
  color: #94a3b8;
}

.erp-badge.info {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.erp-badge.purple {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

/* ── Empty State ── */
.erp-empty {
  padding: 32px 16px;
  text-align: center;
  color: #64748b;
  font-weight: 800;
  font-size: 12px;
}

/* ── Buttons inside grid ── */
.erp-btn-icon {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s;
}

.erp-btn-icon:hover {
  background: rgba(255, 255, 255, 0.06);
}

.erp-btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ── Message ── */
.erp-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.erp-msg.error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.erp-msg.success {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
}

/* ── Form (Oracle Forms-style) ── */
.erp-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.erp-form.single {
  grid-template-columns: 1fr;
}

.erp-form.full-width textarea,
.erp-form.full-width button[type="submit"] {
  grid-column: 1 / -1;
}

.erp-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.erp-form-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.erp-required {
  color: #f87171;
}

.erp-form-input,
.erp-form-select,
.erp-form-textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 11, 20, 0.7);
  color: #f8fafc;
  outline: none;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s;
}

.erp-form-input:focus,
.erp-form-select:focus,
.erp-form-textarea:focus {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

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

.erp-form-error {
  color: #f87171;
  font-size: 10px;
  font-weight: 800;
}

.erp-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.erp-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.erp-form-check input {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

/* ── Modal ── */
.erp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.erp-modal {
  background: rgba(16, 24, 48, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  width: 520px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
}

.erp-modal-wide {
  width: 780px;
}

.erp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.erp-modal-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 950;
}

.erp-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.erp-modal-body {
  padding: 18px 20px;
}

/* ── Status Bar ── */
.erp-statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-top: 12px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.5);
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.erp-statusbar-time {
  margin-right: auto;
}

/* ── Feed (activity stream) ── */
.erp-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.erp-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.04);
}

.erp-feed-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.erp-feed-row i.good { background: #34d399; }
.erp-feed-row i.danger { background: #f87171; }
.erp-feed-row i.warn { background: #fbbf24; }
.erp-feed-row i.muted { background: #64748b; }

.erp-feed-row > div {
  flex: 1;
  min-width: 0;
}

.erp-feed-row strong {
  display: block;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 900;
}

.erp-feed-row span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.erp-feed-row b {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
}

/* ── Grid Layouts ── */
.erp-grid-layout {
  display: grid;
  gap: 18px;
}

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

.erp-grid-layout.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .erp-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .erp-grid-layout.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .erp-hero {
    grid-template-columns: 1fr;
  }
  .erp-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .erp-cmdbar {
    flex-direction: column;
    align-items: stretch;
  }
  .erp-cmdbar-search {
    max-width: none;
  }
}

/* ── Loading ── */
.erp-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #070b14 0%, #0c1224 100%);
}

.erp-loading-card {
  padding: 24px 40px;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-weight: 950;
  font-size: 14px;
}
/* ═══════════════════════════════════════════════════════════════════
   ERP Design System — Oracle / Odoo / Dynamics / SAP Fusion
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page Shell ── */
.erp-main-inv {
  padding: 24px 28px 40px;
}

/* ── Hero Section ── */
.erp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr);
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.erp-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.erp-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.erp-hero p {
  margin: 10px 0 0;
  max-width: 700px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.erp-hero-value {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-radius: 20px;
  background: rgba(7, 11, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.erp-hero-value strong {
  color: #fbbf24;
  font-size: 26px;
  font-weight: 950;
}

.erp-hero-value span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

/* ── Command Bar (Dynamics-style) ── */
.erp-cmdbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.10);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.erp-cmdbar-search {
  flex: 1;
  max-width: 420px;
}

.erp-search-wrap {
  position: relative;
}

.erp-search-input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 11, 20, 0.7);
  color: #f8fafc;
  outline: none;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s;
}

.erp-search-input:focus {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

.erp-search-clear {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.erp-cmdbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.erp-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.erp-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

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

.erp-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #070b14 !important;
  border-color: transparent !important;
  font-weight: 950;
}

.erp-btn-primary:hover {
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  transform: translateY(-0.5px);
}

.erp-btn-ghost {
  background: transparent;
  border-color: transparent;
}

.erp-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.erp-btn-danger {
  color: #f87171;
}

.erp-btn-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ── KPI Grid (SAP Fiori tiles) ── */
.erp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.erp-kpi {
  position: relative;
  min-height: 120px;
  padding: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.erp-kpi i {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.10;
  background: currentColor;
}

.erp-kpi span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.erp-kpi strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.erp-kpi small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.erp-kpi.gold { color: #f59e0b; }
.erp-kpi.blue { color: #60a5fa; }
.erp-kpi.green { color: #34d399; }
.erp-kpi.red { color: #f87171; }
.erp-kpi.purple { color: #a78bfa; }
.erp-kpi.cyan { color: #22d3ee; }
.erp-kpi.orange { color: #fb923c; }

/* ── Filter Bar (Odoo-style) ── */
.erp-filterbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(12, 18, 36, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.erp-filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.erp-filter-item label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.erp-filter-select,
.erp-filter-input {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.7);
  color: #f8fafc;
  outline: none;
  font-size: 11px;
  font-weight: 700;
}

.erp-filter-select:focus,
.erp-filter-input:focus {
  border-color: rgba(245, 158, 11, 0.35);
}

/* ── Tabs (Oracle-style) ── */
.erp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 3px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.erp-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.15s;
}

.erp-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.erp-tabs button.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.24);
}

/* ── Panels (SAP Fiori sections) ── */
.erp-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  margin-bottom: 18px;
}

.erp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.erp-panel h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
}

.erp-panel p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.erp-panel-action {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Data Grid (SAP ALV / Oracle table) ── */
.erp-grid-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.erp-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.erp-grid thead {
  background: rgba(7, 11, 20, 0.6);
}

.erp-grid th {
  padding: 10px 12px;
  text-align: right;
  color: #94a3b8;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  white-space: nowrap;
}

.erp-grid td {
  padding: 10px 12px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
  font-weight: 700;
}

.erp-grid tbody tr:hover {
  background: rgba(245, 158, 11, 0.03);
}

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

.erp-grid-row-clickable {
  cursor: pointer;
}

.erp-grid-actions-th {
  width: 80px;
  text-align: center;
}

.erp-grid-actions {
  text-align: center;
  white-space: nowrap;
}

.erp-mono {
  font-family: "Fira Code", "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  direction: ltr;
  display: inline-block;
}

/* ── Badges ── */
.erp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.erp-badge.good {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.erp-badge.warn {
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}

.erp-badge.danger {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.erp-badge.muted {
  background: rgba(148, 163, 184, 0.10);
  color: #94a3b8;
}

.erp-badge.info {
  background: rgba(96, 165, 250, 0.12);
  color: #60a5fa;
}

.erp-badge.purple {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
}

/* ── Empty State ── */
.erp-empty {
  padding: 32px 16px;
  text-align: center;
  color: #64748b;
  font-weight: 800;
  font-size: 12px;
}

/* ── Buttons inside grid ── */
.erp-btn-icon {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.15s;
}

.erp-btn-icon:hover {
  background: rgba(255, 255, 255, 0.06);
}

.erp-btn-icon-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* ── Message ── */
.erp-msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.erp-msg.error {
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.erp-msg.success {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
}

/* ── Form (Oracle Forms-style) ── */
.erp-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.erp-form.single {
  grid-template-columns: 1fr;
}

.erp-form.full-width textarea,
.erp-form.full-width button[type="submit"] {
  grid-column: 1 / -1;
}

.erp-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.erp-form-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.erp-required {
  color: #f87171;
}

.erp-form-input,
.erp-form-select,
.erp-form-textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 11, 20, 0.7);
  color: #f8fafc;
  outline: none;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s;
}

.erp-form-input:focus,
.erp-form-select:focus,
.erp-form-textarea:focus {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.08);
}

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

.erp-form-error {
  color: #f87171;
  font-size: 10px;
  font-weight: 800;
}

.erp-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.erp-form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.erp-form-check input {
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

/* ── Modal ── */
.erp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.erp-modal {
  background: rgba(16, 24, 48, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  width: 520px;
  max-width: 94vw;
  max-height: 90vh;
  overflow-y: auto;
}

.erp-modal-wide {
  width: 780px;
}

.erp-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.erp-modal-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 950;
}

.erp-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.erp-modal-body {
  padding: 18px 20px;
}

/* ── Status Bar ── */
.erp-statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-top: 12px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.5);
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.erp-statusbar-time {
  margin-right: auto;
}

/* ── Feed (activity stream) ── */
.erp-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.erp-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.04);
}

.erp-feed-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.erp-feed-row i.good { background: #34d399; }
.erp-feed-row i.danger { background: #f87171; }
.erp-feed-row i.warn { background: #fbbf24; }
.erp-feed-row i.muted { background: #64748b; }

.erp-feed-row > div {
  flex: 1;
  min-width: 0;
}

.erp-feed-row strong {
  display: block;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 900;
}

.erp-feed-row span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.erp-feed-row b {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
}

/* ── Grid Layouts ── */
.erp-grid-layout {
  display: grid;
  gap: 18px;
}

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

.erp-grid-layout.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .erp-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .erp-grid-layout.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .erp-hero {
    grid-template-columns: 1fr;
  }
  .erp-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .erp-cmdbar {
    flex-direction: column;
    align-items: stretch;
  }
  .erp-cmdbar-search {
    max-width: none;
  }
}

/* ── Mobile Card Grid ── */
.erp-grid-desktop { display: block; }
.erp-grid-mobile { display: none; }

.erp-mobile-card {
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.erp-mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.erp-mobile-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.erp-mobile-card-label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  min-width: 60px;
}

.erp-mobile-card-value {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  word-break: break-word;
}

.erp-mobile-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .erp-grid-desktop { display: none; }
  .erp-grid-mobile { display: block; }
  .erp-grid-sticky { display: none; }
}

@media (max-width: 540px) {
  /* ── Layout shell ── */
  .erp-main-inv {
    padding: 12px 10px 20px !important;
  }

  /* ── Hero section ── */
  .erp-hero {
    padding: 14px !important;
    gap: 10px !important;
  }
  .erp-hero h1 {
    font-size: 16px !important;
  }
  .erp-hero p {
    font-size: 11px !important;
  }
  .erp-hero-value strong {
    font-size: 20px !important;
  }
  .erp-hero-value span {
    font-size: 10px !important;
  }

  /* ── KPI cards ── */
  .erp-kpi {
    min-height: 80px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
  }
  .erp-kpi strong {
    font-size: 14px !important;
  }
  .erp-kpi span {
    font-size: 9px !important;
  }
  .erp-kpi small {
    font-size: 9px !important;
  }
  .erp-kpi i {
    width: 50px !important;
    height: 50px !important;
    top: -14px !important;
    left: -14px !important;
  }
  .erp-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* ── Panels ── */
  .erp-panel {
    padding: 12px !important;
    border-radius: 16px !important;
  }
  .erp-panel-head h3 {
    font-size: 13px !important;
  }
  .erp-panel p {
    font-size: 9px !important;
  }

  /* ── Command bar ── */
  .erp-cmdbar {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 10px 12px !important;
  }
  .erp-cmdbar-search {
    max-width: none !important;
  }
  .erp-search-input {
    font-size: 11px !important;
    min-height: 36px !important;
  }
  .erp-cmdbar-actions {
    flex-wrap: wrap !important;
  }
  .erp-btn {
    min-height: 34px !important;
    font-size: 10px !important;
    padding: 0 10px !important;
  }

  /* ── Tabs ── */
  .erp-tabs {
    gap: 4px !important;
  }
  .erp-tabs button {
    min-height: 32px !important;
    padding: 0 10px !important;
    font-size: 10px !important;
  }

  /* ── Filters ── */
  .erp-filterbar {
    flex-direction: column !important;
    gap: 6px !important;
    padding: 8px 10px !important;
  }
  .erp-filter-item {
    width: 100% !important;
  }
  .erp-filter-input,
  .erp-filter-select {
    width: 100% !important;
    min-height: 32px !important;
    font-size: 10px !important;
  }

  /* ── Quick links ── */
  .erp-quick-link {
    padding: 6px !important;
    font-size: 10px !important;
  }

  /* ── Data tables ── */
  .erp-grid {
    font-size: 11px !important;
  }
  .erp-grid th {
    padding: 6px 8px !important;
    font-size: 9px !important;
  }
  .erp-grid td {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
  .erp-grid-wrap {
    border-radius: 10px !important;
  }

  /* ── Forms ── */
  .erp-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 0 !important;
  }
  .erp-form-field {
    margin-bottom: 8px !important;
  }
  .erp-form-label {
    font-size: 10px !important;
  }
  .erp-form-input {
    min-height: 36px !important;
    font-size: 11px !important;
    padding: 8px 12px !important;
  }
  .erp-form-select {
    min-height: 36px !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  .erp-form-textarea {
    min-height: 60px !important;
    font-size: 12px !important;
    padding: 6px 10px !important;
  }
  .erp-form textarea {
    min-height: 60px !important;
  }
  .erp-form-actions {
    flex-direction: column !important;
  }
  .erp-form-actions button {
    width: 100% !important;
  }

  /* ── Grid layouts (inline) — collapse multi-column grids on mobile ── */
  div[style*="1fr 1fr"][style*="grid"],
  div[style*="1.5fr 1fr"][style*="grid"],
  div[style*="1fr 1fr 1fr"][style*="grid"],
  div[style*="repeat(3,1fr)"],
  div[style*="repeat(3, 1fr)"],
  div[style*="repeat(4,1fr)"],
  div[style*="repeat(4, 1fr)"],
  div[style*="repeat(7,1fr)"],
  div[style*="repeat(7, 1fr)"],
  div[style*="repeat(2,1fr)"],
  div[style*="repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* ── Modals ── */
  .erp-modal {
    max-width: 98vw !important;
    max-height: 95vh !important;
  }
  .erp-modal-head {
    padding: 12px 14px !important;
  }
  .erp-modal-head h3 {
    font-size: 14px !important;
  }
  .erp-modal-body {
    padding: 12px 14px !important;
  }

  /* ── Status bar ── */
  .erp-statusbar {
    flex-wrap: wrap !important;
    font-size: 9px !important;
    padding: 6px 10px !important;
  }

  /* ── KPI value in hero ── */
  .erp-hero-value {
    padding: 10px !important;
  }

  /* ── Charts inside panels ── */
  .erp-panel > div[style*="height"][style*="px"] {
    height: 150px !important;
    max-height: 50vh !important;
  }

  /* ── rp-inv — match erp-* mobile sizes exactly ── */
  .rp-inv-panel {
    padding: 12px !important;
    border-radius: 16px !important;
  }
  .rp-inv-panel h3 {
    font-size: 13px !important;
  }
  .rp-inv-panel p {
    font-size: 9px !important;
  }
  .rp-inv-kpi {
    min-height: 80px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
  }
  .rp-inv-kpi strong {
    font-size: 14px !important;
  }
  .rp-inv-kpi span {
    font-size: 9px !important;
  }
  .rp-inv-input {
    min-height: 36px !important;
    font-size: 11px !important;
    padding: 8px 12px !important;
    border-radius: 10px !important;
  }
  .rp-inv-toolbar {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px 12px !important;
  }
  .rp-inv-search {
    max-width: none !important;
  }
  .rp-inv-search input {
    min-height: 36px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    padding: 0 10px 0 36px !important;
  }
  .rp-inv-search button {
    width: 26px !important;
    height: 26px !important;
    left: 6px !important;
    top: 5px !important;
  }
  .rp-inv-export {
    justify-content: stretch !important;
  }
  .rp-inv-export button {
    flex: 1 !important;
    font-size: 10px !important;
    padding: 0 8px !important;
  }
  .rp-inv-tabs {
    gap: 4px !important;
  }
  .rp-inv-tabs button {
    min-height: 32px !important;
    font-size: 10px !important;
    padding: 0 10px !important;
  }
  .rp-inv-table th,
  .rp-inv-table td {
    padding: 6px 8px !important;
    font-size: 11px !important;
  }
  .rp-inv-table th {
    font-size: 9px !important;
  }
  .rp-inv-badge {
    font-size: 9px !important;
    min-height: 20px !important;
    padding: 0 7px !important;
  }
  .rp-inv-small {
    min-height: 30px !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
  }
  .rp-inv-danger {
    min-height: 30px !important;
    font-size: 10px !important;
    padding: 0 8px !important;
  }
  .rp-inv-actions button,
  .rp-inv-actions button[type="submit"] {
    min-height: 36px !important;
    font-size: 12px !important;
  }

  /* ── B2B new quotation form rows (flex item rows) ── */
  .b2b-panel-body > div[style*="display: flex"] > .b2b-form-select {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
  .b2b-panel-body > div[style*="display: flex"] > .b2b-form-input {
    width: auto !important;
    flex: 1 !important;
    min-width: 70px !important;
  }

  /* ── Pipeline / row containers ── */
  div[style*="display: flex"][style*="center"] {
    flex-wrap: wrap !important;
  }
  div[style*="gap: 24px"],
  div[style*="gap:24px"] {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}

/* ── Loading ── */
.erp-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #070b14 0%, #0c1224 100%);
}

.erp-loading-card {
  padding: 24px 40px;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-weight: 950;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
   POS Terminal — Full-screen Cart + Product Grid
   ═══════════════════════════════════════════════════════════════════ */

.pos-terminal {
  position: relative;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}

.pos-err {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  color: #f87171;
  margin-bottom: 12px;
  font-size: 13px;
}
.pos-err button {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  padding: 4px;
}

.pos-loading {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 16px;
}
.pos-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(245, 158, 11, 0.2);
  border-top-color: #fbbf24;
  border-radius: 50%;
  animation: pos-spin 0.6s linear infinite;
}
@keyframes pos-spin { to { transform: rotate(360deg); } }

.pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 16px;
}
.pos-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pos-header-title {
  font-size: 18px;
  font-weight: 700;
  color: #fbbf24;
}
.pos-header-session {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 999px;
}
.pos-header-order {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pos-header-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.pos-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  flex: 1;
}

/* ── Products Side ── */
.pos-products {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.pos-search-bar {
  display: flex;
  gap: 8px;
}
.pos-search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  transition: border-color 0.15s;
}
.pos-search-field:focus-within { border-color: rgba(245, 158, 11, 0.4); }
.pos-search-field input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}
.pos-search-field svg { color: rgba(255,255,255,0.3); flex-shrink: 0; }
.pos-search-clear {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 2px;
}

.pos-barcode-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  width: 220px;
  transition: border-color 0.15s;
}
.pos-barcode-field:focus-within { border-color: #fbbf24; }
.pos-barcode-field input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #fbbf24;
  font-size: 14px;
  font-family: monospace;
  letter-spacing: 2px;
}
.pos-barcode-field svg { color: #fbbf24; flex-shrink: 0; }

.pos-categories {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex-shrink: 0;
}
.pos-categories::-webkit-scrollbar { height: 3px; }
.pos-categories::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
.pos-cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
  transition: all 0.12s;
}
.pos-cat-btn:hover { border-color: rgba(245, 158, 11, 0.3); color: rgba(255,255,255,0.8); }
.pos-cat-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.pos-cat-btn small {
  font-size: 10px;
  opacity: 0.5;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(100vh - 400px);
  padding-bottom: 16px;
}
.pos-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.12s;
  text-align: center;
}
.pos-product-card:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  transform: translateY(-1px);
}
.pos-product-card:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.pos-product-img {
  width: 64px;
  height: 64px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
}
.pos-product-img-placeholder {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}
.pos-product-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.pos-product-name {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pos-product-price {
  font-size: 15px;
  font-weight: 700;
  color: #fbbf24;
}
.pos-product-price small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.6;
}
.pos-product-stock {
  font-size: 10px;
  color: rgba(52, 211, 153, 0.6);
}
.pos-product-stock.out {
  color: rgba(239, 68, 68, 0.6);
}
.pos-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

/* ── Cart Side ── */
.pos-cart {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  max-height: calc(100vh - 230px);
}

.pos-empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  text-align: center;
  flex: 1;
}
.pos-empty-icon {
  font-size: 48px;
  opacity: 0.3;
}
.pos-empty-cart p {
  color: rgba(255,255,255,0.4);
  font-size: 14px;
}
.pos-hint {
  font-size: 12px !important;
  color: rgba(255,255,255,0.2) !important;
}
.pos-warning {
  color: #fbbf24 !important;
  font-weight: 600;
}

.pos-customer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.pos-customer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pos-customer-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pos-customer-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.pos-customer-phone {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.pos-btn-sm {
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.12s;
}
.pos-btn-sm:hover { border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }

.pos-customer-search-dropdown {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.pos-customer-search-dropdown input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.pos-customer-search-dropdown input:focus { border-color: rgba(245, 158, 11, 0.4); }
.pos-customer-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: none;
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  transition: all 0.1s;
}
.pos-customer-option:hover { background: rgba(245, 158, 11, 0.1); }
.pos-customer-opt-name { font-weight: 600; }
.pos-customer-opt-phone { color: rgba(255,255,255,0.4); font-size: 12px; }
.pos-customer-nores {
  padding: 12px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
}

.pos-cart-lines {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.pos-cart-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.1s;
}
.pos-cart-line:hover { background: rgba(255,255,255,0.02); }
.pos-cart-remove {
  background: none;
  border: none;
  color: rgba(239, 68, 68, 0.4);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.12s;
}
.pos-cart-remove:hover { color: #ef4444; }
.pos-cart-line-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.pos-cart-line-name {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-cart-line-price {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
}
.pos-cart-qty {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.pos-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.12s;
}
.pos-qty-btn:hover { border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.pos-qty-value {
  width: 32px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
}
.pos-cart-line-total {
  font-size: 14px;
  font-weight: 600;
  color: #fbbf24;
  min-width: 60px;
  text-align: right;
  flex-shrink: 0;
}

.pos-totals {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.pos-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.pos-total-row span:last-child { font-weight: 600; }
.pos-discount { color: #34d399; }
.pos-total-grand {
  font-size: 18px;
  font-weight: 700;
  color: #fbbf24;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 8px;
  margin-top: 4px;
}

.pos-cart-actions {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.pos-payments-summary {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.pos-btn-payment {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0c1224;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.12s;
}
.pos-btn-payment:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3); }
.pos-btn-payment:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.pos-order-done {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pos-order-done span {
  font-size: 18px;
  font-weight: 700;
  color: #34d399;
}

.pos-btn-primary {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0c1224;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.12s;
}
.pos-btn-primary:hover { transform: translateY(-1px); }
.pos-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.pos-btn-ghost {
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: none;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.12s;
}
.pos-btn-ghost:hover { border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.pos-btn-lg { padding: 12px 28px; font-size: 16px; }

/* ── Payment Modal ── */
.pos-payment-modal {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pos-pm-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pos-pm-amounts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.pos-pm-amounts span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.pos-pm-amounts strong {
  font-size: 22px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
}
.pos-pm-amounts .due strong { color: #fbbf24; }
.pos-pm-amounts .paid strong { color: #34d399; }

.pos-pm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pos-pm-list h4 {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}
.pos-pm-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  font-size: 14px;
}
.pos-pm-item span:last-child { font-weight: 700; color: #34d399; }

.pos-pm-add {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pos-pm-methods {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pos-pm-method {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.12s;
}
.pos-pm-method:hover { border-color: rgba(245, 158, 11, 0.3); }
.pos-pm-method.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #fbbf24;
  color: #fbbf24;
  font-weight: 600;
}
.pos-pm-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pos-pm-input-row label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  min-width: 50px;
}
.pos-pm-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 20px;
  font-weight: 700;
  text-align: right;
  outline: none;
}
.pos-pm-input:focus { border-color: rgba(245, 158, 11, 0.4); }

.pos-pm-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pos-pm-quick-btn {
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 12px;
  transition: all 0.12s;
}
.pos-pm-quick-btn:hover { border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }

.pos-pm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Receipt ── */
.pos-receipt {
  max-width: 350px;
  margin: 0 auto;
  font-family: monospace;
  text-align: center;
}
.pos-receipt-header h3 {
  font-size: 20px;
  margin: 0 0 4px;
  color: #fbbf24;
}
.pos-receipt-header p {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin: 2px 0;
}
.pos-receipt-number {
  font-size: 14px !important;
  font-weight: 700;
  color: rgba(255,255,255,0.8) !important;
  letter-spacing: 1px;
}
.pos-receipt-body {
  text-align: left;
  padding: 16px 0;
  border-top: 1px dashed rgba(255,255,255,0.15);
  border-bottom: 1px dashed rgba(255,255,255,0.15);
  margin: 12px 0;
}
.pos-receipt-customer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.pos-receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pos-receipt-table th {
  text-align: left;
  padding: 4px 6px;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pos-receipt-table td {
  padding: 4px 6px;
  color: rgba(255,255,255,0.8);
}
.pos-receipt-table td:last-child,
.pos-receipt-table td:nth-child(3) {
  text-align: right;
}
.pos-receipt-table td:nth-child(2) {
  text-align: center;
}
.pos-receipt-totals {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}
.pos-receipt-totals > div {
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
}
.pos-receipt-grand {
  font-size: 16px;
  font-weight: 700;
  color: #fbbf24 !important;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 6px;
  margin-top: 4px;
}
.pos-receipt-payments {
  text-align: left;
  margin-top: 10px;
}
.pos-receipt-payments h4 {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin: 0 0 6px;
}
.pos-receipt-payments > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.pos-receipt-footer {
  padding: 8px 0;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.pos-receipt-date {
  font-size: 10px;
  margin-top: 4px;
}
.pos-receipt-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 16px;
}

/* ── View Toggle ── */
.pos-view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.pos-view-btn {
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.12s;
}
.pos-view-btn:hover { border-color: rgba(245, 158, 11, 0.3); color: rgba(255,255,255,0.7); }
.pos-view-btn.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

/* ── Session Required ── */
.pos-session-required {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.pos-session-card {
  text-align: center;
  padding: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 24px;
  max-width: 400px;
}
.pos-session-card h3 {
  font-size: 22px;
  color: #fbbf24;
  margin: 0 0 8px;
}
.pos-session-card p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin-bottom: 20px;
}

.pos-no-session {
  padding: 20px;
  text-align: center;
  color: rgba(245, 158, 11, 0.7);
  font-size: 13px;
}

.pos-msg {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  color: #f87171;
  margin-bottom: 16px;
  font-size: 13px;
}

/* ── ERPPagination ── */
.erp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin-top: 16px;
  border-radius: 14px;
  background: rgba(12, 18, 36, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 12px;
  color: var(--rp-text-soft);
  direction: rtl;
}
.erp-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
}
.erp-pagination-buttons button {
  min-width: 32px;
  height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: transparent;
  color: var(--rp-text-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.erp-pagination-buttons button:hover:not(:disabled):not(.active) {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.2);
}
.erp-pagination-buttons button.active {
  background: var(--rp-gold);
  border-color: var(--rp-gold-strong);
  color: #070b14;
}
.erp-pagination-buttons button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.erp-pagination select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 11, 20, 0.5);
  color: var(--rp-text-soft);
  font-size: 12px;
  cursor: pointer;
}

@media print {
  body * { visibility: hidden; }
  .pos-receipt, .pos-receipt * { visibility: visible; }
  .pos-receipt { position: absolute; left: 0; top: 0; max-width: 80mm; padding: 0; }
  .pos-receipt-actions { display: none; }
  .erp-main-inv > *:not(.pos-terminal) { display: none; }
}
* {
  box-sizing: border-box;
}

:root {
  --rp-bg: #070b14;
  --rp-bg-soft: #0c1224;
  --rp-surface: #0c1224;
  --rp-surface-2: #070b14;
  --rp-border: #1e293b;
  --rp-border-strong: #334155;
  --rp-text: #f8fafc;
  --rp-text-soft: #cbd5e1;
  --rp-text-muted: #64748b;
  --rp-navy-1: #070b14;
  --rp-navy-2: #0c1224;
  --rp-navy-3: #1e293b;
  --rp-gold: #fbbf24; /* Amber 400 */
  --rp-gold-strong: #f59e0b; /* Amber 500 */
  --rp-success: #34d399;
  --rp-success-bg: rgba(52, 211, 153, 0.1);
  --rp-warning: #fbbf24;
  --rp-warning-bg: rgba(251, 191, 36, 0.1);
  --rp-danger: #f87171;
  --rp-danger-bg: rgba(248, 113, 113, 0.1);
  --rp-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --rp-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.3);
  --rp-radius-xl: 24px;
  --rp-radius-lg: 18px;
  --rp-radius-md: 14px;
  --rp-radius-sm: 10px;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--rp-bg);
  color: var(--rp-text);
  font-family: 'Inter', 'Tajawal', Tahoma, Arial, sans-serif;
  direction: rtl;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

textarea {
  resize: vertical;
}

::-moz-placeholder {
  color: #4b5563;
}

::placeholder {
  color: #4b5563;
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 22%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
}

.loading-card {
  min-width: 280px;
  max-width: 520px;
  padding: 24px;
  border-radius: 22px;
  background: #0c1224;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: var(--rp-shadow);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: var(--rp-text);
}

.erp-auth-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 22%),
    radial-gradient(circle at bottom left, rgba(16, 58, 122, 0.10), transparent 24%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
}

.erp-auth-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.4), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.14), transparent 18%);
}

.erp-auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  padding: 28px 26px;
  border-radius: 30px;
  background: rgba(12, 18, 36, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}

.erp-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.erp-auth-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(16, 58, 122, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--rp-gold);
  font-size: 26px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.erp-auth-brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--rp-text);
}

.erp-auth-brand p {
  margin: 5px 0 0;
  color: var(--rp-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.erp-auth-head {
  text-align: right;
  margin-bottom: 22px;
}

.erp-auth-head h2 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 900;
  color: #fff;
}

.erp-auth-head p {
  margin: 0;
  color: var(--rp-text-soft);
  line-height: 1.9;
  font-size: 16px;
}

.erp-auth-form {
  display: grid;
  gap: 16px;
}

.erp-auth-submit {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070b14;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.15);
  transition: 0.2s ease;
}

.erp-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(245, 158, 11, 0.25);
}

.erp-auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.erp-auth-error {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
  line-height: 1.8;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
}

.erp-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  direction: rtl;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
}

.erp-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  padding: 28px;
}

.erp-sidebar {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 22%),
    linear-gradient(180deg, #0c1224 0%, #070b14 100%);
  color: #fff;
  padding: 24px 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.1);
  overflow-y: auto;
}

.erp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.erp-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.34);
  color: var(--rp-gold);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.erp-brand-text h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
}

.erp-brand-text p {
  margin: 5px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.72);
}

.erp-sidebar-current {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.erp-sidebar-current-label {
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  margin-bottom: 6px;
  font-weight: 700;
}

.erp-sidebar-current-value {
  font-size: 15px;
  font-weight: 900;
  color: var(--rp-gold);
}

.erp-sidebar-profile {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 12px;
}

.erp-sidebar-profile-item {
  display: grid;
  gap: 4px;
}

.erp-sidebar-profile-key {
  color: rgba(255,255,255,0.64);
  font-size: 11px;
}

.erp-sidebar-section-title {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.erp-nav {
  display: grid;
  gap: 8px;
}

.erp-nav-group {
  display: grid;
  gap: 4px;
}

.erp-nav-group-children {
  display: grid;
  gap: 8px;
}

.erp-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,0.92);
  border: 1px solid transparent;
  transition: 0.22s ease;
  font-weight: 700;
  font-size: 15px;
}

.erp-nav-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.08);
}

.erp-nav-item.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0.05));
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.erp-nav-group-header {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.erp-nav-child {
  background: rgba(255,255,255,0.03);
}

.erp-chevron {
  font-weight: 900;
  font-size: 16px;
  opacity: 0.9;
  transform: rotate(0deg);
  transition: transform 0.2s ease;
}

.erp-chevron.open {
  transform: rotate(90deg);
}

.erp-nav-item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.erp-nav-item-label {
  font-size: 15px;
  font-weight: 800;
}

.erp-nav-item-hint {
  font-size: 11px;
  color: rgba(255,255,255,0.58);
  font-weight: 600;
}

.erp-sidebar-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.erp-logout-btn {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.1);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}

.erp-logout-btn:hover {
  background: rgba(245, 158, 11, 0.18);
}

.erp-mobile-menu-btn {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1400;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.2);
  cursor: pointer;
}

.erp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.50);
  z-index: 1498;
  backdrop-filter: blur(2px);
}

.erp-mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 360px;
  height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 22%),
    linear-gradient(180deg, #0c1224 0%, #070b14 100%);
  color: #fff;
  padding: 22px 16px 18px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 1499;
  box-shadow: -14px 0 36px rgba(0, 0, 0, 0.5);
}

.erp-mobile-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.erp-mobile-sidebar-title {
  font-size: 18px;
  font-weight: 900;
}

.erp-mobile-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.erp-workspace-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--rp-border);
  background: #0c1224;
  border-radius: 24px;
  box-shadow: var(--rp-shadow-soft);
  backdrop-filter: blur(8px);
}

.erp-workspace-title-wrap {
  text-align: right;
}

.erp-page-eyebrow {
  color: var(--rp-gold);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.erp-page-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
}

.erp-page-subtitle {
  margin: 10px 0 0;
  color: var(--rp-text-soft);
  line-height: 1.9;
  max-width: 860px;
}

.erp-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.erp-topbar-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  color: var(--rp-text-soft);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.erp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 24px;
  background: linear-gradient(135deg, #0c1224 0%, #070b14 100%);
  border: 1px solid var(--rp-border);
  border-radius: 28px;
  box-shadow: var(--rp-shadow-soft);
  margin-bottom: 22px;
}

.erp-hero h2 {
  margin: 8px 0 10px;
  font-size: 30px;
  line-height: 1.25;
}

.erp-hero p {
  margin: 0;
  color: var(--rp-text-soft);
  line-height: 1.9;
}

.erp-hero-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--rp-gold);
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 12px;
  font-weight: 900;
}

.erp-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.erp-stat-panel {
  display: grid;
  gap: 12px;
}

.erp-stat-box {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #0c1224 0%, #070b14 100%);
  border: 1px solid rgba(245, 158, 11, 0.15);
  color: #fff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.erp-stat-box-label {
  font-size: 12px;
  opacity: 0.78;
  font-weight: 700;
}

.erp-stat-box-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 900;
}

.erp-quick-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 22px 0;
}

.erp-metric-tile {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: 22px;
  box-shadow: var(--rp-shadow-soft);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.erp-metric-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.erp-metric-label {
  color: var(--rp-text-muted);
  font-size: 13px;
  font-weight: 800;
}

.erp-metric-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 900;
  color: var(--rp-text);
}

.erp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.erp-card {
  min-height: 148px;
  padding: 20px;
  border-radius: 22px;
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  box-shadow: var(--rp-shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.erp-card-title {
  color: var(--rp-text-muted);
  font-size: 13px;
  font-weight: 800;
}

.erp-card-value {
  font-size: 30px;
  font-weight: 900;
  color: var(--rp-gold);
}

.erp-card-note {
  color: var(--rp-text-soft);
  font-size: 12px;
  line-height: 1.7;
}

.erp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.erp-section-card {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: 22px;
  box-shadow: var(--rp-shadow-soft);
  padding: 18px;
}

.erp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.erp-section-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.erp-section-head p {
  margin: 6px 0 0;
  color: var(--rp-text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.erp-mini-note {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-border);
  color: var(--rp-text-soft);
  font-size: 12px;
  font-weight: 800;
}

.erp-table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--rp-border);
  border-radius: 18px;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.erp-table th,
.erp-table td {
  padding: 12px 14px;
  text-align: right;
  border-bottom: 1px solid var(--rp-border);
  font-size: 13px;
  vertical-align: middle;
}

.erp-table th {
  background: var(--rp-surface-2);
  color: var(--rp-text-soft);
  font-weight: 900;
}

.erp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.erp-form-shell {
  background: var(--rp-surface);
  border: 1px solid var(--rp-border);
  border-radius: 22px;
  box-shadow: var(--rp-shadow-soft);
  padding: 18px;
  margin-bottom: 18px;
}

.erp-form-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
  text-align: right;
}

.erp-form-grid {
  display: grid;
  gap: 14px;
}

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

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

.erp-label {
  display: block;
  margin-bottom: 8px;
  color: var(--rp-text-soft);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.erp-input,
.erp-search {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--rp-border);
  background: #070b14;
  color: var(--rp-text);
  padding: 10px 14px;
  outline: none;
  transition: 0.2s ease;
}

.erp-input:focus,
.erp-search:focus {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.erp-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.erp-btn-primary,
.erp-btn-secondary,
.erp-btn-danger {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 16px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.erp-btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #070b14 !important;
}

.erp-btn-primary:hover {
  opacity: 0.95;
  transform: translateY(-0.5px);
}

.erp-btn-secondary {
  background: #1e293b;
  color: #fff;
  border: 1px solid var(--rp-border);
}

.erp-btn-secondary:hover {
  background: #334155;
}

.erp-btn-danger {
  background: #b91c1c;
  color: #fff;
}

.erp-btn-primary:disabled,
.erp-btn-secondary:disabled,
.erp-btn-danger:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.erp-form-message {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.08);
  color: var(--rp-gold);
  line-height: 1.8;
  text-align: right;
}

.erp-badge {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.erp-badge.success {
  background: var(--rp-success-bg);
  color: var(--rp-success);
}

.erp-badge.warning {
  background: var(--rp-warning-bg);
  color: var(--rp-warning);
}

.erp-chart-list {
  display: grid;
  gap: 14px;
}

.erp-chart-row {
  display: grid;
  gap: 8px;
}

.erp-chart-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--rp-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.erp-chart-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #1e293b;
  overflow: hidden;
}

.erp-chart-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
}

.erp-alert-list {
  display: grid;
  gap: 12px;
}

.erp-alert-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: var(--rp-surface-2);
}

.erp-alert-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.erp-alert-item p {
  margin: 0;
  color: var(--rp-text-soft);
  line-height: 1.8;
  font-size: 13px;
}

.erp-dual-bar-metric {
  display: grid;
  gap: 8px;
}

.erp-dual-bar-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--rp-text-soft);
  font-size: 13px;
  font-weight: 800;
}

.erp-factory-card {
  background: linear-gradient(180deg, #0c1224 0%, #070b14 100%);
  border: 1px solid var(--rp-border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--rp-shadow-soft);
  display: grid;
  gap: 14px;
}

.erp-factory-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.erp-factory-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--rp-text);
}

.erp-factory-id {
  margin-top: 6px;
  color: var(--rp-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.erp-factory-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.erp-factory-stat-box {
  padding: 14px;
  border-radius: 16px;
  background: var(--rp-surface-2);
  border: 1px solid var(--rp-border);
  text-align: right;
}

.erp-factory-stat-label {
  color: var(--rp-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.erp-factory-stat-value {
  margin-top: 6px;
  font-size: 26px;
  font-weight: 900;
}

@media (max-width: 1200px) {
  .erp-hero,
  .erp-workspace-topbar {
    grid-template-columns: 1fr;
  }

  .erp-grid-2,
  .erp-form-grid-4 {
    grid-template-columns: 1fr;
  }

  .erp-workspace-topbar {
    display: grid;
  }
}

@media (max-width: 991px) {
  .erp-shell {
    display: block;
  }

  .erp-sidebar {
    display: none;
  }

  .erp-main {
    padding: 80px 16px 20px;
  }

  .erp-form-grid-2 {
    grid-template-columns: 1fr;
  }

  .erp-auth-card {
    padding: 24px 18px;
  }

  .erp-auth-head h2 {
    font-size: 32px;
  }

  .erp-topbar-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .erp-main {
    padding: 78px 12px 18px;
  }

  .erp-kpi-grid,
  .erp-quick-strip,
  .erp-factory-stats {
    grid-template-columns: 1fr;
  }

  .erp-card-value,
  .erp-metric-value {
    font-size: 24px;
  }

  .erp-hero h2,
  .erp-page-title {
    font-size: 24px;
  }

  .erp-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .erp-auth-card {
    width: 100%;
    padding: 22px 14px;
    border-radius: 24px;
  }

  .erp-auth-head h2 {
    font-size: 28px;
  }

  .erp-auth-head p {
    font-size: 14px;
  }
}

.rp-loading-wrap {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.16), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(59, 130, 246, 0.10), transparent 26%),
    linear-gradient(135deg, #070b14 0%, #0c1224 52%, #070b14 100%);
}

.rp-loading-card {
  width: min(92vw, 420px);
  padding: 34px 30px;
  border-radius: 28px;
  background: rgba(12, 18, 36, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  backdrop-filter: blur(12px);
}

.rp-loading-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070b14;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.20);
}

.rp-loading-eyebrow {
  margin-bottom: 8px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-loading-title {
  color: #f8fafc;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.rp-loading-subtitle {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
}

.rp-loading-spinner {
  width: 42px;
  height: 42px;
  margin: 22px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.18);
  border-top-color: #f59e0b;
  border-left-color: rgba(245, 158, 11, 0.45);
  animation: rpSpin 0.8s linear infinite;
}

@keyframes rpSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== Royal Palace Dashboard Pro - Font Fix ========== */
body, html, input, button, select, textarea, .erp-nav-item-label, .erp-brand-text h2 {
  font-family: "Inter", "Tajawal", sans-serif !important;
}

/* ========== Royal Palace Dashboard Pro - Premium Styles ========== */
.rp-dash-shell {
  min-height: 100vh;
  display: flex;
  direction: rtl;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.08), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(59, 130, 246, 0.06), transparent 30%),
    linear-gradient(135deg, #050810 0%, #0a0f1f 52%, #050810 100%);
}

.rp-dash-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 100vh;
  padding: 24px 28px 40px;
}

.rp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(12, 18, 36, 0.92) 0%, rgba(10, 15, 31, 0.92) 100%);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.rp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rp-topbar-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.rp-topbar-title {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.2px;
  margin: 0;
}

.rp-topbar-sub {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}

.rp-topbar-center {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-period-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-period-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.rp-period-btn.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.28);
}

.rp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-icon-btn:hover {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.32);
  transform: translateY(-1px);
}

.rp-icon-btn.spinning {
  animation: rpSpin 0.8s linear infinite;
}

.rp-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
}

.rp-clock-time {
  color: #fbbf24;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.rp-clock-date {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.rp-hero {
  position: relative;
  padding: 22px 26px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, rgba(59, 130, 246, 0.08) 100%),
    linear-gradient(135deg, #0c1224 0%, #070b14 100%);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  margin-bottom: 22px;
  overflow: hidden;
}

.rp-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rp-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -50px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.rp-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.rp-hero-eyebrow {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.rp-hero-title {
  margin: 0;
  color: #f8fafc;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.rp-hero-subtitle {
  margin: 8px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.rp-hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.rp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

.rp-hero-pill.success {
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.32);
  color: #4ade80;
}

.rp-hero-pill.warning {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fbbf24;
}

.rp-hero-pill.danger {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.32);
  color: #f87171;
}

.rp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.rp-kpi-card {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(12, 18, 36, 0.90) 0%, rgba(10, 15, 31, 0.90) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.rp-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--rp-kpi-color, #f59e0b);
  opacity: 0.85;
}

.rp-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.50);
}

.rp-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.rp-kpi-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--rp-kpi-bg, rgba(245, 158, 11, 0.12));
  color: var(--rp-kpi-color, #f59e0b);
  font-size: 18px;
}

.rp-kpi-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.rp-kpi-trend.up {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}

.rp-kpi-trend.down {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.rp-kpi-trend.flat {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}

.rp-kpi-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rp-kpi-value {
  margin-top: 6px;
  color: #f8fafc;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.15;
}

.rp-kpi-note {
  margin-top: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.rp-kpi-spark {
  margin-top: 12px;
  height: 38px;
  width: 100%;
}

.rp-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rp-tabs::-webkit-scrollbar { display: none; }

.rp-tab {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rp-tab:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
}

.rp-tab.active {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.32);
}

.rp-tab-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  font-size: 10px;
  font-weight: 900;
}

.rp-tab.active .rp-tab-badge {
  background: rgba(5, 8, 16, 0.20);
  color: #050810;
}

.rp-grid-2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.rp-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.rp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.rp-panel {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(12, 18, 36, 0.92) 0%, rgba(10, 15, 31, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.rp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rp-panel-title {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.2px;
}

.rp-panel-sub {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.rp-panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.24);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.rp-empty {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.rp-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.rp-product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.rp-product-row:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.18);
}

.rp-product-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
}

.rp-product-name {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-product-meta {
  text-align: left;
  flex-shrink: 0;
}

.rp-product-revenue {
  color: #4ade80;
  font-weight: 900;
  font-size: 13px;
}

.rp-product-qty {
  color: #94a3b8;
  font-size: 10px;
  margin-top: 2px;
}

.rp-insight {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 10px;
}

.rp-insight.success { border-right: 3px solid #22c55e; }
.rp-insight.warning { border-right: 3px solid #f59e0b; }
.rp-insight.danger  { border-right: 3px solid #ef4444; }
.rp-insight.info    { border-right: 3px solid #3b82f6; }

.rp-insight-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
}

.rp-insight.success .rp-insight-icon { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.rp-insight.warning .rp-insight-icon { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.rp-insight.danger  .rp-insight-icon { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.rp-insight.info    .rp-insight-icon { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }

.rp-insight-body { flex: 1; min-width: 0; }

.rp-insight-title {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 4px;
}

.rp-insight-desc {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

.rp-feed-item {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 6px;
}

.rp-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.rp-feed-body { flex: 1; min-width: 0; }

.rp-feed-title {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 2px;
}

.rp-feed-meta {
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}

.rp-factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.rp-factory-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(12, 18, 36, 0.94) 0%, rgba(10, 15, 31, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
  cursor: pointer;
}

.rp-factory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.32);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.rp-factory-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.rp-factory-icon {
  font-size: 22px;
}

.rp-factory-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.rp-factory-status.active {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.32);
}

.rp-factory-status.inactive {
  background: rgba(148, 163, 184, 0.14);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.32);
}

.rp-factory-name {
  color: #f8fafc;
  font-size: 15px;
  font-weight: 900;
  margin: 0 0 12px;
}

.rp-factory-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rp-factory-stat {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-factory-stat-label {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.rp-factory-stat-value {
  margin-top: 4px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 900;
}

.rp-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.rp-quick-link {
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  display: block;
}

.rp-quick-link:hover {
  transform: translateY(-2px);
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fbbf24;
}

.rp-quick-icon {
  display: block;
  font-size: 22px;
  margin-bottom: 6px;
}

.rp-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: rpShimmer 1.4s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes rpShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.rp-fade-in {
  animation: rpFadeIn 0.5s ease-out forwards;
  opacity: 0;
}

@keyframes rpFadeIn {
  to { opacity: 1; transform: translateY(0); }
  from { opacity: 0; transform: translateY(12px); }
}

.rp-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 22px;
  flex-wrap: wrap;
  gap: 12px;
}

.rp-status-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.rp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.rp-status-dot.warning { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }
.rp-status-dot.danger  { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }

@media (max-width: 1280px) {
  .rp-kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .rp-grid-2 { grid-template-columns: 1fr; }
  .rp-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rp-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .rp-dash-shell { display: block; }
  .rp-dash-main { padding: 80px 14px 24px; }
  .rp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-grid-3 { grid-template-columns: 1fr; }
  .rp-topbar { padding: 12px; }
  .rp-topbar-center { display: none; }
  .rp-hero-title { font-size: 20px; }
}

@media (max-width: 640px) {
  .rp-kpi-grid { grid-template-columns: 1fr; }
  .rp-grid-4 { grid-template-columns: 1fr; }
  .rp-kpi-value { font-size: 20px; }
  .rp-clock { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Sidebar — Enterprise ERP Design (Oracle/Odoo/Dynamics/SAP Fusion)
   ═══════════════════════════════════════════════════════════════════ */

.rp-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1228 0%, #070b1a 100%);
  color: #e8edf5;
  padding: 16px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.25) transparent;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.rp-sidebar::-webkit-scrollbar { width: 4px; }
.rp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Collapsed ── */
.rp-sidebar-collapsed {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 16px 6px;
}

/* ── Brand ── */
.rp-sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-sidebar-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rp-brand-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  animation: rpBrandPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rpBrandPulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.rp-sidebar-brand-text h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.rp-sidebar-brand-text p {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(245, 158, 11, 0.8);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

/* ── Search ── */
.rp-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rp-search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  display: flex;
}

.rp-search-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  padding: 0 32px 0 32px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.rp-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-wrap.focused .rp-search-input {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.rp-search-clear {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.rp-search-clear:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Quick Search Results ── */
.rp-quick-results {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.03);
  overflow: hidden;
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rp-quick-result-item:last-child { border-bottom: none; }
.rp-quick-result-item:hover { background: rgba(245, 158, 11, 0.08); }

.rp-qr-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  flex-shrink: 0;
}

.rp-qr-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e8edf5;
}

.rp-qr-hint {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rp-qr-more {
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ── User Profile ── */
.rp-sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.rp-sidebar-profile:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
}

.rp-profile-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.rp-profile-status {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b1228;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rp-profile-info {
  flex: 1;
  min-width: 0;
}

.rp-profile-name {
  color: #e8edf5;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-profile-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.rp-profile-chevron {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  transition: transform 0.2s;
}

.rp-profile-chevron.open {
  transform: rotate(90deg);
  color: #fbbf24;
}

.rp-profile-expanded {
  margin: -4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-profile-exp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10px;
}

.rp-profile-exp-label { color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.rp-profile-exp-row strong { color: #fbbf24; font-weight: 800; }

/* ── Section Title ── */
.rp-sidebar-section-title {
  margin: 12px 0 6px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.rp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}

.rp-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 0;
  margin-right: 8px;
  border-right: 1.5px solid rgba(245, 158, 11, 0.08);
  animation: rpFadeSlide 0.18s ease-out;
  overflow-anchor: none;
}

@keyframes rpFadeSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Group Header ── */
.rp-nav-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.12);
}

.rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Nav Items ── */
.rp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-nav-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  font-weight: 800;
}

.rp-nav-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -12px;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rp-sidebar-collapsed .rp-nav-active::after {
  right: -6px;
}

/* ── Bullets ── */
.rp-nav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.5); }
.rp-nav-active .rp-nav-bullet {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.rp-nav-bullet-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet-child { background: rgba(245, 158, 11, 0.4); }
.rp-nav-active .rp-nav-bullet-child {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

/* ── Nav Text ── */
.rp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.rp-nav-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-nav-active .rp-nav-label {
  font-weight: 800;
}

.rp-nav-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.6); }

/* ── Active Bar ── */
.rp-nav-active-bar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

/* ── Chevron ── */
.rp-chevron {
  display: flex;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.rp-nav-group-head:hover .rp-chevron { color: rgba(255, 255, 255, 0.6); }
.rp-chevron.open { color: #fbbf24; }

/* ── Collapsed state ── */
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px;
  justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-bullet-child { display: none; }
.rp-sidebar-collapsed .rp-group-icon {
  width: 30px; height: 30px; font-size: 15px;
}

/* ── Empty State ── */
.rp-nav-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.4);
}

.rp-nav-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rp-nav-empty > div {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rp-nav-empty > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
.rp-sidebar-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.rp-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.rp-logout-icon {
  display: flex;
}

.rp-sidebar-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.rp-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ── Mobile ── */
.rp-mobile-menu-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.rp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1498;
  backdrop-filter: blur(3px);
  animation: rpFadeIn 0.18s ease-out;
}

@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 320px;
  height: 100vh;
  z-index: 1499;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  animation: rpSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rpSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-mobile-title {
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.rp-mobile-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 991px) {
  .rp-sidebar { display: none; }
  .erp-shell { display: block; }
  .erp-main, .rp-dash-main { padding-top: 80px; }
}

[data-theme="dark"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

[data-theme="light"] {
  --rp-bg: #f3f5f9;
  --rp-bg-soft: #eef2f7;
  --rp-surface: #ffffff;
  --rp-surface-2: #f8fafc;
  --rp-border: #dde5ef;
  --rp-border-strong: #cfd9e6;
  --rp-text: #0f172a;
  --rp-text-soft: #475569;
  --rp-text-muted: #64748b;
  --rp-navy-1: #08172f;
  --rp-navy-2: #0b1f4d;
  --rp-navy-3: #103a7a;
  --rp-gold: #c9a66b;
  --rp-gold-strong: #d6b47a;
  --rp-success: #15803d;
  --rp-success-bg: #e8f7ee;
  --rp-warning: #b45309;
  --rp-warning-bg: #fff4df;
  --rp-danger: #b91c1c;
  --rp-danger-bg: #fee2e2;
  --rp-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --rp-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] body,
[data-theme="light"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(201, 166, 107, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--rp-text);
}

[data-theme="light"] .erp-main {
  color: var(--rp-text);
}

[data-theme="light"] .erp-section-card,
[data-theme="light"] .erp-card,
[data-theme="light"] .erp-form-shell,
[data-theme="light"] .erp-metric-tile,
[data-theme="light"] .erp-workspace-topbar {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="light"] .erp-table th {
  background: var(--rp-surface-2);
  color: var(--rp-text-soft);
}

[data-theme="light"] .erp-table td {
  color: var(--rp-text);
}

[data-theme="light"] .erp-input,
[data-theme="light"] .erp-search {
  background: #ffffff;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

[data-theme="dark"] {
  --rp-bg: #070b14;
  --rp-bg-soft: #0c1224;
  --rp-surface: #0c1224;
  --rp-surface-2: #070b14;
  --rp-border: #1e293b;
  --rp-border-strong: #334155;
  --rp-text: #f8fafc;
  --rp-text-soft: #cbd5e1;
  --rp-text-muted: #64748b;
  --rp-navy-1: #070b14;
  --rp-navy-2: #0c1224;
  --rp-navy-3: #1e293b;
  --rp-gold: #fbbf24;
  --rp-gold-strong: #f59e0b;
  --rp-success: #34d399;
  --rp-success-bg: rgba(52, 211, 153, 0.1);
  --rp-warning: #fbbf24;
  --rp-warning-bg: rgba(251, 191, 36, 0.1);
  --rp-danger: #f87171;
  --rp-danger-bg: rgba(248, 113, 113, 0.1);
  --rp-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --rp-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body,
[data-theme="dark"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
  color: var(--rp-text);
}

[data-theme="dark"] .erp-main {
  color: var(--rp-text);
}

[data-theme="dark"] .erp-section-card,
[data-theme="dark"] .erp-card,
[data-theme="dark"] .erp-form-shell,
[data-theme="dark"] .erp-metric-tile,
[data-theme="dark"] .erp-workspace-topbar {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="dark"] .erp-input,
[data-theme="dark"] .erp-search {
  background: #070b14;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

[data-theme="light"] {
  --rp-bg: #f3f5f9;
  --rp-bg-soft: #eef2f7;
  --rp-surface: #ffffff;
  --rp-surface-2: #f8fafc;
  --rp-border: #dde5ef;
  --rp-border-strong: #cfd9e6;
  --rp-text: #0f172a;
  --rp-text-soft: #475569;
  --rp-text-muted: #64748b;
  --rp-gold: #c9a66b;
  --rp-gold-strong: #d6b47a;
  --rp-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --rp-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
  --rp-bg: #070b14;
  --rp-bg-soft: #0c1224;
  --rp-surface: #0c1224;
  --rp-surface-2: #070b14;
  --rp-border: #1e293b;
  --rp-border-strong: #334155;
  --rp-text: #f8fafc;
  --rp-text-soft: #cbd5e1;
  --rp-text-muted: #64748b;
  --rp-gold: #fbbf24;
  --rp-gold-strong: #f59e0b;
  --rp-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --rp-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] body,
[data-theme="light"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(201, 166, 107, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--rp-text);
}

[data-theme="dark"] body,
[data-theme="dark"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
  color: var(--rp-text);
}

[data-theme="light"] .erp-main {
  color: var(--rp-text);
}

[data-theme="dark"] .erp-main {
  color: var(--rp-text);
}

[data-theme="light"] .erp-section-card,
[data-theme="light"] .erp-card,
[data-theme="light"] .erp-form-shell,
[data-theme="light"] .erp-metric-tile,
[data-theme="light"] .erp-workspace-topbar,
[data-theme="light"] .erp-table-shell {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="dark"] .erp-section-card,
[data-theme="dark"] .erp-card,
[data-theme="dark"] .erp-form-shell,
[data-theme="dark"] .erp-metric-tile,
[data-theme="dark"] .erp-workspace-topbar,
[data-theme="dark"] .erp-table-shell {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="light"] .erp-input,
[data-theme="light"] .erp-search,
[data-theme="light"] .erp-sidebar-search {
  background: #ffffff;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

[data-theme="dark"] .erp-input,
[data-theme="dark"] .erp-search,
[data-theme="dark"] .erp-sidebar-search {
  background: #070b14;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

.erp-sidebar {
  transition: width 0.22s ease, min-width 0.22s ease, max-width 0.22s ease, padding 0.22s ease;
}

.erp-sidebar.is-collapsed {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  padding: 18px 10px;
}

.erp-sidebar-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.erp-sidebar.is-collapsed .erp-sidebar-top-actions {
  justify-content: center;
}

.erp-sidebar-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.10);
  color: var(--rp-gold);
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.erp-sidebar-icon-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  transform: translateY(-1px);
}

.erp-sidebar.is-collapsed .erp-brand {
  justify-content: center;
}

.erp-sidebar.is-collapsed .erp-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.erp-theme-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.20);
  background: rgba(245, 158, 11, 0.08);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.erp-theme-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
}

.erp-theme-toggle span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #070b14;
  font-weight: 900;
}

.erp-theme-toggle strong {
  font-size: 13px;
  color: #fff;
}

.erp-sidebar.is-collapsed .erp-theme-toggle {
  padding: 0;
}

.erp-sidebar-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.erp-sidebar-search {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 38px;
  border-radius: 15px;
  outline: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.erp-sidebar-search:focus {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.erp-sidebar-search-wrap button {
  position: absolute;
  left: 8px;
  top: 7px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--rp-text-soft);
  cursor: pointer;
  font-weight: 900;
}

.erp-sidebar-empty {
  padding: 14px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px dashed rgba(148, 163, 184, 0.16);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.erp-nav-item {
  position: relative;
}

.erp-nav-group-header {
  width: 100%;
  text-align: right;
  cursor: pointer;
}

.erp-nav-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.10);
  color: var(--rp-gold);
  font-size: 14px;
  line-height: 1;
}

.erp-sidebar.is-collapsed .erp-nav {
  gap: 10px;
}

.erp-sidebar.is-collapsed .erp-nav-item {
  justify-content: center;
  padding: 10px;
  min-height: 48px;
}

.erp-sidebar.is-collapsed .erp-nav-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.erp-sidebar.is-collapsed .erp-nav-group-children {
  display: none;
}

.erp-logout-btn {
  gap: 10px;
}

.erp-logout-btn span {
  font-size: 15px;
}

.erp-sidebar.is-collapsed .erp-sidebar-footer {
  margin-top: 16px;
  padding-top: 14px;
}

.erp-sidebar.is-collapsed .erp-logout-btn {
  height: 44px;
  padding: 0;
}

.erp-sidebar.is-collapsed .erp-logout-btn span {
  display: block;
}

[data-theme="light"] .erp-sidebar,
[data-theme="light"] .erp-mobile-sidebar {
  background:
    radial-gradient(circle at top right, rgba(201, 166, 107, 0.16), transparent 22%),
    linear-gradient(180deg, #08172f 0%, #0b1f4d 100%);
}

[data-theme="light"] .erp-theme-toggle strong,
[data-theme="light"] .erp-brand-text h2,
[data-theme="light"] .erp-nav-item-label,
[data-theme="light"] .erp-logout-btn {
  color: #ffffff;
}

@media (max-width: 991px) {
  .erp-sidebar.is-collapsed {
    width: 88vw;
    min-width: auto;
    max-width: 360px;
    padding: 22px 16px 18px;
  }
}

.rp-loading-wrap {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.16), transparent 24%),
    radial-gradient(circle at 18% 82%, rgba(59, 130, 246, 0.10), transparent 26%),
    linear-gradient(135deg, #070b14 0%, #0c1224 52%, #070b14 100%);
}

.rp-loading-card {
  width: min(92vw, 420px);
  padding: 34px 30px;
  border-radius: 28px;
  background: rgba(12, 18, 36, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
  backdrop-filter: blur(12px);
}

.rp-loading-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #070b14;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.20);
}

.rp-loading-eyebrow {
  margin-bottom: 8px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-loading-title {
  color: #f8fafc;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.5;
}

.rp-loading-subtitle {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.8;
}

.rp-loading-spinner {
  width: 42px;
  height: 42px;
  margin: 22px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.18);
  border-top-color: #f59e0b;
  border-left-color: rgba(245, 158, 11, 0.45);
  animation: rpSpin 0.8s linear infinite;
}

@keyframes rpSpin {
  to {
    transform: rotate(360deg);
  }
}

:root,
[data-theme="dark"],
[data-theme="light"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

html,
body,
.erp-shell {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%) !important;
  color: #f8fafc !important;
}

.rp-theme-toggle {
  display: none !important;
}

.rp-group-icon svg,
.rp-nav-bullet svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-nav-bullet {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.45);
}

.rp-nav-item:hover .rp-nav-bullet {
  color: rgba(245, 158, 11, 0.82);
  background: rgba(245, 158, 11, 0.10);
}

.rp-nav-active .rp-nav-bullet {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.18);
}

.rp-nav-child .rp-nav-bullet {
  width: 22px;
  height: 22px;
}

.rp-nav-child .rp-nav-bullet svg {
  width: 14px;
  height: 14px;
}

.rp-group-icon {
  color: #fbbf24;
}

.rp-sidebar-collapsed .rp-nav-bullet {
  width: 32px;
  height: 32px;
}

.rp-sidebar-collapsed .rp-nav-bullet svg,
.rp-sidebar-collapsed .rp-group-icon svg {
  width: 18px;
  height: 18px;
}

.rp-dash-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  direction: rtl;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
  color: #f8fafc;
}

.rp-dash-main {
  flex: 1;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  flex-wrap: wrap;
  gap: 12px;
}

.rp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rp-topbar-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
}

.rp-topbar-title {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.rp-topbar-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-topbar-center {
  display: flex;
  gap: 6px;
}

.rp-period-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-period-btn:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.rp-period-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.42);
  color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.rp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-icon-btn:hover {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

.rp-icon-btn.spinning {
  animation: rpSpin 0.8s linear infinite;
}

.rp-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.rp-clock-icon {
  font-size: 14px;
}

.rp-clock-text {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
}

.rp-hero {
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.rp-hero-eyebrow {
  color: #fbbf24;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rp-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.rp-hero-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.rp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rp-hero-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}

.rp-hero-pill.success {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.22);
}

.rp-hero-pill.warning {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.22);
}

.rp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.rp-kpi-card {
  position: relative;
  min-height: 130px;
  padding: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  cursor: pointer;
}

.rp-kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--rp-kpi-color, rgba(245, 158, 11, 0.32));
}

.rp-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rp-kpi-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rp-kpi-bg, rgba(245, 158, 11, 0.12));
  font-size: 18px;
}

.rp-kpi-trend {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
}

.rp-kpi-trend.up { color: #4ade80; background: rgba(34, 197, 94, 0.12); }
.rp-kpi-trend.down { color: #f87171; background: rgba(239, 68, 68, 0.12); }
.rp-kpi-trend.flat { color: #94a3b8; background: rgba(148, 163, 184, 0.08); }

.rp-kpi-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
}

.rp-kpi-value {
  color: #f8fafc;
  font-size: 24px;
  font-weight: 950;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.rp-kpi-note {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.rp-kpi-spark {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  height: 40px;
  opacity: 0.55;
}

.rp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.rp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.rp-tab.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.rp-tab-badge {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 0 5px;
}

.rp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.rp-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.rp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.rp-panel-title {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
}

.rp-panel-sub {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.rp-panel-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 900;
}

.rp-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #64748b;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.rp-empty-icon { font-size: 36px; }

.rp-product-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.08);
  margin-bottom: 8px;
}

.rp-product-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-weight: 950;
  font-size: 12px;
}

.rp-product-name {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-product-meta {
  text-align: left;
}

.rp-product-revenue { color: #4ade80; font-size: 12px; font-weight: 900; }
.rp-product-qty { color: #64748b; font-size: 10px; font-weight: 700; margin-top: 2px; }

.rp-insight {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.rp-insight.success { background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.18); }
.rp-insight.warning { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.18); }
.rp-insight.danger { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.18); }
.rp-insight.info { background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.18); }

.rp-insight-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.rp-insight-title { color: #f8fafc; font-size: 13px; font-weight: 900; }
.rp-insight-desc { margin: 4px 0 0; color: #94a3b8; font-size: 11px; font-weight: 600; line-height: 1.7; }

.rp-feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18);
  margin-top: 6px;
  flex-shrink: 0;
}

.rp-feed-title { color: #f8fafc; font-size: 12px; font-weight: 800; }
.rp-feed-meta { color: #64748b; font-size: 10px; font-weight: 600; margin-top: 3px; }

.rp-factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.rp-factory-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-factory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.24);
}

.rp-factory-head { display: flex; justify-content: space-between; align-items: center; }
.rp-factory-icon { font-size: 22px; }
.rp-factory-status { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.rp-factory-status.active { color: #4ade80; background: rgba(34, 197, 94, 0.10); }
.rp-factory-status.inactive { color: #f87171; background: rgba(239, 68, 68, 0.10); }
.rp-factory-name { color: #f8fafc; font-size: 13px; font-weight: 900; margin: 10px 0 0; }
.rp-factory-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.rp-factory-stat-label { color: #64748b; font-size: 10px; font-weight: 700; }
.rp-factory-stat-value { color: #f8fafc; font-size: 18px; font-weight: 950; }

.rp-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.rp-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
  text-decoration: none;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.28);
}

.rp-quick-icon { font-size: 20px; }

.rp-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.rp-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

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

.rp-fade-in { animation: rpFadeIn 0.35s ease-out; }

@keyframes rpFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rpSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
  .rp-grid-2, .rp-grid-3, .rp-grid-4 { grid-template-columns: 1fr; }
  .rp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .rp-dash-main { padding: 16px; }
  .rp-kpi-grid { grid-template-columns: 1fr; }
  .rp-topbar { flex-direction: column; align-items: stretch; }
  .rp-topbar-center { justify-content: center; flex-wrap: wrap; }
  .rp-topbar-actions { justify-content: center; }
  .rp-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   Sidebar — Enterprise ERP Design (Oracle/Odoo/Dynamics/SAP Fusion)
   ═══════════════════════════════════════════════════════════════════ */

.rp-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1228 0%, #070b1a 100%);
  color: #e8edf5;
  padding: 16px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.25) transparent;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.rp-sidebar::-webkit-scrollbar { width: 4px; }
.rp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Collapsed ── */
.rp-sidebar-collapsed {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 16px 6px;
}

/* ── Brand ── */
.rp-sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-sidebar-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rp-brand-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  animation: rpBrandPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rpBrandPulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.rp-sidebar-brand-text h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.rp-sidebar-brand-text p {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(245, 158, 11, 0.8);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

/* ── Search ── */
.rp-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rp-search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  display: flex;
}

.rp-search-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  padding: 0 32px 0 32px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.rp-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-wrap.focused .rp-search-input {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.rp-search-clear {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.rp-search-clear:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Quick Search Results ── */
.rp-quick-results {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.03);
  overflow: hidden;
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rp-quick-result-item:last-child { border-bottom: none; }
.rp-quick-result-item:hover { background: rgba(245, 158, 11, 0.08); }

.rp-qr-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  flex-shrink: 0;
}

.rp-qr-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e8edf5;
}

.rp-qr-hint {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rp-qr-more {
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ── User Profile ── */
.rp-sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.rp-sidebar-profile:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
}

.rp-profile-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.rp-profile-status {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b1228;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rp-profile-info {
  flex: 1;
  min-width: 0;
}

.rp-profile-name {
  color: #e8edf5;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-profile-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.rp-profile-chevron {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  transition: transform 0.2s;
}

.rp-profile-chevron.open {
  transform: rotate(90deg);
  color: #fbbf24;
}

.rp-profile-expanded {
  margin: -4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-profile-exp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10px;
}

.rp-profile-exp-label { color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.rp-profile-exp-row strong { color: #fbbf24; font-weight: 800; }

/* ── Section Title ── */
.rp-sidebar-section-title {
  margin: 12px 0 6px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.rp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}

.rp-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 0;
  margin-right: 8px;
  border-right: 1.5px solid rgba(245, 158, 11, 0.08);
  animation: rpFadeSlide 0.18s ease-out;
  overflow-anchor: none;
}

@keyframes rpFadeSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Group Header ── */
.rp-nav-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.12);
}

.rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Nav Items ── */
.rp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-nav-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  font-weight: 800;
}

.rp-nav-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -12px;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rp-sidebar-collapsed .rp-nav-active::after {
  right: -6px;
}

/* ── Bullets ── */
.rp-nav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.5); }
.rp-nav-active .rp-nav-bullet {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.rp-nav-bullet-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet-child { background: rgba(245, 158, 11, 0.4); }
.rp-nav-active .rp-nav-bullet-child {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

/* ── Nav Text ── */
.rp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.rp-nav-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-nav-active .rp-nav-label {
  font-weight: 800;
}

.rp-nav-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.6); }

/* ── Active Bar ── */
.rp-nav-active-bar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

/* ── Chevron ── */
.rp-chevron {
  display: flex;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.rp-nav-group-head:hover .rp-chevron { color: rgba(255, 255, 255, 0.6); }
.rp-chevron.open { color: #fbbf24; }

/* ── Collapsed state ── */
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px;
  justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-bullet-child { display: none; }
.rp-sidebar-collapsed .rp-group-icon {
  width: 30px; height: 30px; font-size: 15px;
}

/* ── Empty State ── */
.rp-nav-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.4);
}

.rp-nav-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rp-nav-empty > div {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rp-nav-empty > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
.rp-sidebar-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.rp-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.rp-logout-icon {
  display: flex;
}

.rp-sidebar-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.rp-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ── Mobile ── */
.rp-mobile-menu-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.rp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1498;
  backdrop-filter: blur(3px);
  animation: rpFadeIn 0.18s ease-out;
}

@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 320px;
  height: 100vh;
  z-index: 1499;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  animation: rpSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rpSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-mobile-title {
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.rp-mobile-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 991px) {
  .rp-sidebar { display: none; }
  .erp-shell { display: block; }
  .erp-main, .rp-dash-main { padding-top: 80px; }
}

[data-theme="dark"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

.rp-dash-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  direction: rtl;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
  color: #f8fafc;
}

.rp-dash-main {
  flex: 1;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  flex-wrap: wrap;
  gap: 12px;
}

.rp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rp-topbar-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
}

.rp-topbar-title {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.rp-topbar-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-topbar-center {
  display: flex;
  gap: 6px;
}

.rp-period-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-period-btn:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.rp-period-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.42);
  color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.rp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-icon-btn:hover {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

.rp-icon-btn.spinning {
  animation: rpSpin 0.8s linear infinite;
}

.rp-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.rp-clock-icon {
  font-size: 14px;
}

.rp-clock-text {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
}

.rp-hero {
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.rp-hero-eyebrow {
  color: #fbbf24;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rp-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.rp-hero-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.rp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rp-hero-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}

.rp-hero-pill.success {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.22);
}

.rp-hero-pill.warning {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.22);
}

.rp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.rp-kpi-card {
  position: relative;
  min-height: 130px;
  padding: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  cursor: pointer;
}

.rp-kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--rp-kpi-color, rgba(245, 158, 11, 0.32));
}

.rp-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rp-kpi-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rp-kpi-bg, rgba(245, 158, 11, 0.12));
  font-size: 18px;
}

.rp-kpi-trend {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
}

.rp-kpi-trend.up { color: #4ade80; background: rgba(34, 197, 94, 0.12); }
.rp-kpi-trend.down { color: #f87171; background: rgba(239, 68, 68, 0.12); }
.rp-kpi-trend.flat { color: #94a3b8; background: rgba(148, 163, 184, 0.08); }

.rp-kpi-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
}

.rp-kpi-value {
  color: #f8fafc;
  font-size: 24px;
  font-weight: 950;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.rp-kpi-note {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.rp-kpi-spark {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  height: 40px;
  opacity: 0.55;
}

.rp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.rp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.rp-tab.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.rp-tab-badge {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 0 5px;
}

.rp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.rp-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.rp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.rp-panel-title {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
}

.rp-panel-sub {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.rp-panel-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 900;
}

.rp-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #64748b;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.rp-empty-icon { font-size: 36px; }

.rp-product-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.08);
  margin-bottom: 8px;
}

.rp-product-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-weight: 950;
  font-size: 12px;
}

.rp-product-name {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-product-meta {
  text-align: left;
}

.rp-product-revenue { color: #4ade80; font-size: 12px; font-weight: 900; }
.rp-product-qty { color: #64748b; font-size: 10px; font-weight: 700; margin-top: 2px; }

.rp-insight {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.rp-insight.success { background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.18); }
.rp-insight.warning { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.18); }
.rp-insight.danger { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.18); }
.rp-insight.info { background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.18); }

.rp-insight-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.rp-insight-title { color: #f8fafc; font-size: 13px; font-weight: 900; }
.rp-insight-desc { margin: 4px 0 0; color: #94a3b8; font-size: 11px; font-weight: 600; line-height: 1.7; }

.rp-feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18);
  margin-top: 6px;
  flex-shrink: 0;
}

.rp-feed-title { color: #f8fafc; font-size: 12px; font-weight: 800; }
.rp-feed-meta { color: #64748b; font-size: 10px; font-weight: 600; margin-top: 3px; }

.rp-factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.rp-factory-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-factory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.24);
}

.rp-factory-head { display: flex; justify-content: space-between; align-items: center; }
.rp-factory-icon { font-size: 22px; }
.rp-factory-status { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.rp-factory-status.active { color: #4ade80; background: rgba(34, 197, 94, 0.10); }
.rp-factory-status.inactive { color: #f87171; background: rgba(239, 68, 68, 0.10); }
.rp-factory-name { color: #f8fafc; font-size: 13px; font-weight: 900; margin: 10px 0 0; }
.rp-factory-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.rp-factory-stat-label { color: #64748b; font-size: 10px; font-weight: 700; }
.rp-factory-stat-value { color: #f8fafc; font-size: 18px; font-weight: 950; }

.rp-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.rp-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
  text-decoration: none;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.28);
}

.rp-quick-icon { font-size: 20px; }

.rp-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.rp-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

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

.rp-fade-in { animation: rpFadeIn 0.35s ease-out; }

@keyframes rpFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rpSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
  .rp-grid-2, .rp-grid-3, .rp-grid-4 { grid-template-columns: 1fr; }
  .rp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .rp-dash-main { padding: 16px; }
  .rp-kpi-grid { grid-template-columns: 1fr; }
  .rp-topbar { flex-direction: column; align-items: stretch; }
  .rp-topbar-center { justify-content: center; flex-wrap: wrap; }
  .rp-topbar-actions { justify-content: center; }
  .rp-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

.rp-dash-shell {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: row !important;
  direction: rtl !important;
  background: radial-gradient(circle at top right, rgba(245,158,11,0.08), transparent 20%), linear-gradient(180deg, #070b14 0%, #0c1224 100%) !important;
  color: #f8fafc !important;
  visibility: visible !important;
  overflow: visible !important;
}

.rp-dash-main {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  visibility: visible !important;
  overflow: visible !important;
}

.rp-dash-main > * {
  visibility: visible !important;
}

.rp-topbar, .rp-hero, .rp-kpi-grid, .rp-tabs, .rp-panel, .rp-grid-2, .rp-grid-3, .rp-grid-4, .rp-status-bar {
  display: block !important;
  visibility: visible !important;
}

.rp-kpi-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important; gap: 14px !important; }
.rp-grid-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px !important; }
.rp-grid-3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; }
.rp-grid-4 { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px !important; }

.rp-fade-in { opacity: 1 !important; transform: none !important; }

@media (max-width: 1200px) {
  .rp-grid-2, .rp-grid-3, .rp-grid-4 { grid-template-columns: 1fr !important; }
  .rp-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 760px) {
  .rp-dash-main { padding: 16px !important; }
  .rp-kpi-grid { grid-template-columns: 1fr !important; }
}

html,
html[data-theme="dark"],
html[data-theme="light"] {
  --rp-bg: #070b14;
  --rp-bg-soft: #0c1224;
  --rp-surface: #0c1224;
  --rp-surface-2: #070b14;
  --rp-border: #1e293b;
  --rp-border-strong: #334155;
  --rp-text: #f8fafc;
  --rp-text-soft: #cbd5e1;
  --rp-text-muted: #64748b;
  --rp-gold: #fbbf24;
  --rp-gold-strong: #f59e0b;
  color-scheme: dark;
}

body,
.erp-shell,
.rp-dash-shell {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%) !important;
  color: #f8fafc !important;
}

.rp-theme-toggle {
  display: none !important;
}

.rp-dash-main,
.rp-panel,
.rp-kpi-card,
.rp-topbar,
.rp-hero {
  color: #f8fafc;
}

/* ========== Dashboard Topbar Layout Fix ========== */
.rp-topbar {
  display: grid !important;
  grid-template-columns: auto minmax(260px, 1fr) auto !important;
  grid-template-areas: "actions periods brand" !important;
  align-items: center !important;
  gap: 16px !important;
  min-height: 86px !important;
  padding: 14px 18px !important;
  overflow: visible !important;
}

.rp-topbar-brand {
  grid-area: brand !important;
  justify-self: end !important;
  direction: rtl !important;
  min-width: 250px !important;
}

.rp-topbar-center {
  grid-area: periods !important;
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.rp-topbar-actions {
  grid-area: actions !important;
  justify-self: start !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  min-width: -moz-max-content !important;
  min-width: max-content !important;
}

.rp-period-btn {
  white-space: nowrap !important;
  min-width: 56px !important;
}

.rp-icon-btn {
  flex: 0 0 auto !important;
}

.rp-clock {
  flex: 0 0 auto !important;
  min-width: 74px !important;
  justify-content: center !important;
}

@media (max-width: 1180px) {
  .rp-topbar {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "periods"
      "actions" !important;
    min-height: auto !important;
    padding: 16px !important;
  }

  .rp-topbar-brand,
  .rp-topbar-center,
  .rp-topbar-actions {
    justify-self: center !important;
  }

  .rp-topbar-brand {
    min-width: 0 !important;
    text-align: center !important;
  }

  .rp-topbar-center,
  .rp-topbar-actions {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 640px) {
  .rp-topbar-center {
    width: 100% !important;
  }

  .rp-period-btn {
    flex: 1 1 70px !important;
  }

  .rp-topbar-actions {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ========== Royal Palace Sidebar Collapse Polish ========== */
.rp-sidebar.rp-sidebar-collapsed {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  padding: 16px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

.rp-sidebar-collapsed .rp-sidebar-brand {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  gap: 10px !important;
  padding: 0 0 14px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.rp-sidebar-collapsed .rp-sidebar-brand-mark {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  margin-top: 36px !important;
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 36px !important;
  height: 30px !important;
  border-radius: 12px !important;
  z-index: 5 !important;
  background: rgba(245, 158, 11, 0.13) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
}

.rp-sidebar-collapsed .rp-collapse-btn:hover {
  transform: translateX(-50%) translateY(-1px) !important;
  background: rgba(245, 158, 11, 0.22) !important;
}

.rp-sidebar-collapsed .rp-search-wrap,
.rp-sidebar-collapsed .rp-sidebar-current,
.rp-sidebar-collapsed .rp-sidebar-profile,
.rp-sidebar-collapsed .rp-sidebar-section-title,
.rp-sidebar-collapsed .rp-sidebar-version,
.rp-sidebar-collapsed .rp-nav-text,
.rp-sidebar-collapsed .rp-chevron,
.rp-sidebar-collapsed .rp-nav-active-dot,
.rp-sidebar-collapsed .rp-nav-group-body {
  display: none !important;
}

.rp-sidebar-collapsed .rp-nav {
  width: 100% !important;
  display: grid !important;
  gap: 9px !important;
  justify-items: center !important;
  margin-top: 2px !important;
}

.rp-sidebar-collapsed .rp-nav-group {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  margin: 0 !important;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  transform: none !important;
}

.rp-sidebar-collapsed .rp-nav-item:hover,
.rp-sidebar-collapsed .rp-nav-group-head:hover {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.24) !important;
  transform: translateY(-1px) !important;
}

.rp-sidebar-collapsed .rp-group-icon,
.rp-sidebar-collapsed .rp-nav-bullet {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: rgba(245, 158, 11, 0.08) !important;
  color: #fbbf24 !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.rp-sidebar-collapsed .rp-nav-bullet svg,
.rp-sidebar-collapsed .rp-group-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.rp-sidebar-collapsed .rp-nav-active {
  background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(245,158,11,0.08)) !important;
  border-color: rgba(245,158,11,0.40) !important;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12) !important;
}

.rp-sidebar-collapsed .rp-nav-active::before {
  content: "" !important;
  position: absolute !important;
  top: 10px !important;
  bottom: 10px !important;
  right: -8px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #f59e0b, #fbbf24) !important;
  box-shadow: 0 0 12px rgba(245,158,11,0.45) !important;
}

.rp-sidebar-collapsed .rp-sidebar-footer {
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  display: grid !important;
  place-items: center !important;
}

.rp-sidebar-collapsed .rp-logout-btn {
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
}

.rp-sidebar-collapsed .rp-logout-btn span:not(.rp-logout-icon) {
  display: none !important;
}

.rp-sidebar-collapsed .rp-logout-icon {
  font-size: 18px !important;
}

.rp-sidebar-collapsed .rp-brand-pulse {
  display: none !important;
}

/* ===== Collapsed Sidebar Fix ===== */
.rp-sidebar-collapsed .rp-sidebar-brand {
  justify-content: center;
  padding: 6px 4px 14px;
}

.rp-sidebar-collapsed .rp-sidebar-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.rp-sidebar-collapsed .rp-search-wrap,
.rp-sidebar-collapsed .rp-sidebar-current,
.rp-sidebar-collapsed .rp-sidebar-profile,
.rp-sidebar-collapsed .rp-theme-toggle,
.rp-sidebar-collapsed .rp-sidebar-section-title,
.rp-sidebar-collapsed .rp-nav-hint,
.rp-sidebar-collapsed .rp-nav-label,
.rp-sidebar-collapsed .rp-nav-text,
.rp-sidebar-collapsed .rp-chevron,
.rp-sidebar-collapsed .rp-sidebar-version,
.rp-sidebar-collapsed .rp-nav-empty {
  display: none !important;
}

.rp-sidebar-collapsed .rp-nav {
  gap: 4px;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 10px 0 !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin: 0 !important;
  border-radius: 10px !important;
}

.rp-sidebar-collapsed .rp-nav-bullet {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.rp-sidebar-collapsed .rp-nav-bullet svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.2 !important;
}

.rp-sidebar-collapsed .rp-nav-item:hover .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-group-head:hover .rp-nav-bullet {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fbbf24 !important;
}

.rp-sidebar-collapsed .rp-nav-active .rp-nav-bullet {
  background: rgba(245, 158, 11, 0.20) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.24) !important;
}

.rp-sidebar-collapsed .rp-group-icon {
  display: none !important;
}

.rp-sidebar-collapsed .rp-nav-group {
  margin-bottom: 4px;
}

.rp-sidebar-collapsed .rp-nav-group-body {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.rp-sidebar-collapsed .rp-nav-child {
  display: none !important;
}

.rp-sidebar-collapsed .rp-sidebar-footer {
  margin-top: 12px;
  padding-top: 12px;
}

.rp-sidebar-collapsed .rp-logout-btn {
  height: 40px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 10px !important;
}

.rp-sidebar-collapsed .rp-logout-btn span:not(.rp-logout-icon) {
  display: none !important;
}

.rp-sidebar-collapsed .rp-logout-icon {
  font-size: 16px !important;
}

/* ===== Topbar Fix ===== */
.rp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  flex-wrap: nowrap;
  gap: 16px;
  min-height: 62px;
}

.rp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rp-topbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .rp-topbar { flex-wrap: wrap; justify-content: center; }
  .rp-topbar-brand { flex: 0 0 100%; justify-content: center; margin-bottom: 8px; }
  .rp-topbar-center { flex: 0 0 100%; justify-content: center; margin-bottom: 8px; }
  .rp-topbar-actions { flex: 0 0 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   Sidebar — Enterprise ERP Design (Oracle/Odoo/Dynamics/SAP Fusion)
   ═══════════════════════════════════════════════════════════════════ */

.rp-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1228 0%, #070b1a 100%);
  color: #e8edf5;
  padding: 16px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.25) transparent;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.rp-sidebar::-webkit-scrollbar { width: 4px; }
.rp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Collapsed ── */
.rp-sidebar-collapsed {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 16px 6px;
}

/* ── Brand ── */
.rp-sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-sidebar-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rp-brand-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  animation: rpBrandPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rpBrandPulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.rp-sidebar-brand-text h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.rp-sidebar-brand-text p {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(245, 158, 11, 0.8);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

/* ── Search ── */
.rp-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rp-search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  display: flex;
}

.rp-search-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  padding: 0 32px 0 32px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.rp-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-wrap.focused .rp-search-input {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.rp-search-clear {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.rp-search-clear:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Quick Search Results ── */
.rp-quick-results {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.03);
  overflow: hidden;
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rp-quick-result-item:last-child { border-bottom: none; }
.rp-quick-result-item:hover { background: rgba(245, 158, 11, 0.08); }

.rp-qr-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  flex-shrink: 0;
}

.rp-qr-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e8edf5;
}

.rp-qr-hint {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rp-qr-more {
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ── User Profile ── */
.rp-sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.rp-sidebar-profile:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
}

.rp-profile-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.rp-profile-status {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b1228;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rp-profile-info {
  flex: 1;
  min-width: 0;
}

.rp-profile-name {
  color: #e8edf5;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-profile-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.rp-profile-chevron {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  transition: transform 0.2s;
}

.rp-profile-chevron.open {
  transform: rotate(90deg);
  color: #fbbf24;
}

.rp-profile-expanded {
  margin: -4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-profile-exp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10px;
}

.rp-profile-exp-label { color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.rp-profile-exp-row strong { color: #fbbf24; font-weight: 800; }

/* ── Section Title ── */
.rp-sidebar-section-title {
  margin: 12px 0 6px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.rp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}

.rp-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 0;
  margin-right: 8px;
  border-right: 1.5px solid rgba(245, 158, 11, 0.08);
  animation: rpFadeSlide 0.18s ease-out;
  overflow-anchor: none;
}

@keyframes rpFadeSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Group Header ── */
.rp-nav-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.12);
}

.rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Nav Items ── */
.rp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-nav-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  font-weight: 800;
}

.rp-nav-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -12px;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rp-sidebar-collapsed .rp-nav-active::after {
  right: -6px;
}

/* ── Bullets ── */
.rp-nav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.5); }
.rp-nav-active .rp-nav-bullet {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.rp-nav-bullet-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet-child { background: rgba(245, 158, 11, 0.4); }
.rp-nav-active .rp-nav-bullet-child {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

/* ── Nav Text ── */
.rp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.rp-nav-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-nav-active .rp-nav-label {
  font-weight: 800;
}

.rp-nav-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.6); }

/* ── Active Bar ── */
.rp-nav-active-bar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

/* ── Chevron ── */
.rp-chevron {
  display: flex;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.rp-nav-group-head:hover .rp-chevron { color: rgba(255, 255, 255, 0.6); }
.rp-chevron.open { color: #fbbf24; }

/* ── Collapsed state ── */
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px;
  justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-bullet-child { display: none; }
.rp-sidebar-collapsed .rp-group-icon {
  width: 30px; height: 30px; font-size: 15px;
}

/* ── Empty State ── */
.rp-nav-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.4);
}

.rp-nav-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rp-nav-empty > div {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rp-nav-empty > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
.rp-sidebar-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.rp-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.rp-logout-icon {
  display: flex;
}

.rp-sidebar-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.rp-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ── Mobile ── */
.rp-mobile-menu-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.rp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1498;
  backdrop-filter: blur(3px);
  animation: rpFadeIn 0.18s ease-out;
}

@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 320px;
  height: 100vh;
  z-index: 1499;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  animation: rpSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rpSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-mobile-title {
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.rp-mobile-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 991px) {
  .rp-sidebar { display: none; }
  .erp-shell { display: block; }
  .erp-main, .rp-dash-main { padding-top: 80px; }
}

[data-theme="dark"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

/* ========== Royal Palace Sidebar Collapse Polish ========== */
.rp-sidebar.rp-sidebar-collapsed {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  padding: 16px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}

.rp-sidebar-collapsed .rp-sidebar-brand {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  gap: 10px !important;
  padding: 0 0 14px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.rp-sidebar-collapsed .rp-sidebar-brand-mark {
  width: 48px !important;
  height: 48px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  margin-top: 36px !important;
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute !important;
  top: 12px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 36px !important;
  height: 30px !important;
  border-radius: 12px !important;
  z-index: 5 !important;
  background: rgba(245, 158, 11, 0.13) !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
  color: #fbbf24 !important;
}

.rp-sidebar-collapsed .rp-collapse-btn:hover {
  transform: translateX(-50%) translateY(-1px) !important;
  background: rgba(245, 158, 11, 0.22) !important;
}

.rp-sidebar-collapsed .rp-search-wrap,
.rp-sidebar-collapsed .rp-sidebar-current,
.rp-sidebar-collapsed .rp-sidebar-profile,
.rp-sidebar-collapsed .rp-sidebar-section-title,
.rp-sidebar-collapsed .rp-sidebar-version,
.rp-sidebar-collapsed .rp-nav-text,
.rp-sidebar-collapsed .rp-chevron,
.rp-sidebar-collapsed .rp-nav-active-dot,
.rp-sidebar-collapsed .rp-nav-group-body {
  display: none !important;
}

.rp-sidebar-collapsed .rp-nav {
  width: 100% !important;
  display: grid !important;
  gap: 9px !important;
  justify-items: center !important;
  margin-top: 2px !important;
}

.rp-sidebar-collapsed .rp-nav-group {
  width: 100% !important;
  display: grid !important;
  justify-items: center !important;
  margin: 0 !important;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.045) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  transform: none !important;
}

.rp-sidebar-collapsed .rp-nav-item:hover,
.rp-sidebar-collapsed .rp-nav-group-head:hover {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.24) !important;
  transform: translateY(-1px) !important;
}

.rp-sidebar-collapsed .rp-group-icon,
.rp-sidebar-collapsed .rp-nav-bullet {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: rgba(245, 158, 11, 0.08) !important;
  color: #fbbf24 !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

.rp-sidebar-collapsed .rp-nav-bullet svg,
.rp-sidebar-collapsed .rp-group-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.rp-sidebar-collapsed .rp-nav-active {
  background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(245,158,11,0.08)) !important;
  border-color: rgba(245,158,11,0.40) !important;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12) !important;
}

.rp-sidebar-collapsed .rp-nav-active::before {
  content: "" !important;
  position: absolute !important;
  top: 10px !important;
  bottom: 10px !important;
  right: -8px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #f59e0b, #fbbf24) !important;
  box-shadow: 0 0 12px rgba(245,158,11,0.45) !important;
}

.rp-sidebar-collapsed .rp-sidebar-footer {
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255,255,255,0.06) !important;
  display: grid !important;
  place-items: center !important;
}

.rp-sidebar-collapsed .rp-logout-btn {
  width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
}

.rp-sidebar-collapsed .rp-logout-btn span:not(.rp-logout-icon) {
  display: none !important;
}

.rp-sidebar-collapsed .rp-logout-icon {
  font-size: 18px !important;
}

.rp-sidebar-collapsed .rp-brand-pulse {
  display: none !important;
}

/* ===== Collapsed Sidebar Fix ===== */
.rp-sidebar-collapsed .rp-sidebar-brand {
  justify-content: center;
  padding: 6px 4px 14px;
}

.rp-sidebar-collapsed .rp-sidebar-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.rp-sidebar-collapsed .rp-search-wrap,
.rp-sidebar-collapsed .rp-sidebar-current,
.rp-sidebar-collapsed .rp-sidebar-profile,
.rp-sidebar-collapsed .rp-theme-toggle,
.rp-sidebar-collapsed .rp-sidebar-section-title,
.rp-sidebar-collapsed .rp-nav-hint,
.rp-sidebar-collapsed .rp-nav-label,
.rp-sidebar-collapsed .rp-nav-text,
.rp-sidebar-collapsed .rp-chevron,
.rp-sidebar-collapsed .rp-sidebar-version,
.rp-sidebar-collapsed .rp-nav-empty {
  display: none !important;
}

.rp-sidebar-collapsed .rp-nav {
  gap: 4px;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 10px 0 !important;
  justify-content: center !important;
  min-height: 42px !important;
  margin: 0 !important;
  border-radius: 10px !important;
}

.rp-sidebar-collapsed .rp-nav-bullet {
  width: 32px !important;
  height: 32px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.rp-sidebar-collapsed .rp-nav-bullet svg {
  width: 18px !important;
  height: 18px !important;
  stroke-width: 2.2 !important;
}

.rp-sidebar-collapsed .rp-nav-item:hover .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-group-head:hover .rp-nav-bullet {
  background: rgba(245, 158, 11, 0.14) !important;
  color: #fbbf24 !important;
}

.rp-sidebar-collapsed .rp-nav-active .rp-nav-bullet {
  background: rgba(245, 158, 11, 0.20) !important;
  color: #fbbf24 !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.24) !important;
}

.rp-sidebar-collapsed .rp-group-icon {
  display: none !important;
}

.rp-sidebar-collapsed .rp-nav-group {
  margin-bottom: 4px;
}

.rp-sidebar-collapsed .rp-nav-group-body {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.rp-sidebar-collapsed .rp-nav-child {
  display: none !important;
}

.rp-sidebar-collapsed .rp-sidebar-footer {
  margin-top: 12px;
  padding-top: 12px;
}

.rp-sidebar-collapsed .rp-logout-btn {
  height: 40px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 10px !important;
}

.rp-sidebar-collapsed .rp-logout-btn span:not(.rp-logout-icon) {
  display: none !important;
}

.rp-sidebar-collapsed .rp-logout-icon {
  font-size: 16px !important;
}

/* ===== Topbar Fix ===== */
.rp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  flex-wrap: nowrap;
  gap: 16px;
  min-height: 62px;
}

.rp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.rp-topbar-center {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.rp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .rp-topbar { flex-wrap: wrap; justify-content: center; }
  .rp-topbar-brand { flex: 0 0 100%; justify-content: center; margin-bottom: 8px; }
  .rp-topbar-center { flex: 0 0 100%; justify-content: center; margin-bottom: 8px; }
  .rp-topbar-actions { flex: 0 0 100%; justify-content: center; }
}

/* ========== Royal Palace Sidebar Clean Collapse Restore ========== */
.rp-sidebar.rp-sidebar-collapsed {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  padding: 18px 8px !important;
  background:
    radial-gradient(circle at top, rgba(245, 158, 11, 0.10), transparent 28%),
    linear-gradient(180deg, #0a1024 0%, #060916 100%) !important;
  border-left: 1px solid rgba(245, 158, 11, 0.10) !important;
  overflow-x: hidden !important;
}

.rp-sidebar-collapsed .rp-sidebar-brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0 0 14px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.rp-sidebar-collapsed .rp-sidebar-brand-mark {
  width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  border-radius: 15px !important;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.26) !important;
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: fixed !important;
  right: 18px !important;
  top: 92px !important;
  left: auto !important;
  transform: none !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  z-index: 20 !important;
  background: rgba(245, 158, 11, 0.14) !important;
  border: 1px solid rgba(245, 158, 11, 0.28) !important;
  color: #fbbf24 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

.rp-sidebar-collapsed .rp-collapse-btn:hover {
  transform: translateY(-1px) !important;
  background: rgba(245, 158, 11, 0.22) !important;
}

.rp-sidebar-collapsed .rp-sidebar-brand-text,
.rp-sidebar-collapsed .rp-search-wrap,
.rp-sidebar-collapsed .rp-sidebar-current,
.rp-sidebar-collapsed .rp-sidebar-profile,
.rp-sidebar-collapsed .rp-theme-toggle,
.rp-sidebar-collapsed .rp-sidebar-section-title,
.rp-sidebar-collapsed .rp-nav-text,
.rp-sidebar-collapsed .rp-chevron,
.rp-sidebar-collapsed .rp-nav-active-dot,
.rp-sidebar-collapsed .rp-nav-group-body,
.rp-sidebar-collapsed .rp-sidebar-version,
.rp-sidebar-collapsed .rp-brand-pulse {
  display: none !important;
}

.rp-sidebar-collapsed .rp-nav {
  display: grid !important;
  gap: 10px !important;
  justify-items: center !important;
  padding-top: 4px !important;
}

.rp-sidebar-collapsed .rp-nav-group,
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  width: 100% !important;
  margin: 0 !important;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  position: relative !important;
  width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 15px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.rp-sidebar-collapsed .rp-nav-item:hover,
.rp-sidebar-collapsed .rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px) !important;
}

.rp-sidebar-collapsed .rp-group-icon,
.rp-sidebar-collapsed .rp-nav-bullet {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  color: #fbbf24 !important;
  font-size: 16px !important;
}

.rp-sidebar-collapsed .rp-nav-group:nth-of-type(1) .rp-group-icon { color: #f59e0b !important; background: rgba(245, 158, 11, 0.10) !important; }
.rp-sidebar-collapsed .rp-nav-group:nth-of-type(2) .rp-group-icon { color: #60a5fa !important; background: rgba(59, 130, 246, 0.10) !important; }
.rp-sidebar-collapsed .rp-nav-group:nth-of-type(3) .rp-group-icon { color: #34d399 !important; background: rgba(34, 197, 94, 0.10) !important; }
.rp-sidebar-collapsed .rp-nav-group:nth-of-type(4) .rp-group-icon { color: #a78bfa !important; background: rgba(168, 85, 247, 0.10) !important; }
.rp-sidebar-collapsed .rp-nav-group:nth-of-type(5) .rp-group-icon { color: #f87171 !important; background: rgba(239, 68, 68, 0.10) !important; }
.rp-sidebar-collapsed .rp-nav-group:nth-of-type(6) .rp-group-icon { color: #22d3ee !important; background: rgba(6, 182, 212, 0.10) !important; }

.rp-sidebar-collapsed .rp-group-icon svg,
.rp-sidebar-collapsed .rp-nav-bullet svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

.rp-sidebar-collapsed .rp-nav-bullet {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.10) !important;
}

.rp-sidebar-collapsed .rp-nav-active {
  background: rgba(245, 158, 11, 0.10) !important;
  border-color: rgba(245, 158, 11, 0.22) !important;
}

.rp-sidebar-collapsed .rp-nav-active .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-active .rp-group-icon {
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.10) !important;
}

.rp-sidebar-collapsed .rp-nav-active::before {
  content: "" !important;
  position: absolute !important;
  right: -9px !important;
  top: 12px !important;
  bottom: 12px !important;
  width: 3px !important;
  border-radius: 999px !important;
  background: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.55) !important;
}

.rp-sidebar-collapsed .rp-sidebar-footer {
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  width: 100% !important;
}

.rp-sidebar-collapsed .rp-logout-btn {
  width: 46px !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 !important;
  border-radius: 15px !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.20) !important;
}

.rp-sidebar-collapsed .rp-logout-btn span:not(.rp-logout-icon) {
  display: none !important;
}

.rp-sidebar-collapsed .rp-logout-icon {
  font-size: 18px !important;
  color: #f87171 !important;
}

/* ===== Collapsed Sidebar - Clean & Simple ===== */
.rp-sidebar-collapsed .rp-sidebar-brand {
  justify-content: center;
  padding: 6px 4px 14px;
}

.rp-sidebar-collapsed .rp-sidebar-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  font-size: 14px;
}

/* Hide all text elements in collapsed mode */
.rp-sidebar-collapsed .rp-search-wrap,
.rp-sidebar-collapsed .rp-sidebar-current,
.rp-sidebar-collapsed .rp-sidebar-profile,
.rp-sidebar-collapsed .rp-sidebar-section-title,
.rp-sidebar-collapsed .rp-nav-hint,
.rp-sidebar-collapsed .rp-nav-label,
.rp-sidebar-collapsed .rp-nav-text,
.rp-sidebar-collapsed .rp-chevron,
.rp-sidebar-collapsed .rp-sidebar-version,
.rp-sidebar-collapsed .rp-nav-empty {
  display: none !important;
}

/* Clean collapsed nav items */
.rp-sidebar-collapsed .rp-nav {
  gap: 4px;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px !important;
  justify-content: center !important;
  min-height: 40px !important;
  margin: 0 !important;
  border-radius: 10px !important;
}

/* Show emoji icons centered in collapsed mode */
.rp-sidebar-collapsed .rp-group-icon {
  font-size: 20px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(245, 158, 11, 0.10) !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
}

.rp-sidebar-collapsed .rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.20) !important;
  transform: scale(1.08) !important;
}

/* Item bullets become small dots in collapsed mode */
.rp-sidebar-collapsed .rp-nav-bullet {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(245, 158, 11, 0.35) !important;
  display: block !important;
  margin: 0 !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.18) !important;
}

.rp-sidebar-collapsed .rp-nav-item:hover .rp-nav-bullet {
  background: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
}

.rp-sidebar-collapsed .rp-nav-active .rp-nav-bullet {
  background: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.7) !important;
}

/* Hide child items in collapsed mode */
.rp-sidebar-collapsed .rp-nav-group-body {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.rp-sidebar-collapsed .rp-nav-child {
  display: none !important;
}

/* Active dot hidden in collapsed mode */
.rp-sidebar-collapsed .rp-nav-active-dot {
  display: none !important;
}

/* Footer in collapsed mode */
.rp-sidebar-collapsed .rp-sidebar-footer {
  margin-top: 12px;
  padding-top: 12px;
}

.rp-sidebar-collapsed .rp-logout-btn {
  height: 40px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 10px !important;
}

.rp-sidebar-collapsed .rp-logout-btn span:not(.rp-logout-icon) {
  display: none !important;
}

.rp-sidebar-collapsed .rp-logout-icon {
  font-size: 16px !important;
}

/* Active group icon glow */
.rp-sidebar-collapsed .rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.18) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.20) !important;
}

/* ========== Sidebar Gold SVG Icons Restore ========== */
.rp-theme-toggle {
  display: none !important;
}

.rp-sidebar-svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-group-icon,
.rp-nav-bullet {
  display: grid !important;
  place-items: center !important;
  color: #fbbf24 !important;
}

.rp-group-icon {
  width: 30px !important;
  height: 30px !important;
  border-radius: 10px !important;
  background: rgba(245, 158, 11, 0.10) !important;
  border: 1px solid rgba(245, 158, 11, 0.16) !important;
}

.rp-nav-bullet {
  width: 24px !important;
  min-width: 24px !important;
  height: 24px !important;
  border-radius: 9px !important;
  background: rgba(245, 158, 11, 0.07) !important;
  border: 1px solid rgba(245, 158, 11, 0.10) !important;
}

.rp-nav-child .rp-nav-bullet {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
}

.rp-nav-child .rp-nav-bullet .rp-sidebar-svg {
  width: 14px;
  height: 14px;
}

.rp-nav-item:hover .rp-nav-bullet,
.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.26) !important;
  color: #fbbf24 !important;
}

.rp-nav-active .rp-nav-bullet {
  background: rgba(245, 158, 11, 0.20) !important;
  border-color: rgba(245, 158, 11, 0.36) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.18) !important;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  cursor: pointer !important;
}

.rp-sidebar-collapsed .rp-group-icon,
.rp-sidebar-collapsed .rp-nav-bullet {
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
}

.rp-sidebar-collapsed .rp-sidebar-svg {
  width: 19px !important;
  height: 19px !important;
}

.rp-sidebar-collapsed .rp-nav-group-head:hover::after,
.rp-sidebar-collapsed .rp-nav-item:hover::after {
  content: attr(title);
  position: fixed;
  right: 82px;
  z-index: 9999;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(12, 18, 36, 0.98);
  border: 1px solid rgba(245, 158, 11, 0.22);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* ===== Collapsed Sidebar - Clean & Gold ===== */
.rp-sidebar-collapsed .rp-sidebar-brand {
  justify-content: center;
  padding: 6px 4px 14px;
}

.rp-sidebar-collapsed .rp-sidebar-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  font-size: 14px;
}

/* Hide text in collapsed mode */
.rp-sidebar-collapsed .rp-search-wrap,
.rp-sidebar-collapsed .rp-sidebar-current,
.rp-sidebar-collapsed .rp-sidebar-profile,
.rp-sidebar-collapsed .rp-sidebar-section-title,
.rp-sidebar-collapsed .rp-nav-hint,
.rp-sidebar-collapsed .rp-nav-label,
.rp-sidebar-collapsed .rp-nav-text,
.rp-sidebar-collapsed .rp-chevron,
.rp-sidebar-collapsed .rp-sidebar-version,
.rp-sidebar-collapsed .rp-nav-empty {
  display: none !important;
}

/* Collapsed nav layout */
.rp-sidebar-collapsed .rp-nav {
  gap: 4px;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 6px !important;
  justify-content: center !important;
  min-height: 38px !important;
  margin: 0 !important;
  border-radius: 10px !important;
}

/* Group icons - gold emoji style */
.rp-sidebar-collapsed .rp-group-icon {
  font-size: 22px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
}

.rp-sidebar-collapsed .rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.24) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18) !important;
}

.rp-sidebar-collapsed .rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: rgba(245, 158, 11, 0.34) !important;
}

/* Item bullets in collapsed mode */
.rp-sidebar-collapsed .rp-nav-bullet {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(245, 158, 11, 0.30) !important;
  display: block !important;
  margin: 0 !important;
}

.rp-sidebar-collapsed .rp-nav-item:hover .rp-nav-bullet {
  background: #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4) !important;
}

.rp-sidebar-collapsed .rp-nav-active .rp-nav-bullet {
  background: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
}

/* Child items - show in collapsed mode as dots */
.rp-sidebar-collapsed .rp-nav-group-body {
  display: grid !important;
  gap: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.rp-sidebar-collapsed .rp-nav-child {
  display: none !important;
}

/* Active dot hidden in collapsed */
.rp-sidebar-collapsed .rp-nav-active-dot {
  display: none !important;
}

/* Footer collapsed */
.rp-sidebar-collapsed .rp-sidebar-footer {
  margin-top: 12px;
  padding-top: 12px;
}

.rp-sidebar-collapsed .rp-logout-btn {
  height: 38px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 10px !important;
}

.rp-sidebar-collapsed .rp-logout-btn span:not(.rp-logout-icon) {
  display: none !important;
}

/* ===== Collapsed Sidebar - Clean & Gold ===== */
.rp-sidebar-collapsed .rp-sidebar-brand {
  justify-content: center;
  padding: 6px 4px 14px;
}

.rp-sidebar-collapsed .rp-sidebar-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  font-size: 14px;
}

/* Hide text in collapsed mode */
.rp-sidebar-collapsed .rp-search-wrap,
.rp-sidebar-collapsed .rp-sidebar-current,
.rp-sidebar-collapsed .rp-sidebar-profile,
.rp-sidebar-collapsed .rp-sidebar-section-title,
.rp-sidebar-collapsed .rp-nav-hint,
.rp-sidebar-collapsed .rp-nav-label,
.rp-sidebar-collapsed .rp-nav-text,
.rp-sidebar-collapsed .rp-chevron,
.rp-sidebar-collapsed .rp-sidebar-version,
.rp-sidebar-collapsed .rp-nav-empty {
  display: none !important;
}

/* Collapsed nav layout */
.rp-sidebar-collapsed .rp-nav {
  gap: 4px;
}

.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 6px !important;
  justify-content: center !important;
  min-height: 38px !important;
  margin: 0 !important;
  border-radius: 10px !important;
}

/* Group icons - gold emoji style */
.rp-sidebar-collapsed .rp-group-icon {
  font-size: 22px !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
}

.rp-sidebar-collapsed .rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.24) !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18) !important;
}

.rp-sidebar-collapsed .rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: rgba(245, 158, 11, 0.34) !important;
}

/* Item bullets in collapsed mode */
.rp-sidebar-collapsed .rp-nav-bullet {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(245, 158, 11, 0.30) !important;
  display: block !important;
  margin: 0 !important;
}

.rp-sidebar-collapsed .rp-nav-item:hover .rp-nav-bullet {
  background: #f59e0b !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4) !important;
}

.rp-sidebar-collapsed .rp-nav-active .rp-nav-bullet {
  background: #f59e0b !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6) !important;
}

/* Child items - show in collapsed mode as dots */
.rp-sidebar-collapsed .rp-nav-group-body {
  display: grid !important;
  gap: 2px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.rp-sidebar-collapsed .rp-nav-child {
  display: none !important;
}

/* Active dot hidden in collapsed */
.rp-sidebar-collapsed .rp-nav-active-dot {
  display: none !important;
}

/* Footer collapsed */
.rp-sidebar-collapsed .rp-sidebar-footer {
  margin-top: 12px;
  padding-top: 12px;
}

.rp-sidebar-collapsed .rp-logout-btn {
  height: 38px !important;
  padding: 0 !important;
  justify-content: center !important;
  border-radius: 10px !important;
}

.rp-sidebar-collapsed .rp-logout-btn span:not(.rp-logout-icon) {
  display: none !important;
}

.rp-dash-main {
  padding: 24px;
  background:
    radial-gradient(circle at 82% 2%, rgba(245, 158, 11, 0.08), transparent 28%),
    radial-gradient(circle at 12% 36%, rgba(59, 130, 246, 0.06), transparent 30%),
    transparent;
}

.rp-command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 20px;
  margin-bottom: 20px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.16);
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.96) 0%, rgba(7, 11, 20, 0.96) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rp-hero-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-command-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.rp-command-hero p {
  max-width: 700px;
  margin: 12px 0 0;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.rp-hero-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.rp-hero-metadata span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
}

.rp-command-health {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 180px;
  border-radius: 20px;
  background: rgba(7, 11, 20, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-health-ring {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0a1024 52%, transparent 53%),
    conic-gradient(#f59e0b 0 70%, rgba(148, 163, 184, 0.12) 70% 100%);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.08);
}

.rp-health-ring span {
  color: #fbbf24;
  font-size: 18px;
  font-weight: 950;
}

.rp-command-health strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.rp-command-health small {
  max-width: 190px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.6;
  font-weight: 700;
  font-size: 11px;
}

.rp-dash-kpi-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.rp-dash-kpi-grid.primary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rp-dash-kpi-grid.secondary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.rp-dash-kpi {
  position: relative;
  min-height: 128px;
  padding: 16px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rp-dash-kpi:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.28);
}

.rp-dash-kpi-glow {
  position: absolute;
  top: -24px;
  left: -26px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  opacity: 0.10;
  background: currentColor;
}

.rp-dash-kpi-label {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.rp-dash-kpi-value {
  margin-top: 12px;
  color: #f8fafc;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 950;
  letter-spacing: -0.5px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.rp-currency {
  font-size: 14px;
  font-weight: 800;
  color: #94a3b8;
}

.rp-suffix {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.rp-dash-kpi-note {
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.rp-tone-gold { color: #f59e0b; }
.rp-tone-blue { color: #60a5fa; }
.rp-tone-green { color: #34d399; }
.rp-tone-red { color: #f87171; }
.rp-tone-purple { color: #a78bfa; }
.rp-tone-cyan { color: #22d3ee; }

.rp-dash-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

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

.rp-dash-grid.three {
  grid-template-columns: 0.9fr 1.1fr 0.95fr;
}

.rp-dash-grid.system {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
}

.rp-panel {
  min-width: 0;
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20);
}

.rp-panel.compact {
  min-height: 340px;
}

.rp-panel.wide {
  min-height: 300px;
}

.rp-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rp-panel-head span {
  display: block;
  color: #fbbf24;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-panel-head h2 {
  margin: 4px 0 0;
  color: #f8fafc;
  font-size: 15px;
  font-weight: 950;
}

.rp-panel-head b {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.rp-chart-labels {
  display: flex;
  justify-content: space-between;
  gap: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  margin-top: 8px;
}

.rp-ring-wrap {
  display: grid;
  place-items: center;
  min-height: 170px;
}

.rp-legend {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.rp-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.rp-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.rp-legend b {
  color: #f8fafc;
}

.rp-list {
  display: grid;
  gap: 8px;
}

.rp-list-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.rp-list-row > span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0a1024;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  font-size: 11px;
  font-weight: 950;
}

.rp-list-row strong {
  display: block;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-list-row small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.rp-list-row b {
  color: #34d399;
  font-size: 10px;
  font-weight: 900;
}

.rp-profit-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.rp-profit-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.rp-profit-card strong {
  color: #34d399;
  font-size: 16px;
}

.rp-progress {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.rp-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #f59e0b);
}

.rp-mini-stack {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.rp-mini-stack div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-mini-stack span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
}

.rp-mini-stack b {
  color: #f8fafc;
  font-size: 11px;
  font-weight: 950;
}

.rp-factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.rp-factory-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.10);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-factory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.24);
}

.rp-factory-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.rp-factory-code {
  color: #fbbf24;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.rp-factory-card h3 {
  margin: 5px 0 0;
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 950;
}

.rp-status {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
}

.rp-status.good {
  color: #34d399;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.16);
}

.rp-status.warn {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.16);
}

.rp-factory-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.rp-factory-metrics div {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.rp-factory-metrics span {
  display: block;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
}

.rp-factory-metrics strong {
  display: block;
  margin-top: 5px;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
}

.rp-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.rp-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 0 10px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.10);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-quick-link:hover {
  transform: translateY(-2px);
  border-color: currentColor;
}

.rp-quick-link span {
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
}

.rp-quick-link b {
  color: currentColor;
  font-size: 9px;
  font-weight: 950;
}

.rp-empty {
  min-height: 130px;
  display: grid;
  place-items: center;
  color: #64748b;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.42);
  border: 1px dashed rgba(148, 163, 184, 0.16);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1400px) {
  .rp-dash-kpi-grid.primary,
  .rp-dash-kpi-grid.secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .rp-command-hero,
  .rp-dash-grid.two,
  .rp-dash-grid.three,
  .rp-dash-grid.system {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .rp-dash-main {
    padding: 16px;
  }
  .rp-command-hero {
    padding: 18px;
  }
  .rp-dash-kpi-grid.primary,
  .rp-dash-kpi-grid.secondary,
  .rp-quick-grid {
    grid-template-columns: 1fr;
  }
}

.rp-dash-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  direction: rtl;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
  color: #f8fafc;
}

.rp-dash-main {
  flex: 1;
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(245, 158, 11, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  flex-wrap: wrap;
  gap: 12px;
}

.rp-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rp-topbar-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.24);
}

.rp-topbar-title {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
  line-height: 1.2;
}

.rp-topbar-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-topbar-center {
  display: flex;
  gap: 6px;
}

.rp-period-btn {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-period-btn:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.rp-period-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.42);
  color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.10);
}

.rp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rp-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-icon-btn:hover {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.22);
  transform: translateY(-1px);
}

.rp-icon-btn.spinning {
  animation: rpSpin 0.8s linear infinite;
}

.rp-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.rp-clock-icon {
  font-size: 14px;
}

.rp-clock-text {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
}

.rp-hero {
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.rp-hero-eyebrow {
  color: #fbbf24;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.rp-hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.rp-hero-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.rp-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rp-hero-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 800;
}

.rp-hero-pill.success {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.10);
  border-color: rgba(34, 197, 94, 0.22);
}

.rp-hero-pill.warning {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.22);
}

.rp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.rp-kpi-card {
  position: relative;
  min-height: 130px;
  padding: 18px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease;
  text-decoration: none;
  cursor: pointer;
}

.rp-kpi-card:hover {
  transform: translateY(-3px);
  border-color: var(--rp-kpi-color, rgba(245, 158, 11, 0.32));
}

.rp-kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rp-kpi-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rp-kpi-bg, rgba(245, 158, 11, 0.12));
  font-size: 18px;
}

.rp-kpi-trend {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
}

.rp-kpi-trend.up { color: #4ade80; background: rgba(34, 197, 94, 0.12); }
.rp-kpi-trend.down { color: #f87171; background: rgba(239, 68, 68, 0.12); }
.rp-kpi-trend.flat { color: #94a3b8; background: rgba(148, 163, 184, 0.08); }

.rp-kpi-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  margin-top: 14px;
}

.rp-kpi-value {
  color: #f8fafc;
  font-size: 24px;
  font-weight: 950;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.rp-kpi-note {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

.rp-kpi-spark {
  position: absolute;
  bottom: 10px;
  left: 14px;
  right: 14px;
  height: 40px;
  opacity: 0.55;
}

.rp-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.rp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-tab:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #f8fafc;
}

.rp-tab.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.rp-tab-badge {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 0 5px;
}

.rp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rp-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.rp-panel {
  padding: 18px;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.rp-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.rp-panel-title {
  margin: 0;
  color: #f8fafc;
  font-size: 16px;
  font-weight: 900;
}

.rp-panel-sub {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.rp-panel-tag {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 900;
}

.rp-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #64748b;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
}

.rp-empty-icon { font-size: 36px; }

.rp-product-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.08);
  margin-bottom: 8px;
}

.rp-product-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-weight: 950;
  font-size: 12px;
}

.rp-product-name {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-product-meta {
  text-align: left;
}

.rp-product-revenue { color: #4ade80; font-size: 12px; font-weight: 900; }
.rp-product-qty { color: #64748b; font-size: 10px; font-weight: 700; margin-top: 2px; }

.rp-insight {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.rp-insight.success { background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.18); }
.rp-insight.warning { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.18); }
.rp-insight.danger { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.18); }
.rp-insight.info { background: rgba(59, 130, 246, 0.06); border-color: rgba(59, 130, 246, 0.18); }

.rp-insight-icon { font-size: 22px; line-height: 1; flex-shrink: 0; }
.rp-insight-title { color: #f8fafc; font-size: 13px; font-weight: 900; }
.rp-insight-desc { margin: 4px 0 0; color: #94a3b8; font-size: 11px; font-weight: 600; line-height: 1.7; }

.rp-feed-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-feed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18);
  margin-top: 6px;
  flex-shrink: 0;
}

.rp-feed-title { color: #f8fafc; font-size: 12px; font-weight: 800; }
.rp-feed-meta { color: #64748b; font-size: 10px; font-weight: 600; margin-top: 3px; }

.rp-factory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.rp-factory-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-factory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.24);
}

.rp-factory-head { display: flex; justify-content: space-between; align-items: center; }
.rp-factory-icon { font-size: 22px; }
.rp-factory-status { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.rp-factory-status.active { color: #4ade80; background: rgba(34, 197, 94, 0.10); }
.rp-factory-status.inactive { color: #f87171; background: rgba(239, 68, 68, 0.10); }
.rp-factory-name { color: #f8fafc; font-size: 13px; font-weight: 900; margin: 10px 0 0; }
.rp-factory-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.rp-factory-stat-label { color: #64748b; font-size: 10px; font-weight: 700; }
.rp-factory-stat-value { color: #f8fafc; font-size: 18px; font-weight: 950; }

.rp-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.rp-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
  text-decoration: none;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rp-quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.28);
}

.rp-quick-icon { font-size: 20px; }

.rp-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.rp-status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

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

.rp-fade-in { animation: rpFadeIn 0.35s ease-out; }

@keyframes rpFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rpSpin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
  .rp-grid-2, .rp-grid-3, .rp-grid-4 { grid-template-columns: 1fr; }
  .rp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .rp-dash-main { padding: 16px; }
  .rp-kpi-grid { grid-template-columns: 1fr; }
  .rp-topbar { flex-direction: column; align-items: stretch; }
  .rp-topbar-center { justify-content: center; flex-wrap: wrap; }
  .rp-topbar-actions { justify-content: center; }
  .rp-quick-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════
   Sidebar — Enterprise ERP Design (Oracle/Odoo/Dynamics/SAP Fusion)
   ═══════════════════════════════════════════════════════════════════ */

.rp-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1228 0%, #070b1a 100%);
  color: #e8edf5;
  padding: 16px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.25) transparent;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.rp-sidebar::-webkit-scrollbar { width: 4px; }
.rp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Collapsed ── */
.rp-sidebar-collapsed {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 16px 6px;
}

/* ── Brand ── */
.rp-sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-sidebar-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rp-brand-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  animation: rpBrandPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rpBrandPulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.rp-sidebar-brand-text h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.rp-sidebar-brand-text p {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(245, 158, 11, 0.8);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

/* ── Search ── */
.rp-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rp-search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  display: flex;
}

.rp-search-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  padding: 0 32px 0 32px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.rp-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-wrap.focused .rp-search-input {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.rp-search-clear {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.rp-search-clear:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Quick Search Results ── */
.rp-quick-results {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.03);
  overflow: hidden;
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rp-quick-result-item:last-child { border-bottom: none; }
.rp-quick-result-item:hover { background: rgba(245, 158, 11, 0.08); }

.rp-qr-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  flex-shrink: 0;
}

.rp-qr-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e8edf5;
}

.rp-qr-hint {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rp-qr-more {
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ── User Profile ── */
.rp-sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.rp-sidebar-profile:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
}

.rp-profile-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.rp-profile-status {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b1228;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rp-profile-info {
  flex: 1;
  min-width: 0;
}

.rp-profile-name {
  color: #e8edf5;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-profile-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.rp-profile-chevron {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  transition: transform 0.2s;
}

.rp-profile-chevron.open {
  transform: rotate(90deg);
  color: #fbbf24;
}

.rp-profile-expanded {
  margin: -4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-profile-exp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10px;
}

.rp-profile-exp-label { color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.rp-profile-exp-row strong { color: #fbbf24; font-weight: 800; }

/* ── Section Title ── */
.rp-sidebar-section-title {
  margin: 12px 0 6px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.rp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}

.rp-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 0;
  margin-right: 8px;
  border-right: 1.5px solid rgba(245, 158, 11, 0.08);
  animation: rpFadeSlide 0.18s ease-out;
  overflow-anchor: none;
}

@keyframes rpFadeSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Group Header ── */
.rp-nav-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.12);
}

.rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Nav Items ── */
.rp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-nav-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  font-weight: 800;
}

.rp-nav-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -12px;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rp-sidebar-collapsed .rp-nav-active::after {
  right: -6px;
}

/* ── Bullets ── */
.rp-nav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.5); }
.rp-nav-active .rp-nav-bullet {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.rp-nav-bullet-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet-child { background: rgba(245, 158, 11, 0.4); }
.rp-nav-active .rp-nav-bullet-child {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

/* ── Nav Text ── */
.rp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.rp-nav-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-nav-active .rp-nav-label {
  font-weight: 800;
}

.rp-nav-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.6); }

/* ── Active Bar ── */
.rp-nav-active-bar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

/* ── Chevron ── */
.rp-chevron {
  display: flex;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.rp-nav-group-head:hover .rp-chevron { color: rgba(255, 255, 255, 0.6); }
.rp-chevron.open { color: #fbbf24; }

/* ── Collapsed state ── */
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px;
  justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-bullet-child { display: none; }
.rp-sidebar-collapsed .rp-group-icon {
  width: 30px; height: 30px; font-size: 15px;
}

/* ── Empty State ── */
.rp-nav-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.4);
}

.rp-nav-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rp-nav-empty > div {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rp-nav-empty > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
.rp-sidebar-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.rp-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.rp-logout-icon {
  display: flex;
}

.rp-sidebar-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.rp-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ── Mobile ── */
.rp-mobile-menu-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.rp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1498;
  backdrop-filter: blur(3px);
  animation: rpFadeIn 0.18s ease-out;
}

@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 320px;
  height: 100vh;
  z-index: 1499;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  animation: rpSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rpSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-mobile-title {
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.rp-mobile-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 991px) {
  .rp-sidebar { display: none; }
  .erp-shell { display: block; }
  .erp-main, .rp-dash-main { padding-top: 80px; }
}

[data-theme="dark"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════
   Sidebar — Enterprise ERP Design (Oracle/Odoo/Dynamics/SAP Fusion)
   ═══════════════════════════════════════════════════════════════════ */

.rp-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1228 0%, #070b1a 100%);
  color: #e8edf5;
  padding: 16px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.25) transparent;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.rp-sidebar::-webkit-scrollbar { width: 4px; }
.rp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Collapsed ── */
.rp-sidebar-collapsed {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 16px 6px;
}

/* ── Brand ── */
.rp-sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-sidebar-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rp-brand-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  animation: rpBrandPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rpBrandPulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.rp-sidebar-brand-text h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.rp-sidebar-brand-text p {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(245, 158, 11, 0.8);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

/* ── Search ── */
.rp-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rp-search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  display: flex;
}

.rp-search-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  padding: 0 32px 0 32px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.rp-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-wrap.focused .rp-search-input {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.rp-search-clear {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.rp-search-clear:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Quick Search Results ── */
.rp-quick-results {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.03);
  overflow: hidden;
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rp-quick-result-item:last-child { border-bottom: none; }
.rp-quick-result-item:hover { background: rgba(245, 158, 11, 0.08); }

.rp-qr-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  flex-shrink: 0;
}

.rp-qr-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e8edf5;
}

.rp-qr-hint {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rp-qr-more {
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ── User Profile ── */
.rp-sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.rp-sidebar-profile:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
}

.rp-profile-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.rp-profile-status {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b1228;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rp-profile-info {
  flex: 1;
  min-width: 0;
}

.rp-profile-name {
  color: #e8edf5;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-profile-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.rp-profile-chevron {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  transition: transform 0.2s;
}

.rp-profile-chevron.open {
  transform: rotate(90deg);
  color: #fbbf24;
}

.rp-profile-expanded {
  margin: -4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-profile-exp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10px;
}

.rp-profile-exp-label { color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.rp-profile-exp-row strong { color: #fbbf24; font-weight: 800; }

/* ── Section Title ── */
.rp-sidebar-section-title {
  margin: 12px 0 6px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.rp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}

.rp-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 0;
  margin-right: 8px;
  border-right: 1.5px solid rgba(245, 158, 11, 0.08);
  animation: rpFadeSlide 0.18s ease-out;
  overflow-anchor: none;
}

@keyframes rpFadeSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Group Header ── */
.rp-nav-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.12);
}

.rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Nav Items ── */
.rp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-nav-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  font-weight: 800;
}

.rp-nav-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -12px;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rp-sidebar-collapsed .rp-nav-active::after {
  right: -6px;
}

/* ── Bullets ── */
.rp-nav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.5); }
.rp-nav-active .rp-nav-bullet {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.rp-nav-bullet-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet-child { background: rgba(245, 158, 11, 0.4); }
.rp-nav-active .rp-nav-bullet-child {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

/* ── Nav Text ── */
.rp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.rp-nav-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-nav-active .rp-nav-label {
  font-weight: 800;
}

.rp-nav-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.6); }

/* ── Active Bar ── */
.rp-nav-active-bar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

/* ── Chevron ── */
.rp-chevron {
  display: flex;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.rp-nav-group-head:hover .rp-chevron { color: rgba(255, 255, 255, 0.6); }
.rp-chevron.open { color: #fbbf24; }

/* ── Collapsed state ── */
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px;
  justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-bullet-child { display: none; }
.rp-sidebar-collapsed .rp-group-icon {
  width: 30px; height: 30px; font-size: 15px;
}

/* ── Empty State ── */
.rp-nav-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.4);
}

.rp-nav-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rp-nav-empty > div {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rp-nav-empty > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
.rp-sidebar-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.rp-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.rp-logout-icon {
  display: flex;
}

.rp-sidebar-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.rp-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ── Mobile ── */
.rp-mobile-menu-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.rp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1498;
  backdrop-filter: blur(3px);
  animation: rpFadeIn 0.18s ease-out;
}

@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 320px;
  height: 100vh;
  z-index: 1499;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  animation: rpSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rpSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-mobile-title {
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.rp-mobile-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 991px) {
  .rp-sidebar { display: none; }
  .erp-shell { display: block; }
  .erp-main, .rp-dash-main { padding-top: 80px; }
}

[data-theme="dark"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════
   Sidebar — Enterprise ERP Design (Oracle/Odoo/Dynamics/SAP Fusion)
   ═══════════════════════════════════════════════════════════════════ */

.rp-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1228 0%, #070b1a 100%);
  color: #e8edf5;
  padding: 16px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.25) transparent;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.rp-sidebar::-webkit-scrollbar { width: 4px; }
.rp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Collapsed ── */
.rp-sidebar-collapsed {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 16px 6px;
}

/* ── Brand ── */
.rp-sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-sidebar-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rp-brand-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  animation: rpBrandPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rpBrandPulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.rp-sidebar-brand-text h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.rp-sidebar-brand-text p {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(245, 158, 11, 0.8);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

/* ── Search ── */
.rp-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rp-search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  display: flex;
}

.rp-search-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  padding: 0 32px 0 32px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.rp-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-wrap.focused .rp-search-input {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.rp-search-clear {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.rp-search-clear:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Quick Search Results ── */
.rp-quick-results {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.03);
  overflow: hidden;
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rp-quick-result-item:last-child { border-bottom: none; }
.rp-quick-result-item:hover { background: rgba(245, 158, 11, 0.08); }

.rp-qr-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  flex-shrink: 0;
}

.rp-qr-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e8edf5;
}

.rp-qr-hint {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rp-qr-more {
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ── User Profile ── */
.rp-sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.rp-sidebar-profile:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
}

.rp-profile-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.rp-profile-status {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b1228;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rp-profile-info {
  flex: 1;
  min-width: 0;
}

.rp-profile-name {
  color: #e8edf5;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-profile-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.rp-profile-chevron {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  transition: transform 0.2s;
}

.rp-profile-chevron.open {
  transform: rotate(90deg);
  color: #fbbf24;
}

.rp-profile-expanded {
  margin: -4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-profile-exp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10px;
}

.rp-profile-exp-label { color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.rp-profile-exp-row strong { color: #fbbf24; font-weight: 800; }

/* ── Section Title ── */
.rp-sidebar-section-title {
  margin: 12px 0 6px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.rp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}

.rp-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 0;
  margin-right: 8px;
  border-right: 1.5px solid rgba(245, 158, 11, 0.08);
  animation: rpFadeSlide 0.18s ease-out;
  overflow-anchor: none;
}

@keyframes rpFadeSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Group Header ── */
.rp-nav-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.12);
}

.rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Nav Items ── */
.rp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-nav-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  font-weight: 800;
}

.rp-nav-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -12px;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rp-sidebar-collapsed .rp-nav-active::after {
  right: -6px;
}

/* ── Bullets ── */
.rp-nav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.5); }
.rp-nav-active .rp-nav-bullet {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.rp-nav-bullet-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet-child { background: rgba(245, 158, 11, 0.4); }
.rp-nav-active .rp-nav-bullet-child {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

/* ── Nav Text ── */
.rp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.rp-nav-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-nav-active .rp-nav-label {
  font-weight: 800;
}

.rp-nav-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.6); }

/* ── Active Bar ── */
.rp-nav-active-bar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

/* ── Chevron ── */
.rp-chevron {
  display: flex;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.rp-nav-group-head:hover .rp-chevron { color: rgba(255, 255, 255, 0.6); }
.rp-chevron.open { color: #fbbf24; }

/* ── Collapsed state ── */
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px;
  justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-bullet-child { display: none; }
.rp-sidebar-collapsed .rp-group-icon {
  width: 30px; height: 30px; font-size: 15px;
}

/* ── Empty State ── */
.rp-nav-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.4);
}

.rp-nav-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rp-nav-empty > div {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rp-nav-empty > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
.rp-sidebar-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.rp-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.rp-logout-icon {
  display: flex;
}

.rp-sidebar-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.rp-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ── Mobile ── */
.rp-mobile-menu-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.rp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1498;
  backdrop-filter: blur(3px);
  animation: rpFadeIn 0.18s ease-out;
}

@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 320px;
  height: 100vh;
  z-index: 1499;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  animation: rpSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rpSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-mobile-title {
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.rp-mobile-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 991px) {
  .rp-sidebar { display: none; }
  .erp-shell { display: block; }
  .erp-main, .rp-dash-main { padding-top: 80px; }
}

[data-theme="dark"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

[data-theme="light"] {
  --rp-bg: #f3f5f9;
  --rp-bg-soft: #eef2f7;
  --rp-surface: #ffffff;
  --rp-surface-2: #f8fafc;
  --rp-border: #dde5ef;
  --rp-border-strong: #cfd9e6;
  --rp-text: #0f172a;
  --rp-text-soft: #475569;
  --rp-text-muted: #64748b;
  --rp-navy-1: #08172f;
  --rp-navy-2: #0b1f4d;
  --rp-navy-3: #103a7a;
  --rp-gold: #c9a66b;
  --rp-gold-strong: #d6b47a;
  --rp-success: #15803d;
  --rp-success-bg: #e8f7ee;
  --rp-warning: #b45309;
  --rp-warning-bg: #fff4df;
  --rp-danger: #b91c1c;
  --rp-danger-bg: #fee2e2;
  --rp-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --rp-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] body,
[data-theme="light"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(201, 166, 107, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--rp-text);
}

[data-theme="light"] .erp-main {
  color: var(--rp-text);
}

[data-theme="light"] .erp-section-card,
[data-theme="light"] .erp-card,
[data-theme="light"] .erp-form-shell,
[data-theme="light"] .erp-metric-tile,
[data-theme="light"] .erp-workspace-topbar {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="light"] .erp-table th {
  background: var(--rp-surface-2);
  color: var(--rp-text-soft);
}

[data-theme="light"] .erp-table td {
  color: var(--rp-text);
}

[data-theme="light"] .erp-input,
[data-theme="light"] .erp-search {
  background: #ffffff;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

[data-theme="dark"] {
  --rp-bg: #070b14;
  --rp-bg-soft: #0c1224;
  --rp-surface: #0c1224;
  --rp-surface-2: #070b14;
  --rp-border: #1e293b;
  --rp-border-strong: #334155;
  --rp-text: #f8fafc;
  --rp-text-soft: #cbd5e1;
  --rp-text-muted: #64748b;
  --rp-navy-1: #070b14;
  --rp-navy-2: #0c1224;
  --rp-navy-3: #1e293b;
  --rp-gold: #fbbf24;
  --rp-gold-strong: #f59e0b;
  --rp-success: #34d399;
  --rp-success-bg: rgba(52, 211, 153, 0.1);
  --rp-warning: #fbbf24;
  --rp-warning-bg: rgba(251, 191, 36, 0.1);
  --rp-danger: #f87171;
  --rp-danger-bg: rgba(248, 113, 113, 0.1);
  --rp-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --rp-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body,
[data-theme="dark"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
  color: var(--rp-text);
}

[data-theme="dark"] .erp-main {
  color: var(--rp-text);
}

[data-theme="dark"] .erp-section-card,
[data-theme="dark"] .erp-card,
[data-theme="dark"] .erp-form-shell,
[data-theme="dark"] .erp-metric-tile,
[data-theme="dark"] .erp-workspace-topbar {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="dark"] .erp-input,
[data-theme="dark"] .erp-search {
  background: #070b14;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

[data-theme="light"] {
  --rp-bg: #f3f5f9;
  --rp-bg-soft: #eef2f7;
  --rp-surface: #ffffff;
  --rp-surface-2: #f8fafc;
  --rp-border: #dde5ef;
  --rp-border-strong: #cfd9e6;
  --rp-text: #0f172a;
  --rp-text-soft: #475569;
  --rp-text-muted: #64748b;
  --rp-navy-1: #08172f;
  --rp-navy-2: #0b1f4d;
  --rp-navy-3: #103a7a;
  --rp-gold: #c9a66b;
  --rp-gold-strong: #d6b47a;
  --rp-success: #15803d;
  --rp-success-bg: #e8f7ee;
  --rp-warning: #b45309;
  --rp-warning-bg: #fff4df;
  --rp-danger: #b91c1c;
  --rp-danger-bg: #fee2e2;
  --rp-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --rp-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] body,
[data-theme="light"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(201, 166, 107, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--rp-text);
}

[data-theme="light"] .erp-main {
  color: var(--rp-text);
}

[data-theme="light"] .erp-section-card,
[data-theme="light"] .erp-card,
[data-theme="light"] .erp-form-shell,
[data-theme="light"] .erp-metric-tile,
[data-theme="light"] .erp-workspace-topbar {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="light"] .erp-table th {
  background: var(--rp-surface-2);
  color: var(--rp-text-soft);
}

[data-theme="light"] .erp-table td {
  color: var(--rp-text);
}

[data-theme="light"] .erp-input,
[data-theme="light"] .erp-search {
  background: #ffffff;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

[data-theme="dark"] {
  --rp-bg: #070b14;
  --rp-bg-soft: #0c1224;
  --rp-surface: #0c1224;
  --rp-surface-2: #070b14;
  --rp-border: #1e293b;
  --rp-border-strong: #334155;
  --rp-text: #f8fafc;
  --rp-text-soft: #cbd5e1;
  --rp-text-muted: #64748b;
  --rp-navy-1: #070b14;
  --rp-navy-2: #0c1224;
  --rp-navy-3: #1e293b;
  --rp-gold: #fbbf24;
  --rp-gold-strong: #f59e0b;
  --rp-success: #34d399;
  --rp-success-bg: rgba(52, 211, 153, 0.1);
  --rp-warning: #fbbf24;
  --rp-warning-bg: rgba(251, 191, 36, 0.1);
  --rp-danger: #f87171;
  --rp-danger-bg: rgba(248, 113, 113, 0.1);
  --rp-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --rp-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] body,
[data-theme="dark"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
  color: var(--rp-text);
}

[data-theme="dark"] .erp-main {
  color: var(--rp-text);
}

[data-theme="dark"] .erp-section-card,
[data-theme="dark"] .erp-card,
[data-theme="dark"] .erp-form-shell,
[data-theme="dark"] .erp-metric-tile,
[data-theme="dark"] .erp-workspace-topbar {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="dark"] .erp-input,
[data-theme="dark"] .erp-search {
  background: #070b14;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

[data-theme="light"] {
  --rp-bg: #f3f5f9;
  --rp-bg-soft: #eef2f7;
  --rp-surface: #ffffff;
  --rp-surface-2: #f8fafc;
  --rp-border: #dde5ef;
  --rp-border-strong: #cfd9e6;
  --rp-text: #0f172a;
  --rp-text-soft: #475569;
  --rp-text-muted: #64748b;
  --rp-gold: #c9a66b;
  --rp-gold-strong: #d6b47a;
  --rp-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --rp-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] {
  --rp-bg: #070b14;
  --rp-bg-soft: #0c1224;
  --rp-surface: #0c1224;
  --rp-surface-2: #070b14;
  --rp-border: #1e293b;
  --rp-border-strong: #334155;
  --rp-text: #f8fafc;
  --rp-text-soft: #cbd5e1;
  --rp-text-muted: #64748b;
  --rp-gold: #fbbf24;
  --rp-gold-strong: #f59e0b;
  --rp-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --rp-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] body,
[data-theme="light"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(201, 166, 107, 0.08), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: var(--rp-text);
}

[data-theme="dark"] body,
[data-theme="dark"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
  color: var(--rp-text);
}

[data-theme="light"] .erp-main {
  color: var(--rp-text);
}

[data-theme="dark"] .erp-main {
  color: var(--rp-text);
}

[data-theme="light"] .erp-section-card,
[data-theme="light"] .erp-card,
[data-theme="light"] .erp-form-shell,
[data-theme="light"] .erp-metric-tile,
[data-theme="light"] .erp-workspace-topbar,
[data-theme="light"] .erp-table-shell {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="dark"] .erp-section-card,
[data-theme="dark"] .erp-card,
[data-theme="dark"] .erp-form-shell,
[data-theme="dark"] .erp-metric-tile,
[data-theme="dark"] .erp-workspace-topbar,
[data-theme="dark"] .erp-table-shell {
  background: var(--rp-surface);
  border-color: var(--rp-border);
  color: var(--rp-text);
}

[data-theme="light"] .erp-input,
[data-theme="light"] .erp-search,
[data-theme="light"] .erp-sidebar-search {
  background: #ffffff;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

[data-theme="dark"] .erp-input,
[data-theme="dark"] .erp-search,
[data-theme="dark"] .erp-sidebar-search {
  background: #070b14;
  color: var(--rp-text);
  border-color: var(--rp-border);
}

.erp-sidebar {
  transition: width 0.22s ease, min-width 0.22s ease, max-width 0.22s ease, padding 0.22s ease;
}

.erp-sidebar.is-collapsed {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
  padding: 18px 10px;
}

.erp-sidebar-top-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.erp-sidebar.is-collapsed .erp-sidebar-top-actions {
  justify-content: center;
}

.erp-sidebar-icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.10);
  color: var(--rp-gold);
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.erp-sidebar-icon-btn:hover {
  background: rgba(245, 158, 11, 0.18);
  transform: translateY(-1px);
}

.erp-sidebar.is-collapsed .erp-brand {
  justify-content: center;
}

.erp-sidebar.is-collapsed .erp-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.erp-theme-toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.20);
  background: rgba(245, 158, 11, 0.08);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  transition: 0.2s ease;
}

.erp-theme-toggle:hover {
  background: rgba(245, 158, 11, 0.15);
}

.erp-theme-toggle span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #070b14;
  font-weight: 900;
}

.erp-theme-toggle strong {
  font-size: 13px;
  color: #fff;
}

.erp-sidebar.is-collapsed .erp-theme-toggle {
  padding: 0;
}

.erp-sidebar-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.erp-sidebar-search {
  width: 100%;
  min-height: 42px;
  padding: 0 14px 0 38px;
  border-radius: 15px;
  outline: none;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.erp-sidebar-search:focus {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.erp-sidebar-search-wrap button {
  position: absolute;
  left: 8px;
  top: 7px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--rp-text-soft);
  cursor: pointer;
  font-weight: 900;
}

.erp-sidebar-empty {
  padding: 14px;
  border-radius: 16px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px dashed rgba(148, 163, 184, 0.16);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.erp-nav-item {
  position: relative;
}

.erp-nav-group-header {
  width: 100%;
  text-align: right;
  cursor: pointer;
}

.erp-nav-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(245, 158, 11, 0.10);
  color: var(--rp-gold);
  font-size: 14px;
  line-height: 1;
}

.erp-sidebar.is-collapsed .erp-nav {
  gap: 10px;
}

.erp-sidebar.is-collapsed .erp-nav-item {
  justify-content: center;
  padding: 10px;
  min-height: 48px;
}

.erp-sidebar.is-collapsed .erp-nav-icon {
  width: 34px;
  min-width: 34px;
  height: 34px;
}

.erp-sidebar.is-collapsed .erp-nav-group-children {
  display: none;
}

.erp-logout-btn {
  gap: 10px;
}

.erp-logout-btn span {
  font-size: 15px;
}

.erp-sidebar.is-collapsed .erp-sidebar-footer {
  margin-top: 16px;
  padding-top: 14px;
}

.erp-sidebar.is-collapsed .erp-logout-btn {
  height: 44px;
  padding: 0;
}

.erp-sidebar.is-collapsed .erp-logout-btn span {
  display: block;
}

[data-theme="light"] .erp-sidebar,
[data-theme="light"] .erp-mobile-sidebar {
  background:
    radial-gradient(circle at top right, rgba(201, 166, 107, 0.16), transparent 22%),
    linear-gradient(180deg, #08172f 0%, #0b1f4d 100%);
}

[data-theme="light"] .erp-theme-toggle strong,
[data-theme="light"] .erp-brand-text h2,
[data-theme="light"] .erp-nav-item-label,
[data-theme="light"] .erp-logout-btn {
  color: #ffffff;
}

@media (max-width: 991px) {
  .erp-sidebar.is-collapsed {
    width: 88vw;
    min-width: auto;
    max-width: 360px;
    padding: 22px 16px 18px;
  }
}

/* ============================================================
   Royal Palace - Full Theme Switch (Light / Dark)
   Default: Light Mode (everything light, sidebar white)
   Toggle: data-theme="dark" on <html> = full dark mode
   ============================================================ */

:root {
  --rp-bg-main: #f3f5f9;
  --rp-bg-soft: #eef2f7;
  --rp-surface-1: #ffffff;
  --rp-surface-2: #f8fafc;
  --rp-surface-3: #f1f5f9;
  --rp-text-1: #0f172a;
  --rp-text-2: #334155;
  --rp-text-3: #64748b;
  --rp-text-muted-l: #94a3b8;
  --rp-border-1: #e2e8f0;
  --rp-border-2: #cbd5e1;
  --rp-shadow-1: 0 8px 24px rgba(15, 23, 42, 0.06);
  --rp-shadow-2: 0 16px 40px rgba(15, 23, 42, 0.10);
  --rp-sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --rp-sidebar-text: #0f172a;
  --rp-sidebar-text-soft: #475569;
  --rp-sidebar-text-muted: #64748b;
  --rp-sidebar-border: #e2e8f0;
  --rp-sidebar-hover: rgba(245, 158, 11, 0.08);
  --rp-sidebar-active-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.06));
  --rp-sidebar-active-color: #b45309;
  --rp-input-bg: #ffffff;
  --rp-input-border: #cbd5e1;
  --rp-input-text: #0f172a;
}

html[data-theme="dark"] {
  --rp-bg-main: #050810;
  --rp-bg-soft: #0a0f1f;
  --rp-surface-1: #0c1224;
  --rp-surface-2: #0a1024;
  --rp-surface-3: #060916;
  --rp-text-1: #f8fafc;
  --rp-text-2: #cbd5e1;
  --rp-text-3: #94a3b8;
  --rp-text-muted-l: #64748b;
  --rp-border-1: rgba(255, 255, 255, 0.08);
  --rp-border-2: rgba(255, 255, 255, 0.14);
  --rp-shadow-1: 0 8px 24px rgba(0, 0, 0, 0.30);
  --rp-shadow-2: 0 16px 40px rgba(0, 0, 0, 0.45);
  --rp-sidebar-bg: linear-gradient(180deg, #0a1024 0%, #060916 100%);
  --rp-sidebar-text: #f1f5f9;
  --rp-sidebar-text-soft: rgba(255, 255, 255, 0.78);
  --rp-sidebar-text-muted: rgba(255, 255, 255, 0.45);
  --rp-sidebar-border: rgba(245, 158, 11, 0.10);
  --rp-sidebar-hover: rgba(255, 255, 255, 0.06);
  --rp-sidebar-active-bg: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(245, 158, 11, 0.06));
  --rp-sidebar-active-color: #fbbf24;
  --rp-input-bg: rgba(255, 255, 255, 0.04);
  --rp-input-border: rgba(255, 255, 255, 0.10);
  --rp-input-text: #f8fafc;
}

html, body {
  background: var(--rp-bg-main) !important;
  color: var(--rp-text-1) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.erp-shell, .rp-dash-shell {
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.06), transparent 26%),
    var(--rp-bg-main) !important;
  color: var(--rp-text-1) !important;
}

.rp-sidebar, .rp-sidebar-mobile {
  background: var(--rp-sidebar-bg) !important;
  color: var(--rp-sidebar-text) !important;
  border-left: 1px solid var(--rp-sidebar-border) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

html[data-theme="dark"] .rp-sidebar,
html[data-theme="dark"] .rp-sidebar-mobile {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
}

.rp-sidebar-brand,
.rp-mobile-head {
  border-bottom-color: var(--rp-sidebar-border) !important;
}

.rp-sidebar-brand-text h2 { color: var(--rp-sidebar-text) !important; }
.rp-sidebar-brand-text p { color: #d97706 !important; }

.rp-search-input {
  background: var(--rp-input-bg) !important;
  border-color: var(--rp-input-border) !important;
  color: var(--rp-input-text) !important;
}

.rp-search-input::-moz-placeholder { color: var(--rp-text-muted-l) !important; }

.rp-search-input::placeholder { color: var(--rp-text-muted-l) !important; }

.rp-search-icon { color: var(--rp-text-3) !important; }

.rp-search-wrap.focused .rp-search-input {
  background: rgba(245, 158, 11, 0.06) !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
}

.rp-sidebar-current {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.02)) !important;
  border-color: rgba(245, 158, 11, 0.20) !important;
}

.rp-sidebar-current-label { color: var(--rp-sidebar-text-muted) !important; }
.rp-sidebar-current-value { color: #d97706 !important; }
html[data-theme="dark"] .rp-sidebar-current-value { color: #fbbf24 !important; }

.rp-sidebar-profile {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
}

html[data-theme="dark"] .rp-sidebar-profile {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.rp-profile-name { color: var(--rp-sidebar-text) !important; }
.rp-profile-key { color: var(--rp-sidebar-text-muted) !important; }
.rp-profile-row strong { color: #d97706 !important; }
html[data-theme="dark"] .rp-profile-row strong { color: #fbbf24 !important; }

.rp-profile-status { border-color: var(--rp-surface-1) !important; }
html[data-theme="dark"] .rp-profile-status { border-color: #0a1024 !important; }

.rp-theme-toggle {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
  color: var(--rp-text-1) !important;
}

html[data-theme="dark"] .rp-theme-toggle {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

.rp-theme-toggle:hover {
  background: rgba(245, 158, 11, 0.10) !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
  color: #d97706 !important;
}

html[data-theme="dark"] .rp-theme-toggle:hover { color: #fbbf24 !important; }

.rp-sidebar-section-title { color: var(--rp-sidebar-text-muted) !important; }

.rp-nav-item,
.rp-nav-group-head {
  color: var(--rp-sidebar-text-soft) !important;
}

.rp-nav-item:hover,
.rp-nav-group-head:hover {
  background: var(--rp-sidebar-hover) !important;
  color: var(--rp-sidebar-text) !important;
}

.rp-nav-active {
  background: var(--rp-sidebar-active-bg) !important;
  color: var(--rp-sidebar-active-color) !important;
  border-color: rgba(245, 158, 11, 0.34) !important;
}

.rp-nav-label { color: inherit !important; }
.rp-nav-hint { color: var(--rp-sidebar-text-muted) !important; }
.rp-nav-active .rp-nav-hint { color: rgba(180, 83, 9, 0.85) !important; }
html[data-theme="dark"] .rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.7) !important; }

.rp-nav-bullet { background: var(--rp-text-muted-l) !important; }
.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.6) !important; }
.rp-nav-active .rp-nav-bullet { background: #f59e0b !important; }

.rp-group-icon {
  background: var(--rp-surface-3) !important;
}

html[data-theme="dark"] .rp-group-icon {
  background: rgba(255, 255, 255, 0.05) !important;
}

.rp-group-open .rp-group-icon { background: rgba(245, 158, 11, 0.14) !important; }

.rp-chevron { color: var(--rp-text-3) !important; }
.rp-chevron.open { color: #d97706 !important; }
html[data-theme="dark"] .rp-chevron.open { color: #fbbf24 !important; }

.rp-nav-group-body { border-right-color: rgba(245, 158, 11, 0.18) !important; }

.rp-sidebar-footer { border-top-color: var(--rp-sidebar-border) !important; }

.rp-sidebar-version { color: var(--rp-text-muted-l) !important; }

.rp-mobile-title { color: #d97706 !important; }
html[data-theme="dark"] .rp-mobile-title { color: #fbbf24 !important; }

/* ============================================================
   Dashboard Pro - Light Mode adjustments
   ============================================================ */
.rp-topbar,
.rp-hero,
.rp-panel,
.rp-kpi-card,
.rp-factory-card,
.rp-status-bar {
  background: var(--rp-surface-1) !important;
  border-color: var(--rp-border-1) !important;
  box-shadow: var(--rp-shadow-1) !important;
}

html[data-theme="dark"] .rp-topbar,
html[data-theme="dark"] .rp-status-bar {
  background: rgba(12, 18, 36, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .rp-hero {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(59, 130, 246, 0.08)),
    linear-gradient(135deg, #0c1224 0%, #070b14 100%) !important;
  border-color: rgba(245, 158, 11, 0.16) !important;
}

html[data-theme="dark"] .rp-panel,
html[data-theme="dark"] .rp-kpi-card,
html[data-theme="dark"] .rp-factory-card {
  background: linear-gradient(135deg, rgba(12, 18, 36, 0.92) 0%, rgba(10, 15, 31, 0.92) 100%) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32) !important;
}

.rp-topbar-title { color: var(--rp-text-1) !important; }
.rp-topbar-sub { color: var(--rp-text-3) !important; }

.rp-period-btn { color: var(--rp-text-3) !important; }
.rp-period-btn:hover { color: var(--rp-text-1) !important; background: var(--rp-surface-3) !important; }
.rp-period-btn.active { color: #050810 !important; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; }

.rp-topbar-center {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
}

html[data-theme="dark"] .rp-topbar-center {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

.rp-icon-btn {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
  color: var(--rp-text-1) !important;
}

html[data-theme="dark"] .rp-icon-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

.rp-icon-btn:hover {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
}

.rp-clock {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(245, 158, 11, 0.20) !important;
}

.rp-clock-time { color: #d97706 !important; }
html[data-theme="dark"] .rp-clock-time { color: #fbbf24 !important; }
.rp-clock-date { color: var(--rp-text-3) !important; }

.rp-hero-title { color: var(--rp-text-1) !important; }
html[data-theme="dark"] .rp-hero-title { color: #f8fafc !important; }
.rp-hero-subtitle { color: var(--rp-text-2) !important; }
html[data-theme="dark"] .rp-hero-subtitle { color: #cbd5e1 !important; }
.rp-hero-eyebrow { color: #d97706 !important; }
html[data-theme="dark"] .rp-hero-eyebrow { color: #fbbf24 !important; }

.rp-hero-pill {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
  color: var(--rp-text-1) !important;
}

html[data-theme="dark"] .rp-hero-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
  color: #f8fafc !important;
}

.rp-panel-title { color: var(--rp-text-1) !important; }
.rp-panel-sub { color: var(--rp-text-3) !important; }

.rp-kpi-label { color: var(--rp-text-3) !important; }
.rp-kpi-value { color: var(--rp-text-1) !important; }
.rp-kpi-note { color: var(--rp-text-muted-l) !important; }

html[data-theme="dark"] .rp-kpi-value { color: #f8fafc !important; }

.rp-factory-name { color: var(--rp-text-1) !important; }
html[data-theme="dark"] .rp-factory-name { color: #f8fafc !important; }
.rp-factory-stat {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
}
html[data-theme="dark"] .rp-factory-stat {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}
.rp-factory-stat-label { color: var(--rp-text-3) !important; }
.rp-factory-stat-value { color: var(--rp-text-1) !important; }
html[data-theme="dark"] .rp-factory-stat-value { color: #f8fafc !important; }

.rp-product-row {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
}
html[data-theme="dark"] .rp-product-row {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}
.rp-product-name { color: var(--rp-text-1) !important; }
html[data-theme="dark"] .rp-product-name { color: #f8fafc !important; }

.rp-insight,
.rp-feed-item {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
}
html[data-theme="dark"] .rp-insight,
html[data-theme="dark"] .rp-feed-item {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}
.rp-insight-title,
.rp-feed-title { color: var(--rp-text-1) !important; }
html[data-theme="dark"] .rp-insight-title,
html[data-theme="dark"] .rp-feed-title { color: #f8fafc !important; }
.rp-insight-desc { color: var(--rp-text-3) !important; }
.rp-feed-meta { color: var(--rp-text-muted-l) !important; }

.rp-tabs {
  background: var(--rp-surface-1) !important;
  border-color: var(--rp-border-1) !important;
}
html[data-theme="dark"] .rp-tabs {
  background: rgba(12, 18, 36, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}
.rp-tab { color: var(--rp-text-3) !important; }
.rp-tab:hover { color: var(--rp-text-1) !important; background: var(--rp-surface-3) !important; }
.rp-tab.active { color: #050810 !important; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; }

.rp-quick-link {
  background: var(--rp-surface-2) !important;
  border-color: var(--rp-border-1) !important;
  color: var(--rp-text-1) !important;
}
html[data-theme="dark"] .rp-quick-link {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}
.rp-quick-link:hover {
  background: rgba(245, 158, 11, 0.10) !important;
  border-color: rgba(245, 158, 11, 0.32) !important;
  color: #d97706 !important;
}
html[data-theme="dark"] .rp-quick-link:hover { color: #fbbf24 !important; }

.rp-status-item { color: var(--rp-text-3) !important; }

/* Tables in light mode */
.erp-table th {
  background: var(--rp-surface-2) !important;
  color: var(--rp-text-2) !important;
}
.erp-table td { color: var(--rp-text-1) !important; }
.erp-table th, .erp-table td { border-bottom-color: var(--rp-border-1) !important; }
.erp-table-shell { border-color: var(--rp-border-1) !important; }
html[data-theme="dark"] .erp-table th {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #cbd5e1 !important;
}
html[data-theme="dark"] .erp-table td { color: #f8fafc !important; }
html[data-theme="dark"] .erp-table th,
html[data-theme="dark"] .erp-table td,
html[data-theme="dark"] .erp-table-shell { border-color: rgba(255, 255, 255, 0.08) !important; }

/* Form inputs */
.erp-input, .erp-search {
  background: var(--rp-input-bg) !important;
  border-color: var(--rp-input-border) !important;
  color: var(--rp-input-text) !important;
}

/* Section cards generic */
.erp-section-card, .erp-card, .erp-form-shell {
  background: var(--rp-surface-1) !important;
  border-color: var(--rp-border-1) !important;
  color: var(--rp-text-1) !important;
  box-shadow: var(--rp-shadow-1) !important;
}
html[data-theme="dark"] .erp-section-card,
html[data-theme="dark"] .erp-card,
html[data-theme="dark"] .erp-form-shell {
  background: linear-gradient(135deg, rgba(12, 18, 36, 0.92) 0%, rgba(10, 15, 31, 0.92) 100%) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #f8fafc !important;
}

:root,
[data-theme="light"],
[data-theme="dark"] {
  --rp-bg: #070b14;
  --rp-bg-soft: #0c1224;
  --rp-surface: #0c1224;
  --rp-surface-2: #070b14;
  --rp-border: #1e293b;
  --rp-border-strong: #334155;
  --rp-text: #f8fafc;
  --rp-text-soft: #cbd5e1;
  --rp-text-muted: #64748b;
  --rp-gold: #fbbf24;
  --rp-gold-strong: #f59e0b;
  --rp-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  --rp-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.3);
}

html,
body,
[data-theme="light"] body,
[data-theme="dark"] body,
[data-theme="light"] .erp-shell,
[data-theme="dark"] .erp-shell {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%) !important;
  color: var(--rp-text) !important;
}

.erp-theme-toggle {
  display: none !important;
}

.erp-nav-icon svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.erp-nav-item.active .erp-nav-icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(245, 158, 11, 0.08));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.erp-nav-group-header .erp-nav-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.erp-sidebar.is-collapsed .erp-nav-icon svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════════════════
   Sidebar — Enterprise ERP Design (Oracle/Odoo/Dynamics/SAP Fusion)
   ═══════════════════════════════════════════════════════════════════ */

.rp-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1228 0%, #070b1a 100%);
  color: #e8edf5;
  padding: 16px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.25) transparent;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.rp-sidebar::-webkit-scrollbar { width: 4px; }
.rp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Collapsed ── */
.rp-sidebar-collapsed {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 16px 6px;
}

/* ── Brand ── */
.rp-sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-sidebar-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rp-brand-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  animation: rpBrandPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rpBrandPulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.rp-sidebar-brand-text h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.rp-sidebar-brand-text p {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(245, 158, 11, 0.8);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

/* ── Search ── */
.rp-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rp-search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  display: flex;
}

.rp-search-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  padding: 0 32px 0 32px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.rp-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-wrap.focused .rp-search-input {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.rp-search-clear {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.rp-search-clear:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Quick Search Results ── */
.rp-quick-results {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.03);
  overflow: hidden;
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rp-quick-result-item:last-child { border-bottom: none; }
.rp-quick-result-item:hover { background: rgba(245, 158, 11, 0.08); }

.rp-qr-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  flex-shrink: 0;
}

.rp-qr-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e8edf5;
}

.rp-qr-hint {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rp-qr-more {
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ── User Profile ── */
.rp-sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.rp-sidebar-profile:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
}

.rp-profile-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.rp-profile-status {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b1228;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rp-profile-info {
  flex: 1;
  min-width: 0;
}

.rp-profile-name {
  color: #e8edf5;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-profile-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.rp-profile-chevron {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  transition: transform 0.2s;
}

.rp-profile-chevron.open {
  transform: rotate(90deg);
  color: #fbbf24;
}

.rp-profile-expanded {
  margin: -4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-profile-exp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10px;
}

.rp-profile-exp-label { color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.rp-profile-exp-row strong { color: #fbbf24; font-weight: 800; }

/* ── Section Title ── */
.rp-sidebar-section-title {
  margin: 12px 0 6px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.rp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}

.rp-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 0;
  margin-right: 8px;
  border-right: 1.5px solid rgba(245, 158, 11, 0.08);
  animation: rpFadeSlide 0.18s ease-out;
  overflow-anchor: none;
}

@keyframes rpFadeSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Group Header ── */
.rp-nav-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.12);
}

.rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Nav Items ── */
.rp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-nav-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  font-weight: 800;
}

.rp-nav-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -12px;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rp-sidebar-collapsed .rp-nav-active::after {
  right: -6px;
}

/* ── Bullets ── */
.rp-nav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.5); }
.rp-nav-active .rp-nav-bullet {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.rp-nav-bullet-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet-child { background: rgba(245, 158, 11, 0.4); }
.rp-nav-active .rp-nav-bullet-child {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

/* ── Nav Text ── */
.rp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.rp-nav-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-nav-active .rp-nav-label {
  font-weight: 800;
}

.rp-nav-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.6); }

/* ── Active Bar ── */
.rp-nav-active-bar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

/* ── Chevron ── */
.rp-chevron {
  display: flex;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.rp-nav-group-head:hover .rp-chevron { color: rgba(255, 255, 255, 0.6); }
.rp-chevron.open { color: #fbbf24; }

/* ── Collapsed state ── */
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px;
  justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-bullet-child { display: none; }
.rp-sidebar-collapsed .rp-group-icon {
  width: 30px; height: 30px; font-size: 15px;
}

/* ── Empty State ── */
.rp-nav-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.4);
}

.rp-nav-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rp-nav-empty > div {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rp-nav-empty > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
.rp-sidebar-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.rp-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.rp-logout-icon {
  display: flex;
}

.rp-sidebar-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.rp-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ── Mobile ── */
.rp-mobile-menu-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.rp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1498;
  backdrop-filter: blur(3px);
  animation: rpFadeIn 0.18s ease-out;
}

@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 320px;
  height: 100vh;
  z-index: 1499;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  animation: rpSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rpSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-mobile-title {
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.rp-mobile-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 991px) {
  .rp-sidebar { display: none; }
  .erp-shell { display: block; }
  .erp-main, .rp-dash-main { padding-top: 80px; }
}

[data-theme="dark"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

/* ═══════════════════════════════════════════════════════════════════
   Sidebar — Enterprise ERP Design (Oracle/Odoo/Dynamics/SAP Fusion)
   ═══════════════════════════════════════════════════════════════════ */

.rp-sidebar {
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 0% 20%, rgba(245, 158, 11, 0.08), transparent 40%),
    linear-gradient(180deg, #0b1228 0%, #070b1a 100%);
  color: #e8edf5;
  padding: 16px 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  border-left: 1px solid rgba(245, 158, 11, 0.08);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-anchor: none;
  scroll-behavior: auto;
  box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.25) transparent;
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10;
}

.rp-sidebar::-webkit-scrollbar { width: 4px; }
.rp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}
.rp-sidebar::-webkit-scrollbar-track { background: transparent; }

/* ── Collapsed ── */
.rp-sidebar-collapsed {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  padding: 16px 6px;
}

/* ── Brand ── */
.rp-sidebar-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rp-sidebar-brand-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.rp-brand-pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  opacity: 0;
  animation: rpBrandPulse 2.8s ease-out infinite;
  pointer-events: none;
}

@keyframes rpBrandPulse {
  0% { opacity: 0.6; transform: scale(0.96); }
  100% { opacity: 0; transform: scale(1.15); }
}

.rp-sidebar-brand-text {
  flex: 1;
  min-width: 0;
}

.rp-sidebar-brand-text h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #f1f5f9;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.rp-sidebar-brand-text p {
  margin: 2px 0 0;
  font-size: 9px;
  color: rgba(245, 158, 11, 0.8);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-collapse-btn {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid rgba(245, 158, 11, 0.15);
  background: rgba(245, 158, 11, 0.06);
  color: #fbbf24;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.rp-collapse-btn:hover {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.rp-sidebar-collapsed .rp-collapse-btn {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
}

/* ── Search ── */
.rp-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.rp-search-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  display: flex;
}

.rp-search-input {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #e8edf5;
  padding: 0 32px 0 32px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  transition: all 0.2s ease;
}

.rp-search-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 10px;
}

.rp-search-wrap.focused .rp-search-input {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.08);
}

.rp-search-clear {
  position: absolute;
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #e8edf5;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.rp-search-clear:hover { background: rgba(239, 68, 68, 0.25); }

/* ── Quick Search Results ── */
.rp-quick-results {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  background: rgba(245, 158, 11, 0.03);
  overflow: hidden;
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.12s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.rp-quick-result-item:last-child { border-bottom: none; }
.rp-quick-result-item:hover { background: rgba(245, 158, 11, 0.08); }

.rp-qr-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  flex-shrink: 0;
}

.rp-qr-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #e8edf5;
}

.rp-qr-hint {
  display: block;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.rp-qr-more {
  padding: 8px 10px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

/* ── User Profile ── */
.rp-sidebar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
}

.rp-sidebar-profile:hover {
  background: rgba(245, 158, 11, 0.04);
  border-color: rgba(245, 158, 11, 0.12);
}

.rp-profile-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.rp-profile-status {
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0b1228;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.rp-profile-info {
  flex: 1;
  min-width: 0;
}

.rp-profile-name {
  color: #e8edf5;
  font-size: 11px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-profile-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  font-weight: 700;
  margin-top: 1px;
}

.rp-profile-chevron {
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  transition: transform 0.2s;
}

.rp-profile-chevron.open {
  transform: rotate(90deg);
  color: #fbbf24;
}

.rp-profile-expanded {
  margin: -4px 0 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: rpFadeSlide 0.15s ease-out;
}

.rp-profile-exp-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
  font-size: 10px;
}

.rp-profile-exp-label { color: rgba(255, 255, 255, 0.45); font-weight: 700; }
.rp-profile-exp-row strong { color: #fbbf24; font-weight: 800; }

/* ── Section Title ── */
.rp-sidebar-section-title {
  margin: 12px 0 6px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Navigation ── */
.rp-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rp-nav-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-bottom: 2px;
}

.rp-nav-group-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 2px 0 4px 0;
  margin-right: 8px;
  border-right: 1.5px solid rgba(245, 158, 11, 0.08);
  animation: rpFadeSlide 0.18s ease-out;
  overflow-anchor: none;
}

@keyframes rpFadeSlide {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Group Header ── */
.rp-nav-group-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.rp-nav-group-head:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-group-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-group-head:hover .rp-group-icon {
  background: rgba(245, 158, 11, 0.12);
}

.rp-group-open .rp-group-icon {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Nav Items ── */
.rp-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.rp-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #e8edf5;
}

.rp-nav-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(245, 158, 11, 0.03)) !important;
  border-color: rgba(245, 158, 11, 0.2) !important;
  color: #fbbf24 !important;
  font-weight: 800;
}

.rp-nav-active::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: -12px;
  width: 2.5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.rp-sidebar-collapsed .rp-nav-active::after {
  right: -6px;
}

/* ── Bullets ── */
.rp-nav-bullet {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet { background: rgba(245, 158, 11, 0.5); }
.rp-nav-active .rp-nav-bullet {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.rp-nav-bullet-child {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: all 0.15s;
}

.rp-nav-item:hover .rp-nav-bullet-child { background: rgba(245, 158, 11, 0.4); }
.rp-nav-active .rp-nav-bullet-child {
  background: #fbbf24;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}

/* ── Nav Text ── */
.rp-nav-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.rp-nav-label {
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rp-nav-active .rp-nav-label {
  font-weight: 800;
}

.rp-nav-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.rp-nav-active .rp-nav-hint { color: rgba(251, 191, 36, 0.6); }

/* ── Active Bar ── */
.rp-nav-active-bar {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.7);
  flex-shrink: 0;
}

/* ── Chevron ── */
.rp-chevron {
  display: flex;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.rp-nav-group-head:hover .rp-chevron { color: rgba(255, 255, 255, 0.6); }
.rp-chevron.open { color: #fbbf24; }

/* ── Collapsed state ── */
.rp-sidebar-collapsed .rp-nav-item,
.rp-sidebar-collapsed .rp-nav-group-head {
  padding: 8px;
  justify-content: center;
}

.rp-sidebar-collapsed .rp-nav-bullet,
.rp-sidebar-collapsed .rp-nav-bullet-child { display: none; }
.rp-sidebar-collapsed .rp-group-icon {
  width: 30px; height: 30px; font-size: 15px;
}

/* ── Empty State ── */
.rp-nav-empty {
  text-align: center;
  padding: 24px 12px;
  color: rgba(255, 255, 255, 0.4);
}

.rp-nav-empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.3;
}

.rp-nav-empty > div {
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.rp-nav-empty > span {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Footer ── */
.rp-sidebar-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rp-logout-btn {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  background: rgba(239, 68, 68, 0.05);
  color: #f87171;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.rp-logout-btn:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
}

.rp-logout-icon {
  display: flex;
}

.rp-sidebar-version {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.rp-status-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.15);
}

/* ── Mobile ── */
.rp-mobile-menu-btn {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1400;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.28);
}

.rp-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.5);
  z-index: 1498;
  backdrop-filter: blur(3px);
  animation: rpFadeIn 0.18s ease-out;
}

@keyframes rpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rp-sidebar-mobile {
  position: fixed;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 320px;
  height: 100vh;
  z-index: 1499;
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
  animation: rpSlideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes rpSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.rp-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-mobile-title {
  font-size: 14px;
  font-weight: 900;
  color: #fbbf24;
}

.rp-mobile-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 991px) {
  .rp-sidebar { display: none; }
  .erp-shell { display: block; }
  .erp-main, .rp-dash-main { padding-top: 80px; }
}

[data-theme="dark"] {
  --rp-bg: #0a1024;
  --rp-surface: #0c1224;
  --rp-text: #f8fafc;
  --rp-border: rgba(245, 158, 11, 0.12);
}

.rp-crm-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #f8fafc;
}

.rp-crm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.rp-crm-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-crm-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.8px;
}

.rp-crm-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.rp-crm-hero-side {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 22px;
  background: rgba(7, 11, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rp-crm-hero-side strong {
  color: #fbbf24;
  font-size: 30px;
  font-weight: 950;
}

.rp-crm-hero-side span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.rp-crm-message {
  padding: 12px 14px;
  border-radius: 14px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.20);
  font-size: 13px;
  font-weight: 800;
}

.rp-crm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rp-crm-search {
  position: relative;
  flex: 1;
}

.rp-crm-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 11, 20, 0.68);
  color: #f8fafc;
  outline: none;
  font-size: 13px;
  font-weight: 700;
}

.rp-crm-search input:focus {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.rp-crm-search button {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.rp-crm-toolbar > button,
.rp-crm-form button,
.rp-crm-export button {
  min-height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.rp-crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.rp-crm-kpi {
  position: relative;
  min-height: 136px;
  padding: 18px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.rp-crm-kpi-glow {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  opacity: 0.12;
  background: currentColor;
}

.rp-crm-kpi span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.rp-crm-kpi strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
}

.rp-crm-kpi small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.rp-crm-kpi.gold { color: #f59e0b; }
.rp-crm-kpi.blue { color: #60a5fa; }
.rp-crm-kpi.green { color: #34d399; }
.rp-crm-kpi.red { color: #f87171; }
.rp-crm-kpi.purple { color: #a78bfa; }
.rp-crm-kpi.cyan { color: #22d3ee; }

.rp-crm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-crm-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.rp-crm-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.rp-crm-tabs button.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.rp-crm-grid {
  display: grid;
  gap: 18px;
}

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

.rp-crm-grid.two.compact {
  gap: 12px;
}

.rp-crm-panel {
  padding: 18px;
  border-radius: 22px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.rp-crm-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.rp-crm-panel h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 950;
}

.rp-crm-panel p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.rp-crm-export {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rp-crm-export button {
  min-height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-crm-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rp-crm-form textarea,
.rp-crm-form button {
  grid-column: 1 / -1;
}

.rp-crm-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 11, 20, 0.70);
  color: #f8fafc;
  outline: none;
  font-size: 12px;
  font-weight: 700;
}

.rp-crm-input:focus {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.rp-crm-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rp-crm-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.rp-crm-table th,
.rp-crm-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  text-align: right;
  font-size: 12px;
}

.rp-crm-table th {
  background: rgba(7, 11, 20, 0.7);
  color: #94a3b8;
  font-weight: 950;
}

.rp-crm-table td {
  color: #cbd5e1;
  font-weight: 700;
}

.rp-crm-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--badge-color);
  background: color-mix(in srgb, var(--badge-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color) 24%, transparent);
  font-size: 10px;
  font-weight: 900;
}

.rp-crm-priority {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.rp-crm-priority.high { color: #f87171; background: rgba(239, 68, 68, 0.10); }
.rp-crm-priority.medium { color: #fbbf24; background: rgba(245, 158, 11, 0.10); }
.rp-crm-priority.low { color: #60a5fa; background: rgba(59, 130, 246, 0.10); }

.rp-crm-danger,
.rp-crm-open,
.rp-crm-done {
  min-height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.rp-crm-danger { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.rp-crm-open { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.rp-crm-done { background: rgba(34, 197, 94, 0.12); color: #34d399; }

.rp-crm-mini-bars {
  display: grid;
  gap: 12px;
}

.rp-crm-mini-bar-label {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.rp-crm-mini-bar-label b {
  color: #f8fafc;
}

.rp-crm-mini-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.rp-crm-mini-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.rp-crm-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.08);
  margin-bottom: 8px;
}

.rp-crm-list-row strong {
  display: block;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.rp-crm-list-row span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.rp-crm-list-row b {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 950;
}

.rp-crm-kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(260px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.rp-crm-kanban-col {
  min-height: 420px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rp-crm-kanban-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--stage-color);
}

.rp-crm-kanban-head strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}

.rp-crm-kanban-head span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--stage-color) 18%, transparent);
  color: var(--stage-color);
  font-size: 12px;
  font-weight: 950;
}

.rp-crm-kanban-value {
  margin: 10px 0;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.rp-crm-kanban-list {
  display: grid;
  gap: 10px;
}

.rp-crm-kanban-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.rp-crm-kanban-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.rp-crm-kanban-card strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.rp-crm-kanban-card p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.6;
}

.rp-crm-kanban-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
}

.rp-crm-kanban-card-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rp-crm-kanban-card-actions button {
  min-height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.rp-crm-kanban-card-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rp-crm-note-grid {
  display: grid;
  gap: 10px;
}

.rp-crm-note {
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.rp-crm-note > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.rp-crm-note button {
  border: none;
  background: transparent;
  color: #f87171;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.rp-crm-note strong {
  display: block;
  margin-top: 10px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}

.rp-crm-note p {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 12px;
}

.rp-crm-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
  overflow-x: auto;
}

.rp-crm-day {
  min-height: 110px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.rp-crm-day strong {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 950;
}

.rp-crm-day span {
  display: block;
  margin-top: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.16);
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-crm-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #64748b;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1500px) {
  .rp-crm-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .rp-crm-hero,
  .rp-crm-grid.two,
  .rp-crm-grid.two.compact {
    grid-template-columns: 1fr;
  }

  .rp-crm-kanban {
    grid-template-columns: repeat(6, 280px);
  }
}

@media (max-width: 760px) {
  .rp-crm-kpi-grid,
  .rp-crm-form {
    grid-template-columns: 1fr;
  }

  .rp-crm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .rp-crm-calendar {
    grid-template-columns: repeat(7, 110px);
  }
}

.rp-inv-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #f8fafc;
}

.rp-inv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr);
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.rp-inv-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-inv-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.8px;
}

.rp-inv-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.rp-inv-hero-value {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 22px;
  background: rgba(7, 11, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rp-inv-hero-value strong {
  color: #fbbf24;
  font-size: 30px;
  font-weight: 950;
}

.rp-inv-hero-value span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.rp-inv-message {
  padding: 12px 14px;
  border-radius: 14px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.20);
  font-size: 13px;
  font-weight: 800;
}

.rp-inv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(12, 18, 36, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
  margin-bottom: 14px;
}

.rp-inv-search {
  position: relative;
  flex: 1;
}

.rp-inv-search input {
  width: 100%;
  min-height: 40px;
  padding: 0 14px 0 44px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 11, 20, 0.68);
  color: #f8fafc;
  outline: none;
  font-size: 13px;
  font-weight: 700;
}

.rp-inv-search input:focus {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.rp-inv-search button {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.rp-inv-toolbar > button,
.rp-inv-form button,
.rp-inv-export button {
  min-height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.rp-inv-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.rp-inv-kpi {
  position: relative;
  min-height: 100px;
  padding: 14px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.rp-inv-kpi i {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  opacity: 0.10;
  background: currentColor;
}

.rp-inv-kpi span {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 900;
}

.rp-inv-kpi strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.rp-inv-kpi small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.rp-inv-kpi.gold { color: #f59e0b; }
.rp-inv-kpi.blue { color: #60a5fa; }
.rp-inv-kpi.green { color: #34d399; }
.rp-inv-kpi.red { color: #f87171; }
.rp-inv-kpi.purple { color: #a78bfa; }
.rp-inv-kpi.cyan { color: #22d3ee; }

.rp-inv-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-inv-tabs button {
  padding: 10px 16px;
  border: none;
  background: rgba(255,255,255,0.03);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.rp-inv-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.rp-inv-tabs button.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.rp-inv-grid {
  display: grid;
  gap: 18px;
}

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

.rp-inv-panel {
  padding: 16px;
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  margin-bottom: 14px;
}

.rp-inv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rp-inv-item-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 100px 120px 90px;
  gap: 10px;
  align-items: end;
}

.rp-inv-panel h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 14px;
  font-weight: 900;
}

.rp-inv-panel p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.rp-inv-export {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rp-inv-export button {
  min-height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-inv-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rp-inv-form textarea,
.rp-inv-form button {
  grid-column: 1 / -1;
}

.rp-inv-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 11, 20, 0.70);
  color: #f8fafc;
  outline: none;
  font-size: 13px;
  font-weight: 700;
}

.rp-inv-input:focus {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.rp-inv-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rp-inv-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.rp-inv-table th,
.rp-inv-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  text-align: right;
  font-size: 12px;
}

.rp-inv-table th {
  background: rgba(7, 11, 20, 0.7);
  color: #94a3b8;
  font-weight: 950;
}

.rp-inv-table td {
  color: #cbd5e1;
  font-weight: 700;
}

.rp-inv-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.rp-inv-badge.good { color: #34d399; background: rgba(34, 197, 94, 0.10); }
.rp-inv-badge.warn { color: #fbbf24; background: rgba(245, 158, 11, 0.10); }
.rp-inv-badge.danger { color: #f87171; background: rgba(239, 68, 68, 0.10); }
.rp-inv-badge.muted { color: #94a3b8; background: rgba(148, 163, 184, 0.10); }

.rp-inv-danger {
  min-height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.rp-inv-feed {
  display: grid;
  gap: 10px;
}

.rp-inv-feed-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.rp-inv-feed-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.rp-inv-feed-row i.good { background: #34d399; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.10); }
.rp-inv-feed-row i.warn { background: #fbbf24; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10); }
.rp-inv-feed-row i.danger { background: #f87171; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10); }
.rp-inv-feed-row i.muted { background: #94a3b8; }

.rp-inv-feed-row strong {
  display: block;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.rp-inv-feed-row span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.rp-inv-feed-row b {
  color: #fbbf24;
  font-size: 11px;
  font-weight: 950;
}

.rp-inv-ledger-select {
  max-width: 420px;
  margin-bottom: 14px;
}

.rp-inv-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #64748b;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1500px) {
  .rp-inv-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .rp-inv-hero,
  .rp-inv-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .rp-inv-kpi-grid,
  .rp-inv-form {
    grid-template-columns: 1fr;
  }

  .rp-inv-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.rp-inv-check {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.rp-inv-check input {
  width: 16px;
  height: 16px;
  accent-color: #f59e0b;
}

.rp-inv-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.rp-inv-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.rp-inv-small {
  padding: 4px 8px;
  font-size: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
}

.rp-inv-small:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rp-inv-badge.mono {
  font-family: monospace;
}

.rp-crm-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #f8fafc;
}

.rp-crm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.6fr);
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.rp-crm-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.20);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rp-crm-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.8px;
}

.rp-crm-hero p {
  margin: 12px 0 0;
  max-width: 760px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.9;
}

.rp-crm-hero-value {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 22px;
  background: rgba(7, 11, 20, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.rp-crm-hero-value strong {
  color: #fbbf24;
  font-size: 30px;
  font-weight: 950;
}

.rp-crm-hero-value span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.rp-crm-message {
  padding: 12px 14px;
  border-radius: 14px;
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.20);
  font-size: 13px;
  font-weight: 800;
}

.rp-crm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(12, 18, 36, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rp-crm-search {
  position: relative;
  flex: 1;
}

.rp-crm-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 11, 20, 0.68);
  color: #f8fafc;
  outline: none;
  font-size: 13px;
  font-weight: 700;
}

.rp-crm-search input:focus {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.rp-crm-search button {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.rp-crm-toolbar > button,
.rp-crm-form button,
.rp-crm-export button {
  min-height: 42px;
  padding: 0 14px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.rp-crm-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.rp-crm-kpi {
  position: relative;
  min-height: 136px;
  padding: 18px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.rp-crm-kpi i {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  opacity: 0.12;
  background: currentColor;
}

.rp-crm-kpi span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
}

.rp-crm-kpi strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
}

.rp-crm-kpi small {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.rp-crm-kpi.gold { color: #f59e0b; }
.rp-crm-kpi.blue { color: #60a5fa; }
.rp-crm-kpi.green { color: #34d399; }
.rp-crm-kpi.red { color: #f87171; }
.rp-crm-kpi.purple { color: #a78bfa; }
.rp-crm-kpi.cyan { color: #22d3ee; }

.rp-crm-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-crm-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.rp-crm-tabs button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.rp-crm-tabs button.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}

.rp-crm-grid {
  display: grid;
  gap: 18px;
}

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

.rp-crm-grid.two.compact {
  gap: 12px;
}

.rp-crm-panel {
  padding: 18px;
  border-radius: 22px;
  background: rgba(12, 18, 36, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.rp-crm-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.rp-crm-panel h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 17px;
  font-weight: 950;
}

.rp-crm-panel p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.rp-crm-export {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rp-crm-export button {
  min-height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-crm-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rp-crm-form textarea,
.rp-crm-form button {
  grid-column: 1 / -1;
}

.rp-crm-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 13px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(7, 11, 20, 0.70);
  color: #f8fafc;
  outline: none;
  font-size: 12px;
  font-weight: 700;
}

.rp-crm-input:focus {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.rp-crm-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rp-crm-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.rp-crm-table th,
.rp-crm-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  text-align: right;
  font-size: 12px;
}

.rp-crm-table th {
  background: rgba(7, 11, 20, 0.7);
  color: #94a3b8;
  font-weight: 950;
}

.rp-crm-table td {
  color: #cbd5e1;
  font-weight: 700;
}

.rp-crm-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.rp-crm-badge.good { color: #34d399; background: rgba(34, 197, 94, 0.10); }
.rp-crm-badge.warn { color: #fbbf24; background: rgba(245, 158, 11, 0.10); }
.rp-crm-badge.danger { color: #f87171; background: rgba(239, 68, 68, 0.10); }
.rp-crm-badge.muted { color: #94a3b8; background: rgba(148, 163, 184, 0.10); }

.rp-crm-priority {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.rp-crm-priority.high { color: #f87171; background: rgba(239, 68, 68, 0.10); }
.rp-crm-priority.medium { color: #fbbf24; background: rgba(245, 158, 11, 0.10); }
.rp-crm-priority.low { color: #60a5fa; background: rgba(59, 130, 246, 0.10); }

.rp-crm-danger,
.rp-crm-open,
.rp-crm-done {
  min-height: 30px;
  padding: 0 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.rp-crm-danger { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.rp-crm-open { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.rp-crm-done { background: rgba(34, 197, 94, 0.12); color: #34d399; }

.rp-crm-mini-bars {
  display: grid;
  gap: 12px;
}

.rp-crm-mini-bar-label {
  display: flex;
  justify-content: space-between;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.rp-crm-mini-bar-label b {
  color: #f8fafc;
}

.rp-crm-mini-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.rp-crm-mini-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.rp-crm-list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.08);
  margin-bottom: 8px;
}

.rp-crm-list-row strong {
  display: block;
  color: #f8fafc;
  font-size: 12px;
  font-weight: 900;
}

.rp-crm-list-row span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.rp-crm-list-row b {
  color: #fbbf24;
  font-size: 12px;
  font-weight: 950;
}

.rp-crm-kanban {
  display: grid;
  grid-template-columns: repeat(6, minmax(260px, 1fr));
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.rp-crm-kanban-col {
  min-height: 420px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rp-crm-kanban-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--stage-color);
}

.rp-crm-kanban-head strong {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}

.rp-crm-kanban-head span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--stage-color) 18%, transparent);
  color: var(--stage-color);
  font-size: 12px;
  font-weight: 950;
}

.rp-crm-kanban-value {
  margin: 10px 0;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
}

.rp-crm-kanban-list {
  display: grid;
  gap: 10px;
}

.rp-crm-kanban-card {
  padding: 12px;
  border-radius: 16px;
  background: rgba(12, 18, 36, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.rp-crm-kanban-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.rp-crm-kanban-card strong {
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.rp-crm-kanban-card p {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.6;
}

.rp-crm-kanban-card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
}

.rp-crm-kanban-card-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rp-crm-kanban-card-actions button {
  min-height: 25px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.rp-crm-kanban-card-actions button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rp-crm-note-grid {
  display: grid;
  gap: 10px;
}

.rp-crm-note {
  padding: 14px;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.rp-crm-note > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.rp-crm-note button {
  border: none;
  background: transparent;
  color: #f87171;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.rp-crm-note strong {
  display: block;
  margin-top: 10px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
}

.rp-crm-note p {
  color: #94a3b8;
  line-height: 1.8;
  font-size: 12px;
}

.rp-crm-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #64748b;
  border-radius: 16px;
  background: rgba(7, 11, 20, 0.45);
  border: 1px dashed rgba(148, 163, 184, 0.18);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1500px) {
  .rp-crm-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1200px) {
  .rp-crm-hero,
  .rp-crm-grid.two,
  .rp-crm-grid.two.compact {
    grid-template-columns: 1fr;
  }

  .rp-crm-kanban {
    grid-template-columns: repeat(6, 280px);
  }
}

@media (max-width: 760px) {
  .rp-crm-kpi-grid,
  .rp-crm-form {
    grid-template-columns: 1fr;
  }

  .rp-crm-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ========== Royal Palace Auth & Login - Premium UI ========== */
.rp-auth-loading-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.20), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(59, 130, 246, 0.12), transparent 28%),
    linear-gradient(135deg, #050810 0%, #0a1024 50%, #050810 100%);
  overflow: hidden;
}

.rp-auth-loading-bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.rp-auth-loading-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 440px);
  padding: 40px 30px;
  border-radius: 28px;
  background: rgba(12, 18, 36, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  backdrop-filter: blur(20px);
}

.rp-auth-loading-mark {
  position: relative;
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.35);
}

.rp-auth-loading-pulse {
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-radius: 24px;
  animation: rpAuthPulseRing 2s ease-out infinite;
}

@keyframes rpAuthPulseRing {
  0% { opacity: 1; transform: scale(0.95); }
  100% { opacity: 0; transform: scale(1.4); }
}

.rp-auth-loading-eyebrow {
  margin-bottom: 8px;
  color: #fbbf24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rp-auth-loading-title {
  margin: 0;
  color: #f8fafc;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.4;
}

.rp-auth-loading-sub {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.rp-auth-loading-spinner {
  width: 38px;
  height: 38px;
  margin: 22px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, 0.18);
  border-top-color: #f59e0b;
  animation: rpAuthSpin 0.8s linear infinite;
}

@keyframes rpAuthSpin {
  to { transform: rotate(360deg); }
}

/* ========== LOGIN PAGE - Royal Glassmorphism ========== */
.rp-login-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, 0.15), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.10), transparent 40%),
    linear-gradient(135deg, #050810 0%, #0a1024 50%, #060916 100%);
  overflow: hidden;
}

.rp-login-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.rp-login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: rpOrbFloat 20s ease-in-out infinite;
}

.rp-login-orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  background: radial-gradient(circle, #f59e0b, transparent);
}

.rp-login-orb-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: radial-gradient(circle, #d97706, transparent);
  animation-delay: -7s;
}

.rp-login-orb-3 {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  background: radial-gradient(circle, #3b82f6, transparent);
  animation-delay: -14s;
  opacity: 0.2;
}

@keyframes rpOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.rp-login-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
}

.rp-login-container {
  position: relative;
  z-index: 2;
  width: min(96vw, 1100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  padding: 14px;
  border-radius: 30px;
  background: rgba(12, 18, 36, 0.5);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
}

/* Brand Side */
.rp-login-brand-side {
  position: relative;
  padding: 40px 30px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(7, 11, 20, 0.95), rgba(12, 18, 36, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.12);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}

.rp-login-brand-logo {
  display: flex;
  justify-content: center;
}

.rp-login-brand-mark {
  position: relative;
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -1px;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35);
}

.rp-login-brand-pulse {
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 30px;
  animation: rpAuthPulseRing 2s ease-out infinite;
}

.rp-login-brand-title {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -1px;
}

.rp-login-brand-subtitle {
  margin: -10px 0 0;
  text-align: center;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.rp-login-brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  margin-bottom: auto;
}

.rp-login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.rp-login-feature:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  transform: translateX(-4px);
}

.rp-login-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  font-size: 20px;
  flex-shrink: 0;
}

.rp-login-feature strong {
  display: block;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 2px;
}

.rp-login-feature span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}

.rp-login-brand-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

/* Form Side */
.rp-login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-login-form-card {
  width: 100%;
  padding: 30px;
}

.rp-login-form-head {
  margin-bottom: 24px;
}

.rp-login-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rp-login-form-head h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.rp-login-form-head p {
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
}

.rp-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rp-login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rp-login-field label {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.rp-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rp-login-input-icon {
  position: absolute;
  right: 14px;
  font-size: 16px;
  pointer-events: none;
  opacity: 0.7;
}

.rp-login-input-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 0 44px 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(7, 11, 20, 0.6);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  transition: all 0.2s ease;
}

.rp-login-input-wrap input::-moz-placeholder {
  color: rgba(148, 163, 184, 0.4);
  font-weight: 500;
}

.rp-login-input-wrap input::placeholder {
  color: rgba(148, 163, 184, 0.4);
  font-weight: 500;
}

.rp-login-input-wrap input:focus {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(7, 11, 20, 0.85);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.10);
}

.rp-login-toggle-pwd {
  position: absolute;
  left: 8px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.rp-login-toggle-pwd:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rp-login-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 700;
  animation: rpErrorShake 0.4s ease-in-out;
}

.rp-login-error span {
  font-size: 18px;
  flex-shrink: 0;
}

.rp-login-error p {
  margin: 0;
  line-height: 1.6;
}

@keyframes rpErrorShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.rp-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 8px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050810;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.30);
  transition: all 0.25s ease;
}

.rp-login-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.40);
}

.rp-login-submit:active:not(:disabled) {
  transform: translateY(0);
}

.rp-login-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.rp-login-spinner-mini {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(5, 8, 16, 0.2);
  border-top-color: #050810;
  animation: rpAuthSpin 0.7s linear infinite;
}

.rp-login-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.rp-login-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rp-login-meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  animation: rpDotPulseLogin 2s ease-in-out infinite;
}

@keyframes rpDotPulseLogin {
  50% { opacity: 0.4; }
}

.rp-login-register-link {
  color: #fbbf24;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: opacity 0.15s;
}
.rp-login-register-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

@media (max-width: 920px) {
  .rp-login-container {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 20px;
    padding: 10px;
  }

  .rp-login-brand-side {
    padding: 20px;
  }

  .rp-login-brand-features {
    display: none;
  }

  .rp-login-form-card {
    padding: 20px;
  }

  .rp-login-brand-logo {
    margin-bottom: 8px;
  }

  .rp-login-brand-mark {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .rp-login-brand-title {
    font-size: 20px;
  }

  .rp-login-brand-subtitle {
    font-size: 11px;
  }

  .rp-login-brand-footer {
    font-size: 9px;
  }

  .rp-login-field label {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .rp-login-shell {
    padding: 10px;
  }

  .rp-login-container {
    width: 100%;
    max-width: 100%;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
  }

  .rp-login-brand-side {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .rp-login-brand-logo {
    margin-bottom: 6px;
  }

  .rp-login-brand-mark {
    width: 40px;
    height: 40px;
    font-size: 15px;
    border-radius: 14px;
  }

  .rp-login-brand-pulse {
    inset: -4px;
    border-radius: 16px;
  }

  .rp-login-brand-title {
    font-size: 17px;
    margin-bottom: 2px;
  }

  .rp-login-brand-subtitle {
    font-size: 10px;
  }

  .rp-login-brand-footer {
    padding-top: 10px;
    font-size: 8px;
    flex-direction: column;
    gap: 2px;
  }

  .rp-login-form-card {
    padding: 16px 14px;
  }

  .rp-login-form-head {
    margin-bottom: 16px;
  }

  .rp-login-form-head h2 {
    font-size: 20px;
  }

  .rp-login-form-head p {
    font-size: 12px;
  }

  .rp-login-eyebrow {
    font-size: 9px;
    padding: 4px 10px;
  }

  .rp-login-field {
    margin-bottom: 12px;
  }

  .rp-login-field label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .rp-login-input-wrap {
    border-radius: 12px;
  }

  .rp-login-input-wrap input {
    height: 44px;
    font-size: 13px;
  }

  .rp-login-input-icon {
    width: 18px;
    font-size: 14px;
  }

  .rp-login-submit {
    min-height: 46px;
    font-size: 13px;
    border-radius: 12px;
  }

  .rp-login-meta {
    font-size: 10px;
  }
}

/* ========== Trading Dashboard - Glass Grid UI ========== */

.td-shell {
  display: flex;
  min-height: 100vh;
  background: #020610;
  color: #f8fafc;
  direction: rtl;
}

.td-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 24px;
  overflow-x: hidden;
}

/* Ticker */
.td-ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(4, 9, 20, 0.95);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  padding: 0;
  height: 36px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.td-ticker-track {
  display: flex;
  gap: 0;
  animation: td-ticker-scroll 45s linear infinite;
  white-space: nowrap;
}

@keyframes td-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.td-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
}

.td-ticker-label {
  color: #475569;
}

.td-ticker-value {
  color: #f8fafc;
  font-family: monospace;
}

.td-ticker-value.up { color: #22c55e; }
.td-ticker-value.down { color: #ef4444; }
.td-ticker-value.flat { color: #f8fafc; }

.td-ticker-arrow {
  font-size: 9px;
}

.td-ticker-arrow.up { color: #22c55e; }
.td-ticker-arrow.down { color: #ef4444; }

/* Command Bar */
.td-command-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-top: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(12, 20, 44, 0.92), rgba(6, 10, 24, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.td-command-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.td-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}

.td-brand-name {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.td-brand-sub {
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.td-command-center {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.td-period-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.td-period-btn:hover {
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.td-period-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.40);
  color: #fbbf24;
}

.td-command-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-server-time {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  color: #22c55e;
  letter-spacing: 0.04em;
}

.td-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  animation: rpDotPulse 1.8s ease-in-out infinite;
}

.td-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 11, 20, 0.72);
  color: #475569;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.18s ease;
}

.td-action-btn svg {
  width: 15px;
  height: 15px;
}

.td-action-btn:hover {
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.td-action-btn.spinning svg {
  animation: rpSpin 0.8s linear infinite;
}

/* Hero */
.td-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at 8% 12%, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(10, 16, 36, 0.98), rgba(4, 8, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.td-hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.td-hero-content {
  position: relative;
  z-index: 1;
}

.td-hero-kicker {
  color: rgba(245, 158, 11, 0.80);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.td-hero-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -0.5px;
}

.td-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.td-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.td-pill.live {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.18);
}

.td-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: rpDotPulse 1.8s ease-in-out infinite;
}

.td-pill.warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

.td-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 20px;
}

.td-hero-stat {}

.td-hero-stat-label {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.td-hero-stat-value {
  font-size: 18px;
  font-weight: 950;
  font-family: monospace;
  letter-spacing: -0.5px;
}

.td-hero-stat-value.gold { color: #fbbf24; }
.td-hero-stat-value.green { color: #22c55e; }
.td-hero-stat-value.red { color: #ef4444; }
.td-hero-stat-value.cyan { color: #06b6d4; }

.td-hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
}

/* KPI Grid */
.td-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.td-kpi {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 16px;
  background: rgba(8, 14, 32, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.22s ease, transform 0.22s ease;
  text-decoration: none;
  cursor: pointer;
}

.td-kpi:hover {
  border-color: rgba(245, 158, 11, 0.22);
  transform: translateY(-2px);
}

.td-kpi-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: inherit;
}

.td-kpi-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.7;
  pointer-events: none;
}

.td-kpi-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.td-kpi-label {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.td-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
}

.td-kpi-badge.up { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.td-kpi-badge.down { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.td-kpi-value {
  position: relative;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 950;
  font-family: monospace;
  letter-spacing: -0.8px;
  margin-bottom: 3px;
  line-height: 1.1;
}

.td-kpi-note {
  color: #334155;
  font-size: 9px;
  font-weight: 800;
}

.td-kpi-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.td-kpi-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.7;
  animation: rpDotPulse 2.5s ease-in-out infinite;
}

/* Tabs */
.td-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.td-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.18s ease;
}

.td-tab:hover { color: #94a3b8; }

.td-tab.active {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.td-tab-badge {
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  padding: 0 4px;
}

/* Glass Panels */
.td-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background: rgba(6, 10, 24, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.td-panel:hover {
  border-color: rgba(255, 255, 255, 0.10);
}

.td-panel-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: inherit;
}

.td-panel-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.td-panel-label {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 950;
}

.td-panel-sub {
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}

.td-panel-tag {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

/* Grid layouts */
.td-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.td-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* Product Row */
.td-product-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
}

.td-product-rank {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-size: 10px;
  font-weight: 950;
}

.td-product-name {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-product-qty {
  color: #334155;
  font-size: 10px;
  margin-top: 2px;
}

.td-product-rev {
  color: #22c55e;
  font-size: 11px;
  font-weight: 950;
  font-family: monospace;
  text-align: left;
}

.td-product-rev span {
  font-size: 9px;
  color: #334155;
  margin-right: 2px;
}

/* Insights */
.td-insight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 7px;
  border: 1px solid transparent;
}

.td-insight.success { background: rgba(34, 197, 94, 0.05); border-color: rgba(34, 197, 94, 0.12); }
.td-insight.warning { background: rgba(245, 158, 11, 0.05); border-color: rgba(245, 158, 11, 0.12); }
.td-insight.danger { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.12); }
.td-insight.info { background: rgba(59, 130, 246, 0.05); border-color: rgba(59, 130, 246, 0.12); }

.td-insight-icon {
  font-size: 14px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  color: #f8fafc;
  font-family: monospace;
}

.td-insight-title { color: #f8fafc; font-size: 12px; font-weight: 900; }
.td-insight-desc { color: #475569; font-size: 11px; font-weight: 700; margin-top: 2px; }

/* Feed */
.td-feed-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.td-feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.td-feed-dot.danger { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.td-feed-dot.green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }

.td-feed-title { color: #f8fafc; font-size: 11px; font-weight: 800; }
.td-feed-meta { color: #334155; font-size: 10px; margin-top: 2px; }

/* Finance */
.td-fin-row {
  padding: 10px;
  border-radius: 10px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 5px;
}

.td-fin-label { color: #475569; font-size: 10px; font-weight: 800; }
.td-fin-value { font-size: 18px; font-weight: 950; font-family: monospace; }
.td-fin-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.td-fin-bar div { height: 100%; border-radius: inherit; }

/* Factory */
.td-factory-grid { display: grid; gap: 10px; }

.td-factory-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.td-factory-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.td-factory-name { color: #f8fafc; font-size: 12px; font-weight: 900; }

.td-factory-status {
  font-size: 9px;
  font-weight: 950;
  padding: 3px 8px;
  border-radius: 999px;
}

.td-factory-status.active { color: #22c55e; background: rgba(34, 197, 94, 0.10); }
.td-factory-status.inactive { color: #ef4444; background: rgba(239, 68, 68, 0.10); }

.td-factory-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.td-factory-stats div { text-align: center; }
.td-factory-stats span { color: #334155; font-size: 9px; font-weight: 700; display: block; }
.td-factory-stats b { color: #f8fafc; font-size: 16px; font-weight: 950; }

/* Stats Grid */
.td-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.td-stat-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.td-stat-label { color: #334155; font-size: 10px; font-weight: 800; margin-bottom: 5px; }
.td-stat-value { font-size: 20px; font-weight: 950; font-family: monospace; }

/* Quick Grid */
.td-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.td-quick-btn {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.18s ease;
}

.td-quick-btn:hover {
  border-color: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.05);
}

/* Status Bar */
.td-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 8px;
}

.td-status-left {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.td-status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #334155;
}

.td-status-item.gray { color: #1e293b; }

.td-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.td-status-dot.green { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18); }

.td-status-right {
  color: #1e293b;
  font-size: 10px;
  font-weight: 800;
  font-family: monospace;
}

/* Empty */
.td-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
}

/* Loading */
.td-loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #020610;
  padding: 24px;
}

.td-loading-card {
  text-align: center;
  max-width: 380px;
}

.td-loading-logo {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.24);
}

.td-loading-eyebrow {
  color: rgba(245, 158, 11, 0.80);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.td-loading-title {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 18px;
}

.td-loading-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.td-loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: inherit;
  animation: td-progress 1.6s ease-in-out infinite;
}

@keyframes td-progress {
  0% { width: 0%; margin-left: 0; }
  50% { width: 70%; }
  100% { width: 0%; margin-left: 100%; }
}

/* Responsive */
@media (max-width: 1400px) {
  .td-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1100px) {
  .td-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .td-grid-2, .td-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .td-main { padding: 0 12px 20px; }
  .td-kpi-grid { grid-template-columns: 1fr; }
  .td-command-bar { grid-template-columns: 1fr; }
  .td-hero { flex-direction: column; }
}

/* ========== Dashboard Trading - Charts Glass Grid ONLY ========== */

.td-kpi-mesh,
.td-panel-mesh,
.td-hero-mesh {
  display: none !important;
}

.td-kpi {
  background: rgba(10, 16, 34, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 18px !important;
}

.td-kpi:hover {
  border-color: rgba(245, 158, 11, 0.18) !important;
}

.td-panel {
  background: rgba(8, 13, 28, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.td-hero {
  background:
    radial-gradient(circle at 8% 12%, rgba(245, 158, 11, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(10, 16, 36, 0.98), rgba(4, 8, 20, 0.98)) !important;
}

.td-chart-glass-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(4, 8, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.td-chart-glass-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
}

.td-chart-glass-wrap .recharts-wrapper,
.td-chart-glass-wrap > div {
  position: relative;
  z-index: 2;
}

.td-kpi-spark {
  height: 36px;
  width: 100%;
}

.td-kpi-spark .recharts-surface {
  overflow: visible;
}

.recharts-cartesian-axis-tick text {
  fill: #334155 !important;
  font-size: 10px !important;
}

.recharts-cartesian-grid-horizontal line,
.recharts-cartesian-grid-vertical line {
  stroke: rgba(255, 255, 255, 0.04) !important;
  stroke-dasharray: none !important;
}

.recharts-curve.recharts-area-curve {
  stroke-width: 1.5px !important;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.25));
}

.recharts-area-area {
  opacity: 0.18 !important;
}

.recharts-line-curve {
  stroke-width: 1.5px !important;
  filter: drop-shadow(0 0 5px currentColor);
}

.recharts-bar-rectangle path {
  opacity: 0.72 !important;
  rx: 4 !important;
}

.recharts-tooltip-wrapper {
  z-index: 999 !important;
}

.recharts-legend-wrapper {
  font-size: 10px !important;
}

/* ========== Trading Dashboard - Glass Grid UI ========== */

.td-shell {
  display: flex;
  min-height: 100vh;
  background: #020610;
  color: #f8fafc;
  direction: rtl;
}

.td-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 20px 24px;
  overflow-x: hidden;
}

/* Ticker */
.td-ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(4, 9, 20, 0.95);
  border-bottom: 1px solid rgba(245, 158, 11, 0.12);
  padding: 0;
  height: 36px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.td-ticker-track {
  display: flex;
  gap: 0;
  animation: td-ticker-scroll 45s linear infinite;
  white-space: nowrap;
}

@keyframes td-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.td-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
}

.td-ticker-label {
  color: #475569;
}

.td-ticker-value {
  color: #f8fafc;
  font-family: monospace;
}

.td-ticker-value.up { color: #22c55e; }
.td-ticker-value.down { color: #ef4444; }
.td-ticker-value.flat { color: #f8fafc; }

.td-ticker-arrow {
  font-size: 9px;
}

.td-ticker-arrow.up { color: #22c55e; }
.td-ticker-arrow.down { color: #ef4444; }

/* Command Bar */
.td-command-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  margin-top: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(12, 20, 44, 0.92), rgba(6, 10, 24, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.td-command-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.td-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}

.td-brand-name {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.td-brand-sub {
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.td-command-center {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.td-period-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.18s ease;
}

.td-period-btn:hover {
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.td-period-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(245, 158, 11, 0.08));
  border-color: rgba(245, 158, 11, 0.40);
  color: #fbbf24;
}

.td-command-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-server-time {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
  color: #22c55e;
  letter-spacing: 0.04em;
}

.td-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
  animation: rpDotPulse 1.8s ease-in-out infinite;
}

.td-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 11, 20, 0.72);
  color: #475569;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.18s ease;
}

.td-action-btn svg {
  width: 15px;
  height: 15px;
}

.td-action-btn:hover {
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.td-action-btn.spinning svg {
  animation: rpSpin 0.8s linear infinite;
}

/* Hero */
.td-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(circle at 8% 12%, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(10, 16, 36, 0.98), rgba(4, 8, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.16);
}

.td-hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.td-hero-content {
  position: relative;
  z-index: 1;
}

.td-hero-kicker {
  color: rgba(245, 158, 11, 0.80);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.td-hero-title {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 950;
  letter-spacing: -0.5px;
}

.td-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.td-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.td-pill.live {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.18);
}

.td-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: rpDotPulse 1.8s ease-in-out infinite;
}

.td-pill.warn {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

.td-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px 20px;
}

.td-hero-stat {}

.td-hero-stat-label {
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.td-hero-stat-value {
  font-size: 18px;
  font-weight: 950;
  font-family: monospace;
  letter-spacing: -0.5px;
}

.td-hero-stat-value.gold { color: #fbbf24; }
.td-hero-stat-value.green { color: #22c55e; }
.td-hero-stat-value.red { color: #ef4444; }
.td-hero-stat-value.cyan { color: #06b6d4; }

.td-hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
}

/* KPI Grid */
.td-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.td-kpi {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 16px;
  background: rgba(8, 14, 32, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.22s ease, transform 0.22s ease;
  text-decoration: none;
  cursor: pointer;
}

.td-kpi:hover {
  border-color: rgba(245, 158, 11, 0.22);
  transform: translateY(-2px);
}

.td-kpi-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 22px 22px;
  border-radius: inherit;
}

.td-kpi-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  filter: blur(24px);
  opacity: 0.7;
  pointer-events: none;
}

.td-kpi-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}

.td-kpi-label {
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.td-kpi-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
}

.td-kpi-badge.up { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.td-kpi-badge.down { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.td-kpi-value {
  position: relative;
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 950;
  font-family: monospace;
  letter-spacing: -0.8px;
  margin-bottom: 3px;
  line-height: 1.1;
}

.td-kpi-note {
  color: #334155;
  font-size: 9px;
  font-weight: 800;
}

.td-kpi-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.td-kpi-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.7;
  animation: rpDotPulse 2.5s ease-in-out infinite;
}

/* Tabs */
.td-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.td-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.18s ease;
}

.td-tab:hover { color: #94a3b8; }

.td-tab.active {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

.td-tab-badge {
  min-width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 950;
  padding: 0 4px;
}

/* Glass Panels */
.td-panel {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 18px;
  background: rgba(6, 10, 24, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.td-panel:hover {
  border-color: rgba(255, 255, 255, 0.10);
}

.td-panel-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  border-radius: inherit;
}

.td-panel-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.td-panel-label {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 950;
}

.td-panel-sub {
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}

.td-panel-tag {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

/* Grid layouts */
.td-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.td-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* Product Row */
.td-product-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
}

.td-product-rank {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-size: 10px;
  font-weight: 950;
}

.td-product-name {
  color: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.td-product-qty {
  color: #334155;
  font-size: 10px;
  margin-top: 2px;
}

.td-product-rev {
  color: #22c55e;
  font-size: 11px;
  font-weight: 950;
  font-family: monospace;
  text-align: left;
}

.td-product-rev span {
  font-size: 9px;
  color: #334155;
  margin-right: 2px;
}

/* Insights */
.td-insight {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 7px;
  border: 1px solid transparent;
}

.td-insight.success { background: rgba(34, 197, 94, 0.05); border-color: rgba(34, 197, 94, 0.12); }
.td-insight.warning { background: rgba(245, 158, 11, 0.05); border-color: rgba(245, 158, 11, 0.12); }
.td-insight.danger { background: rgba(239, 68, 68, 0.05); border-color: rgba(239, 68, 68, 0.12); }
.td-insight.info { background: rgba(59, 130, 246, 0.05); border-color: rgba(59, 130, 246, 0.12); }

.td-insight-icon {
  font-size: 14px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  color: #f8fafc;
  font-family: monospace;
}

.td-insight-title { color: #f8fafc; font-size: 12px; font-weight: 900; }
.td-insight-desc { color: #475569; font-size: 11px; font-weight: 700; margin-top: 2px; }

/* Feed */
.td-feed-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.td-feed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.td-feed-dot.danger { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.td-feed-dot.green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }

.td-feed-title { color: #f8fafc; font-size: 11px; font-weight: 800; }
.td-feed-meta { color: #334155; font-size: 10px; margin-top: 2px; }

/* Finance */
.td-fin-row {
  padding: 10px;
  border-radius: 10px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 5px;
}

.td-fin-label { color: #475569; font-size: 10px; font-weight: 800; }
.td-fin-value { font-size: 18px; font-weight: 950; font-family: monospace; }
.td-fin-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.td-fin-bar div { height: 100%; border-radius: inherit; }

/* Factory */
.td-factory-grid { display: grid; gap: 10px; }

.td-factory-card {
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.td-factory-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.td-factory-name { color: #f8fafc; font-size: 12px; font-weight: 900; }

.td-factory-status {
  font-size: 9px;
  font-weight: 950;
  padding: 3px 8px;
  border-radius: 999px;
}

.td-factory-status.active { color: #22c55e; background: rgba(34, 197, 94, 0.10); }
.td-factory-status.inactive { color: #ef4444; background: rgba(239, 68, 68, 0.10); }

.td-factory-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.td-factory-stats div { text-align: center; }
.td-factory-stats span { color: #334155; font-size: 9px; font-weight: 700; display: block; }
.td-factory-stats b { color: #f8fafc; font-size: 16px; font-weight: 950; }

/* Stats Grid */
.td-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.td-stat-box {
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.td-stat-label { color: #334155; font-size: 10px; font-weight: 800; margin-bottom: 5px; }
.td-stat-value { font-size: 20px; font-weight: 950; font-family: monospace; }

/* Quick Grid */
.td-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.td-quick-btn {
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.18s ease;
}

.td-quick-btn:hover {
  border-color: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.05);
}

/* Status Bar */
.td-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(4, 8, 20, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 8px;
}

.td-status-left {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.td-status-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  color: #334155;
}

.td-status-item.gray { color: #1e293b; }

.td-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.td-status-dot.green { background: #22c55e; box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.18); }

.td-status-right {
  color: #1e293b;
  font-size: 10px;
  font-weight: 800;
  font-family: monospace;
}

/* Empty */
.td-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #1e293b;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
}

/* Loading */
.td-loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #020610;
  padding: 24px;
}

.td-loading-card {
  text-align: center;
  max-width: 380px;
}

.td-loading-logo {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #050810;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.24);
}

.td-loading-eyebrow {
  color: rgba(245, 158, 11, 0.80);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.td-loading-title {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 18px;
}

.td-loading-bar {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.td-loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: inherit;
  animation: td-progress 1.6s ease-in-out infinite;
}

@keyframes td-progress {
  0% { width: 0%; margin-left: 0; }
  50% { width: 70%; }
  100% { width: 0%; margin-left: 100%; }
}

/* Responsive */
@media (max-width: 1400px) {
  .td-kpi-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1100px) {
  .td-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .td-grid-2, .td-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .td-main { padding: 0 12px 20px; }
  .td-kpi-grid { grid-template-columns: 1fr; }
  .td-command-bar { grid-template-columns: 1fr; }
  .td-hero { flex-direction: column; }
}

/* ========== ChartGlass Component ========== */
.td-chart-glass {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(4, 8, 18, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.td-chart-glass-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 36px 36px;
}

.td-chart-glass-inner {
  position: relative;
  z-index: 2;
}

.td-kpi-mesh,
.td-panel-mesh,
.td-hero-mesh {
  display: none !important;
}

.td-kpi {
  background: rgba(10, 16, 34, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.td-kpi:hover {
  border-color: rgba(245, 158, 11, 0.16) !important;
  transform: translateY(-2px);
}

.td-panel {
  background: rgba(8, 13, 28, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.recharts-cartesian-axis-tick text {
  fill: #1e293b !important;
  font-size: 10px !important;
}

.recharts-cartesian-grid-horizontal line,
.recharts-cartesian-grid-vertical line {
  stroke: rgba(255, 255, 255, 0.035) !important;
}

.recharts-area-curve {
  stroke-width: 1.5px !important;
}

.recharts-area-area {
  opacity: 0.20 !important;
}

.recharts-line-curve {
  stroke-width: 1.5px !important;
}

.recharts-bar-rectangle path {
  opacity: 0.70 !important;
}

/* سكرول منفصل آمن (لا يكسر التنسيق) */
.erp-shell, .rp-dash-shell, .td-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.erp-main, .rp-dash-main, .td-main {
  flex: 1 1 auto;
  overflow-y: auto;
  height: 100%;
}
.rp-sidebar {
  flex-shrink: 0;
  overflow-y: auto;
  height: 100vh;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

.rp-ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.rp-ticker-track {
  display: flex;
  animation: tickerScroll 60s linear infinite;
}


/* ========== Mobile Sidebar Fix ========== */
@media (max-width: 991px) {
  .rp-sidebar.rp-sidebar-mobile {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 88vw;
    max-width: 340px;
    height: 100vh;
    z-index: 1500;
    background: linear-gradient(180deg, #0a1024 0%, #060916 100%);
    color: #f1f5f9;
    padding: 18px 14px;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .rp-sidebar.rp-sidebar-mobile.rp-sidebar-mobile-open {
    transform: translateX(0);
  }

  .rp-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    z-index: 1499;
    backdrop-filter: blur(4px);
  }

  .rp-mobile-menu-btn {
    display: flex !important;
  }
}

/* ========== Mobile Sidebar Fix ========== */
@media (max-width: 991px) {
  .rp-sidebar-mobile {
    display: flex !important;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .rp-mobile-overlay ~ .rp-sidebar-mobile {
    transform: translateX(0);
  }
}
@media (max-width: 760px) {
  .rp-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    padding: 0 8px;
  }

  .rp-kpi-card {
    min-height: 120px;
  }

  .rp-kpi-value {
    font-size: 18px;
  }

  .rp-kpi-label {
    font-size: 10px;
  }
}
/* HR Buttons extras */
.rp-inv-btn-sm {
  padding: 4px 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
}
.rp-inv-btn-sm.good { background: #22c55e; }
.rp-inv-btn-sm.danger { background: #ef4444; }
.rp-inv-btn-sm.warn { background: #f59e0b; }
.rp-inv-btn-sm.blue { background: #3b82f6; }
.rp-inv-btn-sm.muted { background: #64748b; }

.rp-inv-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.rp-inv-feed-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rp-inv-feed-row i.good { background: #22c55e; }
.rp-inv-feed-row i.warn { background: #f59e0b; }
.rp-inv-feed-row i.danger { background: #ef4444; }
.rp-inv-feed-row i.muted { background: #64748b; }
.rp-inv-feed-row i.purple { background: #a855f7; }
.rp-inv-feed-row i.blue { background: #3b82f6; }
.rp-inv-feed-row div { flex: 1; }
.rp-inv-feed-row strong { display: block; font-size: 12px; color: #f8fafc; }
.rp-inv-feed-row span { font-size: 10px; color: #64748b; }
.rp-inv-feed-row b { font-size: 11px; color: #94a3b8; }

/* ========== Compact Employee Table Actions ========== */
.rp-emp-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 0;
}

.rp-emp-view,
.rp-emp-edit,
.rp-emp-del {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.rp-emp-view {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.10);
}
.rp-emp-view:hover { background: rgba(59, 130, 246, 0.25); }

.rp-emp-edit {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.10);
}
.rp-emp-edit:hover { background: rgba(245, 158, 11, 0.25); }

.rp-emp-del {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.10);
}
.rp-emp-del:hover { background: rgba(239, 68, 68, 0.25); }

/* ========== Mobile Responsive for HR Pages ========== */
.rp-inv-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.10);
}

.rp-inv-table-wrap::-webkit-scrollbar { height: 4px; }
.rp-inv-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 999px;
}

.rp-inv-table {
  width: 100%;
  min-width: auto;
  border-collapse: collapse;
}

.rp-inv-table th,
.rp-inv-table td {
  padding: 10px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 12px;
  vertical-align: middle;
}

.rp-inv-table th {
  background: rgba(7, 11, 20, 0.70);
  color: #94a3b8;
  font-weight: 900;
  font-size: 11px;
  white-space: nowrap;
}

.rp-inv-export button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 158, 11, 0.20);
  background: rgba(245, 158, 11, 0.10);
  color: #fbbf24;
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-inv-export button:hover {
  background: rgba(245, 158, 11, 0.20);
  border-color: rgba(245, 158, 11, 0.35);
}

.rp-inv-btn-sm {
  min-height: 28px;
  padding: 0 10px;
  border: none;
  border-radius: 8px;
  font-weight: 900;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.rp-inv-btn-sm.blue {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
}

.rp-inv-btn-sm.blue:hover {
  background: rgba(59, 130, 246, 0.25);
}

.rp-inv-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 14%, rgba(245, 158, 11, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(12, 18, 36, 0.98), rgba(7, 11, 20, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.rp-inv-hero-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.18);
  text-align: center;
  min-width: 160px;
  align-self: flex-start;
}

.rp-inv-hero-value strong {
  color: #fbbf24;
  font-size: 32px;
  font-weight: 950;
  letter-spacing: -1px;
}

.rp-inv-hero-value span {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
}

.rp-inv-grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rp-inv-form {
  display: grid;
  gap: 10px;
}

.rp-inv-form-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rp-inv-form-fields > .full {
  grid-column: 1 / -1;
}

.rp-inv-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .rp-inv-form-fields {
    grid-template-columns: 1fr;
  }
}

.rp-inv-form > * {
  grid-column: 1 / -1;
}

@media (max-width: 1200px) {
  .rp-inv-hero { flex-direction: column; }
  .rp-inv-hero-value { align-self: stretch; }
  .rp-inv-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .rp-inv-shell { gap: 12px; }
  .rp-inv-hero { padding: 16px; }
  .rp-inv-hero h1 { font-size: 20px; }
  .rp-inv-hero p { font-size: 12px; }
  .rp-inv-hero-value strong { font-size: 26px; }
  .rp-inv-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rp-inv-kpi { min-height: 80px; padding: 8px 10px; }
  .rp-inv-kpi strong { font-size: 14px; }
  .rp-inv-kpi span { font-size: 9px; }
  .rp-inv-panel { padding: 12px; border-radius: 12px; }
  .rp-inv-grid.two { grid-template-columns: 1fr; gap: 12px; }
  .rp-inv-form { gap: 8px; }
  .rp-inv-input { min-height: 36px; font-size: 12px; padding: 6px 10px; }
  .rp-inv-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 4px; padding-bottom: 0; }
  .rp-inv-tabs button { white-space: nowrap; min-height: 32px; padding: 0 10px; font-size: 10px; flex-shrink: 0; }
  .erp-tabs button { font-size: 10px; padding: 8px 10px; }
  .rp-inv-table-wrap { margin: 0 -14px; border-radius: 0; border: none; width: calc(100% + 28px); }
  .rp-inv-table { font-size: 11px; }
  .rp-inv-table th,
  .rp-inv-table td { padding: 6px 8px; font-size: 11px; white-space: nowrap; }
  .rp-inv-badge { font-size: 9px; min-height: 20px; }
  .rp-inv-export { justify-content: flex-start; }
  .rp-inv-feed-row { padding: 8px; }
  .rp-inv-feed-row strong { font-size: 11px; }
  .rp-inv-empty { min-height: 100px; font-size: 12px; }
}

@media (max-width: 480px) {
  .rp-inv-shell { gap: 10px; }
  .rp-inv-hero { padding: 14px; }
  .rp-inv-hero h1 { font-size: 17px; }
  .rp-inv-hero-value strong { font-size: 22px; }
  .rp-inv-hero-value { padding: 10px 14px; }
  .rp-inv-hero-value span { font-size: 10px; }
  .rp-inv-table-wrap { margin: 0 -14px; width: calc(100% + 28px); }
  .rp-inv-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .rp-inv-kpi { min-height: 80px; padding: 8px 10px; }
  .rp-inv-kpi strong { font-size: 14px; }
  .rp-inv-kpi span { font-size: 9px; }
  .rp-inv-kpi i { display: none; }
  .rp-inv-tabs button { min-height: 32px; padding: 0 10px; font-size: 10px; }
  button[type="submit"] { font-size: 12px; min-height: 36px; }
  .rp-inv-panel { padding: 12px; }
  .rp-inv-panel h3 { font-size: 13px !important; }
  .rp-inv-panel p { font-size: 10px !important; }
  .rp-inv-form {
    grid-template-columns: 1fr;
  }
  .rp-inv-item-row {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 8px;
    border: 1px solid rgba(148,163,184,0.08);
    border-radius: 10px;
    margin-bottom: 6px;
  }
  .rp-inv-item-row > select {
    grid-column: 1 / -1;
    width: 100%;
  }
  .rp-inv-item-row > input {
    width: 100%;
  }
}

/* ═══════════════════════════ NEW: Responsive & UI Improvements ═══════════════════════════ */

/* Date Filter Styles */
.erp-date-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.erp-date-input {
  width: 120px;
  min-height: 30px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #f8fafc;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}

.erp-date-input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

@media (max-width: 768px) {
  .erp-date-filter {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .erp-date-input {
    width: 100%;
    font-size: 12px;
  }
}

/* Responsive CommandBar */
.erp-command-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin-bottom: 14px;
}

@media (max-width: 640px) {
  .erp-command-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .erp-command-bar > * {
    width: 100%;
  }
}

/* Responsive Grid Layouts */
.erp-grid-layout {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}

.erp-grid-layout.two {
  grid-template-columns: repeat(2, 1fr);
}

.erp-grid-layout.three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .erp-grid-layout.three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .erp-grid-layout.two,
  .erp-grid-layout.three {
    grid-template-columns: 1fr;
  }
}

/* Panel Responsive */
.erp-panel {
  background: rgba(12, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
}

.erp-panel h4 {
  color: #fbbf24;
  margin: 0 0 12px;
  font-weight: 950;
  font-size: 14px;
}

@media (max-width: 768px) {
  .erp-panel {
    padding: 12px;
    border-radius: 12px;
  }
  .erp-panel h4 {
    font-size: 13px;
  }
}

/* Empty State */
.erp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 768px) {
  .erp-empty {
    min-height: 150px;
    font-size: 13px;
  }
}

/* Loading Card Responsive */
.erp-loading-card {
  min-width: 280px;
  max-width: 520px;
  padding: 24px;
  border-radius: 22px;
  background: #0c1224;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: var(--rp-shadow);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: var(--rp-text);
}

@media (max-width: 480px) {
  .erp-loading-card {
    min-width: auto;
    width: 90%;
    padding: 18px;
    font-size: 16px;
  }
}

/* Sidebar Responsive Improvements */
@media (max-width: 1400px) {
  .rp-sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
  }
}

@media (max-width: 1200px) {
  .rp-sidebar {
    width: 260px;
    min-width: 260px;
    max-width: 260px;
  }
  .erp-main {
    padding: 20px;
  }
}

/* Mobile Sidebar Improvements */
@media (max-width: 991px) {
  .rp-mobile-sidebar {
    width: 92vw;
    max-width: 340px;
  }
  .rp-mobile-head {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .rp-mobile-title {
    font-size: 16px;
    font-weight: 900;
  }
  .rp-mobile-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    display: grid;
    place-items: center;
    cursor: pointer;
  }
}

/* Search Input Responsive */
.rp-search-input {
  width: 100%;
  min-height: 40px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f8fafc;
  padding: 8px 12px 8px 36px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.rp-search-input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

@media (max-width: 768px) {
  .rp-search-input {
    font-size: 14px;
    min-height: 44px;
  }
}

/* Nav Item Responsive */
.rp-nav-item {
  padding: 12px 14px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .rp-nav-item {
    padding: 14px 16px;
    font-size: 15px;
  }
}

/* KPI Card Responsive */
.rp-kpi-card {
  background: rgba(12, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rp-kpi-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .rp-kpi-card {
    padding: 12px;
    min-height: 100px;
  }
  .rp-kpi-value {
    font-size: 18px !important;
  }
}

@media (max-width: 480px) {
  .rp-kpi-card {
    padding: 10px;
    min-height: 90px;
  }
  .rp-kpi-value {
    font-size: 16px !important;
  }
  .rp-kpi-label {
    font-size: 11px !important;
  }
}

/* Top Bar Responsive */
.rp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: rgba(12, 18, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.rp-topbar-center {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.rp-period-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rp-period-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05));
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.rp-period-btn:hover:not(.active) {
  border-color: rgba(245, 158, 11, 0.2);
  color: #f8fafc;
}

@media (max-width: 768px) {
  .rp-topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }
  .rp-topbar-left,
  .rp-topbar-center,
  .rp-topbar-actions {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .rp-topbar-center {
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
  }
  .rp-period-btn {
    flex: 1;
    text-align: center;
    min-width: 60px;
  }
}

/* Hero Section Responsive */
.rp-hero {
  padding: 20px;
  background: rgba(12, 18, 36, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 18px;
}

.rp-hero-title {
  font-size: 28px;
  font-weight: 900;
  margin: 8px 0;
  color: #f8fafc;
}

.rp-hero-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
}

.rp-hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rp-hero-pill {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
}

.rp-hero-pill.success {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.rp-hero-pill.warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

@media (max-width: 768px) {
  .rp-hero {
    padding: 16px;
  }
  .rp-hero-title {
    font-size: 22px;
  }
  .rp-hero-subtitle {
    font-size: 12px;
  }
  .rp-hero-pill {
    font-size: 10px;
    padding: 3px 8px;
  }
}

@media (max-width: 480px) {
  .rp-hero-title {
    font-size: 18px;
  }
  .rp-hero-subtitle {
    font-size: 11px;
  }
}

/* Panel Head Responsive */
.rp-inv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.rp-inv-panel-head h3 {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  color: #f8fafc;
}

.rp-inv-panel-head p {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0;
  font-weight: 700;
}

@media (max-width: 768px) {
  .rp-inv-panel-head {
    gap: 8px;
  }
  .rp-inv-panel-head h3 {
    font-size: 13px;
  }
  .rp-inv-panel-head p {
    font-size: 10px;
  }
}

/* Chart Container Responsive */
.rp-chart-container {
  width: 100%;
  height: 240px;
  position: relative;
}

@media (max-width: 768px) {
  .rp-chart-container {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .rp-chart-container {
    height: 180px;
  }
}

/* Data Grid Responsive */
.erp-data-grid {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  margin: 14px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(12, 18, 36, 0.4);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.erp-data-grid::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.erp-data-grid::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.erp-data-grid[data-scroll-left]::before {
  opacity: 1;
}

.erp-data-grid[data-scroll-right]::after {
  opacity: 1;
}

.erp-data-grid table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 800px;
}

.erp-data-grid th,
.erp-data-grid td {
  padding: 10px 12px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  vertical-align: middle;
}

.erp-data-grid th {
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 2px solid rgba(245, 158, 11, 0.2);
}

.erp-data-grid td {
  color: #cbd5e1;
  font-weight: 600;
  transition: background 0.2s ease;
}

.erp-data-grid tbody tr:hover td {
  background: rgba(245, 158, 11, 0.05);
}

/* Sticky First Column */
.erp-data-grid th:first-child,
.erp-data-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 6;
  background: inherit;
  border-left: none;
}

.erp-data-grid th:first-child {
  background: rgba(15, 23, 42, 0.8);
}

/* Scrollbar Styling */
.erp-data-grid::-webkit-scrollbar {
  height: 8px;
}

.erp-data-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.erp-data-grid::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 4px;
}

.erp-data-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

/* Mobile - Card View */
@media (max-width: 768px) {
  .erp-data-grid {
    margin: 0 -14px;
    width: calc(100% + 28px);
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  
  .erp-data-grid table {
    font-size: 11px;
    min-width: 600px;
  }
  
  .erp-data-grid th,
  .erp-data-grid td {
    padding: 8px 10px;
  }
}

/* Mobile - Ultra Small - Convert to Cards */
@media (max-width: 480px) {
  .erp-data-grid-mobile-cards table {
    display: block;
  }
  
  .erp-data-grid-mobile-cards thead {
    display: none;
  }
  
  .erp-data-grid-mobile-cards tbody {
    display: block;
  }
  
  .erp-data-grid-mobile-cards tr {
    display: block;
    margin-bottom: 12px;
    background: rgba(12, 18, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
  }
  
  .erp-data-grid-mobile-cards td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    white-space: normal;
  }
  
  .erp-data-grid-mobile-cards td:last-child {
    border-bottom: none;
  }
  
  .erp-data-grid-mobile-cards td::before {
    content: attr(data-label);
    font-weight: 800;
    color: #94a3b8;
    font-size: 11px;
    margin-left: 12px;
  }
}

/* Compact Table Mode */
.erp-data-grid-compact table {
  font-size: 11px;
}

.erp-data-grid-compact th,
.erp-data-grid-compact td {
  padding: 6px 8px;
}

/* Wide Table Warning */
.erp-table-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.erp-table-notice svg {
  flex-shrink: 0;
}

/* Badge Responsive */
.erp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-badge.good {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.erp-badge.warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.erp-badge.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

@media (max-width: 768px) {
  .erp-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* Button Responsive */
.erp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.erp-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.erp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
}

.erp-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .erp-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }
}

/* Form Input Responsive */
.erp-form-input {
  width: 100%;
  min-height: 40px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f8fafc;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.erp-form-input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.erp-form-input::-moz-placeholder {
  color: #475569;
}

.erp-form-input::placeholder {
  color: #475569;
}

@media (max-width: 768px) {
  .erp-form-input {
    font-size: 14px;
    min-height: 44px;
  }
}

/* Error Message */
.erp-msg.error {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .erp-msg.error {
    font-size: 12px;
    padding: 12px;
  }
}

/* Tabs Responsive */
.erp-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.erp-tabs::-webkit-scrollbar {
  display: none;
}

.erp-tabs button {
  padding: 10px 16px;
  border: none;
  background: rgba(255, 255, 255, 0.03);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.erp-tabs button.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom-color: transparent;
}

@media (max-width: 768px) {
  .erp-tabs button {
    font-size: 10px;
    padding: 8px 10px;
  }
}

/* Quick Results Popup */
.rp-quick-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(12, 18, 36, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  margin: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.rp-quick-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #f8fafc;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rp-quick-result-item:hover {
  background: rgba(245, 158, 11, 0.1);
}

.rp-qr-icon {
  color: #94a3b8;
}

.rp-qr-label {
  font-size: 12px;
  font-weight: 800;
  display: block;
}

.rp-qr-hint {
  font-size: 10px;
  color: #64748b;
  display: block;
}

.rp-qr-kbd {
  margin-right: auto;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
}

.rp-qr-more {
  padding: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
}

@media (max-width: 768px) {
  .rp-quick-results {
    margin: 4px;
    max-height: 250px;
  }
}

/* Clock Component */
.rp-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
}

.rp-clock-icon {
  font-size: 14px;
}

/* Icon Button */
.rp-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.4);
  color: #94a3b8;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  display: grid;
  place-items: center;
}

.rp-icon-btn:hover {
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.05);
}

.rp-icon-btn.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Loading Shell */
.td-loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 22%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
}

.td-loading-card {
  min-width: 280px;
  max-width: 520px;
  width: 90%;
  padding: 32px;
  border-radius: 24px;
  background: #0c1224;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: var(--rp-shadow);
  text-align: center;
}

.td-loading-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(16, 58, 122, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--rp-gold);
  font-size: 28px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.td-loading-eyebrow {
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 8px;
}

.td-loading-title {
  font-size: 16px;
  color: #f8fafc;
  font-weight: 800;
  margin-bottom: 20px;
}

.td-loading-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.td-loading-progress {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 99px;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

@media (max-width: 480px) {
  .td-loading-card {
    padding: 24px;
  }
  .td-loading-logo {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
  .td-loading-title {
    font-size: 14px;
  }
}

/* ═══════════════════════════ Skeleton Loaders ═══════════════════════════ */

.erp-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.erp-skeleton-text {
  height: 16px;
  border-radius: 4px;
}

.erp-skeleton-circle {
  border-radius: 50%;
}

.erp-skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* KPI Grid Responsive */
.erp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 14px 0;
}

@media (max-width: 768px) {
  .erp-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .erp-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.erp-kpi {
  background: rgba(12, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.erp-kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.erp-kpi.gold { --kpi-color: #fbbf24; background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.15); }
.erp-kpi.green { --kpi-color: #22c55e; background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.15); }
.erp-kpi.blue { --kpi-color: #3b82f6; background: rgba(59, 130, 246, 0.08); border-color: rgba(59, 130, 246, 0.15); }
.erp-kpi.purple { --kpi-color: #a855f7; background: rgba(168, 85, 247, 0.08); border-color: rgba(168, 85, 247, 0.15); }
.erp-kpi.red { --kpi-color: #ef4444; background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.15); }
.erp-kpi.cyan { --kpi-color: #06b6d4; background: rgba(6, 182, 212, 0.08); border-color: rgba(6, 182, 212, 0.15); }
.erp-kpi.orange { --kpi-color: #f97316; background: rgba(249, 115, 22, 0.08); border-color: rgba(249, 115, 22, 0.15); }

.erp-kpi i {
  font-size: 24px;
  opacity: 0.8;
  font-style: normal;
}

.erp-kpi span {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
}

.erp-kpi strong {
  font-size: 24px;
  font-weight: 900;
  color: var(--kpi-color);
}

.erp-kpi small {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 768px) {
  .erp-kpi {
    padding: 12px;
    min-height: 95px;
  }
  .erp-kpi strong {
    font-size: 20px;
  }
  .erp-kpi span {
    font-size: 11px;
  }
  .erp-kpi small {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .erp-kpi {
    padding: 10px;
    min-height: 85px;
  }
  .erp-kpi strong {
    font-size: 18px;
  }
}

/* Panel Styles */
.erp-panel {
  background: rgba(12, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px;
  margin: 14px 0;
}

.erp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.erp-panel-head h3 {
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  color: #f8fafc;
}

.erp-panel-head p {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0;
  font-weight: 700;
}

@media (max-width: 768px) {
  .erp-panel {
    padding: 12px;
    border-radius: 12px;
  }
  .erp-panel-head h3 {
    font-size: 13px;
  }
  .erp-panel-head p {
    font-size: 10px;
  }
}

/* Grid Layout */
.erp-grid {
  display: grid;
  gap: 14px;
  margin: 14px 0;
}

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

@media (max-width: 1024px) {
  .erp-grid.two {
    grid-template-columns: 1fr;
  }
}

/* Form Styles */
.erp-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.erp-input {
  width: 100%;
  min-height: 42px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f8fafc;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.erp-input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.erp-input::-moz-placeholder {
  color: #475569;
}

.erp-input::placeholder {
  color: #475569;
}

@media (max-width: 768px) {
  .erp-form {
    grid-template-columns: 1fr;
  }
  .erp-input {
    font-size: 14px;
    min-height: 44px;
  }
}

/* Command Bar */
.erp-cmdbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  margin-bottom: 14px;
}

.erp-cmdbar-search {
  flex: 1;
  min-width: 200px;
}

.erp-search-wrap {
  position: relative;
  width: 100%;
}

.erp-search-input {
  width: 100%;
  min-height: 40px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #f8fafc;
  padding: 8px 36px 8px 12px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.erp-search-input:focus {
  outline: none;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.erp-search-clear {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border: none;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.erp-search-clear:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.erp-cmdbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .erp-cmdbar {
    flex-direction: column;
    align-items: stretch;
  }
  .erp-cmdbar-search {
    width: 100%;
  }
  .erp-cmdbar-actions {
    justify-content: center;
  }
}

/* Button Styles */
.erp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.erp-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
}

.erp-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
}

.erp-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.erp-btn-ghost:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

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

.erp-btn-danger {
  background: #b91c1c;
  color: #fff;
  border-color: transparent;
}

.erp-btn-danger:hover:not(:disabled) {
  background: #dc2626;
  color: #fff;
}

@media (max-width: 768px) {
  .erp-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }
}

/* Badge */
.erp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-badge.good {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.erp-badge.warn {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.erp-badge.danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

@media (max-width: 768px) {
  .erp-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* Message */
.erp-msg {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.erp-msg.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.erp-msg.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

@media (max-width: 768px) {
  .erp-msg {
    font-size: 12px;
    padding: 12px;
  }
}

/* ═══════════════════════════ Error Boundary ═══════════════════════════ */

.error-boundary-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 22%),
    linear-gradient(180deg, #070b14 0%, #0c1224 100%);
}

.error-boundary-card {
  max-width: 520px;
  width: 100%;
  padding: 32px;
  border-radius: 24px;
  background: #0c1224;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: var(--rp-shadow);
  text-align: center;
}

.error-boundary-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.error-boundary-title {
  font-size: 20px;
  font-weight: 900;
  color: #f8fafc;
  margin: 0 0 12px;
}

.error-boundary-desc {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 24px;
  line-height: 1.8;
}

.error-boundary-details {
  text-align: right;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
}

.error-boundary-details summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: #ef4444;
  margin-bottom: 12px;
}

.error-boundary-stack {
  font-size: 11px;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
}

.error-boundary-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070b14;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2);
  transition: all 0.2s ease;
}

.error-boundary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.3);
}

@media (max-width: 768px) {
  .error-boundary-card {
    padding: 24px;
  }
  .error-boundary-title {
    font-size: 18px;
  }
  .error-boundary-icon {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .error-boundary-card {
    padding: 20px;
  }
  .error-boundary-title {
    font-size: 16px;
  }
  .error-boundary-btn {
    min-height: 44px;
    font-size: 13px;
  }
}

.rp-inv-form > * {
  grid-column: 1 / -1;
}

@media (max-width: 1200px) {
  .rp-inv-hero { flex-direction: column; }
  .rp-inv-hero-value { align-self: stretch; }
  .rp-inv-grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .rp-inv-shell { gap: 12px; }
  .rp-inv-hero { padding: 16px; }
  .rp-inv-hero h1 { font-size: 20px; }
  .rp-inv-hero p { font-size: 12px; }
  .rp-inv-hero-value strong { font-size: 26px; }
  .rp-inv-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rp-inv-kpi { min-height: 80px; padding: 8px 10px; }
  .rp-inv-kpi strong { font-size: 14px; }
  .rp-inv-kpi span { font-size: 9px; }
  .rp-inv-panel { padding: 12px; border-radius: 12px; }
  .rp-inv-grid.two { grid-template-columns: 1fr; gap: 12px; }
  .rp-inv-form { gap: 8px; }
  .rp-inv-input { min-height: 36px; font-size: 12px; padding: 6px 10px; }
  .rp-inv-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 4px; padding-bottom: 0; }
  .rp-inv-tabs button { white-space: nowrap; min-height: 32px; padding: 0 10px; font-size: 10px; flex-shrink: 0; }
  .erp-tabs button { font-size: 10px; padding: 8px 10px; }
  .rp-inv-table-wrap { margin: 0 -14px; border-radius: 0; border: none; width: calc(100% + 28px); }
  .rp-inv-table { font-size: 11px; }
  .rp-inv-table th,
  .rp-inv-table td { padding: 6px 8px; font-size: 11px; white-space: nowrap; }
  .rp-inv-badge { font-size: 9px; min-height: 20px; }
  .rp-inv-export { justify-content: flex-start; }
  .rp-inv-feed-row { padding: 8px; }
  .rp-inv-feed-row strong { font-size: 11px; }
  .rp-inv-empty { min-height: 100px; font-size: 12px; }
}

@media (max-width: 480px) {
  .rp-inv-shell { gap: 10px; }
  .rp-inv-hero { padding: 14px; }
  .rp-inv-hero h1 { font-size: 17px; }
  .rp-inv-hero-value strong { font-size: 22px; }
  .rp-inv-hero-value { padding: 10px 14px; }
  .rp-inv-hero-value span { font-size: 10px; }
  .rp-inv-table-wrap { margin: 0 -14px; width: calc(100% + 28px); }
  .rp-inv-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .rp-inv-kpi { min-height: 80px; padding: 8px 10px; }
  .rp-inv-kpi strong { font-size: 14px; }
  .rp-inv-kpi span { font-size: 9px; }
  .rp-inv-kpi i { display: none; }
  .rp-inv-tabs button { min-height: 32px; padding: 0 10px; font-size: 10px; }
  button[type="submit"] { font-size: 12px; min-height: 36px; }
  .rp-inv-panel { padding: 12px; }
  .rp-inv-panel h3 { font-size: 13px !important; }
  .rp-inv-panel p { font-size: 10px !important; }
}

/* ═══════════════════════════ POS: Terminal ═══════════════════════════ */

/* ===== RTL Overrides ===== */
[dir="rtl"] .ml-auto { margin-right: auto !important; margin-left: 0 !important; }
[dir="rtl"] .mr-auto { margin-left: auto !important; margin-right: 0 !important; }
[dir="rtl"] .pl-4 { padding-right: 1rem !important; padding-left: 0 !important; }
[dir="rtl"] .pr-4 { padding-left: 1rem !important; padding-right: 0 !important; }
[dir="rtl"] .text-left { text-align: right !important; }
[dir="rtl"] .text-right { text-align: left !important; }
[dir="rtl"] .flex-row { flex-direction: row-reverse !important; }
[dir="rtl"] .space-x-2 > * + * { margin-left: 0 !important; margin-right: 0.5rem !important; }
[dir="rtl"] .space-x-4 > * + * { margin-left: 0 !important; margin-right: 1rem !important; }
[dir="rtl"] .right-0 { left: 0 !important; right: auto !important; }
[dir="rtl"] .left-0 { right: 0 !important; left: auto !important; }
[dir="rtl"] .border-l { border-right: 1px solid var(--border-color) !important; border-left: none !important; }
[dir="rtl"] .border-r { border-left: 1px solid var(--border-color) !important; border-right: none !important; }
[dir="rtl"] .translate-x-2 { transform: translateX(-0.5rem) !important; }
[dir="rtl"] .-translate-x-2 { transform: translateX(0.5rem) !important; }

/* =========================================================================
 * ROYAL PALACE ADMIN COUTURE GLOBAL OVERHAUL (APPLE DEV ONLY)
 * ========================================================================= */

/* Global Root Configuration & Theme Tokens Overrides */
[data-theme="light"], :root {
  --rp-bg: #f5f5f7 !important;
  --rp-bg-soft: #fbfbfd !important;
  --rp-surface: rgba(255, 255, 255, 0.72) !important;
  --rp-surface-2: rgba(245, 245, 247, 0.8) !important;
  --rp-border: rgba(0, 0, 0, 0.08) !important;
  --rp-border-strong: rgba(0, 0, 0, 0.16) !important;
  --rp-text: #1d1d1f !important;
  --rp-text-soft: #515154 !important;
  --rp-text-muted: #86868b !important;
  --rp-gold: #866d4b !important;
  --rp-gold-strong: #bf9f62 !important;
  --rp-success: #1d7044 !important;
  --rp-success-bg: rgba(29, 112, 68, 0.08) !important;
  --rp-warning: #9e6000 !important;
  --rp-warning-bg: rgba(158, 96, 0, 0.08) !important;
  --rp-danger: #bd2724 !important;
  --rp-danger-bg: rgba(189, 39, 36, 0.08) !important;
  --glass-blend: rgba(255, 255, 255, 0.45) !important;
  --glass-glow: rgba(0, 0, 0, 0.02) !important;
  --card-shadow: 0 12px 34px -10px rgba(0, 0, 0, 0.05), 0 4px 12px -5px rgba(0, 0, 0, 0.02) !important;
  --sidebar-shadow: 0 20px 40px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="dark"] {
  --rp-bg: #000000 !important;
  --rp-bg-soft: #08080a !important;
  --rp-surface: rgba(22, 22, 23, 0.65) !important;
  --rp-surface-2: rgba(29, 29, 31, 0.8) !important;
  --rp-border: rgba(255, 255, 255, 0.09) !important;
  --rp-border-strong: rgba(255, 255, 255, 0.18) !important;
  --rp-text: #f5f5f7 !important;
  --rp-text-soft: #a1a1a6 !important;
  --rp-text-muted: #86868b !important;
  --rp-gold: #c9a66b !important;
  --rp-gold-strong: #e1be82 !important;
  --rp-success: #30d158 !important;
  --rp-success-bg: rgba(48, 209, 88, 0.12) !important;
  --rp-warning: #ff9f0a !important;
  --rp-warning-bg: rgba(255, 159, 10, 0.12) !important;
  --rp-danger: #ff453a !important;
  --rp-danger-bg: rgba(255, 69, 58, 0.12) !important;
  --glass-blend: rgba(0, 0, 0, 0.4) !important;
  --glass-glow: rgba(255, 255, 255, 0.03) !important;
  --card-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.05) inset !important;
  --sidebar-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
}

/* Master Page Background Setup */
body, .erp-shell, .rp-dash-main, .erp-main {
  background: var(--rp-bg) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Myriad Pro", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.015em;
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-x: hidden;
}

[data-theme="light"] body, [data-theme="light"] .erp-shell {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(134, 109, 75, 0.05), transparent),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.01), transparent 40%) !important;
}

[data-theme="dark"] body, [data-theme="dark"] .erp-shell {
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201, 166, 107, 0.09), transparent),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.01), transparent 40%) !important;
}

/* Ultimate Spring Scrollbar */
::-webkit-scrollbar {
  width: 7px !important;
  height: 7px !important;
}
::-webkit-scrollbar-track {
  background: transparent !important;
}
::-webkit-scrollbar-thumb {
  background: rgba(134, 134, 139, 0.25) !important;
  border-radius: 99px !important;
  border: 1px solid transparent !important;
  background-clip: padding-box !important;
  -webkit-transition: background 0.3s ease !important;
  transition: background 0.3s ease !important;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(134, 134, 139, 0.45) !important;
  border-radius: 99px !important;
}

/* Premium Navigation Glassmorphism Sidebar */
.rp-sidebar, .erp-sidebar, [class*="sidebar"] {
  background: var(--rp-surface) !important;
  backdrop-filter: blur(28px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
  border-right: 1px solid var(--rp-border) !important;
  border-left: 1px solid var(--rp-border) !important;
  box-shadow: var(--sidebar-shadow) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Stunning Top Header Bar Glassmorphism */
.erp-workspace-topbar, .rp-dash-header, .top-bar-container, [class*="Topbar"], [class*="topbar"], [class*="TopBar"] {
  background: var(--rp-surface) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid var(--rp-border) !important;
  z-index: 50 !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02) !important;
}

/* Apple-grade Liquid Glass Cards & Modules */
.erp-card, .erp-section-card, .erp-form-shell, .erp-metric-tile, .rp-inv-panel, .erp-panel, [class*="Card"], [class*="card"] {
  background: var(--rp-surface) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--card-shadow) !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.erp-card:hover, .erp-section-card:hover, .rp-inv-panel:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 48px -8px rgba(0,0,0,0.08), 0 0 1px var(--rp-gold) inset !important;
  border-color: rgba(134, 109, 75, 0.25) !important;
}

[data-theme="dark"] .erp-card:hover, [data-theme="dark"] .erp-section-card:hover, [data-theme="dark"] .rp-inv-panel:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 1px var(--rp-gold) inset !important;
  border-color: rgba(201, 166, 107, 0.3) !important;
}

/* Metric Tile Typography & Sparkles */
.erp-metric-tile {
  position: relative !important;
  overflow: hidden !important;
}
.erp-metric-tile::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important; right: 0 !important;
  width: 100px !important; height: 100px !important;
  background: radial-gradient(circle, rgba(201, 166, 107, 0.06) 0%, transparent 70%) !important;
  -webkit-user-select: none !important;
     -moz-user-select: none !important;
          user-select: none !important;
  pointer-events: none !important;
}

/* Premium Futuristic Table Concept (230+ Pages) */
.erp-table-wrap, .rp-inv-table-wrap, [class*="table-wrap"], [class*="TableWrap"] {
  border-radius: 14px !important;
  border: 1px solid var(--rp-border) !important;
  overflow: hidden !important;
  background: var(--rp-surface-2) !important;
  box-shadow: var(--card-shadow) !important;
}

.erp-table, .rp-inv-table, table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 13px !important;
}

.erp-table th, .rp-inv-table th, th {
  background: var(--rp-surface-2) !important;
  backdrop-filter: blur(10px) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
  color: var(--rp-text) !important;
  opacity: 0.85 !important;
  padding: 16px 20px !important;
  border-bottom: 2px solid var(--rp-border) !important;
  text-align: left !important;
}

[dir="rtl"] .erp-table th, [dir="rtl"] .rp-inv-table th, [dir="rtl"] th {
  text-align: right !important;
}

.erp-table td, .rp-inv-table td, td {
  padding: 16px 20px !important;
  border-bottom: 1px solid var(--rp-border) !important;
  color: var(--rp-text) !important;
  transition: background-color 0.2s ease !important;
  font-weight: 450 !important;
}

.erp-table tr:last-child td, .rp-inv-table tr:last-child td, tr:last-child td {
  border-bottom: none !important;
}

.erp-table tbody tr:hover td, .rp-inv-table tbody tr:hover td, tbody tr:hover td {
  background: rgba(134, 109, 75, 0.04) !important;
}

[data-theme="dark"] .erp-table tbody tr:hover td, [data-theme="dark"] .rp-inv-table tbody tr:hover td, [data-theme="dark"] tbody tr:hover td {
  background: rgba(201, 166, 107, 0.05) !important;
}

/* Inputs, Textareas, Selects Styling: Smooth Liquid Forms */
.erp-input, .erp-search, .rp-inv-input, select, textarea, input[type="text"], input[type="number"], input[type="email"], input[type="password"] {
  background: var(--rp-surface-2) !important;
  border: 1.5px solid var(--rp-border) !important;
  border-radius: 10px !important;
  color: var(--rp-text) !important;
  padding: 11px 16px !important;
  font-size: 13.5px !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02) inset !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.erp-input:focus, .erp-search:focus, .rp-inv-input:focus, select:focus, textarea:focus, input:focus {
  border-color: var(--rp-gold) !important;
  box-shadow: 0 0 0 4px rgba(201, 166, 107, 0.15) !important;
  background: var(--rp-surface) !important;
}

/* Buttons Engine: Crisp Apple Press Effect */
.erp-button, button[type="submit"], .rp-btn-primary, [class*="ButtonPrimary"], [class*="btn-primary"] {
  background: linear-gradient(180deg, var(--rp-gold-strong) 0%, var(--rp-gold) 100%) !important;
  color: #fff !important;
  font-weight: 550 !important;
  font-size: 13.5px !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 11px 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 8px rgba(134, 109, 75, 0.2) !important;
}

.erp-button:hover, button[type="submit"]:hover, .rp-btn-primary:hover, [class*="ButtonPrimary"]:hover, [class*="btn-primary"]:hover {
  transform: scale(1.025) !important;
  box-shadow: 0 4px 16px rgba(134, 109, 75, 0.35) !important;
  filter: brightness(1.05) !important;
}

.erp-button:active, button[type="submit"]:active, .rp-btn-primary:active, [class*="ButtonPrimary"]:active, [class*="btn-primary"]:active {
  transform: scale(0.975) !important;
  filter: brightness(0.92) !important;
}

/* Secondary Button Style */
.erp-button-secondary, .erp-button-muted, .rp-btn-secondary, [class*="ButtonSecondary"], [class*="btn-secondary"] {
  background: var(--rp-surface-2) !important;
  border: 1px solid var(--rp-border) !important;
  color: var(--rp-text) !important;
  font-weight: 500 !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.erp-button-secondary:hover, .rp-btn-secondary:hover, [class*="ButtonSecondary"]:hover, [class*="btn-secondary"]:hover {
  background: var(--rp-surface) !important;
  border-color: var(--rp-border-strong) !important;
}

/* Badge status indicators */
.rp-inv-badge, .erp-badge, [class*="badge"], [class*="Badge"] {
  font-weight: 600 !important;
  font-size: 11px !important;
  padding: 4px 10px !important;
  border-radius: 99px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.rp-inv-badge.success, .erp-badge-success, .badge-success {
  color: var(--rp-success) !important;
  background: var(--rp-success-bg) !important;
}

.rp-inv-badge.warning, .erp-badge-warning, .badge-warning {
  color: var(--rp-warning) !important;
  background: var(--rp-warning-bg) !important;
}

.rp-inv-badge.danger, .erp-badge-danger, .badge-danger {
  color: var(--rp-danger) !important;
  background: var(--rp-danger-bg) !important;
}

/* Apple-style Custom Tab Strip Transitions */
.rp-inv-tabs, .erp-tabs, [class*="tabs"], [class*="Tabs"] {
  background: var(--rp-surface-2) !important;
  padding: 4px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  gap: 2px !important;
  border: 1px solid var(--rp-border) !important;
}

.rp-inv-tabs button, .erp-tabs button, [class*="tabs"] button, [class*="Tabs"] button {
  border-radius: 9px !important;
  font-weight: 500 !important;
  color: var(--rp-text-soft) !important;
  padding: 8px 16px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  background: transparent !important;
  border: none !important;
}

.rp-inv-tabs button.active, .erp-tabs button.active, .rp-inv-tabs button[data-active="true"], [class*="tabs"] button[class*="active"], [class*="Tabs"] button[class*="active"] {
  background: var(--rp-surface) !important;
  color: var(--rp-text) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
}

[data-theme="dark"] .rp-inv-tabs button.active, [data-theme="dark"] .erp-tabs button.active {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

/* ERP Section Title Styling */
.erp-section-title, h1, h2, h3 {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--rp-text) !important;
}

/* Beautiful dynamic charts wrappers */
.recharts-responsive-container {
  font-family: inherit !important;
}

.recharts-tooltip-cursor {
  fill: var(--rp-border) !important;
  opacity: 0.25 !important;
}

.custom-recharts-tooltip {
  background: var(--rp-surface) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid var(--rp-border) !important;
  border-radius: 10px !important;
  box-shadow: var(--card-shadow) !important;
  padding: 12px 16px !important;
}

.placeholder\:text-\[\#4b5563\]::-moz-placeholder {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.placeholder\:text-\[\#4b5563\]::placeholder {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.last\:mb-0:last-child {
  margin-bottom: 0px;
}

.last\:mt-0:last-child {
  margin-top: 0px;
}

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

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

.last\:border-t-0:last-child {
  border-top-width: 0px;
}

.last\:pb-0:last-child {
  padding-bottom: 0px;
}

.last\:pt-0:last-child {
  padding-top: 0px;
}

.even\:bg-\[rgba\(255\2c 255\2c 255\2c 0\.02\)\]:nth-child(even) {
  background-color: rgba(255,255,255,0.02);
}

.hover\:-translate-y-\[0\.5px\]:hover {
  --tw-translate-y: -0.5px;
  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\:-translate-y-\[2px\]:hover {
  --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));
}

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

.hover\:border-\[rgba\(245\2c 158\2c 11\2c 0\.2\)\]:hover {
  border-color: rgba(245,158,11,0.2);
}

.hover\:border-\[rgba\(245\2c 158\2c 11\2c 0\.3\)\]:hover {
  border-color: rgba(245,158,11,0.3);
}

.hover\:border-\[var\(--rp-gold\)\]:hover {
  border-color: var(--rp-gold);
}

.hover\:border-blue-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));
}

.hover\:bg-\[\#334155\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(51 65 85 / var(--tw-bg-opacity, 1));
}

.hover\:bg-\[\#dc2626\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}

.hover\:bg-\[rgba\(255\2c 255\2c 255\2c 0\.02\)\]:hover {
  background-color: rgba(255,255,255,0.02);
}

.hover\:bg-\[rgba\(255\2c 255\2c 255\2c 0\.03\)\]:hover {
  background-color: rgba(255,255,255,0.03);
}

.hover\:bg-\[rgba\(255\2c 255\2c 255\2c 0\.04\)\]:hover {
  background-color: rgba(255,255,255,0.04);
}

.hover\:bg-\[rgba\(255\2c 255\2c 255\2c 0\.06\)\]:hover {
  background-color: rgba(255,255,255,0.06);
}

.hover\:bg-\[rgba\(255\2c 255\2c 255\2c 0\.12\)\]:hover {
  background-color: rgba(255,255,255,0.12);
}

.hover\:bg-\[var\(--rp-border\)\]:hover {
  background-color: var(--rp-border);
}

.hover\:bg-\[var\(--rp-border\2c \#1e293b\)\]:hover {
  background-color: var(--rp-border,#1e293b);
}

.hover\:bg-\[var\(--rp-gold-strong\)\]:hover {
  background-color: var(--rp-gold-strong);
}

.hover\:bg-\[var\(--rp-surface\)\]:hover {
  background-color: var(--rp-surface);
}

.hover\:bg-\[var\(--rp-surface-soft\)\]:hover {
  background-color: var(--rp-surface-soft);
}

.hover\:bg-blue-500\/25:hover {
  background-color: rgb(59 130 246 / 0.25);
}

.hover\:bg-gray-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

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

.hover\:bg-green-500\/25:hover {
  background-color: rgb(34 197 94 / 0.25);
}

.hover\:bg-red-500\/20:hover {
  background-color: rgb(239 68 68 / 0.2);
}

.hover\:bg-white\/10:hover {
  background-color: rgb(255 255 255 / 0.1);
}

.hover\:bg-white\/5:hover {
  background-color: rgb(255 255 255 / 0.05);
}

.hover\:bg-white\/\[0\.02\]:hover {
  background-color: rgb(255 255 255 / 0.02);
}

.hover\:bg-white\/\[0\.04\]:hover {
  background-color: rgb(255 255 255 / 0.04);
}

.hover\:bg-opacity-80:hover {
  --tw-bg-opacity: 0.8;
}

.hover\:text-\[var\(--rp-danger\)\]:hover {
  color: var(--rp-danger);
}

.hover\:text-\[var\(--rp-gold\)\]:hover {
  color: var(--rp-gold);
}

.hover\:text-\[var\(--rp-gold\2c \#fbbf24\)\]:hover {
  color: var(--rp-gold,#fbbf24);
}

.hover\:text-\[var\(--rp-text\)\]:hover {
  color: var(--rp-text);
}

.hover\:text-\[var\(--rp-text-soft\)\]:hover {
  color: var(--rp-text-soft);
}

.hover\:text-gray-700:hover {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.hover\:text-red-400:hover {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}

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

.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

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

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

.hover\:opacity-70:hover {
  opacity: 0.7;
}

.hover\:opacity-90:hover {
  opacity: 0.9;
}

.hover\:shadow-\[0_18px_32px_rgba\(245\2c 158\2c 11\2c 0\.25\)\]:hover {
  --tw-shadow: 0 18px 32px rgba(245,158,11,0.25);
  --tw-shadow-colored: 0 18px 32px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.hover\:shadow-\[0_18px_42px_rgba\(0\2c 0\2c 0\2c 0\.5\)\]:hover {
  --tw-shadow: 0 18px 42px rgba(0,0,0,0.5);
  --tw-shadow-colored: 0 18px 42px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

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

.focus\:border-\[rgba\(245\2c 158\2c 11\2c 0\.42\)\]:focus {
  border-color: rgba(245,158,11,0.42);
}

.focus\:border-\[var\(--rp-danger\)\]:focus {
  border-color: var(--rp-danger);
}

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

.focus\:shadow-\[0_0_0_4px_rgba\(245\2c 158\2c 11\2c 0\.08\)\]:focus {
  --tw-shadow: 0 0 0 4px rgba(245,158,11,0.08);
  --tw-shadow-colored: 0 0 0 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);
}

.focus\:shadow-\[0_0_0_4px_rgba\(248\2c 113\2c 113\2c 0\.12\)\]:focus {
  --tw-shadow: 0 0 0 4px rgba(248,113,113,0.12);
  --tw-shadow-colored: 0 0 0 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);
}

.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-blue-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}

.active\:translate-y-0:active {
  --tw-translate-y: 0px;
  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));
}

.active\:cursor-grabbing:active {
  cursor: grabbing;
}

.active\:bg-\[\#1e293b\]:active {
  --tw-bg-opacity: 1;
  background-color: rgb(30 41 59 / var(--tw-bg-opacity, 1));
}

.active\:bg-\[\#991b1b\]:active {
  --tw-bg-opacity: 1;
  background-color: rgb(153 27 27 / var(--tw-bg-opacity, 1));
}

.active\:bg-\[rgba\(255\2c 255\2c 255\2c 0\.04\)\]:active {
  background-color: rgba(255,255,255,0.04);
}

.active\:brightness-95:active {
  --tw-brightness: brightness(.95);
  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);
}

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

.disabled\:opacity-30:disabled {
  opacity: 0.3;
}

.disabled\:opacity-40:disabled {
  opacity: 0.4;
}

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

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

.disabled\:hover\:translate-y-0:hover:disabled {
  --tw-translate-y: 0px;
  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));
}

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

.disabled\:hover\:shadow-\[0_14px_28px_rgba\(245\2c 158\2c 11\2c 0\.15\)\]:hover:disabled {
  --tw-shadow: 0 14px 28px rgba(245,158,11,0.15);
  --tw-shadow-colored: 0 14px 28px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

@media (min-width: 640px) {

  .sm\:block {
    display: block;
  }

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

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

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

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

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

@media (min-width: 768px) {

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

  .md\:inline {
    display: inline;
  }

  .md\:w-44 {
    width: 11rem;
  }

  .md\:w-64 {
    width: 16rem;
  }

  .md\:w-72 {
    width: 18rem;
  }

  .md\:w-80 {
    width: 20rem;
  }

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

  .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\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

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

  .md\:p-6 {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {

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

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

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .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\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

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

  .lg\:grid-cols-\[1\.4fr_1fr\] {
    grid-template-columns: 1.4fr 1fr;
  }

  .lg\:grid-cols-\[1fr_280px\] {
    grid-template-columns: 1fr 280px;
  }
}


