:root {
  color-scheme: light;
  --green-900: #075f2d;
  --green-800: #086b32;
  --green-700: #0d7b3a;
  --green-500: #43b96a;
  --navy-950: #081b2f;
  --navy-800: #19314e;
  --navy-600: #52637b;
  --white: #ffffff;
  --surface: #ffffff;
  --border: #d8dee7;
  --border-strong: #bdc8d5;
  --error: #b42318;
  --error-soft: #fff3f2;
  --success-soft: #ecfdf3;
  --shadow: 0 24px 80px rgb(5 27 46 / 20%);
  --radius-panel: 30px;
  --radius-control: 13px;
  --transition: 180ms ease;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-950);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--navy-950);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
select,
label,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   PARKIN LOGIN — RESPONSIVE LEFT PANEL IMAGE
   ========================================================= */

/* Local contrast layer: improves text readability without hiding the photo. */

/* MacBook / standard laptop heights */

/* iPad and narrow desktop */
@media (min-width: 921px) and (max-width: 1180px) {
  .auth-shell {
    padding-inline: 34px;
  }
}

/* Large desktop and external display */

/* Tablet/mobile stacked layout */

/* =========================================================
   PARKIN LOGIN — LEFT HERO PANEL ONLY
   English + Arabic, responsive and conflict-free.
   Other dashboard/auth views remain unchanged.
   ========================================================= */

/* Arabic hero: same stable geometry, mirrored content order. */

/* Short MacBook and laptop screens */

/* iPad and narrow desktop */

/* Large desktop and external display */

/* Tablet/mobile stacked layout */

/* =========================================================
   PARKIN LOGIN — LEFT HERO PANEL ONLY
   Final English + Arabic responsive layout.
   ========================================================= */

.login-page {
  display: grid;
  grid-template-columns: minmax(0, 53.5%) minmax(0, 46.5%);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.marketing-panel {
  --marketing-bg-position: 64% center;
  position: relative;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background-color: #f7c48e;
}

.marketing-panel::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: url("/public/assets/parkin-valet-hero.jpg");
  background-repeat: no-repeat;
  background-position: var(--marketing-bg-position);
  background-size: cover;
  pointer-events: none;
}

.marketing-panel::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgb(255 255 255 / 42%) 0%,
    rgb(255 255 255 / 24%) 32%,
    rgb(255 255 255 / 7%) 58%,
    transparent 76%
  );
  pointer-events: none;
}

.marketing-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 700px);
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(68px, 7.5vh, 104px) clamp(38px, 4vw, 72px)
    clamp(42px, 5vh, 70px);
}

.marketing-heading {
  width: min(100%, 540px);
}

.marketing-heading h1 {
  max-width: 540px;
  margin: 0;
  color: #05090d;
  font-size: clamp(2.55rem, 3.35vw, 4.15rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.marketing-heading h1 span {
  display: block;
}
.marketing-heading strong {
  color: var(--green-800);
  font-weight: inherit;
}

.accent-line {
  display: flex;
  width: 88px;
  height: 5px;
  margin: clamp(25px, 3vh, 33px) 0 clamp(24px, 3vh, 31px);
  overflow: hidden;
  border-radius: 999px;
}

.accent-line span:first-child {
  width: 56%;
  background: var(--green-900);
}
.accent-line span:last-child {
  flex: 1;
  background: #5ec986;
}

.marketing-heading p {
  max-width: 470px;
  margin: 0;
  color: #19314e;
  font-size: clamp(1rem, 1.12vw, 1.2rem);
  font-weight: 500;
  line-height: 1.48;
}

.feature-list {
  display: grid;
  width: min(100%, 520px);
  gap: clamp(24px, 3vh, 38px);
  margin-top: clamp(48px, 6vh, 76px);
}

.feature-item {
  display: grid;
  min-width: 0;
  grid-template-columns: clamp(72px, 5vw, 88px) minmax(0, 340px);
  align-items: center;
  gap: clamp(20px, 1.8vw, 28px);
}

.feature-item > div:last-child {
  width: 100%;
  min-width: 0;
}

.feature-icon {
  display: grid;
  width: clamp(72px, 5vw, 88px);
  aspect-ratio: 1;
  place-items: center;
  color: var(--green-900);
  border: 1px solid rgb(255 255 255 / 82%);
  border-radius: clamp(18px, 1.5vw, 23px);
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 12px 30px rgb(8 27 47 / 12%);
  backdrop-filter: blur(7px);
}

.feature-icon svg {
  width: clamp(31px, 2.5vw, 40px);
  height: clamp(31px, 2.5vw, 40px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-item h2 {
  margin: 0 0 7px;
  color: #05090d;
  font-size: clamp(1rem, 1.15vw, 1.24rem);
  font-weight: 800;
  line-height: 1.2;
}

.feature-item p {
  width: 100%;
  max-width: 340px;
  margin: 0;
  color: #19314e;
  font-size: clamp(0.9rem, 1vw, 1.04rem);
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Arabic: fixed physical alignment, no logical-margin ambiguity. */
[dir="rtl"] .login-page {
  direction: rtl;
}

[dir="rtl"] .marketing-panel {
  --marketing-bg-position: 38% center;
  direction: rtl;
}

[dir="rtl"] .marketing-panel::before {
  background-image: url("/public/assets/parkin-valet-hero-ar.jpg");
}

[dir="rtl"] .marketing-panel::after {
  background: linear-gradient(
    270deg,
    rgb(255 255 255 / 12%) 0%,
    rgb(255 255 255 / 5%) 36%,
    transparent 68%
  );
}

[dir="rtl"] .marketing-content {
  width: min(100%, 720px);
  margin-left: auto;
  margin-right: 0;
  padding-left: clamp(34px, 3.4vw, 62px);
  padding-right: clamp(44px, 4.4vw, 84px);
}

[dir="rtl"] .marketing-heading {
  width: min(100%, 590px);
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}

[dir="rtl"] .marketing-heading h1 {
  max-width: 590px;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: clamp(2.7rem, 3.55vw, 4.45rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.28;
  text-align: right;
}

[dir="rtl"] .marketing-heading p {
  max-width: 560px;
  margin-left: auto;
  margin-right: 0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: clamp(1.12rem, 1.35vw, 1.38rem);
  font-weight: 500;
  line-height: 1.72;
  text-align: right;
}

[dir="rtl"] .accent-line {
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .feature-list {
  width: min(100%, 590px);
  margin-left: auto;
  margin-right: 0;
}

[dir="rtl"] .feature-item {
  grid-template-columns: minmax(0, 410px) clamp(72px, 5vw, 88px);
  grid-template-areas: "copy icon";
  width: 100%;
  max-width: 590px;
  justify-content: end;
  direction: ltr;
}

[dir="rtl"] .feature-icon {
  grid-area: icon;
  justify-self: end;
}

[dir="rtl"] .feature-item > div:last-child {
  grid-area: copy;
  width: 100%;
  max-width: 410px;
  min-width: 0;
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .feature-item h2 {
  margin: 0 0 7px;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: clamp(1.18rem, 1.35vw, 1.48rem);
  font-weight: 800;
  line-height: 1.42;
  text-align: right;
}

[dir="rtl"] .feature-item p {
  width: 100%;
  max-width: 410px;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  font-size: clamp(1rem, 1.12vw, 1.18rem);
  font-weight: 500;
  line-height: 1.62;
  text-align: right;
}

@media (min-width: 1101px) and (max-height: 900px) {
  .marketing-content {
    padding: 46px clamp(36px, 3.8vw, 64px) 36px;
  }
  .marketing-heading h1 {
    font-size: clamp(2.4rem, 3vw, 3.5rem);
  }
  .accent-line {
    margin-block: 19px;
  }
  .marketing-heading p {
    font-size: 1rem;
  }
  .feature-list {
    width: min(100%, 430px);
    gap: 20px;
    margin-top: 36px;
  }
  .feature-item {
    grid-template-columns: 64px minmax(0, 300px);
    gap: 17px;
  }
  .feature-icon {
    width: 64px;
    border-radius: 18px;
  }
  .feature-icon svg {
    width: 31px;
    height: 31px;
  }
  .feature-item h2 {
    font-size: 1rem;
  }
  .feature-item p {
    max-width: 300px;
    font-size: 0.89rem;
    line-height: 1.42;
  }

  [dir="rtl"] .marketing-content {
    width: min(100%, 640px);
    padding-left: 30px;
    padding-right: clamp(38px, 4vw, 66px);
  }
  [dir="rtl"] .marketing-heading {
    width: min(100%, 530px);
  }
  [dir="rtl"] .marketing-heading h1 {
    max-width: 530px;
    font-size: clamp(2.4rem, 3.05vw, 3.55rem);
  }
  [dir="rtl"] .marketing-heading p {
    max-width: 510px;
    font-size: 1.08rem;
    line-height: 1.62;
  }
  [dir="rtl"] .feature-list {
    width: min(100%, 490px);
  }
  [dir="rtl"] .feature-item {
    grid-template-columns: minmax(0, 340px) 64px;
    max-width: 490px;
  }
  [dir="rtl"] .feature-item > div:last-child,
  [dir="rtl"] .feature-item p {
    max-width: 340px;
  }
  [dir="rtl"] .feature-item h2 {
    font-size: 1.08rem;
  }
  [dir="rtl"] .feature-item p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .login-page {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  }
  .marketing-panel {
    --marketing-bg-position: 67% center;
  }
  .marketing-content {
    width: 100%;
    max-width: 440px;
    padding: 52px 28px 42px;
  }
  .marketing-heading {
    max-width: 400px;
  }
  .marketing-heading h1 {
    max-width: 390px;
    font-size: clamp(2.15rem, 4vw, 3.15rem);
  }
  .marketing-heading p {
    max-width: 370px;
    font-size: 1rem;
  }
  .feature-list {
    width: min(100%, 390px);
    gap: 22px;
    margin-top: 44px;
  }
  .feature-item {
    grid-template-columns: 64px minmax(0, 280px);
    gap: 16px;
  }
  .feature-icon {
    width: 64px;
    border-radius: 17px;
  }
  .feature-icon svg {
    width: 31px;
    height: 31px;
  }
  .feature-item h2 {
    font-size: 1rem;
  }
  .feature-item p {
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  [dir="rtl"] .marketing-panel {
    --marketing-bg-position: 38% center;
  }
  [dir="rtl"] .marketing-content {
    width: 100%;
    max-width: 470px;
    margin-left: auto;
    margin-right: 0;
    padding: 50px 26px 42px 34px;
  }
  [dir="rtl"] .marketing-heading {
    width: min(100%, 430px);
  }
  [dir="rtl"] .marketing-heading h1 {
    max-width: 430px;
    font-size: clamp(2.25rem, 4vw, 3.15rem);
  }
  [dir="rtl"] .marketing-heading p {
    max-width: 420px;
    font-size: 1.05rem;
    line-height: 1.62;
  }
  [dir="rtl"] .feature-list {
    width: min(100%, 420px);
  }
  [dir="rtl"] .feature-item {
    grid-template-columns: minmax(0, 300px) 64px;
    max-width: 420px;
    gap: 16px;
  }
  [dir="rtl"] .feature-item > div:last-child,
  [dir="rtl"] .feature-item p {
    max-width: 300px;
  }
  [dir="rtl"] .feature-item h2 {
    font-size: 1.08rem;
  }
  [dir="rtl"] .feature-item p {
    font-size: 0.94rem;
    line-height: 1.52;
  }
}

@media (min-width: 1600px) {
  .marketing-content {
    width: min(100%, 760px);
    padding: clamp(84px, 8vh, 120px) clamp(60px, 4.4vw, 94px) 68px;
  }
  .marketing-heading {
    width: min(100%, 560px);
  }
  .marketing-heading h1 {
    max-width: 560px;
    font-size: clamp(3.25rem, 3.4vw, 4.75rem);
  }
  .marketing-heading p {
    max-width: 510px;
    font-size: clamp(1.08rem, 1.08vw, 1.3rem);
  }
  .feature-list {
    width: min(100%, 560px);
    gap: 34px;
    margin-top: 68px;
  }
  .feature-item {
    grid-template-columns: 88px minmax(0, 380px);
    gap: 28px;
  }
  .feature-icon {
    width: 88px;
  }
  .feature-item p {
    max-width: 380px;
    font-size: 1.05rem;
  }

  [dir="rtl"] .marketing-content {
    width: min(100%, 800px);
    padding-left: 54px;
    padding-right: clamp(72px, 5vw, 108px);
  }
  [dir="rtl"] .marketing-heading {
    width: min(100%, 650px);
  }
  [dir="rtl"] .marketing-heading h1 {
    max-width: 650px;
    font-size: clamp(3.6rem, 3.75vw, 5rem);
  }
  [dir="rtl"] .marketing-heading p {
    max-width: 620px;
    font-size: clamp(1.3rem, 1.35vw, 1.62rem);
  }
  [dir="rtl"] .feature-list {
    width: min(100%, 630px);
  }
  [dir="rtl"] .feature-item {
    grid-template-columns: minmax(0, 440px) 88px;
    max-width: 630px;
    gap: 28px;
  }
  [dir="rtl"] .feature-item > div:last-child,
  [dir="rtl"] .feature-item p {
    max-width: 440px;
  }
  [dir="rtl"] .feature-item h2 {
    font-size: 1.48rem;
  }
  [dir="rtl"] .feature-item p {
    font-size: 1.16rem;
  }
}

@media (max-width: 920px) {
  .login-page {
    display: block;
    overflow: visible;
  }
  .marketing-panel {
    --marketing-bg-position: 58% center;
    min-height: 420px;
  }
  .marketing-content {
    width: 100%;
    min-height: 420px;
    justify-content: flex-end;
    padding: 42px 28px 70px;
  }
  .marketing-heading {
    max-width: 520px;
  }
  .marketing-heading h1 {
    font-size: clamp(2.15rem, 6vw, 3.2rem);
  }
  .feature-list {
    display: none;
  }
  [dir="rtl"] .login-page {
    direction: ltr;
  }
  [dir="rtl"] .marketing-panel {
    --marketing-bg-position: 42% center;
  }
  [dir="rtl"] .marketing-content {
    width: 100%;
    padding: 42px 28px 70px;
  }
  [dir="rtl"] .marketing-heading {
    width: min(100%, 520px);
  }
  [dir="rtl"] .marketing-heading h1 {
    font-size: clamp(2.25rem, 6.5vw, 3.3rem);
  }
}

@media (max-width: 520px) {
  .marketing-panel {
    --marketing-bg-position: 55% 62%;
    min-height: 270px;
  }
  .marketing-content {
    min-height: 270px;
    padding: max(34px, env(safe-area-inset-top)) 23px 62px;
  }
  .marketing-heading h1 {
    max-width: 310px;
    font-size: clamp(2rem, 9.5vw, 2.55rem);
    line-height: 1.13;
  }
  .marketing-heading p {
    max-width: 320px;
    font-size: 0.94rem;
  }
  .accent-line {
    margin-block: 20px;
  }
  [dir="rtl"] .marketing-panel {
    --marketing-bg-position: 45% 62%;
  }
  [dir="rtl"] .marketing-content {
    min-height: 270px;
    padding: max(34px, env(safe-area-inset-top)) 23px 62px;
  }
  [dir="rtl"] .marketing-heading h1 {
    max-width: 330px;
    font-size: clamp(2.1rem, 10vw, 2.7rem);
  }
  [dir="rtl"] .marketing-heading p {
    max-width: 330px;
    font-size: 0.96rem;
  }
}

.auth-panel {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  border-radius: var(--radius-panel) 0 0 var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}

.auth-shell {
  display: flex;
  width: min(100%, 680px);
  min-height: 100%;
  margin-inline: auto;
  flex-direction: column;
  padding: max(38px, env(safe-area-inset-top)) clamp(38px, 5vw, 72px)
    max(42px, env(safe-area-inset-bottom));
}

.language-control {
  position: relative;
  display: flex;
  align-self: flex-end;
  align-items: center;
  min-width: 184px;
  height: 58px;
  padding-inline-start: 20px;
  color: #11161a;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
}

.language-control:focus-within {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgb(13 123 58 / 12%);
}

.language-control > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.language-control select {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 14px;
  color: #11161a;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 700;
  appearance: auto;
}

.form-wrap {
  width: 100%;
  margin: auto 0;
  padding: 22px 0 16px;
}

.parkin-logo {
  width: clamp(245px, 24vw, 320px);
  height: auto;
  margin: 0 auto 20px;
  object-fit: contain;
}

.welcome-copy {
  margin-bottom: clamp(42px, 5vh, 58px);
  text-align: center;
}

.welcome-copy h2 {
  margin: 0 0 10px;
  color: #05090d;
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.welcome-copy p {
  margin: 0;
  color: var(--navy-600);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.5;
}

#login-form {
  display: grid;
  gap: 27px;
}

.field-group {
  min-width: 0;
}

.field-group > label,
.label-row label {
  color: #070b0e;
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1.3;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.label-row a {
  color: var(--green-800);
  font-size: 0.93rem;
  font-weight: 680;
  text-decoration: none;
  transition: color var(--transition);
}

.label-row a:hover {
  color: var(--green-900);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.input-shell {
  display: flex;
  width: 100%;
  height: 74px;
  margin-top: 13px;
  align-items: center;
  gap: 17px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.input-shell:focus-within {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgb(13 123 58 / 11%);
}

.input-shell.is-invalid {
  border-color: var(--error);
  background: var(--error-soft);
  box-shadow: 0 0 0 4px rgb(180 35 24 / 8%);
}

.input-shell > svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  color: #05090d;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.input-shell input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--navy-950);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 520;
}

.input-shell input::placeholder {
  color: #68778c;
  opacity: 1;
}

.password-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: #05090d;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color var(--transition);
}

.password-toggle:hover {
  background: #f1f5f3;
}

.password-toggle:focus-visible {
  outline: 3px solid rgb(13 123 58 / 24%);
  outline-offset: 1px;
}

.password-toggle svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.password-toggle .eye-closed {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-closed {
  display: block;
}

.field-error {
  min-height: 20px;
  margin: 7px 2px 0;
  color: var(--error);
  font-size: 0.83rem;
  font-weight: 620;
  line-height: 1.35;
}

.field-error:empty {
  min-height: 0;
  margin-top: 0;
}

.form-options {
  margin-top: -8px;
}

.remember-control {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-600);
  font-size: 0.94rem;
  font-weight: 560;
  cursor: pointer;
  user-select: none;
}

.remember-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  background: var(--white);
  transition:
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.custom-checkbox svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  opacity: 0;
  transform: scale(0.75);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.remember-control input:checked + .custom-checkbox {
  border-color: var(--green-800);
  background: var(--green-800);
}

.remember-control input:checked + .custom-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.remember-control input:focus-visible + .custom-checkbox {
  box-shadow: 0 0 0 4px rgb(13 123 58 / 13%);
}

.sign-in-button {
  display: grid;
  width: 100%;
  min-height: 74px;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  padding: 0 25px;
  color: var(--white);
  border: 0;
  border-radius: 12px;
  background: linear-gradient(100deg, var(--green-900), var(--green-800));
  box-shadow: 0 12px 28px rgb(7 95 45 / 20%);
  font-size: 1.08rem;
  font-weight: 720;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.sign-in-button:hover {
  box-shadow: 0 16px 34px rgb(7 95 45 / 28%);
  filter: brightness(1.04);
  transform: translateY(-1px);
}

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

.sign-in-button:focus-visible {
  outline: 4px solid rgb(13 123 58 / 22%);
  outline-offset: 3px;
}

.sign-in-button:disabled {
  cursor: wait;
  filter: saturate(0.75);
  transform: none;
}

.sign-in-button .button-label {
  grid-column: 2;
}

.sign-in-button > svg {
  width: 25px;
  height: 25px;
  grid-column: 3;
  justify-self: end;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform var(--transition);
}

[dir="rtl"] .sign-in-button > svg {
  transform: scaleX(-1);
}

.sign-in-button:hover > svg {
  transform: translateX(3px);
}

[dir="rtl"] .sign-in-button:hover > svg {
  transform: scaleX(-1) translateX(3px);
}

.button-spinner {
  display: none;
  width: 22px;
  height: 22px;
  grid-column: 1;
  justify-self: start;
  border: 2px solid rgb(255 255 255 / 40%);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.sign-in-button.is-loading .button-spinner {
  display: block;
}

.form-status {
  display: none;
  min-height: 46px;
  margin-top: -12px;
  padding: 12px 14px;
  color: var(--green-900);
  border: 1px solid #a6e4ba;
  border-radius: 10px;
  background: var(--success-soft);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}

.form-status.is-visible {
  display: block;
}

.security-note {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  gap: 22px;
  align-items: center;
  margin-top: clamp(28px, 4vh, 44px);
}

.security-line {
  height: 1px;
  background: var(--border);
}

.security-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--green-700);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fbfdfc;
  box-shadow: 0 5px 14px rgb(8 27 47 / 5%);
}

.security-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.security-copy {
  margin: 18px 0 0;
  color: var(--navy-600);
  font-size: 0.93rem;
  font-weight: 520;
  text-align: center;
}

.auth-shell footer {
  margin-top: auto;
  padding-top: 20px;
  color: var(--navy-600);
  font-size: 0.9rem;
  font-weight: 520;
  text-align: center;
}

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

@media (max-height: 880px) and (min-width: 921px) {
  .auth-shell {
    padding-block: 25px 26px;
  }

  .language-control {
    height: 50px;
  }

  .form-wrap {
    padding-top: 8px;
  }

  .parkin-logo {
    width: 230px;
    margin-bottom: 8px;
  }

  .welcome-copy {
    margin-bottom: 26px;
  }

  #login-form {
    gap: 16px;
  }

  .input-shell,
  .sign-in-button {
    height: 60px;
    min-height: 60px;
  }

  .security-note {
    margin-top: 22px;
  }

  .security-copy {
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  .auth-panel {
    margin-top: -24px;
    border-radius: 24px 24px 0 0;
  }

  .auth-shell {
    padding-inline: 21px;
  }

  .language-control {
    min-width: 156px;
    height: 48px;
    padding-inline-start: 14px;
  }

  .language-control > svg {
    width: 22px;
    height: 22px;
  }

  .language-control select {
    padding-inline-start: 10px;
    font-size: 0.92rem;
  }

  .parkin-logo {
    width: 215px;
    margin-top: 2px;
  }

  .welcome-copy {
    margin-bottom: 29px;
  }

  .welcome-copy h2 {
    font-size: 1.9rem;
  }

  .welcome-copy p {
    font-size: 0.94rem;
  }

  #login-form {
    gap: 20px;
  }

  .input-shell {
    height: 60px;
    gap: 13px;
    margin-top: 10px;
    padding-inline: 15px;
  }

  .input-shell > svg {
    width: 24px;
    height: 24px;
  }

  .input-shell input {
    font-size: 0.94rem;
  }

  .label-row {
    gap: 10px;
  }

  .label-row a {
    font-size: 0.83rem;
  }

  .field-group > label,
  .label-row label {
    font-size: 0.92rem;
  }

  .sign-in-button {
    min-height: 60px;
  }

  .security-note {
    grid-template-columns: 1fr 48px 1fr;
    gap: 13px;
  }

  .security-icon {
    width: 48px;
    height: 48px;
  }

  .security-copy,
  .auth-shell footer {
    font-size: 0.82rem;
  }
}

@media (max-width: 370px) {
  .label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .parkin-logo {
    width: 190px;
  }

  .input-shell {
    padding-inline: 12px;
  }
}

@media (min-width: 640px) and (max-width: 920px) and (max-height: 600px) {
  .auth-panel {
    min-height: 100dvh;
    margin-top: 0;
    overflow: auto;
    border-radius: var(--radius-panel) 0 0 var(--radius-panel);
  }

  .auth-shell {
    padding: 20px 34px;
  }

  .language-control {
    height: 46px;
  }

  .parkin-logo {
    width: 200px;
  }

  .welcome-copy {
    margin-bottom: 20px;
  }

  #login-form {
    gap: 13px;
  }

  .input-shell,
  .sign-in-button {
    height: 56px;
    min-height: 56px;
  }

  .security-note {
    margin-top: 20px;
  }
}

[dir="rtl"] .welcome-copy {
  width: 100%;
  text-align: center;
}

[dir="rtl"] .security-copy,
[dir="rtl"] .auth-shell footer {
  width: 100%;
  text-align: center;
}

[dir="rtl"] .auth-panel {
  direction: rtl;
}

[dir="rtl"] body,
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] select {
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

@media (min-width: 921px) {
  [dir="rtl"] .auth-panel {
    border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  }
}

@media (min-width: 640px) and (max-width: 920px) and (max-height: 600px) {
  [dir="rtl"] .auth-panel {
    border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  }
}

[dir="rtl"] .language-control {
  align-self: flex-start;
}

[dir="rtl"] .welcome-copy h2 {
  font-size: clamp(2.2rem, 3.2vw, 2.75rem);
  font-weight: 800;
}

[dir="rtl"] .welcome-copy p {
  font-size: 1.05rem;
  font-weight: 500;
}

[dir="rtl"] .field-group > label,
[dir="rtl"] .label-row label {
  font-size: 1.02rem;
  font-weight: 700;
}

[dir="rtl"] .label-row a,
[dir="rtl"] .remember-control {
  font-size: 0.98rem;
  font-weight: 600;
}

[dir="rtl"] .input-shell input,
[dir="rtl"] .language-control select {
  font-size: 1rem;
  font-weight: 500;
}

[dir="rtl"] .sign-in-button {
  font-size: 1.08rem;
  font-weight: 700;
}

[dir="rtl"] .security-copy,
[dir="rtl"] .auth-shell footer {
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 520px) {
  [dir="rtl"] .welcome-copy h2 {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.hidden {
  display: none !important;
}

body.dashboard-open {
  background:
    radial-gradient(circle at top left, rgb(6 107 50 / 9%), transparent 28rem),
    #f7fafb;
}

.dashboard-page {
  --dash-bg: #f7fafb;
  --dash-ink: #071322;
  --dash-muted: #65748b;
  --dash-line: #e4eaf0;
  --dash-soft-line: #eef3f7;
  --dash-card: #ffffff;
  --dash-sidebar: #001d1b;
  --dash-sidebar-2: #002b27;
  --dash-green: #0a9b55;
  --dash-green-dark: #066b37;
  --dash-blue: #1d70f2;
  --dash-purple: #744ce6;
  --dash-orange: #ffa11a;
  --dash-red: #ff363d;
  --dash-shadow: 0 18px 46px rgb(15 31 54 / 7%);
  --dash-radius: 14px;
  direction: ltr;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--dash-ink);
  background: var(--dash-bg);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

.dashboard-page svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  width: 242px;
  height: 100vh;
  height: 100dvh;
  flex: 0 0 242px;
  flex-direction: column;
  overflow: hidden auto;
  padding: 31px 21px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 0%, rgb(10 155 85 / 30%), transparent 21rem),
    radial-gradient(
      circle at 100% 45%,
      rgb(19 185 104 / 16%),
      transparent 20rem
    ),
    linear-gradient(180deg, var(--dash-sidebar), var(--dash-sidebar-2));
  scrollbar-width: thin;
}

.dashboard-sidebar::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 18%,
    black 80%,
    transparent
  );
}

.sidebar-top,
.dashboard-nav,
.today-summary,
.manager-card {
  position: relative;
  z-index: 1;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 41px;
}

.dashboard-logo {
  position: relative;
  display: block;
  width: 132px;
  height: 48px;
  color: #fff;
  text-decoration: none;
}

.sidebar-logo-stack,
.sidebar-logo-stack img,
.sidebar-logo-green-crop {
  position: absolute;
  inset: 0;
}

.sidebar-logo-stack {
  display: block;
  overflow: hidden;
}

.sidebar-logo-stack img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sidebar-logo-base {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.sidebar-logo-green-crop {
  overflow: hidden;
  clip-path: inset(0 0 0 72%);
  background: #22d367;
  mask: url("/public/assets/parkin-logo.png") center / contain no-repeat;
  -webkit-mask: url("/public/assets/parkin-logo.png") center / contain no-repeat;
}

.sidebar-logo-green-crop img {
  display: none;
}

.sidebar-collapse,
.icon-button,
.profile-button,
.filter-button,
.manager-card,
.quick-grid button {
  appearance: none;
}

.sidebar-collapse {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  border: 0;
  border-radius: 9px;
  background: rgb(255 255 255 / 9%);
}

.sidebar-collapse svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.dashboard-nav {
  display: grid;
  gap: 6px;
}

.dashboard-nav p {
  margin: 19px 0 8px;
  color: rgb(255 255 255 / 70%);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.dashboard-nav p:first-child {
  margin-top: 0;
}

.dashboard-nav a {
  display: grid;
  min-height: 47px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.dashboard-nav a:hover,
.dashboard-nav a.is-active {
  border-color: rgb(19 185 104 / 26%);
  background: linear-gradient(100deg, #0c8f49, #04743b);
  box-shadow: 0 10px 26px rgb(3 117 61 / 22%);
}

.dashboard-nav a:hover {
  transform: translateX(2px);
}

.dashboard-nav svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.95;
}

.dashboard-nav em {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  color: #fff;
  border-radius: 999px;
  background: var(--dash-green);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.dashboard-nav em.danger {
  background: var(--dash-red);
}

.today-summary {
  margin-top: auto;
  padding: 20px 18px;
  border: 1px solid rgb(32 217 116 / 18%);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(8 129 67 / 34%), rgb(0 74 52 / 54%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.today-summary p {
  margin: 0 0 15px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.today-summary dl,
.today-summary dt,
.today-summary dd {
  margin: 0;
}

.today-summary dl {
  display: grid;
  gap: 13px;
}

.today-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}

.today-summary dt {
  color: rgb(255 255 255 / 84%);
}

.today-summary dd {
  color: #fff;
  font-weight: 850;
}

.today-summary a {
  display: block;
  margin-top: 18px;
  color: #30e377;
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.manager-card {
  display: grid;
  width: 100%;
  grid-template-columns: 51px 1fr 18px;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 21px 0 0;
  color: #fff;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / 12%);
  background: transparent;
  text-align: left;
}

.avatar,
.profile-button span {
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 18%), transparent),
    var(--dash-green);
  font-weight: 850;
}

.avatar {
  width: 51px;
  height: 51px;
}

.manager-card strong,
.manager-card small {
  display: block;
}

.manager-card strong {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.manager-card small {
  color: rgb(255 255 255 / 68%);
  font-size: 0.78rem;
}

.manager-card .online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: rgb(255 255 255 / 78%);
}

.manager-card .online::before {
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: #11cb62;
}

.manager-card svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 29px 29px 24px;
  outline: 0;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
}

.dashboard-title h1 {
  margin: 0 0 7px;
  color: #05090d;
  font-size: clamp(1.9rem, 2.2vw, 2.18rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.dashboard-title p {
  margin: 0;
  color: #33445f;
  font-size: 0.94rem;
  font-weight: 500;
}

.dashboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.filter-button,
.icon-button,
.profile-button {
  display: inline-grid;
  min-height: 54px;
  align-items: center;
  color: #05090d;
  border: 1px solid var(--dash-line);
  background: #fff;
  box-shadow: 0 8px 24px rgb(15 31 54 / 5%);
}

.filter-button {
  grid-template-columns: 22px auto 18px;
  gap: 13px;
  min-width: 236px;
  padding: 0 17px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-button svg,
.icon-button svg,
.profile-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.icon-button {
  position: relative;
  width: 50px;
  height: 54px;
  place-items: center;
  border-color: transparent;
  box-shadow: none;
  background: transparent;
}

.notification span {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  color: #fff;
  border: 2px solid var(--dash-bg);
  border-radius: 999px;
  background: var(--dash-green);
  font-size: 0.68rem;
  font-weight: 900;
}

.profile-button {
  grid-template-columns: 38px 16px;
  gap: 7px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.profile-button span {
  width: 38px;
  height: 38px;
  font-size: 0.83rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.metric-card,
.dashboard-panel {
  border: 1px solid var(--dash-line);
  border-radius: var(--dash-radius);
  background: var(--dash-card);
  box-shadow: var(--dash-shadow);
}

.metric-card {
  position: relative;
  min-height: 181px;
  overflow: hidden;
  padding: 22px 22px 16px;
}

.metric-card::after {
  display: none;
  content: none;
}

.metric-card.purple {
  --metric-color: var(--dash-purple);
}

.metric-card.blue {
  --metric-color: var(--dash-blue);
}

.metric-card.orange {
  --metric-color: var(--dash-orange);
}

.metric-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.metric-main > div {
  min-width: 0;
}

.metric-card:nth-child(1) .metric-main,
.metric-card:nth-child(2) .metric-main,
.metric-card:nth-child(4) .metric-main {
  max-width: none;
}

.metric-card:nth-child(3) .metric-main {
  grid-template-columns: 58px minmax(0, 1fr) 86px;
}

.metric-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--metric-color);
  box-shadow: 0 12px 22px
    color-mix(in srgb, var(--metric-color), transparent 75%);
}

.metric-icon svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.9;
}

.metric-card p {
  margin: 0 0 10px;
  color: #25344c;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  color: #05090d;
  font-size: 1.95rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
}

.metric-card small {
  display: block;
  position: relative;
  z-index: 4;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  color: var(--dash-green);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.25;
}

.sparkline {
  position: absolute;
  right: 22px;
  bottom: 64px;
  z-index: 2;
  width: clamp(112px, 30%, 154px);
  height: 68px;
  color: var(--metric-color);
  opacity: 1;
  pointer-events: none;
}

.sparkline path,
.efficiency-card svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.sparkline .spark-area {
  fill: color-mix(in srgb, var(--metric-color), transparent 88%);
  stroke: none;
}

.metric-footer {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  height: 62px;
  align-items: center;
  border-top: 1px solid var(--dash-soft-line);
}

.metric-footer.three {
  grid-template-columns: repeat(3, 1fr);
}

.metric-footer.two {
  grid-template-columns: repeat(2, 1fr);
}

.metric-footer span {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #25344c;
  border-inline-start: 1px solid var(--dash-soft-line);
  font-size: 0.72rem;
  font-weight: 600;
}

.metric-footer span:first-child {
  border-inline-start: 0;
}

.metric-footer strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.metric-footer.status span {
  grid-template-columns: auto auto;
  justify-content: center;
  justify-items: start;
  column-gap: 6px;
}

.metric-footer.status span strong {
  grid-column: 2;
}

.metric-footer.status span i {
  grid-row: span 2;
  align-self: center;
}

.green-dot,
.orange-dot,
.red-dot,
.blue-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.green-dot {
  background: var(--dash-green);
}

.orange-dot {
  background: var(--dash-orange);
}

.red-dot {
  background: var(--dash-red);
}

.blue-dot {
  background: var(--dash-blue);
}

.capacity-row {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  color: #26354e;
  font-size: 0.85rem;
  font-weight: 650;
}

.capacity-row i {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e7ee;
}

.capacity-row i span {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: var(--dash-blue);
}

.mini-donut,
.ring,
.driver-donut {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--ring-color, var(--dash-green)) var(--value),
    #e6ebf0 0
  );
}

.mini-donut {
  --ring-color: var(--dash-purple);
  position: relative;
  width: 82px;
  height: 82px;
}

.mini-donut::after,
.ring::after,
.driver-donut::after {
  position: absolute;
  content: "";
  border-radius: inherit;
  background: #fff;
}

.mini-donut::after {
  inset: 10px;
}

.mini-donut strong,
.mini-donut span {
  position: relative;
  z-index: 1;
  text-align: center;
}

.mini-donut strong {
  font-size: 1.36rem;
}

.mini-donut span {
  color: #1c2d44;
  font-size: 0.66rem;
  font-weight: 700;
}

.dashboard-panel {
  min-width: 0;
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.panel-heading h2 {
  margin: 0;
  color: #05090d;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.panel-heading h2 span {
  color: #40516b;
  font-weight: 600;
  text-transform: none;
}

.panel-heading a {
  flex: 0 0 auto;
  color: var(--dash-green-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(460px, 0.95fr) minmax(620px, 1.45fr);
  gap: 20px;
  margin-bottom: 20px;
}

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

.health-row {
  display: grid;
  min-width: 680px;
  grid-template-columns:
    minmax(180px, 1.5fr) 112px minmax(130px, 1fr)
    115px 100px;
  align-items: center;
  gap: 12px;
  min-height: 67px;
  border-bottom: 1px solid var(--dash-soft-line);
  color: #081526;
  font-size: 0.83rem;
}

.health-row:last-child {
  border-bottom: 0;
}

.health-head {
  min-height: 42px;
  color: #42536d;
  font-size: 0.76rem;
  font-weight: 850;
}

.location-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-cell b,
.map-location-list b,
.alert-list b,
.activity-list b {
  display: block;
  font-weight: 850;
}

.location-cell small,
.map-location-list small,
.alert-list small {
  display: block;
  margin-top: 4px;
  color: #65748b;
  font-size: 0.75rem;
  font-weight: 600;
}

.location-thumb {
  display: block;
  width: 41px;
  height: 41px;
  flex: 0 0 auto;
  border-radius: 8px;
  background-image:
    linear-gradient(rgb(0 0 0 / 4%), rgb(0 0 0 / 24%)),
    url("/public/assets/parkin-valet-hero.jpg");
  background-size: 310px 310px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 30%);
}

.location-thumb.riyadh {
  background-position: 44% 36%;
}

.location-thumb.hotel {
  background-position: 58% 43%;
}

.location-thumb.dammam {
  background-position: 67% 63%;
}

.location-thumb.jeddah {
  background-position: 20% 62%;
}

.location-thumb.makkah {
  background-position: 83% 55%;
}

.ring {
  --ring-color: var(--dash-green);
  position: relative;
  width: 43px;
  height: 43px;
  color: #05090d;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
}

.ring::after {
  inset: 5px;
}

.ring.green {
  --ring-color: var(--dash-green);
}

.ring.orange {
  --ring-color: var(--dash-orange);
}

.ring.red {
  --ring-color: var(--dash-red);
}

.ring {
  isolation: isolate;
}

.ring::after {
  position: absolute;
  z-index: -1;
}

.up {
  color: var(--dash-green) !important;
}

.down {
  color: var(--dash-red) !important;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #24344d;
  font-weight: 800;
}

.status-pill::before {
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
}

.status-pill.healthy::before {
  background: var(--dash-green);
}

.status-pill.busy::before {
  background: var(--dash-orange);
}

.status-pill.critical::before {
  background: var(--dash-red);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.map-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
  margin-bottom: 12px;
}

.map-metrics span {
  display: grid;
  min-height: 47px;
  place-items: center;
  color: #314259;
  border-radius: 10px;
  background: #f8fbfb;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
}

.map-metrics strong {
  display: inline;
  margin-inline-end: 5px;
  color: var(--dash-blue);
  font-size: 1.1rem;
  font-weight: 900;
}

.map-metrics span:nth-child(2) strong {
  color: var(--dash-green);
}

.map-metrics span:nth-child(3) strong,
.map-metrics span:nth-child(4) strong {
  color: var(--dash-orange);
}

.map-metrics span:nth-child(5) strong {
  color: #9ca8b7;
}

.map-canvas {
  position: relative;
  min-height: 331px;
  overflow: hidden;
  border: 1px solid var(--dash-soft-line);
  border-radius: 13px;
  background: linear-gradient(160deg, #f7fbfb, #ffffff);
}

.map-canvas::before {
  display: none;
  content: none;
}

.saudi-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.saudi-map * {
  vector-effect: non-scaling-stroke;
}

.map-water {
  fill: #f9fcfd;
  stroke: none;
}

.red-sea {
  fill: #dff5f9;
  stroke: none;
}

.gulf {
  fill: #e5f7fb;
  stroke: none;
}

.map-network {
  fill: url("#map-grid");
  stroke: none;
  opacity: 0.42;
}

#map-grid path {
  fill: none;
  stroke: #9caec2;
  stroke-width: 0.65;
  opacity: 0.32;
}

.saudi-outline {
  fill: #f8faf9;
  stroke: #d8e2ea;
  stroke-width: 1.1;
}

.saudi-inner-line {
  fill: none;
  stroke: #d8e2ea;
  stroke-width: 0.8;
  opacity: 0.8;
}

.map-country {
  fill: #485a70;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-anchor: middle;
}

.svg-pin path {
  stroke: #fff;
  stroke-width: 3;
}

.svg-pin circle:not(.pin-pulse) {
  fill: #fff;
  stroke: none;
}

.svg-pin text {
  fill: #203248;
  stroke: none;
  font-size: 13px;
  font-weight: 850;
}

.svg-pin-green path {
  fill: var(--dash-green);
}

.svg-pin-orange path {
  fill: var(--dash-orange);
}

.svg-pin-red path {
  fill: var(--dash-red);
}

.pin-pulse {
  fill: rgb(10 155 85 / 13%);
  stroke: rgb(10 155 85 / 10%);
  stroke-width: 18;
}

.map-label {
  position: absolute;
  color: #47566b;
  font-size: 0.83rem;
  font-weight: 650;
  text-transform: uppercase;
}

.map-label.saudi {
  left: 49%;
  top: 59%;
}

.map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--pin-color);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 80%);
  transform: rotate(-45deg);
}

.map-pin::after {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: currentColor;
}

.map-pin b {
  position: absolute;
  top: 26px;
  left: 13px;
  color: #1d2c42;
  font-size: 0.68rem;
  font-weight: 850;
  white-space: nowrap;
  transform: rotate(45deg);
}

.map-pin.green {
  --pin-color: var(--dash-green);
}

.map-pin.orange {
  --pin-color: var(--dash-orange);
}

.map-pin.red {
  --pin-color: var(--dash-red);
}

.riyadh-pin {
  left: 56%;
  top: 44%;
  width: 24px;
  height: 24px;
  box-shadow:
    0 0 0 10px rgb(10 155 85 / 13%),
    0 0 0 26px rgb(10 155 85 / 8%);
}

.jeddah-pin {
  left: 28%;
  top: 62%;
}

.tabuk-pin {
  left: 27%;
  top: 17%;
}

.madinah-pin {
  left: 28%;
  top: 38%;
}

.dammam-pin {
  left: 78%;
  top: 39%;
}

.khobar-pin {
  left: 70%;
  top: 26%;
}

.makkah-pin {
  left: 40%;
  top: 76%;
}

.map-zoom {
  position: absolute;
  right: 14px;
  bottom: 16px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 18px rgb(15 31 54 / 8%);
}

.map-zoom button {
  width: 45px;
  height: 38px;
  color: #22344a;
  border: 0;
  border-bottom: 1px solid var(--dash-line);
  background: #fff;
  font-size: 1.45rem;
}

.map-zoom button:last-child {
  border-bottom: 0;
}

.map-location-list {
  display: grid;
  gap: 13px;
}

.map-location-list article {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr) 47px minmax(82px, auto);
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 9px 11px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #fff;
}

.map-location-list .location-thumb {
  width: 47px;
  height: 47px;
  border-radius: 8px;
}

.map-location-list strong {
  text-align: right;
}

.map-location-list strong small {
  font-weight: 650;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr 1.1fr;
  gap: 20px;
}

.alert-list,
.activity-list,
.driver-summary ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.alert-list,
.activity-list {
  display: grid;
}

.alert-list li,
.activity-list li {
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 57px;
  border-bottom: 1px solid var(--dash-soft-line);
}

.activity-list li {
  grid-template-columns: 49px 1fr auto;
  min-height: 66px;
}

.alert-list li:last-child,
.activity-list li:last-child {
  border-bottom: 0;
}

.alert-icon,
.activity-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
}

.alert-icon.red {
  color: var(--dash-red);
  background: #fff0f0;
}

.alert-icon.orange {
  color: var(--dash-orange);
  background: #fff6e8;
}

.alert-list time,
.activity-list time {
  color: #53657e;
  font-size: 0.72rem;
  font-weight: 750;
}

.alert-list b,
.activity-list b {
  color: #09172a;
  font-size: 0.78rem;
}

.activity-icon {
  width: 43px;
  height: 43px;
  background: var(--activity-bg);
}

.activity-icon::before {
  content: none;
}

.activity-icon svg {
  width: 27px;
  height: 27px;
  color: var(--activity-color);
  stroke-width: 1.9;
}

.activity-icon.car {
  --activity-bg: #eafaf1;
  --activity-color: var(--dash-green);
}

.activity-icon.driver {
  --activity-bg: #edf4ff;
  --activity-color: var(--dash-blue);
}

.activity-icon.paid {
  --activity-bg: #eafaf1;
  --activity-color: var(--dash-green);
}

.activity-icon.rating {
  --activity-bg: #fff6e8;
  --activity-color: var(--dash-orange);
}

.activity-icon.place {
  --activity-bg: #f1edff;
  --activity-color: var(--dash-purple);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-grid button {
  display: grid;
  min-height: 96px;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  color: #061326;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.quick-grid button:hover {
  border-color: rgb(10 155 85 / 32%);
  box-shadow: 0 10px 24px rgb(10 155 85 / 10%);
  transform: translateY(-1px);
}

.quick-grid svg {
  width: 35px;
  height: 35px;
  color: var(--dash-green);
  stroke-width: 1.7;
}

.driver-summary {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) 118px;
  align-items: center;
  gap: 20px;
}

.driver-donut {
  --value: 71%;
  --ring-color: var(--dash-green);
  position: relative;
  width: min(100%, 178px);
  aspect-ratio: 1;
  margin-inline: auto;
  background: conic-gradient(
    var(--dash-green) 0 58%,
    var(--dash-orange) 58% 70%,
    var(--dash-red) 70% 82%,
    var(--dash-blue) 82% 100%
  );
}

.driver-donut::after {
  inset: 32px;
}

.driver-donut strong,
.driver-donut span {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  text-align: center;
}

.driver-donut strong {
  font-size: 2.9rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  transform: translateY(-12px);
}

.driver-donut span {
  margin-top: 0;
  color: #17263c;
  font-size: 0.8rem;
  font-weight: 750;
  transform: translateY(29px);
}

.driver-summary ul {
  display: grid;
  gap: 22px;
}

.driver-summary li {
  display: grid;
  grid-template-columns: 14px 34px 1fr;
  align-items: center;
  gap: 9px;
  color: #2c3d56;
  font-size: 0.83rem;
  font-weight: 700;
}

.driver-summary li b {
  color: #061326;
  font-weight: 900;
}

.efficiency-card {
  display: grid;
  grid-template-columns: 1fr auto 86px;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 12px 14px;
  color: #163827;
  border: 1px solid #d7f0df;
  border-radius: 9px;
  background: #eefaf3;
  font-size: 0.82rem;
  font-weight: 800;
}

.efficiency-card svg {
  width: 86px;
  height: 28px;
  color: var(--dash-green);
}

.dashboard-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 24px 0 0;
  color: #52657f;
  border-top: 1px solid var(--dash-line);
  font-size: 0.82rem;
  font-weight: 650;
}

@supports not (background: color-mix(in srgb, red, transparent 50%)) {
  .metric-icon {
    box-shadow: 0 12px 22px rgb(15 31 54 / 12%);
  }

  .sparkline .spark-area {
    fill: rgb(10 155 85 / 10%);
  }
}

@media (max-width: 1460px) {
  .dashboard-sidebar {
    width: 242px;
    flex-basis: 242px;
  }

  .dashboard-main {
    padding: 24px;
  }

  .dashboard-toolbar {
    gap: 11px;
  }

  .filter-button {
    min-width: 205px;
  }

  .metric-grid {
    gap: 16px;
  }

  .metric-card {
    padding-inline: 18px;
  }

  .metric-main {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 13px;
  }

  .metric-card:nth-child(1) .metric-main,
  .metric-card:nth-child(2) .metric-main,
  .metric-card:nth-child(4) .metric-main {
    max-width: calc(100% - clamp(112px, 34%, 140px));
  }

  .metric-card:nth-child(3) .metric-main {
    grid-template-columns: 52px minmax(0, 1fr) 74px;
  }

  .metric-icon {
    width: 52px;
    height: 52px;
  }

  .metric-card p {
    font-size: 0.68rem;
  }

  .metric-card strong {
    font-size: 1.66rem;
  }

  .metric-card small {
    max-width: 100%;
  }

  .sparkline {
    right: 14px;
    width: min(29%, 112px);
  }

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

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

@media (max-width: 1180px) {
  .dashboard-page {
    display: block;
  }

  .dashboard-sidebar {
    position: sticky;
    z-index: 20;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 18px 18px 14px;
    overflow: hidden;
  }

  .dashboard-sidebar::after,
  .today-summary,
  .manager-card,
  .dashboard-nav p {
    display: none;
  }

  .sidebar-top {
    margin-bottom: 14px;
  }

  .dashboard-nav {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .dashboard-nav::-webkit-scrollbar {
    display: none;
  }

  .dashboard-nav a {
    min-width: max-content;
    min-height: 43px;
    grid-template-columns: 21px auto auto;
    padding-inline: 13px 15px;
    white-space: nowrap;
  }

  .dashboard-main {
    padding: 22px;
  }

  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-toolbar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .metric-card:nth-child(1) .metric-main,
  .metric-card:nth-child(2) .metric-main,
  .metric-card:nth-child(4) .metric-main {
    max-width: none;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .dashboard-sidebar {
    padding-inline: 14px;
  }

  .dashboard-logo {
    width: 118px;
    height: 43px;
  }

  .sidebar-collapse {
    width: 34px;
    height: 34px;
  }

  .dashboard-nav a {
    min-height: 40px;
    gap: 9px;
    font-size: 0.84rem;
  }

  .dashboard-main {
    padding: 18px 14px 20px;
  }

  .dashboard-title h1 {
    font-size: 1.8rem;
  }

  .dashboard-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr 46px 46px 56px;
    gap: 8px;
    overflow: visible;
  }

  .filter-button {
    min-width: 0;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px;
    min-height: 48px;
    padding-inline: 12px;
    font-size: 0.74rem;
  }

  .filter-button svg:last-child {
    display: none;
  }

  .icon-button {
    width: 46px;
    height: 48px;
  }

  .profile-button {
    grid-template-columns: 34px 13px;
  }

  .profile-button span {
    width: 34px;
    height: 34px;
  }

  .metric-grid,
  .bottom-grid,
  .map-location-list {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 174px;
  }

  .metric-card small {
    max-width: 100%;
  }

  .metric-card:nth-child(3) .metric-main {
    grid-template-columns: 52px minmax(0, 1fr) 74px;
  }

  .operations-grid {
    display: block;
  }

  .operations-grid > * + * {
    margin-top: 16px;
  }

  .dashboard-panel {
    padding: 15px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .health-row {
    min-width: 600px;
  }

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

  .map-metrics span:first-child {
    grid-column: 1 / -1;
  }

  .map-canvas {
    min-height: 295px;
  }

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

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

  .driver-summary ul {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .driver-summary li {
    grid-template-columns: 12px 1fr;
    gap: 7px;
  }

  .driver-summary li b {
    grid-column: 2;
  }

  .efficiency-card {
    grid-template-columns: 1fr auto;
  }

  .efficiency-card svg {
    grid-column: 1 / -1;
    width: 100%;
  }

  .dashboard-footer {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 470px) {
  .dashboard-toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-button {
    grid-column: span 2;
  }

  .icon-button,
  .profile-button {
    justify-self: center;
  }

  .metric-main {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .metric-card:nth-child(1) .metric-main,
  .metric-card:nth-child(2) .metric-main,
  .metric-card:nth-child(4) .metric-main {
    max-width: calc(100% - clamp(112px, 36%, 150px));
  }

  .metric-card:nth-child(3) .metric-main {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .metric-card:nth-child(3) .mini-donut {
    position: absolute;
    top: 22px;
    right: 18px;
    width: 70px;
    height: 70px;
  }

  .sparkline {
    width: min(32%, 118px);
    opacity: 0.8;
  }

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

  .alert-list li,
  .activity-list li {
    grid-template-columns: 36px 1fr;
  }

  .alert-list time,
  .activity-list time {
    grid-column: 2;
  }

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

/* ===========================
   LOGIN LOADING OVERLAY
   Works on desktop, tablet, iPad, iPhone, and Android
=========================== */

.login-loader {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2147483647 !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-loader.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 10px solid #e2e2e2;
  border-top-color: #205937;
  animation: spin 0.9s linear infinite;
  box-shadow: 0 0 18px rgba(32, 89, 55, 0.45);
}

.login-loader p {
  margin: 0;
  color: #205937;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.clean-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.2vw, 20px);
  width: 100%;
  margin-bottom: 20px;
}

.clean-metrics .metric-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 190px;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(15 31 54 / 6%);
}

.clean-metrics .metric-top {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(90px, 34%);
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 22px 22px 0;
}

.clean-metrics .metric-info {
  min-width: 0;
}

.clean-metrics .metric-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 16px 30px color-mix(in srgb, currentColor, transparent 84%);
}

.clean-metrics .metric-purple .metric-icon {
  background: #744ce6;
}
.clean-metrics .metric-blue .metric-icon {
  background: #1d70f2;
}
.clean-metrics .metric-orange .metric-icon {
  background: #ff9f1a;
}

.clean-metrics .metric-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.9;
}

.clean-metrics .metric-info p {
  margin: 0 0 8px;
  color: #26354e;
  font-size: clamp(0.72rem, 0.72vw, 0.86rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
}

.clean-metrics .metric-info strong {
  display: block;
  color: #05090d;
  font-size: clamp(2rem, 2.5vw, 2.85rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.clean-metrics small {
  display: block;
  width: fit-content;
  max-width: calc(100% - 44px);
  margin: 14px 22px 18px;
  color: #0a9b55;
  font-size: clamp(0.86rem, 0.8vw, 0.98rem);
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
}

.clean-metrics .metric-chart {
  width: 100%;
  max-width: 122px;
  height: 42px;
  align-self: center;
  justify-self: end;
  overflow: visible;
}

.clean-metrics .metric-chart path {
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.clean-metrics .metric-chart .area {
  /* fill: currentColor; */
  opacity: 0.14;
  /* stroke: none; */
}

.clean-metrics .metric-purple .metric-chart {
  color: #744ce6;
}
.clean-metrics .metric-blue .metric-chart {
  color: #1d70f2;
}
.clean-metrics .metric-orange .metric-chart {
  color: #ff9f1a;
}

.clean-metrics .metric-footer {
  display: grid;
  position: static;
  min-height: 68px;
  margin-top: auto;
  align-items: center;
  padding: 0 18px;
  border-top: 1px solid #e6edf3;
  background: #fff;
}

.clean-metrics .metric-footer.three {
  grid-template-columns: repeat(3, 1fr);
}
.clean-metrics .metric-footer.two {
  grid-template-columns: repeat(2, 1fr);
}

.clean-metrics .metric-footer span {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 6px;
  color: #26354e;
  border-left: 1px solid #e6edf3;
  font-size: clamp(0.76rem, 0.78vw, 0.9rem);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
}

.clean-metrics .metric-footer span:first-child {
  border-left: 0;
}

.clean-metrics .metric-footer b {
  color: #05090d;
  font-size: clamp(1.1rem, 1.25vw, 1.35rem);
  font-weight: 900;
  line-height: 1;
}

.clean-metrics .metric-footer.status span {
  grid-template-columns: auto auto;
  justify-content: center;
  column-gap: 8px;
}

.clean-metrics .metric-footer.status i {
  grid-row: span 2;
  align-self: center;
}

.clean-metrics .capacity-box {
  margin-top: auto;
  padding: 18px 22px 22px;
  border-top: 1px solid #e6edf3;
  background: #fff;
}

.clean-metrics .capacity-box div {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  color: #26354e;
  font-size: clamp(0.9rem, 0.86vw, 1rem);
  font-weight: 850;
}

.clean-metrics .capacity-box i {
  display: block;
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e9f0;
}

.clean-metrics .capacity-box em {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: #1d70f2;
}

.clean-metrics .metric-donut {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 0 48%, transparent 49%),
    conic-gradient(var(--dash-purple) 0 78%, #e8edf3 78% 100%);
}

.clean-metrics .metric-donut::before {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: inherit;
  background: #fff;
}

.clean-metrics .metric-donut b,
.clean-metrics .metric-donut span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.clean-metrics .metric-donut b {
  top: 28px;
  font-size: 1.8rem;
  line-height: 1;
}

.clean-metrics .metric-donut span {
  top: 62px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #25334b;
}

@media (min-width: 1600px) {
  .clean-metrics {
    grid-template-columns: repeat(4, minmax(260px, 1fr));
  }
}

@media (max-width: 1280px) {
  .clean-metrics {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 640px) {
  .clean-metrics {
    grid-template-columns: 1fr;
  }
  .clean-metrics .metric-card {
    min-height: 190px;
  }
  .clean-metrics .metric-top {
    grid-template-columns: 56px minmax(0, 1fr) 92px;
    gap: 12px;
    min-height: 96px;
    padding: 20px 18px 0;
  }
  .clean-metrics .metric-icon {
    width: 52px;
    height: 52px;
  }
  .clean-metrics .metric-icon svg {
    width: 28px;
    height: 28px;
  }
  .clean-metrics .metric-info strong {
    font-size: 2.1rem;
  }
  .clean-metrics .metric-chart {
    max-width: 92px;
    height: 50px;
  }
  .clean-metrics .metric-donut {
    width: 78px;
    height: 78px;
  }
  .clean-metrics small {
    margin: 12px 18px 16px;
    font-size: 0.88rem;
  }
  .clean-metrics .metric-footer {
    min-height: 64px;
    padding-inline: 12px;
  }
  .clean-metrics .capacity-box {
    padding: 16px 18px 20px;
  }
}

@media (max-width: 430px) {
  .clean-metrics .metric-top {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .clean-metrics .metric-chart,
  .clean-metrics .metric-donut {
    position: absolute;
    top: 22px;
    right: 16px;
    z-index: 1;
  }
  .clean-metrics .metric-chart {
    width: 86px;
    height: 48px;
    opacity: 0.82;
  }
  .clean-metrics .metric-donut {
    width: 70px;
    height: 70px;
  }
  .clean-metrics .metric-info {
    padding-right: 88px;
  }
  .clean-metrics .metric-info p {
    max-width: 150px;
    font-size: 0.7rem;
  }
  .clean-metrics .metric-info strong {
    font-size: 2rem;
  }
  .clean-metrics small {
    max-width: calc(100% - 104px);
    margin: 10px 18px 16px;
  }
  .clean-metrics .metric-footer span {
    gap: 4px;
    font-size: 0.72rem;
  }
  .clean-metrics .metric-footer b {
    font-size: 1rem;
  }
}

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

/* FINAL FIX: Clean metric cards alignment */
.metric-grid.clean-metrics {
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 20px;
}

.clean-metrics .metric-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 220px;
  padding: 0 !important;
  overflow: hidden;
}

.clean-metrics .metric-top {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(110px, 34%);
  align-items: start;
  gap: 18px;
  min-height: 145px;
  padding: 26px 24px 0;
}

.clean-metrics .metric-info {
  padding-top: 2px;
}

.clean-metrics .metric-info p {
  margin: 0 0 12px;
}

.clean-metrics .metric-chart {
  width: 100%;
  max-width: 130px;
  height: 44px;
  justify-self: end;
  align-self: center;
  margin-top: 40px;
}

.clean-metrics small {
  display: block;
  align-self: end;
  margin: 0 24px 22px;
  color: var(--dash-green);
  font-size: 0.95rem;
  font-weight: 850;
}

.clean-metrics .metric-footer,
.clean-metrics .capacity-box {
  border-top: 1px solid #e6edf3;
}

.clean-metrics .metric-footer {
  min-height: 76px;
}

.clean-metrics .capacity-box {
  padding: 22px 24px 24px;
}

.clean-metrics .metric-donut {
  justify-self: end;
  align-self: center;
  margin-top: 0;
}

@media (max-width: 1460px) {
  .metric-grid.clean-metrics {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 760px) {
  .metric-grid.clean-metrics {
    grid-template-columns: 1fr;
  }
}

.locations-page {
  display: grid;
  gap: 22px;
}

.locations-screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.locations-screen-header h1 {
  margin: 0 0 8px;
  color: #05090d;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.locations-screen-header p {
  margin: 0;
  color: var(--dash-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.locations-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.locations-search {
  display: flex;
  align-items: center;
  width: 280px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: #fff;
}

.locations-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.locations-search span {
  color: var(--dash-muted);
  font-weight: 900;
}

.locations-toolbar select,
.add-location-btn {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
}

.locations-toolbar select {
  color: #071322;
  border: 1px solid var(--dash-line);
  background: #fff;
}

.add-location-btn {
  color: #fff;
  border: 0;
  background: linear-gradient(100deg, #08783d, #0a9b55);
  box-shadow: 0 12px 26px rgb(10 155 85 / 22%);
}

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

.location-kpi-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--dash-shadow);
}

.kpi-icon {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 80%),
    0 12px 24px rgb(15 31 54 / 8%);
}

.kpi-icon::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.95;
}

.kpi-icon svg {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.8;
}

.kpi-icon.green {
  color: #079455;
}

.kpi-icon.green::before {
  background: linear-gradient(145deg, #ecfdf3, #d1fadf);
}

.kpi-icon.orange {
  color: #f79009;
}

.kpi-icon.orange::before {
  background: linear-gradient(145deg, #fff8eb, #ffedc2);
}

.kpi-icon.blue {
  color: #1570ef;
}

.kpi-icon.blue::before {
  background: linear-gradient(145deg, #eff8ff, #d1e9ff);
}

.kpi-icon.purple {
  color: #7a5af8;
}

.kpi-icon.purple::before {
  background: linear-gradient(145deg, #f4f3ff, #e6e1ff);
}

.kpi-icon.green {
  color: var(--dash-green);
  background: #e8f8ef;
}

.kpi-icon .icon-cut {
  fill: #ffffff;
  stroke: #ffffff;
}

.kpi-icon.orange {
  color: var(--dash-orange);
  background: #fff5e1;
}

.kpi-icon.blue {
  color: var(--dash-blue);
  background: #eaf2ff;
}

.kpi-icon.purple {
  color: var(--dash-purple);
  background: #f1edff;
}

.location-kpi-card p {
  margin: 0 0 8px;
  color: var(--dash-muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.location-kpi-card strong {
  display: block;
  color: #05090d;
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.1;
}

.location-kpi-card small {
  display: block;
  margin-top: 12px;
  color: var(--dash-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.locations-table-card {
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--dash-shadow);
}

.locations-table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
}

.locations-table-title h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.locations-table-title span {
  color: var(--dash-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.locations-row {
  display: grid;
  min-width: 1120px;
  grid-template-columns: 2fr 0.75fr 1fr 0.9fr 1.1fr 0.9fr 1fr 0.8fr 0.75fr;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 0 24px;
  border-top: 1px solid var(--dash-soft-line);
  color: #081526;
  font-size: 0.86rem;
}

.locations-head {
  min-height: 52px;
  color: var(--dash-muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-info b,
.location-info small {
  display: block;
}

.location-info b {
  font-weight: 900;
}

.location-info small {
  margin-top: 4px;
  color: var(--dash-muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.loc-status {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 900;
}

.loc-status.active {
  color: #08783d;
  background: #dff6e8;
}

.loc-status.inactive {
  color: #995d00;
  background: #fff3d2;
}

.loc-actions {
  position: relative;
  display: flex;
  gap: 8px;
}

.loc-actions button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #071322;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 900;
}

.locations-pagination {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 24px;
  border-top: 1px solid var(--dash-soft-line);
}

.locations-pagination button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--dash-line);
  border-radius: 10px;
  background: #fff;
  font-weight: 850;
}

.locations-pagination button.active {
  color: #fff;
  border-color: var(--dash-green);
  background: var(--dash-green);
}

.location-actions-menu {
  position: fixed;
  z-index: 999;
  display: none;
  width: 248px;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(15 31 54 / 16%);
}

.location-actions-menu.is-open {
  display: block;
}

.location-actions-menu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #071322;
  border: 0;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
}

.location-actions-menu button:hover {
  background: #f6faf8;
}

.location-actions-menu button.danger {
  color: var(--dash-red);
}

.location-actions-menu hr {
  height: 1px;
  margin: 10px 0;
  border: 0;
  background: linear-gradient(
    to right,
    transparent,
    #cdd6e3 15%,
    #cdd6e3 85%,
    transparent
  );
}

.actions-backdrop {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: none;
  background: rgb(7 19 34 / 30%);
}

.actions-backdrop.is-open {
  display: block;
}

@media (max-width: 1360px) {
  .locations-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .locations-screen-header {
    flex-direction: column;
  }

  .locations-toolbar {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .dashboard-sidebar {
    display: none;
  }

  .locations-kpi-grid {
    grid-template-columns: 1fr;
  }

  .locations-toolbar {
    grid-template-columns: 1fr;
  }

  .locations-table-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .locations-table {
    overflow: visible;
  }

  .locations-head {
    display: none;
  }

  .locations-row {
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: auto;
    margin: 12px;
    padding: 16px;
    border: 1px solid var(--dash-soft-line);
    border-radius: 16px;
  }

  .locations-row > span:not(.location-info):not(.loc-actions) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .locations-row > span[data-label]::before {
    content: attr(data-label);
    color: var(--dash-muted);
    font-weight: 900;
  }

  .loc-actions {
    justify-content: flex-end;
  }

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

.location-actions-menu {
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

.dashboard-main > footer,
.dashboard-main .dashboard-footer {
  display: none;
}

@media (max-width: 1024px) {
  .location-actions-menu {
    width: 220px;
    max-height: 70vh;
  }
}

/* FINAL RESPONSIVE FIX FOR LOCATIONS + ACTION MENU */

/* Tablet/iPad: keep horizontal top sidebar */
@media (max-width: 1180px) and (min-width: 761px) {
  .dashboard-page {
    display: block;
  }

  .dashboard-sidebar {
    position: sticky !important;
    top: 0;
    width: 100% !important;
    height: auto !important;
    padding: 18px 18px 14px;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 22px;
  }

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

  .location-actions-menu {
    width: 240px;
    max-height: 70vh;
    overflow-y: auto;
  }
}

/* Mobile: bottom sheet */
@media (max-width: 760px) {
  .dashboard-sidebar {
    display: none !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 16px;
  }

  .locations-kpi-grid {
    grid-template-columns: 1fr;
  }

  .locations-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .locations-search,
  .add-location-btn,
  .locations-toolbar select {
    width: 100%;
  }

  .location-actions-menu {
    top: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-height: 78vh;
    border-radius: 22px;
    overflow-y: auto;
  }

  .actions-backdrop.is-open {
    display: block;
  }
}

.add-location-page {
  display: grid;
  gap: 22px;
}

.add-location-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-to-locations {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.add-location-top h1 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 2.4vw, 2.25rem);
  font-weight: 900;
}

.add-location-top p {
  margin: 0;
  color: var(--dash-muted);
  font-weight: 600;
}

.add-location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
}

.add-location-card {
  padding: 22px;
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--dash-shadow);
}

.add-location-side {
  display: grid;
  align-content: start;
  gap: 20px;
}

.form-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.form-card-title h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.form-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--dash-green);
  border-radius: 12px;
  background: #e8f8ef;
  font-weight: 900;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

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

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

.form-grid label {
  display: grid;
  gap: 8px;
  color: #24344d;
  font-size: 0.84rem;
  font-weight: 850;
}

.form-grid b {
  color: var(--dash-red);
}

.form-grid input,
.form-grid select,
.add-location-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #071322;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: #fff;
  outline: 0;
}

.add-location-card textarea {
  min-height: 118px;
  padding-top: 14px;
  resize: vertical;
}

.upload-grid {
  display: grid;
  gap: 14px;
}

.upload-box {
  display: grid;
  min-height: 168px;
  place-items: center;
  padding: 20px;
  border: 1.5px dashed #cdd8e5;
  border-radius: 16px;
  background: #f8fbfb;
  text-align: center;
}

.upload-box strong {
  color: var(--dash-green);
  font-size: 2rem;
}

.upload-box span {
  font-weight: 900;
}

.upload-box small,
.preview-card small,
.textarea-count {
  color: var(--dash-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.upload-box em {
  padding: 9px 14px;
  color: var(--dash-green);
  border-radius: 999px;
  background: #e8f8ef;
  font-style: normal;
  font-weight: 900;
}

.preview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dash-line);
  border-radius: 16px;
}

.preview-card img {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.preview-card button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: rgb(7 19 34 / 72%);
}

.preview-card b,
.preview-card small {
  display: block;
  padding: 0 14px;
}

.preview-card b {
  padding-top: 12px;
}

.preview-card small {
  padding-bottom: 14px;
}

.status-select {
  display: grid;
  gap: 12px;
}

.status-select label {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--dash-line);
  border-radius: 14px;
}

.status-select label.selected {
  border-color: rgb(10 155 85 / 42%);
  background: #f0fbf5;
}

.status-select span,
.status-select b,
.status-select small {
  display: block;
}

.add-location-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 0 0;
}

.cancel-location,
.save-location {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 900;
}

.cancel-location {
  border: 1px solid var(--dash-line);
  background: #fff;
}

.save-location {
  color: #fff;
  border: 0;
  background: linear-gradient(100deg, #08783d, #0a9b55);
}

@media (max-width: 1180px) {
  .add-location-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .add-location-top {
    align-items: flex-start;
  }

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

  .add-location-card {
    padding: 18px;
  }

  .add-location-footer {
    position: sticky;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    margin: 0 -16px -16px;
    background: rgb(247 250 251 / 94%);
    backdrop-filter: blur(10px);
  }
}
#add-location-view .add-location-top {
  display: none !important;
}

.session-expired-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(7 19 34 / 48%);
  backdrop-filter: blur(10px);
}

.session-expired-card {
  width: min(100%, 420px);
  padding: 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgb(7 19 34 / 24%);
  text-align: center;
}

.session-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #0a9b55;
  font-size: 1.5rem;
  font-weight: 900;
}

.session-expired-card h2 {
  margin: 0 0 10px;
  color: #071322;
  font-size: 1.55rem;
  font-weight: 900;
}

.session-expired-card p {
  margin: 0 0 24px;
  color: #65748b;
  font-size: 0.98rem;
  line-height: 1.6;
}

.session-expired-card button {
  width: 100%;
  min-height: 52px;
  color: #fff;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(100deg, #08783d, #0a9b55);
  font-weight: 900;
}
.location-details-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 19, 34, 0.45);
  backdrop-filter: blur(10px);
}

.location-details-card {
  width: min(100%, 760px);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(7, 19, 34, 0.28);
}

.location-details-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #e6edf3;
}

.location-details-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.location-details-header p {
  margin: 6px 0 0;
  color: #65748b;
  font-weight: 700;
}

.close-location-details {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f5f8;
  font-size: 1.4rem;
  font-weight: 900;
}

.location-details-body {
  padding: 24px;
}

.details-image {
  width: 100%;
  height: 220px;
  margin-bottom: 20px;
  border-radius: 18px;
  background-color: #eef3f7;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.details-grid div {
  padding: 14px;
  border: 1px solid #e6edf3;
  border-radius: 14px;
  background: #f8fbfb;
}

.details-grid .wide {
  grid-column: 1 / -1;
}

.details-grid span {
  display: block;
  margin-bottom: 6px;
  color: #65748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.details-grid strong {
  color: #071322;
  font-size: 0.95rem;
}
.location-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 19, 34, 0.5);
  backdrop-filter: blur(10px);
}

.location-delete-card {
  width: min(100%, 430px);
  padding: 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(7, 19, 34, 0.28);
}

.location-delete-card h2 {
  margin: 0 0 10px;
  color: #071322;
  font-size: 1.35rem;
  font-weight: 900;
}

.location-delete-card p {
  margin: 0 0 24px;
  color: #65748b;
  line-height: 1.6;
}

.location-delete-card div {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-delete-location,
.confirm-delete-location {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 900;
}

.cancel-delete-location {
  border: 1px solid #d8dee7;
  background: #fff;
}

.confirm-delete-location {
  color: #fff;
  border: 0;
  background: #e03131;
}
