/* ========================================
   GLOBAL APPLICATION MODAL
======================================== */

.app-modal-backdrop {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    rgba(2, 6, 23, 0.76);

  backdrop-filter:
    blur(5px);

  animation:
    app-modal-backdrop-in
    0.16s ease-out;
}

/* ========================================
   MODAL
======================================== */

.app-modal {
  position: relative;

  width: 100%;
  max-width: 430px;

  padding: 24px;

  border:
    1px solid #334155;

  border-radius:
    12px;

  background:
    #0f172a;

  box-shadow:
    0 24px 80px
    rgba(0, 0, 0, 0.45);

  animation:
    app-modal-in
    0.18s ease-out;
}

/* ========================================
   CLOSE
======================================== */

.app-modal-close {
  position: absolute;

  top: 14px;
  right: 14px;

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border:
    1px solid transparent;

  border-radius:
    6px;

  background:
    transparent;

  color:
    #64748b;

  font-size:
    20px;

  line-height:
    1;

  cursor:
    pointer;

  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.app-modal-close:hover {
  border-color:
    #334155;

  background:
    #1e293b;

  color:
    #f8fafc;
}

/* ========================================
   ICON
======================================== */

.app-modal-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 18px;

  border-radius:
    10px;

  font-size:
    18px;

  font-weight:
    800;
}

/* SUCCESS */

.app-modal-icon-success {
  border:
    1px solid
    rgba(34, 197, 94, 0.28);

  background:
    rgba(34, 197, 94, 0.12);

  color:
    #4ade80;
}

/* ERROR */

.app-modal-icon-error {
  border:
    1px solid
    rgba(239, 68, 68, 0.28);

  background:
    rgba(239, 68, 68, 0.12);

  color:
    #f87171;
}

/* WARNING */

.app-modal-icon-warning {
  border:
    1px solid
    rgba(245, 158, 11, 0.3);

  background:
    rgba(245, 158, 11, 0.12);

  color:
    #fbbf24;
}

/* INFO */

.app-modal-icon-info {
  border:
    1px solid
    rgba(14, 165, 233, 0.3);

  background:
    rgba(14, 165, 233, 0.12);

  color:
    #38bdf8;
}

/* ========================================
   CONTENT
======================================== */



.app-modal-eyebrow {
  display: block;

  margin-bottom:
    5px;

  color:
    #64748b;

  font-size:
    9px;

  font-weight:
    700;

  letter-spacing:
    0.08em;

  text-transform:
    uppercase;
}

.app-modal-content h2 {
  margin:
    0;

  color:
    #f8fafc;

  font-size:
    18px;

  font-weight:
    700;

  line-height:
    1.3;
}

.app-modal-content p {
  margin:
    8px 0 0;

  color:
    #94a3b8;

  font-size:
    11px;

  line-height:
    1.6;
}

/* ========================================
   ACTIONS
======================================== */

.app-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 9px;

  margin-top:
    24px;

  padding-top:
    16px;

  border-top:
    1px solid #1e293b;
}

.app-modal-actions button {
  min-height:
    36px;

  padding:
    0 15px;

  border-radius:
    6px;

  font-size:
    10px;

  font-weight:
    700;

  cursor:
    pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.app-modal-actions button:disabled {
  opacity:
    0.55;

  cursor:
    not-allowed;
}

/* SECONDARY */

.app-modal-secondary-button {
  border:
    1px solid #334155;

  background:
    transparent;

  color:
    #94a3b8;
}

.app-modal-secondary-button:hover {
  background:
    #1e293b;

  color:
    #f8fafc;
}

/* ========================================
   PRIMARY TYPES
======================================== */

.app-modal-primary-button {
  border:
    1px solid transparent;

  color:
    white;
}

.app-modal-button-info {
  background:
    #0284c7;
}

.app-modal-button-info:hover {
  background:
    #0369a1;
}

.app-modal-button-success {
  background:
    #16a34a;
}

.app-modal-button-success:hover {
  background:
    #15803d;
}

.app-modal-button-warning {
  background:
    #d97706;
}

.app-modal-button-warning:hover {
  background:
    #b45309;
}

.app-modal-button-error {
  background:
    #dc2626;
}

.app-modal-button-error:hover {
  background:
    #b91c1c;
}

.service-complete-modal-field {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 7px;

  text-align: left;
}

.service-complete-modal-field label {
  color: #94a3b8;

  font-size: 9px;
  font-weight: 600;
}

.service-complete-modal-field textarea {
  width: 100%;
  min-height: 95px;

  box-sizing: border-box;

  padding: 11px 12px;

  resize: vertical;

  border: 1px solid #334155;
  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #f8fafc;

  font-family: inherit;
  font-size: 10px;

  line-height: 1.5;
}

.service-complete-modal-field textarea:focus {
  border-color: #16a34a;

  box-shadow:
    0 0 0 3px
    rgba(22, 163, 74, 0.1);
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes app-modal-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes app-modal-in {
  from {
    opacity: 0;

    transform:
      translateY(8px)
      scale(0.985);
  }

  to {
    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

/* ========================================
   MOBILE
======================================== */

@media (
  max-width: 550px
) {
  .app-modal-backdrop {
    padding:
      16px;
  }

  .app-modal {
    padding:
      20px;
  }

  .app-modal-actions {
    flex-direction:
      column-reverse;
  }

  .app-modal-actions button {
    width:
      100%;
  }
}html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
}
/* =========================================================
   PATIO YMS LOADER
========================================================= */

.yms-loader {
    width: 100%;
    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px 24px;

    color: #e8eef7;
}

/* =========================================================
   FULL SCREEN / PAGE
========================================================= */

.yms-loader-fullscreen {
    min-height: calc(100vh - 80px);
}

/* =========================================================
   CONTENT
========================================================= */

.yms-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 24px;
}

/* =========================================================
   YARD
========================================================= */

.yms-loader-yard {
    position: relative;

    width: 150px;
    height: 105px;

    overflow: hidden;

    border: 1px solid #20314a;
    border-radius: 14px;

    background:
        linear-gradient(145deg,
            #101b2f 0%,
            #0b1627 100%);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(36, 132, 255, 0.05);
}

/* =========================================================
   YARD GRID
========================================================= */

.yms-loader-yard-grid {
    position: absolute;

    inset: 0;

    opacity: 0.55;

    background-image:
        linear-gradient(rgba(56, 189, 248, 0.08) 1px,
            transparent 1px),
        linear-gradient(90deg,
            rgba(56, 189, 248, 0.08) 1px,
            transparent 1px);

    background-size:
        24px 24px;

    transform:
        perspective(120px) rotateX(15deg) scale(1.15);

    transform-origin: center bottom;
}

/* =========================================================
   CONTAINERS
========================================================= */

.yms-loader-container {
    position: absolute;

    width: 46px;
    height: 20px;

    display: flex;

    overflow: hidden;

    border:
        1px solid rgba(125, 211, 252, 0.8);

    border-radius: 3px;

    background:
        linear-gradient(180deg,
            #258cff 0%,
            #1469c7 100%);

    box-shadow:
        0 5px 14px rgba(36, 132, 255, 0.25);

    opacity: 0;

    transform:
        translateY(-35px);

    animation:
        yms-container-place 2.4s cubic-bezier(0.4,
            0,
            0.2,
            1) infinite;
}

.yms-loader-container span {
    flex: 1;

    border-right:
        1px solid rgba(255, 255, 255, 0.17);
}

.yms-loader-container span:last-child {
    border-right: none;
}

/* =========================================================
   CONTAINER POSITIONS
========================================================= */

.yms-loader-container-1 {
    left: 25px;
    bottom: 24px;

    animation-delay: 0s;
}

.yms-loader-container-2 {
    right: 25px;
    bottom: 24px;

    animation-delay: 0.35s;
}

.yms-loader-container-3 {
    left: 52px;
    bottom: 48px;

    animation-delay: 0.7s;
}

/* =========================================================
   CONTAINER ANIMATION
========================================================= */

@keyframes yms-container-place {
    0% {
        opacity: 0;

        transform:
            translateY(-32px) scale(0.92);
    }

    15% {
        opacity: 1;
    }

    35% {
        opacity: 1;

        transform:
            translateY(0) scale(1);
    }

    72% {
        opacity: 1;

        transform:
            translateY(0) scale(1);
    }

    88% {
        opacity: 0;

        transform:
            translateY(5px) scale(0.98);
    }

    100% {
        opacity: 0;

        transform:
            translateY(-32px) scale(0.92);
    }
}

/* =========================================================
   SCANNER
========================================================= */

.yms-loader-scan {
    position: absolute;

    top: 0;
    left: -40%;

    width: 35%;
    height: 100%;

    pointer-events: none;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(56, 189, 248, 0.08),
            rgba(56, 189, 248, 0.18),
            rgba(56, 189, 248, 0.08),
            transparent);

    transform: skewX(-15deg);

    animation:
        yms-yard-scan 2.4s ease-in-out infinite;
}

@keyframes yms-yard-scan {
    0% {
        left: -45%;
    }

    55% {
        left: 110%;
    }

    100% {
        left: 110%;
    }
}

/* =========================================================
   YARD MARKINGS
========================================================= */

.yms-loader-yard-line {
    position: absolute;

    bottom: 10px;

    width: 36px;
    height: 2px;

    border-radius: 999px;

    background:
        rgba(56, 189, 248, 0.25);
}

.yms-loader-yard-line-left {
    left: 22px;
}

.yms-loader-yard-line-right {
    right: 22px;
}

/* =========================================================
   BRAND
========================================================= */

.yms-loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 9px;
}

.yms-loader-brand-name {
    color: #f8fafc;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: 0.025em;
}

.yms-loader-brand-name span {
    margin-left: 3px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

/* =========================================================
   STATUS
========================================================= */

.yms-loader-status {
    display: flex;
    align-items: center;

    gap: 7px;

    color: #71829b;

    font-size: 10px;

    letter-spacing: 0.01em;
}

.yms-loader-status-dot {
    width: 5px;
    height: 5px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #38bdf8;

    box-shadow:
        0 0 0 rgba(56, 189, 248, 0.45);

    animation:
        yms-loader-pulse 1.5s ease-out infinite;
}

@keyframes yms-loader-pulse {
    0% {
        box-shadow:
            0 0 0 0 rgba(56, 189, 248, 0.45);
    }

    70% {
        box-shadow:
            0 0 0 7px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* =========================================================
   COMPACT
========================================================= */

.yms-loader-compact {
    min-height: 150px;

    padding: 24px;
}

.yms-loader-compact .yms-loader-content {
    gap: 15px;
}

.yms-loader-compact .yms-loader-yard {
    width: 115px;
    height: 80px;

    border-radius: 11px;
}

.yms-loader-compact .yms-loader-container {
    width: 35px;
    height: 15px;
}

.yms-loader-compact .yms-loader-container-1 {
    left: 19px;
    bottom: 18px;
}

.yms-loader-compact .yms-loader-container-2 {
    right: 19px;
    bottom: 18px;
}

.yms-loader-compact .yms-loader-container-3 {
    left: 40px;
    bottom: 37px;
}

.yms-loader-compact .yms-loader-brand-name {
    font-size: 14px;
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .yms-loader-container,
    .yms-loader-scan,
    .yms-loader-status-dot {
        animation-duration:
            4s;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {
    .yms-loader {
        min-height: 220px;

        padding: 30px 16px;
    }

    .yms-loader-fullscreen {
        min-height:
            calc(100vh - 60px);
    }

    .yms-loader-yard {
        width: 130px;
        height: 92px;
    }

    .yms-loader-container {
        width: 40px;
        height: 17px;
    }

    .yms-loader-container-1 {
        left: 21px;
        bottom: 21px;
    }

    .yms-loader-container-2 {
        right: 21px;
        bottom: 21px;
    }

    .yms-loader-container-3 {
        left: 44px;
        bottom: 42px;
    }
}/* =========================================
   DASHBOARD VARIABLES
========================================= */

.dashboard-layout {
  --sidebar-width:
    250px;

  --sidebar-collapsed-width:
    78px;

  --topbar-height:
    72px;

  min-height:
    100vh;

  display:
    grid;

  grid-template-columns:
    var(--sidebar-width) minmax(0,
      1fr);

  background:
    #050d1c;

  color:
    #e8eef7;

  transition:
    grid-template-columns 0.22s ease;
}

.dashboard-layout.dashboard-sidebar-collapsed {
  grid-template-columns:
    var(--sidebar-collapsed-width) minmax(0,
      1fr);
}


/* =========================================
   SIDEBAR
========================================= */

.dashboard-sidebar {
  position:
    sticky;

  top:
    0;

  height:
    100vh;

  min-width:
    0;

  display:
    flex;

  flex-direction:
    column;

  overflow:
    visible;

  border-right:
    1px solid #1d2b42;

  background:
    linear-gradient(180deg,
      #101a2e 0%,
      #0c1729 100%);

  z-index:
    30;
}


/* =========================================
   BRAND
========================================= */

.dashboard-brand {
  position:
    relative;

  height:
    var(--topbar-height);

  flex-shrink:
    0;

  display:
    flex;

  align-items:
    center;

  padding:
    0 54px 0 18px;

  border-bottom:
    1px solid #1d2b42;
}

.dashboard-brand-logo-wrapper {
  min-width:
    0;

  display:
    flex;

  align-items:
    center;

  flex:
    1;

  overflow:
    hidden;
}

.dashboard-brand-logo {
  display:
    block;

  width:
    auto;

  height:
    47px;

  max-width:
    180px;

  object-fit:
    contain;

  object-position:
    left center;

  transition:
    width 0.2s ease,
    height 0.2s ease,
    max-width 0.2s ease;
}

.dashboard-brand-logo-icon {
  width:
    44px;

  height:
    44px;

  max-width:
    44px;

  object-fit:
    contain;

  object-position:
    center;
}


/* =========================================
   SIDEBAR TOGGLE
========================================= */

.dashboard-sidebar-toggle {
  position:
    absolute;

  top:
    50%;

  right:
    12px;

  transform:
    translateY(-50%);

  width:
    30px;

  height:
    30px;

  display:
    grid;

  place-items:
    center;

  padding:
    0;

  border:
    1px solid #2b3d59;

  border-radius:
    8px;

  background:
    #132138;

  color:
    #8fa2bc;

  cursor:
    pointer;

  z-index:
    50;

  box-shadow:
    0 4px 14px rgba(0,
      0,
      0,
      0.22);

  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.dashboard-sidebar-toggle:hover {
  background:
    #1a2b47;

  color:
    #38bdf8;

  border-color:
    #2984bc;
}

.dashboard-sidebar-toggle:active {
  transform:
    translateY(-50%) scale(0.94);
}

.dashboard-sidebar-toggle-icon {
  display:
    block;

  transform:
    translateY(-1px);

  font-family:
    Arial,
    sans-serif;

  font-size:
    20px;

  line-height:
    1;
}


/* =========================================
   NAVIGATION
========================================= */

.dashboard-navigation {
  flex:
    1;

  min-height:
    0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    4px;

  padding:
    16px 12px;

  overflow-y:
    auto;

  overflow-x:
    hidden;

  scrollbar-width:
    thin;

  scrollbar-color:
    #263852 transparent;
}

.dashboard-nav-item {
  min-height:
    42px;

  flex:
    0 0 auto;

  display:
    flex;

  align-items:
    center;

  gap:
    12px;

  padding:
    0 12px;

  border:
    1px solid transparent;

  border-radius:
    9px;

  background:
    transparent;

  color:
    #94a3b8;

  text-decoration:
    none;

  font-size:
    13px;

  font-weight:
    500;

  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.dashboard-nav-item:hover {
  background:
    rgba(255,
      255,
      255,
      0.04);

  color:
    #dce7f5;

  transform:
    translateX(2px);
}

.dashboard-nav-item.active {
  background:
    linear-gradient(90deg,
      rgba(14,
        165,
        233,
        0.15),
      rgba(14,
        165,
        233,
        0.05));

  border-color:
    rgba(56,
      189,
      248,
      0.14);

  color:
    #38bdf8;
}

.dashboard-nav-icon {
  width:
    20px;

  flex:
    0 0 auto;

  display:
    grid;

  place-items:
    center;

  color:
    #71839e;

  font-size:
    15px;
}

.dashboard-nav-item.active .dashboard-nav-icon {
  color:
    #38bdf8;
}

.dashboard-nav-label {
  min-width:
    0;

  overflow:
    hidden;

  white-space:
    nowrap;

  text-overflow:
    ellipsis;
}


/* =========================================
   NAVIGATION TITLES
========================================= */

.dashboard-navigation-title {
  margin:
    20px 10px 7px;

  color:
    #53637c;

  font-size:
    10px;

  font-weight:
    800;

  text-transform:
    uppercase;

  letter-spacing:
    0.12em;
}

.dashboard-navigation-title-button {
  width:
    calc(100% - 12px);

  min-height:
    34px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    10px;

  margin:
    16px 6px 5px;

  padding:
    0 8px;

  border:
    1px solid transparent;

  border-radius:
    8px;

  background:
    transparent;

  color:
    #60718d;

  text-align:
    left;

  cursor:
    pointer;

  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.dashboard-navigation-title-button:hover {
  border-color:
    rgba(56,
      189,
      248,
      0.08);

  background:
    rgba(255,
      255,
      255,
      0.035);

  color:
    #8fa2bc;
}

.dashboard-navigation-title-button:focus-visible {
  outline:
    2px solid rgba(56,
      189,
      248,
      0.55);

  outline-offset:
    2px;
}

.dashboard-navigation-title-button>span:first-child {
  min-width:
    0;

  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.dashboard-navigation-title-chevron {
  width:
    20px;

  height:
    20px;

  flex:
    0 0 20px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    6px;

  color:
    #667994;

  font-family:
    Arial,
    sans-serif;

  font-size:
    16px;

  line-height:
    1;

  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.dashboard-navigation-title-button:hover
.dashboard-navigation-title-chevron {
  background:
    rgba(56,
      189,
      248,
      0.07);

  color:
    #38bdf8;
}

.dashboard-navigation-title-button.is-expanded {
  color:
    #71839e;
}

.dashboard-navigation-title-button.is-expanded
.dashboard-navigation-title-chevron {
  color:
    #38bdf8;
}

.dashboard-navigation-title-button.is-collapsed
.dashboard-navigation-title-chevron {
  transform:
    translateX(-1px);
}

.dashboard-navigation-divider {
  height:
    1px;

  flex:
    0 0 auto;

  margin:
    15px 7px;

  background:
    #223149;
}


/* =========================================
   USER
========================================= */

.dashboard-user {
  min-height:
    72px;

  flex-shrink:
    0;

  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  padding:
    12px 14px;

  border-top:
    1px solid #1d2b42;

  background:
    rgba(6,
      14,
      28,
      0.25);
}

.dashboard-user-avatar {
  width:
    38px;

  height:
    38px;

  flex:
    0 0 auto;

  display:
    grid;

  place-items:
    center;

  border-radius:
    50%;

  background:
    #172740;

  color:
    #38bdf8;

  font-size:
    14px;

  font-weight:
    700;
}

.dashboard-user-info {
  min-width:
    0;

  flex:
    1;

  display:
    flex;

  flex-direction:
    column;
}

.dashboard-user-info strong {
  overflow:
    hidden;

  white-space:
    nowrap;

  text-overflow:
    ellipsis;

  color:
    #f1f5f9;

  font-size:
    12px;
}

.dashboard-user-info span {
  margin-top:
    2px;

  overflow:
    hidden;

  white-space:
    nowrap;

  text-overflow:
    ellipsis;

  color:
    #667994;

  font-size:
    10px;
}

.dashboard-logout,
.dashboard-user-logout-collapsed {
  padding:
    6px;

  border:
    0;

  background:
    transparent;

  color:
    #73839c;

  cursor:
    pointer;

  font-size:
    12px;

  transition:
    color 0.16s ease;
}

.dashboard-logout:hover,
.dashboard-user-logout-collapsed:hover {
  color:
    #f87171;
}


/* =========================================
   COLLAPSED SIDEBAR
========================================= */

.dashboard-sidebar-collapsed .dashboard-brand {
  justify-content:
    center;

  padding:
    0;
}

.dashboard-sidebar-collapsed .dashboard-brand-logo-wrapper {
  width:
    100%;

  flex:
    none;

  justify-content:
    center;

  overflow:
    visible;
}

.dashboard-sidebar-collapsed .dashboard-brand-logo {
  width:
    44px;

  height:
    44px;

  max-width:
    44px;

  object-fit:
    contain;

  object-position:
    center;
}


/*
 * Cuando el menú está colapsado,
 * el botón se muestra como pestaña
 * en el borde derecho del sidebar.
 */

.dashboard-sidebar-collapsed .dashboard-sidebar-toggle {
  top:
    82px;

  right:
    -14px;

  bottom:
    auto;

  transform:
    none;

  width:
    28px;

  height:
    34px;

  border-left:
    0;

  border-radius:
    0 9px 9px 0;

  background:
    #132138;

  box-shadow:
    4px 3px 12px rgba(0,
      0,
      0,
      0.2);
}

.dashboard-sidebar-collapsed .dashboard-sidebar-toggle:hover {
  background:
    #1a2b47;
}

.dashboard-sidebar-collapsed .dashboard-sidebar-toggle:active {
  transform:
    scale(0.94);
}

.dashboard-sidebar-collapsed .dashboard-navigation {
  padding:
    18px 9px;
}

.dashboard-sidebar-collapsed .dashboard-nav-item {
  min-height:
    44px;

  justify-content:
    center;

  padding:
    0;
}

.dashboard-sidebar-collapsed .dashboard-nav-item:hover {
  transform:
    none;
}

.dashboard-sidebar-collapsed .dashboard-nav-icon {
  width:
    auto;

  font-size:
    17px;
}

.dashboard-sidebar-collapsed .dashboard-navigation-divider {
  margin:
    14px 8px;
}

.dashboard-sidebar-collapsed .dashboard-navigation-title-button {
  display:
    none;
}

.dashboard-sidebar-collapsed .dashboard-user {
  min-height:
    88px;

  flex-direction:
    column;

  justify-content:
    center;

  gap:
    6px;

  padding:
    10px 8px;
}


/* =========================================
   MAIN
========================================= */

.dashboard-main {
  min-width:
    0;

  min-height:
    100vh;

  display:
    flex;

  flex-direction:
    column;

  background:
    #050d1c;
}


/* =========================================
   TOPBAR
========================================= */

.dashboard-topbar {
  position:
    sticky;

  top:
    0;

  z-index:
    20;

  height:
    var(--topbar-height);

  flex-shrink:
    0;

  display:
    flex;

  align-items:
    center;

  padding:
    0 28px;

  border-bottom:
    1px solid #1d2b42;

  background:
    rgba(12,
      23,
      41,
      0.97);

  backdrop-filter:
    blur(10px);
}

.dashboard-topbar-terminal {
  display:
    flex;

  align-items:
    center;

  gap:
    12px;
}

.dashboard-terminal-label {
  color:
    #64748b;

  font-size:
    11px;
}

.dashboard-topbar select {
  min-width:
    160px;

  height:
    38px;

  padding:
    0 36px 0 12px;

  border:
    1px solid #30415c;

  border-radius:
    8px;

  outline:
    none;

  background:
    #091426;

  color:
    #f1f5f9;

  font-size:
    12px;
}

.dashboard-topbar select:focus {
  border-color:
    #168fd1;

  box-shadow:
    0 0 0 3px rgba(14,
      165,
      233,
      0.1);
}


/* =========================================
   CONTENT
========================================= */

.dashboard-content {
  min-width:
    0;

  min-height:
    0;

  flex:
    1;

  padding:
    22px;

  overflow-y:
    auto;

  overflow-x:
    hidden;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .dashboard-layout {
    grid-template-columns:
      var(--sidebar-collapsed-width) minmax(0,
        1fr);
  }

  .dashboard-nav-label,
  .dashboard-navigation-title,
  .dashboard-navigation-title-button,
  .dashboard-user-info,
  .dashboard-logout {
    display:
      none;
  }

  .dashboard-brand {
    justify-content:
      center;

    padding:
      0;
  }

  .dashboard-brand-logo-wrapper {
    width:
      100%;

    flex:
      none;

    justify-content:
      center;
  }

  .dashboard-brand-logo {
    width:
      44px;

    height:
      44px;

    max-width:
      44px;

    object-fit:
      contain;

    object-position:
      center;
  }

  .dashboard-navigation {
    padding:
      18px 9px;
  }

  .dashboard-nav-item {
    justify-content:
      center;

    padding:
      0;
  }

  .dashboard-nav-item:hover {
    transform:
      none;
  }

  .dashboard-user {
    flex-direction:
      column;

    justify-content:
      center;

    padding:
      10px 8px;
  }
}/* ========================================
   LOGIN
======================================== */

.login-page-redesign {
    min-height: 100vh;

    background: #020617;

    display: flex;

    align-items: stretch;
    justify-content: center;
}

.login-shell {
    width: 100%;

    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr) minmax(430px, 0.8fr);
}

/* ========================================
   LEFT SIDE
======================================== */

.login-hero {
    position: relative;

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    min-height: 100vh;

    padding: 48px 60px;

    box-sizing: border-box;

    overflow: hidden;

    border-right: 1px solid #1e293b;

    background:
        radial-gradient(circle at 20% 20%,
            rgba(14, 165, 233, 0.12),
            transparent 32%),
        linear-gradient(145deg,
            #0f172a 0%,
            #020617 65%);
}

.login-hero::after {
    content: '';

    position: absolute;

    width: 420px;
    height: 420px;

    right: -180px;
    bottom: -180px;

    border: 1px solid rgba(56, 189, 248, 0.12);

    border-radius: 50%;
}

.login-hero-content {
    position: relative;

    z-index: 1;
}

.login-hero-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}

/* =========================================================
   PATIO YMS LOGO
========================================================= */

.login-hero-brand {
    display: flex;
    align-items: center;

    width: fit-content;
}

.login-hero-brand-logo {
    display: block;

    width: auto;
    height: 72px;
    max-width: 310px;

    object-fit: contain;
}

/* =========================================================
   MOBILE LOGO
========================================================= */

.login-mobile-brand {
    display: none;

    width: 100%;

    margin-bottom: 32px;

    align-items: center;
    justify-content: center;
}

.login-mobile-brand-logo {
    display: block;

    width: auto;
    height: 56px;
    max-width: 240px;

    object-fit: contain;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .login-hero-brand-logo {
        height: 62px;
        max-width: 270px;
    }
}

@media (max-width: 768px) {
    .login-mobile-brand {
        display: flex;
    }

    .login-mobile-brand-logo {
        height: 52px;
        max-width: 230px;
    }
}

@media (max-width: 480px) {
    .login-mobile-brand {
        margin-bottom: 26px;
    }

    .login-mobile-brand-logo {
        height: 46px;
        max-width: 200px;
    }
}

/* .login-hero-logo {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #0284c7;

    color: #fff;

    font-size: 14px;
    font-weight: 700;
} */

/* .login-hero-brand div {
    display: flex;

    flex-direction: column;
}

.login-hero-brand strong {
    color: #f8fafc;

    font-size: 14px;
} */

/* .login-hero-brand span:not(.login-hero-logo) {
    color: #64748b;

    font-size: 9px;
} */

.login-hero-copy {
    max-width: 560px;

    margin-top: 95px;
}

.login-eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: #38bdf8;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.login-hero-copy h1 {
    max-width: 520px;

    margin: 0;

    color: #f8fafc;

    font-size: clamp(36px,
            4vw,
            58px);

    line-height: 1.05;
}

.login-hero-copy p {
    max-width: 500px;

    margin: 22px 0 0;

    color: #94a3b8;

    font-size: 14px;

    line-height: 1.7;
}

/* ========================================
   FEATURES
======================================== */

.login-feature-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0,
                1fr));

    gap: 12px;

    max-width: 600px;

    margin-top: 50px;
}

.login-feature {
    display: flex;

    gap: 12px;

    padding: 15px;

    border: 1px solid rgba(51, 65, 85, 0.8);

    border-radius: 9px;

    background:
        rgba(15, 23, 42, 0.7);
}

.login-feature-number {
    color: #38bdf8;

    font-size: 9px;

    font-weight: 700;
}

.login-feature div {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.login-feature strong {
    color: #e2e8f0;

    font-size: 10px;
}

.login-feature p {
    margin: 0;

    color: #64748b;

    font-size: 8px;

    line-height: 1.4;
}

.login-hero-footer {
    position: relative;

    z-index: 1;

    margin-top: 40px;

    color: #475569;

    font-size: 8px;

    letter-spacing: 0.8px;

    text-transform: uppercase;
}

/* ========================================
   RIGHT SIDE
======================================== */

.login-form-section {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 40px;

    box-sizing: border-box;

    background: #020617;
}

.login-card-redesign {
    width: 100%;
    max-width: 390px;

    padding: 0;

    border: 0;

    background: transparent;

    box-shadow: none;
}

.login-mobile-brand {
    display: none;
}

.login-form-heading {
    margin-bottom: 30px;
}

.login-form-heading>span {
    color: #38bdf8;

    font-size: 9px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.2px;
}

.login-form-heading h2 {
    margin: 7px 0 6px;

    color: #f8fafc;

    font-size: 30px;
}

.login-form-heading p {
    margin: 0;

    color: #64748b;

    font-size: 10px;
}

/* ========================================
   FORM
======================================== */

.login-form-redesign {
    display: flex;

    flex-direction: column;

    gap: 19px;
}

.login-field {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.login-field label {
    color: #cbd5e1;

    font-size: 12px;

    font-weight: 650;
}

/* ========================================
   INPUTS
======================================== */

.login-input-shell {
    width: 100%;

    min-height: 49px;

    display: flex;

    align-items: center;

    box-sizing: border-box;

    border: 1px solid #26364c;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.72),
            rgba(7, 15, 29, 0.84)
        );

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.login-input-shell:focus-within {
    border-color: #0284c7;

    background:
        linear-gradient(
            180deg,
            rgba(15, 30, 50, 0.82),
            rgba(7, 15, 29, 0.92)
        );

    box-shadow:
        0 0 0 3px
        rgba(2, 132, 199, 0.11);
}

.login-input-shell > svg {
    flex: 0 0 18px;

    width: 18px;

    height: 18px;

    margin-left: 14px;

    color: #64748b;

    transition:
        color 0.15s ease;
}

.login-input-shell:focus-within > svg {
    color: #38bdf8;
}

.login-input-shell input {
    flex: 1;

    min-width: 0;

    width: 100%;

    min-height: 47px;

    box-sizing: border-box;

    padding: 0 14px;

    border: 0;

    outline: none;

    background: transparent;

    color: #f8fafc;

    font-size: 13px;

    font-family: inherit;
}

.login-input-shell input::placeholder {
    color: #44546a;
}

/* ========================================
   SUBMIT
======================================== */

.login-submit-button {
    width: 100%;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0 16px;

    margin-top: 2px;

    border: 1px solid #0284c7;

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #0ea5e9,
            #0284c7
        );

    color: #ffffff;

    font-size: 12px;

    font-weight: 750;

    font-family: inherit;

    cursor: pointer;

    box-shadow:
        0 10px 30px
        rgba(14, 165, 233, 0.13);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.login-submit-button:hover:not(:disabled) {
    transform:
        translateY(-1px);

    background:
        linear-gradient(
            180deg,
            #38bdf8,
            #0284c7
        );

    box-shadow:
        0 14px 35px
        rgba(14, 165, 233, 0.19);
}

.login-submit-button:disabled {
    opacity: 0.42;

    cursor: not-allowed;

    box-shadow: none;
}

.login-error {
    display: flex;

    align-items: flex-start;

    gap: 8px;

    padding: 10px 12px;

    border: 1px solid rgba(239, 68, 68, 0.28);

    border-radius: 6px;

    background:
        rgba(239, 68, 68, 0.07);

    color: #f87171;
}

.login-error span {
    flex-shrink: 0;

    font-weight: 700;
}

.login-error p {
    margin: 0;

    font-size: 9px;
}

.login-card-footer {
    margin-top: 22px;

    padding-top: 17px;

    border-top: 1px solid #1e293b;

    color: #475569;

    font-size: 8px;

    text-align: center;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1000px) {
    .login-shell {
        grid-template-columns:
            minmax(0,
                1fr) 420px;
    }

    .login-hero {
        padding: 40px;
    }

    .login-hero-copy {
        margin-top: 90px;
    }

    .login-feature-grid {
        grid-template-columns:
            1fr;
    }
}

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

    .login-hero {
        display: none;
    }

    .login-form-section {
        padding: 30px 22px;
    }

    .login-card-redesign {
        max-width: 420px;
    }

    .login-mobile-brand {
        display: flex;

        align-items: center;

        gap: 10px;

        margin-bottom: 45px;
    }

    .login-mobile-brand>div {
        display: flex;

        flex-direction: column;
    }

    .login-mobile-brand strong {
        color: #f8fafc;

        font-size: 13px;
    }

    /* 
    .login-mobile-brand span:not(.login-brand) {
        color: #64748b;

        font-size: 8px;
    } */
}

.login-register-link {
    margin-top: 20px;

    color: #64748b;

    font-size: 9px;

    text-align: center;
}

.login-register-link a {
    color: #38bdf8;

    font-weight: 700;

    text-decoration: none;
}

.login-register-link a:hover {
    text-decoration: underline;
}

/* =====================================================
   EMAIL VERIFICATION
===================================================== */

.login-verification-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    padding: 15px;

    border:
        1px solid
        rgba(56, 189, 248, 0.22);

    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 165, 233, 0.08),
            rgba(15, 23, 42, 0.38)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.025);
}

.login-verification-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(56, 189, 248, 0.2);

    border-radius: 10px;

    background:
        rgba(14, 165, 233, 0.08);

    color: #7dd3fc;
}

.login-verification-icon svg {
    width: 20px;
    height: 20px;
}

.login-verification-content {
    min-width: 0;
    flex: 1;
}

.login-verification-heading {
    margin-bottom: 5px;

    color: #e2e8f0;

    font-size: 11px;
    font-weight: 750;
}

.login-verification-text {
    margin: 0;

    color: #cbd5e1;

    font-size: 10px;
    line-height: 1.45;
}

.login-verification-subtext {
    margin: 5px 0 12px;

    color: #64748b;

    font-size: 9px;
    line-height: 1.5;
}

.login-resend-verification-button {
    width: auto;
    min-height: 36px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 0 13px;

    border:
        1px solid
        rgba(56, 189, 248, 0.28);

    border-radius: 8px;

    background:
        rgba(14, 165, 233, 0.08);

    color: #7dd3fc;

    font: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.login-resend-verification-button svg {
    width: 14px;
    height: 14px;
}

.login-resend-verification-button:hover:not(:disabled) {
    transform: translateY(-1px);

    border-color:
        rgba(56, 189, 248, 0.46);

    background:
        rgba(14, 165, 233, 0.13);
}

.login-resend-verification-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.login-verification-message {
    display: flex;
    align-items: flex-start;
    gap: 7px;

    margin: 0 0 11px;
    padding: 8px 10px;

    border:
        1px solid
        rgba(34, 197, 94, 0.16);

    border-radius: 7px;

    background:
        rgba(34, 197, 94, 0.055);

    color: #86efac;

    font-size: 8px;
    line-height: 1.45;
}

.login-verification-message svg {
    flex: 0 0 14px;

    width: 14px;
    height: 14px;
}

.login-verification-spinner {
    width: 12px;
    height: 12px;

    border:
        2px solid
        rgba(125, 211, 252, 0.2);

    border-top-color:
        currentColor;

    border-radius: 50%;

    animation:
        login-verification-spin
        0.75s linear
        infinite;
}

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

@media (max-width: 480px) {
    .login-verification-card {
        gap: 11px;
        padding: 13px;
    }

    .login-verification-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .login-resend-verification-button {
        width: 100%;
    }
}
/* CSS variables. */
:root {
	--PhoneInput-color--focus: #03b2cb;
	--PhoneInputInternationalIconPhone-opacity: 0.8;
	--PhoneInputInternationalIconGlobe-opacity: 0.65;
	--PhoneInputCountrySelect-marginRight: 0.35em;
	--PhoneInputCountrySelectArrow-width: 0.3em;
	--PhoneInputCountrySelectArrow-marginLeft: var(--PhoneInputCountrySelect-marginRight);
	--PhoneInputCountrySelectArrow-borderWidth: 1px;
	--PhoneInputCountrySelectArrow-opacity: 0.45;
	--PhoneInputCountrySelectArrow-color: currentColor;
	--PhoneInputCountrySelectArrow-color--focus: var(--PhoneInput-color--focus);
	--PhoneInputCountrySelectArrow-transform: rotate(45deg);
	--PhoneInputCountryFlag-aspectRatio: 1.5;
	--PhoneInputCountryFlag-height: 1em;
	--PhoneInputCountryFlag-borderWidth: 1px;
	--PhoneInputCountryFlag-borderColor: rgba(0,0,0,0.5);
	--PhoneInputCountryFlag-borderColor--focus: var(--PhoneInput-color--focus);
	--PhoneInputCountryFlag-backgroundColor--loading: rgba(0,0,0,0.1);
}

.PhoneInput {
	/* This is done to stretch the contents of this component. */
	display: flex;
	align-items: center;
}

.PhoneInputInput {
	/* The phone number input stretches to fill all empty space */
	flex: 1;
	/* The phone number input should shrink
	   to make room for the extension input */
	min-width: 0;
}

.PhoneInputCountryIcon {
	width: calc(var(--PhoneInputCountryFlag-height) * var(--PhoneInputCountryFlag-aspectRatio));
	height: var(--PhoneInputCountryFlag-height);
}

.PhoneInputCountryIcon--square {
	width: var(--PhoneInputCountryFlag-height);
}

.PhoneInputCountryIcon--border {
	/* Removed `background-color` because when an `<img/>` was still loading
	   it would show a dark gray rectangle. */
	/* For some reason the `<img/>` is not stretched to 100% width and height
	   and sometime there can be seen white pixels of the background at top and bottom. */
	background-color: var(--PhoneInputCountryFlag-backgroundColor--loading);
	/* Border is added via `box-shadow` because `border` interferes with `width`/`height`. */
	/* For some reason the `<img/>` is not stretched to 100% width and height
	   and sometime there can be seen white pixels of the background at top and bottom,
	   so an additional "inset" border is added. */
	box-shadow: 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),
		inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor);
}

.PhoneInputCountryIconImg {
	/* Fixes weird vertical space above the flag icon. */
	/* https://gitlab.com/catamphetamine/react-phone-number-input/-/issues/7#note_348586559 */
	display: block;
	/* 3rd party <SVG/> flag icons won't stretch if they have `width` and `height`.
	   Also, if an <SVG/> icon's aspect ratio was different, it wouldn't fit too. */
	width: 100%;
	height: 100%;
}

.PhoneInputInternationalIconPhone {
	opacity: var(--PhoneInputInternationalIconPhone-opacity);
}

.PhoneInputInternationalIconGlobe {
	opacity: var(--PhoneInputInternationalIconGlobe-opacity);
}

/* Styling native country `<select/>`. */

.PhoneInputCountry {
	position: relative;
	align-self: stretch;
	display: flex;
	align-items: center;
	margin-right: var(--PhoneInputCountrySelect-marginRight);
}

.PhoneInputCountrySelect {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	z-index: 1;
	border: 0;
	opacity: 0;
	cursor: pointer;
}

.PhoneInputCountrySelect[disabled],
.PhoneInputCountrySelect[readonly] {
	cursor: default;
}

.PhoneInputCountrySelectArrow {
	display: block;
	content: '';
	width: var(--PhoneInputCountrySelectArrow-width);
	height: var(--PhoneInputCountrySelectArrow-width);
	margin-left: var(--PhoneInputCountrySelectArrow-marginLeft);
	border-style: solid;
	border-color: var(--PhoneInputCountrySelectArrow-color);
	border-top-width: 0;
	border-bottom-width: var(--PhoneInputCountrySelectArrow-borderWidth);
	border-left-width: 0;
	border-right-width: var(--PhoneInputCountrySelectArrow-borderWidth);
	transform: var(--PhoneInputCountrySelectArrow-transform);
	opacity: var(--PhoneInputCountrySelectArrow-opacity);
}

.PhoneInputCountrySelect:focus + .PhoneInputCountryIcon + .PhoneInputCountrySelectArrow {
	opacity: 1;
	color: var(--PhoneInputCountrySelectArrow-color--focus);
}

.PhoneInputCountrySelect:focus + .PhoneInputCountryIcon--border {
	box-shadow: 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),
		inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus);
}

.PhoneInputCountrySelect:focus + .PhoneInputCountryIcon .PhoneInputInternationalIconGlobe {
	opacity: 1;
	color: var(--PhoneInputCountrySelectArrow-color--focus);
}/* =========================================================
   REGISTER PAGE
========================================================= */

.register-page {
    min-height: 100vh;
    background: #020617;
    color: #f8fafc;
}

.register-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(420px, 0.85fr)
        minmax(540px, 1.15fr);
}

/* =========================================================
   BRAND PANEL
========================================================= */

.register-brand-panel {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 46px 56px;
    border-right: 1px solid rgba(51, 65, 85, 0.7);
    overflow: hidden;

    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(14, 165, 233, 0.16),
            transparent 33%
        ),
        radial-gradient(
            circle at 95% 80%,
            rgba(2, 132, 199, 0.08),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #0d182b 0%,
            #020617 72%
        );
}

.register-brand-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(148, 163, 184, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(148, 163, 184, 0.04) 1px,
            transparent 1px
        );

    background-size: 36px 36px;
}

.register-brand-panel::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    left: -260px;
    bottom: -245px;
    border: 1px solid rgba(56, 189, 248, 0.13);
    border-radius: 50%;
}

.register-logo {
    position: relative;
    z-index: 2;
    width: auto;
    height: 66px;
    max-width: 290px;
    object-fit: contain;
}

.register-brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: auto 0;
}

.register-brand-content > span {
    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.register-brand-content h1 {
    margin: 16px 0 18px;
    max-width: 480px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.register-brand-content > p {
    max-width: 445px;
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.75;
}

.register-brand-footer {
    position: relative;
    z-index: 2;
    color: #475569;
    font-size: 11px;
}

/* =========================================================
   STEPS
========================================================= */

.register-progress-preview {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.register-step {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 10px;
    color: #64748b;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(8px);
}

.register-step span {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
}

.register-step strong {
    font-size: 11px;
}

.register-step.active {
    border-color: rgba(56, 189, 248, 0.35);
    color: #e2e8f0;
    background: rgba(14, 165, 233, 0.075);
}

.register-step.active span {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(14, 165, 233, 0.08);
    color: #7dd3fc;
}

/* =========================================================
   FORM SECTION
========================================================= */

.register-form-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 42px 58px;

    background:
        radial-gradient(
            circle at 80% 8%,
            rgba(14, 165, 233, 0.045),
            transparent 28%
        );
}

.register-card {
    width: 100%;
    max-width: 540px;
}

.register-heading {
    margin-bottom: 28px;
}

.register-heading > span {
    color: #38bdf8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.register-heading h2 {
    margin: 9px 0 8px;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.register-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================================
   FORM
========================================================= */

.register-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

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

.register-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.register-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 650;
}

.register-field label > span:not(.register-password-strength-label):not(.register-password-match) {
    color: #64748b;
    font-size: 10px;
    font-weight: 500;
}

/* =========================================================
   INPUT SHELL
========================================================= */

.register-input-shell {
    min-height: 49px;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;

    border: 1px solid #26364c;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.72),
            rgba(7, 15, 29, 0.84)
        );

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.register-input-shell:focus-within {
    border-color: #0284c7;

    background:
        linear-gradient(
            180deg,
            rgba(15, 30, 50, 0.82),
            rgba(7, 15, 29, 0.92)
        );

    box-shadow:
        0 0 0 3px
        rgba(2, 132, 199, 0.11);
}

.register-input-shell.is-valid {
    border-color: rgba(34, 197, 94, 0.38);
}

.register-input-shell.is-invalid {
    border-color: rgba(248, 113, 113, 0.48);

    box-shadow:
        0 0 0 3px
        rgba(248, 113, 113, 0.06);
}

.register-input-shell > svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-left: 14px;
    color: #64748b;
}

.register-input-shell:focus-within > svg {
    color: #38bdf8;
}

.register-input-shell input {
    flex: 1;
    min-width: 0;
    width: 100%;
    min-height: 47px;
    box-sizing: border-box;
    padding: 0 14px;

    border: 0;
    outline: none;

    background: transparent;

    color: #f8fafc;
    font-size: 13px;
    font-family: inherit;
}

.register-input-shell input::placeholder {
    color: #44546a;
}

.register-field-hint {
    color: #526176;
    font-size: 10px;
    line-height: 1.45;
}

.register-field-hint.is-error {
    color: #fb7185;
}

/* =========================================================
   PHONE INPUT
========================================================= */

.register-phone-shell {
    min-height: 49px;
    display: flex;
    align-items: center;

    box-sizing: border-box;
    padding: 0 13px;

    border: 1px solid #26364c;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.72),
            rgba(7, 15, 29, 0.84)
        );

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.register-phone-shell:focus-within {
    border-color: #0284c7;

    box-shadow:
        0 0 0 3px
        rgba(2, 132, 199, 0.11);
}

.register-phone-shell.is-valid {
    border-color: rgba(34, 197, 94, 0.35);
}

.register-phone-shell.is-invalid {
    border-color: rgba(248, 113, 113, 0.5);
}

.register-phone-shell .PhoneInput {
    width: 100%;
}

.register-phone-shell .PhoneInputCountry {
    margin-right: 12px;
}

.register-phone-shell .PhoneInputCountrySelectArrow {
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-color: #64748b;
}

.register-phone-shell .PhoneInputCountryIcon {
    width: 24px;
    height: 18px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: none;
}

.register-phone-shell .PhoneInputCountryIcon--border {
    background-color: transparent;
    box-shadow: none;
}

.register-phone-shell .PhoneInputInput {
    min-height: 47px;
    width: 100%;

    border: 0;
    outline: none;

    background: transparent;

    color: #f8fafc;
    font-size: 13px;
    font-family: inherit;
}

.register-phone-shell .PhoneInputInput::placeholder {
    color: #44546a;
}

/* =========================================================
   PASSWORD
========================================================= */

.register-password-input input {
    padding-right: 4px;
}

.register-password-toggle {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 3px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #64748b;

    cursor: pointer;

    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.register-password-toggle:hover {
    background: rgba(148, 163, 184, 0.06);
    color: #cbd5e1;
}

.register-password-toggle svg {
    width: 18px;
    height: 18px;
}

.register-password-strength-label,
.register-password-match {
    font-size: 10px;
    font-weight: 750;
}

.register-password-strength-label.is-weak {
    color: #fb7185;
}

.register-password-strength-label.is-medium {
    color: #fbbf24;
}

.register-password-strength-label.is-strong,
.register-password-match.is-valid {
    color: #4ade80;
}

.register-password-match.is-invalid {
    color: #fb7185;
}

.register-password-strength {
    margin-top: 2px;
}

.register-strength-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 11px;
}

.register-strength-track > span {
    height: 3px;
    border-radius: 999px;
    background: #182538;
}

.register-strength-track > span.active {
    background: #fb7185;
}

.register-strength-track > span.active.medium {
    background: #fbbf24;
}

.register-strength-track > span.active.strong {
    background: #22c55e;
}

.register-password-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
}

.register-password-rule {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 9px;
}

.register-password-rule.is-valid {
    color: #86efac;
}

.register-password-rule-icon {
    width: 13px;
    display: inline-flex;
    justify-content: center;
    font-weight: 800;
}

/* =========================================================
   ERROR
========================================================= */

.register-error {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    padding: 11px 13px;

    border: 1px solid
        rgba(239, 68, 68, 0.26);

    border-radius: 9px;

    background:
        rgba(239, 68, 68, 0.06);

    color: #fda4af;
    font-size: 10px;
    line-height: 1.45;
}

.register-error svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

/* =========================================================
   SUBMIT
========================================================= */

.register-submit {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 16px;
    margin-top: 2px;

    border: 1px solid #0284c7;
    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            #0ea5e9,
            #0284c7
        );

    color: #fff;

    font-size: 12px;
    font-weight: 750;
    font-family: inherit;

    cursor: pointer;

    box-shadow:
        0 10px 30px
        rgba(14, 165, 233, 0.13);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.register-submit svg {
    width: 17px;
    height: 17px;
}

.register-submit:hover:not(:disabled) {
    transform: translateY(-1px);

    background:
        linear-gradient(
            180deg,
            #38bdf8,
            #0284c7
        );

    box-shadow:
        0 14px 35px
        rgba(14, 165, 233, 0.19);
}

.register-submit:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.register-button-spinner {
    width: 14px;
    height: 14px;

    border: 2px solid
        rgba(255, 255, 255, 0.3);

    border-top-color: #fff;
    border-radius: 50%;

    animation:
        register-button-spin
        0.75s linear
        infinite;
}

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

/* =========================================================
   LOGIN LINK
========================================================= */

.register-login-link {
    margin-top: 23px;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

.register-login-link a {
    color: #38bdf8;
    font-weight: 750;
    text-decoration: none;
}

.register-login-link a:hover {
    color: #7dd3fc;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px) {
    .register-shell {
        grid-template-columns: 1fr;
    }

    .register-brand-panel {
        display: none;
    }

    .register-form-section {
        padding: 40px 24px;
    }

    .register-card {
        max-width: 580px;
    }
}

@media (max-width: 560px) {
    .register-form-section {
        padding: 30px 18px;
    }

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

    .register-heading h2 {
        font-size: 29px;
    }

    .register-form {
        gap: 17px;
    }
}
.verify-email-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      #020817 0%,
      #04101f 45%,
      #020817 100%
    );
  color: #f8fafc;
}

.verify-email-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.verify-email-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.18;
}

.verify-email-glow-one {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -150px;
  background: #0ea5e9;
}

.verify-email-glow-two {
  width: 460px;
  height: 460px;
  right: -130px;
  bottom: -180px;
  background: #0369a1;
}

.verify-email-grid {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(148, 163, 184, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.025) 1px,
      transparent 1px
    );

  background-size:
    42px 42px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 80%
    );
}

.verify-email-shell {
  position: relative;
  z-index: 1;

  min-height: 100vh;

  display: grid;

  grid-template-rows:
    auto
    1fr
    auto;

  width: min(
    calc(100% - 48px),
    1320px
  );

  margin:
    0 auto;
}

.verify-email-header {
  min-height: 92px;

  display: flex;

  align-items: center;
}

.verify-email-brand {
  display: inline-flex;

  align-items: center;

  text-decoration: none;
}

.verify-email-brand img {
  display: block;

  width: 168px;

  max-height: 52px;

  object-fit: contain;
}

.verify-email-content {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  gap: 20px;

  padding:
    40px
    0
    70px;
}

.verify-email-card {
  position: relative;

  width: min(
    100%,
    560px
  );

  padding:
    46px
    46px
    40px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.16
    );

  border-radius:
    24px;

  background:
    linear-gradient(
      145deg,
      rgba(
        15,
        28,
        46,
        0.96
      ),
      rgba(
        7,
        18,
        33,
        0.96
      )
    );

  box-shadow:
    0
    30px
    80px
    rgba(
      0,
      0,
      0,
      0.36
    ),
    inset
    0
    1px
    0
    rgba(
      255,
      255,
      255,
      0.025
    );

  text-align: center;
}

.verify-email-card::before {
  content: '';

  position: absolute;

  top: 0;

  left: 50%;

  width: 150px;

  height: 1px;

  transform:
    translateX(
      -50%
    );

  background:
    linear-gradient(
      90deg,
      transparent,
      #38bdf8,
      transparent
    );
}

.verify-email-icon-wrapper {
  position: relative;

  width: 92px;

  height: 92px;

  margin:
    0 auto
    28px;

  display: flex;

  align-items: center;

  justify-content: center;
}

.verify-email-icon-glow {
  position: absolute;

  inset: 5px;

  border-radius:
    28px;

  background:
    #0ea5e9;

  filter:
    blur(
      28px
    );

  opacity:
    0.17;
}

.verify-email-main-icon {
  position: relative;

  z-index: 2;

  width: 82px;

  height: 82px;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.25
    );

  border-radius:
    24px;

  display: flex;

  align-items: center;

  justify-content: center;

  background:
    linear-gradient(
      145deg,
      rgba(
        14,
        165,
        233,
        0.13
      ),
      rgba(
        14,
        165,
        233,
        0.04
      )
    );

  color:
    #7dd3fc;

  box-shadow:
    inset
    0
    1px
    0
    rgba(
      255,
      255,
      255,
      0.04
    );
}

.verify-email-main-icon svg {
  width: 38px;

  height: 38px;
}

.verify-email-icon-badge {
  position: absolute;

  z-index: 3;

  right: -2px;

  bottom: -2px;

  width: 30px;

  height: 30px;

  display: flex;

  align-items: center;

  justify-content: center;

  border:
    4px solid
    #0a1729;

  border-radius:
    999px;

  background:
    #22c55e;

  color:
    white;
}

.verify-email-icon-badge svg {
  width: 15px;

  height: 15px;
}

.verify-email-status-label {
  margin-bottom:
    12px;

  color:
    #38bdf8;

  font-size:
    11px;

  font-weight:
    800;

  letter-spacing:
    0.17em;

  text-transform:
    uppercase;
}

.verify-email-card h1 {
  margin:
    0
    0
    14px;

  color:
    #f8fafc;

  font-size:
    clamp(
      30px,
      4vw,
      39px
    );

  font-weight:
    750;

  line-height:
    1.08;

  letter-spacing:
    -0.035em;
}

.verify-email-description {
  max-width:
    425px;

  margin:
    0 auto
    28px;

  color:
    #91a2b8;

  font-size:
    15px;

  line-height:
    1.65;
}

.verify-email-address-card {
  display: flex;

  align-items: center;

  gap: 14px;

  margin:
    0 0
    28px;

  padding:
    14px
    16px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.15
    );

  border-radius:
    13px;

  background:
    rgba(
      2,
      8,
      23,
      0.45
    );

  text-align:
    left;
}

.verify-email-address-icon {
  flex:
    0 0
    38px;

  width:
    38px;

  height:
    38px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    10px;

  background:
    rgba(
      14,
      165,
      233,
      0.1
    );

  color:
    #38bdf8;

  font-size:
    18px;

  font-weight:
    800;
}

.verify-email-address-content {
  min-width: 0;

  display:
    flex;

  flex-direction:
    column;

  gap:
    3px;
}

.verify-email-address-content span {
  color:
    #64748b;

  font-size:
    11px;

  font-weight:
    700;

  text-transform:
    uppercase;

  letter-spacing:
    0.07em;
}

.verify-email-address-content strong {
  overflow:
    hidden;

  color:
    #e2e8f0;

  font-size:
    14px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.verify-email-steps {
  display:
    flex;

  align-items:
    flex-start;

  justify-content:
    center;

  margin:
    4px 0
    30px;
}

.verify-email-step {
  flex:
    1;

  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;

  gap:
    9px;

  max-width:
    140px;
}

.verify-email-step > span {
  width:
    28px;

  height:
    28px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.25
    );

  border-radius:
    999px;

  background:
    rgba(
      14,
      165,
      233,
      0.08
    );

  color:
    #7dd3fc;

  font-size:
    11px;

  font-weight:
    800;
}

.verify-email-step p {
  margin: 0;

  color:
    #718198;

  font-size:
    11px;

  line-height:
    1.45;
}

.verify-email-step strong {
  color:
    #aebdce;
}

.verify-email-step-line {
  flex:
    0 0
    42px;

  height:
    1px;

  margin-top:
    14px;

  background:
    linear-gradient(
      90deg,
      rgba(
        56,
        189,
        248,
        0.15
      ),
      rgba(
        56,
        189,
        248,
        0.4
      ),
      rgba(
        56,
        189,
        248,
        0.15
      )
    );
}

.verify-email-primary-button,
.verify-email-secondary-button,
.verify-email-login-button {
  width:
    100%;

  min-height:
    50px;

  border-radius:
    11px;

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    9px;

  font:
    inherit;

  font-size:
    14px;

  font-weight:
    750;

  text-decoration:
    none;

  transition:
    transform
    0.16s ease,
    background
    0.16s ease,
    border-color
    0.16s ease,
    box-shadow
    0.16s ease;
}

.verify-email-primary-button,
.verify-email-login-button {
  border:
    1px solid
    #0ea5e9;

  background:
    linear-gradient(
      180deg,
      #0ea5e9,
      #0284c7
    );

  color:
    #ffffff;

  box-shadow:
    0
    10px
    30px
    rgba(
      14,
      165,
      233,
      0.16
    );
}

.verify-email-secondary-button {
  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.2
    );

  background:
    rgba(
      15,
      23,
      42,
      0.55
    );

  color:
    #dbe7f4;

  cursor:
    pointer;
}

.verify-email-primary-button:hover,
.verify-email-login-button:hover {
  transform:
    translateY(
      -1px
    );

  background:
    linear-gradient(
      180deg,
      #38bdf8,
      #0284c7
    );

  box-shadow:
    0
    12px
    35px
    rgba(
      14,
      165,
      233,
      0.22
    );
}

.verify-email-secondary-button:hover:not(:disabled) {
  border-color:
    rgba(
      56,
      189,
      248,
      0.35
    );

  background:
    rgba(
      30,
      41,
      59,
      0.75
    );
}

.verify-email-primary-button svg,
.verify-email-secondary-button svg,
.verify-email-login-button svg {
  width:
    18px;

  height:
    18px;
}

.verify-email-secondary-button:disabled,
.verify-email-primary-button:disabled {
  cursor:
    not-allowed;

  opacity:
    0.6;
}

.verify-email-divider {
  display:
    flex;

  align-items:
    center;

  gap:
    12px;

  margin:
    24px 0;
}

.verify-email-divider span {
  flex:
    1;

  height:
    1px;

  background:
    rgba(
      148,
      163,
      184,
      0.11
    );
}

.verify-email-divider p {
  margin: 0;

  color:
    #64748b;

  font-size:
    11px;

  white-space:
    nowrap;
}

.verify-email-expiration {
  margin:
    18px
    0
    0;

  color:
    #526176;

  font-size:
    11px;

  line-height:
    1.5;
}

.verify-email-alert {
  display:
    flex;

  align-items:
    center;

  gap:
    10px;

  margin:
    0 0
    18px;

  padding:
    11px
    13px;

  border-radius:
    10px;

  font-size:
    12px;

  text-align:
    left;
}

.verify-email-alert-success {
  border:
    1px solid
    rgba(
      34,
      197,
      94,
      0.2
    );

  background:
    rgba(
      34,
      197,
      94,
      0.07
    );

  color:
    #86efac;
}

.verify-email-alert svg {
  flex:
    0 0
    17px;

  width:
    17px;

  height:
    17px;
}

.verify-email-security-note {
  width:
    min(
      100%,
      560px
    );

  display:
    flex;

  align-items:
    flex-start;

  gap:
    13px;

  padding:
    15px
    18px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.08
    );

  border-radius:
    14px;

  background:
    rgba(
      15,
      23,
      42,
      0.27
    );
}

.verify-email-security-icon {
  flex:
    0 0
    32px;

  width:
    32px;

  height:
    32px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  color:
    #64748b;
}

.verify-email-security-icon svg {
  width:
    21px;

  height:
    21px;
}

.verify-email-security-note strong {
  display:
    block;

  margin-bottom:
    3px;

  color:
    #94a3b8;

  font-size:
    12px;
}

.verify-email-security-note p {
  margin: 0;

  color:
    #526176;

  font-size:
    11px;

  line-height:
    1.5;
}

.verify-email-footer {
  min-height:
    70px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  border-top:
    1px solid
    rgba(
      148,
      163,
      184,
      0.06
    );

  color:
    #3f4d61;

  font-size:
    10px;

  letter-spacing:
    0.04em;
}

/* =====================================================
   CENTER STATES
===================================================== */

.verify-email-center-state {
  display:
    flex;

  flex-direction:
    column;

  align-items:
    center;
}

.verify-email-loader-ring {
  position:
    relative;

  width:
    92px;

  height:
    92px;

  margin:
    0 auto
    30px;

  border:
    2px solid
    rgba(
      56,
      189,
      248,
      0.1
    );

  border-top-color:
    #38bdf8;

  border-radius:
    999px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  animation:
    verify-email-spin
    1s linear
    infinite;
}

.verify-email-loader-inner {
  width:
    64px;

  height:
    64px;

  border-radius:
    999px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  background:
    rgba(
      14,
      165,
      233,
      0.08
    );

  color:
    #7dd3fc;

  animation:
    verify-email-reverse-spin
    1s linear
    infinite;
}

.verify-email-loader-inner svg {
  width:
    28px;

  height:
    28px;
}

.verify-email-loading-bar {
  width:
    220px;

  height:
    4px;

  margin:
    2px 0
    15px;

  overflow:
    hidden;

  border-radius:
    999px;

  background:
    rgba(
      148,
      163,
      184,
      0.08
    );
}

.verify-email-loading-bar span {
  display:
    block;

  width:
    45%;

  height:
    100%;

  border-radius:
    inherit;

  background:
    linear-gradient(
      90deg,
      #0284c7,
      #38bdf8
    );

  animation:
    verify-email-loading
    1.3s ease-in-out
    infinite;
}

.verify-email-small-text {
  margin: 0;

  color:
    #526176;

  font-size:
    11px;
}

.verify-email-success-icon,
.verify-email-error-icon {
  width:
    88px;

  height:
    88px;

  margin:
    0 auto
    28px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    999px;
}

.verify-email-success-icon {
  border:
    1px solid
    rgba(
      34,
      197,
      94,
      0.3
    );

  background:
    rgba(
      34,
      197,
      94,
      0.08
    );

  color:
    #4ade80;

  box-shadow:
    0
    0
    45px
    rgba(
      34,
      197,
      94,
      0.08
    );
}

.verify-email-error-icon {
  border:
    1px solid
    rgba(
      244,
      63,
      94,
      0.28
    );

  background:
    rgba(
      244,
      63,
      94,
      0.07
    );

  color:
    #fb7185;
}

.verify-email-success-icon svg,
.verify-email-error-icon svg {
  width:
    44px;

  height:
    44px;
}

.verify-email-status-success {
  color:
    #4ade80;
}

.verify-email-status-error {
  color:
    #fb7185;
}

.verify-email-success-box,
.verify-email-error-box {
  width:
    100%;

  margin:
    0 0
    24px;

  padding:
    14px
    16px;

  border-radius:
    12px;

  font-size:
    12px;

  line-height:
    1.55;
}

.verify-email-success-box {
  display:
    flex;

  align-items:
    center;

  gap:
    11px;

  border:
    1px solid
    rgba(
      34,
      197,
      94,
      0.15
    );

  background:
    rgba(
      34,
      197,
      94,
      0.055
    );

  color:
    #94a3b8;

  text-align:
    left;
}

.verify-email-success-box > div {
  flex:
    0 0
    30px;

  width:
    30px;

  height:
    30px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  border-radius:
    999px;

  background:
    rgba(
      34,
      197,
      94,
      0.1
    );

  color:
    #4ade80;
}

.verify-email-success-box svg {
  width:
    17px;

  height:
    17px;
}

.verify-email-success-box p {
  margin: 0;
}

.verify-email-error-box {
  border:
    1px solid
    rgba(
      244,
      63,
      94,
      0.13
    );

  background:
    rgba(
      244,
      63,
      94,
      0.045
    );

  color:
    #94a3b8;
}

.verify-email-back-link {
  margin-top:
    20px;

  color:
    #64748b;

  font-size:
    12px;

  font-weight:
    650;

  text-decoration:
    none;
}

.verify-email-back-link:hover {
  color:
    #bae6fd;
}

.verify-email-button-spinner {
  width:
    16px;

  height:
    16px;

  border:
    2px solid
    rgba(
      255,
      255,
      255,
      0.25
    );

  border-top-color:
    currentColor;

  border-radius:
    999px;

  animation:
    verify-email-spin
    0.8s linear
    infinite;
}

/* =====================================================
   ANIMATIONS
===================================================== */

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

@keyframes verify-email-reverse-spin {
  to {
    transform:
      rotate(
        -360deg
      );
  }
}

@keyframes verify-email-loading {
  0% {
    transform:
      translateX(
        -120%
      );
  }

  50% {
    transform:
      translateX(
        80%
      );
  }

  100% {
    transform:
      translateX(
        240%
      );
  }
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (
  max-width:
    700px
) {
  .verify-email-shell {
    width:
      min(
        calc(
          100% - 28px
        ),
        560px
      );
  }

  .verify-email-header {
    min-height:
      75px;
  }

  .verify-email-brand img {
    width:
      145px;
  }

  .verify-email-content {
    padding:
      25px
      0
      45px;
  }

  .verify-email-card {
    padding:
      36px
      24px
      30px;

    border-radius:
      20px;
  }

  .verify-email-steps {
    flex-direction:
      column;

    align-items:
      stretch;

    gap:
      10px;

    text-align:
      left;
  }

  .verify-email-step {
    max-width:
      none;

    flex-direction:
      row;

    align-items:
      center;

    text-align:
      left;
  }

  .verify-email-step-line {
    display:
      none;
  }

  .verify-email-step p {
    font-size:
      12px;
  }

  .verify-email-footer {
    flex-direction:
      column;

    justify-content:
      center;

    gap:
      6px;

    text-align:
      center;
  }
}/* =========================================================
   LANDING
========================================================= */

.landing {
  --landing-bg: #07101f;
  --landing-bg-soft: #0b1628;
  --landing-card: #0f1c2f;
  --landing-card-soft: #122239;

  --landing-primary: #2563eb;
  --landing-primary-light: #3b82f6;
  --landing-primary-soft: rgba(37, 99, 235, 0.12);

  --landing-green: #22c55e;

  --landing-text: #f8fafc;
  --landing-text-soft: #cbd5e1;
  --landing-text-muted: #8493a8;

  --landing-border: rgba(148, 163, 184, 0.14);
  --landing-border-strong: rgba(148, 163, 184, 0.24);

  width: 100%;
  min-height: 100vh;

  overflow-x: hidden;

  color: var(--landing-text);

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(37, 99, 235, 0.09),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(14, 165, 233, 0.05),
      transparent 30%
    ),
    var(--landing-bg);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.landing *,
.landing *::before,
.landing *::after {
  box-sizing: border-box;
}

.landing a {
  color: inherit;
}

.landing-container {
  width: min(1180px, calc(100% - 48px));

  margin: 0 auto;
}

/* =========================================================
   NAVBAR
========================================================= */

.landing-navbar {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;

  border-bottom:
    1px solid
    rgba(148, 163, 184, 0.1);

  background:
    rgba(7, 16, 31, 0.82);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.landing-navbar-inner {
  min-height: 78px;

  display: grid;

  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: 32px;
}

/* =========================================================
   LOGO
========================================================= */

.landing-brand {
  display: inline-flex;

  align-items: center;

  width: fit-content;

  text-decoration: none;

  flex-shrink: 0;
}

.landing-brand-logo {
  display: block;

  width: auto;
  height: 48px;

  max-width: 210px;

  object-fit: contain;
}

.landing-footer-logo {
  height: 52px;

  max-width: 220px;
}

/* =========================================================
   NAV
========================================================= */

.landing-nav {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 30px;
}

.landing-nav a {
  position: relative;

  padding: 8px 0;

  color: var(--landing-text-soft);

  font-size: 14px;
  font-weight: 500;

  text-decoration: none;

  transition:
    color 0.2s ease;
}

.landing-nav a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 2px;

  border-radius: 999px;

  background:
    var(--landing-primary-light);

  transform: scaleX(0);

  transform-origin: center;

  transition:
    transform 0.2s ease;
}

.landing-nav a:hover {
  color: #ffffff;
}

.landing-nav a:hover::after {
  transform: scaleX(1);
}

/* =========================================================
   NAV ACTIONS
========================================================= */

.landing-navbar-actions {
  display: flex;

  align-items: center;

  gap: 18px;
}

.landing-login-link {
  color: var(--landing-text-soft);

  font-size: 14px;
  font-weight: 600;

  text-decoration: none;

  transition:
    color 0.2s ease;
}

.landing-login-link:hover {
  color: #ffffff;
}

/* =========================================================
   BUTTONS
========================================================= */

.landing-primary-button {
  min-height: 43px;

  padding: 0 19px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  border:
    1px solid
    rgba(96, 165, 250, 0.35);

  border-radius: 10px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #1d4ed8
    );

  box-shadow:
    0 10px 30px
    rgba(37, 99, 235, 0.2);

  font-size: 14px;
  font-weight: 650;

  text-decoration: none;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.landing-primary-button:hover {
  transform:
    translateY(-2px);

  background:
    linear-gradient(
      135deg,
      #3b82f6,
      #2563eb
    );

  box-shadow:
    0 14px 38px
    rgba(37, 99, 235, 0.3);
}

.landing-primary-button-large {
  min-height: 50px;

  padding: 0 24px;

  font-size: 15px;
}

.landing-secondary-button {
  min-height: 50px;

  padding: 0 22px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    var(--landing-border-strong);

  border-radius: 10px;

  color:
    var(--landing-text-soft);

  background:
    rgba(255, 255, 255, 0.025);

  font-size: 15px;
  font-weight: 600;

  text-decoration: none;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.landing-secondary-button:hover {
  color: #ffffff;

  border-color:
    rgba(148, 163, 184, 0.4);

  background:
    rgba(255, 255, 255, 0.05);

  transform:
    translateY(-2px);
}

/* =========================================================
   HERO
========================================================= */

.landing-hero {
  position: relative;

  min-height:
    calc(100vh - 78px);

  display: flex;

  align-items: center;

  overflow: hidden;

  padding:
    90px
    0
    100px;
}

.landing-hero-glow {
  position: absolute;

  border-radius: 50%;

  filter: blur(100px);

  pointer-events: none;
}

.landing-hero-glow-one {
  width: 420px;
  height: 420px;

  left: -180px;
  top: 60px;

  background:
    rgba(37, 99, 235, 0.12);
}

.landing-hero-glow-two {
  width: 360px;
  height: 360px;

  right: -100px;
  bottom: 0;

  background:
    rgba(14, 165, 233, 0.08);
}

.landing-hero-grid {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(500px, 1.05fr);

  align-items: center;

  gap: 72px;
}

.landing-eyebrow {
  display: inline-flex;

  align-items: center;

  min-height: 30px;

  padding: 0 11px;

  border:
    1px solid
    rgba(59, 130, 246, 0.28);

  border-radius: 999px;

  color: #60a5fa;

  background:
    rgba(37, 99, 235, 0.08);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.landing-hero-copy h1 {
  max-width: 700px;

  margin:
    22px
    0
    22px;

  color: #ffffff;

  font-size:
    clamp(
      44px,
      5vw,
      72px
    );

  line-height: 1.02;

  letter-spacing: -0.045em;

  font-weight: 760;
}

.landing-hero-copy h1 span {
  color:
    var(--landing-primary-light);
}

.landing-hero-copy > p {
  max-width: 620px;

  margin: 0;

  color:
    var(--landing-text-muted);

  font-size: 17px;

  line-height: 1.8;
}

.landing-hero-actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 32px;
}

.landing-hero-features {
  display: flex;

  flex-wrap: wrap;

  gap:
    10px
    22px;

  margin-top: 27px;

  color:
    var(--landing-text-soft);

  font-size: 13px;
}

/* =========================================================
   HERO WINDOW
========================================================= */

.landing-hero-visual {
  position: relative;

  width: 100%;

  padding:
    35px
    12px;
}

.landing-terminal-window {
  position: relative;

  width: 100%;

  border:
    1px solid
    rgba(148, 163, 184, 0.15);

  border-radius: 18px;

  overflow: hidden;

  background:
    #0a1424;

  box-shadow:
    0 50px 100px
    rgba(0, 0, 0, 0.42);
}

.landing-window-top {
  height: 46px;

  padding:
    0
    16px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  border-bottom:
    1px solid
    rgba(148, 163, 184, 0.1);

  background:
    rgba(255, 255, 255, 0.015);
}

.landing-window-controls {
  display: flex;

  gap: 6px;
}

.landing-window-controls span {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background:
    rgba(148, 163, 184, 0.34);
}

.landing-window-top small {
  color:
    var(--landing-text-muted);

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.16em;
}

.landing-window-content {
  min-height: 430px;

  display: grid;

  grid-template-columns:
    68px
    1fr;
}

/* =========================================================
   MOCK SIDEBAR
========================================================= */

.landing-window-sidebar {
  padding:
    19px
    12px;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 15px;

  border-right:
    1px solid
    rgba(148, 163, 184, 0.08);

  background:
    rgba(255, 255, 255, 0.012);
}

.landing-window-logo {
  width: 46px;
  height: 46px;

  margin-bottom: 7px;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  border:
    1px solid
    rgba(148, 163, 184, 0.1);

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.025);
}

.landing-window-logo img {
  display: block;

  width: calc(100% - 8px);
  height: calc(100% - 8px);

  object-fit: contain;
}

.landing-window-nav-item {
  width: 31px;
  height: 8px;

  border-radius: 999px;

  background:
    rgba(148, 163, 184, 0.13);
}

.landing-window-nav-item.is-active {
  background:
    rgba(59, 130, 246, 0.7);

  box-shadow:
    0 0 18px
    rgba(59, 130, 246, 0.22);
}

/* =========================================================
   MOCK MAIN
========================================================= */

.landing-window-main {
  min-width: 0;

  padding: 20px;
}

.landing-window-heading {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;
}

.landing-window-heading > div:first-child {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.landing-window-heading span {
  width: 62px;
  height: 6px;

  display: block;

  border-radius: 999px;

  background:
    rgba(148, 163, 184, 0.17);
}

.landing-window-heading strong {
  width: 110px;
  height: 10px;

  display: block;

  border-radius: 999px;

  background:
    rgba(226, 232, 240, 0.2);
}

.landing-window-pill {
  width: 78px;
  height: 24px;

  border:
    1px solid
    rgba(59, 130, 246, 0.14);

  border-radius: 999px;

  background:
    rgba(37, 99, 235, 0.07);
}

/* =========================================================
   MOCK YARD
========================================================= */

.landing-yard-visual {
  position: relative;

  height: 265px;

  overflow: hidden;

  border:
    1px solid
    rgba(148, 163, 184, 0.08);

  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      rgba(20, 36, 59, 0.76),
      rgba(9, 19, 34, 0.96)
    );
}

.landing-yard-grid {
  position: absolute;

  inset: 0;

  opacity: 0.22;

  background-image:
    linear-gradient(
      rgba(96, 165, 250, 0.18)
      1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(96, 165, 250, 0.18)
      1px,
      transparent 1px
    );

  background-size:
    34px
    34px;

  transform:
    perspective(700px)
    rotateX(58deg)
    scale(1.45);

  transform-origin: center 75%;
}

.landing-container-stack {
  position: absolute;

  display: flex;

  flex-direction: column-reverse;

  gap: 3px;

  transform:
    skewY(-3deg);
}

.landing-container-stack span {
  display: block;

  width: 94px;
  height: 28px;

  border:
    1px solid
    rgba(147, 197, 253, 0.22);

  border-radius: 3px;

  background:
    linear-gradient(
      90deg,
      #17489b,
      #2563eb
    );

  box-shadow:
    0 8px 18px
    rgba(0, 0, 0, 0.22);
}

.landing-container-stack span::after {
  content: "";

  display: block;

  width: 75%;

  height: 100%;

  margin: auto;

  opacity: 0.35;

  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 7px,
      rgba(255, 255, 255, 0.16) 8px
    );
}

.stack-one {
  left: 12%;
  bottom: 34px;
}

.stack-two {
  left: 38%;
  bottom: 70px;

  transform:
    scale(0.88)
    skewY(-3deg);
}

.stack-three {
  right: 9%;
  bottom: 40px;

  transform:
    scale(0.76)
    skewY(-3deg);
}

.stack-four {
  left: 57%;
  top: 51px;

  transform:
    scale(0.62)
    skewY(-3deg);

  opacity: 0.7;
}

/* =========================================================
   MOCK STATS
========================================================= */

.landing-window-stats {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 10px;

  margin-top: 14px;
}

.landing-window-stats > div {
  padding: 12px;

  display: flex;

  flex-direction: column;

  gap: 5px;

  border:
    1px solid
    rgba(148, 163, 184, 0.08);

  border-radius: 9px;

  background:
    rgba(255, 255, 255, 0.018);
}

.landing-window-stats small {
  color:
    var(--landing-text-muted);

  font-size: 10px;
}

.landing-window-stats strong {
  color:
    #ffffff;

  font-size: 16px;
}

/* =========================================================
   FLOATING CARDS
========================================================= */

.landing-floating-card {
  position: absolute;

  z-index: 10;

  min-width: 190px;

  padding:
    12px
    14px;

  display: flex;

  align-items: center;

  gap: 11px;

  border:
    1px solid
    rgba(148, 163, 184, 0.16);

  border-radius: 11px;

  background:
    rgba(12, 24, 42, 0.92);

  backdrop-filter: blur(15px);

  box-shadow:
    0 20px 45px
    rgba(0, 0, 0, 0.28);
}

.landing-floating-card-top {
  right: -18px;
  top: 6px;
}

.landing-floating-card-bottom {
  left: -22px;
  bottom: 0;
}

.landing-floating-card small {
  display: block;

  margin-bottom: 3px;

  color:
    var(--landing-text-muted);

  font-size: 10px;
}

.landing-floating-card strong {
  color:
    #ffffff;

  font-size: 12px;
  font-weight: 650;
}

.landing-status-dot {
  width: 9px;
  height: 9px;

  flex-shrink: 0;

  border-radius: 50%;

  background:
    var(--landing-green);

  box-shadow:
    0 0 0 5px
    rgba(34, 197, 94, 0.1);
}

.landing-floating-icon {
  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 8px;

  color: #60a5fa;

  background:
    rgba(37, 99, 235, 0.12);

  font-size: 17px;
}

/* =========================================================
   STATS
========================================================= */

.landing-stats-section {
  border-top:
    1px solid
    var(--landing-border);

  border-bottom:
    1px solid
    var(--landing-border);

  background:
    rgba(255, 255, 255, 0.01);
}

.landing-stats {
  min-height: 125px;

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  align-items: center;
}

.landing-stat {
  position: relative;

  padding: 25px;

  text-align: center;
}

.landing-stat:not(:last-child)::after {
  content: "";

  position: absolute;

  right: 0;
  top: 25%;

  width: 1px;
  height: 50%;

  background:
    var(--landing-border);
}

.landing-stat strong {
  display: block;

  margin-bottom: 5px;

  color: #ffffff;

  font-size: 26px;
}

.landing-stat span {
  color:
    var(--landing-text-muted);

  font-size: 12px;
}

/* =========================================================
   SECTIONS
========================================================= */

.landing-section {
  padding:
    105px
    0;
}

.landing-section-alt {
  background:
    rgba(255, 255, 255, 0.012);

  border-top:
    1px solid
    rgba(148, 163, 184, 0.06);

  border-bottom:
    1px solid
    rgba(148, 163, 184, 0.06);
}

.landing-section-heading {
  max-width: 700px;

  margin:
    0
    auto
    55px;

  text-align: center;
}

.landing-section-heading h2,
.landing-platform-grid h2,
.landing-contact-copy h2,
.landing-cta h2 {
  margin:
    17px
    0
    15px;

  color: #ffffff;

  font-size:
    clamp(
      32px,
      4vw,
      48px
    );

  line-height: 1.1;

  letter-spacing: -0.035em;
}

.landing-section-heading p,
.landing-section-description {
  margin: 0;

  color:
    var(--landing-text-muted);

  font-size: 15px;

  line-height: 1.75;
}

/* =========================================================
   SERVICES
========================================================= */

.landing-services-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 16px;
}

.landing-service-card {
  min-width: 0;

  padding: 25px;

  border:
    1px solid
    var(--landing-border);

  border-radius: 14px;

  background:
    linear-gradient(
      180deg,
      rgba(16, 30, 50, 0.82),
      rgba(11, 22, 38, 0.8)
    );

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.landing-service-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(59, 130, 246, 0.25);

  box-shadow:
    0 18px 45px
    rgba(0, 0, 0, 0.2);
}

.landing-service-icon {
  width: 42px;
  height: 42px;

  margin-bottom: 20px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(59, 130, 246, 0.2);

  border-radius: 10px;

  color: #60a5fa;

  background:
    rgba(37, 99, 235, 0.1);

  font-size: 18px;
}

.landing-service-card h3 {
  margin:
    0
    0
    10px;

  color: #ffffff;

  font-size: 17px;
}

.landing-service-card > p {
  min-height: 76px;

  margin:
    0
    0
    20px;

  color:
    var(--landing-text-muted);

  font-size: 13px;

  line-height: 1.65;
}

.landing-service-card ul {
  margin: 0;

  padding: 0;

  display: flex;

  flex-direction: column;

  gap: 9px;

  list-style: none;
}

.landing-service-card li {
  display: flex;

  align-items: center;

  gap: 8px;

  color:
    var(--landing-text-soft);

  font-size: 12px;
}

.landing-service-card li span {
  color:
    #60a5fa;
}

/* =========================================================
   PLATFORM
========================================================= */

.landing-platform-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    minmax(450px, 0.9fr);

  align-items: center;

  gap: 80px;
}

.landing-section-description {
  max-width: 600px;
}

.landing-capability-list {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 14px;

  margin-top: 32px;
}

.landing-capability {
  display: flex;

  align-items: flex-start;

  gap: 13px;

  padding: 16px;

  border:
    1px solid
    rgba(148, 163, 184, 0.09);

  border-radius: 11px;

  background:
    rgba(255, 255, 255, 0.012);
}

.landing-capability-icon {
  width: 28px;
  height: 28px;

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  border-radius: 7px;

  color: #60a5fa;

  background:
    rgba(37, 99, 235, 0.1);

  font-size: 12px;
}

.landing-capability strong {
  display: block;

  margin-bottom: 5px;

  color: #ffffff;

  font-size: 13px;
}

.landing-capability p {
  margin: 0;

  color:
    var(--landing-text-muted);

  font-size: 11px;

  line-height: 1.6;
}

/* =========================================================
   PLATFORM PANEL
========================================================= */

.landing-platform-panel {
  padding: 22px;

  border:
    1px solid
    var(--landing-border);

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      rgba(16, 30, 50, 0.84),
      rgba(10, 20, 35, 0.9)
    );

  box-shadow:
    0 30px 70px
    rgba(0, 0, 0, 0.25);
}

.landing-platform-panel-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom: 22px;

  color:
    var(--landing-text-soft);

  font-size: 12px;
}

.landing-platform-panel-header > div {
  display: flex;

  align-items: center;

  gap: 8px;
}

.landing-live-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background:
    var(--landing-green);

  box-shadow:
    0 0 0 4px
    rgba(34, 197, 94, 0.1);
}

.landing-platform-panel-header > span {
  padding:
    6px
    10px;

  border:
    1px solid
    var(--landing-border);

  border-radius: 7px;

  color:
    var(--landing-text-muted);
}

.landing-platform-chart {
  position: relative;

  height: 235px;

  padding:
    20px
    18px
    0;

  display: flex;

  align-items: flex-end;

  gap: 11px;

  overflow: hidden;

  border:
    1px solid
    rgba(148, 163, 184, 0.07);

  border-radius: 11px;

  background:
    rgba(0, 0, 0, 0.08);
}

.landing-chart-grid {
  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(148, 163, 184, 0.07)
      1px,
      transparent 1px
    );

  background-size:
    100%
    25%;
}

.landing-chart-bar {
  position: relative;
  z-index: 2;

  flex: 1;

  min-width: 10px;

  border-radius:
    4px
    4px
    0
    0;

  background:
    linear-gradient(
      180deg,
      #3b82f6,
      #1e40af
    );

  opacity: 0.8;
}

.landing-platform-metrics {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 10px;

  margin-top: 14px;
}

.landing-platform-metrics > div {
  padding: 14px;

  border:
    1px solid
    rgba(148, 163, 184, 0.08);

  border-radius: 9px;

  background:
    rgba(255, 255, 255, 0.012);
}

.landing-platform-metrics span {
  display: block;

  margin-bottom: 4px;

  color:
    var(--landing-text-muted);

  font-size: 10px;
}

.landing-platform-metrics strong {
  color: #ffffff;

  font-size: 17px;
}

/* =========================================================
   PROCESS
========================================================= */

.landing-process {
  position: relative;

  display: grid;

  grid-template-columns:
    repeat(6, 1fr);

  gap: 12px;
}

.landing-process::before {
  content: "";

  position: absolute;

  left: 7%;
  right: 7%;
  top: 31px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(59, 130, 246, 0.28),
      transparent
    );
}

.landing-process-step {
  position: relative;
  z-index: 2;

  padding:
    20px
    16px;

  text-align: center;
}

.landing-process-step > span {
  width: 62px;
  height: 62px;

  margin:
    0
    auto
    18px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(59, 130, 246, 0.24);

  border-radius: 50%;

  color: #60a5fa;

  background:
    #0b1628;

  font-size: 13px;
  font-weight: 700;

  box-shadow:
    0 0 0 7px
    #07101f;
}

.landing-process-step h3 {
  margin:
    0
    0
    8px;

  color: #ffffff;

  font-size: 14px;
}

.landing-process-step p {
  margin: 0;

  color:
    var(--landing-text-muted);

  font-size: 11px;

  line-height: 1.6;
}

/* =========================================================
   CTA
========================================================= */

.landing-cta-section {
  padding:
    15px
    0
    100px;
}

.landing-cta {
  position: relative;

  padding:
    46px
    48px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 40px;

  overflow: hidden;

  border:
    1px solid
    rgba(59, 130, 246, 0.16);

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.11),
      rgba(14, 165, 233, 0.035)
    );
}

.landing-cta::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  right: -100px;
  top: -100px;

  border-radius: 50%;

  background:
    rgba(37, 99, 235, 0.08);

  filter: blur(30px);
}

.landing-cta > * {
  position: relative;
  z-index: 2;
}

.landing-cta h2 {
  max-width: 650px;

  font-size:
    clamp(
      30px,
      4vw,
      43px
    );
}

.landing-cta p {
  max-width: 640px;

  margin: 0;

  color:
    var(--landing-text-muted);

  font-size: 14px;

  line-height: 1.7;
}

/* =========================================================
   CONTACT
========================================================= */

.landing-contact-section {
  background:
    rgba(255, 255, 255, 0.01);

  border-top:
    1px solid
    rgba(148, 163, 184, 0.06);
}

.landing-contact-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(420px, 1.1fr);

  align-items: center;

  gap: 90px;
}

.landing-contact-copy > p {
  max-width: 520px;

  margin: 0;

  color:
    var(--landing-text-muted);

  font-size: 14px;

  line-height: 1.75;
}

.landing-contact-info {
  margin-top: 28px;

  display: flex;

  align-items: center;

  gap: 13px;
}

.landing-contact-icon {
  width: 43px;
  height: 43px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(59, 130, 246, 0.2);

  border-radius: 10px;

  color: #60a5fa;

  background:
    rgba(37, 99, 235, 0.09);
}

.landing-contact-info span {
  display: block;

  margin-bottom: 3px;

  color:
    var(--landing-text-muted);

  font-size: 11px;
}

.landing-contact-info a {
  color:
    var(--landing-text-soft);

  font-size: 13px;

  text-decoration: none;
}

/* =========================================================
   CONTACT FORM
========================================================= */

.landing-contact-form {
  padding: 30px;

  display: flex;

  flex-direction: column;

  gap: 18px;

  border:
    1px solid
    var(--landing-border);

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      rgba(16, 30, 50, 0.85),
      rgba(11, 21, 36, 0.88)
    );

  box-shadow:
    0 30px 65px
    rgba(0, 0, 0, 0.22);
}

.landing-form-heading h3 {
  margin:
    0
    0
    6px;

  color: #ffffff;

  font-size: 20px;
}

.landing-form-heading p {
  margin: 0;

  color:
    var(--landing-text-muted);

  font-size: 12px;
}

.landing-contact-form label {
  display: flex;

  flex-direction: column;

  gap: 8px;

  color:
    var(--landing-text-soft);

  font-size: 12px;
  font-weight: 600;
}

.landing-contact-form input,
.landing-contact-form textarea {
  width: 100%;

  border:
    1px solid
    rgba(148, 163, 184, 0.14);

  border-radius: 9px;

  outline: none;

  color: #ffffff;

  background:
    rgba(5, 13, 25, 0.6);

  font-family: inherit;

  font-size: 13px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.landing-contact-form input {
  height: 44px;

  padding:
    0
    13px;
}

.landing-contact-form textarea {
  min-height: 125px;

  padding: 12px 13px;

  resize: vertical;
}

.landing-contact-form input::placeholder,
.landing-contact-form textarea::placeholder {
  color:
    #536278;
}

.landing-contact-form input:focus,
.landing-contact-form textarea:focus {
  border-color:
    rgba(59, 130, 246, 0.55);

  background:
    rgba(5, 13, 25, 0.82);

  box-shadow:
    0 0 0 3px
    rgba(37, 99, 235, 0.08);
}

.landing-contact-submit {
  width: 100%;

  margin-top: 3px;

  border: none;
}

/* =========================================================
   FOOTER
========================================================= */

.landing-footer {
  border-top:
    1px solid
    var(--landing-border);

  background:
    rgba(4, 10, 19, 0.7);
}

.landing-footer-inner {
  min-height: 120px;

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  gap: 30px;
}

.landing-footer-inner > p {
  margin: 0;

  color:
    var(--landing-text-muted);

  font-size: 11px;

  text-align: center;

  line-height: 1.6;
}

.landing-footer-inner > span {
  color:
    var(--landing-text-muted);

  font-size: 11px;

  text-align: right;
}

/* =========================================================
   RESPONSIVE 1100
========================================================= */

@media (
  max-width: 1100px
) {
  .landing-navbar-inner {
    gap: 20px;
  }

  .landing-nav {
    gap: 18px;
  }

  .landing-brand-logo {
    height: 43px;

    max-width: 175px;
  }

  .landing-hero-grid {
    grid-template-columns:
      1fr
      1fr;

    gap: 45px;
  }

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

  .landing-service-card > p {
    min-height: 0;
  }

  .landing-platform-grid {
    gap: 50px;
  }

  .landing-process {
    grid-template-columns:
      repeat(3, 1fr);

    row-gap: 40px;
  }

  .landing-process::before {
    display: none;
  }
}

/* =========================================================
   RESPONSIVE 900
========================================================= */

@media (
  max-width: 900px
) {
  .landing-container {
    width:
      min(
        100% - 36px,
        760px
      );
  }

  .landing-navbar-inner {
    grid-template-columns:
      1fr
      auto;

    min-height: 70px;
  }

  .landing-nav {
    display: none;
  }

  .landing-navbar-actions {
    justify-content: flex-end;
  }

  .landing-hero {
    min-height: auto;

    padding:
      75px
      0
      80px;
  }

  .landing-hero-grid {
    grid-template-columns:
      1fr;

    gap: 55px;
  }

  .landing-hero-copy {
    max-width: 680px;

    margin: 0 auto;

    text-align: center;
  }

  .landing-hero-copy > p {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-hero-actions,
  .landing-hero-features {
    justify-content: center;
  }

  .landing-hero-visual {
    max-width: 680px;

    margin: 0 auto;
  }

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

  .landing-stat:nth-child(2)::after {
    display: none;
  }

  .landing-stat:nth-child(-n + 2) {
    border-bottom:
      1px solid
      var(--landing-border);
  }

  .landing-platform-grid,
  .landing-contact-grid {
    grid-template-columns:
      1fr;

    gap: 50px;
  }

  .landing-platform-grid > div:first-child,
  .landing-contact-copy {
    max-width: 680px;
  }

  .landing-cta {
    flex-direction: column;

    align-items: flex-start;
  }

  .landing-footer-inner {
    grid-template-columns:
      1fr;

    justify-items: center;

    gap: 16px;

    padding:
      28px
      0;
  }

  .landing-footer-inner > span {
    text-align: center;
  }
}

/* =========================================================
   RESPONSIVE 650
========================================================= */

@media (
  max-width: 650px
) {
  .landing-container {
    width:
      calc(100% - 28px);
  }

  .landing-navbar-inner {
    min-height: 66px;
  }

  .landing-brand-logo {
    height: 38px;

    max-width: 145px;
  }

  .landing-navbar-actions {
    gap: 10px;
  }

  .landing-login-link {
    min-height: 38px;

    padding:
      0
      13px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
      1px solid
      var(--landing-border-strong);

    border-radius: 9px;

    color: #ffffff;

    white-space: nowrap;
  }

  .landing-navbar-actions
  .landing-primary-button {
    min-height: 38px;

    padding:
      0
      13px;

    font-size: 11px;
  }

  .landing-hero {
    padding:
      62px
      0
      65px;
  }

  .landing-hero-copy h1 {
    font-size: 41px;
  }

  .landing-hero-copy > p {
    font-size: 14px;
  }

  .landing-hero-actions {
    flex-direction: column;

    align-items: stretch;
  }

  .landing-primary-button-large,
  .landing-secondary-button {
    width: 100%;
  }

  .landing-hero-features {
    flex-direction: column;

    align-items: center;
  }

  .landing-hero-visual {
    padding:
      20px
      0;
  }

  .landing-floating-card {
    display: none;
  }

  .landing-window-content {
    grid-template-columns:
      50px
      1fr;

    min-height: 350px;
  }

  .landing-window-sidebar {
    padding:
      14px
      8px;

    gap: 12px;
  }

  .landing-window-logo {
    width: 34px;
    height: 34px;
  }

  .landing-window-nav-item {
    width: 23px;
    height: 6px;
  }

  .landing-window-main {
    padding: 13px;
  }

  .landing-yard-visual {
    height: 200px;
  }

  .landing-container-stack span {
    width: 65px;
    height: 21px;
  }

  .landing-window-stats {
    gap: 6px;
  }

  .landing-window-stats > div {
    padding:
      9px
      7px;
  }

  .landing-window-stats strong {
    font-size: 13px;
  }

  .landing-section {
    padding:
      75px
      0;
  }

  .landing-section-heading {
    margin-bottom: 38px;
  }

  .landing-services-grid {
    grid-template-columns:
      1fr;
  }

  .landing-platform-grid h2,
  .landing-contact-copy h2,
  .landing-section-heading h2,
  .landing-cta h2 {
    font-size: 32px;
  }

  .landing-capability-list {
    grid-template-columns:
      1fr;
  }

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

  .landing-cta-section {
    padding-bottom: 70px;
  }

  .landing-cta {
    padding:
      30px
      24px;
  }

  .landing-contact-form {
    padding:
      22px
      18px;
  }
}

/* =========================================================
   RESPONSIVE 430
========================================================= */

@media (
  max-width: 430px
) {
  .landing-brand-logo {
    height: 34px;

    max-width: 125px;
  }

  .landing-navbar-actions
  .landing-primary-button {
    display: none;
  }

  .landing-login-link {
    padding:
      0
      12px;

    font-size: 12px;
  }

  .landing-hero-copy h1 {
    font-size: 36px;
  }

  .landing-stats {
    grid-template-columns:
      1fr;
  }

  .landing-stat {
    border-bottom:
      1px solid
      var(--landing-border);
  }

  .landing-stat:last-child {
    border-bottom: none;
  }

  .landing-stat::after {
    display: none;
  }

  .landing-window-top {
    height: 40px;
  }

  .landing-window-stats {
    grid-template-columns:
      1fr;
  }

  .landing-window-stats > div:nth-child(2),
  .landing-window-stats > div:nth-child(3) {
    display: none;
  }

  .landing-process {
    grid-template-columns:
      1fr;
  }

  .landing-process-step {
    max-width: 280px;

    margin: 0 auto;
  }

  .landing-platform-metrics {
    grid-template-columns:
      1fr;
  }

  .landing-footer-logo {
    height: 42px;
  }
}
/* =========================================================
   ONBOARDING
========================================================= */

.onboarding-page {
    min-height: 100vh;

    box-sizing: border-box;

    padding:
        58px 70px 80px;

    background:
        radial-gradient(circle at 50% -20%,
            rgba(14, 165, 233, 0.1),
            transparent 38%),
        #020617;

    color: #f8fafc;
}

/* =========================================================
   HEADER
========================================================= */

.onboarding-header {
    max-width: 760px;

    margin:
        0 auto 50px;

    text-align: center;
}

.onboarding-eyebrow {
    display: inline-block;

    color: #38bdf8;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}

.onboarding-header h1 {
    margin:
        13px 0 12px;

    font-size:
        clamp(32px,
            4vw,
            48px);

    line-height: 1.08;
}

.onboarding-header p {
    max-width: 620px;

    margin:
        0 auto;

    color: #64748b;

    font-size: 11px;

    line-height: 1.7;
}

.onboarding-header p strong {
    color: #cbd5e1;
}

/* =========================================================
   CONTENT
========================================================= */

.onboarding-content {
    width: 100%;

    max-width: 1050px;

    margin:
        0 auto;
}

/* =========================================================
   PLANS
========================================================= */

.onboarding-plans-content {
    max-width: 1160px;
}

.onboarding-plans-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit,
            minmax(280px,
                1fr));

    gap: 18px;

    align-items: stretch;
}

.onboarding-plan-card {
    position: relative;

    display: flex;

    flex-direction: column;

    min-height: 410px;

    padding: 30px;

    box-sizing: border-box;

    border: 1px solid #1e293b;

    border-radius: 14px;

    background:
        rgba(15,
            23,
            42,
            0.62);
}

.onboarding-plan-card.recommended {
    border-color:
        rgba(56,
            189,
            248,
            0.55);

    box-shadow:
        0 0 0 1px rgba(14,
            165,
            233,
            0.08);
}

.onboarding-plan-recommended {
    position: absolute;

    top: -11px;
    left: 50%;

    transform:
        translateX(-50%);

    padding:
        5px 13px;

    border-radius: 999px;

    background: #0284c7;

    color: #fff;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.onboarding-plan-header>span {
    color: #38bdf8;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;
}

.onboarding-plan-header h2 {
    margin:
        8px 0 9px;

    font-size: 24px;
}

.onboarding-plan-header p {
    min-height: 48px;

    margin: 0;

    color: #64748b;

    font-size: 10px;

    line-height: 1.6;
}

.onboarding-plan-price {
    display: flex;

    align-items: baseline;

    gap: 6px;

    margin:
        30px 0 25px;
}

.onboarding-plan-price strong {
    font-size: 28px;
}

.onboarding-plan-price span {
    color: #64748b;

    font-size: 9px;
}

.onboarding-plan-limits {
    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-bottom: 28px;
}

.onboarding-plan-limit {
    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        10px 0;

    border-bottom:
        1px solid #1e293b;
}

.onboarding-plan-limit span {
    color: #64748b;

    font-size: 9px;
}

.onboarding-plan-limit strong {
    color: #cbd5e1;

    font-size: 10px;
}

.onboarding-plan-card .onboarding-primary-button {
    margin-top: auto;
}

/* =========================================================
   FORM CARD
========================================================= */

.onboarding-form-card {
    padding: 35px;

    border: 1px solid #1e293b;

    border-radius: 14px;

    background:
        rgba(15,
            23,
            42,
            0.56);
}

.onboarding-form-section {
    display: flex;

    flex-direction: column;

    gap: 27px;
}

.onboarding-form-heading {
    display: flex;

    align-items: flex-start;

    gap: 14px;
}

.onboarding-form-heading>span {
    width: 28px;
    height: 28px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(56,
            189,
            248,
            0.25);

    border-radius: 7px;

    background:
        rgba(14,
            165,
            233,
            0.08);

    color: #38bdf8;

    font-size: 8px;
    font-weight: 700;
}

.onboarding-form-heading h2 {
    margin: 0;

    font-size: 18px;
}

.onboarding-form-heading p {
    margin:
        5px 0 0;

    color: #64748b;

    font-size: 9px;
}

.onboarding-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0,
                1fr));

    gap: 18px;
}

.onboarding-field {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.onboarding-field-full {
    grid-column:
        1 / -1;
}

.onboarding-field label {
    display: flex;

    justify-content: space-between;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 600;
}

.onboarding-field label span {
    color: #475569;

    font-weight: 400;
}

.onboarding-field input,
.onboarding-field textarea {
    width: 100%;

    box-sizing: border-box;

    padding:
        13px 14px;

    border: 1px solid #334155;

    border-radius: 7px;

    outline: 0;

    resize: vertical;

    background: #020617;

    color: #f8fafc;

    font-family: inherit;

    font-size: 11px;
}

.onboarding-field input:focus,
.onboarding-field textarea:focus {
    border-color: #0284c7;

    box-shadow:
        0 0 0 3px rgba(2,
            132,
            199,
            0.12);
}

.onboarding-field input::placeholder,
.onboarding-field textarea::placeholder {
    color: #475569;
}

.onboarding-form-divider {
    height: 1px;

    margin:
        34px 0;

    background: #1e293b;
}

.onboarding-form-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 32px;

    padding-top: 25px;

    border-top:
        1px solid #1e293b;
}

.onboarding-action-submit {
    width: auto;

    min-width: 180px;
}

/* =========================================================
   BUTTONS
========================================================= */

.onboarding-primary-button,
.onboarding-secondary-button {
    min-height: 42px;

    padding:
        0 18px;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.onboarding-primary-button {
    border: 0;

    background: #0284c7;

    color: #fff;
}

.onboarding-primary-button:hover:not(:disabled) {
    background: #0369a1;

    transform:
        translateY(-1px);
}

.onboarding-secondary-button {
    border:
        1px solid #334155;

    background: #0f172a;

    color: #cbd5e1;
}

.onboarding-secondary-button:hover:not(:disabled) {
    border-color: #475569;

    background: #1e293b;
}

.onboarding-primary-button:disabled,
.onboarding-secondary-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

/* =========================================================
   ERROR
========================================================= */

.onboarding-error {
    margin:
        18px 0;

    padding:
        12px 14px;

    border:
        1px solid rgba(239,
            68,
            68,
            0.3);

    border-radius: 7px;

    background:
        rgba(239,
            68,
            68,
            0.07);

    color: #f87171;

    font-size: 9px;

    line-height: 1.6;
}

/* =========================================================
   PAYMENT
========================================================= */

.onboarding-payment-content {
    max-width: 520px;
}

.onboarding-payment-card {
    padding: 42px;

    border: 1px solid #1e293b;

    border-radius: 15px;

    text-align: center;

    background:
        rgba(15,
            23,
            42,
            0.6);
}

.onboarding-payment-icon {
    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 18px;

    border: 1px solid rgba(56,
            189,
            248,
            0.3);

    border-radius: 13px;

    background:
        rgba(14,
            165,
            233,
            0.08);

    color: #38bdf8;

    font-size: 19px;
    font-weight: 800;
}

.onboarding-payment-label {
    color: #38bdf8;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.onboarding-payment-card h2 {
    margin:
        8px 0 5px;

    font-size: 25px;
}

.onboarding-payment-terminal {
    margin:
        0 0 25px;

    color: #64748b;

    font-size: 10px;
}

.onboarding-payment-security {
    display: flex;

    flex-direction: column;

    gap: 10px;

    margin:
        30px 0;

    padding:
        20px;

    border:
        1px solid #1e293b;

    border-radius: 9px;

    text-align: left;
}

.onboarding-payment-security>div {
    display: flex;

    align-items: flex-start;

    gap: 10px;
}

.onboarding-payment-security span {
    color: #22c55e;

    font-size: 10px;
}

.onboarding-payment-security p {
    margin: 0;

    color: #94a3b8;

    font-size: 9px;

    line-height: 1.5;
}

.onboarding-payment-button {
    width: 100%;
}

/* =========================================================
   STATUS / SUCCESS
========================================================= */

.onboarding-center {
    display: flex;

    align-items: center;
    justify-content: center;
}

.onboarding-status-card,
.onboarding-success-card {
    width: 100%;

    max-width: 500px;

    box-sizing: border-box;

    padding: 42px;

    border: 1px solid #1e293b;

    border-radius: 15px;

    background:
        rgba(15,
            23,
            42,
            0.62);

    text-align: center;

    color: #94a3b8;

    font-size: 11px;
}

.onboarding-success-card h1 {
    margin:
        12px 0 12px;

    color: #f8fafc;

    font-size: 29px;
}

.onboarding-success-card>p {
    margin:
        0 auto 22px;

    max-width: 390px;

    color: #64748b;

    font-size: 10px;

    line-height: 1.7;
}

.onboarding-success-icon {
    width: 60px;
    height: 60px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 20px;

    border: 1px solid rgba(56,
            189,
            248,
            0.28);

    border-radius: 50%;

    background:
        rgba(14,
            165,
            233,
            0.07);
}

.onboarding-success-icon.success {
    border-color:
        rgba(34,
            197,
            94,
            0.3);

    background:
        rgba(34,
            197,
            94,
            0.07);

    color: #22c55e;

    font-size: 24px;
}

.onboarding-spinner {
    width: 22px;
    height: 22px;

    border:
        2px solid #1e293b;

    border-top-color: #38bdf8;

    border-radius: 50%;

    animation:
        onboarding-spin 0.8s linear infinite;
}

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

.onboarding-verifying {
    margin:
        18px 0;

    color: #38bdf8;

    font-size: 9px;
}

.onboarding-delay-message {
    margin-top: 20px !important;

    color: #94a3b8 !important;
}

.onboarding-success-button {
    min-width: 190px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 820px) {
    .onboarding-page {
        padding:
            40px 24px 60px;
    }

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

    .onboarding-field-full {
        grid-column:
            auto;
    }
}

@media (max-width: 520px) {
    .onboarding-page {
        padding:
            30px 16px 45px;
    }

    .onboarding-form-card,
    .onboarding-payment-card,
    .onboarding-success-card {
        padding:
            26px 20px;
    }

    .onboarding-form-actions {
        flex-direction:
            column-reverse;
    }

    .onboarding-form-actions button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onboarding-spinner {
        animation: none;
    }
}

/* =========================================================
   PLAN SELECTION
   ========================================================= */

.onboarding-plans-content {
    width: min(1500px, calc(100% - 48px));
}

.onboarding-plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.onboarding-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    border: 1px solid #1d2b42;
    border-radius: 18px;
    background:
        linear-gradient(180deg,
            rgba(20, 34, 55, 0.92) 0%,
            rgba(8, 18, 34, 0.96) 100%);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.onboarding-plan-card:hover {
    transform: translateY(-4px);
    border-color: #385172;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.22);
}

.onboarding-plan-card.recommended {
    border-color: #4d78a8;
    box-shadow:
        0 0 0 1px rgba(77, 120, 168, 0.15),
        0 18px 45px rgba(0, 0, 0, 0.24);
}

.onboarding-plan-recommended {
    position: absolute;
    top: 0;
    right: 24px;
    transform: translateY(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: #f2f6fb;
    color: #081222;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.onboarding-plan-header>span {
    display: block;
    margin-bottom: 10px;
    color: #8195ae;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.onboarding-plan-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    line-height: 1.15;
}

.onboarding-plan-subtitle {
    margin-top: 7px;
    color: #a9bad0;
    font-size: 13px;
    font-weight: 700;
}

.onboarding-plan-header p {
    min-height: 44px;
    margin: 14px 0 0;
    color: #8799af;
    font-size: 13px;
    line-height: 1.6;
}

.onboarding-plan-price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 26px 0 22px;
}

.onboarding-plan-price strong {
    color: #ffffff;
    font-size: clamp(27px, 2.1vw, 35px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.onboarding-plan-price span {
    color: #788ba3;
    font-size: 13px;
}

.onboarding-plan-limits {
    display: grid;
    gap: 1px;
    overflow: hidden;
    margin-bottom: 22px;
    border: 1px solid #1b2a40;
    border-radius: 12px;
    background: #1b2a40;
}

.onboarding-plan-limit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    background: #0b1728;
}

.onboarding-plan-limit span {
    color: #7f92aa;
    font-size: 12px;
}

.onboarding-plan-limit strong {
    color: #e8eef7;
    font-size: 13px;
    text-align: right;
}

.onboarding-plan-features {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 26px;
}

.onboarding-plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #aab8c9;
    font-size: 12px;
    line-height: 1.5;
}

.onboarding-plan-feature-check {
    flex: 0 0 auto;
    color: #8caed2;
    font-weight: 800;
}

.onboarding-plan-card .onboarding-primary-button {
    width: 100%;
    margin-top: auto;
}

.onboarding-plan-footnote {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 28px;
    color: #7e91a8;
    font-size: 12px;
    text-align: center;
}

.onboarding-plan-footnote strong {
    color: #aebdd0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {
    .onboarding-plans-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .onboarding-plans-content {
        width: min(100% - 28px, 520px);
    }

    .onboarding-plans-grid {
        grid-template-columns: 1fr;
    }

    .onboarding-plan-card {
        padding: 24px 20px;
    }

    .onboarding-plan-header p {
        min-height: 0;
    }

    .onboarding-plan-footnote {
        flex-direction: column;
    }
}

/* =========================================================
   PAYMENT · STRIPE ELEMENTS / PATIO YMS
   Reemplaza el bloque anterior de Embedded Checkout.
========================================================= */

.onboarding-payment-page {
    min-height: 100%;
}

.onboarding-payment-header {
    max-width: 720px;
}

.onboarding-elements-payment-content {
    display: grid;
    grid-template-columns:
        minmax(280px, 0.72fr) minmax(480px, 1.28fr);

    gap: 18px;

    align-items: start;
}

.onboarding-payment-summary-card,
.onboarding-elements-card {
    min-width: 0;

    border: 1px solid #1e293b;
    border-radius: 13px;

    background:
        linear-gradient(145deg,
            #0f1a2d 0%,
            #0a1527 100%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.onboarding-payment-summary-card {
    position: sticky;
    top: 20px;

    padding: 20px;
}

.onboarding-payment-summary-heading {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-bottom: 17px;

    border-bottom: 1px solid #1e293b;
}

.onboarding-payment-summary-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: 10px;

    background: rgba(56, 189, 248, 0.07);
    color: #7dd3fc;

    font-size: 16px;
    font-weight: 800;
}

.onboarding-payment-summary-heading>div>span,
.onboarding-elements-heading>div>span {
    display: block;

    color: #38bdf8;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.onboarding-payment-summary-heading h2,
.onboarding-elements-heading h2 {
    margin: 4px 0 0;

    color: #f8fafc;

    font-size: 17px;
}

.onboarding-payment-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 13px 0;

    border-bottom: 1px solid rgba(30, 41, 59, 0.72);
}

.onboarding-payment-summary-row span {
    color: #64748b;

    font-size: 9px;
}

.onboarding-payment-summary-row strong {
    overflow: hidden;

    color: #dce7f5;

    font-size: 10px;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.onboarding-payment-summary-price {
    padding: 18px 0;
}

.onboarding-payment-summary-price>span {
    display: block;

    color: #64748b;

    font-size: 8px;

    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.onboarding-payment-summary-price>strong {
    display: block;

    margin-top: 6px;

    color: #f8fafc;

    font-size: 24px;
    line-height: 1;

    letter-spacing: -0.035em;
}

.onboarding-payment-summary-price>small {
    display: block;

    margin-top: 5px;

    color: #64748b;

    font-size: 9px;
}

.onboarding-payment-benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;

    padding-top: 4px;
}

.onboarding-payment-benefits>div {
    display: grid;
    grid-template-columns:
        20px minmax(0, 1fr);

    gap: 8px;

    align-items: start;
}

.onboarding-payment-benefits span {
    width: 18px;
    height: 18px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 50%;

    background: rgba(34, 197, 94, 0.055);
    color: #4ade80;

    font-size: 8px;
    font-weight: 800;
}

.onboarding-payment-benefits p {
    margin: 1px 0 0;

    color: #8090a8;

    font-size: 9px;
    line-height: 1.5;
}

.onboarding-elements-card {
    overflow: hidden;
}

.onboarding-elements-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 18px 20px;

    border-bottom: 1px solid #1e293b;
}

.onboarding-elements-heading p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 9px;
}

.onboarding-elements-stripe-badge {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 6px;

    min-height: 28px;

    padding: 0 9px;

    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 7px;

    background: rgba(99, 102, 241, 0.055);
    color: #a5b4fc;

    font-size: 9px;
    font-weight: 750;
}

.onboarding-elements-stripe-badge span {
    color: #38bdf8;

    font-size: 7px;
}

.onboarding-elements-error {
    margin: 16px 20px;
}

.onboarding-elements-form {
    padding: 20px;
}

.onboarding-elements-section-label {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 13px;
}

.onboarding-elements-section-label>span {
    color: #e2e8f0;

    font-size: 11px;
    font-weight: 700;
}

.onboarding-elements-section-label>small {
    color: #64748b;

    font-size: 8px;

    text-align: right;
}

.onboarding-elements-payment-element {
    padding: 14px;

    border: 1px solid #20314a;
    border-radius: 10px;

    background: #081426;
}

.onboarding-elements-pay-button {
    width: 100%;

    min-height: 42px;

    margin-top: 16px;
}

.onboarding-elements-pay-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

.onboarding-elements-security {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 14px;
    padding: 12px;

    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 8px;

    background: rgba(56, 189, 248, 0.035);
}

.onboarding-elements-lock {
    flex: 0 0 auto;

    font-size: 13px;
}

.onboarding-elements-security>div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.onboarding-elements-security strong {
    color: #cbd5e1;

    font-size: 9px;
}

.onboarding-elements-security small {
    color: #64748b;

    font-size: 8px;
}

.onboarding-elements-loading {
    min-height: 310px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 24px;
}

.onboarding-elements-loading>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.onboarding-elements-loading strong {
    color: #e2e8f0;

    font-size: 10px;
}

.onboarding-elements-loading small {
    color: #64748b;

    font-size: 8px;
}

.onboarding-elements-spinner {
    width: 20px;
    height: 20px;

    border: 2px solid #1f334e;
    border-top-color: #38bdf8;
    border-radius: 50%;

    animation:
        onboarding-elements-spin .7s linear infinite;
}

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

@media (max-width: 980px) {
    .onboarding-elements-payment-content {
        grid-template-columns: 1fr;
    }

    .onboarding-payment-summary-card {
        position: static;
    }
}

@media (max-width: 620px) {

    .onboarding-elements-heading,
    .onboarding-elements-section-label {
        align-items: flex-start;
        flex-direction: column;
    }

    .onboarding-elements-section-label>small {
        text-align: left;
    }

    .onboarding-elements-form {
        padding: 15px;
    }

    .onboarding-elements-payment-element {
        padding: 10px;
    }
}

/* =========================================================
   PAYMENT PAGE · PROFESSIONAL REFACTOR
   Agregar al final de onboarding.css
========================================================= */

.onboarding-payment-page-refined {
    min-height: 100vh;
    padding: 54px 28px 34px;

    background:
        radial-gradient(circle at 50% 0%,
            rgba(14, 165, 233, .045),
            transparent 28%),
        #020817;
}

.onboarding-payment-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.onboarding-payment-header-refined {
    max-width: 760px;
    margin: 0 auto 36px;

    text-align: center;
}

.onboarding-payment-step {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #38bdf8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .14em;
    text-transform: uppercase;
}

.onboarding-payment-step-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #38bdf8;

    box-shadow:
        0 0 0 4px rgba(56, 189, 248, .07);
}

.onboarding-payment-header-refined h1 {
    margin: 11px 0 0;

    color: #f8fafc;

    font-size: clamp(34px, 4vw, 52px);
    line-height: .98;

    letter-spacing: -.05em;
}

.onboarding-payment-header-refined p {
    max-width: 520px;
    margin: 14px auto 0;

    color: #70819c;

    font-size: 12px;
    line-height: 1.55;
}

.onboarding-elements-payment-content-refined {
    display: grid;
    grid-template-columns:
        minmax(300px, .68fr) minmax(560px, 1.32fr);

    gap: 16px;

    align-items: start;

    padding: 0;
}

.onboarding-payment-summary-card-refined,
.onboarding-elements-card-refined {
    border: 1px solid #1e304a;
    border-radius: 14px;

    background:
        linear-gradient(145deg,
            rgba(15, 27, 47, .98),
            rgba(8, 20, 37, .98));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .018),
        0 18px 40px rgba(0, 0, 0, .09);
}

.onboarding-payment-summary-card-refined {
    position: sticky;
    top: 24px;

    padding: 21px;
}

.onboarding-payment-summary-heading {
    padding-bottom: 17px;
}

.onboarding-payment-summary-icon {
    width: 40px;
    height: 40px;

    border-radius: 11px;

    font-size: 17px;
}

.onboarding-payment-summary-heading>div>span,
.onboarding-elements-heading-copy>span {
    color: #38bdf8;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .11em;
    text-transform: uppercase;
}

.onboarding-payment-summary-heading h2 {
    margin-top: 5px;

    font-size: 18px;
    letter-spacing: -.02em;
}

.onboarding-payment-summary-list {
    margin-top: 2px;
}

.onboarding-payment-summary-row {
    padding: 13px 0;

    border-bottom: 1px solid rgba(42, 58, 83, .58);
}

.onboarding-payment-summary-row span {
    color: #657690;
}

.onboarding-payment-summary-row strong {
    color: #e5edf8;

    font-size: 10px;
}

.onboarding-payment-summary-price-refined {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 14px;

    padding: 20px 0 18px;
}

.onboarding-payment-summary-price-refined>div>span {
    display: block;

    color: #657690;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .07em;
}

.onboarding-payment-summary-price-refined>div>strong {
    display: block;

    margin-top: 6px;

    color: #f8fafc;

    font-size: 30px;
    line-height: 1;

    letter-spacing: -.045em;
}

.onboarding-payment-summary-price-refined>div>small {
    display: block;

    margin-top: 5px;

    color: #70819c;

    font-size: 9px;
}

.onboarding-payment-summary-plan-badge {
    flex: 0 0 auto;

    padding: 5px 8px;

    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 999px;

    background: rgba(56, 189, 248, .055);
    color: #7dd3fc;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.onboarding-payment-secure-note {
    display: grid;
    grid-template-columns:
        32px minmax(0, 1fr);

    gap: 10px;

    padding: 12px;

    border: 1px solid rgba(34, 197, 94, .15);
    border-radius: 9px;

    background: rgba(34, 197, 94, .035);
}

.onboarding-payment-secure-note-icon {
    width: 30px;
    height: 30px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(34, 197, 94, .22);
    border-radius: 8px;

    background: rgba(34, 197, 94, .06);
    color: #4ade80;

    font-size: 10px;
    font-weight: 800;
}

.onboarding-payment-secure-note>div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.onboarding-payment-secure-note strong {
    color: #dce7f5;

    font-size: 9px;
}

.onboarding-payment-secure-note span {
    color: #71829b;

    font-size: 8px;
    line-height: 1.45;
}

.onboarding-payment-benefits-refined {
    margin-top: 15px;
    gap: 11px;
}

.onboarding-payment-benefits-refined p {
    color: #71829b;

    line-height: 1.5;
}

.onboarding-elements-card-refined {
    overflow: hidden;
}

.onboarding-elements-heading-refined {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 17px 20px;

    border-bottom: 1px solid #1e304a;
}

.onboarding-elements-heading-copy h2 {
    margin: 4px 0 0;

    color: #f8fafc;

    font-size: 17px;

    letter-spacing: -.02em;
}

.onboarding-elements-heading-copy p {
    margin: 5px 0 0;

    color: #657690;

    font-size: 9px;
}

.onboarding-elements-stripe-badge-refined {
    min-height: 30px;

    padding: 0 10px;

    border-color: rgba(99, 102, 241, .18);

    background: rgba(99, 102, 241, .045);
}

.onboarding-elements-trust-row {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 20px;

    border-bottom: 1px solid rgba(30, 48, 74, .7);

    background: rgba(7, 18, 37, .5);
}

.onboarding-elements-trust-row span {
    padding: 4px 7px;

    border: 1px solid #20314a;
    border-radius: 999px;

    color: #71829b;

    font-size: 8px;
}

.onboarding-elements-form {
    padding: 20px;
}

.onboarding-elements-section-label {
    align-items: center;

    margin-bottom: 12px;
}

.onboarding-elements-section-label>span {
    color: #dce7f5;

    font-size: 11px;
}

.onboarding-elements-section-label>small {
    color: #60728d;

    font-size: 8px;
}

.onboarding-elements-payment-element {
    padding: 16px;

    border: 1px solid #203552;
    border-radius: 11px;

    background:
        linear-gradient(145deg,
            rgba(7, 18, 37, .94),
            rgba(5, 15, 31, .98));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .014);
}

.onboarding-elements-pay-button {
    min-height: 44px;
    margin-top: 15px;

    border-radius: 8px;
}

.onboarding-elements-security {
    margin-top: 11px;

    padding: 10px 11px;

    border-color: rgba(56, 189, 248, .1);

    background: rgba(56, 189, 248, .025);
}

.onboarding-elements-security strong {
    color: #cbd5e1;
}

.onboarding-elements-security small {
    color: #657690;
}

.onboarding-payment-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 14px;

    color: #41516a;

    font-size: 8px;
}

.onboarding-payment-page-footer span:first-child {
    color: #60728d;

    font-weight: 800;

    letter-spacing: .08em;
}

@media (max-width: 1040px) {
    .onboarding-elements-payment-content-refined {
        grid-template-columns:
            minmax(260px, .72fr) minmax(470px, 1.28fr);
    }
}

@media (max-width: 860px) {
    .onboarding-payment-page-refined {
        padding:
            38px 18px 28px;
    }

    .onboarding-elements-payment-content-refined {
        grid-template-columns: 1fr;
    }

    .onboarding-payment-summary-card-refined {
        position: static;
    }
}

@media (max-width: 560px) {
    .onboarding-payment-header-refined {
        margin-bottom: 26px;
    }

    .onboarding-payment-header-refined h1 {
        font-size: 34px;
    }

    .onboarding-elements-heading-refined {
        align-items: flex-start;
        flex-direction: column;
    }

    .onboarding-elements-trust-row {
        flex-wrap: wrap;
    }

    .onboarding-elements-section-label {
        align-items: flex-start;
        flex-direction: column;
    }

    .onboarding-payment-summary-price-refined {
        align-items: flex-start;
        flex-direction: column;
    }

    .onboarding-payment-page-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   COMPANY ONBOARDING · REFINED FORM
========================================================= */

.onboarding-company-page {
    padding: 42px 32px 64px;

    background:
        radial-gradient(circle at 50% -10%,
            rgba(14, 165, 233, 0.085),
            transparent 34%),
        linear-gradient(180deg,
            #020817 0%,
            #020617 100%);
}

.onboarding-company-header {
    max-width: 820px;

    margin: 0 auto 30px;
}

.onboarding-company-header .onboarding-eyebrow {
    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.14em;
}

.onboarding-company-header h1 {
    margin: 10px 0 14px;

    color: #f8fafc;

    font-size:
        clamp(32px,
            4vw,
            44px);

    line-height: 1.05;

    letter-spacing: -0.04em;
}

.onboarding-company-header-meta {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    min-height: 31px;

    padding: 0 11px;

    border:
        1px solid rgba(56, 189, 248, 0.16);

    border-radius: 999px;

    background:
        rgba(14, 165, 233, 0.045);

    color: #71829b;

    font-size: 10px;
}

.onboarding-company-header-meta strong {
    color: #7dd3fc;

    font-size: 10px;

    letter-spacing: 0.04em;
}

.onboarding-company-content {
    max-width: 980px;
}

.onboarding-company-form-card {
    padding: 0;

    overflow: hidden;

    border: 1px solid #1d2c43;

    border-radius: 18px;

    background:
        linear-gradient(145deg,
            rgba(13, 25, 44, 0.96),
            rgba(7, 17, 32, 0.98));

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.17),
        inset 0 1px 0 rgba(255, 255, 255, 0.018);
}

.onboarding-company-section {
    gap: 24px;

    padding: 28px 30px 30px;
}

.onboarding-company-form-card .onboarding-form-divider {
    height: 1px;

    margin: 0 30px;

    background:
        linear-gradient(90deg,
            transparent,
            #203149 8%,
            #203149 92%,
            transparent);
}

.onboarding-company-form-card .onboarding-form-heading {
    align-items: center;

    gap: 13px;
}

.onboarding-company-form-card .onboarding-form-heading>span {
    width: 34px;
    height: 34px;

    border-color:
        rgba(56, 189, 248, 0.23);

    border-radius: 10px;

    background:
        rgba(14, 165, 233, 0.07);

    color: #7dd3fc;

    font-size: 9px;
    font-weight: 800;
}

.onboarding-company-form-card .onboarding-form-heading h2 {
    color: #f1f5f9;

    font-size: 18px;

    letter-spacing: -0.02em;
}

.onboarding-company-form-card .onboarding-form-heading p {
    margin-top: 4px;

    color: #65758d;

    font-size: 10px;

    line-height: 1.45;
}

.onboarding-company-form-card .onboarding-form-grid {
    gap: 20px 16px;
}

.onboarding-company-form-card .onboarding-field {
    gap: 8px;
}

.onboarding-company-form-card .onboarding-field label {
    align-items: center;

    color: #b8c5d6;

    font-size: 11px;

    font-weight: 650;
}

.onboarding-company-form-card .onboarding-field label span {
    color: #526176;

    font-size: 9px;
}

.onboarding-company-form-card .onboarding-field input,
.onboarding-company-form-card .onboarding-field textarea {
    min-height: 49px;

    padding: 0 14px;

    border: 1px solid #26374f;

    border-radius: 10px;

    background:
        linear-gradient(180deg,
            rgba(8, 18, 34, 0.9),
            rgba(4, 12, 25, 0.96));

    color: #f8fafc;

    font-size: 12px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.onboarding-company-form-card .onboarding-field textarea {
    min-height: 104px;

    padding: 13px 14px;

    line-height: 1.55;
}

.onboarding-company-form-card .onboarding-field input:hover,
.onboarding-company-form-card .onboarding-field textarea:hover {
    border-color: #324864;
}

.onboarding-company-form-card .onboarding-field input:focus,
.onboarding-company-form-card .onboarding-field textarea:focus {
    border-color: #0284c7;

    background:
        linear-gradient(180deg,
            rgba(11, 25, 44, 0.94),
            rgba(5, 15, 30, 0.98));

    box-shadow:
        0 0 0 3px rgba(2, 132, 199, 0.1);
}

.onboarding-company-form-card .onboarding-field input::placeholder,
.onboarding-company-form-card .onboarding-field textarea::placeholder {
    color: #44546a;
}

.onboarding-field-hint {
    color: #53647c;

    font-size: 9px;

    line-height: 1.4;
}

.onboarding-company-form-card .onboarding-error {
    margin: 0 30px 2px;

    padding: 11px 13px;

    border-radius: 9px;

    font-size: 10px;
}

.onboarding-company-actions {
    align-items: center;

    margin-top: 0;

    padding: 22px 30px 24px;

    border-top:
        1px solid rgba(32, 49, 73, 0.9);

    background:
        rgba(3, 10, 22, 0.26);
}

.onboarding-company-actions .onboarding-primary-button,
.onboarding-company-actions .onboarding-secondary-button {
    min-height: 46px;

    padding: 0 18px;

    border-radius: 10px;

    font-size: 11px;

    font-weight: 750;
}

.onboarding-company-actions .onboarding-primary-button {
    min-width: 190px;

    border: 1px solid #0284c7;

    background:
        linear-gradient(180deg,
            #0ea5e9,
            #0284c7);

    box-shadow:
        0 10px 28px rgba(14, 165, 233, 0.13);
}

.onboarding-company-actions .onboarding-primary-button:hover:not(:disabled) {
    transform: translateY(-1px);

    background:
        linear-gradient(180deg,
            #38bdf8,
            #0284c7);

    box-shadow:
        0 13px 32px rgba(14, 165, 233, 0.18);
}

.onboarding-company-actions .onboarding-secondary-button {
    min-width: 88px;

    border: 1px solid #2b3c55;

    background:
        rgba(15, 23, 42, 0.62);

    color: #cbd5e1;
}

.onboarding-company-actions .onboarding-secondary-button:hover:not(:disabled) {
    border-color: #405572;

    background:
        rgba(30, 41, 59, 0.72);
}

@media (max-width: 820px) {
    .onboarding-company-page {
        padding: 32px 18px 48px;
    }

    .onboarding-company-header {
        margin-bottom: 24px;
    }

    .onboarding-company-form-card .onboarding-form-grid {
        grid-template-columns: 1fr;
    }

    .onboarding-company-form-card .onboarding-field-full {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .onboarding-company-page {
        padding: 26px 14px 36px;
    }

    .onboarding-company-header h1 {
        font-size: 31px;
    }

    .onboarding-company-section {
        padding: 23px 19px 24px;
    }

    .onboarding-company-form-card .onboarding-form-divider {
        margin: 0 19px;
    }

    .onboarding-company-form-card .onboarding-error {
        margin: 0 19px 2px;
    }

    .onboarding-company-actions {
        padding: 18px 19px 20px;

        flex-direction: column-reverse;
    }

    .onboarding-company-actions button {
        width: 100%;
    }
}/* =========================================================
   BILLING PAGE
========================================================= */

.billing-page {
    width: 100%;

    min-height: 100%;

    box-sizing: border-box;

    padding:
        30px 34px 60px;

    color: #e2e8f0;
}

/* =========================================================
   HEADER
========================================================= */

.billing-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 26px;
}

.billing-eyebrow,
.billing-card-label {
    display: block;

    margin-bottom: 7px;

    color: #38bdf8;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1.25px;

    text-transform: uppercase;
}

.billing-header h1 {
    margin: 0;

    color: #f8fafc;

    font-size: 25px;

    line-height: 1.15;
}

.billing-header p {
    max-width: 590px;

    margin:
        9px 0 0;

    color: #64748b;

    font-size: 10px;

    line-height: 1.6;
}

/* =========================================================
   BUTTONS
========================================================= */

.billing-primary-button,
.billing-secondary-button {
    min-height: 39px;

    padding:
        0 17px;

    border-radius: 7px;

    font-family: inherit;

    font-size: 9px;

    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.billing-primary-button {
    border: 1px solid #0284c7;

    background: #0284c7;

    color: #ffffff;
}

.billing-primary-button:hover:not(:disabled) {
    border-color: #0369a1;

    background: #0369a1;

    transform:
        translateY(-1px);
}

.billing-secondary-button {
    border: 1px solid #334155;

    background: #0f172a;

    color: #cbd5e1;
}

.billing-secondary-button:hover:not(:disabled) {
    border-color: #475569;

    background: #1e293b;
}

.billing-primary-button:disabled,
.billing-secondary-button:disabled {
    opacity: 0.55;

    cursor: not-allowed;
}

/* =========================================================
   ERRORS
========================================================= */

.billing-error {
    margin-bottom: 18px;

    padding:
        11px 13px;

    border: 1px solid rgba(239,
            68,
            68,
            0.3);

    border-radius: 7px;

    background:
        rgba(239,
            68,
            68,
            0.07);

    color: #f87171;

    font-size: 9px;
}

/* =========================================================
   ALERT
========================================================= */

.billing-alert {
    display: flex;

    align-items: center;

    gap: 11px;

    margin-bottom: 19px;

    padding:
        12px 14px;

    border-radius: 8px;

    font-size: 9px;
}

.billing-alert strong {
    flex-shrink: 0;
}

.billing-alert.warning {
    border: 1px solid rgba(245,
            158,
            11,
            0.28);

    background:
        rgba(245,
            158,
            11,
            0.06);

    color: #fbbf24;
}

.billing-alert.danger {
    border: 1px solid rgba(239,
            68,
            68,
            0.28);

    background:
        rgba(239,
            68,
            68,
            0.06);

    color: #f87171;
}

/* =========================================================
   SUMMARY
========================================================= */

.billing-summary-grid {
    display: grid;

    grid-template-columns:
        minmax(0,
            1.55fr) minmax(280px,
            0.75fr);

    gap: 18px;

    margin-bottom: 30px;
}

.billing-plan-card,
.billing-renewal-card,
.billing-usage-card,
.billing-info-card,
.billing-addon-card,
.billing-stripe-card {
    border: 1px solid #1e293b;

    border-radius: 11px;

    background:
        rgba(15,
            23,
            42,
            0.48);
}

/* =========================================================
   PLAN
========================================================= */

.billing-plan-card {
    padding: 25px;
}

.billing-plan-top {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}

.billing-plan-top>div>span {
    color: #64748b;

    font-size: 8px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.8px;
}

.billing-plan-top h2 {
    margin:
        7px 0 6px;

    color: #f8fafc;

    font-size: 23px;
}

.billing-plan-top p {
    max-width: 500px;

    margin: 0;

    color: #64748b;

    font-size: 9px;

    line-height: 1.6;
}

.billing-status {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 25px;

    padding:
        0 10px;

    border-radius: 999px;

    font-size: 8px;

    font-weight: 700;
}

.billing-status.success {
    border: 1px solid rgba(34,
            197,
            94,
            0.25);

    background:
        rgba(34,
            197,
            94,
            0.08);

    color: #4ade80;
}

.billing-status.warning {
    border: 1px solid rgba(245,
            158,
            11,
            0.25);

    background:
        rgba(245,
            158,
            11,
            0.08);

    color: #fbbf24;
}

.billing-status.danger {
    border: 1px solid rgba(239,
            68,
            68,
            0.25);

    background:
        rgba(239,
            68,
            68,
            0.08);

    color: #f87171;
}

.billing-plan-price {
    display: flex;

    align-items: baseline;

    gap: 6px;

    margin:
        28px 0 22px;
}

.billing-plan-price strong {
    color: #f8fafc;

    font-size: 30px;

    line-height: 1;
}

.billing-plan-price span {
    color: #64748b;

    font-size: 9px;
}

.billing-plan-meta {
    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0,
                1fr));

    border-top: 1px solid #1e293b;
}

.billing-meta-item {
    padding:
        18px 12px 0 0;
}

.billing-meta-item+.billing-meta-item {
    padding-left: 18px;

    border-left: 1px solid #1e293b;
}

.billing-meta-item span {
    display: block;

    margin-bottom: 5px;

    color: #475569;

    font-size: 8px;
}

.billing-meta-item strong {
    color: #cbd5e1;

    font-size: 9px;
}

/* =========================================================
   RENEWAL
========================================================= */

.billing-renewal-card {
    display: flex;

    flex-direction: column;

    padding: 25px;
}

.billing-renewal-date {
    margin:
        17px 0 22px;
}

.billing-renewal-date strong {
    display: block;

    color: #f8fafc;

    font-size: 22px;
}

.billing-renewal-date span {
    display: block;

    margin-top: 5px;

    color: #64748b;

    font-size: 9px;
}

.billing-period-range {
    padding:
        13px 0;

    border-top: 1px solid #1e293b;

    border-bottom: 1px solid #1e293b;
}

.billing-period-range span,
.billing-period-range strong {
    display: block;
}

.billing-period-range span {
    margin-bottom: 4px;

    color: #475569;

    font-size: 8px;
}

.billing-period-range strong {
    color: #94a3b8;

    font-size: 9px;

    font-weight: 600;
}

.billing-renewal-footer {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: auto;

    padding-top: 17px;

    color: #64748b;

    font-size: 8px;
}

.billing-renewal-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #22c55e;
}

.billing-renewal-dot.warning {
    background: #f59e0b;
}

/* =========================================================
   SECTIONS
========================================================= */

.billing-section {
    margin-top: 31px;
}

.billing-section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}

.billing-section-heading>div>span {
    color: #38bdf8;

    font-size: 8px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.9px;
}

.billing-section-heading h2 {
    margin:
        5px 0 0;

    color: #f8fafc;

    font-size: 17px;
}

.billing-section-heading>p {
    margin: 0;

    color: #475569;

    font-size: 8px;
}

/* =========================================================
   USAGE
========================================================= */

.billing-usage-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0,
                1fr));

    gap: 17px;
}

.billing-usage-card {
    padding: 23px;
}

.billing-usage-header {
    display: flex;

    align-items: center;

    gap: 12px;
}

.billing-usage-icon {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(56,
            189,
            248,
            0.18);

    border-radius: 8px;

    background:
        rgba(14,
            165,
            233,
            0.06);

    color: #38bdf8;

    font-size: 15px;
}

.billing-usage-header h3 {
    margin: 0;

    color: #e2e8f0;

    font-size: 12px;
}

.billing-usage-header p {
    margin:
        4px 0 0;

    color: #475569;

    font-size: 8px;
}

.billing-usage-value {
    display: flex;

    align-items: baseline;

    gap: 5px;

    margin:
        24px 0 12px;
}

.billing-usage-value strong {
    color: #f8fafc;

    font-size: 25px;
}

.billing-usage-value span {
    color: #64748b;

    font-size: 10px;
}

.billing-progress {
    width: 100%;

    height: 6px;

    overflow: hidden;

    border-radius: 999px;

    background: #1e293b;
}

.billing-progress-value {
    height: 100%;

    border-radius: inherit;

    background: #0ea5e9;

    transition:
        width 0.35s ease;
}

.billing-progress-value.warning {
    background: #f59e0b;
}

.billing-progress-value.danger {
    background: #ef4444;
}

.billing-usage-footer {
    display: flex;

    justify-content: space-between;

    margin-top: 8px;

    color: #475569;

    font-size: 8px;
}

.billing-extra-capacity {
    margin-top: 12px;

    padding:
        8px 10px;

    border-radius: 6px;

    background:
        rgba(14,
            165,
            233,
            0.06);

    color: #38bdf8;

    font-size: 8px;
}

/* =========================================================
   ADDONS
========================================================= */

.billing-addons-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit,
            minmax(240px,
                1fr));

    gap: 15px;
}

.billing-addon-card {
    padding: 20px;
}

.billing-addon-card>div:first-child span {
    color: #38bdf8;

    font-size: 7px;

    font-weight: 700;
}

.billing-addon-card h3 {
    margin:
        5px 0 0;

    color: #e2e8f0;

    font-size: 11px;
}

.billing-addon-quantity {
    margin:
        20px 0 12px;
}

.billing-addon-quantity strong {
    display: block;

    color: #f8fafc;

    font-size: 22px;
}

.billing-addon-quantity span {
    color: #64748b;

    font-size: 8px;
}

.billing-addon-price {
    padding-top: 11px;

    border-top: 1px solid #1e293b;

    color: #94a3b8;

    font-size: 9px;
}

/* =========================================================
   BILLING INFO
========================================================= */

.billing-info-card {
    overflow: hidden;
}

.billing-info-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding:
        15px 19px;

    border-bottom: 1px solid #1e293b;
}

.billing-info-row.last {
    border-bottom: 0;
}

.billing-info-row span {
    color: #64748b;

    font-size: 9px;
}

.billing-info-row strong {
    color: #cbd5e1;

    font-size: 9px;

    text-align: right;
}

/* =========================================================
   STRIPE
========================================================= */

.billing-stripe-card {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

    margin-top: 30px;

    padding: 24px;
}

.billing-stripe-card h2 {
    margin:
        4px 0 6px;

    color: #f8fafc;

    font-size: 15px;
}

.billing-stripe-card p {
    max-width: 590px;

    margin: 0;

    color: #64748b;

    font-size: 9px;

    line-height: 1.6;
}

/* =========================================================
   LOADING
========================================================= */

.billing-loading {
    min-height: 390px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}

.billing-loading strong {
    margin-top: 13px;

    color: #cbd5e1;

    font-size: 11px;
}

.billing-loading p {
    margin:
        6px 0 16px;

    color: #475569;

    font-size: 9px;
}

.billing-spinner {
    width: 27px;
    height: 27px;

    border: 2px solid #1e293b;

    border-top-color: #38bdf8;

    border-radius: 50%;

    animation:
        billing-spin 0.8s linear infinite;
}

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

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {
    .billing-summary-grid {
        grid-template-columns:
            1fr;
    }

    .billing-usage-grid {
        grid-template-columns:
            1fr;
    }
}

@media (max-width: 700px) {
    .billing-page {
        padding:
            22px 18px 45px;
    }

    .billing-header {
        flex-direction:
            column;
    }

    .billing-header .billing-primary-button {
        width: 100%;
    }

    .billing-plan-meta {
        grid-template-columns:
            1fr;
    }

    .billing-meta-item+.billing-meta-item {
        padding-left: 0;

        border-left: 0;
    }

    .billing-stripe-card {
        flex-direction:
            column;

        align-items:
            stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .billing-spinner {
        animation: none;
    }

    .billing-progress-value {
        transition: none;
    }
}/* =========================================================
   DASHBOARD PAGE
========================================================= */

.dashboard-page-new {
  position: relative;

  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 20px;

  color: #e8eef7;
}


/* =========================================================
   HEADER
========================================================= */

.dashboard-page-header {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  min-width: 0;
}

.dashboard-page-eyebrow {
  color: #38bdf8;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.dashboard-page-header h1 {
  margin: 5px 0 0;

  color: #f8fafc;

  font-size: 30px;

  line-height: 1;
}

.dashboard-page-header p {
  margin: 8px 0 0;

  color: #64748b;

  font-size: 12px;
}


/* =========================================================
   DATE RANGE
========================================================= */

.dashboard-range {
  flex: 0 0 auto;

  display: flex;

  align-items: flex-end;

  gap: 10px;

  padding: 9px;

  border: 1px solid #20314b;

  border-radius: 11px;

  background: #0b1628;
}

.dashboard-range > div {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.dashboard-range label {
  color: #64748b;

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.05em;
}

.dashboard-range input {
  width: 142px;
  height: 36px;

  padding: 0 10px;

  border: 1px solid #2a3c58;

  border-radius: 7px;

  outline: none;

  background: #071225;

  color: #dce7f5;

  color-scheme: dark;

  font-size: 11px;
}

.dashboard-range input:focus {
  border-color: #168fd1;

  box-shadow:
    0 0 0 3px
    rgba(
      14,
      165,
      233,
      0.08
    );
}

.dashboard-range-separator {
  padding-bottom: 10px;

  color: #536783;
}


/* =========================================================
   KPI
========================================================= */

.dashboard-kpis {
  display: grid;

  grid-template-columns:
    repeat(
      5,
      minmax(
        0,
        1fr
      )
    );

  gap: 12px;
}

.dashboard-kpi {
  position: relative;

  overflow: hidden;

  min-width: 0;
  min-height: 118px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  padding: 18px;

  border: 1px solid #20314a;

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #101b2f 0%,
      #0c1728 100%
    );
}

.dashboard-kpi::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;

  width: 3px;
  height: 100%;
}

.dashboard-kpi-blue::before {
  background: #258cff;
}

.dashboard-kpi-green::before {
  background: #22c55e;
}

.dashboard-kpi-red::before {
  background: #ef4444;
}

.dashboard-kpi-orange::before {
  background: #f59e0b;
}

.dashboard-kpi > span {
  color: #7788a2;

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 0.04em;
}

.dashboard-kpi-value {
  display: flex;

  align-items: baseline;

  gap: 10px;

  min-width: 0;
}

.dashboard-kpi-value strong {
  color: #f8fafc;

  font-size: 29px;

  line-height: 1;
}

.dashboard-kpi-value small {
  white-space: nowrap;

  font-size: 9px;

  font-weight: 800;
}

.dashboard-kpi-value .is-positive {
  color: #4ade80;
}

.dashboard-kpi-value .is-negative {
  color: #f87171;
}

.dashboard-kpi > small {
  color: #62738d;

  font-size: 10px;
}


/* =========================================================
   MAIN DASHBOARD GRID
========================================================= */

/*
 * Ya no intentamos meter 3 paneles medianos
 * en una sola fila.
 *
 * Entradas/salidas obtiene más espacio.
 * Estado queda a la derecha.
 */

.dashboard-grid-main {
  display: grid;

  grid-template-columns:
    minmax(
      0,
      1.65fr
    )
    minmax(
      340px,
      0.85fr
    );

  gap: 14px;

  align-items: stretch;
}


/*
 * El tercer panel anterior (Movimientos)
 * bajará automáticamente si lo dejamos
 * ocupar todo el ancho.
 */

.dashboard-grid-main
  > .dashboard-panel:nth-child(3) {
  grid-column:
    1 / -1;
}


/* =========================================================
   SECONDARY GRID
========================================================= */

.dashboard-grid-secondary {
  display: grid;

  grid-template-columns:
    minmax(
      280px,
      0.9fr
    )
    minmax(
      380px,
      1.35fr
    )
    minmax(
      300px,
      1fr
    );

  gap: 14px;

  align-items: stretch;
}


/* =========================================================
   PANELS
========================================================= */

.dashboard-panel {
  min-width: 0;

  overflow: hidden;

  border: 1px solid #20314a;

  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      #0f1a2d 0%,
      #0b1627 100%
    );

  box-shadow:
    0 10px 30px
    rgba(
      0,
      0,
      0,
      0.08
    );
}

.dashboard-panel > header {
  min-height: 64px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  padding: 15px 18px;

  border-bottom:
    1px solid #1c2b42;
}

.dashboard-panel > header h3 {
  margin: 0;

  color: #f1f5f9;

  font-size: 14px;
}

.dashboard-panel > header span {
  display: block;

  margin-top: 4px;

  color: #60718b;

  font-size: 9px;
}

.dashboard-panel-content {
  min-width: 0;

  padding: 18px;
}


/* =========================================================
   ENTRIES / EXITS CHART
========================================================= */

.dashboard-chart {
  width: 100%;

  height: 300px;

  min-width: 0;
}


/*
 * Evita que SVG / canvas de Recharts
 * rompa el ancho del panel.
 */

.dashboard-chart .recharts-responsive-container {
  min-width: 0 !important;
}

.dashboard-chart svg {
  overflow: visible;
}


/* =========================================================
   STATUS DONUT
========================================================= */

.dashboard-status-content {
  min-width: 0;

  display: grid;

  grid-template-columns:
    minmax(
      190px,
      1fr
    )
    minmax(
      135px,
      0.7fr
    );

  align-items: center;

  gap: 18px;
}

.dashboard-donut {
  position: relative;

  width: 100%;

  height: 280px;

  min-width: 0;
}

.dashboard-donut-center {
  position: absolute;

  top: 50%;
  left: 50%;

  transform:
    translate(
      -50%,
      -50%
    );

  display: flex;

  flex-direction: column;

  align-items: center;

  pointer-events: none;
}

.dashboard-donut-center strong {
  color: #f8fafc;

  font-size: 25px;
}

.dashboard-donut-center span {
  margin-top: 3px;

  color: #667995;

  font-size: 9px;
}

.dashboard-status-legend {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 13px;
}

.dashboard-status-row {
  min-width: 0;

  display: grid;

  grid-template-columns:
    8px
    minmax(
      0,
      1fr
    );

  gap: 9px;

  align-items: center;
}

.dashboard-status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.dashboard-status-row div {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 3px;
}

.dashboard-status-row span {
  overflow: hidden;

  color: #8ea0bb;

  font-size: 10px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.dashboard-status-row strong {
  color: #dce7f5;

  font-size: 10px;
}


/* =========================================================
   MOVEMENTS
========================================================= */

.dashboard-movement-list {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap:
    18px
    32px;
}

.dashboard-movement-row {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 8px;
}

.dashboard-movement-label {
  min-width: 0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;
}

.dashboard-movement-label span {
  overflow: hidden;

  color: #91a2bc;

  font-size: 11px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.dashboard-movement-label strong {
  flex: 0 0 auto;

  color: #f8fafc;

  font-size: 11px;
}

.dashboard-movement-track {
  height: 8px;

  overflow: hidden;

  border-radius: 999px;

  background: #17253b;
}

.dashboard-movement-track div {
  height: 100%;

  min-width: 3px;

  border-radius: inherit;
}


/* =========================================================
   ALERT STRIP
========================================================= */

.dashboard-alert-strip {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(
        210px,
        1fr
      )
    );

  gap: 10px;
}

.dashboard-alert {
  min-width: 0;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  padding: 12px 15px;

  border: 1px solid #25364f;

  border-radius: 9px;

  background: #0d192b;
}

.dashboard-alert span {
  min-width: 0;

  overflow: hidden;

  color: #91a2bc;

  font-size: 10px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.dashboard-alert strong {
  flex: 0 0 auto;

  font-size: 16px;
}

.dashboard-alert-warning strong {
  color: #f59e0b;
}

.dashboard-alert-info strong {
  color: #38bdf8;
}

.dashboard-alert-success strong {
  color: #4ade80;
}

.dashboard-alert-danger strong {
  color: #f87171;
}


/* =========================================================
   ACTIVITY
========================================================= */

.dashboard-activity {
  display: flex;

  flex-direction: column;

  gap: 2px;
}

.dashboard-activity-row {
  position: relative;

  min-width: 0;
  min-height: 52px;

  display: grid;

  grid-template-columns:
    10px
    minmax(
      0,
      1fr
    );

  gap: 11px;
}

.dashboard-activity-row:not(
  :last-child
)::before {
  content: '';

  position: absolute;

  top: 13px;
  bottom: -2px;
  left: 4px;

  width: 1px;

  background: #2a3a53;
}

.dashboard-activity-marker {
  position: relative;

  z-index: 1;

  width: 9px;
  height: 9px;

  margin-top: 4px;

  border-radius: 50%;

  background: #38bdf8;
}

.dashboard-activity-entry {
  background: #2484ff;
}

.dashboard-activity-rehandle {
  background: #8b5cf6;
}

.dashboard-activity-service {
  background: #f59e0b;
}

.dashboard-activity-exit {
  background: #ef4444;
}

.dashboard-activity-heading {
  min-width: 0;

  display: flex;

  align-items: center;

  gap: 7px;
}

.dashboard-activity-heading span {
  flex: 0 0 auto;

  padding: 2px 5px;

  border-radius: 4px;

  background: #172943;

  color: #69b9ff;

  font-size: 7px;

  font-weight: 800;

  text-transform: uppercase;
}

.dashboard-activity-heading strong {
  min-width: 0;

  overflow: hidden;

  color: #e7eef8;

  font-size: 10px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.dashboard-activity-row small {
  display: block;

  overflow: hidden;

  margin-top: 4px;

  color: #657791;

  font-size: 8px;

  white-space: nowrap;

  text-overflow: ellipsis;
}


/* =========================================================
   YARD OCCUPANCY
========================================================= */

.dashboard-yard-list {
  display: flex;

  flex-direction: column;

  gap: 17px;
}

.dashboard-yard-row {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.dashboard-yard-heading,
.dashboard-yard-meta {
  display: flex;

  justify-content: space-between;

  gap: 14px;
}

.dashboard-yard-heading strong {
  color: #e7eef8;

  font-size: 11px;
}

.dashboard-yard-heading span {
  color: #c7d5e8;

  font-size: 10px;
}

.dashboard-yard-progress {
  height: 7px;

  overflow: hidden;

  border-radius: 999px;

  background: #17253b;
}

.dashboard-yard-progress div {
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #178fda,
      #38bdf8
    );
}

.dashboard-yard-meta {
  flex-wrap: wrap;
}

.dashboard-yard-meta span {
  color: #61728b;

  font-size: 8px;
}


/* =========================================================
   UPCOMING EXITS
========================================================= */

.dashboard-upcoming-list {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.dashboard-upcoming-row {
  min-width: 0;

  display: grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    auto;

  align-items: center;

  gap: 16px;

  padding: 12px;

  border: 1px solid #1d2d45;

  border-radius: 8px;

  background: #0b1728;
}

.dashboard-upcoming-row > div {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 3px;
}

.dashboard-upcoming-row strong {
  overflow: hidden;

  color: #edf3fb;

  font-size: 10px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.dashboard-upcoming-row span {
  overflow: hidden;

  color: #657791;

  font-size: 8px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.dashboard-upcoming-date {
  align-items: flex-end;

  text-align: right;
}


/* =========================================================
   EMPTY / ERROR / LOADING
========================================================= */

.dashboard-panel-empty {
  min-height: 170px;

  display: grid;

  place-items: center;

  color: #52647d;

  font-size: 10px;

  text-align: center;
}

.dashboard-error {
  padding: 11px 14px;

  border:
    1px solid
    rgba(
      248,
      113,
      113,
      0.3
    );

  border-radius: 8px;

  background:
    rgba(
      127,
      29,
      29,
      0.12
    );

  color: #fca5a5;

  font-size: 11px;
}

.dashboard-loading-overlay {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 100;

  padding: 9px 13px;

  border: 1px solid #29405f;

  border-radius: 8px;

  background: #101e33;

  color: #91cfff;

  font-size: 10px;

  box-shadow:
    0 10px 30px
    rgba(
      0,
      0,
      0,
      0.3
    );
}


/* =========================================================
   1450px
========================================================= */

@media (
  max-width: 1450px
) {
  .dashboard-kpis {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }

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

  .dashboard-grid-secondary
    > .dashboard-panel:last-child {
    grid-column:
      1 / -1;
  }
}


/* =========================================================
   1150px
========================================================= */

@media (
  max-width: 1150px
) {
  .dashboard-grid-main {
    grid-template-columns:
      1fr;
  }

  .dashboard-grid-main
    > .dashboard-panel:nth-child(3) {
    grid-column:
      auto;
  }

  .dashboard-status-content {
    grid-template-columns:
      minmax(
        220px,
        0.8fr
      )
      minmax(
        200px,
        1fr
      );
  }

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


/* =========================================================
   900px
========================================================= */

@media (
  max-width: 900px
) {
  .dashboard-page-header {
    flex-direction: column;

    align-items: stretch;
  }

  .dashboard-range {
    width: fit-content;
  }

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

  .dashboard-grid-secondary {
    grid-template-columns:
      1fr;
  }

  .dashboard-grid-secondary
    > .dashboard-panel:last-child {
    grid-column:
      auto;
  }

  .dashboard-status-content {
    grid-template-columns:
      1fr;
  }

  .dashboard-status-legend {
    display: grid;

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


/* =========================================================
   650px
========================================================= */

@media (
  max-width: 650px
) {
  .dashboard-page-new {
    gap: 14px;
  }

  .dashboard-kpis {
    grid-template-columns:
      1fr;
  }

  .dashboard-range {
    width: 100%;

    align-items: stretch;
  }

  .dashboard-range > div {
    flex: 1;
  }

  .dashboard-range input {
    width: 100%;
  }

  .dashboard-range-separator {
    align-self: center;

    padding:
      22px 0 0;
  }

  .dashboard-panel-content {
    padding: 14px;
  }

  .dashboard-chart {
    height: 260px;
  }

  .dashboard-movement-list {
    grid-template-columns:
      1fr;
  }

  .dashboard-status-legend {
    grid-template-columns:
      1fr;
  }
}



/* =========================================================
   DASHBOARD · MODERN REFACTOR
   Mantiene la paleta original PATIO YMS.
========================================================= */

.dashboard-page-new {
  gap: 18px;
}

.dashboard-page-header {
  align-items: flex-start;
}

.dashboard-page-header h1 {
  margin-top: 7px;
  font-size: clamp(29px, 2.25vw, 38px);
  letter-spacing: -0.045em;
}

.dashboard-page-header p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  color: #8292aa;
}

.dashboard-page-header p::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid #60728f;
  border-radius: 50%;
}

.dashboard-range-shell {
  flex: 0 0 auto;
  min-width: 350px;

  padding: 10px 12px 11px;

  border: 1px solid #20314b;
  border-radius: 12px;

  background:
    linear-gradient(
      145deg,
      rgba(16, 27, 47, 0.92),
      rgba(9, 20, 37, 0.92)
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.018);
}

.dashboard-range-title {
  display: block;
  margin-bottom: 7px;

  color: #71829c;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-range {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-range > div {
  flex: 1;
}

.dashboard-range input {
  width: 100%;
  min-width: 135px;
  box-sizing: border-box;

  border-color: #2b3d59;
  background: rgba(4, 13, 28, 0.72);
}

.dashboard-kpis {
  grid-template-columns:
    repeat(
      5,
      minmax(
        0,
        1fr
      )
    );
  gap: 12px;
}

.dashboard-kpi {
  min-height: 148px;

  justify-content: flex-start;
  gap: 10px;

  padding: 18px 19px;

  border-color: #21334d;
  border-radius: 13px;

  background:
    radial-gradient(
      circle at 88% 15%,
      rgba(36, 132, 255, 0.055),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      #101c30 0%,
      #0b1628 100%
    );

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.018),
    0 14px 30px
    rgba(0, 0, 0, 0.055);

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.dashboard-kpi:hover {
  transform: translateY(-2px);
  border-color: #2d4262;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.022),
    0 18px 34px
    rgba(0, 0, 0, 0.09);
}

.dashboard-kpi::before {
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
}

.dashboard-kpi-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.dashboard-kpi-top > span {
  min-width: 0;

  color: #8999b1;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: .035em;
  text-transform: uppercase;
}

.dashboard-kpi-icon {
  width: 36px;
  height: 36px;

  flex: 0 0 36px;

  display: grid;
  place-items: center;

  border: 1px solid currentColor;
  border-radius: 10px;

  background: rgba(255,255,255,.025);
}

.dashboard-kpi-icon svg,
.dashboard-panel-icon svg {
  width: 18px;
  height: 18px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-kpi-icon-blue {
  color: #38bdf8;
  background: rgba(56, 189, 248, .07);
  border-color: rgba(56, 189, 248, .2);
}

.dashboard-kpi-icon-green {
  color: #4ade80;
  background: rgba(74, 222, 128, .07);
  border-color: rgba(74, 222, 128, .2);
}

.dashboard-kpi-icon-red {
  color: #f87171;
  background: rgba(248, 113, 113, .07);
  border-color: rgba(248, 113, 113, .2);
}

.dashboard-kpi-icon-orange {
  color: #fbbf24;
  background: rgba(251, 191, 36, .07);
  border-color: rgba(251, 191, 36, .2);
}

.dashboard-kpi-value {
  margin-top: 2px;
  gap: 9px;
}

.dashboard-kpi-value strong {
  font-size: clamp(27px, 2.2vw, 35px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.dashboard-kpi-value small {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

.dashboard-kpi-description {
  margin-top: auto;
  color: #687b97 !important;
}

.dashboard-grid-main {
  grid-template-columns:
    minmax(0, 1.65fr)
    minmax(340px, .95fr);
  gap: 14px;
}

.dashboard-panel {
  border-color: #21334d;
  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #0f1b2f 0%,
      #0a1527 100%
    );

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.018),
    0 14px 32px
    rgba(0,0,0,.06);
}

.dashboard-panel > header {
  min-height: 68px;
  padding: 14px 17px;
  border-bottom-color: #1d2d45;
}

.dashboard-panel-title-group {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.dashboard-panel-title-group > div {
  min-width: 0;
}

.dashboard-panel-icon {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(56, 189, 248, .16);
  border-radius: 9px;

  background: rgba(56, 189, 248, .055);
  color: #38bdf8;
}

.dashboard-panel > header h3 {
  font-size: 14px;
  letter-spacing: -0.012em;
}

.dashboard-panel > header span {
  margin-top: 3px;
}

.dashboard-panel-content {
  padding: 17px;
}

.dashboard-chart {
  height: 320px;
}

.dashboard-donut {
  height: 300px;
}

.dashboard-donut-center strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

.dashboard-status-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 58, 83, .55);
}

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

.dashboard-status-row strong,
.dashboard-movement-label strong,
.dashboard-alert strong,
.dashboard-yard-meta span {
  font-variant-numeric: tabular-nums;
}

.dashboard-status-row strong {
  font-size: 10px;
}

.dashboard-movement-track {
  height: 7px;
  background: #142239;
}

.dashboard-alert {
  border-color: #233650;
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      #0e1a2d,
      #0b1627
    );
}

.dashboard-grid-secondary {
  gap: 14px;
}

.dashboard-upcoming-row {
  border-color: #20314a;
  background: rgba(8, 19, 34, .72);
}

.dashboard-yard-progress {
  background: #142239;
}

.dashboard-loading-overlay {
  backdrop-filter: blur(3px);
}

@media (max-width: 1240px) {
  .dashboard-kpis {
    grid-template-columns:
      repeat(
        3,
        minmax(
          0,
          1fr
        )
      );
  }
}

@media (max-width: 900px) {
  .dashboard-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-range-shell {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

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

@media (max-width: 560px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi {
    min-height: 132px;
  }

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

  .dashboard-range-separator {
    display: none;
  }
}
/* =========================
   YARD PAGE
========================= */

.yard-page {
  flex: 1;

  min-height: 0;

  display: flex;
  flex-direction: column;
}

/* =========================
   HEADER
========================= */

.header {
  height: 90px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 28px;

  background: #0f172a;

  border-bottom: 1px solid #1e293b;
}

.header h1 {
  margin: 0;

  font-size: 26px;
}

.header p {
  margin: 5px 0 0;

  color: #94a3b8;
}

/* =========================
   YARD
========================= */

.yard-container {
  flex: 1;

  min-height: 0;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) 320px;
}

/* =========================
   THREE JS
========================= */

.scene {
  width: 100%;
  height: 100%;

  min-width: 0;
  min-height: 0;

  position: relative;

  background: #0f172a;
}

.scene canvas {
  display: block;

  width: 100% !important;
  height: 100% !important;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  min-height: 0;

  padding: 28px;

  background: #0f172a;

  border-left: 1px solid #1e293b;

  overflow-y: auto;
}

.sidebar h2 {
  margin: 0 0 24px;

  font-size: 24px;
}

.sidebar h3 {
  color: #38bdf8;

  margin-bottom: 24px;
}

.sidebar p {
  color: #cbd5e1;
}

/* =========================
   CONFIG
========================= */

.config-page {
  flex: 1;

  min-height: 0;

  overflow-y: auto;

  padding: 32px;

  background: #020617;
}

.config-page h1 {
  margin-top: 0;
}

.config-page section {
  max-width: 700px;

  margin-bottom: 30px;

  padding: 24px;

  background: #0f172a;

  border: 1px solid #1e293b;

  border-radius: 10px;
}

.config-page section h2 {
  margin-top: 0;
}

.config-page label {
  display: block;

  margin-top: 15px;
  margin-bottom: 6px;

  color: #94a3b8;
}

.config-page input,
.config-page select {
  width: 100%;

  padding: 10px 12px;

  background: #020617;

  border: 1px solid #334155;

  border-radius: 6px;

  color: white;
}

.config-page button {
  margin-top: 20px;

  padding: 10px 18px;

  background: #2563eb;

  border: none;

  border-radius: 6px;

  color: white;

  cursor: pointer;
}

.config-page button:hover {
  background: #1d4ed8;
}

.config-page pre {
  margin-top: 20px;

  padding: 20px;

  overflow-x: auto;

  background: #020617;

  border-radius: 8px;

  color: #cbd5e1;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {
  .yard-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .main-nav {
    padding: 0 15px;
  }
}

.container-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 0;

  border-bottom: 1px solid #1e293b;
}

.container-row-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 10px;
}

.container-row-info strong {
  color: #f8fafc;
}

.container-row-info span {
  padding: 5px 8px;

  background: #1e293b;

  border-radius: 5px;

  color: #94a3b8;

  font-size: 13px;
}

.danger-button {
  background: #dc2626 !important;

  flex-shrink: 0;
}

.danger-button:hover {
  background: #b91c1c !important;
}

.danger-section {
  border-color: #7f1d1d !important;
}

.container-actions {
  display: flex;
  gap: 8px;
}

.move-button {
  background: #0284c7 !important;
}

.move-button:hover {
  background: #0369a1 !important;
}

.secondary-button {
  background: #475569 !important;
}

.secondary-button:hover {
  background: #334155 !important;
}

.move-section {
  border-color: #0369a1 !important;
}

.move-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.placement-panel {
  display: flex;
  flex-direction: column;

  gap: 24px;
}

.placement-help {
  padding: 14px;

  background: #052e16;

  border: 1px solid #166534;

  border-radius: 8px;
}

.placement-help strong {
  color: #86efac;
}

.placement-help p {
  margin: 7px 0 0;

  color: #bbf7d0;

  font-size: 13px;

  line-height: 1.5;
}

.placement-actions {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.confirm-placement-button {
  width: 100%;

  padding: 12px;

  border: none;

  border-radius: 7px;

  background: #16a34a;

  color: white;

  cursor: pointer;
}

.confirm-placement-button:hover {
  background: #15803d;
}

.confirm-placement-button:disabled {
  background: #334155;

  color: #64748b;

  cursor: not-allowed;
}

.secondary-button {
  width: 100%;

  padding: 12px;

  border: none;

  border-radius: 7px;

  background: #475569;

  color: white;

  cursor: pointer;
}

/* =========================
   TOOLBAR DEL PATIO
========================= */

.yard-toolbar {
  position: absolute;

  top: 18px;
  left: 18px;

  z-index: 10;
}

.yard-entry-button {
  padding: 10px 16px;

  border: 1px solid #334155;

  border-radius: 8px;

  background: rgba(15,
      23,
      42,
      0.92);

  color: #f8fafc;

  cursor: pointer;

  backdrop-filter: blur(10px);
}

.yard-entry-button:hover {
  background: #1e293b;
}


/* =========================
   PLACEMENT SUPERIOR
========================= */

.placement-toolbar {
  position: absolute;

  top: 18px;
  left: 18px;

  z-index: 10;

  display: flex;
  align-items: center;

  gap: 18px;

  padding: 10px 14px;

  background: rgba(15,
      23,
      42,
      0.94);

  border:
    1px solid #334155;

  border-radius: 8px;

  backdrop-filter:
    blur(10px);
}

.placement-toolbar>div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.placement-toolbar strong {
  color: #f8fafc;

  font-size: 13px;
}

.placement-toolbar span {
  color: #94a3b8;

  font-size: 12px;
}

.placement-toolbar button {
  padding: 7px 12px;

  border: none;
  border-radius: 6px;

  background: #475569;

  color: white;

  cursor: pointer;
}


/* =========================
   CONFIRMACIÓN INFERIOR
========================= */

.placement-confirm {
  position: absolute;

  left: 50%;
  bottom: 22px;

  z-index: 10;

  transform:
    translateX(-50%);

  display: flex;

  align-items: center;

  gap: 18px;

  padding: 10px 14px;

  background: rgba(15,
      23,
      42,
      0.95);

  border:
    1px solid #334155;

  border-radius: 9px;

  backdrop-filter:
    blur(10px);
}

.placement-confirm strong {
  font-size: 13px;

  color: #e2e8f0;

  white-space: nowrap;
}

.placement-confirm button {
  padding: 9px 14px;

  border: none;

  border-radius: 6px;

  background: #16a34a;

  color: white;

  cursor: pointer;
}


/* =========================
   MODAL
========================= */

.yard-modal-backdrop {
  position: absolute;

  inset: 0;

  z-index: 30;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;

  background:
    rgba(2,
      6,
      23,
      0.7);

  backdrop-filter:
    blur(3px);
}

.yard-modal {
  width: min(520px,
      100%);

  max-height: 90%;

  overflow-y: auto;

  background: #0f172a;

  border:
    1px solid #334155;

  border-radius: 12px;

  box-shadow:
    0 20px 60px rgba(0,
      0,
      0,
      0.45);
}

.yard-modal-small {
  width: min(420px,
      100%);
}

.yard-modal-header {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding: 22px 22px 16px;

  border-bottom:
    1px solid #1e293b;
}

.yard-modal-header h2 {
  margin: 0;

  font-size: 20px;
}

.yard-modal-header p {
  margin:
    6px 0 0;

  color: #94a3b8;

  font-size: 13px;

  line-height: 1.5;
}

.modal-close-button {
  width: 34px;
  height: 34px;

  padding: 0;

  border: none;

  border-radius: 6px;

  background: #1e293b;

  color: #94a3b8;

  font-size: 22px;

  cursor: pointer;
}

.yard-modal-body {
  display: flex;

  flex-direction: column;

  gap: 8px;

  padding: 20px 22px;
}

.yard-modal-body label {
  margin-top: 9px;

  color: #94a3b8;

  font-size: 13px;
}

.yard-modal-body input,
.yard-modal-body select {
  width: 100%;

  padding: 10px 12px;

  border:
    1px solid #334155;

  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #f8fafc;
}

.yard-modal-body input:focus,
.yard-modal-body select:focus {
  border-color: #0284c7;
}

.modal-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 14px;
}

.modal-grid>div {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.yard-modal-footer {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  padding: 16px 22px 22px;
}

.modal-primary-button,
.modal-secondary-button,
.exit-confirm-button {
  padding: 10px 15px;

  border: none;

  border-radius: 7px;

  color: white;

  cursor: pointer;
}

.modal-primary-button {
  background: #0284c7;
}

.modal-secondary-button {
  background: #475569;
}

.exit-confirm-button {
  background: #dc2626;
}


/* =========================
   SALIDA
========================= */

.exit-container-info {
  margin: 22px;

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 15px;

  background: #020617;

  border:
    1px solid #1e293b;

  border-radius: 8px;
}

.exit-container-info>div {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.exit-container-info span {
  color: #94a3b8;

  font-size: 13px;
}


/* =========================
   ACCIONES CONTENEDOR
========================= */

.container-yard-actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-top: 5px;
}

.container-move-button,
.container-exit-button {
  padding: 11px;

  border: none;

  border-radius: 7px;

  color: white;

  cursor: pointer;
}

.container-move-button {
  background: #0284c7;
}

.container-move-button:hover {
  background: #0369a1;
}

.container-exit-button {
  background: #b91c1c;
}

.container-exit-button:hover {
  background: #991b1b;
}

/* ========================================
   YARD OVERVIEW PAGE
======================================== */

.yard-overview-page {
  width: 100%;

  min-height: 100%;

  padding:
    26px
    28px
    32px;

  display: flex;
  flex-direction: column;

  gap: 20px;

  background:
    #020617;
}

/* ========================================
   HEADER
======================================== */

.yard-overview-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;
}

.yard-overview-eyebrow {
  display: block;

  margin-bottom: 5px;

  color:
    #38bdf8;

  font-size:
    9px;

  font-weight:
    700;

  letter-spacing:
    0.8px;

  text-transform:
    uppercase;
}

.yard-overview-header h1 {
  margin:
    0;

  color:
    #f8fafc;

  font-size:
    26px;

  line-height:
    1.15;
}

.yard-overview-header p {
  margin:
    6px 0 0;

  color:
    #64748b;

  font-size:
    10px;

  line-height:
    1.55;
}

.yard-overview-summary {
  display: flex;

  align-items: center;

  overflow: hidden;

  border:
    1px solid
    #1e293b;

  border-radius:
    9px;

  background:
    #0f172a;
}

.yard-overview-summary > div {
  min-width:
    110px;

  padding:
    12px 16px;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.yard-overview-summary > div +
div {
  border-left:
    1px solid
    #1e293b;
}

.yard-overview-summary span {
  color:
    #64748b;

  font-size:
    8px;

  text-transform:
    uppercase;
}

.yard-overview-summary strong {
  color:
    #f8fafc;

  font-size:
    19px;
}

/* ========================================
   SEARCH
======================================== */

.yard-search-card {
  position: relative;

  display: grid;

  grid-template-columns:
    minmax(
      220px,
      0.7fr
    )
    minmax(
      320px,
      1fr
    );

  align-items: center;

  gap: 24px;

  padding:
    15px
    17px;

  border:
    1px solid
    #1e293b;

  border-radius:
    10px;

  background:
    #0f172a;
}

.yard-search-copy {
  min-width: 0;

  display: flex;

  align-items: center;

  gap: 11px;
}

.yard-search-icon {
  width:
    34px;

  height:
    34px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(
      14,
      165,
      233,
      0.2
    );

  border-radius:
    7px;

  background:
    rgba(
      14,
      165,
      233,
      0.08
    );

  color:
    #38bdf8;

  font-size:
    18px;
}

.yard-search-copy > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.yard-search-copy strong {
  color:
    #f8fafc;

  font-size:
    11px;
}

.yard-search-copy div span {
  color:
    #64748b;

  font-size:
    8px;
}

.yard-search-control {
  min-width: 0;

  display: grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    auto;

  gap: 8px;
}

.yard-search-control input {
  width: 100%;

  min-height:
    38px;

  padding:
    0
    12px;

  border:
    1px solid
    #334155;

  border-radius:
    7px;

  outline:
    none;

  background:
    #020617;

  color:
    #f8fafc;

  font-family:
    inherit;

  font-size:
    10px;

  transition:
    border-color
    0.15s ease,
    box-shadow
    0.15s ease;
}

.yard-search-control input::placeholder {
  color:
    #475569;
}

.yard-search-control input:focus {
  border-color:
    #0284c7;

  box-shadow:
    0
    0
    0
    3px
    rgba(
      2,
      132,
      199,
      0.08
    );
}

.yard-search-control button {
  min-width:
    84px;

  min-height:
    38px;

  padding:
    0
    14px;

  border:
    1px solid
    #0284c7;

  border-radius:
    7px;

  background:
    #0284c7;

  color:
    white;

  font-size:
    9px;

  font-weight:
    700;

  cursor:
    pointer;

  transition:
    background
    0.15s ease;
}

.yard-search-control button:hover {
  background:
    #0369a1;
}

.yard-search-error {
  grid-column:
    2;

  margin-top:
    -14px;

  color:
    #f87171;

  font-size:
    8px;
}

/* ========================================
   SECTION HEADING
======================================== */

.yard-section-heading {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom:
    12px;
}

.yard-section-heading h2 {
  margin:
    0;

  color:
    #f8fafc;

  font-size:
    15px;
}

.yard-section-heading p {
  margin:
    4px 0 0;

  color:
    #64748b;

  font-size:
    9px;
}

.yard-section-heading > span {
  padding:
    5px
    9px;

  border:
    1px solid
    #1e293b;

  border-radius:
    999px;

  background:
    #0f172a;

  color:
    #64748b;

  font-size:
    8px;

  white-space:
    nowrap;
}

/* ========================================
   BAYS GRID
======================================== */

.yard-bays-section {
  min-width:
    0;
}

.yard-bays-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(
        225px,
        1fr
      )
    );

  gap:
    10px;
}

.yard-bay-card {
  padding:
    13px;

  display: flex;
  flex-direction: column;

  gap:
    12px;

  border:
    1px solid
    #1e293b;

  border-radius:
    9px;

  background:
    #0f172a;

  transition:
    border-color
    0.15s ease,
    background
    0.15s ease,
    transform
    0.15s ease;
}

.yard-bay-card:hover {
  border-color:
    #334155;

  background:
    #111c30;

  transform:
    translateY(
      -1px
    );
}

.yard-bay-card.active {
  border-color:
    rgba(
      14,
      165,
      233,
      0.5
    );

  background:
    rgba(
      14,
      165,
      233,
      0.055
    );
}

.yard-bay-card-top {
  display: grid;

  grid-template-columns:
    34px
    minmax(
      0,
      1fr
    )
    auto;

  align-items: center;

  gap:
    9px;
}

.yard-bay-number {
  width:
    34px;

  height:
    34px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(
      14,
      165,
      233,
      0.2
    );

  border-radius:
    7px;

  background:
    rgba(
      14,
      165,
      233,
      0.08
    );

  color:
    #38bdf8;

  font-size:
    10px;

  font-weight:
    800;
}

.yard-bay-title {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap:
    2px;
}

.yard-bay-title strong {
  overflow:
    hidden;

  color:
    #f8fafc;

  font-size:
    10px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.yard-bay-title span {
  color:
    #64748b;

  font-size:
    7px;
}

.yard-bay-container-count {
  padding:
    4px
    7px;

  border-radius:
    999px;

  background:
    #1e293b;

  color:
    #94a3b8;

  font-size:
    7px;

  white-space:
    nowrap;
}

/* ========================================
   BAY DATA
======================================== */

.yard-bay-data {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap:
    6px;
}

.yard-bay-data > div {
  padding:
    7px;

  display: flex;
  flex-direction: column;

  gap:
    2px;

  border:
    1px solid
    #1e293b;

  border-radius:
    5px;

  background:
    #020617;
}

.yard-bay-data span,
.yard-bay-capacity span {
  color:
    #64748b;

  font-size:
    7px;

  text-transform:
    uppercase;
}

.yard-bay-data strong {
  color:
    #e2e8f0;

  font-size:
    10px;
}

.yard-bay-capacity {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap:
    10px;
}

.yard-bay-capacity strong {
  color:
    #94a3b8;

  font-size:
    8px;
}

/* ========================================
   BAY BUTTON
======================================== */

.yard-bay-focus-button {
  width:
    100%;

  min-height:
    33px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  padding:
    0
    10px;

  border:
    1px solid
    #334155;

  border-radius:
    6px;

  background:
    transparent;

  color:
    #cbd5e1;

  font-size:
    8px;

  font-weight:
    600;

  cursor:
    pointer;

  transition:
    background
    0.15s ease,
    border-color
    0.15s ease,
    color
    0.15s ease;
}

.yard-bay-focus-button:hover {
  border-color:
    #0284c7;

  background:
    rgba(
      2,
      132,
      199,
      0.08
    );

  color:
    #38bdf8;
}

/* ========================================
   WORKSPACE
======================================== */

.yard-workspace {
  min-height:
    610px;

  display: grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    290px;

  overflow:
    hidden;

  border:
    1px solid
    #1e293b;

  border-radius:
    10px;

  background:
    #0f172a;
}

/* ========================================
   SCENE
======================================== */

.yard-scene-card {
  min-width:
    0;

  min-height:
    0;

  display: flex;
  flex-direction: column;

  border-right:
    1px solid
    #1e293b;
}

.yard-scene-toolbar {
  min-height:
    56px;

  padding:
    10px
    14px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap:
    20px;

  border-bottom:
    1px solid
    #1e293b;

  background:
    #0f172a;
}

.yard-scene-toolbar > div:first-child {
  display: flex;

  align-items: center;

  gap:
    9px;
}

.yard-scene-status-dot {
  width:
    7px;

  height:
    7px;

  flex-shrink:
    0;

  border-radius:
    50%;

  background:
    #22c55e;

  box-shadow:
    0
    0
    0
    4px
    rgba(
      34,
      197,
      94,
      0.08
    );
}

.yard-scene-toolbar > div:first-child > div {
  display: flex;
  flex-direction: column;

  gap:
    2px;
}

.yard-scene-toolbar strong {
  color:
    #f8fafc;

  font-size:
    10px;
}

.yard-scene-toolbar span {
  color:
    #64748b;

  font-size:
    7px;
}

.yard-scene-indicator {
  max-width:
    240px;

  overflow:
    hidden;

  padding:
    5px
    9px;

  border:
    1px solid
    #334155;

  border-radius:
    999px;

  background:
    #020617;

  color:
    #94a3b8 !important;

  font-size:
    8px !important;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.yard-scene-canvas {
  flex:
    1;

  min-height:
    550px;

  background:
    #020617;
}

.yard-scene-canvas canvas {
  display:
    block;
}

/* ========================================
   DETAIL PANEL
======================================== */

.yard-detail-panel {
  min-width:
    0;

  padding:
    18px;

  overflow-y:
    auto;

  background:
    #0f172a;
}

.yard-detail-empty {
  height:
    100%;

  min-height:
    350px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align:
    center;
}

.yard-detail-empty-icon {
  width:
    46px;

  height:
    46px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom:
    13px;

  border:
    1px solid
    #334155;

  border-radius:
    9px;

  background:
    #020617;

  color:
    #64748b;

  font-size:
    20px;
}

.yard-detail-empty h2 {
  margin:
    0;

  color:
    #f8fafc;

  font-size:
    16px;
}

.yard-detail-empty > p {
  max-width:
    220px;

  margin:
    7px 0 0;

  color:
    #64748b;

  font-size:
    9px;

  line-height:
    1.55;
}

.yard-focused-bay-info {
  width:
    100%;

  margin-top:
    20px;

  padding:
    11px;

  display: flex;
  flex-direction: column;

  gap:
    4px;

  border:
    1px solid
    #1e293b;

  border-radius:
    7px;

  background:
    #020617;

  text-align:
    left;
}

.yard-focused-bay-info span {
  color:
    #64748b;

  font-size:
    7px;

  text-transform:
    uppercase;
}

.yard-focused-bay-info strong {
  color:
    #f8fafc;

  font-size:
    11px;
}

.yard-focused-bay-info small {
  color:
    #64748b;

  font-size:
    8px;
}

/* ========================================
   SELECTED CONTAINER
======================================== */

.yard-selected-container {
  display: flex;
  flex-direction: column;

  gap:
    20px;
}

.yard-selected-label {
  display: block;

  margin-bottom:
    10px;

  color:
    #64748b;

  font-size:
    7px;

  letter-spacing:
    0.6px;

  text-transform:
    uppercase;
}

.yard-selected-title {
  display: flex;

  align-items: center;

  gap:
    10px;
}

.yard-selected-color {
  width:
    36px;

  height:
    36px;

  flex-shrink:
    0;

  border:
    1px solid
    #475569;

  border-radius:
    7px;
}

.yard-selected-title > div {
  min-width:
    0;
}

.yard-selected-title h2 {
  overflow:
    hidden;

  margin:
    0;

  color:
    #f8fafc;

  font-size:
    16px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.yard-selected-title div span {
  color:
    #38bdf8;

  font-size:
    8px;

  font-weight:
    600;
}

/* ========================================
   DETAIL SECTION
======================================== */

.yard-detail-section {
  padding-top:
    17px;

  border-top:
    1px solid
    #1e293b;
}

.yard-detail-section h3 {
  margin:
    0
    0
    10px;

  color:
    #94a3b8;

  font-size:
    9px;

  text-transform:
    uppercase;
}

.yard-detail-row {
  min-height:
    32px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap:
    12px;

  border-bottom:
    1px solid
    rgba(
      30,
      41,
      59,
      0.65
    );
}

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

.yard-detail-row span {
  color:
    #64748b;

  font-size:
    8px;
}

.yard-detail-row strong {
  overflow:
    hidden;

  color:
    #e2e8f0;

  font-size:
    9px;

  text-align:
    right;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

/* ========================================
   LOCATION
======================================== */

.yard-location-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      1fr
    );

  gap:
    7px;
}

.yard-location-item {
  padding:
    9px;

  display: flex;
  flex-direction: column;

  gap:
    4px;

  border:
    1px solid
    #1e293b;

  border-radius:
    6px;

  background:
    #020617;
}

.yard-location-item span {
  color:
    #64748b;

  font-size:
    7px;

  text-transform:
    uppercase;
}

.yard-location-item strong {
  color:
    #f8fafc;

  font-size:
    10px;
}

/* ========================================
   EMPTY BAYS
======================================== */

.yard-bays-empty {
  padding:
    26px;

  border:
    1px dashed
    #334155;

  border-radius:
    8px;

  color:
    #64748b;

  font-size:
    9px;

  text-align:
    center;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (
  max-width: 1050px
) {
  .yard-workspace {
    grid-template-columns:
      1fr;
  }

  .yard-scene-card {
    border-right:
      0;

    border-bottom:
      1px solid
      #1e293b;
  }

  .yard-detail-panel {
    min-height:
      280px;
  }

  .yard-detail-empty {
    min-height:
      220px;
  }
}

@media (
  max-width: 800px
) {
  .yard-overview-page {
    padding:
      22px;
  }

  .yard-overview-header {
    flex-direction:
      column;
  }

  .yard-overview-summary {
    width:
      100%;
  }

  .yard-overview-summary > div {
    flex:
      1;
  }

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

  .yard-search-error {
    grid-column:
      1;

    margin-top:
      -10px;
  }
}

@media (
  max-width: 550px
) {
  .yard-overview-page {
    padding:
      16px;
  }

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

  .yard-search-control button {
    width:
      100%;
  }

  .yard-bays-grid {
    grid-template-columns:
      1fr;
  }

  .yard-scene-toolbar {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .yard-scene-canvas {
    min-height:
      480px;
  }
}

/* ========================================
   YARD VIEW
======================================== */

.yard-view-page {
  height: 100%;

  min-height: 0;

  display: flex;
  flex-direction: column;

  background: #020617;
}

/* ========================================
   HEADER
======================================== */

.yard-view-header {
  min-height: 94px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding:
    16px
    28px;

  border-bottom:
    1px solid #1e293b;

  background:
    #020617;
}

.yard-view-header-left {
  min-width: 0;

  display: flex;

  align-items: center;

  gap: 20px;
}

.yard-back-button {
  min-height: 38px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding:
    0
    13px;

  border:
    1px solid #334155;

  border-radius:
    7px;

  background:
    #0f172a;

  color:
    #cbd5e1;

  font-size:
    9px;

  font-weight:
    600;

  cursor:
    pointer;
}

.yard-back-button:hover {
  border-color:
    #475569;

  background:
    #172033;

  color:
    #f8fafc;
}

.yard-view-title {
  padding-left:
    20px;

  border-left:
    1px solid #1e293b;
}

.yard-view-title > span {
  color:
    #38bdf8;

  font-size:
    7px;

  font-weight:
    700;

  letter-spacing:
    0.9px;

  text-transform:
    uppercase;
}

.yard-view-title h1 {
  margin:
    3px
    0
    0;

  color:
    #f8fafc;

  font-size:
    22px;

  line-height:
    1.1;
}

.yard-view-title p {
  margin:
    4px
    0
    0;

  color:
    #64748b;

  font-size:
    9px;
}

.yard-view-header-right {
  display: flex;

  align-items: center;

  gap: 14px;
}

.yard-fullscreen-button {
  min-height: 38px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding:
    0
    13px;

  border:
    1px solid #334155;

  border-radius:
    7px;

  background:
    #0f172a;

  color:
    #cbd5e1;

  font-size:
    9px;

  font-weight:
    600;

  cursor:
    pointer;
}

.yard-fullscreen-button:hover {
  border-color:
    #0284c7;

  color:
    #38bdf8;
}

/* ========================================
   HEADER STATS
======================================== */

.yard-header-stats {
  display: flex;

  overflow: hidden;

  border:
    1px solid #1e293b;

  border-radius:
    8px;

  background:
    #0f172a;
}

.yard-header-stats > div {
  min-width:
    92px;

  padding:
    9px
    13px;

  display: flex;

  flex-direction: column;

  gap: 2px;
}

.yard-header-stats > div + div {
  border-left:
    1px solid #1e293b;
}

.yard-header-stats span {
  color:
    #64748b;

  font-size:
    7px;

  text-transform:
    uppercase;
}

.yard-header-stats strong {
  color:
    #f8fafc;

  font-size:
    18px;
}

/* ========================================
   MAIN
======================================== */

.yard-main-workspace {
  flex: 1;

  min-height: 0;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    280px;

  overflow: hidden;

  background:
    #020617;
}

.yard-main-workspace:fullscreen {
  width: 100vw;
  height: 100vh;

  background:
    #020617;
}

/* ========================================
   SCENE
======================================== */

.yard-main-scene {
  position: relative;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  border-right:
    1px solid #1e293b;

  background:
    #050b16;
}

.yard-main-scene canvas {
  display: block;

  width: 100% !important;
  height: 100% !important;
}

/* ========================================
   SEARCH OVERLAY
======================================== */

.yard-overlay-search {
  position: absolute;

  z-index: 10;

  top: 20px;
  left: 50%;

  width:
    min(
      430px,
      calc(
        100% - 400px
      )
    );

  transform:
    translateX(-50%);

  display: flex;

  gap: 10px;

  padding:
    10px;

  border:
    1px solid
    rgba(
      71,
      85,
      105,
      0.7
    );

  border-radius:
    10px;

  background:
    rgba(
      7,
      15,
      28,
      0.88
    );

  backdrop-filter:
    blur(12px);

  box-shadow:
    0
    15px
    40px
    rgba(
      0,
      0,
      0,
      0.25
    );
}

.yard-overlay-search-icon {
  width:
    34px;

  height:
    34px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    #334155;

  border-radius:
    7px;

  color:
    #38bdf8;

  font-size:
    18px;
}

.yard-overlay-search-content {
  min-width: 0;

  flex: 1;
}

.yard-overlay-search-content label {
  display: block;

  margin-bottom:
    5px;

  color:
    #cbd5e1;

  font-size:
    8px;

  font-weight:
    700;
}

.yard-overlay-search-content > div {
  display: flex;

  gap: 6px;
}

.yard-overlay-search input {
  flex: 1;

  min-width: 0;

  height:
    32px;

  padding:
    0
    9px;

  border:
    1px solid #334155;

  border-radius:
    6px;

  outline: none;

  background:
    rgba(
      2,
      6,
      23,
      0.85
    );

  color:
    #f8fafc;

  font-size:
    9px;
}

.yard-overlay-search input:focus {
  border-color:
    #0284c7;
}

.yard-overlay-search button {
  height:
    32px;

  padding:
    0
    12px;

  border:
    0;

  border-radius:
    6px;

  background:
    #0284c7;

  color:
    white;

  font-size:
    8px;

  font-weight:
    700;

  cursor:
    pointer;
}

.yard-overlay-search-error {
  display: block;

  margin-top:
    5px;

  color:
    #f87171;

  font-size:
    7px;
}

/* ========================================
   BAYS OVERLAY
======================================== */

.yard-overlay-bays {
  position: absolute;

  z-index: 10;

  top: 20px;
  left: 20px;

  width:
    230px;

  max-height:
    calc(
      100% - 130px
    );

  display: flex;

  flex-direction: column;

  overflow: hidden;

  border:
    1px solid
    rgba(
      71,
      85,
      105,
      0.65
    );

  border-radius:
    10px;

  background:
    rgba(
      7,
      15,
      28,
      0.9
    );

  backdrop-filter:
    blur(12px);

  box-shadow:
    0
    15px
    40px
    rgba(
      0,
      0,
      0,
      0.25
    );
}

.yard-overlay-title {
  padding:
    12px;

  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 8px;

  border-bottom:
    1px solid #1e293b;
}

.yard-overlay-title h2 {
  margin: 0;

  color:
    #f8fafc;

  font-size:
    12px;
}

.yard-overlay-title p {
  margin:
    3px
    0
    0;

  color:
    #64748b;

  font-size:
    7px;

  line-height:
    1.4;
}

.yard-overlay-title > span {
  min-width:
    22px;

  height:
    22px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius:
    999px;

  background:
    #1e293b;

  color:
    #94a3b8;

  font-size:
    8px;
}

.yard-overlay-bay-list {
  overflow-y: auto;

  padding:
    6px;
}

.yard-overlay-bay {
  width: 100%;

  display: grid;

  grid-template-columns:
    30px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap:
    8px;

  padding:
    8px;

  border:
    1px solid
    transparent;

  border-radius:
    7px;

  background:
    transparent;

  text-align:
    left;

  cursor:
    pointer;
}

.yard-overlay-bay:hover {
  border-color:
    #334155;

  background:
    rgba(
      30,
      41,
      59,
      0.55
    );
}

.yard-overlay-bay.active {
  border-color:
    rgba(
      14,
      165,
      233,
      0.45
    );

  background:
    rgba(
      14,
      165,
      233,
      0.09
    );
}

.yard-overlay-bay-number {
  width:
    30px;

  height:
    30px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(
      14,
      165,
      233,
      0.35
    );

  border-radius:
    6px;

  color:
    #38bdf8;

  font-size:
    8px;

  font-weight:
    800;
}

.yard-overlay-bay-info {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap:
    2px;
}

.yard-overlay-bay-info strong {
  overflow: hidden;

  color:
    #f8fafc;

  font-size:
    8px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.yard-overlay-bay-info small {
  overflow: hidden;

  color:
    #64748b;

  font-size:
    6px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.yard-overlay-bay-count {
  min-width:
    22px;

  padding:
    3px
    5px;

  border-radius:
    999px;

  background:
    #1e293b;

  color:
    #94a3b8;

  font-size:
    6px;

  text-align:
    center;
}

.yard-overlay-bay-footer {
  padding:
    8px
    11px;

  border-top:
    1px solid #1e293b;

  color:
    #475569;

  font-size:
    6px;
}

/* ========================================
   SCENE HELP
======================================== */

.yard-scene-help-overlay {
  position: absolute;

  z-index: 10;

  bottom: 18px;
  left: 18px;

  width:
    190px;

  overflow: hidden;

  border:
    1px solid
    rgba(
      71,
      85,
      105,
      0.55
    );

  border-radius:
    8px;

  background:
    rgba(
      7,
      15,
      28,
      0.84
    );

  backdrop-filter:
    blur(10px);
}

.yard-scene-help-overlay > div {
  min-height:
    31px;

  display: grid;

  grid-template-columns:
    22px
    55px
    1fr;

  align-items: center;

  padding:
    0
    8px;

  border-bottom:
    1px solid
    rgba(
      30,
      41,
      59,
      0.7
    );
}

.yard-scene-help-overlay > div:last-child {
  border-bottom: 0;
}

.yard-scene-help-overlay span {
  color:
    #94a3b8;

  font-size:
    9px;
}

.yard-scene-help-overlay strong {
  color:
    #cbd5e1;

  font-size:
    7px;
}

.yard-scene-help-overlay small {
  color:
    #64748b;

  font-size:
    6px;
}

/* ========================================
   SIDEBAR
======================================== */

.yard-main-sidebar {
  min-height: 0;

  padding:
    14px;

  display: flex;

  flex-direction: column;

  gap:
    12px;

  overflow-y:
    auto;

  background:
    #07101f;
}

.yard-side-card {
  overflow: hidden;

  border:
    1px solid #1e293b;

  border-radius:
    9px;

  background:
    #0f172a;
}

.yard-side-card-header {
  padding:
    11px
    12px;

  border-bottom:
    1px solid #1e293b;
}

.yard-side-card-header span {
  color:
    #64748b;

  font-size:
    6px;

  text-transform:
    uppercase;
}

.yard-side-card-header h2 {
  margin:
    2px
    0
    0;

  color:
    #f8fafc;

  font-size:
    12px;
}

/* ========================================
   SIDEBAR EMPTY
======================================== */

.yard-side-empty {
  min-height:
    175px;

  padding:
    20px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align:
    center;
}

.yard-side-empty > div {
  width:
    40px;

  height:
    40px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom:
    10px;

  border:
    1px solid #1e293b;

  border-radius:
    8px;

  color:
    #475569;

  font-size:
    17px;
}

.yard-side-empty strong {
  color:
    #e2e8f0;

  font-size:
    8px;
}

.yard-side-empty p {
  max-width:
    180px;

  margin:
    5px
    0
    0;

  color:
    #64748b;

  font-size:
    7px;

  line-height:
    1.5;
}

/* ========================================
   GENERAL ROW
======================================== */

.yard-general-row {
  min-height:
    38px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap:
    10px;

  padding:
    0
    12px;

  border-bottom:
    1px solid #1e293b;
}

.yard-general-row span {
  color:
    #94a3b8;

  font-size:
    7px;
}

.yard-general-row strong {
  color:
    #f8fafc;

  font-size:
    8px;
}

/* ========================================
   OCCUPANCY
======================================== */

.yard-occupancy {
  padding:
    11px
    12px;
}

.yard-occupancy > div:first-child {
  display: flex;

  align-items: center;
  justify-content: space-between;

  margin-bottom:
    7px;
}

.yard-occupancy span {
  color:
    #94a3b8;

  font-size:
    7px;
}

.yard-occupancy strong {
  color:
    #f8fafc;

  font-size:
    8px;
}

.yard-occupancy-track {
  height:
    4px;

  overflow: hidden;

  border-radius:
    999px;

  background:
    #1e293b;
}

.yard-occupancy-track > div {
  height: 100%;

  border-radius:
    inherit;

  background:
    #0ea5e9;
}

/* ========================================
   SELECTED CONTAINER
======================================== */

.yard-selected-content {
  padding:
    12px;
}

.yard-selected-heading {
  display: flex;

  align-items: center;

  gap:
    9px;

  padding-bottom:
    12px;
}

.yard-selected-heading > span {
  width:
    34px;

  height:
    34px;

  flex-shrink: 0;

  border:
    1px solid #475569;

  border-radius:
    7px;
}

.yard-selected-heading h3 {
  margin: 0;

  color:
    #f8fafc;

  font-size:
    12px;
}

.yard-selected-heading small {
  color:
    #38bdf8;

  font-size:
    7px;
}

.yard-selected-section {
  padding:
    11px
    0;

  border-top:
    1px solid #1e293b;
}

.yard-selected-section-title {
  display: block;

  margin-bottom:
    8px;

  color:
    #64748b;

  font-size:
    6px;

  text-transform:
    uppercase;
}

.yard-selected-location-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      1fr
    );

  gap:
    6px;
}

.yard-selected-location {
  padding:
    7px;

  display: flex;

  flex-direction: column;

  gap:
    2px;

  border:
    1px solid #1e293b;

  border-radius:
    5px;

  background:
    #020617;
}

.yard-selected-location span {
  color:
    #64748b;

  font-size:
    6px;

  text-transform:
    uppercase;
}

.yard-selected-location strong {
  color:
    #f8fafc;

  font-size:
    8px;
}

/* ========================================
   TIP
======================================== */

.yard-side-tip {
  display: flex;

  gap:
    8px;

  padding:
    10px;

  border:
    1px solid
    rgba(
      14,
      165,
      233,
      0.2
    );

  border-radius:
    8px;

  background:
    rgba(
      14,
      165,
      233,
      0.04
    );
}

.yard-side-tip > span {
  color:
    #38bdf8;

  font-size:
    12px;
}

.yard-side-tip strong {
  color:
    #cbd5e1;

  font-size:
    7px;
}

.yard-side-tip p {
  margin:
    3px
    0
    0;

  color:
    #64748b;

  font-size:
    6px;

  line-height:
    1.5;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (
  max-width: 1000px
) {
  .yard-main-workspace {
    grid-template-columns:
      1fr;
  }

  .yard-main-sidebar {
    display: none;
  }

  .yard-overlay-search {
    width:
      min(
        400px,
        calc(
          100% - 290px
        )
      );
  }
}

@media (
  max-width: 750px
) {
  .yard-view-header {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .yard-view-header-right {
    width: 100%;
  }

  .yard-header-stats {
    flex: 1;
  }

  .yard-overlay-bays {
    width:
      200px;
  }

  .yard-overlay-search {
    top:
      auto;

    right:
      14px;

    bottom:
      14px;

    left:
      auto;

    width:
      calc(
        100% - 230px
      );

    transform:
      none;
  }

  .yard-scene-help-overlay {
    display: none;
  }
}

/* ========================================
   YARD PAGE
======================================== */

.yard-page {
  width: 100%;
  height: 100%;

  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  background: #020617;
}

/* ========================================
   HEADER
======================================== */

.yard-page-header {
  min-height: 86px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 14px 24px;

  border-bottom:
    1px solid #1e293b;

  background:
    #07101f;
}

.yard-page-header-left,
.yard-page-header-right {
  display: flex;

  align-items: center;

  gap: 18px;
}

.yard-page-header-left {
  min-width: 0;
}

.yard-header-divider {
  width: 1px;
  height: 48px;

  flex-shrink: 0;

  background:
    #1e293b;
}

.yard-header-button {
  min-height: 38px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 0 14px;

  border:
    1px solid #334155;

  border-radius: 7px;

  background:
    #0f172a;

  color:
    #cbd5e1;

  font-family: inherit;

  font-size: 9px;
  font-weight: 600;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.yard-header-button:hover {
  border-color:
    #475569;

  background:
    #172033;

  color:
    #f8fafc;
}

.yard-header-button span {
  color:
    #94a3b8;

  font-size: 13px;
}

.yard-page-title {
  min-width: 0;
}

.yard-page-title h1 {
  margin: 0;

  overflow: hidden;

  color:
    #f8fafc;

  font-size: 21px;
  font-weight: 700;

  line-height: 1.15;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.yard-page-title p {
  margin: 5px 0 0;

  color:
    #64748b;

  font-size: 9px;
}

/* ========================================
   HEADER STATS
======================================== */

.yard-header-stats {
  display: flex;

  overflow: hidden;

  border:
    1px solid #1e293b;

  border-radius: 8px;

  background:
    #0f172a;
}

.yard-header-stats > div {
  min-width: 96px;

  padding: 10px 14px;

  display: flex;

  flex-direction: column;

  gap: 2px;
}

.yard-header-stats > div + div {
  border-left:
    1px solid #1e293b;
}

.yard-header-stats span {
  color:
    #64748b;

  font-size: 7px;

  text-transform:
    uppercase;
}

.yard-header-stats strong {
  color:
    #f8fafc;

  font-size: 18px;
}

/* ========================================
   WORKSPACE
======================================== */

.yard-workspace {
  flex: 1;

  min-height: 0;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    278px;

  overflow: hidden;

  background:
    #020617;
}

.yard-workspace:fullscreen {
  width: 100vw;
  height: 100vh;

  background:
    #020617;
}

/* ========================================
   3D SCENE
======================================== */

.yard-scene-area {
  position: relative;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  border-right:
    1px solid #1e293b;

  background:
    #050b16;
}

.yard-scene-area canvas {
  width: 100% !important;
  height: 100% !important;

  display: block;
}

/* ========================================
   FLOATING BAYS
======================================== */

.yard-floating-bays {
  position: absolute;

  z-index: 20;

  top: 22px;
  left: 24px;

  width: 220px;

  max-height:
    calc(
      100% - 130px
    );

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border:
    1px solid
    rgba(
      71,
      85,
      105,
      0.7
    );

  border-radius: 10px;

  background:
    rgba(
      7,
      15,
      28,
      0.92
    );

  backdrop-filter:
    blur(14px);

  box-shadow:
    0
    16px
    40px
    rgba(
      0,
      0,
      0,
      0.25
    );
}

.yard-floating-bays-header {
  padding: 13px;

  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 10px;

  border-bottom:
    1px solid
    #1e293b;
}

.yard-floating-bays-header h2 {
  margin: 0;

  color:
    #f8fafc;

  font-size: 12px;
}

.yard-floating-bays-header p {
  margin: 4px 0 0;

  color:
    #64748b;

  font-size: 7px;

  line-height: 1.45;
}

.yard-floating-bays-header > span {
  min-width: 22px;
  height: 22px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background:
    #1e293b;

  color:
    #94a3b8;

  font-size: 7px;
}

/* ========================================
   BAY LIST
======================================== */

.yard-bay-list {
  overflow-y: auto;

  padding: 8px;
}

.yard-bay-item {
  width: 100%;

  padding: 9px;

  display: flex;
  flex-direction: column;

  gap: 9px;

  border:
    1px solid
    transparent;

  border-radius: 7px;

  background:
    transparent;

  color: inherit;

  text-align: left;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.yard-bay-item:hover {
  border-color:
    #334155;

  background:
    rgba(
      30,
      41,
      59,
      0.45
    );
}

.yard-bay-item.active {
  border-color:
    rgba(
      14,
      165,
      233,
      0.45
    );

  background:
    rgba(
      14,
      165,
      233,
      0.08
    );
}

.yard-bay-item-top {
  display: grid;

  grid-template-columns:
    32px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 8px;
}

.yard-bay-number {
  width: 32px;
  height: 32px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(
      14,
      165,
      233,
      0.4
    );

  border-radius: 6px;

  background:
    rgba(
      14,
      165,
      233,
      0.08
    );

  color:
    #38bdf8;

  font-size: 8px;
  font-weight: 800;
}

.yard-bay-name {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.yard-bay-name strong {
  overflow: hidden;

  color:
    #f8fafc;

  font-size: 8px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.yard-bay-name small {
  color:
    #64748b;

  font-size: 6px;
}

.yard-bay-count {
  padding: 3px 5px;

  border-radius: 999px;

  background:
    #1e293b;

  color:
    #94a3b8;

  font-size: 6px;

  white-space: nowrap;
}

.yard-bay-meta {
  display: flex;

  gap: 7px;

  color:
    #64748b;

  font-size: 6px;
}

.yard-bay-capacity {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;
}

.yard-bay-capacity span {
  color:
    #64748b;

  font-size: 6px;
}

.yard-bay-capacity strong {
  color:
    #94a3b8;

  font-size: 6px;
}

.yard-bay-action {
  min-height: 30px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 0 9px;

  border:
    1px solid
    #334155;

  border-radius: 5px;

  color:
    #cbd5e1;

  font-size: 7px;
}

.yard-bay-item:hover
.yard-bay-action {
  border-color:
    #0284c7;

  color:
    #38bdf8;
}

/* ========================================
   FLOATING SEARCH
======================================== */

.yard-floating-search {
  position: absolute;

  z-index: 20;

  top: 22px;
  left: 50%;

  width: 390px;

  transform:
    translateX(-50%);

  display: flex;

  gap: 10px;

  padding: 10px;

  border:
    1px solid
    rgba(
      71,
      85,
      105,
      0.7
    );

  border-radius: 10px;

  background:
    rgba(
      7,
      15,
      28,
      0.92
    );

  backdrop-filter:
    blur(14px);

  box-shadow:
    0
    16px
    40px
    rgba(
      0,
      0,
      0,
      0.25
    );
}

.yard-search-icon {
  width: 34px;
  height: 34px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    #334155;

  border-radius: 6px;

  color:
    #38bdf8;

  font-size: 16px;
}

.yard-search-body {
  flex: 1;

  min-width: 0;
}

.yard-search-input-row {
  display: flex;

  gap: 6px;
}

.yard-search-input-row input {
  flex: 1;

  min-width: 0;

  height: 32px;

  padding: 0 9px;

  border:
    1px solid #334155;

  border-radius: 6px;

  outline: none;

  background:
    rgba(
      2,
      6,
      23,
      0.85
    );

  color:
    #f8fafc;

  font-family: inherit;

  font-size: 8px;
}

.yard-search-input-row input::placeholder {
  color:
    #64748b;
}

.yard-search-input-row input:focus {
  border-color:
    #0284c7;
}

.yard-search-input-row button {
  height: 32px;

  padding: 0 11px;

  border: 0;

  border-radius: 6px;

  background:
    #0284c7;

  color:
    white;

  font-size: 7px;
  font-weight: 700;

  cursor: pointer;
}

.yard-search-input-row button:hover {
  background:
    #0369a1;
}

.yard-search-example {
  display: block;

  margin-top: 5px;

  color:
    #64748b;

  font-size: 6px;
}

.yard-search-error {
  display: block;

  margin-top: 4px;

  color:
    #f87171;

  font-size: 6px;
}

/* ========================================
   CONTROL HELP
======================================== */

.yard-controls-help {
  position: absolute;

  z-index: 20;

  bottom: 18px;
  left: 18px;

  width: 190px;

  overflow: hidden;

  border:
    1px solid
    rgba(
      71,
      85,
      105,
      0.6
    );

  border-radius: 8px;

  background:
    rgba(
      7,
      15,
      28,
      0.88
    );

  backdrop-filter:
    blur(12px);
}

.yard-controls-help > div {
  min-height: 30px;

  display: grid;

  grid-template-columns:
    20px
    55px
    1fr;

  align-items: center;

  padding: 0 8px;

  border-bottom:
    1px solid
    rgba(
      30,
      41,
      59,
      0.75
    );
}

.yard-controls-help > div:last-child {
  border-bottom: 0;
}

.yard-controls-help span {
  color:
    #94a3b8;

  font-size: 8px;
}

.yard-controls-help strong {
  color:
    #cbd5e1;

  font-size: 7px;
}

.yard-controls-help small {
  color:
    #64748b;

  font-size: 6px;
}

/* ========================================
   COMPASS
======================================== */

.yard-compass {
  position: absolute;

  z-index: 20;

  right: 20px;
  bottom: 20px;

  width: 64px;
  height: 64px;

  display: flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.5
    );

  border-radius: 50%;

  background:
    rgba(
      7,
      15,
      28,
      0.7
    );

  backdrop-filter:
    blur(10px);
}

.yard-compass span {
  position: absolute;

  top: 5px;

  color:
    #cbd5e1;

  font-size: 7px;
  font-weight: 700;
}

.yard-compass div {
  color:
    #38bdf8;

  font-size: 23px;

  transform:
    translateY(
      5px
    );
}

/* ========================================
   RIGHT SIDEBAR
======================================== */

.yard-info-sidebar {
  min-height: 0;

  padding: 14px;

  display: flex;
  flex-direction: column;

  gap: 11px;

  overflow-y: auto;

  background:
    #07101f;
}

.yard-info-card {
  overflow: hidden;

  border:
    1px solid #1e293b;

  border-radius: 8px;

  background:
    #0f172a;
}

.yard-info-card > header {
  padding: 11px 12px;

  border-bottom:
    1px solid #1e293b;
}

.yard-info-card > header h2 {
  margin: 0;

  color:
    #f8fafc;

  font-size: 10px;
}

.yard-info-card > header p {
  margin: 4px 0 0;

  color:
    #64748b;

  font-size: 7px;
}

/* ========================================
   EMPTY SELECTED
======================================== */

.yard-selected-empty {
  min-height: 170px;

  padding: 18px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}

.yard-selected-empty-icon {
  width: 42px;
  height: 42px;

  display: flex;

  align-items: center;
  justify-content: center;

  margin-bottom: 12px;

  border:
    1px solid #1e293b;

  border-radius: 7px;

  background:
    #111c30;

  color:
    #475569;

  font-size: 17px;
}

.yard-selected-empty strong {
  color:
    #e2e8f0;

  font-size: 8px;
}

.yard-selected-empty p {
  max-width: 180px;

  margin: 6px 0 0;

  color:
    #64748b;

  font-size: 7px;

  line-height: 1.5;
}

/* ========================================
   GENERAL ROW
======================================== */

.yard-general-row {
  min-height: 38px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;

  padding: 0 12px;

  border-bottom:
    1px solid #1e293b;
}

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

.yard-general-row span {
  color:
    #94a3b8;

  font-size: 7px;
}

.yard-general-row strong {
  color:
    #f8fafc;

  font-size: 8px;

  text-align: right;
}

/* ========================================
   OCCUPANCY
======================================== */

.yard-occupancy {
  padding: 11px 12px;
}

.yard-occupancy > div:first-child {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 8px;

  margin-bottom: 7px;
}

.yard-occupancy span {
  color:
    #94a3b8;

  font-size: 7px;
}

.yard-occupancy strong {
  color:
    #f8fafc;

  font-size: 8px;
}

.yard-occupancy-track {
  height: 4px;

  overflow: hidden;

  border-radius: 999px;

  background:
    #1e293b;
}

.yard-occupancy-value {
  height: 100%;

  border-radius: inherit;

  background:
    #0ea5e9;
}

/* ========================================
   TIP
======================================== */

.yard-info-tip {
  display: flex;

  gap: 8px;

  padding: 10px;

  border:
    1px solid
    rgba(
      14,
      165,
      233,
      0.2
    );

  border-radius: 8px;

  background:
    rgba(
      14,
      165,
      233,
      0.045
    );
}

.yard-info-tip > span {
  color:
    #38bdf8;

  font-size: 12px;
}

.yard-info-tip strong {
  color:
    #cbd5e1;

  font-size: 7px;
}

.yard-info-tip p {
  margin: 3px 0 0;

  color:
    #64748b;

  font-size: 6px;

  line-height: 1.5;
}

/* ========================================
   SELECTED CONTAINER
======================================== */

.yard-selected-container {
  padding: 12px;
}

.yard-selected-title {
  display: flex;

  align-items: center;

  gap: 9px;

  padding-bottom: 12px;
}

.yard-selected-color {
  width: 34px;
  height: 34px;

  flex-shrink: 0;

  border:
    1px solid #475569;

  border-radius: 6px;
}

.yard-selected-title h3 {
  margin: 0;

  color:
    #f8fafc;

  font-size: 11px;
}

.yard-selected-title div span {
  color:
    #38bdf8;

  font-size: 7px;
}

.yard-selected-details {
  border-top:
    1px solid #1e293b;
}

.yard-location {
  padding-top: 12px;

  border-top:
    1px solid #1e293b;
}

.yard-location-title {
  display: block;

  margin-bottom: 8px;

  color:
    #64748b;

  font-size: 6px;

  text-transform:
    uppercase;
}

.yard-location-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 6px;
}

.yard-location-item {
  padding: 7px;

  display: flex;
  flex-direction: column;

  gap: 3px;

  border:
    1px solid #1e293b;

  border-radius: 5px;

  background:
    #020617;
}

.yard-location-item span {
  color:
    #64748b;

  font-size: 6px;

  text-transform:
    uppercase;
}

.yard-location-item strong {
  overflow: hidden;

  color:
    #f8fafc;

  font-size: 8px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

/* ========================================
   FULLSCREEN
======================================== */

.yard-workspace:fullscreen
.yard-scene-area {
  height:
    100vh;
}

.yard-workspace:fullscreen
.yard-info-sidebar {
  height:
    100vh;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (
  max-width: 1100px
) {
  .yard-workspace {
    grid-template-columns:
      minmax(
        0,
        1fr
      )
      250px;
  }

  .yard-floating-search {
    width: 340px;
  }
}

@media (
  max-width: 900px
) {
  .yard-page-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .yard-page-header-right {
    width: 100%;
  }

  .yard-header-stats {
    margin-left: auto;
  }

  .yard-workspace {
    grid-template-columns:
      1fr;
  }

  .yard-info-sidebar {
    display: none;
  }
}

@media (
  max-width: 700px
) {
  .yard-floating-bays {
    width: 190px;
  }

  .yard-floating-search {
    right: 14px;
    left: auto;

    width:
      calc(
        100% - 230px
      );

    transform: none;
  }

  .yard-controls-help {
    display: none;
  }
}

/* ========================================
   YARDS PAGE
======================================== */

.yards-page {
  width: 100%;
  min-height: 100%;

  padding: 28px 32px;

  background: #020617;
}

/* ========================================
   HEADER
======================================== */

.yards-page-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 24px;
}

.yards-page-eyebrow {
  display: block;

  margin-bottom: 5px;

  color: #38bdf8;

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.8px;

  text-transform: uppercase;
}

.yards-page-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 26px;
  font-weight: 700;

  line-height: 1.15;
}

.yards-page-header p {
  margin: 6px 0 0;

  color: #64748b;

  font-size: 10px;
}

/* ========================================
   COUNT
======================================== */

.yards-page-count {
  min-width: 150px;

  padding: 12px 16px;

  display: flex;
  flex-direction: column;

  gap: 2px;

  border: 1px solid #1e293b;

  border-radius: 9px;

  background: #0f172a;
}

.yards-page-count strong {
  color: #f8fafc;

  font-size: 20px;
}

.yards-page-count span {
  color: #64748b;

  font-size: 8px;
}

/* ========================================
   GRID
======================================== */

.yards-grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fill,
      minmax(
        280px,
        1fr
      )
    );

  gap: 16px;
}

/* ========================================
   YARD CARD
======================================== */

.yard-management-card {
  min-width: 0;

  overflow: hidden;

  border: 1px solid #1e293b;

  border-radius: 10px;

  background: #0f172a;

  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.yard-management-card:hover {
  transform:
    translateY(-2px);

  border-color: #334155;

  box-shadow:
    0
    18px
    45px
    rgba(
      0,
      0,
      0,
      0.18
    );
}

/* ========================================
   COVER
======================================== */

.yard-management-cover {
  position: relative;

  height: 105px;

  overflow: hidden;

  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  padding: 14px;

  border-bottom: 1px solid #1e293b;

  background:
    linear-gradient(
      135deg,
      #0b1728,
      #101c2f
    );
}

.yard-management-cover-grid {
  position: absolute;

  inset: 0;

  opacity: 0.22;

  background-image:
    linear-gradient(
      rgba(
        56,
        189,
        248,
        0.2
      )
      1px,
      transparent
      1px
    ),
    linear-gradient(
      90deg,
      rgba(
        56,
        189,
        248,
        0.2
      )
      1px,
      transparent
      1px
    );

  background-size:
    22px
    22px;

  transform:
    perspective(300px)
    rotateX(55deg)
    scale(1.4);
}

.yard-management-code {
  position: relative;

  z-index: 1;

  padding: 5px 8px;

  border: 1px solid
    rgba(
      56,
      189,
      248,
      0.25
    );

  border-radius: 5px;

  background:
    rgba(
      14,
      165,
      233,
      0.08
    );

  color: #38bdf8;

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.7px;

  text-transform: uppercase;
}

.yard-management-status {
  position: relative;

  z-index: 1;

  display: flex;

  align-items: center;

  gap: 5px;

  color: #94a3b8;

  font-size: 7px;
}

.yard-management-status span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0
    0
    0
    4px
    rgba(
      34,
      197,
      94,
      0.08
    );
}

/* ========================================
   BODY
======================================== */

.yard-management-body {
  padding: 16px;

  display: flex;
  flex-direction: column;

  gap: 16px;
}

.yard-management-title h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 15px;
  font-weight: 700;
}

.yard-management-title p {
  min-height: 30px;

  margin: 5px 0 0;

  color: #64748b;

  font-size: 8px;

  line-height: 1.55;
}

/* ========================================
   DATA
======================================== */

.yard-management-data {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 7px;
}

.yard-management-data > div {
  min-width: 0;

  padding: 9px;

  display: flex;
  flex-direction: column;

  gap: 3px;

  border: 1px solid #1e293b;

  border-radius: 6px;

  background: #020617;
}

.yard-management-data span {
  color: #64748b;

  font-size: 7px;

  text-transform: uppercase;
}

.yard-management-data strong {
  overflow: hidden;

  color: #e2e8f0;

  font-size: 10px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

/* ========================================
   ACTIONS
======================================== */

.yard-management-actions {
  display: grid;

  grid-template-columns:
    1fr
    auto;

  gap: 8px;
}

.yard-view-button,
.yard-config-button {
  min-height: 36px;

  padding: 0 13px;

  border-radius: 6px;

  font-family: inherit;

  font-size: 8px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

/* VER PATIO */

.yard-view-button {
  border: 1px solid #0284c7;

  background: #0284c7;

  color: white;
}

.yard-view-button:hover {
  background: #0369a1;

  border-color: #0369a1;
}

/* CONFIGURAR */

.yard-config-button {
  border: 1px solid #334155;

  background: transparent;

  color: #94a3b8;
}

.yard-config-button:hover {
  border-color: #475569;

  background: #1e293b;

  color: #f8fafc;
}

/* ========================================
   EMPTY
======================================== */

.yards-page
.operation-card {
  padding: 24px;

  border: 1px solid #1e293b;

  border-radius: 9px;

  background: #0f172a;
}

.yards-page
.operation-card h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 14px;
}

.yards-page
.operation-card p {
  margin: 6px 0 0;

  color: #64748b;

  font-size: 9px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (
  max-width: 850px
) {
  .yards-page {
    padding: 22px;
  }

  .yards-page-header {
    flex-direction: column;
  }

  .yards-page-count {
    width: 100%;
  }
}

@media (
  max-width: 550px
) {
  .yards-page {
    padding: 16px;
  }

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

  .yard-management-data {
    grid-template-columns: 1fr;
  }

  .yard-management-actions {
    grid-template-columns: 1fr;
  }
}

.yard-crosshair {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 22px;
  height: 22px;

  transform: translate(
    -50%,
    -50%
  );

  pointer-events: none;

  z-index: 40;
}

.yard-crosshair-horizontal,
.yard-crosshair-vertical {
  position: absolute;

  background: rgba(
    255,
    255,
    255,
    0.9
  );

  border-radius: 999px;

  box-shadow:
    0 0 4px
    rgba(
      0,
      0,
      0,
      0.9
    );
}

.yard-crosshair-horizontal {
  width: 18px;
  height: 2px;

  top: 10px;
  left: 2px;
}

.yard-crosshair-vertical {
  width: 2px;
  height: 18px;

  top: 2px;
  left: 10px;
}

/* ==========================================
   YARDS TOOLBAR
========================================== */

.yards-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 22px;
}

.yards-search-wrapper {
  position: relative;

  display: flex;
  align-items: center;

  width: min(
    520px,
    100%
  );
}

.yards-search-icon {
  position: absolute;
  left: 15px;

  color: #38bdf8;

  font-size: 18px;

  pointer-events: none;
}

.yards-search-wrapper input {
  width: 100%;

  height: 46px;

  padding:
    0
    46px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.18
    );

  border-radius: 12px;

  outline: none;

  background:
    rgba(
      15,
      23,
      42,
      0.74
    );

  color: #f8fafc;

  transition:
    border-color
    0.18s ease,
    box-shadow
    0.18s ease;
}

.yards-search-wrapper input:focus {
  border-color:
    rgba(
      56,
      189,
      248,
      0.7
    );

  box-shadow:
    0
    0
    0
    3px
    rgba(
      56,
      189,
      248,
      0.08
    );
}

.yards-search-wrapper input::placeholder {
  color: #64748b;
}

.yards-search-clear {
  position: absolute;
  right: 11px;

  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border: none;
  border-radius: 7px;

  cursor: pointer;

  background:
    rgba(
      148,
      163,
      184,
      0.08
    );

  color: #94a3b8;
}

.yards-search-clear:hover {
  color: #f8fafc;

  background:
    rgba(
      148,
      163,
      184,
      0.14
    );
}

.yards-toolbar-result {
  display: flex;
  align-items: center;
  gap: 5px;

  color: #64748b;

  font-size: 12px;

  white-space: nowrap;
}

.yards-toolbar-result strong {
  color: #38bdf8;

  font-size: 14px;
}

/* ==========================================
   CAROUSEL
========================================== */

.yards-carousel-section {
  min-width: 0;
}

.yards-carousel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 14px;
}

.yards-carousel-heading > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.yards-carousel-heading span {
  color: #38bdf8;

  font-size: 10px;
  font-weight: 700;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.yards-carousel-heading h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 18px;
}

.yards-carousel-controls {
  display: flex;
  gap: 7px;
}

.yards-carousel-controls button {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.18
    );

  border-radius: 10px;

  cursor: pointer;

  background:
    rgba(
      15,
      23,
      42,
      0.78
    );

  color: #cbd5e1;

  font-size: 16px;

  transition:
    border-color
    0.18s ease,
    background
    0.18s ease,
    transform
    0.18s ease;
}

.yards-carousel-controls button:hover {
  border-color:
    rgba(
      56,
      189,
      248,
      0.5
    );

  background:
    rgba(
      14,
      116,
      144,
      0.16
    );

  transform:
    translateY(
      -1px
    );
}

.yards-carousel {
  display: flex;
  gap: 16px;

  overflow-x: auto;
  overflow-y: hidden;

  padding:
    4px
    3px
    18px;

  scroll-snap-type:
    x mandatory;

  overscroll-behavior-inline:
    contain;

  scrollbar-width:
    thin;
}

.yards-carousel-item {
  flex:
    0
    0
    clamp(
      290px,
      31vw,
      390px
    );

  scroll-snap-align:
    start;
}

.yards-carousel-item .yard-management-card {
  height: 100%;
}

/* ==========================================
   NO RESULTS
========================================== */

.yards-no-results {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.yards-no-results h2,
.yards-no-results p {
  margin: 0;
}

.yards-no-results button {
  margin-top: 6px;

  padding:
    9px
    14px;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.3
    );

  border-radius: 8px;

  cursor: pointer;

  background:
    rgba(
      56,
      189,
      248,
      0.08
    );

  color: #38bdf8;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (
  max-width: 800px
) {
  .yards-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .yards-search-wrapper {
    width: 100%;
  }

  .yards-toolbar-result {
    white-space: normal;
  }

  .yards-carousel-item {
    flex-basis:
      min(
        85vw,
        340px
      );
  }
}

/* =========================================
   HEADER ACTIONS
========================================= */

.yards-page-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* =========================================
   CREATE BUTTON
========================================= */

.yards-page-create-button {
  min-height: 42px;

  padding:
    0
    16px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.25
    );

  border-radius:
    9px;

  background:
    linear-gradient(
      135deg,
      #168fd1,
      #0ea5e9
    );

  color:
    #ffffff;

  font-size:
    13px;

  font-weight:
    700;

  cursor:
    pointer;

  box-shadow:
    0
    8px
    22px
    rgba(
      14,
      165,
      233,
      0.16
    );

  transition:
    transform
      0.16s
      ease,
    box-shadow
      0.16s
      ease,
    background
      0.16s
      ease;
}

.yards-page-create-button:hover {
  transform:
    translateY(
      -1px
    );

  background:
    linear-gradient(
      135deg,
      #1da1e6,
      #20b9f3
    );

  box-shadow:
    0
    10px
    26px
    rgba(
      14,
      165,
      233,
      0.22
    );
}

.yards-page-create-button:active {
  transform:
    translateY(
      0
    )
    scale(
      0.98
    );
}

.yards-page-create-button-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  font-size:
    18px;

  font-weight:
    400;

  line-height:
    1;
}


/* =========================================
   EMPTY STATE
========================================= */

.yards-empty-state {
  min-height: 280px;

  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}

.yards-empty-state-icon {
  width: 48px;
  height: 48px;

  margin-bottom: 14px;

  display: grid;

  place-items: center;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.2
    );

  border-radius:
    12px;

  background:
    rgba(
      14,
      165,
      233,
      0.08
    );

  color:
    #38bdf8;

  font-size:
    24px;
}

.yards-empty-state
.yards-page-create-button {
  margin-top: 18px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (
  max-width:
    700px
) {
  .yards-page-header {
    align-items:
      flex-start;
  }

  .yards-page-header-actions {
    width:
      100%;

    flex-direction:
      column;

    align-items:
      stretch;
  }

  .yards-page-count {
    width:
      100%;
  }

  .yards-page-create-button {
    width:
      100%;
  }
}.yard-monitor-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #050b16;
  color: #e5eefb;
}

.yard-monitor-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(5, 11, 22, 0.96);
  position: relative;
  z-index: 20;
}

.yard-monitor-header-main,
.yard-monitor-header-actions {
  display: flex;
  align-items: center;
}

.yard-monitor-header-main {
  gap: 12px;
  min-width: 0;
}

.yard-monitor-header-main h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #f8fafc;
}

.yard-monitor-header-main p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

.yard-monitor-header-actions {
  gap: 10px;
}

.yard-monitor-back,
.yard-monitor-fullscreen {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  border-radius: 9px;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.yard-monitor-back:hover,
.yard-monitor-fullscreen:hover {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(148, 163, 184, 0.34);
}

.yard-monitor-back:active,
.yard-monitor-fullscreen:active {
  transform: translateY(1px);
}

.yard-monitor-back {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.yard-monitor-fullscreen {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.yard-monitor-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  font-size: 12px;
  white-space: nowrap;
}

.yard-monitor-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.yard-monitor-workspace {
  flex: 1;
  min-height: 0;
  background: #050b16;
}

.yard-monitor-scene {
  position: relative;
  width: 100%;
  height: calc(100vh - 68px);
  min-height: 560px;
  overflow: hidden;
}

.yard-monitor-scene .yard-scene-wrapper {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.yard-monitor-scene .yard-scene-wrapper canvas {
  display: block;
}

.yard-monitor-search {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 15;
  width: min(390px, calc(100% - 32px));
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 11px;
  background: rgba(7, 15, 29, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.yard-monitor-search-icon {
  color: #94a3b8;
  font-size: 18px;
  text-align: center;
}

.yard-monitor-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
  font-size: 13px;
}

.yard-monitor-search input::placeholder {
  color: #64748b;
}

.yard-monitor-search > button {
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(30, 41, 59, 0.78);
  color: #e2e8f0;
  cursor: pointer;
}

.yard-monitor-search > button:disabled {
  opacity: 0.5;
  cursor: default;
}

.yard-monitor-search-error {
  grid-column: 2 / 4;
  padding: 1px 0 4px;
  color: #fca5a5;
  font-size: 11px;
}

.yard-monitor-selected {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 15;
  width: min(330px, calc(100% - 32px));
  max-height: calc(100% - 105px);
  overflow: auto;
  padding: 17px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 13px;
  background: rgba(7, 15, 29, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

.yard-monitor-selected-close {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.72);
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.yard-monitor-selected .yard-selected-container {
  padding: 0;
}

.yard-monitor-selected .yard-selected-title {
  padding-right: 30px;
}

.yard-monitor-selected .yard-selected-title h3 {
  margin: 0;
}

.yard-monitor-selected .yard-selected-details {
  margin-top: 15px;
}

.yard-monitor-selected .yard-general-row {
  min-height: 34px;
}

.yard-monitor-selected .yard-location {
  margin-top: 14px;
}

.yard-monitor-controls {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 12;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(7, 15, 29, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.yard-monitor-controls button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(30, 41, 59, 0.72);
  color: #e2e8f0;
  cursor: pointer;
}

.yard-monitor-controls button:hover {
  background: rgba(51, 65, 85, 0.88);
}

.yard-monitor-controls kbd {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 5px;
  background: rgba(2, 6, 23, 0.78);
  color: #f8fafc;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
}

.yard-monitor-current-bay {
  min-width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.yard-monitor-current-bay span,
.yard-monitor-current-bay small {
  color: #64748b;
  font-size: 10px;
}

.yard-monitor-current-bay strong {
  max-width: 150px;
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yard-monitor-control-divider {
  width: 1px;
  align-self: stretch;
  margin: 2px 3px;
  background: rgba(148, 163, 184, 0.16);
}

.yard-monitor-control-hint {
  display: flex;
  flex-direction: column;
  padding: 0 5px;
  color: #64748b;
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
}

.yard-monitor-control-hint strong {
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 600;
}

.yard-monitor-workspace:fullscreen,
.yard-monitor-workspace:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #050b16;
}

.yard-monitor-workspace:fullscreen .yard-monitor-scene,
.yard-monitor-workspace:-webkit-full-screen .yard-monitor-scene {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .yard-monitor-control-hint,
  .yard-monitor-control-divider {
    display: none;
  }

  .yard-monitor-selected {
    top: 68px;
  }
}

@media (max-width: 640px) {
  .yard-monitor-header {
    min-height: 60px;
    padding: 8px 10px;
  }

  .yard-monitor-header-main p,
  .yard-monitor-live,
  .yard-monitor-fullscreen span {
    display: none;
  }

  .yard-monitor-scene {
    height: calc(100vh - 60px);
    min-height: 480px;
  }

  .yard-monitor-search {
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
  }

  .yard-monitor-selected {
    top: 62px;
    right: 10px;
    width: calc(100% - 20px);
    max-height: calc(100% - 130px);
  }

  .yard-monitor-controls {
    bottom: 10px;
    gap: 4px;
    width: calc(100% - 20px);
    justify-content: center;
  }

  .yard-monitor-controls button {
    padding: 0 7px;
  }

  .yard-monitor-current-bay {
    min-width: 94px;
  }
}


/* ==========================================================
   MONITOR CENTER POINTER
   ========================================================== */

.yard-monitor-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.88;
}

.yard-monitor-crosshair-horizontal,
.yard-monitor-crosshair-vertical {
  position: absolute;
  display: block;
  background: rgba(226, 232, 240, 0.86);
  box-shadow: 0 0 5px rgba(15, 23, 42, 0.8);
}

.yard-monitor-crosshair-horizontal {
  top: 50%;
  left: 0;
  width: 11px;
  height: 1px;
  transform: translateY(-50%);
}

.yard-monitor-crosshair-horizontal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 23px;
  width: 11px;
  height: 1px;
  background: inherit;
  box-shadow: inherit;
}

.yard-monitor-crosshair-vertical {
  top: 0;
  left: 50%;
  width: 1px;
  height: 11px;
  transform: translateX(-50%);
}

.yard-monitor-crosshair-vertical::after {
  content: '';
  position: absolute;
  top: 23px;
  left: 0;
  width: 1px;
  height: 11px;
  background: inherit;
  box-shadow: inherit;
}

.yard-monitor-crosshair-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border: 1px solid rgba(248, 250, 252, 0.96);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 2px rgba(15, 23, 42, 0.3),
    0 0 8px rgba(226, 232, 240, 0.18);
}

/* ==========================================================
   3D BAY FLOATING LABEL
   ========================================================== */

.yard-monitor-bay-label {
  position: relative;
  min-width: 150px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'eyebrow number'
    'name name';
  column-gap: 12px;
  row-gap: 4px;
  padding: 12px 14px 13px;
  border: 2px solid rgba(56, 189, 248, 0.82);
  border-radius: 12px;
  background:
    linear-gradient(
      135deg,
      rgba(7, 18, 35, 0.96),
      rgba(10, 31, 54, 0.94)
    );
  color: #f8fafc;
  backdrop-filter: blur(9px);
  box-shadow:
    0 0 0 1px rgba(125, 211, 252, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(56, 189, 248, 0.14);
  transform-origin: center;
  white-space: nowrap;
  user-select: none;
}

.yard-monitor-bay-label::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 2px;
  height: 10px;
  background: rgba(56, 189, 248, 0.8);
  transform: translateX(-50%);
  box-shadow: 0 0 7px rgba(56, 189, 248, 0.5);
}

.yard-monitor-bay-label span {
  grid-area: eyebrow;
  align-self: center;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.yard-monitor-bay-label strong {
  grid-area: name;
  max-width: 220px;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.yard-monitor-bay-label small {
  grid-area: number;
  justify-self: end;
  align-self: center;
  padding: 3px 7px;
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .yard-monitor-crosshair {
    width: 30px;
    height: 30px;
  }

  .yard-monitor-bay-label {
    min-width: 118px;
    padding: 9px 10px 10px;
  }

  .yard-monitor-bay-label strong {
    max-width: 160px;
    font-size: 15px;
  }
}/* =========================================
   CREATE YARD PAGE
========================================= */

.yard-form-page {
  width: 95%;
  max-width: 1180px;

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  gap: 22px;
}


/* =========================================
   HEADER
========================================= */

.yard-form-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding-bottom: 4px;
}

.yard-form-header > div:first-child {
  min-width: 0;
}

.yard-form-eyebrow {
  display: inline-flex;

  align-items: center;

  min-height: 28px;

  padding:
    0
    10px;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.18
    );

  border-radius:
    999px;

  background:
    rgba(
      14,
      165,
      233,
      0.07
    );

  color:
    #38bdf8;

  font-size:
    10px;

  font-weight:
    800;

  letter-spacing:
    0.1em;

  text-transform:
    uppercase;
}

.yard-form-header h1 {
  margin:
    12px
    0
    6px;

  color:
    #f8fafc;

  font-size:
    30px;

  line-height:
    1.1;

  font-weight:
    800;

  letter-spacing:
    -0.025em;
}

.yard-form-header p {
  margin: 0;

  color:
    #71839e;

  font-size:
    12px;
}


/* =========================================
   BACK BUTTON
========================================= */

.yard-form-back-button {
  min-height: 38px;

  padding:
    0
    14px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  border:
    1px solid
    #2b3d59;

  border-radius:
    8px;

  background:
    #101d31;

  color:
    #94a3b8;

  font-size:
    12px;

  font-weight:
    600;

  cursor:
    pointer;

  transition:
    color
      0.16s
      ease,
    background
      0.16s
      ease,
    border-color
      0.16s
      ease,
    transform
      0.16s
      ease;
}

.yard-form-back-button:hover {
  color:
    #e2e8f0;

  background:
    #16243a;

  border-color:
    #3a4f6f;

  transform:
    translateY(-1px);
}

.yard-form-back-button:active {
  transform:
    translateY(0)
    scale(0.98);
}


/* =========================================
   FORM CARD
========================================= */

.yard-form-card {
  display: flex;

  flex-direction: column;

  gap: 0;

  overflow: hidden;

  border:
    1px solid
    #1d2b42;

  border-radius:
    14px;

  background:
    linear-gradient(
      180deg,
      #0e1a2d 0%,
      #0a1526 100%
    );

  box-shadow:
    0
    18px
    50px
    rgba(
      0,
      0,
      0,
      0.18
    );
}


/* =========================================
   FORM SECTION
========================================= */

.yard-form-section {
  padding:
    24px;

  border-bottom:
    1px solid
    #1d2b42;
}

.yard-form-section:last-of-type {
  border-bottom:
    0;
}

.yard-form-section-heading {
  margin-bottom:
    20px;
}

.yard-form-section-heading h2 {
  margin:
    0
    0
    6px;

  color:
    #f1f5f9;

  font-size:
    16px;

  font-weight:
    750;
}

.yard-form-section-heading p {
  margin: 0;

  color:
    #667994;

  font-size:
    11px;

  line-height:
    1.6;
}


/* =========================================
   GRID
========================================= */

.yard-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap:
    18px;
}

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

.yard-form-field-full {
  grid-column:
    1 / -1;
}


/* =========================================
   FIELDS
========================================= */

.yard-form-field {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 8px;
}

.yard-form-field label {
  color:
    #a7b5c8;

  font-size:
    11px;

  font-weight:
    650;
}

.yard-form-field input,
.yard-form-field textarea {
  width:
    100%;

  border:
    1px solid
    #263750;

  border-radius:
    8px;

  outline:
    none;

  background:
    #081426;

  color:
    #f8fafc;

  font-family:
    inherit;

  font-size:
    12px;

  transition:
    border-color
      0.16s
      ease,
    box-shadow
      0.16s
      ease,
    background
      0.16s
      ease;
}

.yard-form-field input {
  height:
    42px;

  padding:
    0
    12px;
}

.yard-form-field textarea {
  min-height:
    100px;

  padding:
    11px
    12px;

  resize:
    vertical;
}

.yard-form-field input::placeholder,
.yard-form-field textarea::placeholder {
  color:
    #46566e;
}

.yard-form-field input:hover,
.yard-form-field textarea:hover {
  border-color:
    #314762;
}

.yard-form-field input:focus,
.yard-form-field textarea:focus {
  border-color:
    #168fd1;

  background:
    #09172a;

  box-shadow:
    0
    0
    0
    3px
    rgba(
      14,
      165,
      233,
      0.08
    );
}

.yard-form-field input:disabled,
.yard-form-field textarea:disabled {
  cursor:
    not-allowed;

  opacity:
    0.55;
}


/* =========================================
   NUMBER INPUT
========================================= */

.yard-form-field
input[type="number"] {
  appearance:
    textfield;
}

.yard-form-field
input[type="number"]::-webkit-inner-spin-button,
.yard-form-field
input[type="number"]::-webkit-outer-spin-button {
  margin: 0;

  appearance:
    none;
}


/* =========================================
   ERROR
========================================= */

.yard-form-error {
  margin:
    20px
    24px
    0;

  padding:
    12px
    14px;

  border:
    1px solid
    rgba(
      248,
      113,
      113,
      0.22
    );

  border-radius:
    8px;

  background:
    rgba(
      239,
      68,
      68,
      0.07
    );

  color:
    #fca5a5;

  font-size:
    11px;

  line-height:
    1.5;
}


/* =========================================
   ACTIONS
========================================= */

.yard-form-actions {
  padding:
    18px
    24px;

  display: flex;

  align-items: center;
  justify-content: flex-end;

  gap:
    10px;

  border-top:
    1px solid
    #1d2b42;

  background:
    rgba(
      5,
      13,
      28,
      0.24
    );
}


/* =========================================
   CANCEL BUTTON
========================================= */

.yard-form-cancel-button {
  min-height:
    40px;

  padding:
    0
    16px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    #2b3d59;

  border-radius:
    8px;

  background:
    transparent;

  color:
    #94a3b8;

  font-size:
    12px;

  font-weight:
    650;

  cursor:
    pointer;

  transition:
    background
      0.16s
      ease,
    color
      0.16s
      ease,
    border-color
      0.16s
      ease,
    transform
      0.16s
      ease;
}

.yard-form-cancel-button:hover:not(:disabled) {
  background:
    rgba(
      255,
      255,
      255,
      0.04
    );

  border-color:
    #405470;

  color:
    #e2e8f0;

  transform:
    translateY(-1px);
}

.yard-form-cancel-button:active:not(:disabled) {
  transform:
    translateY(0)
    scale(0.98);
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.yard-form-submit-button {
  min-height:
    40px;

  min-width:
    125px;

  padding:
    0
    18px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.22
    );

  border-radius:
    8px;

  background:
    linear-gradient(
      135deg,
      #168fd1,
      #0ea5e9
    );

  color:
    #ffffff;

  font-size:
    12px;

  font-weight:
    700;

  cursor:
    pointer;

  box-shadow:
    0
    8px
    22px
    rgba(
      14,
      165,
      233,
      0.15
    );

  transition:
    background
      0.16s
      ease,
    box-shadow
      0.16s
      ease,
    transform
      0.16s
      ease,
    opacity
      0.16s
      ease;
}

.yard-form-submit-button:hover:not(:disabled) {
  background:
    linear-gradient(
      135deg,
      #1d9be0,
      #21b7ee
    );

  box-shadow:
    0
    10px
    28px
    rgba(
      14,
      165,
      233,
      0.22
    );

  transform:
    translateY(-1px);
}

.yard-form-submit-button:active:not(:disabled) {
  transform:
    translateY(0)
    scale(0.98);
}


/* =========================================
   DISABLED
========================================= */

.yard-form-submit-button:disabled,
.yard-form-cancel-button:disabled {
  cursor:
    not-allowed;

  opacity:
    0.55;
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (
  max-width:
    900px
) {
  .yard-form-page {
    max-width:
      100%;
  }

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

  .yard-form-grid-three
  .yard-form-field:last-child {
    grid-column:
      1 / -1;
  }
}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (
  max-width:
    650px
) {
  .yard-form-header {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .yard-form-header h1 {
    font-size:
      26px;
  }

  .yard-form-back-button {
    width:
      100%;
  }

  .yard-form-section {
    padding:
      20px
      16px;
  }

  .yard-form-grid,
  .yard-form-grid-three {
    grid-template-columns:
      1fr;
  }

  .yard-form-grid-three
  .yard-form-field:last-child {
    grid-column:
      auto;
  }

  .yard-form-error {
    margin:
      16px
      16px
      0;
  }

  .yard-form-actions {
    padding:
      16px;

    flex-direction:
      column-reverse;

    align-items:
      stretch;
  }

  .yard-form-cancel-button,
  .yard-form-submit-button {
    width:
      100%;
  }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (
  max-width:
    420px
) {
  .yard-form-header h1 {
    font-size:
      24px;
  }

  .yard-form-section-heading h2 {
    font-size:
      15px;
  }

  .yard-form-card {
    border-radius:
      10px;
  }
}/* ========================================
   ENTRIES LAYOUT
======================================== */

.entries-content {
  display: flex;
  flex-direction: column;

  gap: 22px;

  width: 100%;
}

.entries-content .operation-main-panel {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 18px;
}


/* ========================================
   HISTORY
======================================== */

.entries-history-card {
  width: 100%;

  box-sizing: border-box;

  padding: 20px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

.entries-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}

.entries-history-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 18px;
}

.entries-history-header p {
  margin: 4px 0 0;

  color: #64748b;

  font-size: 10px;
}

.entries-history-count {
  padding: 5px 9px;

  border-radius: 999px;

  background: #1e293b;

  color: #94a3b8;

  font-size: 9px;
}


/* ========================================
   TABLE
======================================== */

.entries-table-wrapper {
  width: 100%;

  overflow-x: auto;

  border: 1px solid #1e293b;
  border-radius: 8px;
}

.entries-table {
  width: 100%;

  border-collapse: collapse;

  background: #020617;
}

.entries-table thead {
  background: #111827;
}

.entries-table th {
  padding: 11px 13px;

  border-bottom: 1px solid #334155;

  color: #64748b;

  font-size: 8px;
  font-weight: 600;

  text-align: left;
  text-transform: uppercase;
}

.entries-table td {
  padding: 12px 13px;

  border-bottom: 1px solid #1e293b;

  color: #cbd5e1;

  font-size: 10px;

  white-space: nowrap;
}

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

.entries-table tbody tr {
  transition:
    background-color 0.15s ease;
}

.entries-table tbody tr:hover {
  background: rgba(30,
      41,
      59,
      0.4);
}

.entries-table td strong {
  color: #f8fafc;
}


/* ========================================
   ACTIONS
======================================== */

.entries-table-actions {
  display: flex;

  align-items: center;

  gap: 6px;
}

.entries-history-empty {
  padding: 35px;

  border: 1px dashed #334155;
  border-radius: 8px;

  color: #64748b;

  text-align: center;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 900px) {
  .entries-history-header {
    align-items: flex-start;

    flex-direction: column;
  }
}


.entries-filters {
  display: grid;

  grid-template-columns:
    minmax(230px, 2fr) repeat(3,
      minmax(130px,
        1fr)) 145px 145px auto auto;

  gap: 8px;

  margin-bottom: 16px;
}

.entries-filters input,
.entries-filters select {
  width: 100%;

  min-width: 0;

  box-sizing: border-box;

  padding: 9px 10px;

  border: 1px solid #334155;
  border-radius: 6px;

  outline: none;

  background: #020617;

  color: #cbd5e1;
}

.entries-filters input:focus,
.entries-filters select:focus {
  border-color: #0284c7;
}

.entries-filter-button {
  padding: 9px 14px;

  border: 0;
  border-radius: 6px;

  background: #0284c7;

  color: #ffffff;

  font-weight: 600;

  cursor: pointer;
}

.entries-filter-clear {
  padding: 9px 14px;

  border: 1px solid #334155;
  border-radius: 6px;

  background: transparent;

  color: #94a3b8;

  cursor: pointer;
}

.entries-pagination {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-top: 15px;
}

.entries-pagination-info {
  display: flex;

  align-items: center;

  gap: 12px;

  color: #64748b;

  font-size: 10px;
}

.entries-pagination-info select {
  padding: 6px 8px;

  border: 1px solid #334155;
  border-radius: 5px;

  background: #020617;

  color: #cbd5e1;
}

.entries-pagination-controls {
  display: flex;

  align-items: center;

  gap: 10px;

  color: #94a3b8;

  font-size: 10px;
}

.entries-pagination-controls button {
  padding: 7px 11px;

  border: 1px solid #334155;
  border-radius: 5px;

  background: #1e293b;

  color: #cbd5e1;

  cursor: pointer;
}

.entries-pagination-controls button:hover:not(:disabled) {
  background: #334155;
}

.entries-pagination-controls button:disabled {
  opacity: 0.35;

  cursor: not-allowed;
}


.entry-list {
  margin-top: 14px;

  display: flex;
  flex-direction: column;

  gap: 6px;
}

.entry-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  padding: 10px;

  border:
    1px solid #1e293b;

  border-radius: 6px;

  background: #020617;
}

.entry-list-row>div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.entry-list-row strong {
  color: #e2e8f0;

  font-size: 11px;
}

.entry-list-row span {
  color: #64748b;

  font-size: 9px;
}

.entry-status {
  flex-shrink: 0;

  padding:
    4px 7px;

  border-radius: 20px;

  font-size: 9px;
  font-weight: 600;
}

.entry-status-arrived {
  background:
    rgba(14,
      165,
      233,
      0.15);

  color: #38bdf8;
}

.entry-status-under_inspection {
  background:
    rgba(234,
      179,
      8,
      0.15);

  color: #facc15;
}

.entry-status-waiting_wash,
.entry-status-waiting_repair {
  background:
    rgba(249,
      115,
      22,
      0.15);

  color: #fb923c;
}

.entry-status-ready_for_yard {
  background:
    rgba(34,
      197,
      94,
      0.15);

  color: #4ade80;
}

.entry-status-in_yard {
  background:
    rgba(22,
      163,
      74,
      0.15);

  color: #22c55e;
}

.entry-status-rejected {
  background:
    rgba(220,
      38,
      38,
      0.15);

  color: #f87171;
}

.entry-eir-button {
  appearance: none;
  border: 1px solid #2563eb;
  border-radius: 8px;

  padding: 3px 10px;

  background: #2563eb;
  color: #ffffff;

  font-size: 14px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.entry-eir-button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;

  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.25);

  transform: translateY(-1px);
}

.entry-eir-button:active {
  transform: translateY(0);

  box-shadow: none;
}

.entry-eir-button:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.entry-eir-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.container-active-warning {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-top: 12px;

  padding: 13px 15px;

  border: 1px solid rgba(245, 158, 11, 0.35);

  border-radius: 8px;

  background:
    rgba(245, 158, 11, 0.07);
}

.container-active-warning-icon {
  width: 26px;
  height: 26px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    rgba(245, 158, 11, 0.18);

  color: #fbbf24;

  font-size: 13px;
  font-weight: 700;
}

.container-active-warning-content {
  flex: 1;

  min-width: 0;
}

.container-active-warning-content>strong {
  display: block;

  margin-bottom: 3px;

  color: #fbbf24;

  font-size: 11px;
}

.container-active-warning-content>p {
  margin: 0;

  color: #94a3b8;

  font-size: 9px;
}

.container-active-warning-details {
  display: flex;
  align-items: center;

  gap: 7px;

  margin-top: 9px;
}

.container-active-warning-details span {
  color: #64748b;

  font-size: 8px;

  text-transform: uppercase;
}

.container-active-warning-details strong {
  margin-right: 9px;

  color: #e2e8f0;

  font-size: 9px;
}


@media (max-width: 1350px) {
  .entries-filters {
    grid-template-columns:
      repeat(4,
        1fr);
  }
}

@media (max-width: 900px) {
  .entries-filters {
    grid-template-columns:
      repeat(2,
        1fr);
  }

  .entries-pagination {
    align-items: stretch;

    flex-direction: column;
  }

  .entries-pagination-controls {
    justify-content: space-between;
  }
}

@media (max-width: 600px) {
  .entries-filters {
    grid-template-columns:
      1fr;
  }
}

/* ==========================================================
   ENTRIES PAGE - NUEVO LAYOUT
========================================================== */

.entries-page {
  width: 100%;
}

.entries-page-header {
  margin-bottom: 18px;
}

.entries-page-eyebrow {
  display: block;

  margin-bottom: 5px;

  color: #38bdf8;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* ==========================================================
   TABS
========================================================== */

.entries-tabs {
  display: grid;

  grid-template-columns:
    repeat(2,
      minmax(0,
        1fr));

  gap: 8px;

  margin-bottom: 20px;

  padding: 6px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.13);

  border-radius: 13px;

  background:
    rgba(15,
      23,
      42,
      0.72);
}

.entries-tabs>button {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;

  padding:
    11px 13px;

  border:
    1px solid transparent;

  border-radius: 9px;

  cursor: pointer;

  background:
    transparent;

  color: #94a3b8;

  text-align: left;

  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.entries-tabs>button:hover {
  background:
    rgba(30,
      41,
      59,
      0.65);

  color: #e2e8f0;
}

.entries-tabs>button.active {
  border-color:
    rgba(56,
      189,
      248,
      0.2);

  background:
    rgba(37,
      99,
      235,
      0.13);

  color: #f8fafc;
}

.entries-tab-icon {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  border:
    1px solid rgba(148,
      163,
      184,
      0.15);

  border-radius: 9px;

  background:
    rgba(2,
      6,
      23,
      0.35);

  color: #94a3b8;

  font-size: 15px;
  font-weight: 700;
}

.entries-tabs>button.active .entries-tab-icon {
  border-color:
    rgba(56,
      189,
      248,
      0.32);

  background:
    rgba(56,
      189,
      248,
      0.1);

  color: #38bdf8;
}

.entries-tabs>button>div {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-width: 0;
}

.entries-tabs strong {
  color: inherit;

  font-size: 11px;
}

.entries-tabs small {
  margin-top: 2px;

  color: #64748b;

  font-size: 8px;
}

.entries-tab-count {
  display: grid;
  place-items: center;

  min-width: 28px;
  height: 24px;

  padding:
    0 7px;

  border-radius: 999px;

  background:
    rgba(148,
      163,
      184,
      0.1);

  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;
}

.entries-tab-count.warning {
  background:
    rgba(245,
      158,
      11,
      0.12);

  color: #fbbf24;
}


/* ==========================================================
   REGISTER LAYOUT
========================================================== */

.entries-registration-layout {
  display: grid;

  grid-template-columns:
    minmax(0,
      1fr) minmax(300px,
      350px);

  gap: 18px;

  align-items: start;
}

.entries-registration-main {
  display: flex;
  flex-direction: column;

  gap: 16px;

  min-width: 0;
}


/* ==========================================================
   WORKFLOW CARD
========================================================== */

.entry-workflow-card {
  padding: 18px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.14);

  border-radius: 14px;

  background:
    rgba(15,
      23,
      42,
      0.78);

  box-shadow:
    0 12px 30px rgba(0,
      0,
      0,
      0.08);
}

.entry-workflow-header {
  display: flex;
  align-items: flex-start;

  gap: 11px;

  margin-bottom: 16px;
}

.entry-step-number {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  border-radius: 10px;

  background:
    linear-gradient(135deg,
      #0284c7,
      #2563eb);

  color: white;

  font-size: 12px;
  font-weight: 800;

  box-shadow:
    0 6px 16px rgba(37,
      99,
      235,
      0.2);
}

.entry-workflow-header>div {
  display: flex;
  flex-direction: column;
}

.entry-section-eyebrow {
  margin-bottom: 2px;

  color: #38bdf8;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.entry-workflow-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 16px;
}

.entry-workflow-header p {
  margin:
    3px 0 0;

  color: #64748b;

  font-size: 9px;
}


/* ==========================================================
   SEARCH CONTAINER
========================================================== */

.entry-container-search {
  display: grid;

  grid-template-columns:
    minmax(0,
      1fr) auto;

  gap: 9px;

  align-items: end;
}

.entry-container-search>div {
  display: flex;
  flex-direction: column;
}

.entry-container-search label {
  margin-bottom: 6px;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;
}

.entry-container-search input {
  width: 100%;

  min-height: 42px;

  box-sizing: border-box;

  padding:
    0 12px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.45);

  border-radius: 9px;

  outline: none;

  background:
    rgba(2,
      6,
      23,
      0.75);

  color: #f8fafc;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.entry-container-search input:focus {
  border-color:
    rgba(56,
      189,
      248,
      0.75);

  box-shadow:
    0 0 0 3px rgba(56,
      189,
      248,
      0.07);
}

.entry-container-search>button {
  min-height: 42px;

  padding:
    0 17px;

  border: none;
  border-radius: 9px;

  cursor: pointer;

  background:
    linear-gradient(135deg,
      #0284c7,
      #2563eb);

  color: white;

  font-size: 10px;
  font-weight: 800;
}

.entry-container-search>button:disabled {
  cursor: not-allowed;

  opacity: 0.4;
}

.entry-required {
  margin-left: 4px;

  color: #fb7185;
}


/* ==========================================================
   FOUND CONTAINER
========================================================== */

.entry-container-found {
  display: grid;

  grid-template-columns:
    auto repeat(3,
      minmax(0,
        1fr));

  gap: 10px;

  align-items: center;

  margin-top: 13px;

  padding:
    11px 12px;

  border:
    1px solid rgba(34,
      197,
      94,
      0.25);

  border-radius: 10px;

  background:
    rgba(22,
      101,
      52,
      0.08);
}

.entry-found-indicator {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border-radius: 8px;

  background:
    rgba(34,
      197,
      94,
      0.13);

  color: #4ade80;

  font-size: 12px;
  font-weight: 900;
}

.entry-container-found>div:not(.entry-found-indicator) {
  display: flex;
  flex-direction: column;
}

.entry-container-found span {
  color: #64748b;

  font-size: 7px;
  font-weight: 700;

  text-transform: uppercase;
}

.entry-container-found strong {
  margin-top: 2px;

  color: #e2e8f0;

  font-size: 10px;
}


/* ==========================================================
   ACTIVE PROCESS
========================================================== */

.entry-active-process {
  display: flex;

  gap: 10px;

  margin-top: 12px;

  padding: 12px;

  border:
    1px solid rgba(245,
      158,
      11,
      0.25);

  border-radius: 10px;

  background:
    rgba(146,
      64,
      14,
      0.08);
}

.entry-active-process>div:first-child {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  flex-shrink: 0;

  border-radius: 8px;

  background:
    rgba(245,
      158,
      11,
      0.13);

  color: #fbbf24;

  font-weight: 900;
}

.entry-active-process strong {
  color: #fde68a;

  font-size: 10px;
}

.entry-active-process p {
  margin:
    4px 0;

  color: #94a3b8;

  font-size: 9px;

  line-height: 1.45;
}

.entry-active-process span {
  color: #f59e0b;

  font-size: 8px;
}


/* ==========================================================
   NEW CONTAINER
========================================================== */

.entry-new-container-card {
  padding: 18px;

  border:
    1px solid rgba(245,
      158,
      11,
      0.25);

  border-radius: 14px;

  background:
    linear-gradient(145deg,
      rgba(146,
        64,
        14,
        0.07),
      rgba(15,
        23,
        42,
        0.78));
}

.entry-new-container-card>header {
  display: flex;

  gap: 10px;

  margin-bottom: 16px;
}

.entry-new-container-icon {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  border-radius: 9px;

  background:
    rgba(245,
      158,
      11,
      0.13);

  color: #fbbf24;

  font-size: 15px;
  font-weight: 800;
}

.entry-new-container-card header>div:last-child {
  display: flex;
  flex-direction: column;
}

.entry-new-container-card header span {
  color: #fbbf24;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
}

.entry-new-container-card header h3 {
  margin:
    2px 0 0;

  color: #f8fafc;

  font-size: 14px;
}

.entry-new-container-card header p {
  margin:
    3px 0 0;

  color: #64748b;

  font-size: 9px;
}


/* ==========================================================
   GENERIC ENTRY FORM
========================================================== */

.entry-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2,
      minmax(0,
        1fr));

  gap: 12px;
}

.entry-field {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.entry-field > label,
.entry-field > span {
  display: block;

  margin-bottom: 6px;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;

  line-height: 1.2;
}

.entry-field input,
.entry-field select,
.entry-field textarea {
  width: 100%;

  box-sizing: border-box;

  border:
    1px solid rgba(100,
      116,
      139,
      0.42);

  border-radius: 9px;

  outline: none;

  background:
    rgba(2,
      6,
      23,
      0.7);

  color: #e2e8f0;

  font-family: inherit;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.entry-field input,
.entry-field select {
  min-height: 40px;

  padding:
    0 11px;
}

.entry-field textarea {
  min-height: 90px;

  padding: 11px;

  resize: vertical;
}

.entry-field input:focus,
.entry-field select:focus,
.entry-field textarea:focus {
  border-color:
    rgba(56,
      189,
      248,
      0.65);

  box-shadow:
    0 0 0 3px rgba(56,
      189,
      248,
      0.07);
}

.entry-unit-input {
  position: relative;

  display: flex;
  align-items: center;
}

.entry-unit-input input {
  padding-right:
    42px;
}

.entry-unit-input>span {
  position: absolute;

  right: 11px;

  color: #64748b;

  font-size: 9px;

  pointer-events: none;
}

.entry-register-container-button {
  margin-top: 14px;

  min-height: 39px;

  padding:
    0 15px;

  border: none;
  border-radius: 9px;

  cursor: pointer;

  background:
    #d97706;

  color: white;

  font-size: 10px;
  font-weight: 800;
}

.entry-register-container-button:hover:not(:disabled) {
  background:
    #b45309;
}

.entry-register-container-button:disabled {
  opacity: 0.4;

  cursor: not-allowed;
}


/* ==========================================================
   ARRIVAL FORM
========================================================== */

.entry-observations {
  margin-top: 12px;
}

.entry-arrival-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  margin-top: 16px;

  padding-top: 14px;

  border-top:
    1px solid rgba(148,
      163,
      184,
      0.08);
}

.entry-arrival-actions>div {
  display: flex;
  flex-direction: column;
}

.entry-arrival-actions strong {
  color: #e2e8f0;

  font-size: 10px;
}

.entry-arrival-actions small {
  margin-top: 2px;

  color: #64748b;

  font-size: 8px;
}

.entry-arrival-actions button {
  min-height: 40px;

  padding:
    0 17px;

  border: none;
  border-radius: 9px;

  cursor: pointer;

  background:
    linear-gradient(135deg,
      #16a34a,
      #059669);

  color: white;

  font-size: 10px;
  font-weight: 800;

  box-shadow:
    0 7px 18px rgba(22,
      163,
      74,
      0.16);
}


/* ==========================================================
   PENDING GATE PANEL
========================================================== */

.pending-gate-panel {
  position: sticky;

  top: 18px;

  min-width: 0;

  padding: 16px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.14);

  border-radius: 14px;

  background:
    rgba(15,
      23,
      42,
      0.82);

  box-shadow:
    0 14px 30px rgba(0,
      0,
      0,
      0.08);
}

.pending-gate-panel>header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 13px;
}

.pending-gate-panel header h2 {
  margin:
    2px 0 0;

  color: #f8fafc;

  font-size: 14px;
}

.pending-gate-panel header p {
  margin:
    4px 0 0;

  color: #64748b;

  font-size: 8px;

  line-height: 1.4;
}

.pending-gate-count {
  display: grid;
  place-items: center;

  min-width: 30px;
  height: 30px;

  padding:
    0 8px;

  border-radius: 8px;

  background:
    rgba(245,
      158,
      11,
      0.1);

  color: #fbbf24;

  font-size: 10px;
  font-weight: 800;
}


/* ==========================================================
   PENDING SEARCH
========================================================== */

.pending-gate-search {
  position: relative;

  display: flex;
  align-items: center;

  margin-bottom: 12px;
}

.pending-gate-search>span {
  position: absolute;

  left: 11px;

  color: #38bdf8;

  pointer-events: none;
}

.pending-gate-search input {
  width: 100%;

  min-height: 38px;

  box-sizing: border-box;

  padding:
    0 11px 0 34px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.36);

  border-radius: 9px;

  outline: none;

  background:
    rgba(2,
      6,
      23,
      0.55);

  color: #e2e8f0;
}


/* ==========================================================
   PENDING LIST
========================================================== */

.pending-gate-list {
  display: flex;
  flex-direction: column;

  gap: 7px;

  max-height: 520px;

  overflow-y: auto;

  padding-right: 3px;
}

.pending-gate-item {
  display: grid;

  grid-template-columns:
    4px minmax(0,
      1fr) auto;

  gap: 9px;

  align-items: center;

  padding:
    9px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.09);

  border-radius: 9px;

  background:
    rgba(2,
      6,
      23,
      0.35);

  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.pending-gate-item:hover {
  border-color:
    rgba(56,
      189,
      248,
      0.25);

  background:
    rgba(30,
      41,
      59,
      0.55);
}

.pending-gate-color {
  width: 4px;
  height: 34px;

  border-radius: 999px;

  background:
    linear-gradient(#38bdf8,
      #2563eb);
}

.pending-gate-item>div:nth-child(2) {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.pending-gate-item strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-gate-item span {
  margin-top: 2px;

  color: #64748b;

  font-size: 8px;
}

.pending-gate-item button {
  display: flex;
  align-items: center;

  gap: 5px;

  min-height: 31px;

  padding:
    0 9px;

  border:
    1px solid rgba(56,
      189,
      248,
      0.22);

  border-radius: 7px;

  cursor: pointer;

  background:
    rgba(56,
      189,
      248,
      0.07);

  color: #38bdf8;

  font-size: 8px;
  font-weight: 700;
}

.pending-gate-empty {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding:
    32px 14px;

  text-align: center;
}

.pending-gate-empty>span {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  margin-bottom: 8px;

  border-radius: 50%;

  background:
    rgba(34,
      197,
      94,
      0.08);

  color: #4ade80;
}

.pending-gate-empty strong {
  color: #cbd5e1;

  font-size: 10px;
}

.pending-gate-empty p {
  max-width: 200px;

  margin:
    5px 0 0;

  color: #64748b;

  font-size: 8px;

  line-height: 1.45;
}


/* ==========================================================
   HISTORY TAB
========================================================== */

.entries-history-tab {
  margin-top: 0;
}

.entries-history-tab .entries-history-header h2 {
  margin-top: 2px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {
  .entries-registration-layout {
    grid-template-columns:
      minmax(0,
        1fr) 300px;
  }
}

@media (max-width: 1000px) {
  .entries-registration-layout {
    grid-template-columns:
      1fr;
  }

  .pending-gate-panel {
    position: static;
  }

  .pending-gate-list {
    max-height: 380px;
  }
}

@media (max-width: 700px) {
  .entries-tabs {
    grid-template-columns:
      1fr;
  }

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

  .entry-container-search>button {
    width: 100%;
  }

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

  .entry-container-found {
    grid-template-columns:
      1fr 1fr;
  }

  .entry-found-indicator {
    grid-row:
      1 / 3;
  }

  .entry-arrival-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .entry-arrival-actions button {
    width: 100%;
  }
}



/* ==========================================================
   HISTORY · REFINAMIENTO VISUAL
========================================================== */

.entries-history-card.entries-history-tab {
  padding: 22px;
  border-color: rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(180deg,
      rgba(15, 23, 42, 0.9),
      rgba(15, 23, 42, 0.76));
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.08);
}

.entries-history-header {
  align-items: flex-start;
  margin-bottom: 20px;
}

.entries-history-header h2 {
  margin-top: 2px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.entries-history-header p {
  max-width: 620px;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.5;
}

.entries-history-count {
  flex-shrink: 0;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(30, 41, 59, 0.72);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
}

/* ==========================================================
   HISTORY TOOLBAR
========================================================== */

.entries-history-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-bottom: 16px;
  padding: 12px;

  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 11px;

  background: rgba(2, 6, 23, 0.34);
}

.entries-filter-primary {
  display: grid;
  grid-template-columns:
    minmax(260px, 1.8fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(130px, 0.75fr);
  gap: 9px;
}

/* ==========================================================
   QUICK CREATE CUSTOMER · FORM REFINEMENT
========================================================== */

.entry-customer-create {
  padding: 16px;

  border:
    1px solid rgba(56, 189, 248, 0.18);

  border-radius: 11px;

  background:
    rgba(2, 6, 23, 0.42);
}

.entry-customer-create .entry-form-grid {
  gap: 14px 16px;
}

.entry-customer-create .entry-field {
  gap: 0;
}

.entry-customer-create .entry-field > span {
  margin-bottom: 6px;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;

  line-height: 1.2;
}

.entry-customer-create .entry-field input {
  width: 100%;
  min-height: 42px;

  box-sizing: border-box;

  padding: 0 12px;

  border:
    1px solid rgba(100, 116, 139, 0.42);

  border-radius: 9px;

  outline: none;

  background:
    rgba(2, 6, 23, 0.72);

  color: #f8fafc;

  font-family: inherit;
  font-size: 10px;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.entry-customer-create .entry-field input:hover {
  border-color:
    rgba(100, 116, 139, 0.65);
}

.entry-customer-create .entry-field input:focus {
  border-color:
    rgba(56, 189, 248, 0.72);

  background:
    rgba(2, 6, 23, 0.92);

  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.07);
}

.entry-customer-create .entry-field input::placeholder {
  color: #475569;
}

.entry-customer-create-header {
  align-items: flex-start;

  margin-bottom: 16px;
}

.entry-customer-create-header strong {
  color: #f1f5f9;

  font-size: 11px;
  font-weight: 750;
}

.entry-customer-create-header span {
  margin-top: 3px;

  color: #64748b;

  font-size: 8px;
}

.entry-customer-create-header > button {
  padding: 5px 7px;

  border: 0;
  border-radius: 6px;

  background: transparent;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 600;

  cursor: pointer;
}

.entry-customer-create-header > button:hover {
  background:
    rgba(148, 163, 184, 0.07);

  color: #e2e8f0;
}

.entry-customer-create-actions {
  display: flex;
  justify-content: flex-end;

  margin-top: 16px;
  padding-top: 14px;

  border-top:
    1px solid rgba(148, 163, 184, 0.08);
}

.entry-customer-create-actions button {
  min-width: 150px;
  min-height: 38px;

  padding: 0 15px;

  border: 0;
  border-radius: 8px;

  background:
    linear-gradient(
      135deg,
      #0284c7,
      #2563eb
    );

  color: #ffffff;

  font-size: 9px;
  font-weight: 750;

  cursor: pointer;

  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.entry-customer-create-actions button:hover:not(:disabled) {
  transform: translateY(-1px);

  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.18);
}

.entry-customer-create-actions button:disabled {
  opacity: 0.4;

  cursor: not-allowed;

  transform: none;
  box-shadow: none;
}

@media (max-width: 700px) {
  .entry-customer-create {
    padding: 13px;
  }

  .entry-customer-create-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .entry-customer-create-actions button {
    width: 100%;
  }
}

.entries-filter-field,
.entries-date-field {
  display: flex;
  flex-direction: column;
  gap: 6px;

  min-width: 0;
}

.entries-filter-field>span,
.entries-date-field>span {
  color: #64748b;

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.entries-filter-field input,
.entries-filter-field select,
.entries-date-field input {
  width: 100%;
  min-width: 0;
  min-height: 39px;

  box-sizing: border-box;

  padding: 0 11px;

  border: 1px solid rgba(100, 116, 139, 0.42);
  border-radius: 8px;

  outline: none;

  background: rgba(2, 6, 23, 0.78);
  color: #e2e8f0;

  font-family: inherit;
  font-size: 10px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.entries-filter-field input:hover,
.entries-filter-field select:hover,
.entries-date-field input:hover {
  border-color: rgba(100, 116, 139, 0.68);
}

.entries-filter-field input:focus,
.entries-filter-field select:focus,
.entries-date-field input:focus {
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(2, 6, 23, 0.92);
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.07);
}

.entries-filter-search-control {
  position: relative;
}

.entries-filter-search-control input {
  padding-left: 34px;
}

.entries-filter-search-icon {
  position: absolute;
  z-index: 1;

  left: 11px;
  top: 50%;

  color: #64748b;

  font-size: 15px;
  line-height: 1;

  transform: translateY(-50%);

  pointer-events: none;
}

/* ==========================================================
   DATE RANGE
========================================================== */

.entries-filter-secondary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;

  padding-top: 10px;

  border-top: 1px solid rgba(148, 163, 184, 0.09);
}

.entries-date-range {
  display: flex;
  align-items: flex-end;
  gap: 18px;

  min-width: 0;
}

.entries-date-range-title {
  display: flex;
  align-items: center;
  gap: 9px;

  min-width: 175px;
  padding-bottom: 3px;
}

.entries-date-range-icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  flex-shrink: 0;

  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;

  background: rgba(56, 189, 248, 0.06);
  color: #38bdf8;

  font-size: 12px;
}

.entries-date-range-title>div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entries-date-range-title strong {
  color: #cbd5e1;

  font-size: 9px;
  font-weight: 700;
}

.entries-date-range-title small {
  color: #475569;

  font-size: 8px;
  white-space: nowrap;
}

.entries-date-range-fields {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.entries-date-field {
  width: 172px;
}

.entries-date-field input {
  color-scheme: dark;
}

.entries-date-field input::-webkit-calendar-picker-indicator {
  opacity: 0.72;
  cursor: pointer;
}

.entries-date-separator {
  display: grid;
  place-items: center;

  height: 39px;

  color: #475569;

  font-size: 12px;
}

/* ==========================================================
   FILTER ACTIONS
========================================================== */

.entries-filter-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.entries-filter-button,
.entries-filter-clear {
  min-height: 39px;

  padding: 0 14px;

  border-radius: 8px;

  font-size: 9px;
  font-weight: 750;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.entries-filter-button {
  border: 1px solid rgba(14, 165, 233, 0.38);
  background: rgba(14, 165, 233, 0.11);
  color: #7dd3fc;
}

.entries-filter-button:hover:not(:disabled) {
  border-color: rgba(14, 165, 233, 0.68);
  background: rgba(14, 165, 233, 0.17);
}

.entries-filter-clear {
  border: 1px solid rgba(100, 116, 139, 0.36);
  background: rgba(15, 23, 42, 0.38);
  color: #94a3b8;
}

.entries-filter-clear:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.58);
  color: #cbd5e1;
}

.entries-filter-button:disabled,
.entries-filter-clear:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ==========================================================
   HISTORY TABLE
========================================================== */

.entries-table-wrapper {
  overflow: auto;

  max-height: 610px;

  border-color: rgba(148, 163, 184, 0.14);
  border-radius: 10px;

  background: rgba(2, 6, 23, 0.6);
}

.entries-table {
  min-width: 980px;
  table-layout: auto;
  background: transparent;
}

.entries-table thead {
  position: sticky;
  z-index: 2;
  top: 0;

  background: #0b1323;
}

.entries-table th {
  padding: 10px 14px;

  border-bottom: 1px solid rgba(100, 116, 139, 0.38);

  color: #64748b;

  font-size: 8px;
  font-weight: 750;

  letter-spacing: 0.055em;
}

.entries-table td {
  padding: 12px 14px;

  border-bottom-color: rgba(30, 41, 59, 0.86);

  color: #cbd5e1;

  font-size: 10px;
}

.entries-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.14);
}

.entries-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.38);
}

.entries-table th:first-child,
.entries-table td:first-child {
  width: 90px;
}

.entries-table th:last-child,
.entries-table td:last-child {
  width: 110px;
}

.entries-entry-id {
  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;
}

.entries-container-number {
  color: #f8fafc;

  font-size: 10px;
  font-weight: 750;

  letter-spacing: 0.015em;
}

.entries-operation-value,
.entries-load-value {
  color: #cbd5e1;
}

.entries-date-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entries-date-cell strong {
  color: #cbd5e1 !important;

  font-size: 9px;
  font-weight: 650;
}

.entries-date-cell span {
  color: #64748b;

  font-size: 8px;
}

.entries-date-empty {
  color: #475569;
}

.entries-table-actions {
  min-height: 26px;
}

/* ==========================================================
   PAGINATION
========================================================== */

.entries-pagination {
  margin-top: 13px;
  padding-top: 12px;

  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.entries-pagination-info select,
.entries-pagination-controls button {
  min-height: 31px;

  border-radius: 7px;
}

.entries-pagination-controls button {
  padding: 0 11px;

  background: rgba(30, 41, 59, 0.55);
}

.entries-pagination-controls button:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.7);
}

/* ==========================================================
   HISTORY RESPONSIVE
========================================================== */

@media (max-width: 1180px) {
  .entries-filter-primary {
    grid-template-columns:
      minmax(240px, 1.5fr) repeat(3, minmax(125px, 1fr));
  }

  .entries-filter-secondary {
    align-items: stretch;
    flex-direction: column;
  }

  .entries-filter-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  .entries-filter-primary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .entries-date-range {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .entries-date-range-title {
    min-width: 0;
  }

  .entries-date-range-fields {
    width: 100%;
  }

  .entries-date-field {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 560px) {
  .entries-history-card.entries-history-tab {
    padding: 15px;
  }

  .entries-filter-primary {
    grid-template-columns: 1fr;
  }

  .entries-date-range-fields {
    align-items: stretch;
    flex-direction: column;
  }

  .entries-date-separator {
    height: auto;
    transform: rotate(90deg);
  }

  .entries-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .entries-filter-button,
  .entries-filter-clear {
    width: 100%;
  }
}

/* ==========================================================
   CUSTOMER SELECTOR
========================================================== */

.entry-customer-card {
  padding: 18px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.14);

  border-radius: 14px;

  background:
    rgba(15,
      23,
      42,
      0.78);
}

.entry-customer-search {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.entry-customer-search>label {
  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;
}

.entry-customer-search-control {
  display: flex;
  align-items: center;

  min-height: 42px;

  padding:
    0 11px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.42);

  border-radius: 9px;

  background:
    rgba(2,
      6,
      23,
      0.72);

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.entry-customer-search-control:focus-within {
  border-color:
    rgba(56,
      189,
      248,
      0.75);

  box-shadow:
    0 0 0 3px rgba(56,
      189,
      248,
      0.07);
}

.entry-customer-search-control>span {
  flex-shrink: 0;

  margin-right: 8px;

  color: #64748b;

  font-size: 15px;
}

.entry-customer-search-control input {
  width: 100%;

  border: 0;
  outline: none;

  background:
    transparent;

  color: #f8fafc;

  font-family:
    inherit;

  font-size: 10px;
}

.entry-customer-search-control input::placeholder {
  color: #475569;
}


/* ==========================================================
   CUSTOMER RESULTS
========================================================== */

.entry-customer-results {
  display: flex;
  flex-direction: column;

  max-height: 230px;

  margin-top: 9px;

  overflow-y: auto;

  border:
    1px solid rgba(100,
      116,
      139,
      0.2);

  border-radius: 9px;

  background:
    rgba(2,
      6,
      23,
      0.4);
}

.entry-customer-result {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  width: 100%;

  padding:
    11px 12px;

  border: 0;
  border-bottom:
    1px solid rgba(100,
      116,
      139,
      0.15);

  cursor: pointer;

  background:
    transparent;

  text-align: left;

  transition:
    background 0.15s ease;
}

.entry-customer-result:last-child {
  border-bottom: 0;
}

.entry-customer-result:hover {
  background:
    rgba(30,
      41,
      59,
      0.72);
}

.entry-customer-result>div:first-child {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.entry-customer-result strong {
  overflow: hidden;

  color: #e2e8f0;

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-customer-result>div:first-child span {
  margin-top: 2px;

  overflow: hidden;

  color: #64748b;

  font-size: 8px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-customer-result-meta {
  display: flex;
  align-items: flex-end;
  flex-direction: column;

  flex-shrink: 0;

  gap: 2px;
}

.entry-customer-result-meta span {
  color: #94a3b8;

  font-size: 8px;
}

.entry-customer-state {
  padding: 18px;

  color: #64748b;

  font-size: 9px;

  text-align: center;
}


/* ==========================================================
   CREATE CUSTOMER
========================================================== */

.entry-customer-create-toggle {
  margin-top: 10px;

  padding:
    8px 10px;

  border:
    1px dashed rgba(56,
      189,
      248,
      0.32);

  border-radius: 8px;

  cursor: pointer;

  background:
    rgba(56,
      189,
      248,
      0.05);

  color: #38bdf8;

  font-size: 9px;
  font-weight: 700;
}

.entry-customer-create-toggle:hover {
  background:
    rgba(56,
      189,
      248,
      0.1);
}

.entry-customer-create {
  padding: 14px;

  border:
    1px solid rgba(56,
      189,
      248,
      0.18);

  border-radius: 10px;

  background:
    rgba(2,
      6,
      23,
      0.42);
}

.entry-customer-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 14px;
}

.entry-customer-create-header>div {
  display: flex;
  flex-direction: column;
}

.entry-customer-create-header strong {
  color: #e2e8f0;

  font-size: 11px;
}

.entry-customer-create-header span {
  margin-top: 2px;

  color: #64748b;

  font-size: 8px;
}

.entry-customer-create-header>button {
  border: 0;

  cursor: pointer;

  background:
    transparent;

  color: #94a3b8;

  font-size: 9px;
}

.entry-customer-create-header>button:hover {
  color: #f8fafc;
}

.entry-customer-create-actions {
  display: flex;
  justify-content: flex-end;

  margin-top: 12px;
}

.entry-customer-create-actions button {
  min-height: 36px;

  padding:
    0 13px;

  border: 0;
  border-radius: 8px;

  cursor: pointer;

  background: #0284c7;

  color: white;

  font-size: 9px;
  font-weight: 700;
}

.entry-customer-create-actions button:hover:not(:disabled) {
  background: #0369a1;
}

.entry-customer-create-actions button:disabled {
  cursor: not-allowed;

  opacity: 0.45;
}


/* ==========================================================
   SELECTED CUSTOMER
========================================================== */

.entry-customer-selected {
  display: grid;

  grid-template-columns:
    auto minmax(0,
      1fr) auto;

  gap: 11px;

  align-items: center;

  padding:
    12px;

  border:
    1px solid rgba(34,
      197,
      94,
      0.24);

  border-radius: 10px;

  background:
    rgba(22,
      101,
      52,
      0.08);
}

.entry-customer-selected-icon {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  border-radius: 8px;

  background:
    rgba(34,
      197,
      94,
      0.13);

  color: #4ade80;

  font-size: 12px;
  font-weight: 900;
}

.entry-customer-selected-info {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.entry-customer-selected-info>span {
  color: #64748b;

  font-size: 7px;
  font-weight: 700;

  text-transform: uppercase;
}

.entry-customer-selected-info strong {
  margin-top: 2px;

  overflow: hidden;

  color: #f8fafc;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.entry-customer-selected-info small {
  margin-top: 2px;

  color: #94a3b8;

  font-size: 8px;
}

.entry-customer-change-button {
  padding:
    7px 10px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.45);

  border-radius: 7px;

  cursor: pointer;

  background:
    transparent;

  color: #94a3b8;

  font-size: 8px;
  font-weight: 700;
}

.entry-customer-change-button:hover {
  border-color:
    rgba(56,
      189,
      248,
      0.4);

  color: #38bdf8;
}


/* ==========================================================
   RESPONSIVE CUSTOMER
========================================================== */

@media (max-width: 700px) {
  .entry-customer-selected {
    grid-template-columns:
      auto minmax(0,
        1fr);
  }

  .entry-customer-change-button {
    grid-column:
      1 / -1;
  }
}

.entries-customer-cell {
  display: flex;
  flex-direction: column;

  min-width: 140px;
}

.entries-customer-cell strong {
  color: #e2e8f0;

  font-size: 9px;
}

.entries-customer-cell span {
  margin-top: 2px;

  color: #64748b;

  font-size: 7px;
}.operation-page {
  padding: 28px;
}

.operation-page-header {
  margin-bottom: 22px;
}

.operation-page-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 25px;
}

.operation-page-header p {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 12px;
}

.operation-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    320px;

  gap: 16px;
}

.operation-main-panel {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 16px;
}

.operation-side-panel {
  min-width: 0;
}

.operation-card {
  padding: 20px;

  border:
    1px solid #1e293b;

  border-radius: 10px;

  background: #0f172a;
}

.operation-card h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 16px;
}

.operation-card-header {
  margin-bottom: 18px;
}

.operation-card-header > div {
  display: flex;
  align-items: center;

  gap: 11px;
}

.operation-card-header h2 {
  margin: 0;
}

.operation-card-header p {
  margin: 3px 0 0;

  color: #64748b;

  font-size: 11px;
}

.operation-step {
  width: 28px;
  height: 28px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #0284c7;

  color: white;

  font-size: 11px;
  font-weight: 700;
}

.operation-search-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap: 8px;
}

.operation-search-row input,
.operation-field input,
.operation-field select,
.operation-field textarea {
  width: 100%;

  padding: 10px 11px;

  border:
    1px solid #334155;

  border-radius: 6px;

  outline: none;

  background: #020617;

  color: #f8fafc;
}

.operation-search-row input:focus,
.operation-field input:focus,
.operation-field select:focus,
.operation-field textarea:focus {
  border-color: #0284c7;
}

.operation-search-row button,
.operation-primary-button {

  padding:
    10px 14px;

  border: none;

  border-radius: 6px;

  background: #0284c7;

  color: white;

  font-weight: 600;

  cursor: pointer;
}

.operation-primary-button:hover,
.operation-search-row button:hover {
  background: #0369a1;
}

.operation-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 12px;
}

.operation-field {
  display: flex;
  flex-direction: column;

  gap: 6px;

  margin-bottom: 12px;
}

.operation-field label {
  color: #94a3b8;

  font-size: 11px;
}

.operation-field textarea {
  min-height: 80px;

  resize: vertical;
}

.operation-actions {
  display: flex;
  justify-content: flex-end;

  margin-top: 8px;
}

.container-found-card {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 10px;

  margin-top: 12px;

  padding: 12px;

  border:
    1px solid #14532d;

  border-radius: 7px;

  background:
    rgba(
      22,
      101,
      52,
      0.12
    );
}

.container-found-card > div {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.container-found-card span {
  color: #64748b;

  font-size: 9px;

  text-transform: uppercase;
}

.container-found-card strong {
  color: #f8fafc;

  font-size: 12px;
}

.new-container-panel {
  margin-top: 14px;

  padding: 14px;

  border:
    1px solid #334155;

  border-radius: 7px;

  background: #020617;
}

.operation-notice {
  margin-bottom: 14px;

  color: #fbbf24;

  font-size: 11px;
}

.operation-disabled-message {
  padding: 25px;

  border:
    1px dashed #334155;

  border-radius: 7px;

  color: #64748b;

  text-align: center;

  font-size: 12px;
}

@media (
  max-width: 1000px
) {
  .operation-layout {
    grid-template-columns:
      1fr;
  }

  .operation-form-grid {
    grid-template-columns:
      1fr;
  }
}
/* ========================================
   EIR EVIDENCE
======================================== */

.eir-evidence-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.eir-evidence-heading {
    align-items: flex-start;
}

.eir-evidence-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 12px;
}

.eir-evidence-counter {
    min-width: 44px;
    padding: 6px 10px;
    border: 1px solid #1e293b;
    border-radius: 999px;
    background: #020617;
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.eir-evidence-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.eir-evidence-hidden-input {
    display: none;
}

.eir-evidence-camera-button,
.eir-evidence-gallery-button {
    min-height: 70px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #020617;
    color: #e2e8f0;
    cursor: pointer;
}

.eir-evidence-camera-button:hover:not(:disabled),
.eir-evidence-gallery-button:hover:not(:disabled) {
    border-color: #334155;
    background: #0f172a;
}

.eir-evidence-camera-button:disabled,
.eir-evidence-gallery-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.eir-evidence-camera-button>span,
.eir-evidence-gallery-button>span {
    font-size: 24px;
}

.eir-evidence-camera-button>div,
.eir-evidence-gallery-button>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.eir-evidence-camera-button strong,
.eir-evidence-gallery-button strong {
    font-size: 12px;
}

.eir-evidence-camera-button small,
.eir-evidence-gallery-button small {
    color: #64748b;
    font-size: 10px;
}

.eir-evidence-processing,
.eir-evidence-limit {
    padding: 10px 12px;
    border: 1px solid #1e293b;
    border-radius: 7px;
    background: #020617;
    color: #94a3b8;
    font-size: 11px;
}

.eir-evidence-empty {
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px dashed #1e293b;
    border-radius: 8px;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

.eir-evidence-empty strong {
    color: #cbd5e1;
    font-size: 12px;
}

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

.eir-evidence-item {
    position: relative;
    min-width: 0;
}

.eir-evidence-preview-button {
    width: 100%;
    min-height: 86px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    border: 1px solid #1e293b;
    border-radius: 8px;
    background: #020617;
    color: #e2e8f0;
    cursor: pointer;
    text-align: left;
}

.eir-evidence-preview-button:hover:not(:disabled) {
    border-color: #334155;
    background: #0f172a;
}

.eir-evidence-preview-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.eir-evidence-slot {
    color: #38bdf8;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.eir-evidence-preview-button strong {
    width: 100%;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eir-evidence-preview-button small {
    color: #64748b;
    font-size: 9px;
}

.eir-evidence-delete-button {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #7f1d1d;
    border-radius: 50%;
    background: #450a0a;
    color: #fecaca;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.eir-evidence-delete-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   EVIDENCE LIGHTBOX
======================================== */

.eir-evidence-lightbox {
    margin-top: 5%;

    position: fixed;
    inset: 0;
    z-index: 2500;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.9);
}

.eir-evidence-lightbox-content {
    position: relative;
    width: min(900px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #020617;
}

.eir-evidence-lightbox-content img {
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
    background: #000;
}

.eir-evidence-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: 1px solid #475569;
    border-radius: 50%;
    background: rgba(2, 6, 23, 0.85);
    color: #f8fafc;
    font-size: 22px;
    cursor: pointer;
}

.eir-evidence-lightbox-footer {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.eir-evidence-lightbox-footer strong {
    color: #f8fafc;
    font-size: 12px;
}

.eir-evidence-lightbox-footer span {
    color: #64748b;
    font-size: 10px;
}

@media (max-width: 720px) {

    .eir-evidence-actions,
    .eir-evidence-grid {
        grid-template-columns: 1fr;
    }

    .eir-evidence-lightbox {
        padding: 10px;
    }
}.eir-page {
    padding: 28px;
}

.eir-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(360px, 410px);

    gap: 16px;

    height:
        calc(100vh - 72px - 110px);
}

/* ========================================
   EIR HISTORY BUTTONS
======================================== */

.eir-view-button,
.eir-continue-button,
.eir-show-more-button,
.eir-history-reset-button,
.eir-filter-button,
.eir-clear-button {
    min-height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 0 11px;

    border:
        1px solid #334155;

    border-radius: 7px;

    background:
        #0f172a;

    color:
        #cbd5e1;

    font-family: inherit;

    font-size: 9px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

/* ========================================
   HOVER
======================================== */

.eir-view-button:hover,
.eir-continue-button:hover,
.eir-show-more-button:hover,
.eir-history-reset-button:hover,
.eir-filter-button:hover,
.eir-clear-button:hover {
    border-color:
        #0ea5e9;

    background:
        #111c2e;

    color:
        #f8fafc;

    transform:
        translateY(-1px);
}

/* ========================================
   DISABLED
======================================== */

.eir-view-button:disabled,
.eir-continue-button:disabled,
.eir-show-more-button:disabled,
.eir-history-reset-button:disabled,
.eir-filter-button:disabled,
.eir-clear-button:disabled {
    opacity:
        0.45;

    cursor:
        not-allowed;

    transform:
        none;
}

/* ========================================
   PRIMARY ACTION
   Aplicar filtros
======================================== */

.eir-filter-button {
    border-color:
        rgba(14,
            165,
            233,
            0.45);

    background:
        rgba(14,
            165,
            233,
            0.09);

    color:
        #7dd3fc;
}

.eir-filter-button:hover {
    border-color:
        #0ea5e9;

    background:
        rgba(14,
            165,
            233,
            0.16);

    color:
        #e0f2fe;
}

/* ========================================
   VIEW EIR
======================================== */

.eir-view-button {
    border-color:
        rgba(14,
            165,
            233,
            0.25);

    color:
        #7dd3fc;
}

.eir-view-button span {
    color:
        #38bdf8;

    font-size:
        11px;

    transition:
        transform 0.15s ease;
}

.eir-view-button:hover span {
    transform:
        translateX(2px);
}

/* ========================================
   CONTINUE
======================================== */

.eir-continue-button {
    border-color:
        rgba(245,
            158,
            11,
            0.28);

    color:
        #fcd34d;
}

.eir-continue-button:hover {
    border-color:
        rgba(245,
            158,
            11,
            0.65);

    background:
        rgba(245,
            158,
            11,
            0.08);

    color:
        #fde68a;
}

/* ========================================
   SHOW MORE
======================================== */

.eir-show-more-button {
    border-color:
        #334155 !important;

    background:
        #0f172a !important;

    color:
        #cbd5e1 !important;
}

.eir-show-more-button:hover {
    border-color:
        #0ea5e9 !important;

    background:
        #111c2e !important;

    color:
        #f8fafc !important;
}

.eir-show-more-button span {
    color:
        #38bdf8;

    font-size:
        10px;
}

/* ========================================
   RESET / CLEAR
======================================== */

.eir-history-reset-button,
.eir-clear-button {
    background:
        transparent;

    color:
        #94a3b8;
}

.eir-history-reset-button:hover,
.eir-clear-button:hover {
    border-color:
        #475569;

    background:
        #111827;

    color:
        #e2e8f0;
}

.eir-scene-panel {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border:
        1px solid #1e293b;

    border-radius: 10px;

    background: #020617;
}

.eir-scene {
    flex: 1;

    min-height: 450px;
}

.eir-scene-help {
    padding: 10px 14px;

    border-top:
        1px solid #1e293b;

    color: #64748b;

    font-size: 11px;
}

.eir-inspector-panel {
    display: flex;
    flex-direction: column;

    gap: 12px;

    overflow-y: auto;
}

.eir-selected-area {
    display: flex;
    flex-direction: column;

    gap: 4px;

    margin-top: 14px;

    padding: 12px;

    border:
        1px solid #334155;

    border-radius: 6px;

    background: #020617;
}

.eir-selected-area span {
    color: #64748b;

    font-size: 9px;

    text-transform: uppercase;
}

.eir-selected-area strong {
    color: #38bdf8;

    font-size: 14px;
}

.eir-coordinates {
    margin-top: 8px;

    color: #64748b;

    font-size: 10px;
}

@media (max-width: 900px) {
    .eir-layout {
        grid-template-columns:
            1fr;

        height: auto;
    }

    .eir-scene {
        height: 500px;
    }
}

.eir-damage-list {
    margin-top: 12px;

    display: flex;
    flex-direction: column;

    gap: 7px;
}

.eir-damage-row {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) auto;

    gap: 7px;
}

.eir-damage-select {
    margin: 0;

    padding: 9px 10px;

    display: flex;
    flex-direction: column;

    gap: 3px;

    border:
        1px solid #334155;

    border-radius: 6px;

    background: #020617;

    text-align: left;

    cursor: pointer;
}

.eir-damage-select strong {
    color: #f8fafc;

    font-size: 11px;
}

.eir-damage-select span {
    color: #64748b;

    font-size: 9px;
}

.eir-checkbox {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 12px;

    color: #94a3b8;

    font-size: 11px;
}

.eir-complete-actions {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 12px;
}

.eir-good-button,
.eir-wash-button,
.eir-repair-button {
    padding: 10px;

    border: none;

    border-radius: 6px;

    color: white;

    font-weight: 600;

    cursor: pointer;
}

.eir-good-button {
    background: #16a34a;
}

.eir-wash-button {
    background: #0284c7;
}

.eir-repair-button {
    background: #dc2626;
}

.eir-good-button:disabled,
.eir-repair-button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}


/* ========================================
   EIR HISTORY
======================================== */

.eir-history-page,
.eir-detail-page {
    width: 100%;
    min-height: 100%;

    padding: 28px 32px;

    box-sizing: border-box;
}

.eir-history-header,
.eir-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 22px;
}

.eir-history-header h1,
.eir-detail-header h1 {
    margin: 0;

    color: #f8fafc;

    font-size: 27px;
}

.eir-history-header p,
.eir-detail-header p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 11px;
}

.eir-history-toolbar {
    margin-bottom: 18px;
}

.eir-history-search {
    display: grid;

    grid-template-columns:
        minmax(0, 420px) auto;

    gap: 8px;
}

.eir-history-search input {
    padding: 10px 12px;

    border: 1px solid #334155;
    border-radius: 6px;

    outline: none;

    background: #020617;
    color: #f8fafc;
}

.eir-history-search button {
    padding: 10px 16px;

    border: 0;
    border-radius: 6px;

    background: #0284c7;
    color: white;

    font-weight: 600;

    cursor: pointer;
}

.eir-history-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.eir-history-card {
    padding: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border: 1px solid #1e293b;
    border-radius: 9px;

    background: #0f172a;
}

.eir-history-card-main {
    flex: 1;

    min-width: 0;
}

.eir-history-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}

.eir-history-number {
    color: #38bdf8;

    font-size: 9px;
    font-weight: 700;
}

.eir-history-card h2 {
    margin: 3px 0 0;

    color: #f8fafc;

    font-size: 16px;
}

.eir-history-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 13px;
}

.eir-history-info {
    padding: 7px 9px;

    display: flex;
    flex-direction: column;

    gap: 2px;

    border: 1px solid #1e293b;
    border-radius: 5px;

    background: #020617;
}

.eir-history-info span {
    color: #64748b;

    font-size: 7px;

    text-transform: uppercase;
}

.eir-history-info strong {
    color: #cbd5e1;

    font-size: 9px;
}

.eir-history-result {
    margin-top: 11px;

    display: flex;
    gap: 6px;
}

.eir-result-repair,
.eir-result-wash,
.eir-result-good {
    padding: 4px 7px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 600;
}

.eir-result-repair {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

.eir-result-wash {
    background: rgba(2, 132, 199, 0.15);
    color: #38bdf8;
}

.eir-result-good {
    background: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

.eir-history-status {
    padding: 4px 7px;

    border-radius: 999px;

    background: #1e293b;
    color: #cbd5e1;

    font-size: 8px;
}

.eir-detail-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 320px;

    gap: 15px;

    min-height: 620px;
}

.eir-detail-scene-card {
    min-width: 0;
    min-height: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid #1e293b;
    border-radius: 10px;

    background: #020617;
}

.eir-detail-scene {
    flex: 1;

    min-height: 580px;
}

.eir-detail-sidebar {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.eir-detail-row {
    padding: 7px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-bottom: 1px solid #1e293b;
}

.eir-detail-row span {
    color: #64748b;

    font-size: 9px;
}

.eir-detail-row strong {
    color: #e2e8f0;

    font-size: 10px;

    text-align: right;
}

.eir-back-button {
    margin-bottom: 10px;

    padding: 0;

    border: 0;

    background: transparent;
    color: #38bdf8;

    cursor: pointer;
}

@media (max-width: 900px) {
    .eir-detail-layout {
        grid-template-columns: 1fr;
    }

    .eir-history-card {
        align-items: stretch;
        flex-direction: column;
    }

    .eir-history-actions button {
        width: 100%;
    }
}

/* ========================================
   EIR DASHBOARD
======================================== */

.eir-dashboard-page {
    width: 100%;

    padding: 28px 32px;

    box-sizing: border-box;
}

.eir-dashboard-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;
}

.eir-dashboard-header h1 {
    margin: 0;

    color: #f8fafc;

    font-size: 27px;
}

.eir-dashboard-header p {
    margin: 5px 0 0;

    color: #64748b;

    font-size: 11px;
}

.eir-refresh-button {
    padding: 9px 14px;

    border: 0;
    border-radius: 6px;

    background: #0284c7;

    color: #fff;

    font-weight: 600;

    cursor: pointer;
}

.eir-refresh-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}


/* ========================================
   SUMMARY
======================================== */

.eir-summary-grid {
    display: grid;

    grid-template-columns:
        repeat(4,
            minmax(0,
                1fr));

    gap: 12px;

    margin-bottom: 20px;
}

.eir-summary-card {
    padding: 16px 18px;

    border: 1px solid #1e293b;
    border-radius: 9px;

    background: #0f172a;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.eir-summary-label {
    color: #64748b;

    font-size: 9px;

    text-transform: uppercase;
}

.eir-summary-card strong {
    color: #f8fafc;

    font-size: 25px;
}

.eir-summary-card small {
    color: #64748b;

    font-size: 9px;
}


/* ========================================
   SECTION
======================================== */

.eir-section-card {
    width: 100%;

    margin-bottom: 20px;

    padding: 19px;

    box-sizing: border-box;

    border: 1px solid #1e293b;
    border-radius: 10px;

    background: #0f172a;
}

.eir-section-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.eir-section-header h2 {
    margin: 0;

    color: #f8fafc;

    font-size: 17px;
}

.eir-section-header p {
    margin: 4px 0 0;

    color: #64748b;

    font-size: 9px;
}

.eir-section-counter {
    padding: 5px 9px;

    border-radius: 999px;

    background: #1e293b;

    color: #94a3b8;

    font-size: 8px;
}


/* ========================================
   FILTERS
======================================== */

.eir-history-filters {
    display: grid;

    grid-template-columns:
        minmax(230px,
            2fr) minmax(135px,
            1fr) minmax(150px,
            1fr) minmax(150px,
            1fr) auto auto;

    gap: 8px;

    margin-bottom: 17px;
}

.eir-history-filters input,
.eir-history-filters select {
    width: 100%;

    min-width: 0;

    padding: 9px 10px;

    box-sizing: border-box;

    border: 1px solid #334155;
    border-radius: 6px;

    outline: none;

    background: #020617;

    color: #cbd5e1;
}

.eir-history-filters input:focus,
.eir-history-filters select:focus {
    border-color: #0284c7;
}

.eir-date-field {
    position: relative;
}

.eir-date-field span {
    display: none;
}

.eir-filter-button,
.eir-clear-button {
    padding: 9px 13px;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 600;
}

.eir-filter-button {
    border: 0;

    background: #0284c7;

    color: #fff;
}

.eir-clear-button {
    border: 1px solid #334155;

    background: transparent;

    color: #94a3b8;
}


/* ========================================
   TABLE
======================================== */

.eir-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border: 1px solid #1e293b;
    border-radius: 8px;
}

.eir-table {
    width: 100%;

    border-collapse: collapse;

    background: #020617;
}

.eir-table thead {
    background: #111827;
}

.eir-table th {
    padding: 10px 12px;

    border-bottom: 1px solid #334155;

    color: #64748b;

    font-size: 8px;
    font-weight: 600;

    text-align: left;
    text-transform: uppercase;
}

.eir-table td {
    padding: 11px 12px;

    border-bottom: 1px solid #1e293b;

    color: #cbd5e1;

    font-size: 9px;

    white-space: nowrap;
}

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

.eir-table tbody tr:hover {
    background: rgba(30,
            41,
            59,
            0.35);
}

.eir-number-cell {
    color: #38bdf8;
}

.eir-container-number {
    color: #f8fafc;

    font-weight: 600;
}


/* ========================================
   BADGES
======================================== */

.eir-damage-count {
    min-width: 22px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 3px 6px;

    border-radius: 999px;

    background: #1e293b;

    color: #94a3b8;
}

.eir-damage-count.has-damage {
    background: rgba(220,
            38,
            38,
            0.14);

    color: #f87171;
}

.eir-result-badge,
.eir-status-badge {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 600;
}

.eir-result-badge.repair {
    background: rgba(220,
            38,
            38,
            0.14);

    color: #f87171;
}

.eir-result-badge.wash {
    background: rgba(2,
            132,
            199,
            0.15);

    color: #38bdf8;
}

.eir-result-badge.good {
    background: rgba(22,
            163,
            74,
            0.15);

    color: #4ade80;
}

.eir-status-completed {
    background: #1e293b;

    color: #cbd5e1;
}

.eir-status-in_progress {
    background: rgba(234,
            179,
            8,
            0.15);

    color: #facc15;
}

.eir-status-cancelled {
    background: rgba(220,
            38,
            38,
            0.14);

    color: #f87171;
}


/* ========================================
   BUTTONS
======================================== */

.eir-start-button .eir-start-button-modern {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* ========================================
   EMPTY
======================================== */

.eir-empty-state {
    padding: 30px;

    border: 1px dashed #334155;
    border-radius: 8px;

    color: #64748b;

    text-align: center;
}


/* ========================================
   FOOTER
======================================== */

.eir-history-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 13px;

    color: #64748b;

    font-size: 9px;
}

.eir-history-footer-actions {
    display: flex;

    gap: 7px;
}

.eir-history-footer button {
    padding: 7px 10px;

    border: 1px solid #334155;
    border-radius: 5px;

    background: #1e293b;

    color: #cbd5e1;

    cursor: pointer;
}



.eir-start-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.eir-start-card h2 {
    margin: 0 0 4px;
}

.eir-start-card p {
    margin: 0;

    color: #64748b;

    font-size: 10px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1100px) {
    .eir-summary-grid {
        grid-template-columns:
            repeat(2,
                1fr);
    }

    .eir-history-filters {
        grid-template-columns:
            repeat(2,
                1fr);
    }
}

@media (max-width: 650px) {
    .eir-dashboard-page {
        padding: 20px;
    }

    .eir-dashboard-header {
        flex-direction: column;
    }

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

    .eir-history-filters {
        grid-template-columns:
            1fr;
    }

    .eir-history-footer {
        align-items: stretch;

        flex-direction: column;
    }
}

/* ==========================================================
   EIR MODERN DASHBOARD
========================================================== */

.eir-dashboard-page-modern {
    display: flex;
    flex-direction: column;

    gap: 18px;

    min-height: 100%;
}

/* ==========================================================
   HEADER
========================================================== */

.eir-dashboard-header-modern {
    margin-bottom: 0;
}

.eir-dashboard-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #38bdf8;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.eir-dashboard-header-modern h1 {
    font-size: 30px;
}

.eir-dashboard-header-modern p {
    max-width: 560px;

    margin-top: 6px;

    line-height: 1.55;
}

.eir-dashboard-terminal {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 10px;

    padding:
        5px 8px;

    border:
        1px solid rgba(148,
            163,
            184,
            0.12);

    border-radius: 999px;

    background:
        rgba(15,
            23,
            42,
            0.72);

    color: #94a3b8;

    font-size: 8px;
}

.eir-dashboard-terminal strong {
    color: #cbd5e1;

    font-weight: 700;
}

.eir-dashboard-terminal-dot {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 7px rgba(34,
            197,
            94,
            0.75);
}

/* ==========================================================
   REFRESH
========================================================== */

.eir-refresh-button-modern {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    min-height: 36px;

    padding:
        0 13px;

    border:
        1px solid rgba(56,
            189,
            248,
            0.18);

    border-radius: 8px;

    background:
        rgba(2,
            132,
            199,
            0.13);

    color: #7dd3fc;

    font-size: 8px;
}

.eir-refresh-button-modern:hover:not(:disabled) {
    background:
        rgba(2,
            132,
            199,
            0.2);
}

.eir-refresh-button-modern>span {
    font-size: 13px;
}

/* ==========================================================
   SUMMARY MODERN
========================================================== */

.eir-summary-grid-modern {
    grid-template-columns:
        repeat(5,
            minmax(0,
                1fr));

    margin-bottom: 0;
}

.eir-summary-card {
    position: relative;

    overflow: hidden;
}

.eir-summary-card::after {
    position: absolute;

    right: -18px;
    bottom: -24px;

    width: 70px;
    height: 70px;

    border-radius: 50%;

    background:
        rgba(255,
            255,
            255,
            0.018);

    content: '';
}

.eir-summary-card-top {
    display: flex;
    align-items: center;

    gap: 8px;
}

.eir-summary-icon {
    display: grid;
    place-items: center;

    width: 25px;
    height: 25px;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 900;
}

.eir-summary-icon-pending {
    background:
        rgba(234,
            179,
            8,
            0.12);

    color: #facc15;
}

.eir-summary-icon-progress {
    background:
        rgba(56,
            189,
            248,
            0.12);

    color: #38bdf8;
}

.eir-summary-icon-completed {
    background:
        rgba(34,
            197,
            94,
            0.12);

    color: #4ade80;
}

.eir-summary-icon-damage {
    background:
        rgba(239,
            68,
            68,
            0.12);

    color: #f87171;
}

.eir-summary-icon-service {
    background:
        rgba(168,
            85,
            247,
            0.12);

    color: #c084fc;
}

/* ==========================================================
   TABS
========================================================== */

.eir-tabs {
    display: grid;


    grid-template-columns:
        repeat(3,
            minmax(0,
                1fr));

    gap: 10px;
}

.eir-tab {
    position: relative;

    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;

    padding:
        13px 14px;

    overflow: hidden;

    border:
        1px solid rgba(100,
            116,
            139,
            0.22);

    border-radius: 11px;

    cursor: pointer;

    background:
        rgba(15,
            23,
            42,
            0.68);

    text-align: left;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.eir-tab:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(56,
            189,
            248,
            0.28);

    background:
        rgba(15,
            23,
            42,
            0.92);
}

.eir-tab-active {
    border-color:
        rgba(56,
            189,
            248,
            0.38);

    background:
        linear-gradient(135deg,
            rgba(14,
                165,
                233,
                0.12),
            rgba(15,
                23,
                42,
                0.9));
}

.eir-tab-icon {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    flex:
        0 0 auto;

    border-radius: 9px;

    background:
        rgba(30,
            41,
            59,
            0.88);

    color: #94a3b8;

    font-size: 14px;
    font-weight: 900;
}

.eir-tab-active .eir-tab-icon {
    background:
        rgba(14,
            165,
            233,
            0.14);

    color: #38bdf8;
}

.eir-tab-content {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
}

.eir-tab-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 6px;
}

.eir-tab-eyebrow {
    color: #475569;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.eir-tab-count {
    display: grid;
    place-items: center;

    min-width: 20px;
    height: 20px;

    padding:
        0 5px;

    border-radius: 999px;

    background:
        rgba(30,
            41,
            59,
            0.9);

    color: #94a3b8;

    font-size: 7px;
    font-weight: 800;
}

.eir-tab-content strong {
    margin-top: 2px;

    overflow: hidden;

    color: #e2e8f0;

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.eir-tab-content small {
    margin-top: 2px;

    overflow: hidden;

    color: #64748b;

    font-size: 7px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.eir-tab-indicator {
    position: absolute;

    right: 15px;
    bottom: 0;
    left: 15px;

    height: 2px;

    border-radius:
        999px 999px 0 0;

    background: transparent;
}

.eir-tab-active .eir-tab-indicator {
    background: #38bdf8;

    box-shadow:
        0 -2px 8px rgba(56,
            189,
            248,
            0.5);
}

/* ==========================================================
   TAB PANEL
========================================================== */

.eir-tab-panel {
    min-width: 0;
}

.eir-tab-panel>.eir-section-card {
    margin-bottom: 0;
}

/* ==========================================================
   SECTION MODERN
========================================================== */

.eir-section-header-modern {
    align-items: center;
}

.eir-section-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #38bdf8;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.eir-section-counter {
    display: flex;
    align-items: baseline;

    gap: 4px;
}

.eir-section-counter strong {
    color: #e2e8f0;

    font-size: 13px;
}

.eir-section-counter-warning {
    border:
        1px solid rgba(234,
            179,
            8,
            0.16);

    background:
        rgba(234,
            179,
            8,
            0.07);

    color: #facc15;
}

/* ==========================================================
   TABLE CELLS
========================================================== */

.eir-entry-id {
    color: #38bdf8;

    font-weight: 700;
}

.eir-container-cell,
.eir-type-cell,
.eir-date-cell {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.eir-container-cell strong,
.eir-type-cell strong,
.eir-date-cell strong {
    color: #e2e8f0;

    font-size: 9px;
}

.eir-container-cell span,
.eir-type-cell span,
.eir-date-cell span {
    color: #475569;

    font-size: 7px;
}

.eir-shipping-line-cell {
    display: flex;
    align-items: center;

    gap: 7px;
}

.eir-shipping-line-dot {
    width: 8px;
    height: 8px;

    flex:
        0 0 auto;

    border-radius: 50%;
}

.eir-shipping-line-cell>div {
    display: flex;
    flex-direction: column;
}

.eir-shipping-line-cell strong {
    color: #cbd5e1;

    font-size: 8px;
}

.eir-shipping-line-cell div span {
    color: #475569;

    font-size: 7px;
}

.eir-operation-badge,
.eir-load-badge {
    display: inline-flex;

    padding:
        4px 7px;

    border-radius: 999px;

    background: #1e293b;

    color: #94a3b8;

    font-size: 7px;
    font-weight: 700;
}

.eir-load-badge.loaded {
    background:
        rgba(14,
            165,
            233,
            0.1);

    color: #38bdf8;
}

.eir-load-badge.empty {
    background:
        rgba(100,
            116,
            139,
            0.12);

    color: #94a3b8;
}

/* ========================================
   START EIR BUTTON
======================================== */

.eir-start-button,
.eir-start-button-modern {
    min-height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 12px;

    border:
        1px solid rgba(14,
            165,
            233,
            0.28);

    border-radius: 7px;

    background:
        rgba(14,
            165,
            233,
            0.06);

    color:
        #7dd3fc;

    font-family: inherit;

    font-size: 9px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.eir-start-button:hover,
.eir-start-button-modern:hover {
    border-color:
        #0ea5e9;

    background:
        rgba(14,
            165,
            233,
            0.12);

    color:
        #e0f2fe;

    transform:
        translateY(-1px);
}

.eir-start-button span,
.eir-start-button-modern span {
    color:
        #38bdf8;

    font-size:
        11px;

    transition:
        transform 0.15s ease;
}

.eir-start-button:hover span,
.eir-start-button-modern:hover span {
    transform:
        translateX(2px);
}

.eir-start-button:disabled,
.eir-start-button-modern:disabled {
    opacity:
        0.45;

    cursor:
        not-allowed;

    transform:
        none;
}

.eir-start-button-modern,
.eir-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.eir-start-button-modern>span,
.eir-view-button>span {
    font-size: 11px;
}

/* ==========================================================
   EMPTY MODERN
========================================================== */

.eir-empty-state {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    min-height: 160px;

    gap: 4px;
}

.eir-empty-state strong {
    color: #cbd5e1;

    font-size: 10px;
}

.eir-empty-state p {
    max-width: 420px;

    margin: 0;

    color: #64748b;

    font-size: 8px;
    line-height: 1.5;
}

.eir-empty-state-icon {
    display: grid;
    place-items: center;

    width: 31px;
    height: 31px;

    margin-bottom: 4px;

    border-radius: 9px;

    background:
        rgba(30,
            41,
            59,
            0.72);

    color: #64748b;

    font-size: 13px;
}

.eir-empty-state-success {
    border-color:
        rgba(34,
            197,
            94,
            0.14);

    background:
        rgba(34,
            197,
            94,
            0.025);
}

.eir-empty-state-success .eir-empty-state-icon {
    background:
        rgba(34,
            197,
            94,
            0.1);

    color: #4ade80;
}

/* ==========================================================
   GENERATE
========================================================== */

.eir-generate-layout {
    display: grid;

    grid-template-columns:
        minmax(0,
            1.45fr) minmax(280px,
            0.55fr);

    gap: 12px;
}

.eir-generate-layout .eir-section-card {
    margin-bottom: 0;
}

.eir-generate-search {
    position: relative;

    display: flex;
    align-items: center;

    margin-bottom: 12px;
}

.eir-generate-search-icon {
    position: absolute;

    left: 11px;

    color: #64748b;

    pointer-events: none;
}

.eir-generate-search input {
    width: 100%;
    height: 38px;

    padding:
        0 38px 0 33px;

    border:
        1px solid #334155;

    border-radius: 8px;

    outline: none;

    background: #020617;

    color: #e2e8f0;

    font-size: 9px;
}

.eir-generate-search input:focus {
    border-color: #0284c7;
}

.eir-generate-search>button {
    position: absolute;

    right: 8px;

    border: 0;

    cursor: pointer;

    background: transparent;

    color: #64748b;
}

.eir-generate-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 7px;

    text-transform: uppercase;
}

.eir-generate-results-header strong {
    color: #94a3b8;
}

.eir-generate-list {
    display: flex;
    flex-direction: column;

    gap: 6px;

    max-height: 455px;

    padding-right: 3px;

    overflow-y: auto;
}

.eir-generate-item {
    display: grid;
    align-items: center;

    grid-template-columns:
        4px minmax(130px,
            1fr) minmax(180px,
            auto) 24px;

    gap: 10px;

    width: 100%;

    padding:
        10px 11px;

    border:
        1px solid rgba(100,
            116,
            139,
            0.2);

    border-radius: 8px;

    cursor: pointer;

    background:
        rgba(2,
            6,
            23,
            0.42);

    text-align: left;
}

.eir-generate-item:hover,
.eir-generate-item.selected {
    border-color:
        rgba(56,
            189,
            248,
            0.28);

    background:
        rgba(14,
            165,
            233,
            0.055);
}

.eir-generate-item-color {
    width: 4px;
    height: 34px;

    border-radius: 999px;
}

.eir-generate-item-main {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.eir-generate-item-main strong {
    overflow: hidden;

    color: #e2e8f0;

    font-size: 9px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.eir-generate-item-main small {
    margin-top: 2px;

    color: #475569;

    font-size: 7px;
}

.eir-generate-item-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 4px;

    justify-content: flex-end;
}

.eir-generate-item-meta>span {
    padding:
        3px 5px;

    border-radius: 5px;

    background: #1e293b;

    color: #94a3b8;

    font-size: 6px;
}

.eir-generate-item-selector {
    color: #475569;

    font-size: 13px;

    text-align: center;
}

.eir-generate-item.selected .eir-generate-item-selector {
    color: #38bdf8;
}

.eir-generate-selected-panel {
    min-height: 365px;
}

.eir-generate-no-selection {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    min-height: 310px;

    text-align: center;
}

.eir-generate-no-selection-icon {
    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    margin-bottom: 9px;

    border:
        1px solid rgba(56,
            189,
            248,
            0.15);

    border-radius: 12px;

    background:
        rgba(14,
            165,
            233,
            0.06);

    color: #38bdf8;

    font-size: 18px;
}

.eir-generate-no-selection h3 {
    margin: 0;

    color: #cbd5e1;

    font-size: 12px;
}

.eir-generate-no-selection p {
    max-width: 230px;

    margin:
        5px 0 0;

    color: #64748b;

    font-size: 8px;

    line-height: 1.55;
}

.eir-generate-selected-header>span {
    color: #38bdf8;

    font-size: 7px;
    font-weight: 800;

    text-transform: uppercase;
}

.eir-generate-selected-header h2 {
    margin:
        3px 0 0;

    color: #f8fafc;

    font-size: 18px;
}

.eir-generate-selected-header p {
    margin:
        4px 0 0;

    color: #64748b;

    font-size: 8px;
}

.eir-generate-selected-data {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0,
                1fr));

    gap: 7px;

    margin-top: 14px;
}

.eir-generate-selected-data-item {
    padding:
        9px 10px;

    border:
        1px solid rgba(100,
            116,
            139,
            0.2);

    border-radius: 7px;

    background:
        rgba(2,
            6,
            23,
            0.38);
}

.eir-generate-selected-data-item.full {
    grid-column:
        1 / -1;
}

.eir-generate-selected-data-item span {
    display: block;

    color: #475569;

    font-size: 6px;

    text-transform: uppercase;
}

.eir-generate-selected-data-item strong {
    display: block;

    margin-top: 2px;

    overflow: hidden;

    color: #cbd5e1;

    font-size: 8px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.eir-generate-selected-notice {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    margin-top: 11px;

    padding:
        8px 9px;

    border:
        1px solid rgba(56,
            189,
            248,
            0.1);

    border-radius: 7px;

    background:
        rgba(14,
            165,
            233,
            0.04);
}

.eir-generate-selected-notice>span {
    display: grid;
    place-items: center;

    width: 17px;
    height: 17px;

    flex:
        0 0 auto;

    border-radius: 50%;

    background:
        rgba(56,
            189,
            248,
            0.1);

    color: #38bdf8;

    font-size: 7px;
    font-weight: 900;
}

.eir-generate-selected-notice p {
    margin: 0;

    color: #64748b;

    font-size: 7px;

    line-height: 1.45;
}

.eir-generate-start-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    width: 100%;
    height: 37px;

    margin-top: 12px;

    border: 0;

    border-radius: 8px;

    cursor: pointer;

    background: #0284c7;

    color: #fff;

    font-size: 8px;
    font-weight: 800;
}

.eir-generate-start-button:hover {
    background: #0369a1;
}

/* ==========================================================
   HISTORY FILTERS MODERN
========================================================== */

.eir-history-filters-modern {
    display: block;

    margin-bottom: 14px;

    padding:
        12px;

    border:
        1px solid rgba(100,
            116,
            139,
            0.18);

    border-radius: 9px;

    background:
        rgba(2,
            6,
            23,
            0.3);
}

.eir-history-filter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 14px;

    margin-bottom: 10px;
}

.eir-history-filter-header strong {
    display: block;

    color: #cbd5e1;

    font-size: 10px;
}

.eir-history-filter-header p {
    margin:
        2px 0 0;

    color: #475569;

    font-size: 7px;
}

.eir-history-filter-active {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding:
        4px 7px;

    border-radius: 999px;

    background:
        rgba(14,
            165,
            233,
            0.08);

    color: #38bdf8;

    font-size: 6px;
    font-weight: 800;
}

.eir-history-filter-active>span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #38bdf8;
}

.eir-history-filter-grid {
    display: grid;

    grid-template-columns:
        minmax(240px,
            2fr) minmax(145px,
            1fr) minmax(145px,
            1fr) minmax(145px,
            1fr);

    gap: 8px;
}

.eir-history-filter-field {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.eir-history-filter-field>label {
    margin-bottom: 4px;

    color: #64748b;

    font-size: 7px;
    font-weight: 700;
}

.eir-history-filter-field>input,
.eir-history-filter-field>select,
.eir-history-search-input input {
    width: 100%;
    height: 34px;

    box-sizing: border-box;

    border:
        1px solid #334155;

    border-radius: 7px;

    outline: none;

    background: #020617;

    color: #cbd5e1;

    font-size: 8px;
}

.eir-history-filter-field>input,
.eir-history-filter-field>select {
    padding:
        0 9px;
}

.eir-history-search-input {
    position: relative;

    display: flex;
    align-items: center;
}

.eir-history-search-input>span {
    position: absolute;

    left: 9px;

    color: #64748b;
}

.eir-history-search-input input {
    padding:
        0 31px 0 28px;
}

.eir-history-search-input button {
    position: absolute;

    right: 7px;

    border: 0;

    cursor: pointer;

    background: transparent;

    color: #64748b;
}

.eir-history-filter-actions {
    display: flex;
    justify-content: flex-end;

    gap: 7px;

    margin-top: 10px;
}

/* ==========================================================
   HISTORY TABLE
========================================================== */

.eir-history-number {
    display: flex;
    flex-direction: column;
}

.eir-history-number strong {
    color: #38bdf8;

    font-size: 8px;
}

.eir-history-number span {
    margin-top: 1px;

    color: #475569;

    font-size: 6px;
}

.eir-result-badge.progress {
    background:
        rgba(234,
            179,
            8,
            0.12);

    color: #facc15;
}

.eir-result-badge.cancelled,
.eir-result-badge.critical {
    background:
        rgba(239,
            68,
            68,
            0.12);

    color: #f87171;
}

.eir-history-result-info {
    display: flex;
    align-items: center;

    gap: 4px;
}

.eir-history-result-info strong {
    color: #cbd5e1;
}

/* ==========================================================
   RESPONSIVE MODERN
========================================================== */

@media (max-width: 1180px) {
    .eir-summary-grid-modern {
        grid-template-columns:
            repeat(3,
                minmax(0,
                    1fr));
    }

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

    .eir-generate-selected-panel {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .eir-tabs {
        grid-template-columns:
            1fr;
    }

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

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

@media (max-width: 620px) {

    .eir-summary-grid-modern,
    .eir-history-filter-grid,
    .eir-generate-selected-data {
        grid-template-columns:
            1fr;
    }

    .eir-generate-selected-data-item.full {
        grid-column:
            auto;
    }

    .eir-generate-item {
        grid-template-columns:
            4px minmax(0,
                1fr) 24px;
    }

    .eir-generate-item-meta {
        display: none;
    }

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

    .eir-refresh-button-modern {
        justify-content: center;

        width: 100%;
    }
}

.eir-continue-button {
    min-height: 30px;

    padding: 0 12px;

    border: 1px solid rgba(234, 179, 8, 0.45);
    border-radius: 6px;

    background: rgba(234, 179, 8, 0.1);

    color: #facc15;

    font-size: 8px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.eir-continue-button:hover {
    border-color: #eab308;

    background: rgba(234, 179, 8, 0.18);
}

/* ==========================================================
   EIR PAGE
========================================================== */

.eir-page {
    width: 100%;
    min-height: 100%;
    padding: 30px 32px 42px;
    box-sizing: border-box;
}


/* ==========================================================
   PAGE HEADER
========================================================== */

.eir-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
}

.eir-page-header h1 {
    margin: 4px 0 4px;

    color: #f8fafc;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.eir-page-header p {
    margin: 0;

    color: #718198;
    font-size: 13px;
}

.eir-page-eyebrow,
.eir-card-eyebrow {
    display: block;

    color: #38bdf8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eir-header-status {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 140px;
    padding: 10px 14px;

    border: 1px solid #22314a;
    border-radius: 10px;

    background: #101a2d;
}

.eir-header-status-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.1);
}

.eir-header-status>div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.eir-header-status span {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eir-header-status strong {
    color: #e2e8f0;
    font-size: 12px;
}


/* ==========================================================
   START
========================================================== */

.eir-start-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    max-width: 850px;
    margin: 60px auto 0;
    padding: 28px;
}

.eir-start-card h2 {
    margin: 5px 0 5px;
}

.eir-start-card p {
    max-width: 480px;
    margin: 0;
}


/* ==========================================================
   MAIN LAYOUT
========================================================== */

.eir-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) 350px;

    align-items: start;

    gap: 18px;

    width: 100%;
}


/* ==========================================================
   3D SCENE
========================================================== */

.eir-scene-panel {
    position: sticky;
    top: 20px;

    display: flex;
    flex-direction: column;

    min-width: 0;
    height: calc(100vh - 175px);
    min-height: 600px;

    overflow: hidden;

    border: 1px solid #1f2d44;
    border-radius: 14px;

    background: #020817;

    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.16);
}

.eir-scene-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    min-height: 58px;
    padding: 0 18px;

    border-bottom: 1px solid #1c293d;

    background: #0f192b;
}

.eir-scene-toolbar>div:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eir-scene-toolbar strong {
    color: #f1f5f9;
    font-size: 13px;
}

.eir-scene-toolbar-info {
    padding: 5px 9px;

    border: 1px solid #263650;
    border-radius: 6px;

    background: #0b1424;

    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.eir-scene {
    position: relative;

    flex: 1;
    min-height: 0;

    overflow: hidden;

    background:
        radial-gradient(circle at 50% 45%,
            rgba(30, 41, 59, 0.15),
            transparent 55%),
        #020817;
}

.eir-scene canvas {
    display: block;

    width: 100% !important;
    height: 100% !important;
}

.eir-scene-help {
    display: flex;
    align-items: center;
    gap: 11px;

    min-height: 52px;
    padding: 0 16px;

    border-top: 1px solid #1c293d;

    background: #0c1525;
}

.eir-scene-help-icon {
    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    flex-shrink: 0;

    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 7px;

    background: rgba(56, 189, 248, 0.08);

    color: #38bdf8;
    font-size: 17px;
}

.eir-scene-help>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eir-scene-help strong {
    color: #cbd5e1;
    font-size: 11px;
}

.eir-scene-help>div>span {
    color: #64748b;
    font-size: 10px;
}


/* ==========================================================
   INSPECTOR
========================================================== */

.eir-inspector-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;

    min-width: 0;
}

.eir-inspector-panel .operation-card {
    margin: 0;
    padding: 17px;

    border-color: #1f2d44;
    border-radius: 12px;

    background: #101a2d;
}

.eir-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 15px;
}

.eir-card-heading h2 {
    margin: 4px 0 0;

    color: #f1f5f9;
    font-size: 15px;
    font-weight: 750;
}

.eir-card-heading p {
    margin: 5px 0 0;

    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}


/* ==========================================================
   SUMMARY
========================================================== */

.eir-summary-card {
    padding: 17px;

    border: 1px solid #1f2d44;
    border-radius: 12px;

    background:
        linear-gradient(145deg,
            #111c30,
            #0d1728);
}

.eir-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.eir-summary-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eir-summary-header h2 {
    margin: 0;

    color: #f8fafc;
    font-size: 17px;
    font-weight: 750;
}

.eir-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 8px;

    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 999px;

    background: rgba(34, 197, 94, 0.07);

    color: #4ade80;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.eir-status-badge>span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: currentColor;
}

.eir-summary-stats {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto;

    gap: 12px;

    margin-top: 15px;
    padding-top: 13px;

    border-top: 1px solid #1e2b40;
}

.eir-summary-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eir-summary-stat>span {
    color: #64748b;
    font-size: 9px;
    text-transform: uppercase;
}

.eir-summary-stat strong {
    color: #e2e8f0;
    font-size: 12px;
}

.eir-summary-stat:not(.eir-summary-stat-wide) {
    min-width: 42px;

    text-align: right;
}

.eir-summary-stat:not(.eir-summary-stat-wide) strong {
    color: #38bdf8;
    font-size: 18px;
}


/* ==========================================================
   SELECTED AREA
========================================================== */

.eir-selected-area {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    overflow: hidden;

    margin-bottom: 12px;
    padding: 11px 12px;

    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;

    background: rgba(56, 189, 248, 0.055);
}

.eir-selected-area::before {
    content: '';

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background: #0ea5e9;
}

.eir-selected-area>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eir-selected-area>span,
.eir-selected-area>div>span {
    color: #64748b;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.eir-selected-area strong {
    color: #e2e8f0;
    font-size: 12px;
}

.eir-selected-area-check {
    display: grid;
    place-items: center;

    width: 23px;
    height: 23px;

    border-radius: 50%;

    background: rgba(34, 197, 94, 0.1);

    color: #4ade80 !important;
    font-size: 11px !important;
}


/* ==========================================================
   COORDINATES
========================================================== */

.eir-coordinate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 14px;
}

.eir-coordinate-row>span {
    color: #64748b;
    font-size: 9px;
}

.eir-coordinate-row>div {
    display: flex;
    gap: 5px;
}

.eir-coordinate-row>div>span {
    padding: 4px 6px;

    border: 1px solid #22314a;
    border-radius: 5px;

    background: #0b1424;

    color: #94a3b8;
    font-family: monospace;
    font-size: 8px;
}


/* ==========================================================
   FORM SECTIONS
========================================================== */

.eir-form-section {
    margin-bottom: 12px;
    padding: 12px;

    border: 1px solid #1d2a3f;
    border-radius: 9px;

    background: rgba(6, 13, 25, 0.25);
}

.eir-form-section-header {
    margin-bottom: 11px;
    padding-bottom: 9px;

    border-bottom: 1px solid #1b283b;
}

.eir-form-section-header>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eir-form-section-header strong {
    color: #cbd5e1;
    font-size: 11px;
}

.eir-form-section-header span {
    color: #56657a;
    font-size: 9px;
}


/* ==========================================================
   FORM FIELDS
========================================================== */

.eir-damage-form-card .operation-field {
    margin-bottom: 11px;
}

.eir-damage-form-card .operation-field:last-child {
    margin-bottom: 0;
}

.eir-damage-form-card .operation-field>label {
    display: block;

    margin-bottom: 5px;

    color: #94a3b8;
    font-size: 10px;
    font-weight: 650;
}

.eir-damage-form-card input,
.eir-damage-form-card select,
.eir-damage-form-card textarea {
    width: 100%;
    box-sizing: border-box;

    border: 1px solid #2a3953;
    border-radius: 7px;

    outline: none;

    background: #060d19;

    color: #e2e8f0;

    transition:
        border-color 140ms ease,
        box-shadow 140ms ease,
        background 140ms ease;
}

.eir-damage-form-card input,
.eir-damage-form-card select {
    min-height: 37px;
    padding: 0 10px;

    font-size: 11px;
}

.eir-damage-form-card textarea {
    min-height: 78px;
    padding: 9px 10px;

    resize: vertical;

    font-family: inherit;
    font-size: 11px;
    line-height: 1.5;
}

.eir-damage-form-card input:focus,
.eir-damage-form-card select:focus,
.eir-damage-form-card textarea:focus {
    border-color: #0ea5e9;

    background: #08111f;

    box-shadow:
        0 0 0 2px rgba(14, 165, 233, 0.08);
}

.eir-damage-form-card input::placeholder,
.eir-damage-form-card textarea::placeholder {
    color: #3f4d61;
}

.eir-required {
    margin-left: 3px;

    color: #fb7185;
}


/* ==========================================================
   ERRORS
========================================================== */

.operation-field-error input,
.operation-field-error select,
.operation-field-error textarea {
    border-color: #ef4444 !important;

    box-shadow:
        0 0 0 2px rgba(239, 68, 68, 0.06) !important;
}

.eir-field-error {
    display: block;

    margin-top: 4px;

    color: #fb7185;
    font-size: 9px;
    line-height: 1.35;
}


/* ==========================================================
   MEASUREMENTS
========================================================== */

.eir-measurements-grid {
    display: grid;
    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 7px;
}

.eir-input-unit {
    position: relative;
}

.eir-input-unit input {
    padding-right: 31px !important;
}

.eir-input-unit>span {
    position: absolute;
    top: 50%;
    right: 9px;

    transform: translateY(-50%);

    color: #526176;
    font-size: 9px;

    pointer-events: none;
}


/* ==========================================================
   REPAIR TOGGLE
========================================================== */

.eir-repair-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    margin-bottom: 13px;
    padding: 11px 12px;

    border: 1px solid #1f2d44;
    border-radius: 8px;

    background: #0c1627;

    cursor: pointer;

    transition:
        border-color 140ms ease,
        background 140ms ease;
}

.eir-repair-toggle:hover {
    border-color: #33445f;

    background: #0e192b;
}

.eir-repair-toggle-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eir-repair-toggle-copy strong {
    color: #cbd5e1;
    font-size: 10px;
}

.eir-repair-toggle-copy span {
    max-width: 230px;

    color: #5f6f85;
    font-size: 8px;
    line-height: 1.4;
}

.eir-switch {
    position: relative;

    width: 34px;
    height: 19px;

    flex-shrink: 0;
}

.eir-switch input {
    position: absolute;

    width: 0;
    height: 0;

    opacity: 0;
}

.eir-switch>span {
    position: absolute;
    inset: 0;

    border: 1px solid #334155;
    border-radius: 999px;

    background: #172235;

    transition: 160ms ease;
}

.eir-switch>span::before {
    content: '';

    position: absolute;
    top: 3px;
    left: 3px;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    background: #64748b;

    transition: 160ms ease;
}

.eir-switch input:checked+span {
    border-color: rgba(239, 68, 68, 0.5);

    background: rgba(239, 68, 68, 0.18);
}

.eir-switch input:checked+span::before {
    transform: translateX(15px);

    background: #f87171;
}


/* ==========================================================
   DESCRIPTION
========================================================== */

.eir-field-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;

    margin-top: 4px;

    color: #536176;
    font-size: 8px;
}

.eir-field-footer .eir-field-error {
    margin: 0;
}


/* ==========================================================
   SAVE BUTTON
========================================================== */

.eir-save-damage-button {
    width: 100%;
    min-height: 39px;
    margin-top: 3px;

    border-radius: 7px;

    font-size: 11px;
}


/* ==========================================================
   DAMAGE DETAILS
========================================================== */

.eir-damage-detail-grid {
    display: grid;
    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 7px;

    margin-top: 10px;
}

.eir-damage-detail {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 9px;

    border: 1px solid #1e2b40;
    border-radius: 7px;

    background: #0b1424;
}

.eir-damage-detail span {
    color: #5f6f85;
    font-size: 8px;
    text-transform: uppercase;
}

.eir-damage-detail strong {
    overflow: hidden;

    color: #cbd5e1;
    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.eir-damage-description {
    margin-top: 9px;
    padding: 9px;

    border: 1px solid #1e2b40;
    border-radius: 7px;

    background: #0b1424;
}

.eir-damage-description>span {
    display: block;

    margin-bottom: 4px;

    color: #5f6f85;
    font-size: 8px;
    text-transform: uppercase;
}

.eir-damage-description p {
    margin: 0;

    color: #94a3b8;
    font-size: 10px;
    line-height: 1.5;
}


/* ==========================================================
   SEVERITY
========================================================== */

.eir-severity-badge {
    display: inline-flex;
    align-items: center;

    padding: 4px 6px;

    border: 1px solid;
    border-radius: 999px;

    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.eir-severity-low {
    border-color: rgba(34, 197, 94, 0.2);

    background: rgba(34, 197, 94, 0.07);

    color: #4ade80;
}

.eir-severity-medium {
    border-color: rgba(234, 179, 8, 0.25);

    background: rgba(234, 179, 8, 0.08);

    color: #facc15;
}

.eir-severity-high {
    border-color: rgba(249, 115, 22, 0.25);

    background: rgba(249, 115, 22, 0.08);

    color: #fb923c;
}

.eir-severity-critical {
    border-color: rgba(239, 68, 68, 0.25);

    background: rgba(239, 68, 68, 0.08);

    color: #f87171;
}


/* ==========================================================
   DELETE DAMAGE
========================================================== */

.eir-delete-damage-button {
    width: 100%;
    min-height: 34px;
    margin-top: 11px;

    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 7px;

    background: rgba(239, 68, 68, 0.06);

    color: #f87171;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 140ms ease,
        border-color 140ms ease;
}

.eir-delete-damage-button:hover {
    border-color: rgba(239, 68, 68, 0.45);

    background: rgba(239, 68, 68, 0.12);
}


/* ==========================================================
   DAMAGE LIST
========================================================== */

.eir-damages-heading {
    align-items: center;

    margin-bottom: 11px;
}

.eir-damage-counter {
    display: grid;
    place-items: center;

    min-width: 26px;
    height: 26px;

    border: 1px solid #263650;
    border-radius: 7px;

    background: #0b1424;

    color: #38bdf8;
    font-size: 11px;
    font-weight: 800;
}

.eir-empty-damages {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 16px 10px;

    text-align: center;
}

.eir-empty-damages-icon {
    display: grid;
    place-items: center;

    width: 29px;
    height: 29px;

    margin-bottom: 7px;

    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 50%;

    background: rgba(34, 197, 94, 0.06);

    color: #4ade80;
    font-size: 11px;
}

.eir-empty-damages strong {
    color: #cbd5e1;
    font-size: 10px;
}

.eir-empty-damages span {
    max-width: 240px;
    margin-top: 3px;

    color: #56657a;
    font-size: 8px;
    line-height: 1.45;
}

.eir-damage-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eir-damage-row {
    display: flex;
    align-items: stretch;

    overflow: hidden;

    border: 1px solid #1f2d44;
    border-radius: 7px;

    background: #0b1424;

    transition:
        border-color 140ms ease,
        background 140ms ease;
}

.eir-damage-row:hover {
    border-color: #33445f;

    background: #0e192b;
}

.eir-damage-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;

    min-width: 0;
    flex: 1;

    padding: 9px 10px;

    border: 0;

    background: transparent;

    text-align: left;

    cursor: pointer;
}

.eir-damage-row-main {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}

.eir-damage-row-main strong {
    overflow: hidden;

    color: #cbd5e1;
    font-size: 10px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.eir-damage-row-main span {
    overflow: hidden;

    color: #5f6f85;
    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.eir-damage-remove {
    display: grid;
    place-items: center;

    width: 32px;
    flex-shrink: 0;

    border: 0;
    border-left: 1px solid #1f2d44;

    background: transparent;

    color: #64748b;
    font-size: 16px;

    cursor: pointer;

    transition:
        color 140ms ease,
        background 140ms ease;
}

.eir-damage-remove:hover {
    background: rgba(239, 68, 68, 0.08);

    color: #f87171;
}


/* ==========================================================
   COMPLETE EIR
========================================================== */

.eir-complete-actions {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.eir-complete-actions button {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    min-height: 45px;
    padding: 8px 11px;

    border: 1px solid;
    border-radius: 8px;

    text-align: left;

    cursor: pointer;

    transition:
        transform 140ms ease,
        border-color 140ms ease,
        background 140ms ease,
        opacity 140ms ease;
}

.eir-complete-actions button>span {
    display: grid;
    place-items: center;

    width: 24px;
    height: 24px;

    flex-shrink: 0;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 800;
}

.eir-complete-actions button>div {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.eir-complete-actions button strong {
    font-size: 10px;
}

.eir-complete-actions button small {
    opacity: 0.6;

    font-size: 8px;
}

.eir-complete-actions button:not(:disabled):hover {
    transform: translateY(-1px);
}

.eir-good-button {
    border-color: rgba(34, 197, 94, 0.25) !important;

    background: rgba(34, 197, 94, 0.08);

    color: #4ade80;
}

.eir-good-button>span {
    background: rgba(34, 197, 94, 0.12);
}

.eir-good-button:not(:disabled):hover {
    border-color: rgba(34, 197, 94, 0.45) !important;

    background: rgba(34, 197, 94, 0.13);
}

.eir-wash-button {
    border-color: rgba(14, 165, 233, 0.25) !important;

    background: rgba(14, 165, 233, 0.07);

    color: #38bdf8;
}

.eir-wash-button>span {
    background: rgba(14, 165, 233, 0.12);
}

.eir-wash-button:not(:disabled):hover {
    border-color: rgba(14, 165, 233, 0.45) !important;

    background: rgba(14, 165, 233, 0.12);
}

.eir-repair-button {
    border-color: rgba(239, 68, 68, 0.25) !important;

    background: rgba(239, 68, 68, 0.07);

    color: #f87171;
}

.eir-repair-button>span {
    background: rgba(239, 68, 68, 0.11);
}

.eir-repair-button:not(:disabled):hover {
    border-color: rgba(239, 68, 68, 0.45) !important;

    background: rgba(239, 68, 68, 0.12);
}

.eir-complete-actions button:disabled {
    cursor: not-allowed;

    filter: saturate(0.45);

    opacity: 0.35;
}


/* ==========================================================
   REPAIR NOTICE
========================================================== */

.eir-repair-notice {
    display: flex;
    flex-direction: column;
    gap: 2px;

    margin-bottom: 11px;
    padding: 9px 10px;

    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 7px;

    background: rgba(249, 115, 22, 0.06);

    color: #fb923c;
}

.eir-repair-notice strong {
    font-size: 9px;
}

.eir-repair-notice span {
    color: #a87659;
    font-size: 8px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1250px) {
    .eir-layout {
        grid-template-columns:
            minmax(0, 1fr) 320px;
    }

    .eir-page {
        padding-right: 22px;
        padding-left: 22px;
    }
}

@media (max-width: 1050px) {
    .eir-layout {
        grid-template-columns:
            1fr;
    }

    .eir-scene-panel {
        position: relative;
        top: auto;

        height: 620px;
    }

    .eir-inspector-panel {
        display: grid;
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));

        align-items: start;
    }

    .eir-damage-form-card {
        grid-column:
            1 / -1;
    }
}

@media (max-width: 700px) {
    .eir-page {
        padding: 20px 14px 30px;
    }

    .eir-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .eir-header-status {
        width: 100%;
        box-sizing: border-box;
    }

    .eir-scene-panel {
        height: 500px;
        min-height: 500px;
    }

    .eir-inspector-panel {
        display: flex;
    }

    .eir-measurements-grid {
        grid-template-columns:
            1fr;
    }

    .eir-damage-detail-grid {
        grid-template-columns:
            1fr;
    }

    .eir-summary-stats {
        grid-template-columns:
            1fr auto;
    }

    .eir-start-card {
        align-items: stretch;
        flex-direction: column;
    }
}

/* ==========================================================
   EIR INSPECTION STEPPER
========================================================== */

.eir-stepper {
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 18px;
    box-sizing: border-box;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    border: 1px solid #1e293b;
    border-radius: 10px;
    background: #0f172a;
}

.eir-stepper-step {
    position: relative;
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;
}

.eir-stepper-marker {
    position: relative;
    z-index: 2;

    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: grid;
    place-items: center;

    border: 1px solid #334155;
    border-radius: 50%;
    background: #020617;
    color: #64748b;

    font-size: 10px;
    font-weight: 800;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.eir-stepper-step.is-active .eir-stepper-marker {
    border-color: #0ea5e9;
    background: #0284c7;
    color: #fff;

    box-shadow:
        0 0 0 4px rgba(14, 165, 233, 0.12);
}

.eir-stepper-step.is-completed .eir-stepper-marker {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.16);
    color: #4ade80;
}

.eir-stepper-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.eir-stepper-copy strong {
    color: #cbd5e1;
    font-size: 11px;
}

.eir-stepper-copy span {
    color: #64748b;
    font-size: 8px;
}

.eir-stepper-step.is-active .eir-stepper-copy strong {
    color: #f8fafc;
}

.eir-stepper-step.is-active .eir-stepper-copy span {
    color: #7dd3fc;
}

.eir-stepper-line {
    position: absolute;
    top: 15px;
    left: calc(100% - 34px);

    width: calc(100% - 38px);
    height: 1px;

    background: #1e293b;
}

.eir-stepper-step.is-completed .eir-stepper-line {
    background: rgba(22, 163, 74, 0.45);
}

/* ==========================================================
   STEP CONTENT
========================================================== */

.eir-step-intro {
    position: relative;

    padding: 16px;

    border: 1px solid #1e293b;
    border-radius: 10px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 165, 233, 0.06),
            rgba(2, 6, 23, 0.25)
        );
}

.eir-step-intro h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 16px;
}

.eir-step-intro p {
    margin: 7px 0 0;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.55;
}

.eir-step-optional-badge {
    width: fit-content;
    margin-top: 10px;
    padding: 4px 8px;

    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;

    background: rgba(148, 163, 184, 0.08);
    color: #94a3b8;

    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.eir-step-retention-notice {
    padding: 11px 12px;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 8px;

    background: rgba(14, 165, 233, 0.06);
}

.eir-step-retention-notice > span {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(14, 165, 233, 0.14);
    color: #7dd3fc;

    font-size: 9px;
    font-weight: 800;
}

.eir-step-retention-notice > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eir-step-retention-notice strong {
    color: #bae6fd;
    font-size: 10px;
}

.eir-step-retention-notice p {
    margin: 0;
    color: #7dd3fc;
    font-size: 9px;
    line-height: 1.5;
}

/* ==========================================================
   STEP NAVIGATION
========================================================== */

.eir-step-navigation {
    padding: 13px 0 2px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    border-top: 1px solid #1e293b;
}

.eir-step-navigation-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.eir-step-navigation-hint {
    max-width: 210px;

    color: #64748b;
    font-size: 9px;
    line-height: 1.45;
}

.eir-step-back-button,
.eir-step-next-button,
.eir-step-skip-button {
    min-height: 36px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 7px;

    font-family: inherit;
    font-size: 9px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease,
        opacity 0.15s ease;
}

.eir-step-back-button {
    border: 1px solid #334155;
    background: transparent;
    color: #94a3b8;
}

.eir-step-next-button {
    border: 1px solid #0284c7;
    background: #0284c7;
    color: #fff;
}

.eir-step-skip-button {
    border: 0;
    background: transparent;
    color: #64748b;
}

.eir-step-next-button:hover:not(:disabled) {
    background: #0369a1;
}

.eir-step-back-button:hover:not(:disabled) {
    border-color: #475569;
    color: #e2e8f0;
}

.eir-step-skip-button:hover:not(:disabled) {
    color: #cbd5e1;
}

.eir-step-back-button:disabled,
.eir-step-next-button:disabled,
.eir-step-skip-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.eir-step-navigation-final {
    align-items: flex-start;
}

@media (max-width: 900px) {
    .eir-stepper {
        margin-bottom: 12px;
    }
}

@media (max-width: 700px) {
    .eir-stepper {
        padding: 12px 8px;
        gap: 4px;
    }

    .eir-stepper-step {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-align: center;
    }

    .eir-stepper-copy span {
        display: none;
    }

    .eir-stepper-line {
        top: 15px;
        left: calc(50% + 20px);
        width: calc(100% - 40px);
    }

    .eir-step-navigation,
    .eir-step-navigation-right {
        align-items: stretch;
        flex-direction: column;
    }

    .eir-step-navigation-right {
        width: 100%;
    }

    .eir-step-navigation-hint {
        max-width: none;
    }

    .eir-step-back-button,
    .eir-step-next-button,
    .eir-step-skip-button {
        width: 100%;
    }
}
/* ========================================
   SERVICE ORDERS PAGE
======================================== */

.service-orders-page {
  display: flex;
  flex-direction: column;

  gap: 20px;
}

/* ========================================
   HEADER
======================================== */

.service-orders-page .operation-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 0;
}

.service-orders-page .operation-page-header>div {
  min-width: 0;
}

.service-orders-page .operation-page-header h1 {
  margin: 0;
}

.service-orders-page .operation-page-header p {
  max-width: 620px;
}

.service-orders-page .operation-page-header .operation-primary-button {
  flex-shrink: 0;

  min-height: 38px;

  padding:
    0 15px;
}

/* ========================================
   GRID
======================================== */

.service-order-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fill,
      minmax(320px,
        1fr));

  gap: 14px;
}

/* ========================================
   CARD
======================================== */

.service-order-card {
  display: flex;
  flex-direction: column;

  gap: 16px;

  min-height: 250px;
}

.service-order-card-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}

.service-order-card-header h2 {
  margin:
    3px 0 0;

  color:
    #f8fafc;

  font-size:
    16px;
}

.service-order-label {
  color:
    #64748b;

  font-size:
    9px;

  text-transform:
    uppercase;

  letter-spacing:
    0.4px;
}

/* ========================================
   INFO
======================================== */

.service-order-info-grid {
  display: grid;

  grid-template-columns:
    repeat(3,
      minmax(0,
        1fr));

  gap: 8px;
}

.service-info {
  padding:
    9px;

  display: flex;
  flex-direction: column;

  gap: 4px;

  border:
    1px solid #1e293b;

  border-radius:
    6px;

  background:
    #020617;
}

.service-info span {
  color:
    #64748b;

  font-size:
    8px;

  text-transform:
    uppercase;
}

.service-info strong {
  overflow:
    hidden;

  color:
    #e2e8f0;

  font-size:
    11px;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

/* ========================================
   ORDER LIST
======================================== */

.service-order-list {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.service-order-list h3 {
  margin: 0;

  color:
    #94a3b8;

  font-size:
    11px;
}

.service-order-row {
  padding:
    9px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;

  border:
    1px solid #1e293b;

  border-radius:
    6px;

  background:
    #020617;
}

.service-order-row>div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.service-order-row strong {
  color:
    #f8fafc;

  font-size:
    10px;
}

.service-order-row span {
  color:
    #64748b;

  font-size:
    8px;
}

/* ========================================
   ACTIONS
======================================== */

.service-order-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: auto;
}

.service-start-button,
.service-complete-button {
  min-height: 36px;

  padding:
    9px 12px;

  border:
    none;

  border-radius:
    6px;

  color:
    white;

  font-size:
    10px;

  font-weight:
    600;

  cursor:
    pointer;

  transition:
    background 0.15s ease,
    opacity 0.15s ease;
}

.service-start-button {
  background:
    #d97706;
}

.service-complete-button {
  background:
    #16a34a;
}

.service-start-button:hover:not(:disabled) {
  background:
    #b45309;
}

.service-complete-button:hover:not(:disabled) {
  background:
    #15803d;
}

.service-start-button:disabled,
.service-complete-button:disabled {
  opacity:
    0.5;

  cursor:
    not-allowed;
}

/* ========================================
   READY MESSAGE
======================================== */

.service-ready-message {
  width: 100%;

  box-sizing:
    border-box;

  padding:
    10px;

  border:
    1px solid #166534;

  border-radius:
    6px;

  background:
    rgba(22,
      163,
      74,
      0.1);

  color:
    #4ade80;

  font-size:
    11px;

  font-weight:
    600;

  text-align:
    center;
}

/* ========================================
   ENTRY STATUS
======================================== */

.service-entry-status,
.service-status-badge {
  flex-shrink:
    0;

  display:
    inline-flex;

  align-items:
    center;
  justify-content:
    center;

  padding:
    4px 7px;

  border-radius:
    999px;

  font-size:
    8px;

  font-weight:
    600;

  white-space:
    nowrap;
}

.service-entry-status-waiting_repair {
  background:
    rgba(220,
      38,
      38,
      0.15);

  color:
    #f87171;
}

.service-entry-status-waiting_wash {
  background:
    rgba(2,
      132,
      199,
      0.15);

  color:
    #38bdf8;
}

.service-entry-status-ready_for_yard {
  background:
    rgba(22,
      163,
      74,
      0.15);

  color:
    #4ade80;
}

/* ========================================
   ORDER STATUS
======================================== */

.service-status-pending {
  background:
    rgba(234,
      179,
      8,
      0.15);

  color:
    #facc15;
}

.service-status-in_progress {
  background:
    rgba(249,
      115,
      22,
      0.15);

  color:
    #fb923c;
}

.service-status-completed {
  background:
    rgba(22,
      163,
      74,
      0.15);

  color:
    #4ade80;
}

.service-status-cancelled {
  background:
    rgba(100,
      116,
      139,
      0.15);

  color:
    #94a3b8;
}

/* ========================================
   EMPTY STATE
======================================== */

.service-empty-state {
  position:
    relative;

  min-height:
    300px;

  overflow:
    hidden;

  display:
    flex;

  align-items:
    center;
  justify-content:
    center;

  flex-direction:
    column;

  gap:
    17px;

  padding:
    48px 30px;

  border:
    1px solid #1e293b;

  background:
    radial-gradient(circle at 50% 0%,
      rgba(14,
        165,
        233,
        0.09),
      transparent 52%),
    #0f172a;

  text-align:
    center;
}

.service-empty-state::after {
  content:
    '';

  position:
    absolute;

  width:
    260px;
  height:
    260px;

  top:
    -190px;
  left:
    50%;

  transform:
    translateX(-50%);

  border:
    1px solid rgba(56,
      189,
      248,
      0.07);

  border-radius:
    50%;

  pointer-events:
    none;
}

.service-empty-icon {
  position:
    relative;

  z-index:
    1;

  width:
    54px;
  height:
    54px;

  display:
    flex;

  align-items:
    center;
  justify-content:
    center;

  border:
    1px solid rgba(34,
      197,
      94,
      0.28);

  border-radius:
    50%;

  background:
    rgba(34,
      197,
      94,
      0.1);

  color:
    #4ade80;

  font-size:
    22px;

  font-weight:
    700;

  box-shadow:
    0 0 0 8px rgba(34,
      197,
      94,
      0.035);
}

.service-empty-content {
  position:
    relative;

  z-index:
    1;

  max-width:
    470px;

  display:
    flex;
  flex-direction:
    column;

  align-items:
    center;

  gap:
    6px;
}

.service-empty-eyebrow {
  margin-bottom:
    2px;

  color:
    #38bdf8;

  font-size:
    9px;

  font-weight:
    700;

  letter-spacing:
    0.9px;

  text-transform:
    uppercase;
}

.service-empty-content h2 {
  margin:
    0;

  color:
    #f8fafc;

  font-size:
    20px;

  font-weight:
    700;
}

.service-empty-content p {
  margin:
    0;

  color:
    #64748b;

  font-size:
    11px;

  line-height:
    1.65;
}

/* ========================================
   EMPTY REFRESH
======================================== */

.service-empty-refresh {
  position:
    relative;

  z-index:
    1;

  min-height:
    36px;

  padding:
    0 15px;

  border:
    1px solid #334155;

  border-radius:
    6px;

  background:
    #172033;

  color:
    #cbd5e1;

  font-size:
    10px;

  font-weight:
    600;

  cursor:
    pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.service-empty-refresh:hover:not(:disabled) {
  border-color:
    #475569;

  background:
    #1e293b;

  color:
    #f8fafc;
}

.service-empty-refresh:disabled {
  opacity:
    0.5;

  cursor:
    not-allowed;
}

/* ========================================
   LOADING
======================================== */

.service-loading-state {
  min-height:
    170px;

  display:
    flex;

  align-items:
    center;
  justify-content:
    center;

  flex-direction:
    column;

  gap:
    12px;

  color:
    #64748b;

  font-size:
    10px;
}

.service-loading-indicator {
  width:
    26px;
  height:
    26px;

  border:
    3px solid #1e293b;

  border-top-color:
    #38bdf8;

  border-radius:
    50%;

  animation:
    service-loading-spin 0.8s linear infinite;
}

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

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 850px) {
  .service-order-info-grid {
    grid-template-columns:
      1fr;
  }

  .service-orders-page .operation-page-header {
    align-items:
      stretch;

    flex-direction:
      column;
  }

  .service-orders-page .operation-page-header .operation-primary-button {
    width:
      100%;
  }
}

@media (max-width: 600px) {
  .service-order-grid {
    grid-template-columns:
      1fr;
  }

  .service-empty-state {
    min-height:
      250px;

    padding:
      38px 20px;
  }

  .service-empty-content h2 {
    font-size:
      18px;
  }
}

/* ==========================================================
   SERVICE DASHBOARD
========================================================== */

.service-dashboard-page {
  display: flex;
  flex-direction: column;

  gap: 18px;

  width: 100%;
  min-height: 100%;

  padding: 28px 32px;

  box-sizing: border-box;
}

/* ==========================================================
   HEADER
========================================================== */

.service-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.service-dashboard-eyebrow {
  display: block;

  margin-bottom: 4px;

  color: #38bdf8;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.service-dashboard-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 30px;
  line-height: 1.1;
}

.service-dashboard-header p {
  max-width: 560px;

  margin:
    6px 0 0;

  color: #64748b;

  font-size: 10px;
  line-height: 1.55;
}

.service-dashboard-terminal {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  margin-top: 10px;

  padding:
    5px 8px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.12);

  border-radius: 999px;

  background:
    rgba(15,
      23,
      42,
      0.72);

  color: #94a3b8;

  font-size: 8px;
}

.service-dashboard-terminal>span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 7px rgba(34,
      197,
      94,
      0.75);
}

.service-dashboard-terminal strong {
  color: #cbd5e1;
}

/* ==========================================================
   REFRESH
========================================================== */

.service-dashboard-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 36px;

  padding:
    0 13px;

  border:
    1px solid rgba(56,
      189,
      248,
      0.18);

  border-radius: 8px;

  cursor: pointer;

  background:
    rgba(2,
      132,
      199,
      0.13);

  color: #7dd3fc;

  font-size: 8px;
  font-weight: 700;
}

.service-dashboard-refresh:hover:not(:disabled) {
  background:
    rgba(2,
      132,
      199,
      0.22);
}

.service-dashboard-refresh:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.service-dashboard-refresh>span {
  font-size: 13px;
}

/* ==========================================================
   SUMMARY
========================================================== */

.service-summary-grid {
  display: grid;

  grid-template-columns:
    repeat(4,
      minmax(0,
        1fr));

  gap: 12px;
}

.service-summary-card {
  position: relative;

  display: flex;
  flex-direction: column;

  gap: 6px;

  overflow: hidden;

  padding:
    15px 17px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.2);

  border-radius: 11px;

  background:
    rgba(15,
      23,
      42,
      0.78);
}

.service-summary-card::after {
  position: absolute;

  right: -18px;
  bottom: -24px;

  width: 72px;
  height: 72px;

  border-radius: 50%;

  background:
    rgba(255,
      255,
      255,
      0.018);

  content: '';
}

.service-summary-card-top {
  display: flex;
  align-items: center;

  gap: 8px;
}

.service-summary-icon {
  display: grid;
  place-items: center;

  width: 27px;
  height: 27px;

  border-radius: 8px;

  font-size: 11px;
  font-weight: 900;
}

.service-summary-icon-pending {
  background:
    rgba(234,
      179,
      8,
      0.12);

  color: #facc15;
}

.service-summary-icon-progress {
  background:
    rgba(56,
      189,
      248,
      0.12);

  color: #38bdf8;
}

.service-summary-icon-completed {
  background:
    rgba(34,
      197,
      94,
      0.12);

  color: #4ade80;
}

.service-summary-icon-total {
  background:
    rgba(168,
      85,
      247,
      0.12);

  color: #c084fc;
}

.service-summary-label {
  color: #64748b;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;
}

.service-summary-card>strong {
  color: #f8fafc;

  font-size: 24px;
}

.service-summary-card>small {
  color: #64748b;

  font-size: 8px;
}

/* ==========================================================
   TABS
========================================================== */

.service-tabs {
  display: grid;

  grid-template-columns:
    repeat(2,
      minmax(0,
        1fr));

  gap: 10px;
}

.service-tab {
  display: grid;
  align-items: center;

  grid-template-columns:
    36px minmax(0,
      1fr) auto;

  gap: 11px;

  padding:
    13px 14px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.22);

  border-radius: 11px;

  cursor: pointer;

  background:
    rgba(15,
      23,
      42,
      0.68);

  text-align: left;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.service-tab:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(56,
      189,
      248,
      0.28);
}

.service-tab.active {
  border-color:
    rgba(56,
      189,
      248,
      0.38);

  background:
    linear-gradient(135deg,
      rgba(14,
        165,
        233,
        0.12),
      rgba(15,
        23,
        42,
        0.9));
}

.service-tab-icon {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  border-radius: 9px;

  background:
    rgba(30,
      41,
      59,
      0.88);

  color: #94a3b8;

  font-size: 14px;
}

.service-tab.active .service-tab-icon {
  background:
    rgba(14,
      165,
      233,
      0.14);

  color: #38bdf8;
}

.service-tab-content {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.service-tab-content small {
  color: #475569;

  font-size: 6px;
  font-weight: 800;

  text-transform: uppercase;
}

.service-tab-content strong {
  margin-top: 1px;

  color: #e2e8f0;

  font-size: 10px;
}

.service-tab-content>span {
  margin-top: 2px;

  overflow: hidden;

  color: #64748b;

  font-size: 7px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.service-tab-count {
  display: grid;
  place-items: center;

  min-width: 23px;
  height: 23px;

  padding:
    0 6px;

  border-radius: 999px;

  background: #1e293b;

  color: #94a3b8;

  font-size: 7px;
  font-weight: 800;
}

.service-tab.active .service-tab-count {
  background:
    rgba(14,
      165,
      233,
      0.11);

  color: #38bdf8;
}

/* ==========================================================
   CONTENT / SECTION
========================================================== */

.service-dashboard-content {
  min-width: 0;
}

.service-section-card {
  width: 100%;

  padding: 18px;

  box-sizing: border-box;

  border:
    1px solid rgba(100,
      116,
      139,
      0.18);

  border-radius: 11px;

  background:
    rgba(15,
      23,
      42,
      0.72);
}

.service-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  margin-bottom: 14px;
}

.service-section-eyebrow {
  display: block;

  margin-bottom: 3px;

  color: #38bdf8;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.service-section-heading h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 17px;
}

.service-section-heading p {
  margin:
    4px 0 0;

  color: #64748b;

  font-size: 8px;
}

.service-section-count {
  display: flex;
  align-items: baseline;

  gap: 4px;

  padding:
    5px 8px;

  border-radius: 999px;

  background: #1e293b;

  color: #64748b;

  font-size: 7px;
}

.service-section-count strong {
  color: #cbd5e1;

  font-size: 11px;
}

/* ==========================================================
   ACTIVE GRID
========================================================== */

.service-active-grid {
  display: grid;

  grid-template-columns:
    repeat(2,
      minmax(0,
        1fr));

  gap: 12px;
}

.service-active-card {
  position: relative;

  overflow: hidden;

  padding: 15px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.2);

  border-radius: 11px;

  background:
    rgba(15,
      23,
      42,
      0.72);
}

.service-active-card-wash {
  border-top:
    2px solid rgba(56,
      189,
      248,
      0.65);
}

.service-active-card-repair {
  border-top:
    2px solid rgba(248,
      113,
      113,
      0.65);
}

.service-active-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}

.service-entry-reference {
  display: block;

  color: #475569;

  font-size: 7px;
  font-weight: 700;

  text-transform: uppercase;
}

.service-active-card-header h3 {
  margin:
    3px 0 0;

  color: #f8fafc;

  font-size: 16px;
}

/* ==========================================================
   ENTRY STATUS
========================================================== */

.service-entry-status,
.service-status-badge {
  display: inline-flex;

  padding:
    4px 7px;

  border-radius: 999px;

  font-size: 7px;
  font-weight: 700;
}

.service-entry-status-waiting_wash {
  background:
    rgba(56,
      189,
      248,
      0.1);

  color: #38bdf8;
}

.service-entry-status-waiting_repair {
  background:
    rgba(239,
      68,
      68,
      0.1);

  color: #f87171;
}

.service-entry-status-ready_for_yard {
  background:
    rgba(34,
      197,
      94,
      0.1);

  color: #4ade80;
}

.service-status-pending {
  background:
    rgba(234,
      179,
      8,
      0.12);

  color: #facc15;
}

.service-status-in_progress {
  background:
    rgba(56,
      189,
      248,
      0.12);

  color: #38bdf8;
}

.service-status-completed {
  background:
    rgba(34,
      197,
      94,
      0.12);

  color: #4ade80;
}

.service-status-cancelled {
  background:
    rgba(239,
      68,
      68,
      0.12);

  color: #f87171;
}

/* ==========================================================
   REQUIRED SERVICE
========================================================== */

.service-required-banner {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-top: 13px;

  padding:
    10px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.18);

  border-radius: 8px;

  background:
    rgba(2,
      6,
      23,
      0.4);
}

.service-required-icon {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border-radius: 8px;

  font-size: 12px;
}

.service-required-icon-wash {
  background:
    rgba(56,
      189,
      248,
      0.1);

  color: #38bdf8;
}

.service-required-icon-repair {
  background:
    rgba(239,
      68,
      68,
      0.1);

  color: #f87171;
}

.service-required-banner>div {
  display: flex;
  flex-direction: column;
}

.service-required-banner span {
  color: #475569;

  font-size: 6px;

  text-transform: uppercase;
}

.service-required-banner strong {
  margin-top: 2px;

  color: #cbd5e1;

  font-size: 9px;
}

/* ==========================================================
   ACTIVE INFO
========================================================== */

.service-active-info-grid {
  display: grid;

  grid-template-columns:
    repeat(4,
      minmax(0,
        1fr));

  gap: 7px;

  margin-top: 10px;
}

.service-active-info {
  padding:
    8px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.15);

  border-radius: 7px;

  background:
    rgba(2,
      6,
      23,
      0.32);
}

.service-active-info span {
  display: block;

  color: #475569;

  font-size: 6px;

  text-transform: uppercase;
}

.service-active-info strong {
  display: block;

  margin-top: 2px;

  overflow: hidden;

  color: #cbd5e1;

  font-size: 8px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

/* ========================================
   SERVICE ORDER ROW
======================================== */

.service-active-order {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  align-items: center;

  gap: 24px;

  margin-top: 12px;

  padding: 14px 16px;

  border:
    1px solid #1e293b;

  border-radius: 9px;

  background:
    #0b1323;
}

/* Información del servicio */

.service-active-order>div:first-child {
  min-width: 0;

  display: flex;

  flex-direction: column;

  gap: 3px;
}

.service-active-order>div:first-child>span {
  color: #64748b;

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.06em;

  text-transform: uppercase;
}

.service-active-order>div:first-child>strong {
  color: #f8fafc;

  font-size: 12px;
  font-weight: 650;
}

.service-active-order>div:first-child>small {
  margin-top: 2px;

  color: #cbd5e1;

  font-size: 14px;
  font-weight: 700;
}

/* ========================================
   ACTION AREA
======================================== */

.service-active-actions {
  min-width: 150px;

  display: flex;
  flex-direction: column;

  align-items: stretch;

  justify-content: center;

  gap: 9px;
}

/* ========================================
   COMMON BUTTON
======================================== */

.service-create-button,
.service-start-button,
.service-complete-button {
  min-width: 150px;
  min-height: 34px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding:
    0 13px;

  border:
    1px solid #334155;

  border-radius: 7px;

  background:
    #0f172a;

  color:
    #cbd5e1;

  font-family: inherit;

  font-size: 9px;
  font-weight: 600;

  white-space: nowrap;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.service-create-button:hover:not(:disabled),
.service-start-button:hover:not(:disabled),
.service-complete-button:hover:not(:disabled) {
  transform:
    translateY(-1px);
}

.service-create-button:disabled,
.service-start-button:disabled,
.service-complete-button:disabled {
  opacity: 0.45;

  cursor: not-allowed;

  transform: none;
}

/* ========================================
   CREATE
======================================== */

.service-create-button {
  border-color:
    rgba(14,
      165,
      233,
      0.30);

  background:
    rgba(14,
      165,
      233,
      0.06);

  color:
    #7dd3fc;
}

.service-create-button:hover:not(:disabled) {
  border-color:
    #0ea5e9;

  background:
    rgba(14,
      165,
      233,
      0.12);

  color:
    #e0f2fe;
}

/* ========================================
   START SERVICE
======================================== */

.service-start-button {
  border-color:
    rgba(14,
      165,
      233,
      0.30);

  background:
    rgba(14,
      165,
      233,
      0.07);

  color:
    #7dd3fc;
}

.service-start-button:hover:not(:disabled) {
  border-color:
    #0ea5e9;

  background:
    rgba(14,
      165,
      233,
      0.14);

  color:
    #e0f2fe;
}

/* ========================================
   COMPLETE SERVICE
======================================== */

.service-complete-button {
  border-color:
    rgba(34,
      197,
      94,
      0.30);

  background:
    rgba(34,
      197,
      94,
      0.06);

  color:
    #86efac;
}

.service-complete-button:hover:not(:disabled) {
  border-color:
    rgba(34,
      197,
      94,
      0.65);

  background:
    rgba(34,
      197,
      94,
      0.12);

  color:
    #bbf7d0;
}

/* ========================================
   ORDER STATUS BADGE
======================================== */

.service-status-badge {
  min-height: 21px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  align-self: stretch;

  padding:
    3px 9px;

  border:
    1px solid #334155;

  border-radius: 999px;

  background:
    #111827;

  color:
    #94a3b8;

  font-size: 7px;
  font-weight: 700;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}

.service-status-pending {
  border-color:
    rgba(245,
      158,
      11,
      0.22);

  background:
    rgba(245,
      158,
      11,
      0.07);

  color:
    #fcd34d;
}

.service-status-in_progress {
  border-color:
    rgba(14,
      165,
      233,
      0.24);

  background:
    rgba(14,
      165,
      233,
      0.07);

  color:
    #7dd3fc;
}

.service-status-completed {
  border-color:
    rgba(34,
      197,
      94,
      0.24);

  background:
    rgba(34,
      197,
      94,
      0.07);

  color:
    #86efac;
}

.service-status-cancelled {
  border-color:
    rgba(239,
      68,
      68,
      0.24);

  background:
    rgba(239,
      68,
      68,
      0.07);

  color:
    #fca5a5;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 720px) {
  .service-active-order {
    grid-template-columns:
      1fr;

    gap: 14px;
  }

  .service-active-actions {
    width: 100%;
    min-width: 0;
  }

  .service-create-button,
  .service-start-button,
  .service-complete-button {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================
   HISTORY FILTERS
========================================================== */

.service-history-filters {
  margin-bottom: 14px;

  padding: 12px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.18);

  border-radius: 9px;

  background:
    rgba(2,
      6,
      23,
      0.3);
}

.service-history-filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 10px;
}

.service-history-filter-header strong {
  display: block;

  color: #cbd5e1;

  font-size: 10px;
}

.service-history-filter-header p {
  margin:
    2px 0 0;

  color: #475569;

  font-size: 7px;
}

.service-filter-active {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  padding:
    4px 7px;

  border-radius: 999px;

  background:
    rgba(14,
      165,
      233,
      0.08);

  color: #38bdf8;

  font-size: 6px;
  font-weight: 800;
}

.service-filter-active>span {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #38bdf8;
}

.service-history-filter-grid {
  display: grid;

  grid-template-columns:
    minmax(230px,
      2fr) minmax(150px,
      1fr) minmax(150px,
      1fr) minmax(145px,
      1fr) minmax(145px,
      1fr);

  gap: 8px;
}

.service-history-filter-field {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.service-history-filter-field label {
  margin-bottom: 4px;

  color: #64748b;

  font-size: 7px;
  font-weight: 700;
}

.service-history-filter-field>input,
.service-history-filter-field>select,
.service-history-search input {
  width: 100%;
  height: 34px;

  box-sizing: border-box;

  border:
    1px solid #334155;

  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #cbd5e1;

  font-size: 8px;
}

.service-history-filter-field>input,
.service-history-filter-field>select {
  padding:
    0 9px;
}

.service-history-filter-field>input:focus,
.service-history-filter-field>select:focus,
.service-history-search input:focus {
  border-color: #0284c7;
}

.service-history-search {
  position: relative;

  display: flex;
  align-items: center;
}

.service-history-search>span {
  position: absolute;

  left: 9px;

  color: #64748b;
}

.service-history-search input {
  padding:
    0 30px 0 28px;
}

.service-history-search button {
  position: absolute;

  right: 7px;

  border: 0;

  cursor: pointer;

  background: transparent;

  color: #64748b;
}

.service-history-filter-actions {
  display: flex;
  justify-content: flex-end;

  gap: 7px;

  margin-top: 10px;
}

.service-clear-filters,
.service-apply-filters {
  min-height: 33px;

  padding:
    0 11px;

  border-radius: 7px;

  cursor: pointer;

  font-size: 8px;
  font-weight: 700;
}

.service-clear-filters {
  border:
    1px solid #334155;

  background: transparent;

  color: #94a3b8;
}

.service-apply-filters {
  border: 0;

  background: #0284c7;

  color: #fff;
}

.service-clear-filters:disabled,
.service-apply-filters:disabled {
  opacity: 0.45;

  cursor: not-allowed;
}

/* ==========================================================
   HISTORY TABLE
========================================================== */

.service-history-table-wrapper {
  width: 100%;

  overflow-x: auto;

  border:
    1px solid #1e293b;

  border-radius: 9px;
}

.service-history-table {
  width: 100%;

  border-collapse: collapse;

  background: #020617;
}

.service-history-table thead {
  background: #111827;
}

.service-history-table th {
  padding:
    10px 11px;

  border-bottom:
    1px solid #334155;

  color: #64748b;

  font-size: 7px;
  font-weight: 700;

  text-align: left;

  text-transform: uppercase;
}

.service-history-table td {
  padding:
    11px;

  border-bottom:
    1px solid #1e293b;

  color: #cbd5e1;

  font-size: 8px;

  white-space: nowrap;
}

.service-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.service-history-table tbody tr:hover {
  background:
    rgba(30,
      41,
      59,
      0.3);
}

.service-history-order-number,
.service-history-container,
.service-history-date {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.service-history-order-number strong {
  color: #38bdf8;
}

.service-history-order-number span,
.service-history-container span,
.service-history-date span {
  color: #475569;

  font-size: 6px;
}

.service-history-container strong,
.service-history-date strong {
  color: #cbd5e1;

  font-size: 8px;
}

.service-history-entry {
  color: #94a3b8;
}

/* ==========================================================
   SERVICE TYPE
========================================================== */

.service-type-badge {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  padding:
    4px 7px;

  border-radius: 999px;

  background: #1e293b;

  color: #94a3b8;

  font-size: 7px;
  font-weight: 700;
}

.service-type-badge>span {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #64748b;
}

.service-type-badge.wash {
  background:
    rgba(56,
      189,
      248,
      0.1);

  color: #38bdf8;
}

.service-type-badge.wash>span {
  background: #38bdf8;
}

.service-type-badge.repair {
  background:
    rgba(239,
      68,
      68,
      0.1);

  color: #f87171;
}

.service-type-badge.repair>span {
  background: #f87171;
}

.service-date-empty {
  color: #475569;
}

/* ==========================================================
   HISTORY EMPTY
========================================================== */

.service-history-empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;

  min-height: 180px;

  gap: 4px;

  border:
    1px dashed #334155;

  border-radius: 9px;
}

.service-history-empty-icon {
  display: grid;
  place-items: center;

  width: 32px;
  height: 32px;

  margin-bottom: 5px;

  border-radius: 9px;

  background:
    rgba(30,
      41,
      59,
      0.7);

  color: #64748b;
}

.service-history-empty strong {
  color: #cbd5e1;

  font-size: 10px;
}

.service-history-empty p {
  margin: 0;

  color: #64748b;

  font-size: 8px;
}

/* ==========================================================
   PAGINATION
========================================================== */

.service-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-top: 12px;

  color: #64748b;

  font-size: 8px;
}

.service-history-pagination>div:first-child {
  display: flex;
  align-items: center;

  gap: 4px;
}

.service-history-pagination strong {
  color: #cbd5e1;
}

.service-history-pagination-actions {
  display: flex;
  align-items: center;

  gap: 7px;
}

.service-history-pagination-actions button {
  min-height: 30px;

  padding:
    0 9px;

  border:
    1px solid #334155;

  border-radius: 6px;

  cursor: pointer;

  background: #1e293b;

  color: #cbd5e1;

  font-size: 7px;
}

.service-history-pagination-actions button:disabled {
  opacity: 0.35;

  cursor: not-allowed;
}

.service-history-pagination-actions>span {
  display: grid;
  place-items: center;

  min-width: 25px;
  height: 25px;

  border-radius: 6px;

  background:
    rgba(14,
      165,
      233,
      0.1);

  color: #38bdf8;

  font-size: 8px;
  font-weight: 800;
}

/* ==========================================================
   LOADING / EMPTY
========================================================== */

.service-loading-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;

  min-height: 180px;

  gap: 4px;
}

.service-loading-state strong {
  color: #cbd5e1;

  font-size: 10px;
}

.service-loading-state span {
  color: #64748b;

  font-size: 8px;
}

.service-empty-state-modern {
  display: flex;
  align-items: center;

  gap: 13px;

  min-height: 90px;
}

.service-empty-icon {
  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  flex:
    0 0 auto;

  border-radius: 11px;

  background:
    rgba(34,
      197,
      94,
      0.1);

  color: #4ade80;

  font-size: 16px;
}

.service-empty-state-modern h2 {
  margin:
    2px 0 3px;

  color: #e2e8f0;

  font-size: 14px;
}

.service-empty-state-modern p {
  margin: 0;

  color: #64748b;

  font-size: 8px;
}

.service-refresh-secondary {
  margin-left: auto;

  min-height: 32px;

  padding:
    0 10px;

  border:
    1px solid #334155;

  border-radius: 7px;

  cursor: pointer;

  background: #1e293b;

  color: #cbd5e1;

  font-size: 8px;
}

/* ==========================================================
   COMPLETION MODAL FIELD
========================================================== */

.service-complete-modal-field {
  display: flex;
  flex-direction: column;

  gap: 5px;

  margin-top: 12px;
}

.service-complete-modal-field label {
  color: #94a3b8;

  font-size: 8px;
  font-weight: 700;
}

.service-complete-modal-field textarea {
  width: 100%;
  min-height: 90px;

  padding: 9px;

  box-sizing: border-box;

  resize: vertical;

  border:
    1px solid #334155;

  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #e2e8f0;

  font-family: inherit;

  font-size: 9px;
}

.service-complete-modal-field textarea:focus {
  border-color: #0284c7;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1100px) {
  .service-summary-grid {
    grid-template-columns:
      repeat(2,
        minmax(0,
          1fr));
  }

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

@media (max-width: 900px) {

  .service-active-grid,
  .service-tabs {
    grid-template-columns:
      1fr;
  }

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

@media (max-width: 650px) {
  .service-dashboard-page {
    padding: 20px;
  }

  .service-dashboard-header {
    flex-direction: column;
  }

  .service-dashboard-refresh {
    width: 100%;
  }

  .service-summary-grid,
  .service-history-filter-grid {
    grid-template-columns:
      1fr;
  }

  .service-history-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .service-history-pagination-actions {
    justify-content: space-between;
  }

  .service-empty-state-modern {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-refresh-secondary {
    margin-left: 0;
  }
}

/* =========================================================
   CREATE SERVICE ORDER MODAL
========================================================= */

.service-create-modal {
  width: 100%;
  min-width: 0;
  max-width: 100%;

  display: flex;
  flex-direction: column;

  gap: 18px;

  padding-top: 4px;

  box-sizing: border-box;

  overflow: hidden;
}

/* =========================================================
   TOP SUMMARY
========================================================= */

.service-create-modal-summary {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr);

  gap: 10px;

  box-sizing: border-box;
}

.service-create-modal-summary>div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;

  padding: 12px 14px;

  box-sizing: border-box;

  border:
    1px solid rgba(100,
      116,
      139,
      0.24);

  border-radius: 10px;

  background:
    rgba(15,
      23,
      42,
      0.52);
}

.service-create-modal-summary span {
  overflow: hidden;

  color:
    #64748b;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.08em;

  text-overflow: ellipsis;

  text-transform: uppercase;

  white-space: nowrap;
}

.service-create-modal-summary strong {
  overflow: hidden;

  color:
    #f8fafc;

  font-size: 13px;
  font-weight: 700;

  text-overflow: ellipsis;

  white-space: nowrap;
}

/* =========================================================
   SECTION
========================================================= */

.service-create-modal-section {
  width: 100%;

  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 10px;

  box-sizing: border-box;
}

.service-create-modal-label {
  color:
    #cbd5e1;

  font-size: 10px;
  font-weight: 700;
}

/* =========================================================
   EXECUTION TYPE
========================================================= */

.service-execution-options {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) minmax(0, 1fr);

  gap: 8px;

  box-sizing: border-box;
}

.service-execution-options button {
  min-width: 0;
  min-height: 70px;

  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;

  gap: 4px;

  padding: 12px 14px;

  box-sizing: border-box;

  border:
    1px solid rgba(100,
      116,
      139,
      0.26);

  border-radius: 10px;

  background:
    rgba(15,
      23,
      42,
      0.48);

  color:
    #cbd5e1;

  cursor: pointer;

  text-align: left;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.service-execution-options button:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(56,
      189,
      248,
      0.32);
}

.service-execution-options button.active {
  border-color:
    rgba(14,
      165,
      233,
      0.72);

  background:
    linear-gradient(135deg,
      rgba(14,
        165,
        233,
        0.13),
      rgba(15,
        23,
        42,
        0.72));

  box-shadow:
    inset 0 0 0 1px rgba(14,
      165,
      233,
      0.05);
}

.service-execution-options button span {
  max-width: 100%;

  overflow: hidden;

  color:
    #f8fafc;

  font-size: 11px;
  font-weight: 700;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.service-execution-options button small {
  max-width: 100%;

  color:
    #64748b;

  font-size: 8px;

  line-height: 1.45;

  text-align: left;
}

/* =========================================================
   FIELDS
========================================================= */

.service-create-modal-field {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 6px;

  box-sizing: border-box;
}

.service-create-modal-field>span {
  color:
    #cbd5e1;

  font-size: 9px;
  font-weight: 700;
}

.service-create-modal-field>span b {
  margin-left: 3px;

  color:
    #fb7185;
}

.service-create-modal-field>small {
  color:
    #64748b;

  font-size: 8px;
}

/* =========================================================
   SELECT
========================================================= */

.service-create-modal-field select {
  width: 100%;
  min-width: 0;
  height: 40px;

  padding:
    0 36px 0 12px;

  box-sizing: border-box;

  border:
    1px solid #334155;

  border-radius: 9px;

  outline: none;

  background:
    #0b1323;

  color:
    #e2e8f0;

  font-family: inherit;
  font-size: 10px;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.service-create-modal-field select:focus {
  border-color:
    #0ea5e9;

  box-shadow:
    0 0 0 3px rgba(14,
      165,
      233,
      0.08);
}

/* =========================================================
   COST INPUT
========================================================= */

.service-cost-input {
  width: 100%;
  min-width: 0;
  height: 40px;

  display: grid;

  grid-template-columns:
    36px minmax(0, 1fr);

  align-items: center;

  box-sizing: border-box;

  overflow: hidden;

  border:
    1px solid #334155;

  border-radius: 9px;

  background:
    #0b1323;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.service-cost-input:focus-within {
  border-color:
    #0ea5e9;

  box-shadow:
    0 0 0 3px rgba(14,
      165,
      233,
      0.08);
}

.service-cost-input>span {
  display: grid;
  place-items: center;

  height: 100%;

  color:
    #64748b;

  font-size: 11px;
  font-weight: 700;

  border-right:
    1px solid rgba(100,
      116,
      139,
      0.16);
}

.service-cost-input input {
  width: 100%;
  min-width: 0;
  height: 100%;

  padding:
    0 11px;

  box-sizing: border-box;

  border: 0;

  outline: none;

  background:
    transparent;

  color:
    #e2e8f0;

  font-family: inherit;
  font-size: 11px;
}

.service-cost-input input::placeholder {
  color:
    #475569;
}

/* Remove number arrows */

.service-cost-input input::-webkit-inner-spin-button,
.service-cost-input input::-webkit-outer-spin-button {
  margin: 0;

  appearance: none;
}

.service-cost-input input[type='number'] {
  appearance:
    textfield;
}

/* =========================================================
   FINANCIAL SUMMARY
========================================================= */

.service-create-financial-summary {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3,
      minmax(0,
        1fr));

  gap: 8px;

  padding-top: 14px;

  box-sizing: border-box;

  border-top:
    1px solid rgba(100,
      116,
      139,
      0.18);
}

.service-create-financial-summary>div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;

  padding: 10px 11px;

  box-sizing: border-box;

  border:
    1px solid rgba(100,
      116,
      139,
      0.10);

  border-radius: 8px;

  background:
    rgba(15,
      23,
      42,
      0.42);
}

.service-create-financial-summary span {
  overflow: hidden;

  color:
    #64748b;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.06em;

  text-overflow: ellipsis;

  text-transform: uppercase;

  white-space: nowrap;
}

.service-create-financial-summary strong {
  overflow: hidden;

  color:
    #e2e8f0;

  font-size: 11px;
  font-weight: 700;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.service-create-margin strong {
  color:
    #4ade80;
}

/* =========================================================
   NEGATIVE MARGIN
========================================================= */

.service-create-margin-negative strong {
  color:
    #fb7185;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 650px) {
  .service-create-modal-summary {
    grid-template-columns:
      1fr;
  }

  .service-execution-options {
    grid-template-columns:
      1fr;
  }

  .service-create-financial-summary {
    grid-template-columns:
      1fr;
  }
}

/* =========================================================
   SERVICE ORDER EXECUTION DETAILS
========================================================= */

.service-active-order-main {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.service-order-operation-details {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 5px;

  margin-top: 12px;

  padding-top: 10px;

  border-top:
    1px solid rgba(100,
      116,
      139,
      0.14);
}

.service-order-operation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.service-order-operation-row>span {
  color:
    #64748b;

  font-size: 8px;
  font-weight: 700;
}

.service-order-operation-row>strong {
  overflow: hidden;

  color:
    #cbd5e1;

  font-size: 9px;
  font-weight: 700;

  text-align: right;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.service-execution-internal {
  color:
    #38bdf8 !important;
}

.service-execution-external {
  color:
    #c084fc !important;
}

/* =========================================================
   FINANCIAL DATA
========================================================= */

.service-order-financial-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3,
      minmax(0,
        1fr));

  gap: 6px;

  margin-top: 10px;
}

.service-order-financial-item {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;

  padding: 8px 9px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.12);

  border-radius: 7px;

  background:
    rgba(15,
      23,
      42,
      0.52);
}

.service-order-financial-item>span {
  overflow: hidden;

  color:
    #64748b;

  font-size: 6px;
  font-weight: 800;

  letter-spacing: 0.05em;

  text-overflow: ellipsis;

  text-transform: uppercase;

  white-space: nowrap;
}

.service-order-financial-item>strong {
  overflow: hidden;

  color:
    #e2e8f0;

  font-size: 9px;
  font-weight: 700;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.service-order-financial-positive>strong {
  color:
    #4ade80;
}

.service-order-financial-negative>strong {
  color:
    #fb7185;
}

@media (max-width: 720px) {
  .service-order-financial-grid {
    grid-template-columns:
      1fr;
  }

  .service-order-operation-row {
    align-items:
      flex-start;

    flex-direction:
      column;

    gap: 2px;
  }

  .service-order-operation-row>strong {
    text-align:
      left;
  }
}

/* =========================================================
   SERVICE HISTORY - EXTERNAL SERVICES
========================================================= */

.service-execution-badge {
  display: inline-flex;
  align-items: center;

  gap: 6px;

  padding:
    5px 8px;

  border-radius:
    999px;

  font-size:
    7px;

  font-weight:
    800;

  white-space:
    nowrap;
}

.service-execution-badge > span {
  width:
    5px;

  height:
    5px;

  flex:
    0 0 auto;

  border-radius:
    50%;
}

/* INTERNAL */

.service-execution-badge.internal {
  border:
    1px solid rgba(
      14,
      165,
      233,
      0.18
    );

  background:
    rgba(
      14,
      165,
      233,
      0.07
    );

  color:
    #7dd3fc;
}

.service-execution-badge.internal > span {
  background:
    #38bdf8;
}

/* EXTERNAL */

.service-execution-badge.external {
  border:
    1px solid rgba(
      168,
      85,
      247,
      0.20
    );

  background:
    rgba(
      168,
      85,
      247,
      0.07
    );

  color:
    #c084fc;
}

.service-execution-badge.external > span {
  background:
    #a855f7;
}

/* =========================================================
   SUPPLIER
========================================================= */

.service-history-supplier {
  min-width:
    120px;

  display:
    flex;

  flex-direction:
    column;

  gap:
    2px;
}

.service-history-supplier strong {
  max-width:
    180px;

  overflow:
    hidden;

  color:
    #cbd5e1;

  font-size:
    8px;

  font-weight:
    700;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;
}

.service-history-supplier span {
  color:
    #64748b;

  font-size:
    7px;
}

/* =========================================================
   MONEY
========================================================= */

.service-history-money {
  color:
    #e2e8f0;

  font-size:
    8px;

  font-weight:
    700;

  white-space:
    nowrap;
}

.service-history-empty-value {
  color:
    #475569;

  font-size:
    9px;
}

/* =========================================================
   MARGIN
========================================================= */

.service-history-margin {
  font-size:
    8px;

  font-weight:
    800;

  white-space:
    nowrap;
}

.service-history-margin-positive {
  color:
    #4ade80;
}

.service-history-margin-neutral {
  color:
    #94a3b8;
}

.service-history-margin-negative {
  color:
    #fb7185;
}

/* =========================================================
   HISTORY TABLE WIDTH
========================================================= */

.service-history-table {
  min-width:
    1450px;
}

.service-history-table-wrapper {
  width:
    100%;

  overflow-x:
    auto;
}/* ==========================================================
   PATIO YMS
   YARD CONTROLS HELP
========================================================== */


/* ==========================================================
   TRIGGER POSITION
========================================================== */

.yard-controls-help-trigger-wrapper {
  position: absolute;

  top: 18px;
  right: 148px;

  z-index: 70;

  pointer-events: none;
}


/* ==========================================================
   TRIGGER
========================================================== */

.yard-controls-help-trigger {
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  padding: 0 10px 0 6px;

  border: 1px solid
    rgba(
      71,
      85,
      105,
      0.58
    );

  border-radius: 8px;

  background:
    rgba(
      6,
      14,
      28,
      0.88
    );

  -webkit-backdrop-filter:
    blur(12px);

  backdrop-filter:
    blur(12px);

  color: #cbd5e1;

  cursor: pointer;

  pointer-events: auto;

  font-family: inherit;

  font-size: 8px;
  font-weight: 800;

  box-shadow:
    0 10px 28px
    rgba(
      0,
      0,
      0,
      0.2
    );

  transition:
    border-color
      120ms ease,
    background
      120ms ease,
    color
      120ms ease,
    transform
      120ms ease;
}

.yard-controls-help-trigger:hover {
  border-color: #3b82f6;

  background:
    rgba(
      20,
      38,
      67,
      0.94
    );

  color: #eff6ff;

  transform:
    translateY(
      -1px
    );
}


/* ==========================================================
   TRIGGER ICON
========================================================== */

.yard-controls-help-trigger-icon {
  width: 23px;
  height: 23px;

  flex: 0 0 23px;

  display: grid;
  place-items: center;

  border: 1px solid
    rgba(
      59,
      130,
      246,
      0.5
    );

  border-radius: 6px;

  background:
    rgba(
      37,
      99,
      235,
      0.16
    );

  color: #93c5fd;

  font-size: 11px;
  font-weight: 900;
}


/* ==========================================================
   BACKDROP
========================================================== */

.yard-controls-help-backdrop {
  position: absolute;

  inset: 0;

  z-index: 200;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    rgba(
      2,
      8,
      18,
      0.45
    );

  -webkit-backdrop-filter:
    blur(2px);

  backdrop-filter:
    blur(2px);

  pointer-events: auto;

  animation:
    yard-controls-backdrop-in
    140ms ease-out;
}

@keyframes yard-controls-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* ==========================================================
   PANEL
========================================================== */

.yard-controls-help-panel {
  width:
    min(
      560px,
      calc(
        100% - 32px
      )
    );

  max-height:
    calc(
      100% - 40px
    );

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid
    rgba(
      51,
      65,
      85,
      0.92
    );

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(
        13,
        25,
        44,
        0.98
      ),
      rgba(
        5,
        14,
        27,
        0.99
      )
    );

  box-shadow:
    0 28px 80px
    rgba(
      0,
      0,
      0,
      0.52
    );

  animation:
    yard-controls-panel-in
    160ms
    cubic-bezier(
      0.2,
      0.8,
      0.2,
      1
    );
}

@keyframes yard-controls-panel-in {
  from {
    opacity: 0;

    transform:
      translateY(
        8px
      )
      scale(
        0.985
      );
  }

  to {
    opacity: 1;

    transform:
      translateY(
        0
      )
      scale(
        1
      );
  }
}


/* ==========================================================
   HEADER
========================================================== */

.yard-controls-help-header {
  min-height: 78px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  padding:
    16px
    18px;

  border-bottom: 1px solid
    rgba(
      51,
      65,
      85,
      0.68
    );
}

.yard-controls-help-header > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.yard-controls-help-eyebrow {
  color: #38bdf8;

  font-size: 7px;
  font-weight: 900;

  letter-spacing:
    0.13em;

  text-transform:
    uppercase;
}

.yard-controls-help-header strong {
  color: #f8fafc;

  font-size: 15px;
  font-weight: 850;
}

.yard-controls-help-header small {
  color: #64748b;

  font-size: 8px;
}


/* ==========================================================
   CLOSE
========================================================== */

.yard-controls-help-close {
  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid
    rgba(
      71,
      85,
      105,
      0.65
    );

  border-radius: 8px;

  background:
    rgba(
      15,
      23,
      42,
      0.85
    );

  color: #94a3b8;

  cursor: pointer;

  font-family: inherit;
  font-size: 18px;

  transition:
    border-color
      120ms ease,
    background
      120ms ease,
    color
      120ms ease;
}

.yard-controls-help-close:hover {
  border-color: #3b82f6;

  background:
    rgba(
      37,
      99,
      235,
      0.16
    );

  color: #f8fafc;
}


/* ==========================================================
   CONTENT
========================================================== */

.yard-controls-help-content {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap:
    0
    24px;

  overflow-y: auto;

  padding:
    6px
    18px
    12px;
}


/* ==========================================================
   SECTION
========================================================== */

.yard-controls-help-section {
  min-width: 0;

  padding:
    14px
    0;
}

.yard-controls-help-section h4 {
  margin:
    0
    0
    11px;

  color: #64748b;

  font-size: 7px;
  font-weight: 900;

  letter-spacing:
    0.12em;

  text-transform:
    uppercase;
}


/* ==========================================================
   LIST
========================================================== */

.yard-controls-help-list {
  display: flex;
  flex-direction: column;

  gap: 8px;
}


/* ==========================================================
   ROW
========================================================== */

.yard-controls-help-row {
  min-height: 30px;

  display: grid;

  grid-template-columns:
    minmax(
      120px,
      auto
    )
    minmax(
      0,
      1fr
    );

  align-items: center;

  gap: 12px;
}

.yard-controls-help-row > span {
  color: #a8b6ca;

  font-size: 9px;
  font-weight: 700;
}


/* ==========================================================
   KEYS
========================================================== */

.yard-controls-help-keys {
  display: flex;
  align-items: center;

  gap: 4px;

  min-width: 0;
}

.yard-controls-help kbd {
  min-width: 25px;
  height: 25px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 6px;

  border: 1px solid
    rgba(
      71,
      85,
      105,
      0.95
    );

  border-bottom-color:
    rgba(
      100,
      116,
      139,
      1
    );

  border-radius: 5px;

  background:
    linear-gradient(
      180deg,
      #142033,
      #091321
    );

  color: #dbeafe;

  font-family: inherit;

  font-size: 7px;
  font-weight: 900;

  line-height: 1;

  white-space: nowrap;

  box-shadow:
    0 2px 0
    rgba(
      0,
      0,
      0,
      0.32
    );
}


/* ==========================================================
   FOOTER
========================================================== */

.yard-controls-help-footer {
  min-height: 46px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding:
    9px
    18px;

  border-top: 1px solid
    rgba(
      51,
      65,
      85,
      0.58
    );

  background:
    rgba(
      4,
      11,
      23,
      0.5
    );

  color: #64748b;

  font-size: 7px;
  font-weight: 700;
}

.yard-controls-help-footer-dot {
  width: 5px;
  height: 5px;

  flex: 0 0 5px;

  border-radius: 50%;

  background: #38bdf8;

  box-shadow:
    0 0 8px
    rgba(
      56,
      189,
      248,
      0.6
    );
}

.yard-controls-help-footer > div {
  margin-left: auto;

  display: flex;
  align-items: center;

  gap: 6px;
}

.yard-controls-help-footer kbd {
  min-width: 27px;
  height: 21px;

  font-size: 6px;
}


/* ==========================================================
   FULLSCREEN
========================================================== */

.base-yard-scene:fullscreen
.yard-controls-help-trigger-wrapper,
.base-yard-scene.base-yard-scene-fullscreen
.yard-controls-help-trigger-wrapper {
  top: 18px;
  right: 148px;
}


/* ==========================================================
   TOUCH
========================================================== */

@media (
  hover: none
) and (
  pointer: coarse
) {
  /*
   * Los dispositivos táctiles ya tienen
   * YardTouchControls.
   */
  .yard-controls-help-trigger-wrapper {
    display: none;
  }
}


/* ==========================================================
   SMALL SCREENS
========================================================== */

@media (
  max-width: 700px
) {
  .yard-controls-help-trigger-wrapper {
    top: 68px;
    right: 12px;
  }

  .yard-controls-help-backdrop {
    padding: 12px;
  }

  .yard-controls-help-panel {
    width: 100%;

    max-height:
      calc(
        100% - 24px
      );
  }

  .yard-controls-help-content {
    grid-template-columns:
      1fr;

    gap: 0;

    padding:
      4px
      14px
      10px;
  }

  .yard-controls-help-header {
    padding:
      14px;
  }

  .yard-controls-help-footer {
    padding:
      9px
      14px;
  }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (
  prefers-reduced-motion:
  reduce
) {
  .yard-controls-help-panel,
  .yard-controls-help-backdrop {
    animation: none;
  }
}/* ==========================================================
   BASE YARD SCENE
========================================================== */

.base-yard-scene {
  position: relative;

  width: 100%;
  height: 720px;

  min-width: 0;
  min-height: 0;

  overflow: hidden;

  border: 1px solid #22314a;
  border-radius: 14px;

  background: #050b16;
}


/* ==========================================================
   CANVAS
========================================================== */

.base-yard-scene canvas {
  display: block;

  width: 100% !important;
  height: 100% !important;

  outline: none;
}


/* ==========================================================
   FULLSCREEN
========================================================== */

.base-yard-scene:fullscreen,
.base-yard-scene.base-yard-scene-fullscreen {
  width: 100vw !important;
  height: 100vh !important;

  max-width: none !important;
  max-height: none !important;

  border: 0;
  border-radius: 0;
}

.base-yard-scene:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;

  border: 0;
  border-radius: 0;
}


/* ==========================================================
   BAY HUD
========================================================== */

.base-yard-bay-hud {
  position: absolute;

  top: 18px;
  left: 50%;

  z-index: 30;

  display: flex;
  align-items: center;

  gap: 9px;

  transform: translateX(-50%);

  padding: 7px;

  border: 1px solid
    rgba(71, 85, 105, 0.58);

  border-radius: 12px;

  background:
    rgba(6, 14, 28, 0.9);

  backdrop-filter: blur(14px);

  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 12px 32px
    rgba(0, 0, 0, 0.25);
}


/* ==========================================================
   BAY INFO
========================================================== */

.base-yard-bay-info {
  min-width: 185px;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 0 8px;

  text-align: center;
}

.base-yard-bay-info > span {
  color: #64748b;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.09em;

  text-transform: uppercase;
}

.base-yard-bay-info > strong {
  max-width: 240px;

  margin-top: 2px;

  overflow: hidden;

  color: #f1f5f9;

  font-size: 11px;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-yard-bay-info > small {
  margin-top: 2px;

  color: #71829c;

  font-size: 7px;
  font-weight: 700;
}


/* ==========================================================
   BAY NAV BUTTON
========================================================== */

.base-yard-bay-nav-button {
  width: 35px;
  height: 35px;

  flex: 0 0 35px;

  display: grid;
  place-items: center;

  border: 1px solid #334155;
  border-radius: 8px;

  background:
    rgba(15, 25, 43, 0.95);

  color: #cbd5e1;

  cursor: pointer;

  font-size: 20px;
  line-height: 1;

  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease;
}

.base-yard-bay-nav-button:hover:not(:disabled) {
  border-color: #3b82f6;

  background:
    rgba(37, 99, 235, 0.15);

  color: #93c5fd;
}

.base-yard-bay-nav-button:disabled {
  cursor: not-allowed;

  opacity: 0.35;
}


/* ==========================================================
   FULLSCREEN BUTTON
========================================================== */

.base-yard-fullscreen-button {
  position: absolute;

  top: 18px;
  right: 18px;

  z-index: 40;

  height: 34px;

  padding: 0 11px;

  border: 1px solid
    rgba(71, 85, 105, 0.58);

  border-radius: 8px;

  background:
    rgba(6, 14, 28, 0.88);

  backdrop-filter: blur(12px);

  color: #cbd5e1;

  cursor: pointer;

  font-size: 8px;
  font-weight: 800;

  transition:
    border-color 120ms ease,
    color 120ms ease;
}

.base-yard-fullscreen-button:hover {
  border-color: #3b82f6;

  color: #93c5fd;
}


/* ==========================================================
   EXTERNAL OVERLAY
========================================================== */

.base-yard-scene-overlay {
  position: absolute;

  inset: 0;

  z-index: 25;

  pointer-events: none;
}

.base-yard-scene-overlay button,
.base-yard-scene-overlay input,
.base-yard-scene-overlay select,
.base-yard-scene-overlay textarea,
.base-yard-scene-overlay [role='button'] {
  pointer-events: auto;
}

/* ==========================================================
   FULLSCREEN HINT
========================================================== */

.base-yard-fullscreen-hint {
  position: absolute;

  right: 17px;
  bottom: 17px;

  z-index: 30;

  color: #526176;

  font-size: 7px;
  font-weight: 700;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1000px) {
  .base-yard-scene {
    height: 640px;
  }
}

@media (max-width: 700px) {
  .base-yard-scene {
    height: 580px;
  }

  .base-yard-bay-hud {
    top: 12px;
  }

  .base-yard-bay-info {
    min-width: 130px;
  }

  .base-yard-fullscreen-button {
    top: 68px;
    right: 12px;
  }

  /*
   * Más adelante aquí tendremos
   * YardTouchControls.
   *
   * En touch ocultaremos la guía de teclado.
   */
}

/* ==========================================================
   TOUCH CONTROLS
========================================================== */

.base-yard-touch-controls {
  position: absolute;

  inset: auto 0 0 0;

  z-index: 45;

  display: none;

  pointer-events: none;

  padding: 16px;
}


/* ==========================================================
   MOVEMENT PAD
========================================================== */

.base-yard-touch-movement {
  position: absolute;

  left: 16px;
  bottom: 16px;

  width: 132px;
  height: 132px;

  pointer-events: auto;
}

.base-yard-touch-button {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid
    rgba(100, 116, 139, 0.65);

  border-radius: 10px;

  background:
    rgba(6, 14, 28, 0.82);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  color: #e2e8f0;

  cursor: pointer;

  touch-action: none;

  user-select: none;

  -webkit-user-select: none;

  font-size: 17px;
  font-weight: 900;

  box-shadow:
    0 8px 22px
    rgba(0, 0, 0, 0.22);
}

.base-yard-touch-button:active {
  border-color: #60a5fa;

  background:
    rgba(37, 99, 235, 0.3);

  color: #ffffff;
}

.base-yard-touch-button:disabled {
  opacity: 0.35;
}


/* ==========================================================
   D-PAD POSITIONS
========================================================== */

.base-yard-touch-movement
.base-yard-touch-button.forward {
  position: absolute;

  top: 0;
  left: 45px;
}

.base-yard-touch-movement
.base-yard-touch-button.left {
  position: absolute;

  top: 45px;
  left: 0;
}

.base-yard-touch-movement
.base-yard-touch-button.backward {
  position: absolute;

  top: 90px;
  left: 45px;
}

.base-yard-touch-movement
.base-yard-touch-button.right {
  position: absolute;

  top: 45px;
  left: 90px;
}


/* ==========================================================
   VERTICAL TOUCH
========================================================== */

.base-yard-touch-vertical {
  position: absolute;

  right: 16px;
  bottom: 76px;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 5px;

  pointer-events: auto;
}

.base-yard-touch-vertical > span {
  color: #71829c;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}


/* ==========================================================
   BAY TOUCH NAVIGATION
========================================================== */

.base-yard-touch-bays {
  position: absolute;

  right: 16px;
  bottom: 16px;

  display: flex;

  gap: 6px;

  pointer-events: auto;
}

.base-yard-touch-action {
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 0 12px;

  border: 1px solid
    rgba(100, 116, 139, 0.65);

  border-radius: 10px;

  background:
    rgba(6, 14, 28, 0.82);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);

  color: #cbd5e1;

  cursor: pointer;

  touch-action: manipulation;

  user-select: none;

  -webkit-user-select: none;
}

.base-yard-touch-action strong {
  color: #f1f5f9;

  font-size: 19px;
}

.base-yard-touch-action span {
  font-size: 8px;
  font-weight: 800;
}

.base-yard-touch-action:active {
  border-color: #60a5fa;

  background:
    rgba(37, 99, 235, 0.3);
}

.base-yard-touch-action:disabled {
  cursor: not-allowed;

  opacity: 0.35;
}


/* ==========================================================
   TOUCH DEVICES
========================================================== */

@media (
  hover: none
) and (
  pointer: coarse
) {
  .base-yard-touch-controls {
    display: block;
  }

  /*
   * Dejamos espacio inferior para los controles
   * táctiles y evitamos que otros overlays
   * terminen debajo del D-pad.
   */

  .base-yard-fullscreen-hint {
    bottom: 170px;
  }
}


/* ==========================================================
   SMALL TOUCH DEVICES
========================================================== */

@media (
  hover: none
) and (
  pointer: coarse
) and (
  max-width: 700px
) {
  .base-yard-touch-controls {
    padding: 10px;
  }

  .base-yard-touch-movement {
    left: 10px;
    bottom: 10px;

    transform:
      scale(0.9);

    transform-origin:
      bottom left;
  }

  .base-yard-touch-vertical {
    right: 10px;
    bottom: 68px;
  }

  .base-yard-touch-bays {
    right: 10px;
    bottom: 10px;
  }

  .base-yard-touch-action {
    padding: 0 9px;
  }
}
/* ==========================================================
   PLACEMENT SCENE
   Yard Entry / Rehandle / Evacuation
========================================================== */

/*
 * Este archivo SOLO estiliza la capa de placement.
 * No modifica Bay, Yard, Container3D ni el renderer base.
 */

.placement-scene-ui {
  position: absolute;
  inset: 0;

  pointer-events: none;

  color: #e2e8f0;
}


/* ==========================================================
   CENTER CROSSHAIR
========================================================== */

.placement-crosshair {
  position: absolute;

  top: 50%;
  left: 50%;

  z-index: 50;

  width: 46px;
  height: 46px;

  transform: translate(
    -50%,
    -50%
  );

  pointer-events: none;

  filter:
    drop-shadow(
      0 1px 3px
      rgba(0, 0, 0, 0.9)
    );

  transition:
    filter 120ms ease;
}

.placement-crosshair-horizontal,
.placement-crosshair-vertical {
  position: absolute;

  top: 50%;
  left: 50%;

  display: block;

  background: rgba(
    226,
    232,
    240,
    0.95
  );

  border-radius: 999px;

  transform: translate(
    -50%,
    -50%
  );

  transition:
    background 120ms ease,
    box-shadow 120ms ease;
}

.placement-crosshair-horizontal {
  width: 30px;
  height: 2px;
}

.placement-crosshair-vertical {
  width: 2px;
  height: 30px;
}

.placement-crosshair-dot {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #f8fafc;

  transform: translate(
    -50%,
    -50%
  );

  box-shadow:
    0 0 0 3px
    rgba(15, 23, 42, 0.65);

  transition:
    background 120ms ease,
    box-shadow 120ms ease;
}

.placement-crosshair.valid
.placement-crosshair-horizontal,
.placement-crosshair.valid
.placement-crosshair-vertical,
.placement-crosshair.valid
.placement-crosshair-dot {
  background: #4ade80;
}

.placement-crosshair.valid
.placement-crosshair-dot {
  box-shadow:
    0 0 0 3px
    rgba(34, 197, 94, 0.18),
    0 0 18px
    rgba(34, 197, 94, 0.72);
}

.placement-crosshair.invalid
.placement-crosshair-horizontal,
.placement-crosshair.invalid
.placement-crosshair-vertical,
.placement-crosshair.invalid
.placement-crosshair-dot {
  background: #f87171;
}

.placement-crosshair.invalid
.placement-crosshair-dot {
  box-shadow:
    0 0 0 3px
    rgba(239, 68, 68, 0.18),
    0 0 18px
    rgba(239, 68, 68, 0.7);
}


/* ==========================================================
   SHARED HUD CARD
========================================================== */

.placement-hud-aim,
.placement-hud-recommendation,
.placement-hud-selected {
  position: absolute;

  z-index: 42;

  border: 1px solid
    rgba(51, 65, 85, 0.9);

  border-radius: 12px;

  background:
    rgba(7, 15, 29, 0.9);

  -webkit-backdrop-filter:
    blur(14px);

  backdrop-filter:
    blur(14px);

  box-shadow:
    0 14px 40px
    rgba(0, 0, 0, 0.25);

  pointer-events: none;
}

.placement-hud-aim button,
.placement-hud-recommendation button,
.placement-hud-selected button {
  pointer-events: auto;
}


/* ==========================================================
   AIM CARD
========================================================== */

.placement-hud-aim {
  left: 50%;
  bottom: 58px;

  width: min(
    360px,
    calc(100% - 32px)
  );

  display: flex;
  flex-direction: column;

  gap: 3px;

  padding: 10px 12px;

  transform: translateX(
    -50%
  );
}

.placement-hud-eyebrow,
.placement-hud-status {
  color: #64748b;

  font-size: 8px;
  font-weight: 850;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.placement-hud-aim > strong {
  color: #f1f5f9;

  font-size: 12px;
  font-weight: 850;
}

.placement-hud-aim > small {
  color: #718096;

  font-size: 8px;
  line-height: 1.4;
}

.placement-hud-aim.valid {
  border-color:
    rgba(34, 197, 94, 0.42);

  background:
    rgba(5, 30, 27, 0.9);
}

.placement-hud-aim.invalid {
  border-color:
    rgba(239, 68, 68, 0.42);

  background:
    rgba(35, 13, 21, 0.9);
}

.placement-hud-status.valid {
  color: #4ade80;
}

.placement-hud-status.invalid {
  color: #f87171;
}


/* ==========================================================
   RECOMMENDATION CARD
========================================================== */

.placement-hud-recommendation {
  top: 78px;
  left: 18px;

  width: 260px;

  padding: 12px;
}

.placement-hud-recommendation-info {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.placement-hud-recommendation-eyebrow {
  color: #facc15;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.placement-hud-recommendation-info > strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 14px;
  font-weight: 900;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.placement-hud-recommendation-info > small {
  color: #cbd5e1;

  font-size: 9px;
  font-weight: 750;
}

.placement-hud-recommendation-info > p {
  margin: 5px 0 0;

  color: #7c8ba1;

  font-size: 8px;
  line-height: 1.35;
}

.placement-hud-recommendation-actions {
  display: grid;
  grid-template-columns:
    1fr
    1fr;

  gap: 7px;

  margin-top: 10px;
}


/* ==========================================================
   SELECTED POSITION CARD
========================================================== */

.placement-hud-selected {
  top: 78px;
  right: 18px;

  width: 250px;

  display: flex;
  flex-direction: column;

  gap: 4px;

  padding: 12px;

  border-color:
    rgba(56, 189, 248, 0.38);

  background:
    rgba(7, 25, 40, 0.9);
}

.placement-hud-selected-eyebrow {
  color: #38bdf8;

  font-size: 8px;
  font-weight: 900;

  letter-spacing: 0.07em;

  text-transform: uppercase;
}

.placement-hud-selected > strong {
  color: #f1f5f9;

  font-size: 12px;
  font-weight: 850;
}


/* ==========================================================
   HUD BUTTONS
========================================================== */

.placement-hud-recommendation button,
.placement-hud-selected button,
.placement-hud-aim button,
.placement-touch-actions button {
  min-height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 0 10px;

  border: 1px solid #334155;
  border-radius: 7px;

  background:
    rgba(15, 25, 43, 0.94);

  color: #cbd5e1;

  cursor: pointer;

  font-family: inherit;
  font-size: 8px;
  font-weight: 850;

  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease,
    transform 120ms ease;
}

.placement-hud-recommendation button:hover:not(:disabled),
.placement-hud-selected button:hover:not(:disabled),
.placement-hud-aim button:hover:not(:disabled),
.placement-touch-actions button:hover:not(:disabled) {
  border-color: #3b82f6;

  background:
    rgba(37, 99, 235, 0.2);

  color: #eff6ff;

  transform: translateY(
    -1px
  );
}

.placement-hud-recommendation button.primary,
.placement-hud-confirm-button,
.placement-touch-actions button.primary {
  border-color:
    rgba(37, 99, 235, 0.8);

  background: #2563eb;

  color: #ffffff;
}

.placement-hud-recommendation button:disabled,
.placement-hud-selected button:disabled,
.placement-hud-aim button:disabled,
.placement-touch-actions button:disabled {
  cursor: not-allowed;

  opacity: 0.42;

  transform: none;
}

.placement-hud-aim kbd,
.placement-hud-recommendation kbd,
.placement-hud-selected kbd {
  min-width: 20px;
  height: 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 4px;

  border: 1px solid
    rgba(100, 116, 139, 0.65);

  border-radius: 5px;

  background: #08111f;

  color: #f1f5f9;

  font-family: inherit;
  font-size: 7px;
  font-weight: 900;
}

.placement-hud-select-button,
.placement-hud-confirm-button {
  margin-top: 6px;
}


/* ==========================================================
   TOUCH PLACEMENT ACTIONS
========================================================== */

.placement-touch-actions {
  position: absolute;

  right: 16px;
  bottom: 154px;

  z-index: 55;

  display: none;

  width: 180px;

  gap: 6px;

  pointer-events: auto;
}

.placement-touch-actions button {
  width: 100%;
}


/* ==========================================================
   FULLSCREEN
========================================================== */

.base-yard-scene:fullscreen
.placement-hud-recommendation,
.base-yard-scene.base-yard-scene-fullscreen
.placement-hud-recommendation {
  top: 76px;
  left: 22px;
}

.base-yard-scene:fullscreen
.placement-hud-selected,
.base-yard-scene.base-yard-scene-fullscreen
.placement-hud-selected {
  top: 76px;
  right: 22px;
}


/* ==========================================================
   TABLET / TOUCH
========================================================== */

@media (
  hover: none
) and (
  pointer: coarse
) {
  .placement-touch-actions {
    display: grid;
  }

  .placement-hud-aim {
    bottom: 172px;

    width: min(
      330px,
      calc(100% - 250px)
    );
  }

  .placement-hud-aim
  .placement-hud-select-button {
    display: none;
  }

  .placement-hud-selected
  .placement-hud-confirm-button {
    display: none;
  }
}


/* ==========================================================
   NARROW SCREENS
========================================================== */

@media (
  max-width: 820px
) {
  .placement-hud-recommendation {
    top: 70px;
    left: 10px;

    width: 215px;
  }

  .placement-hud-selected {
    top: 70px;
    right: 10px;

    width: 205px;
  }
}

@media (
  max-width: 620px
) {
  .placement-hud-recommendation {
    top: 68px;
    left: 8px;

    width: 188px;
  }

  .placement-hud-selected {
    top: 68px;
    right: 8px;

    width: 178px;
  }

  .placement-hud-recommendation-info > strong,
  .placement-hud-selected > strong {
    font-size: 10px;
  }

  .placement-hud-aim {
    width: calc(
      100% - 24px
    );
  }
}


/* ==========================================================
   MOUSE LOOK / POINTER LOCK
========================================================== */

.base-yard-scene-mouse-look canvas {
  cursor: crosshair;
}

.base-yard-scene-mouse-look.is-pointer-locked canvas {
  cursor: none;
}

.base-yard-mouse-look-hint {
  position: absolute;

  left: 16px;
  bottom: 16px;

  z-index: 58;

  padding: 7px 10px;

  border: 1px solid
    rgba(71, 85, 105, 0.5);

  border-radius: 8px;

  background:
    rgba(6, 14, 28, 0.84);

  color: #94a3b8;

  pointer-events: none;

  font-size: 8px;
  font-weight: 750;

  -webkit-backdrop-filter:
    blur(10px);

  backdrop-filter:
    blur(10px);
}

.base-yard-scene:fullscreen
.base-yard-mouse-look-hint,
.base-yard-scene.base-yard-scene-fullscreen
.base-yard-mouse-look-hint {
  left: 18px;
  bottom: 18px;
}

/*
 * La mira móvil (verde/roja) solo representa AIM.
 * La posición seleccionada sigue siendo azul y NO cambia
 * hasta Enter/O.
 */
/* ==========================================================
   YARD ENTRY
   ==========================================================
   UI operativa para ingreso a patio.

   IMPORTANTE:
   - No modifica la lógica.
   - No modifica YardScene.
   - No modifica controles 3D.
   - Mantiene los HUD internos del mapa.
   ========================================================== */


/* ==========================================================
   PAGE
   ========================================================== */

.yard-entry-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;

  padding: 28px 32px 36px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  background: #020617;
}


/* ==========================================================
   PAGE HEADER
   ========================================================== */

.yard-entry-page-header {
  width: 100%;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;
}

.yard-entry-page-header>div:first-child {
  min-width: 0;
}

.yard-entry-page-eyebrow {
  display: block;

  margin-bottom: 5px;

  color: #38bdf8;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.yard-entry-page-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 28px;
  font-weight: 750;

  line-height: 1.1;
}

.yard-entry-page-header p {
  margin: 6px 0 0;

  color: #64748b;

  font-size: 12px;

  line-height: 1.5;
}


/* ==========================================================
   CURRENT YARD
   ========================================================== */

.yard-entry-current-yard {
  flex-shrink: 0;

  min-width: 110px;

  padding: 10px 13px;

  display: flex;
  flex-direction: column;
  gap: 2px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

.yard-entry-current-yard span {
  color: #64748b;

  font-size: 7px;
  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.yard-entry-current-yard strong {
  color: #e2e8f0;

  font-size: 11px;
  font-weight: 700;
}


/* ==========================================================
   MAIN OPERATION FLOW

   Contexto compacto
        ↓
   MAPA GRANDE
        ↓
   Confirmación
   ========================================================== */

.yard-entry-operation-layout {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 14px;
}


/* ==========================================================
   TOP CONTEXT

   Ya NO son 3 tarjetas gigantes.

   Se comportan como una barra de información operacional.
   ========================================================== */

.yard-entry-context-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(260px, 1.15fr) minmax(220px, 0.85fr) minmax(330px, 1.35fr);

  gap: 10px;
}


/* ==========================================================
   CONTEXT CARD
   ========================================================== */

.yard-entry-context-card {
  min-width: 0;
  min-height: 112px;

  padding: 13px 14px;

  display: flex;
  flex-direction: column;

  gap: 10px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

.yard-entry-context-card:hover {
  border-color: #334155;
}


/* ==========================================================
   CARD HEADER
   ========================================================== */

.yard-entry-context-card-header {
  display: flex;
  align-items: center;

  gap: 9px;
}

.yard-entry-context-step {
  flex-shrink: 0;

  width: 28px;
  height: 28px;

  display: grid;
  place-items: center;

  border-radius: 7px;

  background: rgba(14, 165, 233, 0.1);

  color: #38bdf8;

  font-size: 8px;
  font-weight: 900;
}

.yard-entry-context-step.recommendation {
  background: rgba(250, 204, 21, 0.09);

  color: #facc15;
}

.yard-entry-context-step.final {
  background: rgba(34, 197, 94, 0.1);

  color: #4ade80;
}

.yard-entry-context-card-header>div {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.yard-entry-context-card-header strong {
  color: #e2e8f0;

  font-size: 11px;
  font-weight: 700;

  line-height: 1.2;
}

.yard-entry-context-card-header small {
  margin-top: 1px;

  color: #64748b;

  font-size: 8px;

  line-height: 1.2;
}


/* ==========================================================
   FORM FIELD
   ========================================================== */

.yard-entry-context-field {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 10px;
}

.yard-entry-context-field label {
  flex-shrink: 0;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 600;
}

.yard-entry-context-field select {
  width: 100%;
  min-width: 0;
  height: 34px;

  padding: 0 34px 0 10px;

  border: 1px solid #334155;
  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #e2e8f0;

  font: inherit;
  font-size: 10px;
  font-weight: 600;

  cursor: pointer;

  color-scheme: dark;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.yard-entry-context-field select:hover {
  border-color: #475569;
}

.yard-entry-context-field select:focus {
  border-color: #0ea5e9;

  box-shadow:
    0 0 0 2px rgba(14, 165, 233, 0.1);
}


/* ==========================================================
   CONTEXT VALUE
   ========================================================== */

.yard-entry-context-value {
  min-width: 0;

  padding: 8px 10px;

  display: flex;
  align-items: center;

  gap: 5px;

  overflow: hidden;

  border: 1px solid rgba(51, 65, 85, 0.55);
  border-radius: 7px;

  background: #020617;
}

.yard-entry-context-value strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 11px;
  font-weight: 750;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.yard-entry-context-value span {
  flex-shrink: 0;

  color: #64748b;

  font-size: 9px;
}

.yard-entry-context-value.compact {
  flex-direction: row;
  justify-content: space-between;
}

.yard-entry-context-value.compact span {
  color: #64748b;

  font-size: 8px;
}

.yard-entry-context-value.compact strong {
  font-size: 10px;
}


/* ==========================================================
   RECOMMENDATION TOP CARD
   ========================================================== */

.yard-entry-context-recommendation {
  border-color: rgba(202, 138, 4, 0.32);

  background:
    linear-gradient(135deg,
      rgba(250, 204, 21, 0.025),
      transparent 55%),
    #0f172a;
}

.yard-entry-recommendation-summary {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 7px 9px;

  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 7px;

  background: rgba(250, 204, 21, 0.035);
}

.yard-entry-recommendation-summary>div:first-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 1px;
}

.yard-entry-recommendation-summary>div:first-child span {
  color: #eab308;

  font-size: 7px;
  font-weight: 850;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}

.yard-entry-recommendation-summary>div:first-child strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 11px;
  font-weight: 750;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ==========================================================
   SCORE
   ========================================================== */

.yard-entry-recommendation-score-compact {
  flex-shrink: 0;

  min-width: 46px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  border-radius: 8px;

  background: rgba(250, 204, 21, 0.08);
}

.yard-entry-recommendation-score-compact span {
  color: #a16207;

  font-size: 6px;
  font-weight: 800;

  text-transform: uppercase;
}

.yard-entry-recommendation-score-compact strong {
  color: #facc15;

  font-size: 16px;
  font-weight: 850;

  line-height: 1;
}


/* ==========================================================
   RECOMMENDATION COORDINATES
   ========================================================== */

.yard-entry-recommendation-coordinates {
  display: flex;

  gap: 6px;
}

.yard-entry-recommendation-coordinates span {
  min-width: 38px;

  padding: 4px 7px;

  border-radius: 5px;

  background: rgba(250, 204, 21, 0.08);

  color: #fde047;

  font-size: 8px;
  font-weight: 800;

  text-align: center;
}


/* ==========================================================
   RECOMMENDATION ACTIONS
   ========================================================== */

.yard-entry-context-actions {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6px;
}

.yard-entry-context-actions button {
  height: 29px;

  padding: 0 9px;

  border: 1px solid #334155;
  border-radius: 6px;

  background: #111827;

  color: #94a3b8;

  font-size: 7px;
  font-weight: 750;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.yard-entry-context-actions button:hover {
  border-color: #475569;

  background: #1e293b;

  color: #e2e8f0;
}

.yard-entry-context-actions button.primary {
  border-color: #a16207;

  background: rgba(202, 138, 4, 0.12);

  color: #facc15;
}

.yard-entry-context-actions button.primary:hover {
  border-color: #eab308;

  background: rgba(202, 138, 4, 0.2);
}

.yard-entry-context-actions button.primary.active {
  border-color: #2563eb;

  background: rgba(37, 99, 235, 0.12);

  color: #93c5fd;
}


/* ==========================================================
   CONTEXT MESSAGE
   ========================================================== */

.yard-entry-context-message {
  flex: 1;

  min-height: 45px;

  display: flex;
  align-items: center;

  color: #64748b;

  font-size: 9px;
}

.yard-entry-context-message.error {
  color: #f87171;
}


/* ==========================================================
   MAP CARD

   Este es el protagonista de la pantalla.
   ========================================================== */

.yard-entry-scene-card {
  width: 100%;
  min-width: 0;
  height: 780px;

  overflow: hidden;

  border: 1px solid #1e293b;
  border-radius: 12px;

  background: #050b16;
}

.yard-entry-scene-card-main {
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.16);
}


/* ==========================================================
   MAP HEADER
   ========================================================== */

.yard-entry-scene-header {
  min-height: 58px;

  padding: 11px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid #1e293b;

  background: #0f172a;
}

.yard-entry-scene-header>div:first-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 1px;
}

.yard-entry-scene-eyebrow {
  margin: 0 0 2px;

  color: #64748b;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.13em;

  text-transform: uppercase;
}

.yard-entry-scene-header strong {
  color: #f8fafc;

  font-size: 12px;
  font-weight: 750;
}

.yard-entry-scene-header>div:first-child>span:last-child {
  color: #64748b;

  font-size: 8px;
}

.yard-entry-scene-header-status {
  flex-shrink: 0;
}

.yard-entry-scene-header-status>span {
  display: inline-flex;
  align-items: center;

  min-height: 25px;

  padding: 0 9px;

  border: 1px solid #334155;
  border-radius: 999px;

  background: rgba(2, 6, 23, 0.55);

  color: #64748b;

  font-size: 7px;
  font-weight: 700;
}

.yard-entry-scene-header-status>span.is-recommended {
  border-color: rgba(250, 204, 21, 0.35);

  background: rgba(250, 204, 21, 0.07);

  color: #fde047;
}


/* ==========================================================
   MAP

   Conservamos el mapa grande.
   No tocamos el canvas ni la lógica 3D.
   ========================================================== */

.yard-entry-scene {
  position: relative;

  width: 100%;
  min-height: 560px;

  overflow: hidden;

  background: #050b16;
}

.yard-entry-scene>.yard-scene-wrapper {
  width: 100%;
  height: 100%;
}


/* ==========================================================
   YARD SCENE WRAPPER
   ========================================================== */

.yard-scene-wrapper {
  position: relative;

  width: 100%;
  height: 100%;

  overflow: hidden;

  background: #050b16;
}

.yard-scene-wrapper canvas {
  display: block;

  width: 100% !important;
  height: 100% !important;
}


/* ==========================================================
   FULLSCREEN
   ========================================================== */

.yard-scene-fullscreen {
  width: 100vw;
  height: 100vh;

  background: #050b16;
}


/* ==========================================================
   BAY NAVIGATION - MAP HUD
   ========================================================== */

.yard-entry-bay-navigation {
  position: absolute;

  top: 16px;
  left: 50%;

  z-index: 20;

  display: flex;
  align-items: center;

  gap: 9px;

  transform: translateX(-50%);

  padding: 7px 8px;

  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 11px;

  background: rgba(2, 6, 23, 0.9);

  backdrop-filter: blur(10px);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25);
}

.yard-entry-bay-navigation button {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid #334155;
  border-radius: 8px;

  background: #0f172a;

  color: #cbd5e1;

  font-size: 20px;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.yard-entry-bay-navigation button:hover {
  border-color: #38bdf8;

  background: #172033;

  color: #38bdf8;
}

.yard-entry-bay-navigation>div {
  min-width: 150px;

  display: flex;
  align-items: center;
  flex-direction: column;
}

.yard-entry-bay-navigation span {
  color: #64748b;

  font-size: 7px;
  font-weight: 700;

  text-transform: uppercase;
}

.yard-entry-bay-navigation strong {
  margin-top: 1px;

  color: #f8fafc;

  font-size: 13px;
  font-weight: 750;
}

.yard-entry-bay-navigation small {
  margin-top: 1px;

  color: #475569;

  font-size: 7px;
}


/* ==========================================================
   FULLSCREEN BUTTON
   ========================================================== */

.yard-entry-fullscreen-button {
  position: absolute;

  top: 16px;
  right: 16px;

  z-index: 20;

  height: 36px;

  padding: 0 12px;

  border: 1px solid #334155;
  border-radius: 8px;

  background: rgba(2, 6, 23, 0.9);

  color: #cbd5e1;

  font-size: 8px;
  font-weight: 750;

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.yard-entry-fullscreen-button:hover {
  border-color: #38bdf8;

  color: #38bdf8;
}


/* ==========================================================
   CROSSHAIR

   Se conserva visualmente como estaba funcionando.
   ========================================================== */

.yard-entry-crosshair {
  position: absolute;

  top: 50%;
  left: 50%;

  z-index: 15;

  width: 48px;
  height: 48px;

  transform: translate(-50%, -50%);

  pointer-events: none;
}

.crosshair-horizontal,
.crosshair-vertical {
  position: absolute;

  background: rgba(226, 232, 240, 0.72);

  box-shadow:
    0 0 7px rgba(0, 0, 0, 0.75);
}

.crosshair-horizontal {
  top: 50%;
  left: 0;

  width: 48px;
  height: 2px;

  transform: translateY(-50%);
}

.crosshair-vertical {
  top: 0;
  left: 50%;

  width: 2px;
  height: 48px;

  transform: translateX(-50%);
}

.crosshair-center {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 7px;
  height: 7px;

  transform: translate(-50%, -50%);

  border: 2px solid #e2e8f0;
  border-radius: 50%;

  background: #020617;
}

.yard-entry-crosshair-active .crosshair-horizontal,
.yard-entry-crosshair-active .crosshair-vertical {
  background: #22c55e;

  box-shadow:
    0 0 9px rgba(34, 197, 94, 0.75);
}

.yard-entry-crosshair-active .crosshair-center {
  border-color: #22c55e;

  box-shadow:
    0 0 12px rgba(34, 197, 94, 0.8);
}


/* ==========================================================
   AIM PANEL
   ========================================================== */

.yard-entry-aim-panel {
  position: absolute;

  bottom: 18px;
  left: 50%;

  z-index: 20;

  min-width: 245px;

  transform: translateX(-50%);

  padding: 10px 13px;

  display: flex;
  align-items: center;
  flex-direction: column;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;

  background: rgba(2, 6, 23, 0.91);

  backdrop-filter: blur(12px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.24);
}

.yard-entry-aim-eyebrow {
  color: #64748b;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.yard-entry-aim-panel>strong {
  margin-top: 2px;

  color: #e2e8f0;

  font-size: 12px;
}

.yard-entry-aim-panel>div {
  display: flex;

  gap: 5px;

  margin-top: 5px;
}

.yard-entry-aim-panel>div>span {
  padding: 3px 6px;

  border-radius: 5px;

  background: #1e293b;

  color: #cbd5e1;

  font-size: 8px;
  font-weight: 700;
}

.yard-entry-aim-panel>button {
  width: 100%;
  height: 30px;

  margin-top: 8px;

  border: 0;
  border-radius: 6px;

  background: #16a34a;

  color: #ffffff;

  font-size: 8px;
  font-weight: 800;

  cursor: pointer;
}

.yard-entry-aim-panel>button:hover {
  background: #15803d;
}

.yard-entry-aim-panel>small {
  margin-top: 4px;

  color: #475569;

  font-size: 7px;
}


/* ==========================================================
   RECOMMENDATION HUD INSIDE MAP

   ESTE SE CONSERVA.
   Es útil mientras el usuario tiene capturado el mouse.
   ========================================================== */
/* ==========================================================
   RECOMMENDATION HUD INSIDE MAP
   ========================================================== */

.yard-entry-recommendation-hud {
  position: absolute;

  top: 70px;
  left: 16px;

  z-index: 20;

  width: 230px;

  padding: 13px;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  gap: 8px;

  border: 1px solid rgba(250, 204, 21, 0.34);
  border-radius: 12px;

  background: rgba(2, 6, 23, 0.94);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(250, 204, 21, 0.06);

  backdrop-filter: blur(12px);

  pointer-events: auto;
}


/* ==========================================================
   EYEBROW
   ========================================================== */

.yard-entry-recommendation-eyebrow {
  display: block;

  margin: 0;

  color: #facc15;

  font-size: 8px;
  font-weight: 900;

  line-height: 1;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}


/* ==========================================================
   BAY NAME
   ========================================================== */

.yard-entry-recommendation-hud>strong {
  display: block;

  margin: 0;

  color: #f8fafc;

  font-size: 15px;
  font-weight: 800;

  line-height: 1.2;
}


/* ==========================================================
   POSITION
   ========================================================== */

.yard-entry-recommendation-position {
  display: flex;
  align-items: center;

  gap: 6px;

  margin: 0;
}

.yard-entry-recommendation-position span {
  min-width: 34px;

  padding: 4px 7px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 6px;

  background: rgba(250, 204, 21, 0.11);

  color: #fde047;

  font-size: 8px;
  font-weight: 800;

  line-height: 1;
}


/* ==========================================================
   ACTIONS
   ========================================================== */

.yard-entry-recommendation-actions {
  width: 100%;

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 7px;

  margin: 2px 0 0;
}

.yard-entry-recommendation-actions button {
  width: 100%;
  min-width: 0;
  height: 32px;

  padding: 0 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  border: 1px solid #334155;
  border-radius: 7px;

  background: #0f172a;

  color: #cbd5e1;

  font-family: inherit;
  font-size: 8px;
  font-weight: 750;

  line-height: 1;

  white-space: nowrap;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.yard-entry-recommendation-actions button:hover {
  border-color: #475569;

  background: #172033;

  color: #f8fafc;
}

.yard-entry-recommendation-actions button.primary {
  border-color: #ca8a04;

  background: #ca8a04;

  color: #ffffff;
}

.yard-entry-recommendation-actions button.primary:hover {
  border-color: #eab308;

  background: #eab308;
}


/* ==========================================================
   KEYCAPS DENTRO DE LOS BOTONES
   ========================================================== */

.yard-entry-recommendation-actions kbd {
  min-width: 20px;
  height: 20px;

  padding: 0 5px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #475569;
  border-radius: 5px;

  background: #020617;

  color: #cbd5e1;

  font-family: inherit;
  font-size: 7px;
  font-weight: 800;

  line-height: 1;
}

.yard-entry-recommendation-actions button.primary kbd {
  border-color: rgba(255, 255, 255, 0.25);

  background: rgba(2, 6, 23, 0.35);

  color: #ffffff;
}

.yard-entry-recommendation-position {
  display: flex;

  gap: 5px;

  margin-top: 8px;
}

.yard-entry-recommendation-position span {
  padding: 4px 7px;

  border-radius: 5px;

  background: rgba(250, 204, 21, 0.1);

  color: #fde047;

  font-size: 8px;
  font-weight: 800;
}

.yard-entry-recommendation-actions {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6px;

  margin-top: 9px;
}

.yard-entry-recommendation-actions button {
  min-height: 30px;

  border: 1px solid #334155;
  border-radius: 6px;

  background: #0f172a;

  color: #cbd5e1;

  font-size: 7px;
  font-weight: 700;

  cursor: pointer;
}

.yard-entry-recommendation-actions button:hover {
  border-color: #475569;

  background: #172033;
}

.yard-entry-recommendation-actions button.primary {
  border-color: #ca8a04;

  background: #ca8a04;

  color: #ffffff;
}


/* ==========================================================
   CONTROLS HELP
   ========================================================== */

.yard-entry-controls-help {
  position: absolute;

  right: 16px;
  bottom: 16px;

  z-index: 20;

  display: flex;

  gap: 5px;
}

.yard-entry-controls-help>span {
  padding: 5px 7px;

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 6px;

  background: rgba(2, 6, 23, 0.82);

  color: #64748b;

  font-size: 6px;

  text-align: center;
}

.yard-entry-controls-help strong {
  margin-top: 1px;

  color: #94a3b8;

  font-size: 6px;
}


/* ==========================================================
   FINAL BAR

   Una sola barra compacta debajo del mapa.
   ========================================================== */

.yard-entry-final-bar {
  width: 100%;
  min-width: 0;

  padding: 12px 14px;

  display: grid;

  grid-template-columns:
    minmax(330px, 1.2fr) minmax(260px, 0.9fr) minmax(230px, 0.75fr);

  align-items: stretch;

  gap: 12px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}


/* ==========================================================
   FINAL POSITION
   ========================================================== */

.yard-entry-final-position {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 9px;
}

.yard-entry-final-heading {
  display: flex;
  align-items: center;

  gap: 9px;
}

.yard-entry-final-heading>div {
  display: flex;
  flex-direction: column;
}

.yard-entry-final-heading strong {
  color: #e2e8f0;

  font-size: 10px;
}

.yard-entry-final-heading small {
  color: #64748b;

  font-size: 7px;
}


/* ==========================================================
   FINAL EMPTY
   ========================================================== */

.yard-entry-final-empty {
  min-height: 42px;

  padding: 8px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border: 1px dashed #334155;
  border-radius: 7px;

  background: rgba(2, 6, 23, 0.4);
}

.yard-entry-final-empty strong {
  color: #64748b;

  font-size: 8px;
  font-weight: 600;
}

.yard-entry-final-empty span {
  color: #475569;

  font-size: 7px;

  text-align: right;
}


/* ==========================================================
   FINAL SELECTED
   ========================================================== */

.yard-entry-final-selected {
  min-height: 42px;

  padding: 7px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 7px;

  background: rgba(34, 197, 94, 0.045);
}

.yard-entry-final-selected>div:first-child {
  min-width: 0;

  display: flex;
  flex-direction: column;
}

.yard-entry-final-selected>div:first-child span {
  color: #4ade80;

  font-size: 7px;
  font-weight: 750;

  text-transform: uppercase;
}

.yard-entry-final-selected>div:first-child strong {
  margin-top: 1px;

  overflow: hidden;

  color: #f8fafc;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.yard-entry-final-coordinates {
  flex-shrink: 0;

  display: flex;

  gap: 5px;
}

.yard-entry-final-coordinates span {
  min-width: 34px;

  padding: 4px 6px;

  border-radius: 5px;

  background: rgba(34, 197, 94, 0.1);

  color: #86efac;

  font-size: 8px;
  font-weight: 800;

  text-align: center;
}


/* ==========================================================
   REASON
   ========================================================== */

.yard-entry-final-reason {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.yard-entry-final-reason label {
  color: #94a3b8;

  font-size: 8px;
  font-weight: 600;
}

.yard-entry-final-reason textarea {
  width: 100%;
  height: 58px;

  padding: 8px 9px;

  resize: none;

  border: 1px solid #334155;
  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #e2e8f0;

  font: inherit;
  font-size: 9px;

  line-height: 1.35;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.yard-entry-final-reason textarea:focus {
  border-color: #0ea5e9;

  box-shadow:
    0 0 0 2px rgba(14, 165, 233, 0.08);
}


/* ==========================================================
   FINAL ACTION
   ========================================================== */

.yard-entry-final-action {
  min-width: 0;

  display: flex;
  justify-content: center;
  flex-direction: column;

  gap: 7px;
}

.yard-entry-final-action>span {
  min-height: 12px;

  color: #64748b;

  font-size: 7px;

  text-align: center;
}

.yard-entry-final-action .operation-primary-button {
  width: 100%;
  min-height: 42px;

  border: 1px solid #0284c7;
  border-radius: 7px;

  background: #0284c7;

  color: #ffffff;

  font-size: 10px;
  font-weight: 750;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.yard-entry-final-action .operation-primary-button:hover:not(:disabled) {
  border-color: #0369a1;

  background: #0369a1;
}

.yard-entry-final-action .operation-primary-button:disabled {
  border-color: #1e293b;

  background: #172033;

  color: #475569;

  cursor: not-allowed;

  opacity: 0.75;
}


/* ==========================================================
   LOADING
   ========================================================== */

.yard-entry-loading-state {
  min-height: 170px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 12px;

  color: #64748b;

  font-size: 10px;
}

.yard-entry-loading-spinner {
  width: 26px;
  height: 26px;

  border: 3px solid #1e293b;
  border-top-color: #38bdf8;
  border-radius: 50%;

  animation:
    yard-entry-loading-spin 0.8s linear infinite;
}

@keyframes yard-entry-loading-spin {
  to {
    transform: rotate(360deg);
  }
}


/* ==========================================================
   EMPTY STATE
   ========================================================== */

.yard-entry-empty-state {
  min-height: 280px;

  padding: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 7px;

  border: 1px solid #1e293b;
  border-radius: 12px;

  background: #0f172a;

  text-align: center;
}

.yard-entry-empty-state h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 18px;
}

.yard-entry-empty-state p {
  margin: 0;

  color: #64748b;

  font-size: 10px;
}


/* ==========================================================
   RESPONSIVE — MEDIUM DESKTOP
   ========================================================== */

@media (max-width: 1250px) {
  .yard-entry-context-grid {
    grid-template-columns:
      minmax(230px, 1fr) minmax(200px, 0.8fr) minmax(300px, 1.2fr);
  }

  .yard-entry-final-bar {
    grid-template-columns:
      minmax(280px, 1fr) minmax(230px, 0.8fr) 210px;
  }
}


/* ==========================================================
   RESPONSIVE — TABLET / SMALL LAPTOP
   ========================================================== */

@media (max-width: 1000px) {
  .yard-entry-page {
    padding: 22px;
  }

  .yard-entry-context-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .yard-entry-context-recommendation {
    grid-column:
      1 / -1;
  }

  .yard-entry-scene {
    height: 620px;
    min-height: 620px;
  }

  .yard-entry-final-bar {
    grid-template-columns:
      1fr 1fr;
  }

  .yard-entry-final-action {
    grid-column:
      1 / -1;
  }

  .yard-entry-final-action .operation-primary-button {
    min-height: 40px;
  }
}


/* ==========================================================
   RESPONSIVE — MOBILE
   ========================================================== */

@media (max-width: 700px) {
  .yard-entry-page {
    padding: 16px;

    gap: 16px;
  }

  .yard-entry-page-header {
    flex-direction: column;
  }

  .yard-entry-current-yard {
    width: 100%;
  }

  .yard-entry-context-grid {
    grid-template-columns:
      1fr;
  }

  .yard-entry-context-recommendation {
    grid-column:
      auto;
  }

  .yard-entry-context-field {
    align-items: stretch;
    flex-direction: column;

    gap: 5px;
  }

  .yard-entry-scene {
    height: 520px;
    min-height: 520px;
  }

  .yard-entry-scene-header {
    align-items: flex-start;
    flex-direction: column;

    gap: 7px;
  }

  .yard-entry-bay-navigation {
    top: 10px;
  }

  .yard-entry-bay-navigation>div {
    min-width: 115px;
  }

  .yard-entry-fullscreen-button {
    top: 62px;
    right: 10px;
  }

  .yard-entry-recommendation-hud {
    top: 108px;
    left: 10px;

    width: 195px;
  }

  .yard-entry-controls-help {
    display: none;
  }

  .yard-entry-aim-panel {
    bottom: 12px;

    min-width: 210px;
  }

  .yard-entry-final-bar {
    grid-template-columns:
      1fr;
  }

  .yard-entry-final-action {
    grid-column:
      auto;
  }

  .yard-entry-final-empty,
  .yard-entry-final-selected {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ==========================================================
   RECOMMENDATION SHORTCUTS
   ========================================================== */

.yard-entry-recommendation-shortcuts {
  width: 100%;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 8px;

  margin-top: 10px;
}

.yard-entry-recommendation-shortcuts button {
  min-width: 0;
  height: 34px;

  padding: 0 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid #334155;
  border-radius: 8px;

  background: #111827;

  color: #cbd5e1;

  font-family: inherit;
  font-size: 8px;
  font-weight: 750;

  line-height: 1;

  cursor: pointer;

  appearance: none;
  -webkit-appearance: none;

  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.yard-entry-recommendation-shortcuts button:hover:not(:disabled) {
  border-color: #475569;

  background: #1e293b;

  color: #f8fafc;

  transform: translateY(-1px);
}

.yard-entry-recommendation-shortcuts button:active:not(:disabled) {
  transform: translateY(0);
}

.yard-entry-recommendation-shortcuts button:disabled {
  opacity: 0.4;

  cursor: not-allowed;
}


/* ==========================================================
   PRIMARY
   ========================================================== */

.yard-entry-recommendation-shortcuts button.primary {
  border-color: #ca8a04;

  background: rgba(202, 138, 4, 0.16);

  color: #fde047;
}

.yard-entry-recommendation-shortcuts button.primary:hover:not(:disabled) {
  border-color: #eab308;

  background: rgba(202, 138, 4, 0.25);

  color: #fef08a;
}


/* ==========================================================
   KEYBOARD KEY
   ========================================================== */

.yard-entry-recommendation-shortcuts kbd {
  min-width: 22px;
  height: 22px;

  padding: 0 6px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #475569;
  border-radius: 5px;

  background: #020617;

  color: #cbd5e1;

  font-family: inherit;
  font-size: 7px;
  font-weight: 850;

  line-height: 1;

  box-shadow:
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.yard-entry-recommendation-shortcuts button.primary kbd {
  border-color: rgba(250, 204, 21, 0.35);

  background: rgba(2, 6, 23, 0.5);

  color: #fde047;
}/* =========================================================
   EIR MANUAL
   Complementa eir.css sin modificar el flujo de inspección 3D.
========================================================= */

.eir-tab-icon-generate {
  border-color: rgba(14, 165, 233, 0.24);
  background: rgba(14, 165, 233, 0.07);
  color: #7dd3fc;
}

.eir-manual-loading {
  min-height: 190px;
  display: grid;
  place-items: center;
}

.eir-manual-in-progress {
  border-color: rgba(245, 158, 11, 0.24) !important;
  background: rgba(245, 158, 11, 0.07) !important;
  color: #fcd34d !important;
}

.eir-manual-last-eir,
.eir-manual-type {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0b1323;
}

.eir-manual-last-eir > span,
.eir-manual-type > span,
.eir-manual-observations > span {
  color: #64748b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eir-manual-last-eir strong,
.eir-manual-type strong {
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 650;
}

.eir-manual-last-eir small,
.eir-manual-type small {
  color: #64748b;
  font-size: 8px;
  line-height: 1.45;
}

.eir-manual-observations {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.eir-manual-observations textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #334155;
  border-radius: 7px;
  outline: none;
  background: #020617;
  color: #f8fafc;
  font-family: inherit;
  font-size: 10px;
  line-height: 1.5;
}

.eir-manual-observations textarea:focus {
  border-color: #0ea5e9;
}

.eir-manual-observations > small {
  align-self: flex-end;
  color: #475569;
  font-size: 8px;
}

.eir-manual-active-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.055);
}

.eir-manual-active-notice > span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 10px;
  font-weight: 800;
}

.eir-manual-active-notice strong {
  display: block;
  color: #fde68a;
  font-size: 10px;
}

.eir-manual-active-notice p {
  margin: 3px 0 0;
  color: #a1a1aa;
  font-size: 8px;
  line-height: 1.45;
}

.eir-manual-error {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.06);
  color: #fca5a5;
  font-size: 9px;
  line-height: 1.45;
}

/*
 * Asegura que el CTA manual conserve el mismo lenguaje
 * visual oscuro del sistema, aunque eir.css tenga reglas
 * anteriores más específicas.
 */
.eir-generate-selected-panel .eir-generate-start-button {
  min-height: 36px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: 7px;
  background: rgba(14, 165, 233, 0.07);
  color: #7dd3fc;
  font-family: inherit;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.eir-generate-selected-panel .eir-generate-start-button:hover:not(:disabled) {
  border-color: #0ea5e9;
  background: rgba(14, 165, 233, 0.13);
  color: #e0f2fe;
  transform: translateY(-1px);
}

.eir-generate-selected-panel .eir-generate-start-button:disabled {
  opacity: 0.45;
  cursor: wait;
  transform: none;
}

@media (max-width: 900px) {
  .eir-manual-observations textarea {
    min-height: 110px;
  }
}
/* =========================================================
   EIR DETAIL
   Scope exclusivo para la vista de detalle.
   No modifica los estilos globales de operation-page.
========================================================= */

.eir-detail-page {
  min-height: 100%;
  padding: 30px 32px 36px;
  color: #f8fafc;
}

.eir-detail-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.eir-detail-heading {
  min-width: 0;
}

.eir-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.eir-back-button:hover {
  color: #7dd3fc;
}

.eir-detail-eyebrow,
.eir-detail-section-eyebrow {
  display: block;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eir-detail-header h1 {
  margin: 4px 0 0;
  color: #f8fafc;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.eir-detail-header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  color: #64748b;
  font-size: 11px;
}

.eir-detail-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border: 1px solid #334155;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.eir-detail-status-completed {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.eir-detail-status-in_progress {
  border-color: rgba(14, 165, 233, 0.28);
  background: rgba(14, 165, 233, 0.08);
  color: #7dd3fc;
}

.eir-detail-status-cancelled {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
}

/* Botón propio del módulo.
   Ya no hereda el aspecto genérico operation-primary-button. */
.eir-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.eir-download-button:hover:not(:disabled) {
  border-color: #0ea5e9;
  background: #132033;
  color: #f8fafc;
  transform: translateY(-1px);
}

.eir-download-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.eir-download-button-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
  font-size: 14px;
}

.eir-detail-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    320px;
  gap: 15px;
  min-height: 620px;
}

.eir-detail-scene-card {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 10px;
  background: #020617;
}


.eir-detail-scene {
  flex: 1;
  min-height: 580px;
}

.eir-scene-help {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-top: 1px solid #1e293b;
  background: #0f172a;
  color: #64748b;
  font-size: 10px;
}

.eir-scene-help-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.eir-detail-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eir-detail-card {
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.eir-detail-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 13px;
  border-bottom: 1px solid #1e293b;
}

.eir-detail-card-header > div {
  min-width: 0;
}

.eir-detail-card-header h2 {
  margin: 3px 0 0;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.25;
}

.eir-detail-card-icon,
.eir-detail-count-badge {
  display: grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #334155;
  border-radius: 7px;
  background: #111c2e;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.eir-detail-count-badge {
  border-color: rgba(14, 165, 233, 0.24);
  background: rgba(14, 165, 233, 0.08);
  color: #7dd3fc;
}

.eir-detail-summary-grid {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 8px;
  padding: 12px 16px 4px;
}

.eir-detail-summary-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0b1323;
}

.eir-detail-summary-item span {
  color: #64748b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eir-detail-summary-item strong {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eir-detail-summary-success {
  border-color: rgba(34, 197, 94, 0.18);
}

.eir-detail-summary-success strong {
  color: #86efac;
}

.eir-detail-summary-warning {
  border-color: rgba(245, 158, 11, 0.18);
}

.eir-detail-summary-warning strong {
  color: #fcd34d;
}

.eir-detail-summary-danger {
  border-color: rgba(239, 68, 68, 0.18);
}

.eir-detail-summary-danger strong {
  color: #fca5a5;
}

.eir-detail-data-list {
  padding: 5px 16px 12px;
}

.eir-detail-row {
  min-height: 31px;
  display: grid;
  grid-template-columns:
    minmax(86px, 0.8fr)
    minmax(0, 1.35fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.52);
}

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

.eir-detail-row span {
  color: #64748b;
  font-size: 9px;
}

.eir-detail-row strong {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 9px;
  font-weight: 650;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eir-detail-damage-stats {
  display: grid;
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );
  gap: 8px;
  padding: 12px 16px 4px;
}

.eir-detail-damage-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #1e293b;
  border-radius: 7px;
  background: #0b1323;
}

.eir-detail-damage-stats span {
  color: #64748b;
  font-size: 9px;
}

.eir-detail-damage-stats strong {
  color: #f8fafc;
  font-size: 12px;
}

.eir-detail-damage-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 16px 14px;
}

.eir-detail-damage-item {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns:
    25px
    minmax(0, 1fr)
    auto;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0b1323;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 140ms ease,
    border-color 140ms ease;
}

.eir-detail-damage-item:hover {
  border-color: #334155;
  background: #111c2e;
}

.eir-detail-damage-item.is-selected {
  border-color: rgba(14, 165, 233, 0.55);
  background: rgba(14, 165, 233, 0.07);
}

.eir-detail-damage-marker {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  font-size: 10px;
  font-weight: 800;
}

.eir-detail-damage-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eir-detail-damage-copy strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eir-detail-damage-copy small {
  overflow: hidden;
  color: #64748b;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.eir-detail-severity {
  padding: 3px 6px;
  border: 1px solid #334155;
  border-radius: 999px;
  color: #94a3b8;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.eir-detail-severity-low {
  border-color: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.eir-detail-severity-medium {
  border-color: rgba(245, 158, 11, 0.24);
  color: #fcd34d;
}

.eir-detail-severity-high,
.eir-detail-severity-critical {
  border-color: rgba(239, 68, 68, 0.24);
  color: #fca5a5;
}

.eir-detail-selected-card {
  border-color: #26364d;
}

.eir-detail-close-selection {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  padding: 0;
  border: 1px solid #334155;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
}

.eir-detail-close-selection:hover {
  border-color: #475569;
  color: #e2e8f0;
}

.eir-detail-description {
  margin: 0 16px 15px;
  padding: 11px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0b1323;
}

.eir-detail-description span {
  color: #64748b;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eir-detail-description p {
  margin: 6px 0 0;
  color: #cbd5e1;
  font-size: 10px;
  line-height: 1.5;
}

.eir-detail-no-damages {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 15px;
  padding: 11px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.045);
}

.eir-detail-no-damages > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 10px;
  font-weight: 800;
}

.eir-detail-no-damages strong {
  display: block;
  color: #e2e8f0;
  font-size: 10px;
}

.eir-detail-no-damages p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 8px;
}

@media (min-width: 1280px) {
  .eir-detail-sidebar {
    position: sticky;
    top: 20px;
  }
}

@media (max-width: 1100px) {
  .eir-detail-layout {
    grid-template-columns:
      1fr;
  }

  .eir-detail-sidebar {
    display: grid;
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .eir-detail-selected-card {
    grid-column:
      1 /
      -1;
  }
}

@media (max-width: 720px) {
  .eir-detail-page {
    padding: 20px 16px 28px;
  }

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

  .eir-download-button {
    width: 100%;
  }

  .eir-detail-sidebar {
    display: flex;
  }

}
/* ========================================
   EIR EVIDENCE DETAIL
======================================== */

.eir-detail-evidence-card {
    gap: 14px;
}

.eir-evidence-retention-notice {
    padding: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;

    border: 1px solid #1e3a5f;
    border-radius: 8px;

    background:
        rgba(14, 165, 233, 0.07);
}

.eir-evidence-retention-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        rgba(14, 165, 233, 0.15);

    color: #38bdf8;

    font-size: 11px;
    font-weight: 700;
}

.eir-evidence-retention-notice>div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.eir-evidence-retention-notice strong {
    color: #bae6fd;

    font-size: 11px;
}

.eir-evidence-retention-notice p {
    margin: 0;

    color: #7dd3fc;

    font-size: 10px;
    line-height: 1.5;
}

.eir-detail-evidence-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 10px;
}

.eir-detail-evidence-item {
    min-width: 0;

    overflow: hidden;

    border:
        1px solid #1e293b;

    border-radius:
        9px;

    background:
        #020617;
}

.eir-detail-evidence-item.is-expired {
    opacity: 0.55;
}

.eir-detail-evidence-thumbnail {
    width: 100%;
    padding: 0;

    border: 0;

    background:
        #020617;

    cursor: pointer;
}

.eir-detail-evidence-thumbnail:disabled {
    cursor: not-allowed;
}

.eir-detail-evidence-photo-placeholder {
    aspect-ratio: 16 / 10;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 6px;

    background:
        linear-gradient(145deg,
            #020617,
            #0f172a);

    color:
        #64748b;
}

.eir-detail-evidence-photo-placeholder>span {
    font-size: 28px;
}

.eir-detail-evidence-photo-placeholder strong {
    color:
        #cbd5e1;

    font-size: 11px;
}

.eir-detail-evidence-info {
    padding:
        9px 10px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.eir-detail-evidence-info>div {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;
}

.eir-detail-evidence-info strong {
    color:
        #e2e8f0;

    font-size: 10px;
}

.eir-detail-evidence-info span,
.eir-detail-evidence-info small {
    color:
        #64748b;

    font-size: 9px;
}

.eir-detail-evidence-actions {
    padding:
        0 10px 10px;

    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 6px;
}

.eir-detail-evidence-actions button,
.eir-detail-evidence-lightbox-footer button {
    min-height: 30px;

    padding:
        7px 9px;

    border:
        1px solid #334155;

    border-radius:
        6px;

    background:
        #0f172a;

    color:
        #e2e8f0;

    font-size:
        9px;

    font-weight:
        600;

    cursor:
        pointer;
}

.eir-detail-evidence-actions button:hover:not(:disabled),
.eir-detail-evidence-lightbox-footer button:hover:not(:disabled) {
    background:
        #1e293b;
}

.eir-detail-evidence-actions button:disabled,
.eir-detail-evidence-lightbox-footer button:disabled {
    opacity:
        0.5;

    cursor:
        not-allowed;
}

.eir-detail-evidence-empty {
    min-height:
        110px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 5px;

    border:
        1px dashed #1e293b;

    border-radius:
        8px;

    color:
        #64748b;

    text-align:
        center;
}

.eir-detail-evidence-empty>span {
    font-size:
        25px;
}

.eir-detail-evidence-empty strong {
    color:
        #cbd5e1;

    font-size:
        11px;
}

.eir-detail-evidence-empty p {
    margin:
        0;

    color:
        #64748b;

    font-size:
        9px;
}

.eir-detail-evidence-lightbox-footer {
    align-items:
        center;
}

.eir-detail-evidence-lightbox-footer>div {
    display: flex;
    flex-direction: column;

    gap:
        3px;
}

@media (max-width: 720px) {
    .eir-detail-evidence-grid {
        grid-template-columns:
            1fr;
    }
}/* ========================================
   ADMIN PAGE
======================================== */

.admin-page {
  width: 100%;
  min-height: 100%;

  padding: 28px 32px;

  box-sizing: border-box;

  background: #020617;
}

.admin-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 22px;
}

.admin-page-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 27px;
  font-weight: 700;
}

.admin-page-header p {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 11px;
}

.admin-primary-button {
  min-height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 16px;

  border: 1px solid #0284c7;
  border-radius: 9px;

  background:
    linear-gradient(
      180deg,
      #0ea5e9,
      #0284c7
    );

  color: #ffffff;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 8px 24px
    rgba(14, 165, 233, 0.12);

  transition:
    background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.admin-primary-button:hover:not(:disabled) {
  background:
    linear-gradient(
      180deg,
      #38bdf8,
      #0284c7
    );

  transform: translateY(-1px);

  box-shadow:
    0 12px 30px
    rgba(14, 165, 233, 0.18);
}

.admin-primary-button:disabled {
  opacity: 0.45;

  cursor: not-allowed;

  transform: none;
  box-shadow: none;
}


/* ========================================
   STATS
======================================== */

.admin-stats {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(
        0,
        1fr
      )
    );

  gap: 12px;

  margin-bottom: 18px;
}

.admin-stat-card {
  padding: 16px 18px;

  border: 1px solid #1e293b;
  border-radius: 9px;

  background: #0f172a;

  display: flex;
  flex-direction: column;

  gap: 8px;
}

.admin-stat-card span {
  color: #64748b;

  font-size: 9px;
  text-transform: uppercase;
}

.admin-stat-card strong {
  color: #f8fafc;

  font-size: 24px;
}


/* ========================================
   USERS CARD
======================================== */

.admin-card {
  width: 100%;

  padding: 18px;

  box-sizing: border-box;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 16px;
}

.admin-card-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 17px;
}

.admin-card-header p {
  margin: 3px 0 0;

  color: #64748b;

  font-size: 9px;
}

.admin-search {
  width: 280px;

  padding: 9px 11px;

  border: 1px solid #334155;
  border-radius: 6px;

  outline: none;

  background: #020617;
  color: #f8fafc;
}

.admin-search:focus {
  border-color: #0284c7;
}


/* ========================================
   TABLE
======================================== */

.admin-table-wrapper {
  width: 100%;

  overflow-x: auto;
}

.admin-table {
  width: 100%;

  border-collapse: collapse;
}

.admin-table th {
  padding: 10px;

  border-bottom: 1px solid #334155;

  color: #64748b;

  font-size: 8px;

  text-align: left;
  text-transform: uppercase;
}

.admin-table td {
  padding: 12px 10px;

  border-bottom: 1px solid #1e293b;

  color: #cbd5e1;

  font-size: 10px;
}

.admin-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.35);
}


/* ========================================
   USER CELL
======================================== */

.admin-user-cell {
  display: flex;
  align-items: center;

  gap: 10px;
}

.admin-user-avatar {
  width: 34px;
  height: 34px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #1e293b;

  color: #38bdf8;

  font-size: 12px;
  font-weight: 700;
}

.admin-user-cell > div:last-child {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.admin-user-cell strong {
  color: #f8fafc;

  font-size: 10px;
}

.admin-user-cell span {
  color: #64748b;

  font-size: 8px;
}


/* ========================================
   ROLE / STATUS
======================================== */

.admin-role-badge {
  display: inline-flex;

  padding: 4px 7px;

  border-radius: 999px;

  background: #1e293b;

  color: #cbd5e1;

  font-size: 8px;
  font-weight: 600;
}

.admin-status {
  display: inline-flex;

  padding: 4px 7px;

  border-radius: 999px;

  font-size: 8px;
  font-weight: 600;
}

.admin-status.active {
  background: rgba(22, 163, 74, 0.15);

  color: #4ade80;
}

.admin-status.inactive {
  background: rgba(220, 38, 38, 0.15);

  color: #f87171;
}


/* ========================================
   ACTIONS
======================================== */

.admin-actions {
  display: flex;
  align-items: center;

  gap: 6px;
}

.admin-actions button {
  padding: 6px 9px;

  border: 1px solid #334155;
  border-radius: 5px;

  background: #1e293b;

  color: #cbd5e1;

  font-size: 8px;

  cursor: pointer;
}

.admin-actions button:hover {
  background: #334155;
}

.admin-actions button.danger {
  border-color: rgba(220, 38, 38, 0.4);

  color: #f87171;
}

.admin-actions button.success {
  border-color: rgba(22, 163, 74, 0.4);

  color: #4ade80;
}


/* ========================================
   EMPTY
======================================== */

.admin-empty {
  padding: 30px;

  color: #64748b;

  text-align: center;
}


/* ========================================
   MODAL BACKDROP
======================================== */

.admin-modal-backdrop {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  box-sizing: border-box;

  background:
    rgba(
      2,
      6,
      23,
      0.84
    );

  backdrop-filter: blur(5px);
}


/* ========================================
   USER MODAL
======================================== */

.admin-modal {
  width:
    min(
      680px,
      100%
    );

  max-height: 92vh;

  overflow-y: auto;

  box-sizing: border-box;

  border: 1px solid #263951;
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(15, 27, 47, 0.99),
      rgba(8, 18, 34, 0.99)
    );

  box-shadow:
    0 30px 85px
    rgba(0, 0, 0, 0.48),
    inset 0 1px 0
    rgba(255, 255, 255, 0.025);
}

.admin-user-modal {
  overflow: hidden;
}

.admin-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  padding: 22px 24px;

  border-bottom:
    1px solid
    rgba(38, 57, 81, 0.8);
}

.admin-user-modal-header {
  align-items: center;
}

.admin-user-modal-title {
  display: flex;
  align-items: center;

  gap: 13px;
}

.admin-user-modal-icon {
  width: 42px;
  height: 42px;

  flex:
    0 0
    42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(56, 189, 248, 0.22);

  border-radius: 11px;

  background:
    rgba(14, 165, 233, 0.07);

  color: #7dd3fc;
}

.admin-user-modal-icon svg {
  width: 22px;
  height: 22px;
}

.admin-modal-eyebrow {
  display: block;

  margin-bottom: 4px;

  color: #38bdf8;

  font-size: 8px;
  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.12em;
}

.admin-modal-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 20px;

  letter-spacing: -0.02em;
}

.admin-modal-header p {
  margin: 5px 0 0;

  color: #71829b;

  font-size: 10px;

  line-height: 1.45;
}

.admin-modal-close {
  width: 34px;
  height: 34px;

  flex:
    0 0
    34px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid transparent;

  border-radius: 8px;

  background: transparent;

  color: #64748b;

  font-size: 24px;

  line-height: 1;

  cursor: pointer;

  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.admin-modal-close:hover {
  border-color: #2a3d57;

  background:
    rgba(148, 163, 184, 0.05);

  color: #e2e8f0;
}

.admin-user-modal-body {
  padding: 23px 24px 25px;
}


/* ========================================
   FORM
======================================== */

.admin-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap:
    18px 14px;
}

.admin-field {
  display: flex;
  flex-direction: column;

  gap: 8px;

  min-width: 0;
}

.admin-field-full {
  grid-column: 1 / -1;
}

.admin-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  color: #b8c5d6;

  font-size: 11px;
  font-weight: 650;
}

.admin-field label > span {
  color: #64748b;

  font-size: 9px;
  font-weight: 500;
}

.admin-input-shell,
.admin-select-shell {
  width: 100%;

  min-height: 49px;

  display: flex;
  align-items: center;

  box-sizing: border-box;

  border: 1px solid #26374f;

  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      rgba(8, 18, 34, 0.9),
      rgba(4, 12, 25, 0.96)
    );

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.admin-input-shell:hover,
.admin-select-shell:hover {
  border-color: #324864;
}

.admin-input-shell:focus-within,
.admin-select-shell:focus-within {
  border-color: #0284c7;

  background:
    linear-gradient(
      180deg,
      rgba(11, 25, 44, 0.94),
      rgba(5, 15, 30, 0.98)
    );

  box-shadow:
    0 0 0 3px
    rgba(2, 132, 199, 0.1);
}

.admin-input-shell.is-valid {
  border-color:
    rgba(34, 197, 94, 0.4);
}

.admin-input-shell.is-invalid {
  border-color:
    rgba(248, 113, 113, 0.48);

  box-shadow:
    0 0 0 3px
    rgba(248, 113, 113, 0.055);
}

.admin-input-shell > svg,
.admin-select-shell > svg {
  width: 18px;
  height: 18px;

  flex:
    0 0
    18px;

  margin-left: 14px;

  color: #64748b;

  transition:
    color 0.15s ease;
}

.admin-input-shell:focus-within > svg,
.admin-select-shell:focus-within > svg {
  color: #38bdf8;
}

.admin-input-shell input,
.admin-select-shell select {
  min-width: 0;

  width: 100%;

  min-height: 47px;

  box-sizing: border-box;

  padding: 0 14px;

  border: 0;

  outline: none;

  background: transparent;

  color: #f8fafc;

  font-family: inherit;

  font-size: 12px;
}

.admin-input-shell input::placeholder {
  color: #44546a;
}

.admin-select-shell {
  position: relative;
}

.admin-select-shell select {
  appearance: none;

  cursor: pointer;

  padding-right: 38px;
}

.admin-select-shell::after {
  content: '⌄';

  position: absolute;

  right: 14px;

  top: 50%;

  transform:
    translateY(-54%);

  color: #64748b;

  font-size: 16px;

  pointer-events: none;
}

.admin-select-shell option {
  background: #0b1628;

  color: #f8fafc;
}


/* ========================================
   PASSWORD
======================================== */

.admin-password-shell input {
  padding-right: 4px;
}

.admin-password-toggle {
  width: 42px;
  height: 42px;

  flex:
    0 0
    42px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-right: 3px;

  border: 0;
  border-radius: 8px;

  background: transparent;

  color: #64748b;

  cursor: pointer;

  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.admin-password-toggle:hover {
  background:
    rgba(148, 163, 184, 0.06);

  color: #cbd5e1;
}

.admin-password-toggle svg {
  width: 18px;
  height: 18px;
}

.admin-password-strength-label,
.admin-password-match {
  font-size: 9px;
  font-weight: 750;
}

.admin-password-strength-label.is-weak,
.admin-password-match.is-invalid {
  color: #fb7185;
}

.admin-password-strength-label.is-medium {
  color: #fbbf24;
}

.admin-password-strength-label.is-strong,
.admin-password-match.is-valid {
  color: #4ade80;
}

.admin-password-security {
  margin-top: 1px;
}

.admin-password-strength-track {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 5px;

  margin-bottom: 10px;
}

.admin-password-strength-track > span {
  height: 3px;

  border-radius: 999px;

  background: #182538;
}

.admin-password-strength-track > span.active {
  background: #fb7185;
}

.admin-password-strength-track > span.active.medium {
  background: #fbbf24;
}

.admin-password-strength-track > span.active.strong {
  background: #22c55e;
}

.admin-password-rules {
  display: flex;
  flex-wrap: wrap;

  gap:
    7px 12px;
}

.admin-password-rule {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  color: #64748b;

  font-size: 9px;
}

.admin-password-rule > span {
  width: 13px;

  display: inline-flex;
  justify-content: center;

  font-weight: 800;
}

.admin-password-rule.is-valid {
  color: #86efac;
}


/* ========================================
   MODAL ACTIONS
======================================== */

.admin-modal-actions {
  display: flex;
  justify-content: flex-end;

  gap: 9px;

  margin: 0;
}

.admin-user-modal-actions {
  padding: 18px 24px 20px;

  border-top:
    1px solid
    rgba(38, 57, 81, 0.8);

  background:
    rgba(3, 10, 22, 0.24);
}

.admin-user-modal-actions .admin-primary-button,
.admin-user-modal-actions .admin-secondary-button {
  min-height: 44px;

  padding:
    0 17px;

  border-radius: 9px;

  font-size: 10px;
  font-weight: 700;
}

.admin-secondary-button {
  min-height: 42px;

  padding:
    0 15px;

  border:
    1px solid #334155;

  border-radius: 8px;

  background:
    rgba(15, 23, 42, 0.58);

  color: #cbd5e1;

  font-family: inherit;
  font-size: 10px;
  font-weight: 650;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.admin-secondary-button:hover:not(:disabled) {
  border-color: #475569;

  background: #1e293b;

  transform: translateY(-1px);
}

.admin-secondary-button:disabled {
  opacity: 0.5;

  cursor: not-allowed;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (
  max-width: 1000px
) {
  .admin-stats {
    grid-template-columns:
      repeat(
        2,
        1fr
      );
  }
}

@media (
  max-width: 750px
) {
  .admin-page {
    padding: 20px;
  }

  .admin-page-header {
    flex-direction: column;
  }

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

  .admin-search {
    width: 100%;

    box-sizing: border-box;
  }

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

  .admin-field-full {
    grid-column: auto;
  }

  .admin-modal-backdrop {
    padding: 14px;
  }

  .admin-modal-header,
  .admin-user-modal-body,
  .admin-user-modal-actions {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (
  max-width: 520px
) {
  .admin-user-modal-title {
    align-items: flex-start;
  }

  .admin-user-modal-icon {
    width: 38px;
    height: 38px;

    flex-basis: 38px;
  }

  .admin-modal-header h2 {
    font-size: 18px;
  }

  .admin-user-modal-actions {
    flex-direction: column-reverse;
  }

  .admin-user-modal-actions button {
    width: 100%;
  }
}
/* =====================================================
   PERMISSIONS ACTION BUTTON
===================================================== */

.admin-actions .permissions {
    border:
        1px solid
        rgba(
            14,
            165,
            233,
            0.38
        );

    background:
        rgba(
            14,
            165,
            233,
            0.07
        );

    color:
        #38bdf8;
}

.admin-actions .permissions:hover {
    border-color:
        rgba(
            14,
            165,
            233,
            0.72
        );

    background:
        rgba(
            14,
            165,
            233,
            0.12
        );
}

/* =====================================================
   MODAL
===================================================== */

.permissions-modal {
    width:
        min(
            760px,
            calc(
                100vw - 32px
            )
        );

    max-height:
        min(
            820px,
            calc(
                100vh - 40px
            )
        );

    display:
        flex;

    flex-direction:
        column;

    overflow:
        hidden;

    border:
        1px solid
        #25354d;

    border-radius:
        14px;

    background:
        #0d1729;

    box-shadow:
        0 30px 80px
        rgba(
            0,
            0,
            0,
            0.45
        );
}

/* =====================================================
   LOADING
===================================================== */

.permissions-loading {
    padding:
        60px
        24px;

    text-align:
        center;

    color:
        #71839e;

    font-size:
        14px;
}

/* =====================================================
   USER SUMMARY
===================================================== */

.permissions-user-summary {
    display:
        grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap:
        12px;

    margin:
        0
        22px
        18px;

    padding-top:
        2px;
}

.permissions-user-summary > div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        5px;

    padding:
        13px
        14px;

    border:
        1px solid
        #243349;

    border-radius:
        9px;

    background:
        #101c30;
}

.permissions-user-summary span {
    color:
        #71839e;

    font-size:
        11px;

    font-weight:
        600;

    text-transform:
        uppercase;

    letter-spacing:
        0.04em;
}

.permissions-user-summary strong {
    color:
        #e7edf6;

    font-size:
        14px;
}

/* =====================================================
   ADMIN NOTICE
===================================================== */

.permissions-admin-notice {
    margin:
        0
        22px
        18px;

    padding:
        14px
        16px;

    border:
        1px solid
        rgba(
            14,
            165,
            233,
            0.25
        );

    border-radius:
        9px;

    background:
        rgba(
            14,
            165,
            233,
            0.07
        );
}

.permissions-admin-notice strong {
    display:
        block;

    margin-bottom:
        4px;

    color:
        #38bdf8;

    font-size:
        13px;
}

.permissions-admin-notice p {
    margin:
        0;

    color:
        #8ca0ba;

    font-size:
        12px;

    line-height:
        1.5;
}

/* =====================================================
   BULK ACTIONS
===================================================== */

.permissions-bulk-actions {
    display:
        flex;

    justify-content:
        flex-end;

    gap:
        8px;

    padding:
        0
        22px
        14px;
}

.permissions-bulk-actions button {
    min-height:
        32px;

    padding:
        0
        11px;

    border:
        1px solid
        #31435c;

    border-radius:
        6px;

    background:
        #111d30;

    color:
        #aebdd0;

    cursor:
        pointer;

    font-size:
        11px;

    font-weight:
        600;

    transition:
        background
        0.15s ease,
        border-color
        0.15s ease,
        color
        0.15s ease;
}

.permissions-bulk-actions button:hover {
    border-color:
        #475d7b;

    background:
        #17253b;

    color:
        #e2e8f0;
}

/* =====================================================
   MODULE LIST
===================================================== */

.permissions-list {
    display:
        flex;

    flex-direction:
        column;

    gap:
        8px;

    padding:
        0
        22px
        20px;

    overflow-y:
        auto;

    scrollbar-width:
        thin;

    scrollbar-color:
        #334155
        transparent;
}

.permission-item {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        18px;

    min-height:
        74px;

    padding:
        13px
        15px;

    border:
        1px solid
        #223148;

    border-radius:
        9px;

    background:
        #0b1525;

    transition:
        border-color
        0.15s ease,
        background
        0.15s ease;
}

.permission-item:hover {
    border-color:
        #30435e;

    background:
        #0e1a2d;
}

.permission-item.enabled {
    border-color:
        rgba(
            14,
            165,
            233,
            0.20
        );

    background:
        rgba(
            14,
            165,
            233,
            0.035
        );
}

/* =====================================================
   MODULE INFO
===================================================== */

.permission-item-info {
    min-width:
        0;

    flex:
        1;
}

.permission-item-heading {
    display:
        flex;

    align-items:
        center;

    gap:
        8px;

    margin-bottom:
        4px;
}

.permission-item-heading strong {
    color:
        #e7edf6;

    font-size:
        13px;

    font-weight:
        650;
}

.permission-item-heading span {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        20px;

    padding:
        1px
        7px;

    border-radius:
        999px;

    background:
        #172338;

    color:
        #7186a3;

    font-size:
        9px;

    font-weight:
        700;

    letter-spacing:
        0.04em;
}

.permission-item-info p {
    max-width:
        520px;

    margin:
        0;

    color:
        #72849d;

    font-size:
        11px;

    line-height:
        1.45;
}

.permission-item-info small {
    display:
        block;

    margin-top:
        4px;

    color:
        #38bdf8;

    font-size:
        10px;
}

/* =====================================================
   SWITCH
===================================================== */

.permission-switch {
    position:
        relative;

    flex:
        0 0
        auto;

    width:
        42px;

    height:
        23px;

    cursor:
        pointer;
}

.permission-switch input {
    position:
        absolute;

    width:
        1px;

    height:
        1px;

    opacity:
        0;
}

.permission-switch-slider {
    position:
        absolute;

    inset:
        0;

    border:
        1px solid
        #3a4960;

    border-radius:
        999px;

    background:
        #1a2638;

    transition:
        all
        0.18s ease;
}

.permission-switch-slider::after {
    content:
        '';

    position:
        absolute;

    top:
        3px;

    left:
        3px;

    width:
        15px;

    height:
        15px;

    border-radius:
        50%;

    background:
        #7c8ca2;

    transition:
        transform
        0.18s ease,
        background
        0.18s ease;
}

.permission-switch input:checked +
.permission-switch-slider {
    border-color:
        rgba(
            14,
            165,
            233,
            0.65
        );

    background:
        rgba(
            14,
            165,
            233,
            0.22
        );
}

.permission-switch input:checked +
.permission-switch-slider::after {
    transform:
        translateX(
            19px
        );

    background:
        #38bdf8;
}

.permission-switch input:disabled +
.permission-switch-slider {
    cursor:
        not-allowed;

    opacity:
        0.72;
}

/* =====================================================
   FOOTER
===================================================== */

.permissions-footer {
    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        18px;

    flex:
        0 0
        auto;

    padding:
        15px
        22px;

    border-top:
        1px solid
        #223148;

    background:
        #0b1525;
}

.permissions-count {
    display:
        flex;

    align-items:
        baseline;

    gap:
        5px;

    color:
        #72849d;

    font-size:
        11px;
}

.permissions-count strong {
    color:
        #38bdf8;

    font-size:
        15px;
}

.permissions-footer-actions {
    display:
        flex;

    gap:
        9px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (
    max-width: 720px
) {
    .permissions-modal {
        width:
            calc(
                100vw - 20px
            );

        max-height:
            calc(
                100vh - 20px
            );
    }

    .permissions-user-summary {
        grid-template-columns:
            1fr;

        margin:
            0
            16px
            16px;
    }

    .permissions-bulk-actions {
        padding:
            0
            16px
            12px;
    }

    .permissions-list {
        padding:
            0
            16px
            16px;
    }

    .permissions-footer {
        align-items:
            stretch;

        flex-direction:
            column;
    }

    .permissions-footer-actions {
        display:
            grid;

        grid-template-columns:
            1fr
            1fr;
    }
}/* =========================================
   CONTAINERS
========================================= */

.containers-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;

    color: #e2e8f0;
}

.containers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-top: 2.5%;
    margin-left: 2.5%;
}

.containers-header>div:first-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.containers-header h1 {
    margin: 0;

    color: #f8fafc;

    font-size: 24px;
    font-weight: 700;
}

.containers-header p {
    margin: 0;

    color: #64748b;

    font-size: 10px;
}

.containers-total {
    margin-right: 2%;
    margin-top: 2%;
    width: 15%;
    min-width: 110px;

    padding: 12px 15px;

    box-sizing: border-box;

    border: 1px solid #1e293b;
    border-radius: 9px;

    background: #0f172a;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.containers-total span {
    color: #64748b;

    font-size: 8px;

    text-transform: uppercase;
}

.containers-total strong {
    color: #f8fafc;

    font-size: 18px;
}

/* =========================================================
   TOOLBAR
========================================================= */

.containers-toolbar {
    width: 95%;
    margin-left: 2.5%;
    padding: 14px 16px;

    border: 1px solid #1e293b;
    border-radius: 10px;

    background: #0f172a;

    display: flex;
    flex-direction: column;

    gap: 10px;
}

.containers-search {
    display: flex;

    gap: 8px;
}

.containers-search input {
    flex: 1;

    min-width: 0;
    min-height: 38px;

    box-sizing: border-box;

    padding: 9px 12px;

    border: 1px solid #334155;
    border-radius: 6px;

    outline: none;

    background: #020617;

    color: #e2e8f0;

    font-size: 10px;
}

.containers-search input::placeholder {
    color: #64748b;
}

.containers-search input:focus {
    border-color: #0284c7;

    box-shadow:
        0 0 0 3px rgba(2, 132, 199, 0.1);
}

.containers-search button {
    min-width: 86px;

    padding: 9px 14px;

    border: 0;
    border-radius: 6px;

    background: #0284c7;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.containers-search button:hover:not(:disabled) {
    background: #0369a1;
}

.containers-search button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

/* =========================================================
   FILTERS
========================================================= */

.containers-filters {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.containers-filters select {
    min-width: 160px;
    min-height: 34px;

    padding: 7px 30px 7px 10px;

    border: 1px solid #334155;
    border-radius: 6px;

    outline: none;

    background: #020617;

    color: #cbd5e1;

    font-size: 9px;

    cursor: pointer;
}

.containers-filters select:focus {
    border-color: #0284c7;
}

.containers-clear-button {
    min-height: 34px;

    padding: 7px 12px;

    border: 1px solid #334155;
    border-radius: 6px;

    background: transparent;

    color: #94a3b8;

    font-size: 9px;

    cursor: pointer;
}

.containers-clear-button:hover {
    border-color: #475569;

    background: #1e293b;

    color: #e2e8f0;
}

/* =========================================================
   TABLE CONTAINER
========================================================= */

.containers-card {
    overflow: hidden;

    border: 1px solid #1e293b;
    border-radius: 10px;

    width: 95%;
    margin-left: 2.5%;
    background: #0f172a;
}

.containers-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.containers-table {
    width: 100%;

    min-width: 1050px;

    border-collapse: collapse;

    background: #0f172a;

    color: #cbd5e1;
}

/* =========================================================
   TABLE HEADER
========================================================= */

.containers-table thead {
    background: #111c2f;
}

.containers-table th {
    padding: 10px 12px;

    border-bottom: 1px solid #243248;

    color: #64748b;

    font-size: 8px;
    font-weight: 700;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 0.35px;
}

/* =========================================================
   TABLE ROWS
========================================================= */

.containers-table td {
    padding: 11px 12px;

    border-bottom: 1px solid #1e293b;

    color: #cbd5e1;

    font-size: 9px;

    vertical-align: middle;
}

.containers-table tbody tr {
    transition:
        background 0.15s ease;
}

.containers-table tbody tr:hover {
    background: rgba(30,
            41,
            59,
            0.55);
}

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

/* =========================================================
   CONTAINER NUMBER
========================================================= */

.containers-number {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.containers-number strong {
    color: #f8fafc;

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}

.containers-number span {
    color: #64748b;

    font-size: 7px;
}

/* =========================================================
   SHIPPING LINE
========================================================= */

.containers-shipping-line {
    display: flex;
    align-items: center;

    gap: 8px;
}

.containers-shipping-line>span:last-child {
    color: #cbd5e1;

    font-size: 9px;
    font-weight: 500;

    white-space: nowrap;
}

.containers-shipping-color {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;
}

/* =========================================================
   STATUS
========================================================= */

.containers-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 4px 8px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 700;
}

.containers-status-active {
    border: 1px solid rgba(34, 197, 94, 0.18);

    background:
        rgba(34, 197, 94, 0.12);

    color: #4ade80;
}

.containers-status-inactive {
    border: 1px solid rgba(239, 68, 68, 0.2);

    background:
        rgba(239, 68, 68, 0.1);

    color: #f87171;
}

/* =========================================================
   LOCATION
========================================================= */

.containers-location {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.containers-location strong {
    color: #e2e8f0;

    font-size: 9px;
    font-weight: 600;
}

.containers-location span {
    color: #64748b;

    font-size: 8px;

    white-space: nowrap;
}

.containers-outside {
    color: #64748b;

    font-size: 8px;
}

/* =========================================================
   WEIGHT
========================================================= */

.containers-weight {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.containers-weight span {
    color: #94a3b8;

    font-size: 8px;

    white-space: nowrap;
}

/* =========================================================
   ACTIONS
========================================================= */

.containers-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 5px;
}

.containers-actions button {
    min-height: 29px;

    padding: 5px 8px;

    border: 1px solid #334155;
    border-radius: 5px;

    background: transparent;

    color: #cbd5e1;

    font-size: 8px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.containers-actions button:hover {
    border-color: #475569;

    background: #1e293b;

    color: #f8fafc;
}

.containers-actions .containers-view-button {
    border-color:
        rgba(14,
            165,
            233,
            0.3);

    background:
        rgba(14,
            165,
            233,
            0.12);

    color: #38bdf8;
}

.containers-actions .containers-view-button:hover {
    border-color: #0284c7;

    background:
        rgba(14,
            165,
            233,
            0.2);
}

.containers-actions .containers-delete-button {
    border-color:
        rgba(239,
            68,
            68,
            0.22);

    color: #f87171;
}

.containers-actions .containers-delete-button:hover {
    border-color:
        rgba(239,
            68,
            68,
            0.5);

    background:
        rgba(239,
            68,
            68,
            0.08);

    color: #fca5a5;
}

/* =========================================================
   EMPTY / LOADING
========================================================= */

.containers-state {
    min-height: 170px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    color: #64748b;

    font-size: 9px;
}

.containers-state strong {
    color: #cbd5e1;

    font-size: 11px;
}

/* =========================================================
   PAGINATION
========================================================= */

.containers-pagination {
    min-height: 48px;

    box-sizing: border-box;

    padding: 10px 13px;

    border-top: 1px solid #1e293b;

    background: #111c2f;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.containers-pagination>span {
    color: #64748b;

    font-size: 8px;
}

.containers-pagination>div {
    display: flex;

    gap: 6px;
}

.containers-pagination button {
    min-height: 29px;

    padding: 5px 9px;

    border: 1px solid #334155;
    border-radius: 5px;

    background: #0f172a;

    color: #cbd5e1;

    font-size: 8px;

    cursor: pointer;
}

.containers-pagination button:hover:not(:disabled) {
    border-color: #475569;

    background: #1e293b;
}

.containers-pagination button:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}

/* =========================================================
   MODAL BACKDROP
========================================================= */

.containers-modal-backdrop {
    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(2,
            6,
            23,
            0.82);

    backdrop-filter:
        blur(3px);
}

/* =========================================================
   MODAL
========================================================= */

.containers-modal {
    width: min(500px,
            100%);

    overflow: hidden;

    border: 1px solid #334155;
    border-radius: 10px;

    background: #0f172a;

    box-shadow:
        0 25px 70px rgba(0,
            0,
            0,
            0.45);
}

.containers-modal-header {
    padding: 16px 18px;

    border-bottom: 1px solid #1e293b;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.containers-modal-header>div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.containers-modal-header span {
    color: #64748b;

    font-size: 8px;

    text-transform: uppercase;
}

.containers-modal-header h2 {
    margin: 0;

    color: #f8fafc;

    font-size: 16px;
}

.containers-modal-header>button {
    width: 30px;
    height: 30px;

    border: 0;
    border-radius: 5px;

    background: transparent;

    color: #94a3b8;

    font-size: 20px;

    cursor: pointer;
}

.containers-modal-header>button:hover {
    background: #1e293b;

    color: #f8fafc;
}

/* =========================================================
   EDIT FORM
========================================================= */

.containers-edit-form {
    padding: 18px;

    display: flex;
    flex-direction: column;

    gap: 14px;
}

.containers-edit-form label {
    display: flex;
    flex-direction: column;

    gap: 6px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 600;
}

.containers-edit-form input,
.containers-edit-form select {
    width: 100%;

    min-height: 38px;

    box-sizing: border-box;

    padding: 8px 10px;

    border: 1px solid #334155;
    border-radius: 6px;

    outline: none;

    background: #020617;

    color: #e2e8f0;

    font-size: 10px;
}

.containers-edit-form input:focus,
.containers-edit-form select:focus {
    border-color: #0284c7;

    box-shadow:
        0 0 0 3px rgba(2,
            132,
            199,
            0.1);
}

.containers-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0,
                1fr));

    gap: 10px;
}

/* =========================================================
   MODAL ACTIONS
========================================================= */

.containers-modal-actions {
    margin-top: 5px;

    padding-top: 14px;

    border-top: 1px solid #1e293b;

    display: flex;
    justify-content: flex-end;

    gap: 7px;
}

.containers-modal-actions button {
    min-height: 34px;

    padding: 7px 12px;

    border: 1px solid #334155;
    border-radius: 6px;

    background: transparent;

    color: #cbd5e1;

    font-size: 9px;
    font-weight: 600;

    cursor: pointer;
}

.containers-modal-actions button:hover {
    background: #1e293b;
}

.containers-modal-actions .containers-save-button {
    border-color: #0284c7;

    background: #0284c7;

    color: #ffffff;
}

.containers-modal-actions .containers-save-button:hover:not(:disabled) {
    background: #0369a1;
}

.containers-modal-actions .containers-save-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .containers-header {
        flex-direction: column;
    }

    .containers-total {
        width: 100%;
    }

    .containers-filters select {
        flex: 1;
    }
}

@media (max-width: 650px) {
    .containers-search {
        flex-direction: column;
    }

    .containers-search button {
        width: 100%;
    }

    .containers-filters {
        flex-direction: column;
    }

    .containers-filters select,
    .containers-clear-button {
        width: 100%;
    }

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

    .containers-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .containers-pagination>div {
        justify-content: space-between;
    }
}

/* RESPONSIVE */

@media (max-width: 720px) {
    .containers-header {
        flex-direction: column;
    }

    .containers-search {
        flex-direction: column;
    }

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

    .containers-pagination {
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================
   CONTAINERS TOOLBAR
========================================================== */

.containers-toolbar {
    padding: 18px;

    border:
        1px solid rgba(148,
            163,
            184,
            0.14);

    border-radius: 14px;

    background:
        rgba(15,
            23,
            42,
            0.78);

    box-shadow:
        0 14px 32px rgba(0,
            0,
            0,
            0.08);
}

/* ==========================================================
   HEADER
========================================================== */

.containers-toolbar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 16px;
}

.containers-toolbar-header h2 {
    margin:
        2px 0 3px;

    color: #f8fafc;

    font-size: 15px;
}

.containers-toolbar-header p {
    margin: 0;

    color: #64748b;

    font-size: 9px;
}

.containers-eyebrow {
    color: #38bdf8;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.containers-filter-active {
    display: flex;
    align-items: center;

    gap: 5px;

    padding:
        6px 9px;

    border-radius: 999px;

    background:
        rgba(56,
            189,
            248,
            0.08);

    color: #38bdf8;

    font-size: 8px;
    font-weight: 700;
}

.containers-filter-active span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #38bdf8;

    box-shadow:
        0 0 8px rgba(56,
            189,
            248,
            0.7);
}

/* ==========================================================
   SEARCH
========================================================== */

.containers-search-form {
    display: grid;

    grid-template-columns:
        minmax(0,
            1fr) auto;

    gap: 9px;
}

.containers-search-input {
    position: relative;

    display: flex;
    align-items: center;
}

.containers-search-input input {
    width: 100%;

    height: 43px;

    box-sizing: border-box;

    padding:
        0 42px;

    border:
        1px solid rgba(100,
            116,
            139,
            0.45);

    border-radius: 9px;

    outline: none;

    background:
        rgba(2,
            6,
            23,
            0.72);

    color: #f8fafc;

    font-size: 10px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.containers-search-input input:focus {
    border-color:
        rgba(56,
            189,
            248,
            0.7);

    box-shadow:
        0 0 0 3px rgba(56,
            189,
            248,
            0.07);
}

.containers-search-icon {
    position: absolute;

    left: 13px;

    color: #38bdf8;

    pointer-events: none;
}

.containers-search-clear {
    position: absolute;

    right: 8px;

    display: grid;
    place-items: center;

    width: 27px;
    height: 27px;

    border: none;
    border-radius: 7px;

    cursor: pointer;

    background:
        rgba(148,
            163,
            184,
            0.08);

    color: #94a3b8;
}

.containers-search-button {
    min-width: 92px;

    height: 43px;

    padding:
        0 17px;

    border: none;
    border-radius: 9px;

    cursor: pointer;

    background:
        linear-gradient(135deg,
            #0284c7,
            #2563eb);

    color: white;

    font-size: 10px;
    font-weight: 800;

    box-shadow:
        0 7px 18px rgba(37,
            99,
            235,
            0.18);
}

.containers-search-button:disabled {
    cursor: not-allowed;

    opacity: 0.45;
}

/* ==========================================================
   FILTER SECTION
========================================================== */

.containers-filter-section {
    margin-top: 14px;

    padding-top: 14px;

    border-top:
        1px solid rgba(148,
            163,
            184,
            0.08);
}

.containers-filter-title {
    display: flex;
    align-items: baseline;

    gap: 8px;

    margin-bottom: 10px;
}

.containers-filter-title>span {
    color: #cbd5e1;

    font-size: 10px;
    font-weight: 700;
}

.containers-filter-title small {
    color: #475569;

    font-size: 8px;
}

/* ==========================================================
   FILTER GRID
========================================================== */

.containers-filter-grid {
    display: grid;

    grid-template-columns:
        repeat(4,
            minmax(0,
                1fr));

    gap: 9px;
}

.containers-filter-field {
    display: flex;
    flex-direction: column;
}

.containers-filter-field label {
    margin-bottom: 5px;

    color: #64748b;

    font-size: 8px;
    font-weight: 700;

    text-transform: uppercase;
}

.containers-filter-field select {
    width: 100%;

    height: 38px;

    padding:
        0 10px;

    border:
        1px solid rgba(100,
            116,
            139,
            0.35);

    border-radius: 8px;

    outline: none;

    background:
        rgba(2,
            6,
            23,
            0.58);

    color: #cbd5e1;

    font-size: 9px;
}

/* ==========================================================
   PLACEHOLDER FILTER
========================================================== */

.containers-filter-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 54px;

    padding:
        7px 10px;

    border:
        1px dashed rgba(100,
            116,
            139,
            0.25);

    border-radius: 8px;

    opacity: 0.55;

    background:
        rgba(2,
            6,
            23,
            0.2);
}

.containers-filter-placeholder>span {
    color: #475569;

    font-size: 6px;
    font-weight: 800;

    text-transform: uppercase;
}

.containers-filter-placeholder strong {
    margin-top: 1px;

    color: #94a3b8;

    font-size: 9px;
}

.containers-filter-placeholder small {
    margin-top: 2px;

    color: #475569;

    font-size: 7px;
}

/* ==========================================================
   ACTIONS
========================================================== */

.containers-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 7px;

    margin-top: 12px;
}

.containers-filter-actions button {
    min-height: 36px;

    padding:
        0 13px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 9px;
    font-weight: 700;
}

.containers-clear-filters {
    border:
        1px solid rgba(148,
            163,
            184,
            0.2);

    background:
        rgba(15,
            23,
            42,
            0.4);

    color: #94a3b8;
}

.containers-apply-filters {
    border: none;

    background:
        #0284c7;

    color: white;
}

.containers-filter-actions button:disabled {
    cursor: not-allowed;

    opacity: 0.35;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1050px) {
    .containers-filter-grid {
        grid-template-columns:
            repeat(2,
                minmax(0,
                    1fr));
    }
}

@media (max-width: 650px) {
    .containers-toolbar-header {
        flex-direction: column;
    }

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

    .containers-search-button {
        width: 100%;
    }

    .containers-filter-grid {
        grid-template-columns:
            1fr;
    }

    .containers-filter-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .containers-filter-actions button {
        width: 100%;
    }
}

/* ==========================================================
   PAGE HEADER
========================================================== */

.containers-page-eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #38bdf8;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.containers-total {
    display: flex;
    flex-direction: column;

    min-width: 130px;

    padding:
        11px 14px;

    border:
        1px solid rgba(148,
            163,
            184,
            0.14);

    border-radius: 11px;

    background:
        rgba(15,
            23,
            42,
            0.7);
}

.containers-total>span {
    color: #64748b;

    font-size: 7px;
    font-weight: 800;

    text-transform: uppercase;
}

.containers-total strong {
    margin-top: 2px;

    color: #f8fafc;

    font-size: 20px;
}

.containers-total small {
    margin-top: 2px;

    color: #475569;

    font-size: 7px;
}

/* ==========================================================
   ERROR
========================================================== */

.containers-page-error {
    margin-top: 12px;
}

/* ==========================================================
   RESULTS HEADER
========================================================== */

.containers-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 95%;
    gap: 16px;

    margin-top:1%;
    margin-left: 2.5%;

    padding:
        0 2px;
}

.containers-results-header>div:first-child {
    display: flex;
    align-items: baseline;

    gap: 7px;
}

.containers-results-header strong {
    color: #e2e8f0;

    font-size: 11px;
}

.containers-results-header span {
    color: #64748b;

    font-size: 8px;
}

/* ==========================================================
   LIMIT
========================================================== */

.containers-limit-control {
    display: flex;
    align-items: center;

    gap: 6px;
}

.containers-limit-control label,
.containers-limit-control>span {
    color: #64748b;

    font-size: 8px;
}

.containers-limit-control select {
    height: 30px;

    padding:
        0 7px;

    border:
        1px solid rgba(100,
            116,
            139,
            0.3);

    border-radius: 7px;

    outline: none;

    background:
        rgba(15,
            23,
            42,
            0.8);

    color: #cbd5e1;

    font-size: 8px;
}

/* ==========================================================
   IMPROVED PAGINATION
========================================================== */

.containers-pagination-improved {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 10px;
}

.containers-pagination-summary {
    display: flex;

    gap: 4px;
}

.containers-pagination-summary strong {
    color: #cbd5e1;

    font-size: 9px;
}

.containers-pagination-summary span {
    color: #64748b;

    font-size: 9px;
}

.containers-pagination-pages {
    display: flex;
    align-items: center;

    gap: 6px;
}

.containers-current-page {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;

    border-radius: 8px;

    background: #2563eb;

    color: #fff;

    font-size: 9px;
    font-weight: 800;
}

/* ==========================================================
   EDIT SECTIONS
========================================================== */

.containers-modal-header p {
    margin:
        3px 0 0;

    color: #64748b;

    font-size: 8px;
}

.containers-edit-section {
    padding:
        15px 0;
}

.containers-edit-section+.containers-edit-section {
    border-top:
        1px solid rgba(148,
            163,
            184,
            0.08);
}

.containers-edit-section-header {
    display: flex;
    flex-direction: column;

    margin-bottom: 11px;
}

.containers-edit-section-header>span {
    color: #cbd5e1;

    font-size: 10px;
    font-weight: 700;
}

.containers-edit-section-header small {
    margin-top: 2px;

    color: #475569;

    font-size: 7px;
}

.containers-edit-field {
    display: flex;
    flex-direction: column;
}

.containers-edit-field>span {
    margin-bottom: 5px;

    color: #94a3b8;

    font-size: 8px;
    font-weight: 700;
}

.containers-edit-field>span strong {
    margin-left: 3px;

    color: #fb7185;
}

.containers-unit-input {
    position: relative;

    display: flex;
    align-items: center;
}

.containers-unit-input input {
    width: 100%;

    padding-right:
        38px !important;
}

.containers-unit-input>span {
    position: absolute;

    right: 10px;

    color: #64748b;

    font-size: 8px;

    pointer-events: none;
}

/* ==========================================================
   TABLE IMPROVEMENTS
========================================================== */

.containers-type {
    display: flex;
    flex-direction: column;
}

.containers-type strong {
    color: #e2e8f0;

    font-size: 9px;
}

.containers-type span {
    margin-top: 1px;

    max-width: 120px;

    overflow: hidden;

    color: #475569;

    font-size: 7px;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.containers-shipping-line>div {
    display: flex;
    flex-direction: column;
}

.containers-shipping-line strong {
    color: #cbd5e1;

    font-size: 8px;
}

.containers-shipping-line>div>span {
    color: #475569;

    font-size: 7px;
}

.containers-weight strong {
    color: #cbd5e1;

    font-weight: 600;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 700px) {
    .containers-results-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .containers-pagination-improved {
        align-items: stretch;
        flex-direction: column;
    }

    .containers-pagination-pages {
        justify-content: space-between;
    }
}/* =========================================
   CONTAINER LOCATION
========================================= */

.container-location-page {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.container-location-header {
  width: 80%;

  margin-top: 2%;
  margin-left: 2%;

  display: flex;

  align-items: flex-start;

  justify-content: space-between;
}

.container-location-back {
  margin-bottom: 13px;

  padding: 0;

  border: 0;

  background: transparent;

  color: #38bdf8;

  font-size: 12px;

  cursor: pointer;
}

.container-location-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 25px;
}

.container-location-header p {
  margin: 4px 0 0;

  color: #64748b;

  font-size: 10px;
}

/* =========================================
   LOCATION INFO
========================================= */

.container-location-summary {
  display: grid;

  width: 96%;

  margin-left: 2%;

  grid-template-columns:
    repeat(5,
      minmax(0,
        1fr));

  gap: 10px;
}

.container-location-info {
  padding: 13px 15px;

  border: 1px solid #1e293b;

  border-radius: 8px;

  background: #0f172a;

  display: flex;

  flex-direction: column;

  gap: 4px;
}

.container-location-info span {
  color: #64748b;

  font-size: 8px;

  text-transform: uppercase;
}

.container-location-info strong {
  color: #f8fafc;

  font-size: 11px;
}

/* =========================================
   3D SCENE
========================================= */

.container-location-scene-card {
  overflow: hidden;

  width: 96%;

  margin-left: 2%;

  height: 500px;

  border: 1px solid #1e293b;

  border-radius: 10px;

  background: #0f172a;
}

.container-location-scene-header {
  padding: 13px 16px;

  border-bottom: 1px solid #1e293b;
}

.container-location-scene-header>div {
  display: flex;

  flex-direction: column;

  gap: 3px;
}

.container-location-scene-header strong {
  color: #f8fafc;

  font-size: 11px;
}

.container-location-scene-header span {
  color: #64748b;

  font-size: 8px;
}

.container-location-scene {
  width: 100%;

  height: 650px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .container-location-summary {
    grid-template-columns:
      repeat(2,
        1fr);
  }

  .container-location-scene {
    height: 500px;
  }
}

/* ==========================================================
   PAGE
========================================================== */

.container-location-page {
  display: flex;
  flex-direction: column;

  gap: 18px;

  width: 100%;

  padding: 28px;

  box-sizing: border-box;
}

/* ==========================================================
   HEADER
========================================================== */

.container-location-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.container-location-back {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  margin-bottom: 12px;

  padding: 0;

  border: none;

  cursor: pointer;

  background: transparent;

  color: #38bdf8;

  font-size: 10px;
  font-weight: 700;
}

.container-location-back:hover {
  color: #7dd3fc;
}

.container-location-eyebrow {
  display: block;

  margin-bottom: 4px;

  color: #38bdf8;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.container-location-title-row h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 28px;
  line-height: 1.1;
}

.container-location-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 7px;

  margin-top: 9px;
}

.container-location-meta>span {
  padding: 5px 8px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.12);

  border-radius: 999px;

  background:
    rgba(15,
      23,
      42,
      0.8);

  color: #94a3b8;

  font-size: 8px;
  font-weight: 700;
}

.container-location-meta-status.in-yard {
  border-color:
    rgba(34,
      197,
      94,
      0.22);

  background:
    rgba(34,
      197,
      94,
      0.1);

  color: #4ade80;
}

.container-location-meta-status.out-yard {
  border-color:
    rgba(248,
      113,
      113,
      0.22);

  background:
    rgba(239,
      68,
      68,
      0.1);

  color: #f87171;
}

/* ==========================================================
   OVERVIEW
========================================================== */

.container-location-overview {
  padding: 18px;

  width: 96%;
  margin-left: 2%;

  border:
    1px solid rgba(148,
      163,
      184,
      0.14);

  border-radius: 14px;

  background:
    rgba(15,
      23,
      42,
      0.72);
}

.container-location-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 15px;
}

.container-location-overview-header>div:first-child>span {
  display: block;

  margin-bottom: 3px;

  color: #38bdf8;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.container-location-overview-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 17px;
}

.container-location-overview-header p {
  margin:
    3px 0 0;

  color: #64748b;

  font-size: 8px;
}

.container-location-status-pill {
  display: flex;
  align-items: center;

  gap: 6px;

  padding:
    6px 10px;

  border:
    1px solid rgba(34,
      197,
      94,
      0.18);

  border-radius: 999px;

  background:
    rgba(34,
      197,
      94,
      0.08);

  color: #4ade80;

  font-size: 8px;
  font-weight: 800;
}

.container-location-status-pill>span {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 8px rgba(34,
      197,
      94,
      0.8);
}

/* ==========================================================
   LOCATION CARDS
========================================================== */

.container-location-summary {
  display: grid;

  grid-template-columns:
    repeat(5,
      minmax(0,
        1fr));

  gap: 10px;
}

.container-location-info {
  min-width: 0;

  padding:
    13px 14px;

  border:
    1px solid rgba(100,
      116,
      139,
      0.22);

  border-radius: 10px;

  background:
    rgba(2,
      6,
      23,
      0.38);

  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.container-location-info:hover {
  transform:
    translateY(-1px);

  border-color:
    rgba(56,
      189,
      248,
      0.3);
}

.container-location-info>span {
  display: block;

  margin-bottom: 4px;

  color: #64748b;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.05em;

  text-transform: uppercase;
}

.container-location-info strong {
  display: block;

  overflow: hidden;

  color: #f8fafc;

  font-size: 13px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.container-location-info small {
  display: block;

  margin-top: 3px;

  overflow: hidden;

  color: #475569;

  font-size: 7px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

/* ==========================================================
   READABLE LOCATION
========================================================== */

.container-location-readable {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-top: 12px;

  padding:
    11px 13px;

  border:
    1px solid rgba(56,
      189,
      248,
      0.13);

  border-radius: 10px;

  background:
    rgba(14,
      165,
      233,
      0.05);
}

.container-location-readable-icon {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  flex:
    0 0 auto;

  border-radius: 8px;

  background:
    rgba(56,
      189,
      248,
      0.1);

  color: #38bdf8;
}

.container-location-readable>div {
  display: flex;
  flex-direction: column;
}

.container-location-readable>div>span {
  color: #64748b;

  font-size: 7px;

  text-transform: uppercase;
}

.container-location-readable strong {
  margin-top: 2px;

  color: #cbd5e1;

  font-size: 9px;
}

/* ==========================================================
   SCENE CARD
========================================================== */

.container-location-scene-card {
  overflow: hidden;

  border:
    1px solid rgba(148,
      163,
      184,
      0.14);

  border-radius: 14px;

  background:
    rgba(15,
      23,
      42,
      0.72);
}

.container-location-scene-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding:
    13px 16px;

  border-bottom:
    1px solid rgba(148,
      163,
      184,
      0.08);
}

.container-location-scene-header>div {
  display: flex;
  flex-direction: column;
}

.container-location-scene-eyebrow {
  margin-bottom: 2px;

  color: #38bdf8;

  font-size: 6px;
  font-weight: 800;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.container-location-scene-header strong {
  color: #f8fafc;

  font-size: 11px;
}

.container-location-scene-header p {
  margin:
    2px 0 0;

  color: #64748b;

  font-size: 7px;
}

.container-location-expand-button {
  display: flex;
  align-items: center;

  gap: 6px;

  height: 34px;

  padding:
    0 12px;

  border: none;
  border-radius: 8px;

  cursor: pointer;

  background: #0284c7;

  color: white;

  font-size: 8px;
  font-weight: 800;
}

.container-location-expand-button:hover {
  background: #0ea5e9;
}

.container-location-expand-button>span {
  font-size: 13px;
}

/* ==========================================================
   NORMAL SCENE
========================================================== */

.container-location-scene {
  width: 100%;
  height: 520px;

  background: #050b16;
}

/* Canvas must use the entire area */
.container-location-scene>div,
.container-location-scene canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================
   LEGEND
========================================================== */

.container-location-map-legend {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  min-height: 34px;

  border-top:
    1px solid rgba(148,
      163,
      184,
      0.07);

  color: #64748b;

  font-size: 7px;
}

.container-location-map-legend>div {
  display: flex;
  align-items: center;

  gap: 5px;
}

.legend-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}

.legend-dot.location {
  background: #22c55e;

  box-shadow:
    0 0 8px rgba(34,
      197,
      94,
      0.75);
}

.legend-dot.context {
  background: #64748b;
}

.legend-line {
  width: 3px;
  height: 13px;

  border-radius: 999px;

  background:
    linear-gradient(to top,
      #22c55e,
      #bbf7d0);

  box-shadow:
    0 0 6px rgba(34,
      197,
      94,
      0.7);
}

/* ==========================================================
   OUTSIDE
========================================================== */

.container-location-outside-card {
  display: flex;
  align-items: center;

  gap: 14px;

  padding: 20px;

  border:
    1px solid rgba(248,
      113,
      113,
      0.16);

  border-radius: 14px;

  background:
    rgba(127,
      29,
      29,
      0.08);
}

.container-location-outside-icon {
  display: grid;
  place-items: center;

  width: 42px;
  height: 42px;

  flex:
    0 0 auto;

  border-radius: 12px;

  background:
    rgba(239,
      68,
      68,
      0.11);

  color: #f87171;

  font-size: 18px;
}

.container-location-outside-card span {
  color: #f87171;

  font-size: 7px;
  font-weight: 800;

  text-transform: uppercase;
}

.container-location-outside-card h2 {
  margin:
    2px 0 4px;

  color: #f8fafc;

  font-size: 16px;
}

.container-location-outside-card p {
  margin: 0;

  color: #64748b;

  font-size: 9px;
}

/* ==========================================================
   LOADING
========================================================== */

.container-location-loading {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;

  min-height: 240px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.12);

  border-radius: 14px;

  background:
    rgba(15,
      23,
      42,
      0.55);
}

.container-location-loading-spinner {
  width: 28px;
  height: 28px;

  margin-bottom: 10px;

  border:
    3px solid rgba(56,
      189,
      248,
      0.12);

  border-top-color: #38bdf8;

  border-radius: 50%;

  animation:
    container-location-spin 0.8s linear infinite;
}

.container-location-loading strong {
  color: #e2e8f0;

  font-size: 11px;
}

.container-location-loading span {
  margin-top: 3px;

  color: #64748b;

  font-size: 8px;
}

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

/* ==========================================================
   EXPANDED MAP
========================================================== */

.container-location-expanded {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: grid;

  grid-template-rows:
    auto auto minmax(0,
      1fr) auto;

  padding: 14px;

  box-sizing: border-box;

  background: #020617;
}

/* ==========================================================
   EXPANDED HEADER
========================================================== */

.container-location-expanded-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
    8px 10px 12px;

  border-bottom:
    1px solid rgba(148,
      163,
      184,
      0.1);
}

.container-location-expanded-left {
  display: flex;
  align-items: center;

  gap: 18px;
}

.container-location-expanded-left .container-location-back {
  margin: 0;
}

.container-location-expanded-left>div {
  display: flex;
  flex-direction: column;
}

.container-location-expanded-left>div>span {
  color: #38bdf8;

  font-size: 7px;

  text-transform: uppercase;
}

.container-location-expanded-left h2 {
  margin:
    1px 0 0;

  color: #f8fafc;

  font-size: 15px;
}

.container-location-close-expanded {
  display: flex;
  align-items: center;

  gap: 7px;

  height: 34px;

  padding:
    0 11px;

  border:
    1px solid rgba(148,
      163,
      184,
      0.18);

  border-radius: 8px;

  cursor: pointer;

  background:
    rgba(15,
      23,
      42,
      0.8);

  color: #cbd5e1;

  font-size: 8px;
}

.container-location-close-expanded:first-letter {
  font-size: 15px;
}

/* ==========================================================
   EXPANDED INFO
========================================================== */

.container-location-expanded-info {
  display: grid;

  grid-template-columns:
    repeat(5,
      minmax(0,
        1fr));

  gap: 8px;

  padding:
    10px 0;
}

.container-location-expanded-info .container-location-info {
  padding:
    8px 11px;
}

.container-location-expanded-info .container-location-info strong {
  font-size: 10px;
}

/* ==========================================================
   EXPANDED SCENE
========================================================== */

.container-location-expanded-scene {
  min-width: 0;
  min-height: 0;

  overflow: hidden;

  border:
    1px solid rgba(56,
      189,
      248,
      0.16);

  border-radius: 12px;

  background: #050b16;
}

.container-location-expanded-scene>div,
.container-location-expanded-scene canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ==========================================================
   EXPANDED FOOTER
========================================================== */

.container-location-expanded-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding:
    9px 6px 0;

  color: #64748b;

  font-size: 7px;
}

.container-location-expanded-footer>div {
  display: flex;
  align-items: center;

  gap: 6px;
}

.container-location-expanded-footer strong {
  color: #cbd5e1;
}

/* ==========================================================
   BAY LABEL
========================================================== */

.yard-bay-location-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-width: 150px;

  padding: 10px 16px;

  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;

  background: rgba(2, 6, 23, 0.92);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.45);

  backdrop-filter: blur(10px);

  color: #f8fafc;

  white-space: nowrap;

  user-select: none;
}

.yard-bay-location-label-prefix {
  margin-bottom: 2px;

  color: #94a3b8;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.15em;
}

.yard-bay-location-label strong {
  font-size: 22px;
  font-weight: 900;

  line-height: 1.1;
}

.yard-bay-location-label small {
  margin-top: 4px;

  color: #94a3b8;

  font-size: 10px;
  font-weight: 600;
}

/* ==========================================
   BAHÍA ACTUAL / ENFOCADA
========================================== */

.yard-bay-location-label-active {
  min-width: 190px;

  padding: 13px 20px;

  border-color: rgba(56, 189, 248, 0.8);

  background: rgba(3, 18, 36, 0.96);

  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.15),
    0 0 30px rgba(56, 189, 248, 0.3),
    0 14px 35px rgba(0, 0, 0, 0.5);
}

.yard-bay-location-label-active
.yard-bay-location-label-prefix {
  color: #38bdf8;
}

.yard-bay-location-label-active strong {
  color: #e0f2fe;

  font-size: 28px;
}

.yard-bay-location-label-active small {
  color: #bae6fd;

  font-size: 11px;
}.config-page-new {
  width: 100%;
  min-height: 100%;

  padding: 28px 32px;

  background: #020617;
}

.config-page-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 26px;
}

.config-page-header p {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 12px;
}

.config-tabs {
  display: flex;
  align-items: stretch;

  gap: 8px;

  margin-top: 25px;
  margin-bottom: 24px;

  padding: 6px;

  overflow-x: auto;

  border:
    1px solid #1e293b;

  border-radius: 10px;

  background: #0f172a;
}

.config-menu-item {
  min-width: 135px;

  padding: 10px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  border: 1px solid transparent;
  border-radius: 7px;

  background: transparent;

  color: #94a3b8;

  text-align: left;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.config-menu-item:hover {
  background: #172033;

  color: #e2e8f0;
}

.config-menu-item.active {
  border-color: #334155;

  background: #1e293b;

  color: #38bdf8;
}

.config-menu-item>div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.config-menu-item strong {
  font-size: 11px;
}

.config-menu-item small {
  color: #64748b;

  font-size: 8px;
}

.config-menu-item.active small {
  color: #94a3b8;
}

.config-count {
  min-width: 22px;
  height: 22px;

  padding: 0 6px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #334155;

  color: #cbd5e1;

  font-size: 9px;
  font-weight: 600;
}


/* =========================
   CONTENT
========================= */

.config-content {
  width: 100%;
  min-width: 0;
}

.config-section {
  width: 100%;
}

.config-section-header {
  margin-top: 10px;
  margin-bottom: 18px;
  width: 95%;
  margin-left: 2.5%;
}

.config-section-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 24px;
}

.config-section-header p {
  margin: 4px 0 0;

  color: #64748b;

  font-size: 11px;
}

.config-menu-item {
  width: 100%;

  min-height: 58px;

  margin: 0;

  display: flex;

  align-items: center;

  gap: 12px;

  padding:
    9px 10px;

  border: none;

  border-radius: 7px;

  background: transparent;

  color: #94a3b8;

  text-align: left;

  cursor: pointer;
}

.config-menu-item:hover {
  background: #1e293b;

  color: #e2e8f0;
}

.config-menu-item.active {
  background: #1e293b;

  color: #f8fafc;
}

.config-menu-icon {
  width: 28px;

  flex-shrink: 0;

  text-align: center;

  font-size: 18px;
}

.config-menu-item>div {
  min-width: 0;

  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 2px;
}

.config-menu-item strong {
  font-size: 13px;
}

.config-menu-item small {
  color: #64748b;

  font-size: 11px;
}

.config-count {
  min-width: 22px;

  padding: 3px 6px;

  border-radius: 10px;

  background: #334155;

  color: #cbd5e1;

  text-align: center;

  font-size: 10px;
}


/* ========================================
   CONTENIDO
======================================== */

.config-content {
  min-width: 0;

  overflow-y: auto;

  padding: 34px;
}

.config-section {
  width: 100%;

  max-width: 900px;

  margin: 0 auto;
}

.config-layout-section {
  max-width: none;
}

.config-section-header {
  margin-bottom: 26px;
}

.config-section-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 26px;
}

.config-section-header p {
  margin:
    7px 0 0;

  color: #64748b;

  font-size: 14px;
}


/* ========================================
   CARD
======================================== */

.config-card {
  margin-bottom: 20px;

  padding: 22px;

  background: #0f172a;

  border:
    1px solid #1e293b;

  border-radius: 10px;
}

.config-card-header {
  margin-bottom: 20px;
}

.config-card-header h3 {
  margin: 0;

  color: #f8fafc;

  font-size: 16px;
}

.config-card-header p {
  margin:
    5px 0 0;

  color: #64748b;

  font-size: 12px;

  line-height: 1.5;
}


/* ========================================
   FORMULARIOS
======================================== */

.config-form-field {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.config-form-field label {
  color: #94a3b8;

  font-size: 12px;

  font-weight: 500;
}

.config-form-field input,
.config-form-field select {
  width: 100%;

  padding:
    10px 12px;

  border:
    1px solid #334155;

  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #f8fafc;
}

.config-form-field input:focus,
.config-form-field select:focus {
  border-color: #0284c7;
}

.config-form-grid {
  display: grid;

  grid-template-columns:
    repeat(3,
      1fr);

  gap: 14px;

  margin-top: 16px;
}

.config-card-actions {
  display: flex;

  justify-content:
    flex-end;

  margin-top: 20px;
}


/* ========================================
   BOTONES
======================================== */

.config-primary-button {
  margin: 0;

  padding:
    10px 16px;

  border: none;

  border-radius: 7px;

  background: #0284c7;

  color: white;

  cursor: pointer;
}

.config-primary-button:hover {
  background: #0369a1;
}


/* ========================================
   RESUMEN
======================================== */

.config-summary {
  display: grid;

  grid-template-columns:
    repeat(3,
      1fr);

  gap: 12px;

  margin-top: 24px;
}

.config-summary>div {
  padding: 14px;

  display: flex;

  flex-direction: column;

  gap: 5px;

  background: #020617;

  border:
    1px solid #1e293b;

  border-radius: 7px;
}

.config-summary span {
  color: #64748b;

  font-size: 11px;

  text-transform:
    uppercase;
}

.config-summary strong {
  color: #f8fafc;

  font-size: 23px;
}


/* ========================================
   LISTA DE BAHÍAS
======================================== */

.bay-list {
  display: flex;

  flex-direction: column;
}

.bay-list-item {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 25px;

  padding:
    15px 0;

  border-bottom:
    1px solid #1e293b;
}

.bay-list-item:last-child {
  border-bottom: none;
}

.bay-list-name {
  min-width: 160px;

  display: flex;

  flex-direction: column;

  gap: 4px;
}

.bay-list-name strong {
  color: #e2e8f0;

  font-size: 14px;
}

.bay-list-name span {
  color: #64748b;

  font-size: 11px;
}

.bay-list-values {
  display: flex;

  flex-wrap: wrap;

  justify-content:
    flex-end;

  gap: 8px;
}

.bay-list-values span {
  padding:
    5px 8px;

  background: #1e293b;

  border-radius: 5px;

  color: #64748b;

  font-size: 11px;
}

.bay-list-values strong {
  margin-right: 4px;

  color: #cbd5e1;
}


/* ========================================
   EMPTY
======================================== */

.config-empty {
  padding: 30px;

  text-align: center;

  color: #64748b;

  font-size: 13px;
}


/* ========================================
   ARCHIVOS
======================================== */

.config-file-input {
  width: 100%;

  padding: 12px;

  border:
    1px dashed #334155;

  border-radius: 7px;

  background: #020617;

  color: #94a3b8;
}


/* ========================================
   DANGER
======================================== */

.config-danger-card {
  border-color:
    #7f1d1d;
}

.config-danger-card .config-card-header h3 {
  color: #fca5a5;
}

.config-danger-button {
  margin: 0;

  padding:
    10px 16px;

  border: none;

  border-radius: 7px;

  background: #b91c1c;

  color: white;

  cursor: pointer;
}

.config-danger-button:hover {
  background: #991b1b;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 800px) {
  .config-page-new {
    grid-template-columns:
      1fr;

    overflow-y: auto;
  }

  .config-sidebar {
    min-height: auto;

    border-right: none;

    border-bottom:
      1px solid #1e293b;
  }

  .config-menu-item {
    min-width: 145px;
  }

  .config-content {
    overflow: visible;

    padding: 20px;
  }

  .config-form-grid,
  .config-summary {
    grid-template-columns:
      1fr;
  }

  .bay-list-item {
    align-items:
      flex-start;

    flex-direction:
      column;
  }

  .bay-list-values {
    justify-content:
      flex-start;
  }
}

.config-resource-row {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 0;
  padding: 12px 14px;

  border: 1px solid transparent;
  border-radius: 6px;

  background: transparent;

  color: #94a3b8;

  cursor: pointer;
}

.config-resource-row:hover {
  background: #1e293b;
}

.config-resource-row.selected {
  border-color: #0284c7;

  background:
    rgba(2,
      132,
      199,
      0.1);

  color: #f8fafc;
}

.layout-save-bar {
  margin-top: 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 12px 14px;

  border: 1px solid #1e293b;
  border-radius: 7px;

  background: #0f172a;

  color: #94a3b8;

  font-size: 12px;
}

.layout-save-bar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.config-yard-selector {
  position: sticky;

  top: 12px;

  z-index: 20;

  width: 90%;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 20px;

  padding: 14px 16px;

  border: 1px solid rgba(14, 165, 233, 0.35);

  border-radius: 10px;

  background:
    rgba(15, 23, 42, 0.96);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18);

  backdrop-filter:
    blur(10px);
  margin-left: 5%;
}

.config-yard-selector-left {
  display: flex;

  align-items: center;

  gap: 12px;

  min-width: 0;
}

.config-yard-selector-icon {
  width: 36px;
  height: 36px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  background:
    rgba(14, 165, 233, 0.14);

  border: 1px solid rgba(14, 165, 233, 0.25);

  color: #38bdf8;

  font-size: 10px;
  font-weight: 800;
}

.config-yard-selector-info {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.config-yard-selector-info>span {
  color: #64748b;

  font-size: 8px;
  font-weight: 600;

  letter-spacing: 0.7px;

  text-transform: uppercase;
}

.config-yard-selector-info>strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 13px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.config-yard-selector-info>small {
  color: #64748b;

  font-size: 8px;
}

.config-yard-selector-control {
  width: min(320px,
      40%);

  min-width: 230px;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.config-yard-selector-control label {
  color: #94a3b8;

  font-size: 8px;
  font-weight: 600;
}

.config-yard-selector-control select {
  width: 100%;

  min-height: 38px;

  box-sizing: border-box;

  padding: 8px 35px 8px 11px;

  border: 1px solid #334155;
  border-radius: 6px;

  outline: none;

  background: #020617;

  color: #e2e8f0;

  font-size: 10px;

  cursor: pointer;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.config-yard-selector-control select:hover {
  border-color: #475569;
}

.config-yard-selector-control select:focus {
  border-color: #0284c7;

  box-shadow:
    0 0 0 3px rgba(2, 132, 199, 0.1);
}

.config-yard-selector-control select:disabled {
  opacity: 0.5;

  cursor: not-allowed;
}


/* ========================================
   CONTEXTO DISTRIBUCIÓN
======================================== */

.config-layout-context {
  display: flex;

  align-items: center;

  gap: 30px;

  margin-bottom: 12px;

  padding: 10px 13px;

  border: 1px solid #1e293b;

  border-radius: 7px;

  background: #0f172a;
}

.config-layout-context>div {
  display: flex;

  flex-direction: column;

  gap: 2px;
}

.config-layout-context span {
  color: #64748b;

  font-size: 8px;

  text-transform: uppercase;
}

.config-layout-context strong {
  color: #e2e8f0;

  font-size: 10px;
}


/* ========================================
   CARD HEADER TEXT
======================================== */

.config-card-header p {
  margin: 3px 0 0;

  color: #64748b;

  font-size: 9px;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 800px) {
  .config-yard-selector {
    position: static;

    align-items: stretch;

    flex-direction: column;

    gap: 12px;
  }

  .config-yard-selector-control {
    width: 100%;

    min-width: 0;
  }
}/* =========================================
   YARD CONFIG PAGE
========================================= */

.yard-config-page {
  width: 100%;
  max-width: 1280px;

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  gap: 20px;
}

/* =========================================
   HEADER
========================================= */

.yard-config-header {
  margin: 2%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;
}

.yard-config-header > div:first-child {
  min-width: 0;
}

.yard-config-back {
  display: inline-flex;

  margin-bottom: 8px;
  padding: 0;

  border: 0;

  background: transparent;

  color: #38bdf8;

  font-size: 12px;
  font-weight: 500;

  cursor: pointer;
}

.yard-config-back:hover {
  color: #7dd3fc;
}

.yard-config-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 28px;
  font-weight: 700;

  line-height: 1.1;
}

.yard-config-header p {
  margin: 6px 0 0;

  color: #64748b;

  font-size: 12px;
}

/* BOTÓN VER PATIO */

.yard-config-header .yard-view-button {
  flex: 0 0 auto;

  width: auto;
  min-width: 130px;

  padding: 10px 16px;

  border: 1px solid #0284c7;
  border-radius: 7px;

  background: #0284c7;

  color: #ffffff;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;
}

.yard-config-header .yard-view-button:hover {
  background: #0369a1;
}

/* =========================================
   TABS
========================================= */

.yard-config-tabs {
  display: flex;
  align-items: center;

  margin-left: 5%;
  width: 90%;

  gap: 4px;

  padding: 5px;

  border: 1px solid #1e293b;
  border-radius: 9px;

  background: #0f172a;
}

.yard-config-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  min-height: 34px;

  padding: 7px 14px;

  border: 0;
  border-radius: 6px;

  background: transparent;

  color: #94a3b8;

  font-size: 10px;
  font-weight: 500;

  cursor: pointer;
}

.yard-config-tabs button:hover {
  background: #172033;

  color: #e2e8f0;
}

.yard-config-tabs button.active {
  background: #1e293b;

  color: #38bdf8;
}

.yard-config-tabs button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 18px;
  height: 18px;

  padding: 0 5px;

  border-radius: 999px;

  background: #020617;

  color: #94a3b8;

  font-size: 8px;
}

/* =========================================
   CONFIG SECTION
========================================= */

.yard-config-page .config-section {
  width: 100%;
  max-width: 900px;

  margin: 20px auto 0;

  display: flex;
  flex-direction: column;

  gap: 16px;
}

.yard-config-page .config-section-header {
  display: flex;
  flex-direction: column;

  gap: 4px;
}

.yard-config-page .config-section-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 22px;
  font-weight: 700;
}

.yard-config-page .config-section-header p {
  margin: 0;

  color: #64748b;

  font-size: 11px;
}

/* =========================================
   CARD
========================================= */

.yard-config-page .config-card {
  width: 100%;

  box-sizing: border-box;

  padding: 22px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

/* =========================================
   FORM
========================================= */

.yard-general-form {
  display: flex;
  flex-direction: column;

  gap: 16px;
}

.yard-config-page .config-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 14px;
}

.yard-config-page .config-form-field {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.yard-config-page .config-form-field label {
  color: #94a3b8;

  font-size: 10px;
  font-weight: 600;
}

.yard-config-page .config-form-field input,
.yard-config-page .config-form-field textarea,
.yard-config-page .config-form-field select {
  width: 100%;

  box-sizing: border-box;

  padding: 10px 12px;

  border: 1px solid #334155;
  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #e2e8f0;

  font-size: 11px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.yard-config-page .config-form-field textarea {
  min-height: 110px;

  resize: vertical;

  font-family: inherit;
}

.yard-config-page .config-form-field input:focus,
.yard-config-page .config-form-field textarea:focus,
.yard-config-page .config-form-field select:focus {
  border-color: #0284c7;

  box-shadow:
    0 0 0 3px
    rgba(2, 132, 199, 0.12);
}

/* =========================================
   ACTIONS
========================================= */

.yard-config-page .config-card-actions {
  display: flex;
  justify-content: flex-end;

  margin-top: 6px;
}

.yard-config-page .config-primary-button {
  width: auto;

  min-height: 36px;

  padding: 8px 14px;

  border: 1px solid #0284c7;
  border-radius: 6px;

  background: #0284c7;

  color: #ffffff;

  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
}

.yard-config-page .config-primary-button:hover:not(:disabled) {
  background: #0369a1;
}

.yard-config-page .config-primary-button:disabled {
  opacity: 0.5;

  cursor: not-allowed;
}

/* =========================================
   BAYS
========================================= */

.yard-config-page .bay-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 14px 0;

  border-bottom: 1px solid #1e293b;
}

.yard-config-page .bay-list-item:last-child {
  border-bottom: 0;
}

.yard-config-page .bay-list-name {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.yard-config-page .bay-list-name strong {
  color: #f8fafc;

  font-size: 11px;
}

.yard-config-page .bay-list-name span {
  color: #64748b;

  font-size: 9px;
}

.yard-config-page .bay-list-values {
  display: flex;
  align-items: center;

  gap: 14px;
}

.yard-config-page .bay-list-values > span {
  color: #94a3b8;

  font-size: 9px;
}

/* =========================================
   LAYOUT
========================================= */

.yard-config-page .config-layout-section {
  max-width: 1200px;
}

.yard-config-page .layout-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 90%;
  margin-left: 5%;
  gap: 15px;

  padding: 12px 14px;

  border: 1px solid #1e293b;
  border-radius: 8px;

  background: #0f172a;
}

.yard-config-page .layout-save-bar span {
  color: #94a3b8;

  font-size: 10px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
  .yard-config-page {
    max-width: 100%;
  }

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

  .yard-config-header .yard-view-button {
    width: 100%;
  }

  .yard-config-page .config-section {
    max-width: 100%;
  }
}

@media (max-width: 650px) {
  .yard-config-page .config-form-grid {
    grid-template-columns: 1fr;
  }

  .yard-config-tabs {
    overflow-x: auto;
  }

  .yard-config-tabs button {
    white-space: nowrap;
  }

  .yard-config-page .bay-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .yard-config-page .bay-list-values {
    width: 100%;

    flex-wrap: wrap;
  }
}


/* =========================================
   YARD CREATE MODAL
========================================= */

.yard-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(6px);
}

.yard-modal {
  width: min(560px, 100%);

  overflow: hidden;

  border: 1px solid #334155;
  border-radius: 14px;

  background: #0f172a;

  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45);
}

/* HEADER */

.yard-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 16px;

  padding: 22px 24px 18px;

  border-bottom: 1px solid #1e293b;
}

.yard-modal-header > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yard-modal-header span {
  color: #64748b;

  font-size: 10px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.yard-modal-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 22px;
  font-weight: 700;
}

.yard-modal-header > button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;

  padding: 0;

  border: 1px solid #334155;
  border-radius: 7px;

  background: #111827;

  color: #94a3b8;

  font-size: 18px;
  line-height: 1;

  cursor: pointer;
}

.yard-modal-header > button:hover {
  background: #1e293b;
  color: #f8fafc;
}

/* FORM */

.yard-create-form {
  display: flex;
  flex-direction: column;

  gap: 18px;

  padding: 22px 24px 24px;
}

.yard-create-form > label,
.yard-form-grid label {
  display: flex;
  flex-direction: column;

  gap: 7px;

  color: #cbd5e1;

  font-size: 11px;
  font-weight: 600;
}

/* INPUTS */

.yard-create-form input,
.yard-create-form textarea,
.yard-create-form select {
  width: 100%;
  box-sizing: border-box;

  min-height: 40px;

  padding: 10px 12px;

  border: 1px solid #334155;
  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #f8fafc;

  font-family: inherit;
  font-size: 12px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.yard-create-form input::placeholder,
.yard-create-form textarea::placeholder {
  color: #475569;
}

.yard-create-form input:focus,
.yard-create-form textarea:focus,
.yard-create-form select:focus {
  border-color: #0284c7;

  box-shadow:
    0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* DESCRIPTION */

.yard-create-form textarea {
  min-height: 96px;

  resize: vertical;
}

/* WIDTH / LENGTH */

.yard-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 14px;
}

/* ACTIONS */

.yard-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 10px;

  margin-top: 4px;
  padding-top: 18px;

  border-top: 1px solid #1e293b;
}

.yard-modal-actions > button {
  min-height: 38px;

  padding: 8px 15px;

  border-radius: 7px;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;
}

/* CANCEL */

.yard-modal-actions > button:first-child {
  border: 1px solid #334155;

  background: transparent;

  color: #cbd5e1;
}

.yard-modal-actions > button:first-child:hover {
  background: #1e293b;
}

/* CREATE */

.yard-modal-actions .operation-primary-button {
  border: 1px solid #0284c7;

  background: #0284c7;

  color: #ffffff;
}

.yard-modal-actions .operation-primary-button:hover:not(:disabled) {
  background: #0369a1;
}

.yard-modal-actions .operation-primary-button:disabled {
  opacity: 0.55;

  cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 600px) {
  .yard-modal-backdrop {
    padding: 14px;
  }

  .yard-modal-header,
  .yard-create-form {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .yard-modal-actions {
    flex-direction: column-reverse;
  }

  .yard-modal-actions > button {
    width: 100%;
  }
}

/* ==========================================
   COMMON
========================================== */

.config-eyebrow {
  display: block;

  margin-bottom: 4px;

  color: #38bdf8;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.config-required {
  margin-left: 4px;

  color: #fb7185;

  font-weight: 800;
}

.config-form-field small {
  margin-top: 5px;

  color: #64748b;

  font-size: 10px;
}

.config-section-header {
  width: 90%;
  margin-left: 5%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.config-section-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;

  padding:
    8px
    12px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.12
    );

  border-radius: 10px;

  background:
    rgba(
      15,
      23,
      42,
      0.55
    );
}

.config-section-counter strong {
  color: #38bdf8;

  font-size: 18px;
}

.config-section-counter span {
  color: #64748b;

  font-size: 10px;
}

/* ==========================================
   BAYS SECTION
========================================== */

.bays-section-layout {
  display: grid;

  grid-template-columns:
    minmax(
      260px,
      340px
    )
    minmax(
      0,
      1fr
    );

  gap: 18px;

  align-items: start;

  margin-top: 20px;
}

/* ==========================================
   CREATE BAY
========================================== */

.bay-create-card,
.bays-list-card {
  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.15
    );

  border-radius: 14px;

  background:
    rgba(
      15,
      23,
      42,
      0.78
    );
}

.bay-create-card {
  position: sticky;

  top: 20px;

  padding: 18px;
}

.bay-create-header {
  margin-bottom: 18px;
}

.bay-create-header h3 {
  margin:
    0
    0
    5px;

  color: #f8fafc;

  font-size: 17px;
}

.bay-create-header p {
  margin: 0;

  color: #64748b;

  font-size: 11px;

  line-height: 1.45;
}

.bay-create-dimensions {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 8px;
}

.bay-create-capacity {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 12px;

  padding:
    10px
    12px;

  border-radius: 9px;

  background:
    rgba(
      2,
      6,
      23,
      0.4
    );
}

.bay-create-capacity span {
  color: #64748b;

  font-size: 10px;
}

.bay-create-capacity strong {
  color: #e2e8f0;

  font-size: 11px;
}

.bay-create-button {
  width: 100%;

  margin-top: 14px;
}

/* ==========================================
   BAYS LIST
========================================== */

.bays-list-card {
  min-width: 0;

  padding: 18px;
}

.bays-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 14px;
}

.bays-list-header h3 {
  margin:
    0
    0
    3px;

  color: #f8fafc;

  font-size: 17px;
}

.bays-list-header p {
  margin: 0;

  color: #64748b;

  font-size: 10px;
}

.bays-list-count {
  display: grid;
  place-items: center;

  min-width: 34px;
  height: 34px;

  padding:
    0
    8px;

  border-radius: 9px;

  background:
    rgba(
      56,
      189,
      248,
      0.12
    );

  color: #38bdf8;

  font-size: 12px;
  font-weight: 800;
}

/* SEARCH */

.bays-search {
  position: relative;

  display: flex;
  align-items: center;

  margin-bottom: 16px;
}

.bays-search > span {
  position: absolute;

  left: 13px;

  color: #38bdf8;

  pointer-events: none;
}

.bays-search input {
  width: 100%;

  height: 42px;

  padding:
    0
    42px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.16
    );

  border-radius: 10px;

  outline: none;

  background:
    rgba(
      2,
      6,
      23,
      0.45
    );

  color: #e2e8f0;
}

.bays-search input:focus {
  border-color:
    rgba(
      56,
      189,
      248,
      0.6
    );

  box-shadow:
    0
    0
    0
    3px
    rgba(
      56,
      189,
      248,
      0.07
    );
}

.bays-search button {
  position: absolute;

  right: 8px;

  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border: none;
  border-radius: 7px;

  cursor: pointer;

  background:
    rgba(
      148,
      163,
      184,
      0.08
    );

  color: #94a3b8;
}

/* ==========================================
   GRID
========================================== */

.bays-management-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 10px;
}

/* ==========================================
   BAY CARD
========================================== */

.bay-management-card {
  min-width: 0;

  padding: 12px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.12
    );

  border-radius: 11px;

  background:
    rgba(
      2,
      6,
      23,
      0.36
    );

  transition:
    transform
    0.15s ease,
    border-color
    0.15s ease,
    background
    0.15s ease;
}

.bay-management-card:hover {
  transform:
    translateY(
      -2px
    );

  border-color:
    rgba(
      56,
      189,
      248,
      0.3
    );

  background:
    rgba(
      15,
      23,
      42,
      0.7
    );
}

.bay-management-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
}

.bay-management-number {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  flex-shrink: 0;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.3
    );

  border-radius: 9px;

  background:
    rgba(
      56,
      189,
      248,
      0.07
    );

  color: #38bdf8;

  font-size: 10px;
  font-weight: 800;
}

.bay-management-heading {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-width: 0;
}

.bay-management-heading strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 11px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.bay-management-heading span {
  color: #64748b;

  font-size: 9px;
}

.bay-management-status {
  display: flex;
  align-items: center;
  gap: 4px;

  color: #4ade80;

  font-size: 8px;
  font-weight: 700;
}

.bay-management-status i {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: #22c55e;
}

/* METRICS */

.bay-management-metrics {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 5px;

  margin-top: 12px;
}

.bay-management-metrics div {
  display: flex;
  flex-direction: column;
  gap: 2px;

  padding: 7px;

  border-radius: 7px;

  background:
    rgba(
      15,
      23,
      42,
      0.55
    );
}

.bay-management-metrics span {
  color: #64748b;

  font-size: 8px;
}

.bay-management-metrics strong {
  color: #e2e8f0;

  font-size: 12px;
}

.bay-management-capacity {
  display: flex;
  justify-content: space-between;

  margin-top: 8px;

  padding:
    7px
    2px;

  color: #64748b;

  font-size: 9px;
}

.bay-management-capacity strong {
  color: #94a3b8;
}

.bay-management-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  padding-top: 8px;

  border-top:
    1px solid
    rgba(
      148,
      163,
      184,
      0.08
    );
}

.bay-management-card-footer > span {
  overflow: hidden;

  color: #475569;

  font-size: 8px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================
   PAGINATION
========================================== */

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

  gap: 8px;

  margin-top: 18px;
}

.bays-pagination > div {
  display: flex;
  gap: 4px;
}

.bays-pagination button {
  display: grid;
  place-items: center;

  min-width: 30px;
  height: 30px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.12
    );

  border-radius: 7px;

  cursor: pointer;

  background:
    rgba(
      15,
      23,
      42,
      0.6
    );

  color: #94a3b8;
}

.bays-pagination button:hover:not(:disabled) {
  border-color:
    rgba(
      56,
      189,
      248,
      0.4
    );

  color: #38bdf8;
}

.bays-pagination button.active {
  border-color:
    #2563eb;

  background:
    #2563eb;

  color: white;
}

.bays-pagination button:disabled {
  cursor: not-allowed;

  opacity: 0.3;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (
  max-width: 1200px
) {
  .bays-section-layout {
    grid-template-columns:
      280px
      1fr;
  }

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

@media (
  max-width: 850px
) {
  .bays-section-layout {
    grid-template-columns:
      1fr;
  }

  .bay-create-card {
    position: static;
  }

  .bays-management-grid {
    grid-template-columns:
      1fr;
  }
}

/* ==========================================
   LAYOUT SECTION
========================================== */

.layout-section-summary {
  display: flex;
  align-items: baseline;
  gap: 6px;

  padding:
    8px
    12px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.12
    );

  border-radius: 10px;

  background:
    rgba(
      15,
      23,
      42,
      0.6
    );
}

.layout-section-summary strong {
  color: #38bdf8;

  font-size: 18px;
}

.layout-section-summary span {
  color: #64748b;

  font-size: 10px;
}

/* ==========================================
   WRAPPER
========================================== */

.bay-layout-wrapper {
  display: flex;
  flex-direction: column;

  width: 90%;

  margin-left: 5%;



  overflow: hidden;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.16
    );

  border-radius: 14px;

  background: #020617;
}

/* ==========================================
   FULLSCREEN
========================================== */

.bay-layout-wrapper:fullscreen,
.bay-layout-wrapper-fullscreen {
  width: 100vw;
  height: 100vh;

  margin: 0;

  border: none;
  border-radius: 0;

  background: #020617;
}

.bay-layout-wrapper:fullscreen
  .bay-layout-editor,
.bay-layout-wrapper-fullscreen
  .bay-layout-editor {
  flex: 1;

  height: auto;
  min-height: 0;
}

/* ==========================================
   TOOLBAR
========================================== */

.layout-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  padding:
    13px
    15px;

  border-bottom:
    1px solid
    rgba(
      148,
      163,
      184,
      0.12
    );

  background:
    rgba(
      15,
      23,
      42,
      0.96
    );
}

.layout-toolbar-title {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.layout-toolbar-title > strong {
  color: #f8fafc;

  font-size: 14px;
}

.layout-toolbar-title > small {
  margin-top: 2px;

  color: #64748b;

  font-size: 10px;
}

.layout-toolbar-actions {
  display: flex;
  align-items: center;

  gap: 7px;

  flex-shrink: 0;
}

.layout-zoom-group {
  display: flex;
  align-items: center;

  overflow: hidden;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.16
    );

  border-radius: 9px;

  background:
    rgba(
      2,
      6,
      23,
      0.6
    );
}

.layout-zoom-group button {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border: 0;

  cursor: pointer;

  background: transparent;

  color: #cbd5e1;

  font-size: 15px;
}

.layout-zoom-group button:hover {
  background:
    rgba(
      56,
      189,
      248,
      0.09
    );

  color: #38bdf8;
}

.layout-zoom-value {
  display: grid;
  place-items: center;

  min-width: 52px;
  height: 34px;

  border-right:
    1px solid
    rgba(
      148,
      163,
      184,
      0.1
    );

  border-left:
    1px solid
    rgba(
      148,
      163,
      184,
      0.1
    );

  color: #e2e8f0;

  font-size: 10px;
  font-weight: 700;
}

.layout-toolbar-text-button,
.layout-fullscreen-button {
  height: 36px;

  padding:
    0
    11px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.16
    );

  border-radius: 9px;

  cursor: pointer;

  background:
    rgba(
      15,
      23,
      42,
      0.75
    );

  color: #cbd5e1;

  font-size: 10px;
  font-weight: 600;
}

.layout-toolbar-text-button:hover {
  border-color:
    rgba(
      56,
      189,
      248,
      0.35
    );

  color: #38bdf8;
}

.layout-fullscreen-button {
  border-color:
    rgba(
      56,
      189,
      248,
      0.3
    );

  background:
    rgba(
      14,
      116,
      144,
      0.12
    );

  color: #38bdf8;
}

/* ==========================================
   EDITOR
========================================== */

.bay-layout-editor {
  position: relative;

  width: 100%;
  height: min(
    68vh,
    760px
  );

  min-height: 560px;

  overflow: hidden;

  cursor: grab;

  touch-action: none;

  background-color: #020617;

  background-image:
    linear-gradient(
      rgba(
        51,
        65,
        85,
        0.28
      )
      1px,
      transparent
      1px
    ),
    linear-gradient(
      90deg,
      rgba(
        51,
        65,
        85,
        0.28
      )
      1px,
      transparent
      1px
    );

  background-size:
    28px
    28px;
}

.bay-layout-editor.layout-panning {
  cursor: grabbing;
}

.bay-layout-editor.layout-dragging {
  cursor: move;
}

/* ==========================================
   WORLD
========================================== */

.layout-world {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 1px;
  height: 1px;

  transform-origin:
    0
    0;

  will-change:
    transform;
}

.layout-origin {
  position: absolute;

  top: 6px;
  left: 6px;

  color: #475569;

  font-size: 8px;

  pointer-events: none;
}

/* ==========================================
   BAY
========================================== */

.layout-bay {
  position: absolute;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border:
    1px solid
    rgba(
      100,
      116,
      139,
      0.75
    );

  border-radius: 6px;

  cursor: move;

  user-select: none;

  background:
    rgba(
      30,
      41,
      59,
      0.96
    );

  box-shadow:
    0
    6px
    18px
    rgba(
      0,
      0,
      0,
      0.22
    );
}

.layout-bay:hover {
  border-color:
    rgba(
      56,
      189,
      248,
      0.7
    );
}

.layout-bay-dragging {
  z-index: 20;

  opacity: 0.92;

  box-shadow:
    0
    10px
    30px
    rgba(
      0,
      0,
      0,
      0.38
    );
}

.layout-bay-invalid {
  border-color: #ef4444;

  box-shadow:
    0
    0
    0
    2px
    rgba(
      239,
      68,
      68,
      0.18
    );
}

.layout-bay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  min-height: 26px;

  padding:
    4px
    6px;

  background:
    rgba(
      15,
      23,
      42,
      0.96
    );
}

.layout-bay-header > div {
  display: flex;
  align-items: baseline;

  min-width: 0;

  gap: 5px;
}

.layout-bay-header strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 8px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.layout-bay-header small {
  color: #64748b;

  font-size: 7px;

  white-space: nowrap;
}

.layout-bay-header button {
  display: grid;
  place-items: center;

  width: 22px;
  height: 22px;

  flex-shrink: 0;

  border: none;
  border-radius: 5px;

  cursor: pointer;

  background:
    rgba(
      148,
      163,
      184,
      0.12
    );

  color: #e2e8f0;
}

/* ==========================================
   SLOT GRID
========================================== */

.layout-bay-slots {
  display: grid;

  flex: 1;

  min-height: 0;
}

.layout-bay-slots span {
  border-right:
    1px solid
    rgba(
      100,
      116,
      139,
      0.25
    );

  border-bottom:
    1px solid
    rgba(
      100,
      116,
      139,
      0.25
    );
}

.layout-invalid-label {
  position: absolute;

  top: 50%;
  left: 50%;

  transform:
    translate(
      -50%,
      -50%
    );

  padding:
    5px
    8px;

  border-radius: 6px;

  background:
    rgba(
      127,
      29,
      29,
      0.92
    );

  color: #fecaca;

  font-size: 8px;
  font-weight: 700;

  pointer-events: none;

  white-space: nowrap;
}

/* ==========================================
   HELP
========================================== */

.layout-editor-help {
  position: absolute;

  bottom: 12px;
  left: 50%;

  display: flex;

  gap: 6px;

  transform:
    translateX(
      -50%
    );

  pointer-events: none;
}

.layout-editor-help span {
  display: flex;
  align-items: center;

  gap: 5px;

  padding:
    5px
    8px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.1
    );

  border-radius: 7px;

  background:
    rgba(
      2,
      6,
      23,
      0.82
    );

  color: #64748b;

  font-size: 8px;

  backdrop-filter:
    blur(
      6px
    );
}

.layout-editor-help strong {
  color: #94a3b8;

  font-weight: 600;
}

/* ==========================================
   SAVE BAR
========================================== */

.layout-save-bar {
  position: sticky;

  bottom: 12px;

  z-index: 30;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-top: 14px;

  padding:
    12px
    14px;

  border:
    1px solid
    rgba(
      34,
      197,
      94,
      0.14
    );

  border-radius: 12px;

  background:
    rgba(
      15,
      23,
      42,
      0.96
    );

  box-shadow:
    0
    10px
    30px
    rgba(
      0,
      0,
      0,
      0.18
    );

  backdrop-filter:
    blur(
      10px
    );
}

.layout-save-bar-dirty {
  border-color:
    rgba(
      245,
      158,
      11,
      0.38
    );
}

.layout-save-status {
  display: flex;
  align-items: center;

  gap: 9px;
}

.layout-save-status > div {
  display: flex;
  flex-direction: column;
}

.layout-save-status strong {
  color: #e2e8f0;

  font-size: 11px;
}

.layout-save-status small {
  margin-top: 2px;

  color: #64748b;

  font-size: 9px;
}

.layout-save-indicator {
  width: 9px;
  height: 9px;

  flex-shrink: 0;

  border-radius: 50%;
}

.layout-save-indicator.saved {
  background: #22c55e;

  box-shadow:
    0
    0
    10px
    rgba(
      34,
      197,
      94,
      0.45
    );
}

.layout-save-indicator.dirty {
  background: #f59e0b;

  box-shadow:
    0
    0
    10px
    rgba(
      245,
      158,
      11,
      0.45
    );
}

.layout-save-button {
  display: flex;
  align-items: center;

  gap: 7px;

  min-height: 40px;

  padding:
    0
    17px;

  border: none;
  border-radius: 9px;

  cursor: pointer;

  background:
    linear-gradient(
      135deg,
      #0284c7,
      #2563eb
    );

  color: white;

  font-size: 10px;
  font-weight: 800;

  box-shadow:
    0
    8px
    20px
    rgba(
      37,
      99,
      235,
      0.22
    );
}

.layout-save-button:hover:not(:disabled) {
  transform:
    translateY(
      -1px
    );

  box-shadow:
    0
    10px
    24px
    rgba(
      37,
      99,
      235,
      0.32
    );
}

.layout-save-button:disabled {
  cursor: not-allowed;

  opacity: 0.35;

  box-shadow: none;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (
  max-width: 900px
) {
  .layout-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .layout-toolbar-actions {
    flex-wrap: wrap;
  }

  .bay-layout-editor {
    height: 65vh;

    min-height: 500px;
  }

  .layout-editor-help {
    display: none;
  }

  .layout-save-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .layout-save-button {
    justify-content: center;

    width: 100%;
  }
}

/* ==========================================
   YARD GENERAL
========================================== */

.yard-general-section {
  width: min(
    980px,
    100%
  );

  margin:
    42px
    auto
    0;
}

.yard-general-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}

.yard-general-heading h2 {
  margin:
    0
    0
    4px;

  color: #f8fafc;

  font-size: 22px;
}

.yard-general-heading p {
  margin: 0;

  color: #64748b;

  font-size: 11px;
}

.yard-general-code-preview {
  display: flex;
  flex-direction: column;

  min-width: 120px;

  padding:
    9px
    12px;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.17
    );

  border-radius: 10px;

  background:
    rgba(
      56,
      189,
      248,
      0.06
    );
}

.yard-general-code-preview span {
  margin-bottom: 2px;

  color: #64748b;

  font-size: 8px;
  font-weight: 700;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.yard-general-code-preview strong {
  color: #38bdf8;

  font-size: 12px;
}

/* ==========================================
   CARD
========================================== */

.yard-general-card {
  overflow: hidden;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.15
    );

  border-radius: 15px;

  background:
    rgba(
      15,
      23,
      42,
      0.8
    );

  box-shadow:
    0
    18px
    50px
    rgba(
      0,
      0,
      0,
      0.12
    );
}

.yard-general-form-section {
  padding:
    22px
    24px;
}

.yard-general-form-section
  + .yard-general-form-section {
  border-top:
    1px solid
    rgba(
      148,
      163,
      184,
      0.08
    );
}

/* ==========================================
   SECTION TITLE
========================================== */

.yard-general-form-title {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 18px;
}

.yard-general-form-icon {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.22
    );

  border-radius: 9px;

  background:
    rgba(
      56,
      189,
      248,
      0.07
    );

  color: #38bdf8;

  font-size: 10px;
  font-weight: 800;
}

.yard-general-form-title > div {
  display: flex;
  flex-direction: column;
}

.yard-general-form-title strong {
  color: #e2e8f0;

  font-size: 13px;
}

.yard-general-form-title small {
  margin-top: 2px;

  color: #64748b;

  font-size: 9px;
}

/* ==========================================
   GRID
========================================== */

.yard-general-two-columns {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap: 14px;
}

.yard-general-description {
  margin-top: 14px;
}

/* ==========================================
   FORM ELEMENTS
========================================== */

.yard-general-card
  .config-form-field {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.yard-general-card
  .config-form-field
  label {
  display: flex;
  align-items: center;

  margin-bottom: 6px;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;
}

.yard-general-card
  .config-form-field
  input,
.yard-general-card
  .config-form-field
  textarea {
  width: 100%;

  box-sizing: border-box;

  border:
    1px solid
    rgba(
      100,
      116,
      139,
      0.45
    );

  border-radius: 9px;

  outline: none;

  background:
    rgba(
      2,
      6,
      23,
      0.7
    );

  color: #f8fafc;

  transition:
    border-color
    0.16s ease,
    box-shadow
    0.16s ease,
    background
    0.16s ease;
}

.yard-general-card
  .config-form-field
  input {
  min-height: 40px;

  padding:
    0
    11px;
}

.yard-general-card
  .config-form-field
  textarea {
  min-height: 105px;

  padding:
    11px;

  resize: vertical;

  font-family: inherit;
}

.yard-general-card
  .config-form-field
  input:focus,
.yard-general-card
  .config-form-field
  textarea:focus {
  border-color:
    rgba(
      56,
      189,
      248,
      0.7
    );

  background:
    rgba(
      2,
      6,
      23,
      0.9
    );

  box-shadow:
    0
    0
    0
    3px
    rgba(
      56,
      189,
      248,
      0.07
    );
}

.yard-general-card
  .config-form-field
  small {
  margin-top: 5px;

  color: #475569;

  font-size: 8px;
}

/* ==========================================
   TEXTAREA FOOTER
========================================== */

.yard-general-textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yard-general-textarea-footer span {
  margin-top: 5px;

  color: #475569;

  font-size: 8px;
}

/* ==========================================
   DIMENSION INPUT
========================================== */

.yard-dimension-input {
  position: relative;

  display: flex;
  align-items: center;
}

.yard-dimension-input input {
  padding-right:
    40px !important;
}

.yard-dimension-input > span {
  position: absolute;

  right: 11px;

  color: #64748b;

  font-size: 10px;
  font-weight: 700;

  pointer-events: none;
}

/* ==========================================
   AREA
========================================== */

.yard-general-area {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 16px;

  padding:
    12px
    14px;

  border:
    1px solid
    rgba(
      56,
      189,
      248,
      0.1
    );

  border-radius: 10px;

  background:
    linear-gradient(
      135deg,
      rgba(
        14,
        116,
        144,
        0.08
      ),
      rgba(
        15,
        23,
        42,
        0.45
      )
    );
}

.yard-general-area > div {
  display: flex;
  flex-direction: column;

  flex-shrink: 0;
}

.yard-general-area span {
  color: #64748b;

  font-size: 8px;

  text-transform: uppercase;
}

.yard-general-area strong {
  margin-top: 2px;

  color: #38bdf8;

  font-size: 16px;
}

.yard-general-area p {
  max-width: 420px;

  margin: 0;

  color: #64748b;

  font-size: 9px;

  line-height: 1.45;
}

/* ==========================================
   SAVE
========================================== */

.yard-general-save {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding:
    14px
    24px;

  border-top:
    1px solid
    rgba(
      148,
      163,
      184,
      0.08
    );

  background:
    rgba(
      2,
      6,
      23,
      0.28
    );
}

.yard-general-save-status {
  display: flex;
  align-items: center;

  gap: 9px;
}

.yard-general-save-status > div {
  display: flex;
  flex-direction: column;
}

.yard-general-save-status strong {
  color: #cbd5e1;

  font-size: 10px;
}

.yard-general-save-status small {
  margin-top: 2px;

  color: #475569;

  font-size: 8px;
}

.yard-general-status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.yard-general-status-dot.dirty {
  background: #f59e0b;

  box-shadow:
    0
    0
    9px
    rgba(
      245,
      158,
      11,
      0.42
    );
}

.yard-general-status-dot.saved {
  background: #22c55e;

  box-shadow:
    0
    0
    9px
    rgba(
      34,
      197,
      94,
      0.4
    );
}

.yard-general-save-button {
  display: flex;
  align-items: center;

  gap: 7px;

  min-height: 40px;

  padding:
    0
    17px;

  border: none;
  border-radius: 9px;

  cursor: pointer;

  background:
    linear-gradient(
      135deg,
      #0284c7,
      #2563eb
    );

  color: white;

  font-size: 10px;
  font-weight: 800;

  box-shadow:
    0
    8px
    22px
    rgba(
      37,
      99,
      235,
      0.24
    );
}

.yard-general-save-button:hover:not(:disabled) {
  transform:
    translateY(
      -1px
    );

  box-shadow:
    0
    10px
    26px
    rgba(
      37,
      99,
      235,
      0.34
    );
}

.yard-general-save-button:disabled {
  cursor: not-allowed;

  opacity: 0.35;

  box-shadow: none;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (
  max-width: 800px
) {
  .yard-general-section {
    margin-top: 24px;
  }

  .yard-general-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .yard-general-code-preview {
    align-self: flex-start;
  }

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

  .yard-general-area {
    align-items: flex-start;
    flex-direction: column;
  }

  .yard-general-save {
    align-items: stretch;
    flex-direction: column;
  }

  .yard-general-save-button {
    justify-content: center;

    width: 100%;
  }
}/* ========================================
   SHIPPING LINES CATALOG
======================================== */

.shipping-line-create-card {
  margin-bottom: 18px;
  padding: 18px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #020617;
}

.shipping-line-create-header {
  margin-bottom: 16px;
}

.shipping-line-create-header h3 {
  margin: 0;

  color: #f8fafc;

  font-size: 14px;
  font-weight: 700;
}

.shipping-line-create-header p {
  max-width: 560px;

  margin: 5px 0 0;

  color: #64748b;

  font-size: 9px;
  line-height: 1.5;
}

/* ========================================
   CREATE FORM
======================================== */

.shipping-line-create-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.5fr)
    minmax(0, 1fr)
    210px
    auto;

  align-items: end;

  gap: 12px;
}

.shipping-line-create-action {
  display: flex;
  align-items: flex-end;
}

.shipping-line-create-action .catalog-primary-button {
  min-height: 38px;

  padding: 0 16px;

  white-space: nowrap;
}

/* ========================================
   COLOR INPUT
======================================== */

.shipping-line-color-input {
  width: 100%;
  min-height: 38px;

  display: flex;
  align-items: center;

  gap: 9px;

  padding: 5px 8px;

  border: 1px solid #334155;
  border-radius: 7px;

  background: #020617;
}

.shipping-line-color-input input[type="color"] {
  width: 34px;
  height: 26px;

  flex-shrink: 0;

  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.shipping-line-color-input span {
  min-width: 0;

  overflow: hidden;

  color: #94a3b8;

  font-size: 9px;

  text-overflow: ellipsis;
  text-transform: uppercase;

  white-space: nowrap;
}

/* ========================================
   LIST
======================================== */

.shipping-lines-list {
  overflow: hidden;

  border: 1px solid #1e293b;
  border-radius: 9px;

  background: #020617;
}

.shipping-line-row {
  min-height: 70px;

  display: grid;

  grid-template-columns:
    48px
    minmax(180px, 1fr)
    130px
    86px
    108px;

  align-items: center;

  gap: 14px;

  padding: 12px 16px;

  border-bottom: 1px solid #1e293b;

  transition:
    background 0.15s ease;
}

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

.shipping-line-row:hover {
  background:
    rgba(30, 41, 59, 0.28);
}

/* ========================================
   SHIPPING COLOR BLOCK
======================================== */

.shipping-line-color {
  width: 36px;
  height: 36px;

  display: block;

  border: 1px solid #475569;
  border-radius: 8px;

  box-shadow:
    inset 0 0 0 1px
    rgba(255, 255, 255, 0.06);
}

/* ========================================
   SHIPPING INFO
======================================== */

.shipping-line-info {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.shipping-line-info strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 12px;
  font-weight: 700;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.shipping-line-info > span {
  overflow: hidden;

  color: #64748b;

  font-size: 9px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

/* ========================================
   COLOR CODE
======================================== */

.shipping-line-color-code {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 8px;
}

.shipping-line-color-code > span {
  width: 10px;
  height: 10px;

  flex-shrink: 0;

  border-radius: 50%;
}

.shipping-line-color-code strong {
  overflow: hidden;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 600;

  text-overflow: ellipsis;
  text-transform: uppercase;

  white-space: nowrap;
}

/* ========================================
   STATUS
======================================== */

.shipping-line-status {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: fit-content;

  min-width: 72px;

  padding: 5px 10px;

  border-radius: 999px;

  font-size: 8px;
  font-weight: 700;

  white-space: nowrap;
}

.shipping-line-status.active {
  border:
    1px solid
    rgba(34, 197, 94, 0.28);

  background:
    rgba(34, 197, 94, 0.1);

  color: #4ade80;
}

.shipping-line-status.inactive {
  border:
    1px solid
    rgba(239, 68, 68, 0.25);

  background:
    rgba(239, 68, 68, 0.08);

  color: #f87171;
}

/* ========================================
   TOGGLE BUTTON
======================================== */

.shipping-line-toggle-button {
  min-width: 100px;
  min-height: 34px;

  padding: 0 12px;

  border-radius: 6px;

  background: transparent;

  font-size: 9px;
  font-weight: 700;

  white-space: nowrap;

  cursor: pointer;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.shipping-line-toggle-button.deactivate {
  border:
    1px solid
    rgba(239, 68, 68, 0.35);

  color: #f87171;
}

.shipping-line-toggle-button.deactivate:hover {
  border-color:
    rgba(239, 68, 68, 0.5);

  background:
    rgba(239, 68, 68, 0.08);
}

.shipping-line-toggle-button.activate {
  border:
    1px solid
    rgba(34, 197, 94, 0.35);

  color: #4ade80;
}

.shipping-line-toggle-button.activate:hover {
  border-color:
    rgba(34, 197, 94, 0.5);

  background:
    rgba(34, 197, 94, 0.08);
}

/* ========================================
   CATALOG TOOLBAR ADJUSTMENT
======================================== */

.catalog-card .catalog-toolbar {
  margin-top: 18px;
  margin-bottom: 14px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (
  max-width: 1050px
) {
  .shipping-line-create-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

  .shipping-line-create-action {
    grid-column: 1 / -1;
  }

  .shipping-line-create-action .catalog-primary-button {
    width: 100%;
  }

  .shipping-line-row {
    grid-template-columns:
      42px
      minmax(0, 1fr)
      auto
      auto;
  }

  .shipping-line-color-code {
    display: none;
  }
}

@media (
  max-width: 700px
) {
  .shipping-line-create-grid {
    grid-template-columns: 1fr;
  }

  .shipping-line-create-action {
    grid-column: auto;
  }

  .shipping-line-row {
    grid-template-columns:
      42px
      minmax(0, 1fr);

    gap: 10px;

    padding: 14px;
  }

  .shipping-line-status {
    grid-column: 2;
  }

  .shipping-line-toggle-button {
    grid-column: 2;

    width: 100%;
  }
}/* =====================================================
   SERVICE PRICES
===================================================== */

.service-prices-card {
    width: 100%;
}

/* =====================================================
   SUMMARY
===================================================== */

.service-prices-summary {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );
    gap: 16px;

    margin-bottom: 22px;
}

.service-price-summary-card {
    display: flex;
    flex-direction: column;

    gap: 8px;

    min-height: 96px;

    padding:
        18px
        20px;

    border:
        1px solid
        #243349;

    border-radius:
        12px;

    background:
        #0d1729;
}

.service-price-summary-card span {
    color:
        #7f91ab;

    font-size:
        13px;

    font-weight:
        600;
}

.service-price-summary-card strong {
    color:
        #f8fafc;

    font-size:
        26px;

    font-weight:
        700;

    line-height:
        1;
}

/* =====================================================
   TOOLBAR
===================================================== */

.service-prices-toolbar {
    display: grid;

    grid-template-columns:
        minmax(
            280px,
            1fr
        )
        minmax(
            220px,
            300px
        )
        auto;

    align-items: center;

    gap: 14px;

    margin-bottom:
        20px;
}

.service-prices-toolbar input,
.service-prices-toolbar select {
    width: 100%;

    min-height:
        42px;

    padding:
        0
        14px;

    border:
        1px solid
        #304158;

    border-radius:
        8px;

    background:
        #07101f;

    color:
        #e5edf7;

    font-size:
        14px;

    outline:
        none;

    transition:
        border-color
        0.15s ease,
        box-shadow
        0.15s ease,
        background
        0.15s ease;
}

.service-prices-toolbar input::placeholder {
    color:
        #64748b;
}

.service-prices-toolbar input:hover,
.service-prices-toolbar select:hover {
    border-color:
        #3b506c;
}

.service-prices-toolbar input:focus,
.service-prices-toolbar select:focus {
    border-color:
        #0ea5e9;

    box-shadow:
        0 0 0 3px
        rgba(
            14,
            165,
            233,
            0.10
        );

    background:
        #081423;
}

.service-prices-toolbar select {
    cursor:
        pointer;

    color-scheme:
        dark;
}

/* =====================================================
   TABLE
===================================================== */

.service-prices-table {
    min-width:
        1050px;
}

.service-price-service {
    display: flex;

    flex-direction:
        column;

    gap: 3px;
}

.service-price-service strong {
    color:
        #f1f5f9;

    font-size:
        14px;

    font-weight:
        650;
}

.service-price-service span {
    color:
        #63758f;

    font-size:
        12px;

    font-weight:
        600;

    letter-spacing:
        0.02em;
}

/* =====================================================
   SHIPPING LINE
===================================================== */

.service-price-shipping-line {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    color:
        #cbd5e1;
}

.service-price-shipping-color {
    flex:
        0 0
        9px;

    width:
        9px;

    height:
        9px;

    border-radius:
        50%;

    box-shadow:
        0 0 0 2px
        rgba(
            255,
            255,
            255,
            0.06
        );
}

/* =====================================================
   GENERAL TAG
===================================================== */

.service-price-general {
    display:
        inline-flex;

    align-items:
        center;

    min-height:
        25px;

    padding:
        3px
        9px;

    border:
        1px solid
        #334155;

    border-radius:
        999px;

    background:
        #172235;

    color:
        #aebed1;

    font-size:
        12px;

    font-weight:
        600;
}

/* =====================================================
   PRICE
===================================================== */

.service-price-amount {
    color:
        #f8fafc;

    font-size:
        15px;

    font-weight:
        700;

    white-space:
        nowrap;
}

/* =====================================================
   VALIDITY
===================================================== */

.service-price-validity {
    display:
        flex;

    flex-direction:
        column;

    gap:
        2px;

    white-space:
        nowrap;
}

.service-price-validity span {
    color:
        #73849d;

    font-size:
        13px;

    font-weight:
        600;
}

.service-price-validity small {
    color:
        #64748b;

    font-size:
        11px;
}

/* =====================================================
   STATUS
===================================================== */

.catalog-status.scheduled {
    background:
        rgba(
            245,
            158,
            11,
            0.12
        );

    color:
        #fbbf24;

    border:
        1px solid
        rgba(
            245,
            158,
            11,
            0.18
        );
}

/* =====================================================
   MODAL
===================================================== */

.service-price-modal {
    width:
        min(
            720px,
            calc(
                100vw - 32px
            )
        );
}

.service-price-modal input,
.service-price-modal select {
    width:
        100%;
}

.service-price-modal select {
    color-scheme:
        dark;
}

.service-price-field-help {
    display:
        block;

    margin-top:
        6px;

    color:
        #64748b;

    font-size:
        11px;

    line-height:
        1.45;
}

/* =====================================================
   SCOPE INFO
===================================================== */

.service-price-scope-info {
    margin-top:
        18px;

    padding:
        14px
        16px;

    border:
        1px solid
        rgba(
            14,
            165,
            233,
            0.22
        );

    border-radius:
        10px;

    background:
        rgba(
            14,
            165,
            233,
            0.06
        );
}

.service-price-scope-info strong {
    display:
        block;

    margin-bottom:
        4px;

    color:
        #38bdf8;

    font-size:
        13px;

    font-weight:
        650;
}

.service-price-scope-info p {
    margin:
        0;

    color:
        #93a8c2;

    font-size:
        13px;
}

/* =====================================================
   TABLE HOVER
===================================================== */

.service-prices-table tbody tr {
    transition:
        background
        0.12s ease;
}

.service-prices-table tbody tr:hover {
    background:
        rgba(
            30,
            41,
            59,
            0.35
        );
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (
    max-width: 1050px
) {
    .service-prices-summary {
        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }

    .service-prices-toolbar {
        grid-template-columns:
            1fr
            220px;
    }

    .service-prices-toolbar
    .catalog-result-count {
        grid-column:
            1 / -1;

        justify-self:
            start;
    }
}

@media (
    max-width: 760px
) {
    .service-prices-summary {
        grid-template-columns:
            1fr;
    }

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

    .service-prices-toolbar
    .catalog-result-count {
        grid-column:
            auto;
    }
}

@media (
    max-width: 640px
) {
    .service-price-modal {
        width:
            calc(
                100vw - 20px
            );
    }

    .service-prices-summary {
        gap:
            10px;
    }

    .service-price-summary-card {
        min-height:
            auto;

        padding:
            14px
            16px;
    }

    .service-price-summary-card strong {
        font-size:
            22px;
    }
}/* =========================================
   CATALOGS
========================================= */

.catalogs-page {
  width: 100%;
  max-width: 1400px;

  padding: 2%;

  margin: 0 auto;

  display: flex;
  flex-direction: column;

  gap: 20px;
}

.catalogs-header h1 {
  margin: 0;

  color: #f8fafc;

  font-size: 28px;
  font-weight: 700;
}

.catalogs-header p {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 12px;
}

/* =========================================
   TABS
========================================= */

.catalogs-tabs {
  display: flex;

  gap: 4px;

  padding: 5px;

  border: 1px solid #1e293b;
  border-radius: 9px;

  background: #0f172a;
}

.catalogs-tabs button {
  padding: 9px 16px;

  border: 0;
  border-radius: 6px;

  background: transparent;

  color: #94a3b8;

  font-size: 11px;
  font-weight: 600;

  cursor: pointer;
}

.catalogs-tabs button:hover {
  background: #172033;

  color: #e2e8f0;
}

.catalogs-tabs button.active {
  background: #1e293b;

  color: #38bdf8;
}

/* =========================================
   CARD
========================================= */

.catalog-card {
  padding: 20px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

.catalog-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 18px;
}

.catalog-section-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 18px;
}

.catalog-section-header p {
  margin: 4px 0 0;

  color: #64748b;

  font-size: 10px;
}

/* =========================================
   TOOLBAR
========================================= */

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 15px;
}

.catalog-toolbar input {
  width: min(
    100%,
    420px
  );

  padding: 10px 12px;

  border: 1px solid #334155;
  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #e2e8f0;

  font-size: 11px;
}

.catalog-toolbar input:focus {
  border-color: #0284c7;
}

.catalog-result-count {
  color: #64748b;

  font-size: 10px;
}

/* =========================================
   TABLE
========================================= */

.catalog-table-wrapper {
  overflow-x: auto;

  border: 1px solid #1e293b;
  border-radius: 8px;
}

.catalog-table {
  width: 100%;

  border-collapse: collapse;
}

.catalog-table th {
  padding: 10px 12px;

  border-bottom: 1px solid #334155;

  background: #111827;

  color: #64748b;

  text-align: left;

  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;
}

.catalog-table td {
  padding: 12px;

  border-bottom: 1px solid #1e293b;

  color: #cbd5e1;

  font-size: 10px;

  vertical-align: middle;
}

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

.catalog-table tbody tr:hover {
  background: rgba(
    30,
    41,
    59,
    0.3
  );
}

.catalog-table td strong {
  color: #f8fafc;
}

/* =========================================
   STATUS
========================================= */

.catalog-status {
  display: inline-flex;
  align-items: center;

  padding: 4px 8px;

  border-radius: 999px;

  font-size: 9px;
  font-weight: 700;
}

.catalog-status.active {
  background: rgba(
    34,
    197,
    94,
    0.12
  );

  color: #4ade80;
}

.catalog-status.inactive {
  background: rgba(
    239,
    68,
    68,
    0.12
  );

  color: #f87171;
}

/* =========================================
   BUTTONS
========================================= */

.catalog-primary-button {
  padding: 9px 14px;

  border: 1px solid #0284c7;
  border-radius: 6px;

  background: #0284c7;

  color: #ffffff;

  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
}

.catalog-primary-button:hover:not(:disabled) {
  background: #0369a1;
}

.catalog-primary-button:disabled {
  opacity: 0.5;

  cursor: not-allowed;
}

.catalog-actions {
  display: flex;

  gap: 6px;
}

.catalog-actions button {
  padding: 6px 9px;

  border: 1px solid #334155;
  border-radius: 5px;

  background: transparent;

  color: #cbd5e1;

  font-size: 9px;

  cursor: pointer;
}

.catalog-actions button:hover {
  background: #1e293b;
}

.catalog-actions button.danger {
  border-color: rgba(
    239,
    68,
    68,
    0.4
  );

  color: #f87171;
}

.catalog-actions button.activate {
  border-color: rgba(
    34,
    197,
    94,
    0.4
  );

  color: #4ade80;
}

/* =========================================
   EMPTY
========================================= */

.catalog-empty-state {
  padding: 40px 20px;

  color: #64748b;

  text-align: center;

  font-size: 11px;
}

/* =========================================
   MODAL
========================================= */

.catalog-modal-backdrop {
  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(
    2,
    6,
    23,
    0.78
  );

  backdrop-filter: blur(
    3px
  );
}

.catalog-modal {
  width: 100%;
  max-width: 600px;

  padding: 20px;

  border: 1px solid #334155;
  border-radius: 10px;

  background: #0f172a;

  box-shadow:
    0 25px 60px
    rgba(
      0,
      0,
      0,
      0.45
    );
}

.catalog-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  margin-bottom: 20px;
}

.catalog-modal-header h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 18px;
}

.catalog-modal-header p {
  margin: 4px 0 0;

  color: #64748b;

  font-size: 10px;
}

.catalog-modal-close {
  border: 0;

  background: transparent;

  color: #94a3b8;

  font-size: 24px;

  cursor: pointer;
}

/* =========================================
   FORM
========================================= */

.catalog-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 14px;
}

.catalog-form-field {
  display: flex;
  flex-direction: column;

  gap: 6px;
}

.catalog-form-full {
  grid-column: 1 / -1;
}

.catalog-form-field label {
  color: #94a3b8;

  font-size: 10px;
  font-weight: 600;
}

.catalog-form-field input,
.catalog-form-field select,
.catalog-form-field textarea {
  width: 100%;

  box-sizing: border-box;

  padding: 10px 12px;

  border: 1px solid #334155;
  border-radius: 7px;

  outline: none;

  background: #020617;

  color: #e2e8f0;

  font: inherit;

  font-size: 11px;
}

.catalog-form-field textarea {
  resize: vertical;
}

.catalog-form-field input:focus,
.catalog-form-field select:focus,
.catalog-form-field textarea:focus {
  border-color: #0284c7;
}

/* =========================================
   CHECKBOXES
========================================= */

.catalog-checkboxes {
  display: flex;

  gap: 20px;

  margin-top: 16px;
}

.catalog-checkboxes label {
  display: flex;
  align-items: center;

  gap: 7px;

  color: #cbd5e1;

  font-size: 10px;

  cursor: pointer;
}

.catalog-checkboxes input {
  accent-color: #0284c7;
}

/* =========================================
   MODAL ACTIONS
========================================= */

.catalog-modal-actions {
  display: flex;
  justify-content: flex-end;

  gap: 8px;

  margin-top: 20px;

  padding-top: 16px;

  border-top: 1px solid #1e293b;
}

.catalog-modal-actions > button:not(
  .catalog-primary-button
) {
  padding: 9px 14px;

  border: 1px solid #334155;
  border-radius: 6px;

  background: transparent;

  color: #cbd5e1;

  font-size: 10px;

  cursor: pointer;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (
  max-width: 700px
) {
  .catalog-section-header,
  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-toolbar input {
    width: 100%;
  }

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

  .catalog-form-full {
    grid-column: auto;
  }

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

  .catalogs-tabs button {
    white-space: nowrap;
  }
}
/* ==========================================================
   REHANDLES
   ========================================================== */

.rehandles-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  padding: 28px 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #020617;
}

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

.rehandles-page-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #38bdf8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rehandles-yard-pill {
  min-width: 110px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #1e293b;
  border-radius: 9px;
  background: #0f172a;
}

.rehandles-yard-pill span {
  color: #64748b;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.rehandles-yard-pill strong {
  color: #e2e8f0;
  font-size: 10px;
}

.rehandles-step {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  background: #0f172a;
}

.rehandles-step-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rehandles-step-heading.compact {
  align-items: flex-start;
}

.rehandles-step-number {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(14, 165, 233, 0.1);
  color: #38bdf8;
  font-size: 8px;
  font-weight: 900;
}

.rehandles-step-number.final {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
}

.rehandles-step-heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rehandles-step-heading strong {
  color: #f8fafc;
  font-size: 11px;
  font-weight: 750;
}

.rehandles-step-heading small {
  color: #64748b;
  font-size: 8px;
}

.rehandles-search-step {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(380px, 1.3fr);
  align-items: center;
  gap: 24px;
}

.rehandles-search-wrapper {
  position: relative;
  min-width: 0;
}

.rehandles-search-wrapper > input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #334155;
  border-radius: 7px;
  outline: none;
  background: #020617;
  color: #f8fafc;
  font: inherit;
  font-size: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rehandles-search-wrapper > input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.08);
}

.rehandles-search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 50;
  overflow: hidden;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
}

.rehandles-search-results button {
  width: 100%;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #1e293b;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.rehandles-search-results button:last-child {
  border-bottom: 0;
}

.rehandles-search-results button:hover {
  background: #172033;
}

.rehandles-search-results button > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rehandles-search-results strong {
  color: #f8fafc;
  font-size: 9px;
}

.rehandles-search-results button div span {
  color: #64748b;
  font-size: 7px;
}

.rehandles-search-results button > span {
  color: #38bdf8;
  font-size: 7px;
  font-weight: 700;
}

.rehandles-empty-state {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed #334155;
  border-radius: 10px;
  background: #0f172a;
  text-align: center;
}

.rehandles-empty-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #020617;
  color: #38bdf8;
  font-size: 22px;
}

.rehandles-empty-state h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 15px;
}

.rehandles-empty-state p {
  max-width: 390px;
  margin: 6px 0 0;
  color: #64748b;
  font-size: 9px;
  line-height: 1.5;
}

.rehandles-workflow {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rehandles-container-strip {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(250px, 1fr) 34px minmax(250px, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  background: #0f172a;
}

.rehandles-container-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rehandles-container-color {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #475569;
  border-radius: 7px;
}

.rehandles-container-identity > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rehandles-container-identity span,
.rehandles-location-summary span {
  color: #64748b;
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.rehandles-container-identity strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rehandles-container-identity small {
  color: #64748b;
  font-size: 8px;
}

.rehandles-location-summary {
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #273449;
  border-radius: 8px;
  background: #020617;
}

.rehandles-location-summary.destination {
  border-color: rgba(14, 165, 233, 0.24);
  background: rgba(14, 165, 233, 0.035);
}

.rehandles-location-summary.destination.selected {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.045);
}

.rehandles-location-summary strong {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rehandles-location-summary.destination.selected strong {
  color: #86efac;
}

.rehandles-location-arrow {
  color: #475569;
  font-size: 20px;
  text-align: center;
}

.rehandles-blocked-warning {
  padding: 10px 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.07);
}

.rehandles-blocked-warning strong {
  color: #f87171;
  font-size: 9px;
}

.rehandles-blocked-warning p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 8px;
  line-height: 1.45;
}

.rehandles-bay-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rehandles-bay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 7px;
}

.rehandles-bay-option {
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #1e293b;
  border-radius: 7px;
  background: #020617;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.rehandles-bay-option:hover {
  border-color: #334155;
  background: #080f1d;
  transform: translateY(-1px);
}

.rehandles-bay-option.active {
  border-color: rgba(14, 165, 233, 0.55);
  background: rgba(14, 165, 233, 0.08);
}

.rehandles-bay-option > div:first-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rehandles-bay-option strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rehandles-bay-option div span {
  color: #64748b;
  font-size: 6px;
}

.rehandles-bay-badges {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rehandles-bay-badges span {
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 6px;
  font-weight: 800;
}

.rehandles-bay-badges .current {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
}

.rehandles-bay-badges .selected {
  background: rgba(14, 165, 233, 0.12);
  color: #38bdf8;
}

.rehandles-map-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 12px;
  background: #050b16;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.rehandles-map-header {
  min-height: 60px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #1e293b;
  background: #0f172a;
}

.rehandles-map-bay-status {
  min-width: 130px;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid rgba(14, 165, 233, 0.23);
  border-radius: 7px;
  background: rgba(14, 165, 233, 0.05);
}

.rehandles-map-bay-status span {
  color: #64748b;
  font-size: 6px;
  text-transform: uppercase;
}

.rehandles-map-bay-status strong {
  color: #38bdf8;
  font-size: 9px;
}

.rehandles-map-bay-status small {
  color: #64748b;
  font-size: 6px;
}

.rehandles-scene {
  position: relative;
  width: 100%;
  height: clamp(580px, 65vh, 820px);
  min-height: 580px;
  overflow: hidden;
  background: #050b16;
}

.rehandles-scene > .yard-scene-wrapper {
  width: 100%;
  height: 100%;
}

.rehandles-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.rehandles-final-bar {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(390px, 1.35fr) minmax(260px, 0.85fr) minmax(220px, 0.7fr);
  align-items: stretch;
  gap: 12px;
  border: 1px solid #1e293b;
  border-radius: 10px;
  background: #0f172a;
}

.rehandles-final-position {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rehandles-final-route {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.rehandles-final-route > div {
  min-width: 0;
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #273449;
  border-radius: 7px;
  background: #020617;
}

.rehandles-final-route > div.destination {
  border-color: rgba(34, 197, 94, 0.27);
  background: rgba(34, 197, 94, 0.04);
}

.rehandles-final-route span {
  color: #64748b;
  font-size: 6px;
  text-transform: uppercase;
}

.rehandles-final-route strong {
  overflow: hidden;
  color: #e2e8f0;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rehandles-final-route > div.destination strong {
  color: #86efac;
}

.rehandles-final-route-arrow {
  color: #475569 !important;
  font-size: 15px !important;
  text-align: center;
}

.rehandles-final-empty {
  min-height: 46px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  border: 1px dashed #334155;
  border-radius: 7px;
  background: rgba(2, 6, 23, 0.4);
  color: #64748b;
  font-size: 8px;
}

.rehandles-reason {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rehandles-reason > span {
  color: #94a3b8;
  font-size: 8px;
  font-weight: 600;
}

.rehandles-reason textarea {
  width: 100%;
  height: 66px;
  padding: 8px 9px;
  resize: none;
  border: 1px solid #334155;
  border-radius: 7px;
  outline: none;
  background: #020617;
  color: #e2e8f0;
  font: inherit;
  font-size: 9px;
  line-height: 1.35;
}

.rehandles-reason textarea:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.08);
}

.rehandles-final-action {
  min-width: 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.rehandles-final-action > span {
  min-height: 12px;
  color: #64748b;
  font-size: 7px;
  text-align: center;
}

.rehandles-confirm-button {
  width: 100%;
  min-height: 42px;
  border: 1px solid #0284c7;
  border-radius: 7px;
  background: #0284c7;
  color: #ffffff;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.rehandles-confirm-button:hover:not(:disabled) {
  border-color: #0369a1;
  background: #0369a1;
}

.rehandles-confirm-button:disabled {
  border-color: #1e293b;
  background: #172033;
  color: #475569;
  cursor: not-allowed;
  opacity: 0.75;
}

@media (max-width: 1150px) {
  .rehandles-container-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .rehandles-location-arrow {
    display: none;
  }

  .rehandles-final-bar {
    grid-template-columns: 1fr 1fr;
  }

  .rehandles-final-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 850px) {
  .rehandles-page {
    padding: 20px;
  }

  .rehandles-search-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rehandles-container-strip {
    grid-template-columns: 1fr;
  }

  .rehandles-final-bar {
    grid-template-columns: 1fr;
  }

  .rehandles-final-action {
    grid-column: auto;
  }

  .rehandles-final-route {
    grid-template-columns: 1fr;
  }

  .rehandles-final-route-arrow {
    display: none;
  }
}

@media (max-width: 620px) {
  .rehandles-page {
    padding: 16px;
  }

  .rehandles-page-header {
    flex-direction: column;
  }

  .rehandles-yard-pill {
    width: 100%;
  }

  .rehandles-bay-grid {
    grid-template-columns: 1fr;
  }

  .rehandles-scene {
    height: 540px;
    min-height: 540px;
  }
}
/* ==========================================================
   DRAFT SELECTION
========================================================== */

.evacuation-candidates {
  --candidate-grid:
    minmax(180px, 1fr)
    minmax(240px, 1.25fr)
    minmax(330px, 1.45fr)
    118px;

  --candidate-gap: 20px;

  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 18px;
}


/* ==========================================================
   SECTION HEADER
========================================================== */

.evacuation-candidates
.evacuations-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 24px;

  margin-bottom: 0;
}

.evacuation-candidates
.evacuations-section-heading
> div:first-child
> span {
  display: block;

  margin-bottom: 4px;

  color: #38bdf8;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.evacuation-candidates
.evacuations-section-heading h2 {
  margin: 0;

  color: #f8fafc;

  font-size: 20px;
  font-weight: 800;

  letter-spacing: -0.025em;
}

.evacuation-candidates
.evacuations-section-heading p {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 10px;

  line-height: 1.45;
}


/* ==========================================================
   SELECTION SUMMARY
========================================================== */

.evacuation-candidates
.evacuation-selection-summary {
  flex: 0 0 auto;

  display: flex;
  align-items: center;

  gap: 12px;
}

.evacuation-candidates
.evacuation-selection-summary
> div {
  display: flex;
  align-items: flex-end;
  flex-direction: column;

  gap: 1px;
}

.evacuation-candidates
.evacuation-selection-summary
> div
> span {
  color: #64748b;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.evacuation-candidates
.evacuation-selection-summary
> div
> strong {
  color: #60a5fa;

  font-size: 18px;
  font-weight: 850;

  line-height: 1;
}


/* ==========================================================
   GENERATE PLAN BUTTON
========================================================== */

.evacuation-candidates
.evacuations-primary-button {
  min-height: 36px;

  padding: 0 15px;

  border: 1px solid #2563eb;
  border-radius: 7px;

  background: #2563eb;

  color: #ffffff;

  font-size: 9px;
  font-weight: 800;

  cursor: pointer;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    opacity 140ms ease;
}

.evacuation-candidates
.evacuations-primary-button:hover:not(:disabled) {
  border-color: #3b82f6;

  background: #3b82f6;
}

.evacuation-candidates
.evacuations-primary-button:disabled {
  border-color: #1e3a6f;

  background: #1e3a6f;

  color: #64748b;

  cursor: not-allowed;

  opacity: 0.7;
}


/* ==========================================================
   GROUPS / ACCORDION
========================================================== */

.evacuation-candidates
.evacuation-candidate-groups {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.evacuation-candidates
.evacuation-candidate-group {
  overflow: hidden;

  margin-top: 0;

  border: 1px solid #223049;
  border-radius: 10px;

  background: #0d1728;
}

.evacuation-candidates
.evacuation-candidate-group.expanded {
  border-color: #2a3b56;
}


/* ==========================================================
   ACCORDION HEADER
========================================================== */

.evacuation-candidates
.evacuation-candidate-group-header {
  appearance: none;

  width: 100%;
  min-height: 58px;

  padding: 9px 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  border: 0;

  background: #101b2f;

  color: inherit;

  font: inherit;

  text-align: left;

  cursor: pointer;

  transition:
    background 140ms ease;
}

.evacuation-candidates
.evacuation-candidate-group-header:hover {
  background: #132038;
}

.evacuation-candidates
.evacuation-candidate-group.expanded
.evacuation-candidate-group-header {
  border-bottom: 1px solid #223049;
}


/* ==========================================================
   GROUP IDENTITY
========================================================== */

.evacuation-candidates
.evacuation-candidate-group-identity {
  min-width: 0;

  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 9px;
}

.evacuation-candidates
.evacuation-line-color {
  width: 8px;
  height: 30px;

  flex: 0 0 auto;

  border-radius: 999px;
}

.evacuation-candidates
.evacuation-candidate-group-identity
> div {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.evacuation-candidates
.evacuation-candidate-group-identity strong {
  color: #f1f5f9;

  font-size: 11px;
  font-weight: 800;
}

.evacuation-candidates
.evacuation-candidate-group-identity span {
  color: #64748b;

  font-size: 8px;
}


/* ==========================================================
   GROUP META
========================================================== */

.evacuation-candidates
.evacuation-candidate-group-meta {
  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 16px;
}

.evacuation-candidates
.evacuation-group-progress,
.evacuation-candidates
.evacuation-group-available {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 1px;
}

.evacuation-candidates
.evacuation-group-progress span,
.evacuation-candidates
.evacuation-group-available span {
  color: #526176;

  font-size: 6px;
  font-weight: 800;

  text-transform: uppercase;
}

.evacuation-candidates
.evacuation-group-progress strong {
  color: #60a5fa;

  font-size: 12px;
  font-weight: 850;
}

.evacuation-candidates
.evacuation-group-progress.complete strong {
  color: #4ade80;
}

.evacuation-candidates
.evacuation-group-available strong {
  color: #cbd5e1;

  font-size: 10px;
  font-weight: 750;
}


/* ==========================================================
   ACCORDION CHEVRON
========================================================== */

.evacuation-candidates
.evacuation-accordion-chevron {
  width: 26px;
  height: 26px;

  display: grid;
  place-items: center;

  border: 1px solid #334155;
  border-radius: 6px;

  background: #091321;

  color: #94a3b8;

  font-size: 11px;

  transition:
    transform 160ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.evacuation-candidates
.evacuation-accordion-chevron.expanded {
  transform: rotate(180deg);

  border-color: #2563eb;

  color: #60a5fa;
}


/* ==========================================================
   TABLE GRID
========================================================== */

.evacuation-candidates
.evacuation-candidate-table-header,
.evacuation-candidates
.evacuation-candidate-row {
  display: grid;

  grid-template-columns:
    var(--candidate-grid);

  column-gap:
    var(--candidate-gap);

  align-items: center;
}


/* ==========================================================
   TABLE HEADER
========================================================== */

.evacuation-candidates
.evacuation-candidate-table-header {
  min-height: 32px;

  padding: 0 14px;

  border-bottom: 1px solid #1c293d;

  background: #091321;
}

.evacuation-candidates
.evacuation-candidate-table-header
> span {
  color: #526176;

  font-size: 7px;
  font-weight: 850;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}


/* ==========================================================
   CANDIDATE LIST
========================================================== */

.evacuation-candidates
.evacuation-candidate-list {
  display: flex;
  flex-direction: column;

  background: #0b1424;
}


/* ==========================================================
   CANDIDATE ROW
========================================================== */

.evacuation-candidates
.evacuation-candidate-row {
  min-height: 64px;

  padding: 7px 14px;

  border-top: 0;
  border-bottom: 1px solid #1c293d;

  background: #0f192b;

  transition:
    background 130ms ease;
}

.evacuation-candidates
.evacuation-candidate-row:last-child {
  border-bottom: 0;
}

.evacuation-candidates
.evacuation-candidate-row:hover {
  background: #121e32;
}

.evacuation-candidates
.evacuation-candidate-row.selected {
  background:
    linear-gradient(
      90deg,
      rgba(37, 99, 235, 0.08),
      #0f192b 28%
    );

  box-shadow:
    inset 3px 0 0 #3b82f6;
}


/*
 * Importante:
 * neutraliza estilos viejos que puedan poner
 * flex-direction: column en las columnas.
 */

.evacuation-candidates
.evacuation-candidate-row
> div {
  min-width: 0;

  box-sizing: border-box;
}


/* ==========================================================
   CONTAINER COLUMN
========================================================== */

.evacuation-candidates
.evacuation-candidate-row
> .evacuation-candidate-main {
  min-width: 0;

  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 10px;

  padding-right: 8px;
}

.evacuation-candidates
.evacuation-candidate-container-icon {
  width: 30px;
  height: 34px;

  flex: 0 0 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #334155;
  border-radius: 6px;

  background: #111d30;
}

.evacuation-candidates
.evacuation-candidate-container-icon
> span {
  width: 15px;
  height: 21px;

  display: block;

  position: relative;

  border: 2px solid #64748b;
  border-radius: 2px;
}

.evacuation-candidates
.evacuation-candidate-container-icon
> span::before,
.evacuation-candidates
.evacuation-candidate-container-icon
> span::after {
  content: '';

  position: absolute;

  top: 2px;
  bottom: 2px;

  width: 1px;

  background:
    rgba(
      255,
      255,
      255,
      0.35
    );
}

.evacuation-candidates
.evacuation-candidate-container-icon
> span::before {
  left: 4px;
}

.evacuation-candidates
.evacuation-candidate-container-icon
> span::after {
  right: 4px;
}


/* ==========================================================
   CONTAINER INFO
========================================================== */

.evacuation-candidates
.evacuation-candidate-container-info {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 2px;
}

.evacuation-candidates
.evacuation-candidate-container-info
> strong {
  overflow: hidden;

  color: #f1f5f9;

  font-size: 11px;
  font-weight: 800;

  line-height: 1.15;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.evacuation-candidates
.evacuation-candidate-container-info
> span {
  color: #64748b;

  font-size: 8px;
  font-weight: 600;

  line-height: 1.15;
}


/* ==========================================================
   CONTAINER EXTRA
========================================================== */

.evacuation-candidates
.evacuation-container-extra {
  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 7px;

  margin-top: 1px;
}

.evacuation-candidates
.evacuation-container-extra span {
  color: #526176;

  font-size: 7px;
  font-weight: 700;

  line-height: 1;
}

.evacuation-candidates
.evacuation-container-extra
span + span::before {
  content: '•';

  margin-right: 7px;

  color: #334155;
}


/* ==========================================================
   LOCATION COLUMN
========================================================== */

.evacuation-candidates
.evacuation-candidate-row
> .evacuation-candidate-position {
  min-width: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 0;
}

.evacuation-candidates
.evacuation-candidate-label {
  display: block;

  margin-bottom: 3px;

  color: #526176;

  font-size: 6px;
  font-weight: 850;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.evacuation-candidates
.evacuation-location-title {
  display: flex;
  align-items: center;

  gap: 5px;

  max-width: 100%;

  overflow: hidden;

  margin: 0 0 4px;

  color: #dbe4f0;

  font-size: 10px;
  font-weight: 750;

  line-height: 1.15;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.evacuation-candidates
.evacuation-location-separator {
  color: #475569;

  font-weight: 400;
}


/* ==========================================================
   POSITION CHIPS
========================================================== */

.evacuation-candidates
.evacuation-position-chips {
  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 4px;
}

.evacuation-candidates
.evacuation-position-chips
> span {
  height: 20px;

  display: inline-flex;
  align-items: center;

  gap: 4px;

  padding: 0 6px;

  border: 1px solid #27364d;
  border-radius: 5px;

  background: #091321;

  color: #64748b;

  font-size: 7px;
  font-weight: 800;
}

.evacuation-candidates
.evacuation-position-chips strong {
  color: #e2e8f0;

  font-size: 9px;
  font-weight: 800;
}


/* ==========================================================
   LOCATION MISSING
========================================================== */

.evacuation-candidates
.evacuation-location-missing {
  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 7px;
}

.evacuation-candidates
.evacuation-location-missing
> span {
  width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border:
    1px solid
    rgba(245, 158, 11, 0.3);

  border-radius: 50%;

  background:
    rgba(245, 158, 11, 0.08);

  color: #fbbf24;

  font-size: 9px;
  font-weight: 900;
}

.evacuation-candidates
.evacuation-location-missing strong {
  color: #fbbf24;

  font-size: 9px;
}


/* ==========================================================
   FIFO / OPERATION COLUMN
========================================================== */

.evacuation-candidates
.evacuation-candidate-row
> .evacuation-candidate-indicators {
  min-width: 0;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;

  gap: 6px;

  flex-wrap: nowrap;

  padding: 0;
}


/* ==========================================================
   INDICATOR
========================================================== */

.evacuation-candidates
.evacuation-indicator {
  min-width: 52px;
  height: 32px;

  flex: 0 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 1px;

  padding: 0 6px;

  border: 1px solid #26354b;
  border-radius: 5px;

  background: #091321;
}

.evacuation-candidates
.evacuation-indicator span {
  color: #64748b;

  font-size: 6px;
  font-weight: 800;

  line-height: 1;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}

.evacuation-candidates
.evacuation-indicator strong {
  color: #cbd5e1;

  font-size: 9px;
  font-weight: 800;

  line-height: 1.1;
}


/* FIFO */

.evacuation-candidates
.evacuation-indicator.fifo {
  border-color:
    rgba(59, 130, 246, 0.35);

  background:
    rgba(37, 99, 235, 0.06);
}

.evacuation-candidates
.evacuation-indicator.fifo strong {
  color: #60a5fa;
}


/* WARNING */

.evacuation-candidates
.evacuation-indicator.warning {
  border-color:
    rgba(234, 179, 8, 0.28);

  background:
    rgba(234, 179, 8, 0.05);
}

.evacuation-candidates
.evacuation-indicator.warning strong {
  color: #facc15;
}


/* ==========================================================
   OPERATION BADGE
========================================================== */

.evacuation-candidates
.evacuation-operation-badge {
  height: 26px;

  flex: 0 0 auto;

  display: inline-flex;
  flex-direction: row;
  align-items: center;

  gap: 5px;

  padding: 0 8px;

  border-radius: 999px;

  white-space: nowrap;

  font-size: 7px;
  font-weight: 750;
}

.evacuation-candidates
.evacuation-operation-badge span {
  font-size: 8px;
}

.evacuation-candidates
.evacuation-operation-badge.direct {
  border:
    1px solid
    rgba(34, 197, 94, 0.22);

  background:
    rgba(34, 197, 94, 0.07);

  color: #4ade80;
}

.evacuation-candidates
.evacuation-operation-badge.rehandle {
  border:
    1px solid
    rgba(245, 158, 11, 0.22);

  background:
    rgba(245, 158, 11, 0.06);

  color: #fbbf24;
}


/* ==========================================================
   ACTION COLUMN
========================================================== */

.evacuation-candidates
.evacuation-candidate-row
> .evacuation-candidate-action {
  min-width: 0;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;

  padding: 0;
}


/* ==========================================================
   SELECTION BUTTON

   IMPORTANTE:
   ESTA ES LA ÚNICA DECLARACIÓN DEL BOTÓN.
========================================================== */

.evacuation-candidates
.evacuation-candidate-selection-button {
  width: 112px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 0 11px;

  border: 1px solid #304158;
  border-radius: 6px;

  background: #0b1525;

  color: #94a3b8;

  font-size: 8px;
  font-weight: 800;

  line-height: 1;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0
    rgba(255, 255, 255, 0.015);

  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}


/* ==========================================================
   ADD BUTTON HOVER
========================================================== */

.evacuation-candidates
.evacuation-candidate-selection-button:hover:not(:disabled):not(.selected) {
  border-color:
    rgba(59, 130, 246, 0.6);

  background:
    rgba(37, 99, 235, 0.09);

  color: #60a5fa;
}


/* ==========================================================
   SELECTED
========================================================== */

.evacuation-candidates
.evacuation-candidate-selection-button.selected {
  border-color:
    rgba(34, 197, 94, 0.35);

  background:
    rgba(34, 197, 94, 0.08);

  color: #4ade80;
}


/* ==========================================================
   SELECTED HOVER
========================================================== */

.evacuation-candidates
.evacuation-candidate-selection-button.selected:hover:not(:disabled) {
  border-color:
    rgba(239, 68, 68, 0.38);

  background:
    rgba(239, 68, 68, 0.07);

  color: #f87171;
}


/* ==========================================================
   DISABLED
========================================================== */

.evacuation-candidates
.evacuation-candidate-selection-button:disabled {
  cursor: not-allowed;

  opacity: 0.35;
}


/* ==========================================================
   ACTION ICON
========================================================== */

.evacuation-candidates
.evacuation-action-icon {
  width: 15px;
  height: 15px;

  flex: 0 0 15px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid currentColor;
  border-radius: 4px;

  font-size: 8px;
  font-weight: 900;

  line-height: 1;

  opacity: 0.85;
}


/* ==========================================================
   PAGINATION
========================================================== */

.evacuation-candidates
.evacuation-candidate-pagination {
  min-height: 40px;

  padding: 6px 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-top: 1px solid #1c293d;

  background: #091321;

  color: #64748b;

  font-size: 7px;
}

.evacuation-candidates
.evacuation-candidate-pagination strong {
  color: #cbd5e1;
}

.evacuation-candidates
.evacuation-pagination-controls {
  display: flex;
  flex-direction: row;
  align-items: center;

  gap: 6px;
}

.evacuation-candidates
.evacuation-pagination-controls button {
  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid #2a3953;
  border-radius: 5px;

  background: #0f192b;

  color: #94a3b8;

  cursor: pointer;
}

.evacuation-candidates
.evacuation-pagination-controls
button:hover:not(:disabled) {
  border-color: #2563eb;

  color: #60a5fa;
}

.evacuation-candidates
.evacuation-pagination-controls
button:disabled {
  opacity: 0.25;

  cursor: not-allowed;
}


/* ==========================================================
   RESPONSIVE — MEDIUM
========================================================== */

@media (max-width: 1180px) {

  .evacuation-candidates {
    --candidate-grid:
      minmax(165px, 0.95fr)
      minmax(205px, 1.05fr)
      minmax(300px, 1.35fr)
      108px;

    --candidate-gap: 12px;
  }

  .evacuation-candidates
  .evacuation-candidate-table-header,
  .evacuation-candidates
  .evacuation-candidate-row {
    padding-left: 12px;
    padding-right: 12px;
  }

  .evacuation-candidates
  .evacuation-indicator {
    min-width: 46px;

    padding: 0 5px;
  }

  .evacuation-candidates
  .evacuation-operation-badge {
    padding: 0 6px;
  }

  .evacuation-candidates
  .evacuation-candidate-selection-button {
    width: 104px;
  }
}


/* ==========================================================
   RESPONSIVE — TABLET
========================================================== */

@media (max-width: 950px) {

  .evacuation-candidates
  .evacuation-candidate-table-header {
    display: none;
  }

  .evacuation-candidates
  .evacuation-candidate-row {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, 1fr);

    gap: 12px 20px;

    min-height: auto;

    padding: 12px 14px;
  }

  .evacuation-candidates
  .evacuation-candidate-row
  > .evacuation-candidate-indicators {
    grid-column: 1 / 2;
  }

  .evacuation-candidates
  .evacuation-candidate-row
  > .evacuation-candidate-action {
    grid-column: 2 / 3;

    justify-content: flex-end;
  }
}


/* ==========================================================
   RESPONSIVE — MOBILE
========================================================== */

@media (max-width: 650px) {

  .evacuation-candidates
  .evacuations-section-heading {
    flex-direction: column;
  }

  .evacuation-candidates
  .evacuation-selection-summary {
    width: 100%;

    justify-content: space-between;
  }

  .evacuation-candidates
  .evacuation-candidate-row {
    grid-template-columns: 1fr;
  }

  .evacuation-candidates
  .evacuation-candidate-row
  > .evacuation-candidate-indicators,
  .evacuation-candidates
  .evacuation-candidate-row
  > .evacuation-candidate-action {
    grid-column: 1;
  }

  .evacuation-candidates
  .evacuation-candidate-row
  > .evacuation-candidate-indicators {
    flex-wrap: wrap;
  }

  .evacuation-candidates
  .evacuation-candidate-row
  > .evacuation-candidate-action {
    justify-content: stretch;
  }

  .evacuation-candidates
  .evacuation-candidate-selection-button {
    width: 100%;
  }
}

/* ==========================================================
   RECOMMENDATION LAUNCHER
========================================================== */

.evacuation-recommendation-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 12px 14px;

  border: 1px solid #27364d;
  border-radius: 9px;

  background: #0f192b;
}

.evacuation-recommendation-launcher-copy {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 11px;
}

.evacuation-recommendation-icon {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;

  background: rgba(37, 99, 235, 0.08);

  color: #60a5fa;

  font-size: 15px;
}

.evacuation-recommendation-launcher-copy strong {
  display: block;

  color: #e2e8f0;

  font-size: 11px;
  font-weight: 800;
}

.evacuation-recommendation-launcher-copy p {
  margin: 3px 0 0;

  color: #64748b;

  font-size: 8px;
  line-height: 1.4;
}

.evacuation-recommendation-button {
  height: 34px;

  flex: 0 0 auto;

  padding: 0 13px;

  border: 1px solid #334155;
  border-radius: 6px;

  background: #111d30;

  color: #cbd5e1;

  cursor: pointer;

  font-size: 8px;
  font-weight: 800;
}

.evacuation-recommendation-button:hover:not(:disabled) {
  border-color: #3b82f6;

  color: #60a5fa;
}

.evacuation-recommendation-button:disabled {
  cursor: not-allowed;

  opacity: 0.4;
}


/* ==========================================================
   RECOMMENDATION CARD
========================================================== */

.evacuation-recommendation-card {
  padding: 13px 14px;

  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9px;

  background:
    linear-gradient(
      135deg,
      rgba(37, 99, 235, 0.08),
      #0f192b 42%
    );
}

.evacuation-recommendation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 12px;
}

.evacuation-recommendation-title {
  display: flex;
  align-items: center;

  gap: 9px;
}

.evacuation-recommendation-title > span {
  color: #60a5fa;

  font-size: 15px;
}

.evacuation-recommendation-title strong {
  display: block;

  color: #f1f5f9;

  font-size: 11px;
  font-weight: 850;
}

.evacuation-recommendation-title p {
  margin: 2px 0 0;

  color: #64748b;

  font-size: 8px;
}

.evacuation-recommendation-status {
  padding: 4px 7px;

  border: 1px solid #334155;
  border-radius: 999px;

  color: #94a3b8;

  font-size: 7px;
  font-weight: 800;
}

.evacuation-recommendation-status.complete {
  border-color: rgba(34, 197, 94, 0.3);

  background: rgba(34, 197, 94, 0.07);

  color: #4ade80;
}


/* ==========================================================
   RECOMMENDATION METRICS
========================================================== */

.evacuation-recommendation-metrics {
  display: grid;

  grid-template-columns:
    repeat(
      6,
      minmax(75px, 1fr)
    );

  gap: 6px;

  margin-bottom: 12px;
}

.evacuation-recommendation-metrics > div {
  min-height: 43px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 2px;

  padding: 0 8px;

  border: 1px solid #26354b;
  border-radius: 6px;

  background: #091321;
}

.evacuation-recommendation-metrics span {
  color: #64748b;

  font-size: 6px;
  font-weight: 800;

  text-transform: uppercase;
}

.evacuation-recommendation-metrics strong {
  color: #e2e8f0;

  font-size: 11px;
  font-weight: 850;
}


/* ==========================================================
   RECOMMENDATION ACTIONS
========================================================== */

.evacuation-recommendation-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 7px;
}

.evacuation-recommendation-secondary,
.evacuation-recommendation-apply {
  height: 31px;

  padding: 0 11px;

  border-radius: 6px;

  cursor: pointer;

  font-size: 8px;
  font-weight: 800;
}

.evacuation-recommendation-secondary {
  border: 1px solid #334155;

  background: #0b1525;

  color: #94a3b8;
}

.evacuation-recommendation-apply {
  border: 1px solid #2563eb;

  background: #2563eb;

  color: #fff;
}

.evacuation-recommendation-apply:hover:not(:disabled) {
  background: #3b82f6;
}

.evacuation-recommendation-secondary:disabled,
.evacuation-recommendation-apply:disabled {
  cursor: not-allowed;

  opacity: 0.4;
}


/* ==========================================================
   RECOMMENDED ROW
========================================================== */

.evacuation-candidate-row.recommended {
  background:
    linear-gradient(
      90deg,
      rgba(59, 130, 246, 0.07),
      #0f192b 32%
    );

  box-shadow:
    inset 3px 0 0
    rgba(96, 165, 250, 0.75);
}

.evacuation-candidate-title-line {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 6px;
}

.evacuation-candidate-title-line > strong {
  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.evacuation-recommended-badge {
  flex: 0 0 auto;

  padding: 3px 5px;

  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 4px;

  background: rgba(37, 99, 235, 0.08);

  color: #60a5fa !important;

  font-size: 6px !important;
  font-weight: 850 !important;

  text-transform: uppercase;
}

.evacuation-candidate-selection-button.recommended {
  border-color:
    rgba(59, 130, 246, 0.45);

  background:
    rgba(37, 99, 235, 0.08);

  color: #60a5fa;
}


/* ==========================================================
   SEARCH
========================================================== */

.evacuation-candidate-search {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;
}

.evacuation-candidate-search > div {
  width: min(
    420px,
    100%
  );

  height: 34px;

  display: flex;
  align-items: center;

  border: 1px solid #27364d;
  border-radius: 6px;

  background: #091321;

  overflow: hidden;
}

.evacuation-candidate-search > div > span {
  padding-left: 10px;

  color: #526176;

  font-size: 7px;
  font-weight: 850;

  text-transform: uppercase;
}

.evacuation-candidate-search input {
  min-width: 0;
  flex: 1;

  height: 100%;

  padding: 0 9px;

  border: 0;
  outline: 0;

  background: transparent;

  color: #e2e8f0;

  font-size: 9px;
}

.evacuation-candidate-search input::placeholder {
  color: #475569;
}

.evacuation-candidate-search button {
  width: 30px;
  height: 100%;

  border: 0;

  background: transparent;

  color: #64748b;

  cursor: pointer;
}

.evacuation-candidate-search p {
  margin: 0;

  color: #526176;

  font-size: 7px;
}


/* ==========================================================
   GROUP RECOMMENDED BADGE
========================================================== */

.evacuation-group-recommended {
  padding: 4px 6px;

  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;

  background: rgba(37, 99, 235, 0.07);

  color: #60a5fa;

  font-size: 7px;
  font-weight: 800;
}


/* ==========================================================
   RECOMMENDATION ERROR
========================================================== */

.evacuation-recommendation-error {
  min-height: 34px;

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 7px 10px;

  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;

  background: rgba(239, 68, 68, 0.06);

  color: #f87171;

  font-size: 8px;
}

.evacuation-recommendation-error > span {
  width: 18px;
  height: 18px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(239, 68, 68, 0.1);

  font-weight: 900;
}

.evacuation-recommendation-error p {
  margin: 0;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 950px) {
  .evacuation-recommendation-metrics {
    grid-template-columns:
      repeat(
        3,
        1fr
      );
  }
}

@media (max-width: 650px) {
  .evacuation-recommendation-launcher {
    align-items: stretch;

    flex-direction: column;
  }

  .evacuation-recommendation-button {
    width: 100%;
  }

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

  .evacuation-recommendation-actions {
    flex-direction: column;
  }

  .evacuation-recommendation-secondary,
  .evacuation-recommendation-apply {
    width: 100%;
  }

  .evacuation-candidate-search {
    align-items: stretch;

    flex-direction: column;
  }

  .evacuation-candidate-search > div {
    width: 100%;
  }
}.evacuations-page {
    display: flex;
    flex-direction: column;
    gap: 20px;

    width: 96%;
    margin: 24px auto 40px;
}

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

.evacuations-header h1 {
    margin: 4px 0 5px;

    color: #f8fafc;

    font-size: 28px;
}

.evacuations-header p {
    margin: 0;

    color: #64748b;

    font-size: 13px;
}

.evacuations-eyebrow,
.evacuations-section-heading span {
    color: #38bdf8;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

.evacuations-primary-button {
    padding: 10px 16px;

    border: 0;
    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.evacuations-primary-button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}

.evacuations-create-card,
.evacuation-summary,
.evacuation-candidates,
.evacuation-operation,
.evacuation-plan-section {
    margin-bottom: 2%;
    padding: 20px;

    border: 1px solid #1e293b;
    border-radius: 12px;

    background: #0f172a;
}

.evacuations-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 16px;
}

.evacuations-section-heading h2,
.evacuations-section-heading h3 {
    margin: 3px 0 0;

    color: #f8fafc;
}

.evacuations-section-heading h2 {
    font-size: 18px;
}

.evacuations-section-heading h3 {
    font-size: 15px;
}

.evacuations-section-heading p {
    max-width: 650px;

    margin: 5px 0 0;

    color: #64748b;

    font-size: 11px;
}

.evacuations-section-heading>button:not(.evacuations-primary-button) {
    padding: 7px 10px;

    border: 1px solid #334155;
    border-radius: 7px;

    background: #111827;

    color: #cbd5e1;

    cursor: pointer;
}

.evacuations-form-grid {
    display: grid;

    grid-template-columns:
        repeat(4,
            minmax(0,
                1fr));

    gap: 12px;
}

.evacuations-form-grid label,
.evacuations-observations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.evacuations-form-grid label>span,
.evacuations-observations>span {
    color: #94a3b8;

    font-size: 10px;
    font-weight: 600;
}

.evacuations-form-grid input,
.evacuations-form-grid select,
.evacuations-requirement-row input,
.evacuations-requirement-row select,
.evacuations-observations textarea,
.evacuations-search {
    box-sizing: border-box;

    width: 100%;

    padding: 10px 11px;

    border: 1px solid #263449;
    border-radius: 8px;

    outline: 0;

    background: #0b1220;

    color: #f8fafc;
}

.evacuations-form-wide {
    grid-column:
        span 2;
}

.evacuations-observations {
    margin:
        16px 0;
}

.evacuations-observations textarea {
    min-height: 74px;

    resize: vertical;
}

.evacuations-requirements {
    margin-top: 20px;
}

.evacuations-requirement-row {
    display: grid;

    grid-template-columns:
        minmax(0,
            1fr) 140px 42px;

    gap: 8px;

    margin-bottom: 8px;
}

.evacuations-requirement-row>button {
    border: 1px solid #7f1d1d;
    border-radius: 8px;

    background:
        rgba(127,
            29,
            29,
            0.16);

    color: #f87171;

    cursor: pointer;
}

.evacuations-workspace {
    display: grid;

    grid-template-columns:
        290px minmax(0,
            1fr);

    gap: 16px;

    min-height: 650px;
}

.evacuations-list-panel {
    align-self: start;

    overflow: hidden;

    border: 1px solid #1e293b;
    border-radius: 12px;

    background: #0f172a;
}

.evacuations-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 16px;

    border-bottom: 1px solid #1e293b;
}

.evacuations-list-header span {
    color: #64748b;

    font-size: 9px;

    text-transform: uppercase;
}

.evacuations-list-header h2 {
    margin: 3px 0 0;

    color: #f8fafc;

    font-size: 16px;
}

.evacuations-list-header>strong {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    border-radius: 10px;

    background: #172554;

    color: #60a5fa;
}

.evacuations-search {
    width: calc(100% - 24px);

    margin: 12px;
}

.evacuations-list {
    display: flex;
    flex-direction: column;

    max-height: 650px;

    overflow-y: auto;
}

.evacuation-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 13px 14px;

    border: 0;
    border-top: 1px solid #162033;

    background: transparent;

    text-align: left;

    cursor: pointer;
}

.evacuation-list-item:hover,
.evacuation-list-item.active {
    background: #111c30;
}

.evacuation-list-item.active {
    box-shadow:
        inset 3px 0 #3b82f6;
}

.evacuation-list-item>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.evacuation-list-item strong {
    color: #f8fafc;

    font-size: 12px;
}

.evacuation-list-item>div>span {
    color: #64748b;

    font-size: 9px;
}

.evacuations-detail-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;

    min-width: 0;
}

.evacuations-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 400px;

    border: 1px dashed #263449;
    border-radius: 12px;

    color: #64748b;

    text-align: center;
}

.evacuations-empty>div {
    color: #3b82f6;

    font-size: 40px;
}

.evacuations-empty h2,
.evacuations-empty h3 {
    margin: 12px 0 5px;

    color: #cbd5e1;
}

.evacuations-empty p {
    max-width: 480px;

    margin: 0;

    font-size: 11px;
}

.evacuations-empty.compact {
    min-height: 180px;
}

.evacuation-summary-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.evacuation-summary-title>div>span {
    color: #38bdf8;

    font-size: 10px;
    font-weight: 700;
}

.evacuation-summary-title h2 {
    margin: 3px 0;

    color: #f8fafc;

    font-size: 21px;
}

.evacuation-summary-title p {
    margin: 0;

    color: #64748b;

    font-size: 11px;
}

.evacuation-metrics {
    display: grid;

    grid-template-columns:
        repeat(4,
            1fr);

    gap: 10px;

    margin-top: 18px;
}

.evacuation-metric {
    padding: 12px;

    border: 1px solid #1e293b;
    border-radius: 8px;

    background: #0b1220;
}

.evacuation-metric span {
    display: block;

    margin-bottom: 4px;

    color: #64748b;

    font-size: 9px;

    text-transform: uppercase;
}

.evacuation-metric strong {
    color: #f8fafc;

    font-size: 17px;
}

.evacuation-status {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 999px;

    background: #1e293b;

    color: #cbd5e1;

    font-size: 8px;
    font-weight: 700;
}

.evacuation-status-draft {
    background:
        rgba(148,
            163,
            184,
            0.12);

    color: #cbd5e1;
}

.evacuation-status-planned {
    background:
        rgba(59,
            130,
            246,
            0.13);

    color: #60a5fa;
}

.evacuation-status-in_progress {
    background:
        rgba(245,
            158,
            11,
            0.13);

    color: #fbbf24;
}

.evacuation-status-completed {
    background:
        rgba(34,
            197,
            94,
            0.13);

    color: #4ade80;
}

.evacuation-requirement-cards {
    display: grid;
    margin-top: 2%;

    margin-bottom: 2%;

    grid-template-columns:
        repeat(auto-fit,
            minmax(190px,
                1fr));

    gap: 8px;
}

.evacuation-requirement-card {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px;

    border: 1px solid #1e293b;
    border-radius: 9px;

    background: #0f172a;
}

.evacuation-line-color {
    flex-shrink: 0;

    width: 8px;
    height: 30px;

    border-radius: 999px;
}

.evacuation-requirement-card>div {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.evacuation-requirement-card strong {
    color: #f8fafc;

    font-size: 11px;
}

.evacuation-requirement-card span {
    overflow: hidden;

    color: #64748b;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.evacuation-requirement-count {
    margin-left: auto;

    color: #60a5fa !important;

    font-size: 15px !important;
    font-weight: 700;
}

.evacuation-candidate-group {
    overflow: hidden;

    margin-top: 14px;

    border: 1px solid #1e293b;
    border-radius: 10px;
}

.evacuation-candidate-group>header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    background: #0b1220;
}

.evacuation-candidate-group>header>div:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
}

.evacuation-candidate-group>header>div:first-child>div {
    display: flex;
    flex-direction: column;
}

.evacuation-candidate-group>header strong {
    color: #f8fafc;

    font-size: 11px;
}

.evacuation-candidate-group>header span {
    color: #64748b;

    font-size: 9px;
}

.evacuation-candidate-group>header>div:last-child {
    color: #60a5fa;

    font-size: 13px;
    font-weight: 700;
}

.evacuation-candidate-row {
    display: grid;
    align-items: center;

    grid-template-columns:
        42px minmax(150px,
            1fr) minmax(160px,
            1fr) 80px 120px 90px;

    gap: 10px;

    padding: 10px 12px;

    border-top: 1px solid #182338;

    background: #0f172a;
}

.evacuation-candidate-row.selected {
    background:
        rgba(37,
            99,
            235,
            0.07);
}

.evacuation-candidate-row.disabled {
    opacity: 0.48;
}

.evacuation-candidate-row>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.evacuation-candidate-row strong {
    color: #e2e8f0;

    font-size: 10px;
}

.evacuation-candidate-row span {
    color: #64748b;

    font-size: 8px;
}

.evacuation-fifo-rank {
    color: #38bdf8 !important;

    font-weight: 700;
}

.candidate-access {
    display: inline-flex;

    width: fit-content;

    padding: 4px 7px;

    border-radius: 999px;
}

.candidate-access.ready {
    background:
        rgba(34,
            197,
            94,
            0.12);

    color: #4ade80;
}

.candidate-access.blocked {
    background:
        rgba(245,
            158,
            11,
            0.12);

    color: #fbbf24;
}

.candidate-add,
.candidate-remove {
    padding: 7px 8px;

    border-radius: 7px;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.candidate-add {
    border: 1px solid #1d4ed8;

    background:
        rgba(37,
            99,
            235,
            0.12);

    color: #60a5fa;
}

.candidate-remove {
    border: 1px solid #7f1d1d;

    background:
        rgba(127,
            29,
            29,
            0.12);

    color: #f87171;
}

.evacuation-next-step {
    display: grid;
    align-items: center;

    grid-template-columns:
        56px 1fr 150px;

    gap: 15px;

    padding: 16px;

    border: 1px solid #1e3a5f;
    border-radius: 10px;

    background:
        linear-gradient(135deg,
            #0b1628,
            #0c1320);
}

.next-step-icon {
    display: grid;
    place-items: center;

    width: 48px;
    height: 48px;

    border-radius: 12px;

    background:
        rgba(59,
            130,
            246,
            0.14);

    color: #60a5fa;

    font-size: 24px;
}

.next-step-icon.exit {
    background:
        rgba(34,
            197,
            94,
            0.13);

    color: #4ade80;
}

.next-step-main span,
.next-step-meta span {
    color: #64748b;

    font-size: 8px;

    text-transform: uppercase;
}

.next-step-main h3 {
    margin: 2px 0 5px;

    color: #f8fafc;

    font-size: 14px;
}

.next-step-main strong {
    color: #60a5fa;

    font-size: 17px;
}

.next-step-main p {
    margin: 4px 0 0;

    color: #94a3b8;

    font-size: 9px;
}

.next-step-meta {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 5px;
}

.next-step-meta strong {
    color: #e2e8f0;

    font-size: 10px;
}

.evacuation-rehandle-layout {
    display: grid;

    grid-template-columns:
        250px minmax(0,
            1fr);

    gap: 12px;

    margin-top: 14px;
}

.evacuation-rehandle-sidebar {
    padding: 12px;

    border: 1px solid #1e293b;
    border-radius: 9px;

    background: #0b1220;
}

.evacuation-rehandle-sidebar h3 {
    margin: 0 0 10px;

    color: #f8fafc;

    font-size: 12px;
}

.evacuation-bay-option {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-bottom: 6px;

    padding: 9px;

    border: 1px solid #1e293b;
    border-radius: 7px;

    background: #0f172a;

    color: #cbd5e1;

    text-align: left;

    cursor: pointer;
}

.evacuation-bay-option.active {
    border-color: #2563eb;

    background:
        rgba(37,
            99,
            235,
            0.13);
}

.evacuation-bay-option>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.evacuation-bay-option strong {
    font-size: 10px;
}

.evacuation-bay-option span {
    color: #64748b;

    font-size: 8px;
}

.evacuation-destination {
    margin-top: 14px;

    padding-top: 12px;

    border-top: 1px solid #1e293b;
}

.evacuation-destination h4 {
    margin: 0;

    color: #f8fafc;
}

.evacuation-destination p {
    color: #94a3b8;

    font-size: 9px;
}

.evacuation-rehandle-scene {
    overflow: hidden;

    min-height: 520px;

    border: 1px solid #1e293b;
    border-radius: 9px;

    background: #050b16;
}

.evacuation-rehandle-scene canvas {
    min-height: 520px;
}

.evacuation-execute-button {
    width: 100%;

    margin-top: 14px;

    padding: 12px;

    border: 0;
    border-radius: 9px;

    background: #2563eb;

    color: white;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.evacuation-execute-button.exit {
    background: #15803d;
}

.evacuation-step-list {
    display: flex;
    flex-direction: column;
}

.evacuation-step-row {
    display: grid;
    align-items: center;

    grid-template-columns:
        35px 85px 1fr 110px;

    gap: 10px;

    padding: 9px;

    border-top: 1px solid #1e293b;
}

.evacuation-step-sequence {
    color: #64748b;

    font-size: 9px;
}

.evacuation-step-action {
    width: fit-content;

    padding: 4px 7px;

    border-radius: 999px;

    background:
        rgba(59,
            130,
            246,
            0.1);

    color: #60a5fa;

    font-size: 8px;
    font-weight: 700;
}

.evacuation-step-action.exit {
    background:
        rgba(34,
            197,
            94,
            0.1);

    color: #4ade80;
}

.evacuation-step-row strong {
    color: #e2e8f0;

    font-size: 10px;
}

.evacuation-step-status {
    color: #94a3b8;

    font-size: 8px;

    text-align: right;
}

@media (max-width: 1100px) {
    .evacuations-form-grid {
        grid-template-columns:
            repeat(2,
                1fr);
    }

    .evacuations-workspace {
        grid-template-columns:
            1fr;
    }

    .evacuations-list-panel {
        max-height: 330px;
    }

    .evacuation-candidate-row {
        grid-template-columns:
            35px 1fr 1fr 70px;
    }

    .evacuation-candidate-row>div:nth-child(5) {
        display: none;
    }

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

/* =========================================
   TABS
========================================= */

.evacuations-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.evacuations-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.evacuations-tab:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.evacuations-tab.active {
    background: rgba(59, 130, 246, 0.16);
    color: #60a5fa;
}

.evacuations-tab:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.evacuations-tab>span {
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    font-size: 11px;
}

.evacuations-tab-content {
    min-width: 0;
}


/* =========================================
   EVACUATION LIST CARDS
========================================= */

.evacuations-cards-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.evacuation-list-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.65);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.evacuation-list-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(15, 23, 42, 0.9);
}

.evacuation-list-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.evacuation-list-card-top>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.evacuation-list-card-top strong {
    color: #f8fafc;
    font-size: 17px;
}

.evacuation-list-card-top span {
    color: #94a3b8;
}

.evacuation-list-card-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.evacuation-list-card-metrics>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 11px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.45);
}

.evacuation-list-card-metrics span {
    color: #64748b;
    font-size: 11px;
}

.evacuation-list-card-metrics strong {
    color: #e2e8f0;
    font-size: 17px;
}

.evacuation-list-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 13px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    font-size: 12px;
}

.evacuation-list-card-footer strong {
    color: #60a5fa;
}


/* =========================================
   SCHEDULE
========================================= */

.evacuation-schedule {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.evacuation-schedule>div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.32);
}

.evacuation-schedule span {
    color: #64748b;
    font-size: 11px;
}

.evacuation-schedule strong {
    color: #e2e8f0;
    font-size: 13px;
}


/* =========================================
   CREATE ACTIONS
========================================= */

.evacuations-create-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.evacuations-secondary-button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
}

.evacuations-secondary-button:hover:not(:disabled) {
    background: rgba(148, 163, 184, 0.08);
}


/* =========================================
   REQUIREMENTS
========================================= */

.evacuations-requirement-row {
    grid-template-columns:
        minmax(240px, 2fr) minmax(150px, 1fr) minmax(110px, 0.7fr) 42px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {
    .evacuations-tabs {
        overflow-x: auto;
    }

    .evacuations-tab {
        flex: 0 0 auto;
    }

    .evacuations-requirement-row {
        grid-template-columns: 1fr;
    }

    .evacuation-list-card-metrics {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   REHANDLE RECOMMENDATION
========================================== */

.evacuation-recommendation-card {
  display: flex;
  flex-direction: column;
  gap: 14px;

  padding: 16px;

  margin-bottom: 18px;

  border:
    1px solid
    rgba(
      34,
      197,
      94,
      0.45
    );

  border-radius: 14px;

  background:
    linear-gradient(
      145deg,
      rgba(
        22,
        101,
        52,
        0.22
      ),
      rgba(
        15,
        23,
        42,
        0.85
      )
    );

  box-shadow:
    0 14px 30px
    rgba(
      0,
      0,
      0,
      0.16
    );
}

.evacuation-recommendation-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.evacuation-recommendation-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  flex-shrink: 0;

  border-radius: 10px;

  background:
    rgba(
      34,
      197,
      94,
      0.18
    );

  color:
    #4ade80;

  font-size: 20px;
}

.evacuation-recommendation-header div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.evacuation-recommendation-label {
  color:
    #4ade80;

  font-size: 11px;
  font-weight: 700;

  letter-spacing:
    0.05em;

  text-transform:
    uppercase;
}

.evacuation-recommendation-header strong {
  color:
    #f8fafc;

  font-size: 15px;
}

.evacuation-recommendation-position {
  display: grid;
  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 8px;
}

.evacuation-recommendation-position div {
  display: flex;
  flex-direction: column;
  gap: 3px;

  padding: 9px;

  border-radius: 9px;

  background:
    rgba(
      15,
      23,
      42,
      0.72
    );

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.12
    );
}

.evacuation-recommendation-position span {
  color:
    #94a3b8;

  font-size: 11px;
}

.evacuation-recommendation-position strong {
  color:
    #f8fafc;

  font-size: 16px;
}

.evacuation-recommendation-safety {
  display: flex;
  gap: 9px;

  padding: 10px;

  border-radius: 9px;

  background:
    rgba(
      34,
      197,
      94,
      0.08
    );
}

.evacuation-recommendation-safety > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.evacuation-recommendation-safety strong {
  color:
    #86efac;

  font-size: 12px;
}

.evacuation-recommendation-safety span {
  color:
    #cbd5e1;

  font-size: 11px;

  line-height: 1.4;
}

.evacuation-safe-indicator {
  color:
    #4ade80 !important;

  font-size: 17px !important;

  font-weight: 700;
}

.evacuation-recommendation-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  color:
    #94a3b8;

  font-size: 11px;
}

.evacuation-recommendation-meta strong {
  color:
    #e2e8f0;
}

.evacuation-recommended-button {
  width: 100%;

  padding: 10px 12px;

  border: none;
  border-radius: 9px;

  cursor: pointer;

  background:
    #16a34a;

  color:
    white;

  font-size: 12px;
  font-weight: 700;
}

.evacuation-recommended-button:hover {
  background:
    #15803d;
}

/* ==========================================
   SELECTED RECOMMENDATION
========================================== */

.evacuation-selected-recommended {
  display: inline-flex;

  margin-bottom: 10px;

  padding:
    5px
    8px;

  border-radius: 999px;

  background:
    rgba(
      34,
      197,
      94,
      0.12
    );

  color:
    #4ade80;

  font-size: 11px;
  font-weight: 700;
}

/* ==========================================
   RECOMMENDATION WARNING
========================================== */

.evacuation-recommendation-warning {
  margin-bottom: 16px;

  padding: 12px;

  border:
    1px solid
    rgba(
      245,
      158,
      11,
      0.35
    );

  border-radius: 10px;

  background:
    rgba(
      245,
      158,
      11,
      0.08
    );
}

.evacuation-recommendation-warning strong {
  color:
    #fbbf24;

  font-size: 12px;
}

.evacuation-recommendation-warning p {
  margin:
    5px
    0
    0;

  color:
    #cbd5e1;

  font-size: 11px;
}

/* ==========================================
   STATISTICS
========================================== */

.evacuation-recommendation-stats {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 7px;

  margin-bottom: 16px;
}

.evacuation-recommendation-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;

  padding: 8px;

  border-radius: 8px;

  background:
    rgba(
      15,
      23,
      42,
      0.72
    );
}

.evacuation-recommendation-stats span {
  color:
    #94a3b8;

  font-size: 10px;
}

.evacuation-recommendation-stats strong {
  color:
    #f8fafc;

  font-size: 14px;
}

/* ==========================================
   ALTERNATIVES
========================================== */

.evacuation-alternatives {
  margin-top: 16px;
}

.evacuation-alternatives h4 {
  margin:
    0
    0
    4px;

  color:
    #f8fafc;
}

.evacuation-alternatives > p {
  margin:
    0
    0
    9px;

  color:
    #94a3b8;

  font-size: 11px;
}

.evacuation-alternative-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evacuation-alternative-option {
  display: flex;

  align-items: center;
  justify-content: space-between;

  width: 100%;

  padding: 9px;

  border:
    1px solid
    rgba(
      148,
      163,
      184,
      0.15
    );

  border-radius: 8px;

  background:
    rgba(
      15,
      23,
      42,
      0.6
    );

  cursor: pointer;

  color:
    #e2e8f0;

  text-align: left;
}

.evacuation-alternative-option:hover {
  border-color:
    rgba(
      34,
      197,
      94,
      0.4
    );

  background:
    rgba(
      34,
      197,
      94,
      0.08
    );
}

.evacuation-alternative-option div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.evacuation-alternative-option strong {
  font-size: 11px;
}

.evacuation-alternative-option span {
  color:
    #94a3b8;

  font-size: 10px;
}

/* ==========================================
   MANUAL
========================================== */

.evacuation-manual-destination {
  margin:
    18px
    0
    10px;

  padding-top: 14px;

  border-top:
    1px solid
    rgba(
      148,
      163,
      184,
      0.13
    );
}

.evacuation-manual-destination h3 {
  margin:
    0
    0
    4px;

  color:
    #f8fafc;

  font-size: 13px;
}

.evacuation-manual-destination p {
  margin: 0;

  color:
    #94a3b8;

  font-size: 11px;

  line-height: 1.4;
}

.evacuation-bay-recommended {
  color:
    #4ade80;

  font-size: 16px;
}

/* ==========================================================
   REHANDLE IMMERSIVE WORKSPACE
========================================================== */

.rehandle-workspace-immersive {
  width: 100%;

  min-width: 0;

  display: block;

  margin-top: 18px;
}


/* ==========================================================
   MAP
========================================================== */

.rehandle-immersive-map {
  position: relative;

  width: 100%;
  height: 760px;

  min-height: 760px;

  overflow: hidden;

  border: 1px solid #22314a;
  border-radius: 14px;

  background: #050b16;

  box-shadow:
    0 18px 50px
    rgba(0, 0, 0, 0.22);
}


/* ==========================================================
   YARD SCENE
========================================================== */

.rehandle-immersive-map
  > .yard-scene-wrapper {
  position: absolute;

  inset: 0;

  width: 100% !important;
  height: 100% !important;

  min-width: 0 !important;

  min-height: 0 !important;
  max-height: none !important;

  border: 0;
  border-radius: 0;
}


/* ==========================================================
   CANVAS
========================================================== */

.rehandle-immersive-map canvas {
  display: block;

  width: 100% !important;
  height: 100% !important;
}


/* ==========================================================
   FLOATING CARD BASE
========================================================== */

.rehandle-floating-card {
  position: absolute;

  z-index: 30;

  border: 1px solid
    rgba(71, 85, 105, 0.62);

  border-radius: 12px;

  background:
    rgba(
      7,
      15,
      29,
      0.91
    );

  backdrop-filter:
    blur(15px);

  -webkit-backdrop-filter:
    blur(15px);

  box-shadow:
    0 18px 45px
    rgba(0, 0, 0, 0.32);

  color: #e2e8f0;
}


/* ==========================================================
   EYEBROW
========================================================== */

.rehandle-floating-eyebrow {
  display: block;

  margin-bottom: 7px;

  color: #71829c;

  font-size: 9px;
  font-weight: 850;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* ==========================================================
   CONTAINER CARD
========================================================== */

.rehandle-floating-container {
  top: 22px;
  left: 22px;

  width: 270px;

  padding: 14px 15px;
}

.rehandle-floating-container-number {
  display: block;

  margin-bottom: 8px;

  color: #f8fafc;

  font-size: 19px;
  font-weight: 900;

  letter-spacing: 0.01em;
}

.rehandle-floating-tags {
  display: flex;
  align-items: center;

  gap: 5px;

  margin-bottom: 12px;
}

.rehandle-floating-tags span {
  height: 23px;

  display: inline-flex;
  align-items: center;

  padding: 0 8px;

  border: 1px solid #26354b;
  border-radius: 999px;

  background:
    rgba(
      30,
      41,
      59,
      0.72
    );

  color: #a8b5c7;

  font-size: 8px;
  font-weight: 750;
}

.rehandle-floating-current-position {
  padding-top: 9px;

  border-top: 1px solid
    rgba(71, 85, 105, 0.35);
}

.rehandle-floating-current-position span {
  display: block;

  margin-bottom: 3px;

  color: #71829c;

  font-size: 8px;
}

.rehandle-floating-current-position strong {
  color: #e2e8f0;

  font-size: 10px;
  font-weight: 800;
}


/* ==========================================================
   RECOMMENDATION
========================================================== */

.rehandle-floating-recommendation {
  top: 190px;
  left: 22px;

  width: 270px;

  padding: 14px;

  border-color:
    rgba(234, 179, 8, 0.42);

  background:
    linear-gradient(
      135deg,
      rgba(234, 179, 8, 0.1),
      rgba(7, 15, 29, 0.94) 38%
    );
}

.rehandle-floating-recommendation-header {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-bottom: 11px;
}

.rehandle-floating-recommendation-header > span {
  color: #facc15;

  font-size: 21px;
}

.rehandle-floating-recommendation-header div {
  min-width: 0;
}

.rehandle-floating-recommendation-header small {
  display: block;

  margin-bottom: 2px;

  color: #facc15;

  font-size: 7px;
  font-weight: 850;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.rehandle-floating-recommendation-header strong {
  display: block;

  overflow: hidden;

  color: #f8fafc;

  font-size: 14px;
  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ==========================================================
   POSITION GRID
========================================================== */

.rehandle-floating-position-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      1fr
    );

  gap: 6px;
}

.rehandle-floating-position-grid > div {
  min-height: 48px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 9px;

  border: 1px solid
    rgba(71, 85, 105, 0.38);

  border-radius: 7px;

  background:
    rgba(
      2,
      8,
      23,
      0.66
    );
}

.rehandle-floating-position-grid span {
  margin-bottom: 2px;

  color: #71829c;

  font-size: 7px;
  font-weight: 750;
}

.rehandle-floating-position-grid strong {
  color: #f8fafc;

  font-size: 15px;
  font-weight: 900;
}


/* ==========================================================
   REASON
========================================================== */

.rehandle-floating-reason {
  margin:
    10px
    0
    0;

  color: #9aa9bd;

  font-size: 8px;
  line-height: 1.45;
}


/* ==========================================================
   RECOMMENDATION STATS
========================================================== */

.rehandle-floating-recommendation-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-top: 9px;
}

.rehandle-floating-recommendation-stats span {
  display: flex;
  align-items: center;

  gap: 4px;

  color: #71829c;

  font-size: 8px;
}

.rehandle-floating-recommendation-stats strong {
  color: #dbe5f3;

  font-size: 9px;
}


/* ==========================================================
   RECOMMENDATION BUTTONS
========================================================== */

.rehandle-floating-recommendation-actions {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 7px;

  margin-top: 11px;
}

.rehandle-floating-recommendation-actions button {
  height: 35px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid #334155;
  border-radius: 7px;

  background:
    rgba(
      15,
      25,
      43,
      0.92
    );

  color: #cbd5e1;

  cursor: pointer;

  font-size: 8px;
  font-weight: 800;
}

.rehandle-floating-recommendation-actions button.primary {
  border-color: #d99500;

  background:
    rgba(
      217,
      149,
      0,
      0.13
    );

  color: #facc15;
}

.rehandle-floating-recommendation-actions button:hover:not(:disabled) {
  border-color: #60a5fa;

  color: #f8fafc;
}

.rehandle-floating-recommendation-actions button.primary:hover:not(:disabled) {
  border-color: #facc15;

  background:
    rgba(
      217,
      149,
      0,
      0.2
    );

  color: #fde047;
}

.rehandle-floating-recommendation-actions button:disabled {
  cursor: not-allowed;

  opacity: 0.45;
}

.rehandle-floating-recommendation-actions kbd {
  min-width: 22px;
  height: 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #475569;
  border-radius: 5px;

  background: #08111f;

  color: inherit;

  font-size: 8px;
  font-family: inherit;
  font-weight: 900;
}

.rehandle-floating-recommendation-actions
  .primary
  kbd {
  border-color:
    rgba(250, 204, 21, 0.45);
}


/* ==========================================================
   ALTERNATIVES
========================================================== */

.rehandle-floating-alternatives {
  bottom: 22px;
  left: 22px;

  width: 270px;

  padding: 13px;
}

.rehandle-floating-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 9px;
}

.rehandle-floating-section-heading div span {
  display: block;

  color: #71829c;

  font-size: 7px;
  font-weight: 800;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.rehandle-floating-section-heading div strong {
  display: block;

  margin-top: 2px;

  color: #f1f5f9;

  font-size: 11px;
  font-weight: 850;
}

.rehandle-floating-count {
  min-width: 28px;
  height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 7px;

  border-radius: 999px;

  background:
    rgba(
      34,
      197,
      94,
      0.12
    );

  color: #4ade80;

  font-size: 9px;
  font-weight: 850;
}


/* ==========================================================
   ALTERNATIVE LIST
========================================================== */

.rehandle-floating-alternative-list {
  display: flex;
  flex-direction: column;

  gap: 5px;

  max-height: 190px;

  overflow-y: auto;

  padding-right: 2px;
}

.rehandle-floating-alternative-list button {
  width: 100%;
  min-height: 43px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  padding: 7px 9px;

  border: 1px solid
    rgba(71, 85, 105, 0.4);

  border-radius: 7px;

  background:
    rgba(
      2,
      8,
      23,
      0.58
    );

  color: #cbd5e1;

  cursor: pointer;

  text-align: left;
}

.rehandle-floating-alternative-list button:hover:not(:disabled) {
  border-color:
    rgba(96, 165, 250, 0.5);

  background:
    rgba(
      37,
      99,
      235,
      0.08
    );
}

.rehandle-floating-alternative-list button div {
  min-width: 0;
}

.rehandle-floating-alternative-list button strong {
  display: block;

  margin-bottom: 2px;

  overflow: hidden;

  color: #e2e8f0;

  font-size: 9px;
  font-weight: 800;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.rehandle-floating-alternative-list button div span {
  color: #71829c;

  font-size: 7px;
}

.rehandle-floating-alternative-list
  button
  > span {
  color: #71829c;

  font-size: 12px;
}

.rehandle-floating-empty {
  margin: 0;

  color: #71829c;

  font-size: 8px;
}


/* ==========================================================
   FLOW
========================================================== */

.rehandle-floating-flow {
  top: 22px;
  right: 22px;

  width: 250px;

  padding: 14px;
}

.rehandle-floating-flow-list {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.rehandle-floating-flow-step {
  display: flex;
  align-items: center;

  gap: 9px;

  opacity: 0.55;
}

.rehandle-floating-flow-step > span {
  width: 28px;
  height: 28px;

  flex: 0 0 28px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: #14223a;

  color: #60a5fa;

  font-size: 9px;
  font-weight: 900;
}

.rehandle-floating-flow-step strong {
  display: block;

  color: #e2e8f0;

  font-size: 9px;
  font-weight: 800;
}

.rehandle-floating-flow-step small {
  display: block;

  margin-top: 2px;

  color: #71829c;

  font-size: 7px;
}

.rehandle-floating-flow-step.completed {
  opacity: 1;
}

.rehandle-floating-flow-step.completed
  > span {
  background:
    rgba(
      34,
      197,
      94,
      0.16
    );

  color: #4ade80;
}

.rehandle-floating-flow-step.active {
  opacity: 1;
}

.rehandle-floating-flow-step.active
  > span {
  background:
    rgba(
      37,
      99,
      235,
      0.18
    );

  color: #60a5fa;
}


/* ==========================================================
   DESTINATION
========================================================== */

.rehandle-floating-destination {
  right: 22px;
  bottom: 22px;

  width: 270px;

  padding: 14px;
}

.rehandle-floating-destination-bay {
  display: block;

  margin-bottom: 9px;

  color: #f1f5f9;

  font-size: 13px;
  font-weight: 850;
}

.rehandle-floating-no-selection {
  padding: 9px 0 2px;

  text-align: center;
}

.rehandle-floating-no-selection > span {
  display: block;

  margin-bottom: 6px;

  color: #60a5fa;

  font-size: 22px;
}

.rehandle-floating-no-selection strong {
  display: block;

  color: #e2e8f0;

  font-size: 10px;
}

.rehandle-floating-no-selection p {
  margin:
    4px
    0
    0;

  color: #71829c;

  font-size: 8px;
  line-height: 1.4;
}


/* ==========================================================
   RECOMMENDED SELECTED
========================================================== */

.rehandle-floating-recommended-selected {
  width: fit-content;

  display: inline-flex;

  margin-top: 9px;

  padding: 4px 7px;

  border-radius: 999px;

  background:
    rgba(
      234,
      179,
      8,
      0.12
    );

  color: #facc15;

  font-size: 7px;
  font-weight: 850;
}


/* ==========================================================
   CONFIRM
========================================================== */

.rehandle-floating-confirm {
  width: 100%;
  height: 38px;

  margin-top: 11px;

  border: 1px solid #2563eb;
  border-radius: 7px;

  background: #2563eb;

  color: #ffffff;

  cursor: pointer;

  font-size: 9px;
  font-weight: 850;

  transition:
    background 120ms ease,
    transform 120ms ease;
}

.rehandle-floating-confirm:hover:not(:disabled) {
  background: #3b82f6;

  transform:
    translateY(-1px);
}

.rehandle-floating-confirm:disabled {
  cursor: not-allowed;

  opacity: 0.45;
}


/* ==========================================================
   ANALYSIS
========================================================== */

.rehandle-floating-analysis {
  position: absolute;

  z-index: 30;

  right: 310px;
  bottom: 22px;

  display: flex;
  align-items: center;

  gap: 5px;
}

.rehandle-floating-analysis span {
  min-width: 64px;
  height: 34px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 0 9px;

  border: 1px solid
    rgba(71, 85, 105, 0.45);

  border-radius: 7px;

  background:
    rgba(
      7,
      15,
      29,
      0.84
    );

  backdrop-filter:
    blur(10px);

  color: #71829c;

  font-size: 6px;
  font-weight: 750;
}

.rehandle-floating-analysis strong {
  margin-top: 1px;

  color: #e2e8f0;

  font-size: 10px;
}


/* ==========================================================
   MAP LOADING
========================================================== */

.rehandle-map-loading {
  position: absolute;

  inset: 0;

  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: #050b16;

  color: #71829c;

  text-align: center;
}

.rehandle-map-loading > span {
  margin-bottom: 8px;

  color: #60a5fa;

  font-size: 30px;
}

.rehandle-map-loading strong {
  color: #e2e8f0;

  font-size: 14px;
}

.rehandle-map-loading p {
  margin:
    5px
    0
    0;

  font-size: 9px;
}


/* ==========================================================
   YARD ENTRY HUD OVERRIDES FOR REHANDLE
========================================================== */

/*
 * YardScene ya muestra su navegación,
 * fullscreen, aim, crosshair y shortcuts.
 *
 * Ocultamos elementos duplicados porque en
 * RehandleWorkspace ya tenemos nuestras
 * tarjetas flotantes.
 */

.rehandle-immersive-map
  .yard-entry-operation-context {
  display: none;
}

.rehandle-immersive-map
  .yard-entry-recommendation-hud {
  display: none;
}

.rehandle-immersive-map
  .yard-entry-selected-hud {
  display: none;
}


/* ==========================================================
   BAY HUD
========================================================== */

.rehandle-immersive-map
  .yard-entry-operation-hud {
  z-index: 25;
}

.rehandle-immersive-map
  .yard-entry-operation-bay {
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================
   AIM PANEL
========================================================== */

.rehandle-immersive-map
  .yard-entry-aim-panel {
  z-index: 35;
}


/* ==========================================================
   CROSSHAIR
========================================================== */

.rehandle-immersive-map
  .yard-entry-crosshair {
  z-index: 24;

  pointer-events: none;
}


/* ==========================================================
   FULLSCREEN BUTTON
========================================================== */

.rehandle-immersive-map
  .yard-entry-fullscreen-button {
  z-index: 40;
}


/* ==========================================================
   CONTROLS
========================================================== */

.rehandle-immersive-map
  .yard-entry-controls-help {
  z-index: 35;
}


/* ==========================================================
   SCROLLBARS
========================================================== */

.rehandle-floating-alternative-list::-webkit-scrollbar {
  width: 5px;
}

.rehandle-floating-alternative-list::-webkit-scrollbar-track {
  background: transparent;
}

.rehandle-floating-alternative-list::-webkit-scrollbar-thumb {
  border-radius: 999px;

  background: #334155;
}


/* ==========================================================
   RESPONSIVE - MEDIUM
========================================================== */

@media (
  max-width: 1250px
) {
  .rehandle-immersive-map {
    height: 700px;

    min-height: 700px;
  }

  .rehandle-floating-container,
  .rehandle-floating-recommendation,
  .rehandle-floating-alternatives {
    width: 235px;
  }

  .rehandle-floating-flow,
  .rehandle-floating-destination {
    width: 225px;
  }

  .rehandle-floating-analysis {
    right: 270px;
  }
}


/* ==========================================================
   RESPONSIVE - TABLET
========================================================== */

@media (
  max-width: 950px
) {
  .rehandle-immersive-map {
    height: 760px;

    min-height: 760px;
  }

  .rehandle-floating-container {
    top: 15px;
    left: 15px;
  }

  .rehandle-floating-recommendation {
    top: 180px;
    left: 15px;
  }

  .rehandle-floating-alternatives {
    left: 15px;
    bottom: 15px;
  }

  .rehandle-floating-flow {
    top: 15px;
    right: 15px;
  }

  .rehandle-floating-destination {
    right: 15px;
    bottom: 15px;
  }

  .rehandle-floating-analysis {
    display: none;
  }
}


/* ==========================================================
   RESPONSIVE - MOBILE
========================================================== */

@media (
  max-width: 700px
) {
  .rehandle-immersive-map {
    height: 720px;

    min-height: 720px;
  }

  .rehandle-floating-container {
    width: calc(
      100% -
      30px
    );

    top: 12px;
    left: 15px;
  }

  .rehandle-floating-recommendation {
    width: 210px;

    top: 170px;
    left: 15px;
  }

  .rehandle-floating-flow {
    display: none;
  }

  .rehandle-floating-alternatives {
    width: 210px;

    bottom: 15px;
    left: 15px;
  }

  .rehandle-floating-destination {
    width: 210px;

    right: 15px;
    bottom: 15px;
  }
}

/* =========================================
   EVACUATION WORKSPACE
========================================= */

.evacuation-workspace {
  display: flex;
  flex-direction: column;

  gap: 16px;

  margin-top: 24px;
}

/* =========================================
   TABS
========================================= */

.evacuation-workspace-tabs {
  display: flex;

  gap: 10px;

  padding: 6px;

  border: 1px solid #23324a;

  border-radius: 14px;

  background: #0b1526;
}

.evacuation-workspace-tab {
  flex: 1;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 4px;

  padding: 14px 18px;

  border: 1px solid transparent;

  border-radius: 10px;

  background: transparent;

  color: #8494ad;

  cursor: pointer;

  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.evacuation-workspace-tab:hover {
  background: #111d31;

  border-color: #2b3d59;

  color: #d7e2f2;
}

.evacuation-workspace-tab:active {
  transform: translateY(1px);
}

.evacuation-workspace-tab span {
  font-size: 14px;

  font-weight: 700;

  letter-spacing: 0.01em;
}

.evacuation-workspace-tab small {
  font-size: 11px;

  font-weight: 500;

  color: #667892;
}

/* =========================================
   ACTIVE TAB
========================================= */

.evacuation-workspace-tab.is-active {
  background: #13233b;

  border-color: #2786d8;

  color: #ffffff;

  box-shadow:
    0 0 0 1px rgba(39, 134, 216, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.evacuation-workspace-tab.is-active small {
  color: #60b8f5;
}

/* =========================================
   CONTENT
========================================= */

.evacuation-workspace-content {
  min-width: 0;
}

/*
 * Evitamos márgenes superiores duplicados
 * porque el contenido ya vive dentro del
 * workspace.
 */

.evacuation-workspace-content
  > .evacuation-operation {
  margin-top: 0;
}

.evacuation-workspace-content
  > .evacuation-plan {
  margin-top: 0;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 760px) {
  .evacuation-workspace-tabs {
    flex-direction: column;
  }

  .evacuation-workspace-tab {
    width: 100%;
  }
}

/* =========================================
   OPERATION TYPE
========================================= */

.evacuation-operation-type {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 8px 12px;

  border: 1px solid #243550;
  border-radius: 10px;

  background: #0b1627;
}

.evacuation-operation-type-icon {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  border-radius: 9px;

  font-size: 17px;
  font-weight: 800;
}

.evacuation-operation-type div {
  display: flex;
  flex-direction: column;

  gap: 1px;
}

.evacuation-operation-type small {
  font-size: 9px;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  color: #667892;
}

.evacuation-operation-type strong {
  font-size: 13px;

  color: #f8fafc;
}

/* REMANEJO */

.evacuation-operation-type.is-rehandle {
  border-color:
    rgba(
      14,
      165,
      233,
      0.28
    );
}

.evacuation-operation-type.is-rehandle
  .evacuation-operation-type-icon {
  color: #38bdf8;

  background:
    rgba(
      14,
      165,
      233,
      0.14
    );
}

/* SALIDA */

.evacuation-operation-type.is-exit {
  border-color:
    rgba(
      34,
      197,
      94,
      0.28
    );
}

.evacuation-operation-type.is-exit
  .evacuation-operation-type-icon {
  color: #4ade80;

  background:
    rgba(
      34,
      197,
      94,
      0.14
    );
}


/* =========================================
   STEP WRAPPER
========================================= */

.evacuation-step-wrapper {
  position: relative;

  overflow: hidden;

  border: 1px solid #20324d;

  border-radius: 12px;

  background:
    #091526;
}

.evacuation-step-accent {
  position: absolute;

  top: 0;
  bottom: 0;
  left: 0;

  width: 3px;

  z-index: 2;
}

.evacuation-step-wrapper.is-rehandle
  .evacuation-step-accent {
  background: #0ea5e9;

  box-shadow:
    0 0 16px
    rgba(
      14,
      165,
      233,
      0.5
    );
}

.evacuation-step-wrapper.is-exit
  .evacuation-step-accent {
  background: #22c55e;

  box-shadow:
    0 0 16px
    rgba(
      34,
      197,
      94,
      0.45
    );
}


/* =========================================
   ACTION FOOTER
========================================= */

.evacuation-step-action {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding:
    14px
    16px;

  border-top:
    1px solid
    #1d2d44;

  background:
    rgba(
      7,
      17,
      31,
      0.72
    );
}

.evacuation-step-action-copy {
  display: flex;
  flex-direction: column;

  gap: 2px;
}

.evacuation-step-action-copy
  > span {
  font-size: 9px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing:
    0.1em;

  color: #64748b;
}

.evacuation-step-action-copy
  > strong {
  font-size: 13px;

  color: #f8fafc;
}

.evacuation-step-action-copy
  > small {
  margin-top: 2px;

  font-size: 10px;

  color: #71829b;
}


/* =========================================
   ACTION BUTTON
========================================= */

.evacuation-operation-action-button {
  min-width: 170px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 16px;

  padding:
    11px
    13px
    11px
    16px;

  border-radius: 9px;

  border: 1px solid transparent;

  font-size: 12px;

  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.evacuation-operation-action-button:hover {
  transform:
    translateY(-1px);
}

.evacuation-operation-action-button:active {
  transform:
    translateY(0);
}

.evacuation-operation-action-button:disabled {
  opacity: 0.55;

  cursor: not-allowed;

  transform: none;
}

.evacuation-operation-action-arrow {
  display: grid;
  place-items: center;

  width: 24px;
  height: 24px;

  border-radius: 6px;

  background:
    rgba(
      255,
      255,
      255,
      0.1
    );
}


/* =========================================
   REHANDLE BUTTON
========================================= */

.evacuation-operation-action-button.is-rehandle {
  color: #e0f2fe;

  background:
    rgba(
      14,
      165,
      233,
      0.14
    );

  border-color:
    rgba(
      56,
      189,
      248,
      0.42
    );
}

.evacuation-operation-action-button.is-rehandle:hover {
  background:
    rgba(
      14,
      165,
      233,
      0.22
    );

  border-color:
    #38bdf8;

  box-shadow:
    0 8px 24px
    rgba(
      14,
      165,
      233,
      0.12
    );
}


/* =========================================
   EXIT BUTTON
========================================= */

.evacuation-operation-action-button.is-exit {
  color: #dcfce7;

  background:
    rgba(
      34,
      197,
      94,
      0.13
    );

  border-color:
    rgba(
      74,
      222,
      128,
      0.42
    );
}

.evacuation-operation-action-button.is-exit:hover {
  background:
    rgba(
      34,
      197,
      94,
      0.21
    );

  border-color:
    #4ade80;

  box-shadow:
    0 8px 24px
    rgba(
      34,
      197,
      94,
      0.12
    );
}


/* =========================================
   RESPONSIVE
========================================= */

@media (
  max-width:
    760px
) {
  .evacuation-step-action {
    flex-direction: column;

    align-items: stretch;
  }

  .evacuation-operation-action-button {
    width: 100%;
  }
}.gate-page {
  display: flex;
  flex-direction: column;
  gap: 18px;

  width: 96%;
  margin: 24px auto 40px;
}

.gate-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.gate-header > div:first-child > span,
.gate-section-heading span,
.gate-container-title > div > span,
.gate-action-card > span,
.gate-return-header span {
  color: #38bdf8;

  font-size: 9px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 0.1em;
}

.gate-header h1 {
  margin: 4px 0 5px;

  color: #f8fafc;

  font-size: 28px;
}

.gate-header p {
  margin: 0;

  color: #64748b;

  font-size: 12px;
}

.gate-counter {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

.gate-counter span {
  color: #64748b;

  font-size: 9px;

  text-transform: uppercase;
}

.gate-counter strong {
  color: #fbbf24;

  font-size: 20px;
}

.gate-search-card {
  display: flex;
  gap: 8px;

  padding: 12px;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

.gate-search-card input {
  flex: 1;

  padding: 10px 12px;

  border: 1px solid #263449;
  border-radius: 8px;

  outline: 0;

  background: #0b1220;

  color: #f8fafc;
}

.gate-search-card button {
  padding: 0 18px;

  border: 0;
  border-radius: 8px;

  background: #2563eb;

  color: white;

  font-weight: 700;

  cursor: pointer;
}

.gate-layout {
  display: grid;

  grid-template-columns:
    270px
    minmax(
      0,
      1fr
    );

  gap: 14px;
}

.gate-queue {
  align-self: start;

  overflow: hidden;

  border: 1px solid #1e293b;
  border-radius: 10px;

  background: #0f172a;
}

.gate-section-heading {
  padding: 15px;

  border-bottom: 1px solid #1e293b;
}

.gate-section-heading h2 {
  margin: 3px 0 0;

  color: #f8fafc;

  font-size: 14px;
}

.gate-queue-item {
  display: grid;
  align-items: center;

  grid-template-columns:
    7px
    1fr
    20px;

  gap: 10px;

  width: 100%;

  padding: 11px 12px;

  border: 0;
  border-top: 1px solid #172136;

  background: transparent;

  text-align: left;

  cursor: pointer;
}

.gate-queue-item:hover {
  background: #111c30;
}

.gate-line-color {
  width: 7px;
  height: 32px;

  border-radius: 999px;
}

.gate-queue-item > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gate-queue-item strong {
  color: #f8fafc;

  font-size: 11px;
}

.gate-queue-item span {
  color: #64748b;

  font-size: 8px;
}

.gate-empty-small {
  padding: 25px 15px;

  color: #64748b;

  font-size: 10px;

  text-align: center;
}

.gate-detail {
  display: flex;
  flex-direction: column;
  gap: 14px;

  min-width: 0;
}

.gate-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  min-height: 420px;

  border: 1px dashed #263449;
  border-radius: 10px;

  color: #64748b;

  text-align: center;
}

.gate-empty > div {
  color: #22c55e;

  font-size: 42px;
}

.gate-empty h2,
.gate-empty h3 {
  margin: 12px 0 5px;

  color: #cbd5e1;
}

.gate-empty p {
  margin: 0;

  color: #64748b;

  font-size: 10px;
}

.gate-container-card,
.gate-action-card,
.gate-return-section {
  padding: 18px;

  border: 1px solid #1e293b;
  border-radius: 11px;

  background: #0f172a;
}

.gate-container-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gate-container-color {
  width: 10px;
  height: 55px;

  border-radius: 999px;
}

.gate-container-title h2 {
  margin: 2px 0;

  color: #f8fafc;

  font-size: 21px;
}

.gate-container-title p {
  margin: 0;

  color: #64748b;

  font-size: 10px;
}

.gate-info-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      1fr
    );

  gap: 8px;

  margin-top: 16px;
}

.gate-info {
  padding: 10px;

  border: 1px solid #1e293b;
  border-radius: 8px;

  background: #0b1220;
}

.gate-info span {
  display: block;

  color: #64748b;

  font-size: 8px;

  text-transform: uppercase;
}

.gate-info strong {
  display: block;

  margin-top: 4px;

  color: #e2e8f0;

  font-size: 10px;
}

.gate-actions-layout {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 12px;
}

.gate-action-card h3 {
  margin: 4px 0 13px;

  color: #f8fafc;

  font-size: 15px;
}

.gate-action-card.confirm {
  border-color: #14532d;
}

.gate-action-card.reject {
  border-color: #7f1d1d;
}

.gate-form-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 7px;
}

.gate-action-card input,
.gate-action-card textarea,
.gate-return-sidebar select {
  box-sizing: border-box;

  width: 100%;

  padding: 9px 10px;

  border: 1px solid #263449;
  border-radius: 7px;

  outline: 0;

  background: #0b1220;

  color: #f8fafc;

  font-size: 10px;
}

.gate-action-card textarea {
  min-height: 75px;

  margin-top: 7px;

  resize: vertical;
}

.gate-action-card button {
  width: 100%;

  margin-top: 8px;

  padding: 10px;

  border: 0;
  border-radius: 8px;

  color: white;

  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
}

.gate-action-card.confirm button {
  background: #15803d;
}

.gate-action-card.reject button {
  background: #b91c1c;
}

.gate-return-header h2 {
  margin: 3px 0;

  color: #f8fafc;

  font-size: 18px;
}

.gate-return-header p {
  margin: 0;

  color: #64748b;

  font-size: 10px;
}

.gate-return-layout {
  display: grid;

  grid-template-columns:
    250px
    minmax(
      0,
      1fr
    );

  gap: 12px;

  margin-top: 15px;
}

.gate-return-sidebar {
  padding: 12px;

  border: 1px solid #1e293b;
  border-radius: 8px;

  background: #0b1220;
}

.gate-return-sidebar label {
  display: flex;
  flex-direction: column;
  gap: 5px;

  margin-bottom: 10px;
}

.gate-return-sidebar label > span {
  color: #94a3b8;

  font-size: 9px;
}

.gate-bay-list {
  display: flex;
  flex-direction: column;
  gap: 6px;

  max-height: 370px;

  overflow-y: auto;
}

.gate-bay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 9px;

  border: 1px solid #1e293b;
  border-radius: 7px;

  background: #0f172a;

  color: #cbd5e1;

  text-align: left;

  cursor: pointer;
}

.gate-bay-option.active {
  border-color: #2563eb;

  background:
    rgba(
      37,
      99,
      235,
      0.13
    );
}

.gate-bay-option > div {
  display: flex;
  flex-direction: column;
}

.gate-bay-option strong {
  font-size: 10px;
}

.gate-bay-option span {
  color: #64748b;

  font-size: 8px;
}

.gate-selected-position {
  margin-top: 12px;

  padding: 11px;

  border: 1px solid #14532d;
  border-radius: 8px;

  background:
    rgba(
      34,
      197,
      94,
      0.06
    );
}

.gate-selected-position > span {
  display: block;

  color: #64748b;

  font-size: 8px;

  text-transform: uppercase;
}

.gate-selected-position strong {
  display: block;

  margin: 4px 0 10px;

  color: #4ade80;

  font-size: 11px;
}

.gate-selected-position button {
  width: 100%;

  padding: 9px;

  border: 0;
  border-radius: 7px;

  background: #15803d;

  color: white;

  font-size: 10px;
  font-weight: 700;

  cursor: pointer;
}

.gate-return-scene {
  overflow: hidden;

  min-height: 550px;

  border: 1px solid #1e293b;
  border-radius: 8px;

  background: #050b16;
}

.gate-return-scene canvas {
  min-height: 550px;
}

@media (
  max-width: 1050px
) {
  .gate-layout {
    grid-template-columns:
      1fr;
  }

  .gate-actions-layout,
  .gate-return-layout {
    grid-template-columns:
      1fr;
  }

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


.gate-exit-eir-card {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    margin-bottom:12px;
    padding:14px 16px;

    border:1px solid rgba(14,165,233,.28);
    border-radius:9px;

    background:rgba(14,165,233,.035);
}

.gate-exit-eir-card > div {
    min-width:0;
}

.gate-exit-eir-card span {
    display:block;

    margin-bottom:3px;

    color:#38bdf8;

    font-size:9px;
    font-weight:700;

    text-transform:uppercase;
    letter-spacing:.1em;
}

.gate-exit-eir-card strong {
    display:block;

    color:#e2e8f0;

    font-size:13px;
    font-weight:700;
}

.gate-exit-eir-card p {
    margin:4px 0 0;

    color:#94a3b8;

    font-size:10px;
    line-height:1.5;
}

.gate-exit-eir-card button {
    flex:none;

    min-height:34px;

    padding:0 14px;

    border:1px solid rgba(14,165,233,.45);
    border-radius:7px;

    background:rgba(14,165,233,.07);

    color:#7dd3fc;

    font-size:10px;
    font-weight:700;

    cursor:pointer;

    transition:
        background .15s ease,
        border-color .15s ease;
}

.gate-exit-eir-card button:hover:not(:disabled) {
    border-color:#0ea5e9;
    background:rgba(14,165,233,.12);
}

.gate-exit-eir-card button:disabled {
    opacity:.5;
    cursor:not-allowed;
}.gate-history-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.gate-history-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 17px 18px;

    border: 1px solid #1e293b;
    border-radius: 10px;

    background: #0f172a;
}

.gate-history-header > div:first-child > span {
    color: #38bdf8;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.gate-history-header h2 {
    margin: 4px 0 4px;

    color: #f8fafc;

    font-size: 17px;
}

.gate-history-header p {
    margin: 0;

    color: #64748b;

    font-size: 10px;
}

.gate-history-total {
    flex: 0 0 auto;

    min-width: 88px;
    padding: 9px 12px;

    border: 1px solid #1e293b;
    border-radius: 8px;

    background: #0b1220;

    text-align: right;
}

.gate-history-total span {
    display: block;

    color: #64748b;

    font-size: 8px;

    text-transform: uppercase;
}

.gate-history-total strong {
    display: block;

    margin-top: 2px;

    color: #7dd3fc;

    font-size: 18px;
}

.gate-history-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 11px;

    border: 1px solid #1e293b;
    border-radius: 10px;

    background: #0f172a;
}

.gate-history-search {
    display: flex;
    gap: 7px;
    flex: 1;
    min-width: 0;
}

.gate-history-search input {
    flex: 1;
    min-width: 0;

    padding: 9px 11px;

    border: 1px solid #263449;
    border-radius: 7px;

    outline: none;

    background: #0b1220;
    color: #f8fafc;

    font-size: 10px;
}

.gate-history-search button,
.gate-history-filters button,
.gate-history-pagination button {
    min-height: 32px;
    padding: 0 12px;

    border: 1px solid #263449;
    border-radius: 7px;

    background: #0b1220;
    color: #cbd5e1;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.gate-history-search button {
    border-color: rgba(14, 165, 233, .45);
    background: rgba(14, 165, 233, .08);
    color: #7dd3fc;
}

.gate-history-filters {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gate-history-filters button.active {
    border-color: rgba(14, 165, 233, .55);
    background: rgba(14, 165, 233, .1);
    color: #7dd3fc;
}

.gate-history-filters button.clear {
    border-color: rgba(148, 163, 184, .22);
    color: #94a3b8;
}

.gate-history-table-card {
    overflow: hidden;

    border: 1px solid #1e293b;
    border-radius: 10px;

    background: #0f172a;
}

.gate-history-table-scroll {
    overflow-x: auto;
}

.gate-history-table {
    width: 100%;
    min-width: 1250px;

    border-collapse: collapse;
}

.gate-history-table th {
    padding: 10px 11px;

    border-bottom: 1px solid #1e293b;

    background: #0b1220;
    color: #64748b;

    font-size: 8px;
    font-weight: 700;

    text-align: left;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.gate-history-table td {
    padding: 11px;

    border-bottom: 1px solid #172136;

    color: #cbd5e1;

    font-size: 9px;

    vertical-align: middle;
}

.gate-history-table tbody tr:hover {
    background: rgba(30, 41, 59, .28);
}

.gate-history-table td > strong {
    display: block;

    color: #e2e8f0;

    font-size: 9px;
    font-weight: 650;
}

.gate-history-table td > small {
    display: block;

    max-width: 190px;
    margin-top: 3px;

    overflow: hidden;

    color: #64748b;

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.gate-history-date {
    white-space: nowrap;
}

.gate-history-container {
    display: flex;
    align-items: center;
    gap: 7px;
}

.gate-history-container > span {
    width: 5px;
    height: 27px;

    border-radius: 999px;
}

.gate-history-container strong {
    color: #f8fafc;

    font-size: 10px;
}

.gate-history-badge {
    display: inline-flex;
    align-items: center;

    min-height: 20px;
    padding: 0 7px;

    border: 1px solid #334155;
    border-radius: 999px;

    background: #0b1220;

    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;
}

.gate-history-badge.manual {
    border-color: rgba(56, 189, 248, .28);
    background: rgba(56, 189, 248, .055);
    color: #7dd3fc;
}

.gate-history-badge.evacuation {
    border-color: rgba(245, 158, 11, .3);
    background: rgba(245, 158, 11, .055);
    color: #fbbf24;
}

.gate-history-badge.eir {
    border-color: rgba(34, 197, 94, .3);
    background: rgba(34, 197, 94, .055);
    color: #86efac;
}

.gate-history-muted {
    color: #475569;

    font-size: 8px;
}

.gate-history-empty-cell {
    padding: 36px !important;

    color: #64748b !important;

    text-align: center;
}

.gate-history-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 10px 12px;

    border-top: 1px solid #1e293b;
}

.gate-history-pagination > span {
    color: #64748b;

    font-size: 9px;
}

.gate-history-pagination > div {
    display: flex;
    gap: 6px;
}

.gate-history-pagination button:disabled,
.gate-history-search button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .gate-history-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .gate-history-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 650px) {
    .gate-history-header {
        flex-direction: column;
    }

    .gate-history-total {
        width: 100%;
        box-sizing: border-box;
        text-align: left;
    }

    .gate-history-search {
        flex-direction: column;
    }
}



/* =====================================================
   HISTORIAL · FILTROS AVANZADOS
===================================================== */

.gate-history-toolbar-refined {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;

    padding: 12px;
}

.gate-history-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(320px, 1.6fr)
        minmax(210px, .8fr)
        minmax(290px, auto);
    gap: 10px;
    align-items: end;
}

.gate-history-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.gate-history-field > span {
    color: #64748b;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.gate-history-field input,
.gate-history-field select {
    box-sizing: border-box;

    width: 100%;
    min-width: 0;
    min-height: 36px;

    padding: 0 11px;

    border: 1px solid #263449;
    border-radius: 7px;

    outline: none;

    background: #0b1220;
    color: #e2e8f0;

    font-family: inherit;
    font-size: 9px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.gate-history-field input:focus,
.gate-history-field select:focus {
    border-color: rgba(56, 189, 248, .62);
    box-shadow:
        0 0 0 3px
        rgba(56, 189, 248, .06);
}

.gate-history-field input[type="date"] {
    color-scheme: dark;
}

.gate-history-exit-type-field .gate-history-filters {
    min-height: 36px;
}

.gate-history-exit-type-field .gate-history-filters button {
    flex: 1;
    min-height: 36px;
}

.gate-history-filter-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;

    padding-top: 10px;

    border-top: 1px solid rgba(148, 163, 184, .08);
}

.gate-history-date-range {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    min-width: 0;
}

.gate-history-date-copy {
    display: flex;
    align-items: center;
    gap: 9px;

    min-width: 178px;
    padding-bottom: 2px;
}

.gate-history-date-icon {
    display: grid;
    place-items: center;

    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 8px;

    background: rgba(56, 189, 248, .06);
    color: #38bdf8;

    font-size: 11px;
}

.gate-history-date-copy > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gate-history-date-copy strong {
    color: #cbd5e1;
    font-size: 9px;
}

.gate-history-date-copy small {
    color: #475569;
    font-size: 8px;
    white-space: nowrap;
}

.gate-history-date-fields {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.gate-history-date-field {
    width: 165px;
}

.gate-history-date-arrow {
    display: grid;
    place-items: center;
    height: 36px;

    color: #475569;
    font-size: 11px;
}

.gate-history-filter-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.gate-history-apply-button,
.gate-history-clear-button {
    min-height: 36px;
    padding: 0 13px;

    border-radius: 7px;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.gate-history-apply-button {
    border: 1px solid rgba(14, 165, 233, .48);
    background: rgba(14, 165, 233, .09);
    color: #7dd3fc;
}

.gate-history-apply-button:hover:not(:disabled) {
    background: rgba(14, 165, 233, .14);
}

.gate-history-clear-button {
    border: 1px solid #263449;
    background: #0b1220;
    color: #94a3b8;
}

.gate-history-clear-button:hover:not(:disabled) {
    border-color: #334155;
    color: #cbd5e1;
}

.gate-history-apply-button:disabled,
.gate-history-clear-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

@media (max-width: 1050px) {
    .gate-history-filter-grid {
        grid-template-columns:
            minmax(260px, 1fr)
            minmax(190px, .7fr);
    }

    .gate-history-exit-type-field {
        grid-column:
            1 /
            -1;
    }

    .gate-history-filter-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .gate-history-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .gate-history-filter-grid {
        grid-template-columns:
            1fr;
    }

    .gate-history-date-range {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .gate-history-date-copy {
        min-width: 0;
    }

    .gate-history-date-fields {
        width: 100%;
    }

    .gate-history-date-field {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 520px) {
    .gate-history-date-fields {
        align-items: stretch;
        flex-direction: column;
    }

    .gate-history-date-arrow {
        height: auto;
        transform: rotate(90deg);
    }

    .gate-history-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gate-history-apply-button,
    .gate-history-clear-button {
        width: 100%;
    }
}
.gate-manual-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0
}

.gate-manual-tabs>button {
    min-height: 72px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    border: 1px solid #1e293b;
    border-radius: 9px;
    background: #0b1323;
    color: #cbd5e1;
    cursor: pointer;
    text-align: left;
    transition: border-color .16s ease, background .16s ease, transform .16s ease
}

.gate-manual-tabs>button:hover {
    border-color: #334155;
    transform: translateY(-1px)
}

.gate-manual-tabs>button.active {
    border-color: rgba(14, 165, 233, .65);
    background: rgba(14, 165, 233, .08)
}

.gate-manual-tabs>button span {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #64748b
}

.gate-manual-tabs>button strong {
    font-size: 13px;
    color: #e2e8f0
}

.gate-manual-tabs>button.active strong {
    color: #7dd3fc
}

.gate-manual-tabs>button small {
    font-size: 10px;
    color: #94a3b8
}

.gate-manual-view {
    min-width: 0
}

.gate-manual-search {
    margin-bottom: 14px
}

.gate-manual-empty {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    background: #07101f;
    text-align: center
}

.gate-manual-empty>div {
    font-size: 30px;
    color: #38bdf8
}

.gate-manual-empty h2 {
    margin: 0;
    font-size: 16px;
    color: #e2e8f0
}

.gate-manual-empty p {
    max-width: 540px;
    margin: 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6
}

.gate-manual-workflow {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.gate-manual-target {
    padding: 16px;
    border: 1px solid #1e293b;
    border-radius: 10px;
    background: #07101f
}

.gate-manual-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px
}

.gate-manual-ready {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px;
    border: 1px solid rgba(34, 197, 94, .35);
    border-radius: 10px;
    background: rgba(34, 197, 94, .055)
}

.gate-manual-ready>div {
    display: flex;
    align-items: center;
    gap: 12px
}

.gate-manual-ready-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(34, 197, 94, .4);
    border-radius: 50%;
    color: #86efac;
    background: rgba(34, 197, 94, .08)
}

.gate-manual-ready strong {
    display: block;
    margin-bottom: 3px;
    color: #dcfce7;
    font-size: 13px
}

.gate-manual-ready p {
    margin: 0;
    color: #94a3b8;
    font-size: 10px
}

.gate-manual-ready button {
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(34, 197, 94, .55);
    border-radius: 7px;
    background: rgba(34, 197, 94, .08);
    color: #86efac;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer
}

.gate-manual-blockers {
    border: 1px solid rgba(245, 158, 11, .28);
    border-radius: 10px;
    background: rgba(245, 158, 11, .035);
    overflow: hidden
}

.gate-manual-blockers>header {
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(245, 158, 11, .18)
}

.gate-manual-blockers header span {
    display: block;
    margin-bottom: 2px;
    color: #f59e0b;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em
}

.gate-manual-blockers header h3 {
    margin: 0;
    color: #e2e8f0;
    font-size: 13px
}

.gate-manual-blockers header>strong {
    min-width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: 8px;
    color: #fbbf24;
    background: rgba(245, 158, 11, .08)
}

.gate-manual-blocker-list {
    display: grid;
    gap: 1px
}

.gate-manual-blocker {
    min-height: 48px;
    padding: 9px 14px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    background: #08111f
}

.gate-manual-blocker.active {
    background: rgba(14, 165, 233, .06)
}

.gate-manual-blocker>span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 9px
}

.gate-manual-blocker strong {
    display: block;
    color: #e2e8f0;
    font-size: 11px
}

.gate-manual-blocker small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 9px
}

.gate-manual-blocker em {
    font-style: normal;
    color: #64748b;
    font-size: 9px
}

.gate-manual-blocker.active em {
    color: #7dd3fc
}

.gate-manual-map,
.gate-manual-final {
    margin-top: 0
}

@media(max-width:820px) {

    .gate-manual-tabs,
    .gate-manual-summary-grid {
        grid-template-columns: 1fr
    }

    .gate-manual-ready {
        align-items: flex-start;
        flex-direction: column
    }
}

/* =====================================================
   EIR DE SALIDA OPCIONAL
===================================================== */

.gate-exit-eir-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-bottom: 14px;
    padding: 14px 16px;

    border: 1px solid rgba(14, 165, 233, .28);
    border-radius: 9px;

    background: rgba(14, 165, 233, .035);
}

.gate-exit-eir-copy {
    min-width: 0;
}

.gate-exit-eir-copy>span {
    display: block;

    margin-bottom: 3px;

    color: #38bdf8;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .1em;
}

.gate-exit-eir-copy>strong {
    display: block;

    color: #e2e8f0;

    font-size: 13px;
    font-weight: 700;
}

.gate-exit-eir-copy>p {
    max-width: 620px;

    margin: 4px 0 0;

    color: #94a3b8;

    font-size: 10px;
    line-height: 1.5;
}

.gate-exit-eir-actions {
    flex: none;

    display: flex;
    align-items: center;
    gap: 8px;
}

.gate-exit-eir-actions button {
    min-height: 34px;

    padding: 0 13px;

    border-radius: 7px;

    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.gate-exit-eir-button {
    border: 1px solid rgba(14, 165, 233, .5);
    background: rgba(14, 165, 233, .08);
    color: #7dd3fc;
}

.gate-exit-eir-button:hover:not(:disabled) {
    border-color: #0ea5e9;
    background: rgba(14, 165, 233, .13);
}

.gate-exit-without-eir-button {
    border: 1px solid rgba(34, 197, 94, .4);
    background: rgba(34, 197, 94, .06);
    color: #86efac;
}

.gate-exit-without-eir-button:hover:not(:disabled) {
    border-color: rgba(34, 197, 94, .7);
    background: rgba(34, 197, 94, .11);
}

.gate-exit-eir-actions button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 820px) {
    .gate-exit-eir-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .gate-exit-eir-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}



/* =====================================================
   AJUSTE UI · GARITA OUTBOUND SIN DUPLICAR FLUJOS
===================================================== */

.gate-exit-eir-card-refined {
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border-color: rgba(14, 165, 233, 0.24);
    background: linear-gradient(90deg,
            rgba(14, 165, 233, 0.06) 0%,
            rgba(14, 165, 233, 0.02) 100%);
}

.gate-exit-eir-actions-single {
    flex-shrink: 0;
}

.gate-confirm-card-refined,
.gate-reject-card-refined {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gate-action-helper {
    margin: -2px 0 2px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.55;
}

.gate-confirm-card-refined .gate-form-grid {
    margin-top: 2px;
}

.gate-confirm-card-refined button,
.gate-reject-card-refined button {
    margin-top: auto;
}

@media (max-width: 820px) {
    .gate-exit-eir-card-refined {
        align-items: flex-start;
    }

    .gate-exit-eir-actions-single {
        width: 100%;
    }

    .gate-exit-eir-actions-single .gate-exit-eir-button {
        width: 100%;
    }
}



/* =====================================================
   EIR DE SALIDA · ESTADO COMPLETADO
===================================================== */

.gate-exit-eir-completed {
    justify-content: flex-start;
    border-color: rgba(34, 197, 94, 0.34);
    background: linear-gradient(90deg,
            rgba(34, 197, 94, 0.075) 0%,
            rgba(34, 197, 94, 0.025) 100%);
}

.gate-exit-eir-completed-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(34, 197, 94, 0.42);
    border-radius: 9px;

    background: rgba(34, 197, 94, 0.08);
    color: #86efac;

    font-size: 15px;
    font-weight: 800;
}

.gate-exit-eir-completed .gate-exit-eir-copy {
    flex: 1;
}

.gate-exit-eir-completed .gate-exit-eir-copy>span {
    color: #4ade80;
}

.gate-exit-eir-status {
    flex: 0 0 auto;

    min-width: 104px;
    padding: 8px 10px;

    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 7px;

    background: rgba(34, 197, 94, 0.04);

    text-align: right;
}

.gate-exit-eir-status span {
    display: block;

    color: #64748b;

    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.gate-exit-eir-status strong {
    display: block;

    margin-top: 2px;

    color: #86efac;

    font-size: 9px;
    letter-spacing: 0.04em;
}

@media (max-width: 820px) {
    .gate-exit-eir-completed {
        align-items: flex-start;
    }

    .gate-exit-eir-status {
        width: 100%;
        text-align: left;
    }
}/* =========================================================
   STORAGE RATES PAGE
========================================================= */

.storage-rates-page {
    min-height: 100%;
    padding: 24px;

    color: #e2e8f0;
}

/* =========================================================
   HEADER
========================================================= */

.storage-rates-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;
}

.storage-rates-header>div {
    min-width: 0;
}

.storage-rates-eyebrow {
    display: inline-block;

    margin-bottom: 6px;

    color: #38bdf8;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.storage-rates-header h1 {
    margin: 0;

    color: #f8fafc;

    font-size: 28px;
    font-weight: 800;

    letter-spacing: -0.03em;
}

.storage-rates-header p {
    max-width: 720px;

    margin: 7px 0 0;

    color: #94a3b8;

    font-size: 13px;
    line-height: 1.6;
}

.storage-rates-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 38px;

    padding: 0 16px;

    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 8px;

    background: rgba(14, 165, 233, 0.1);

    color: #7dd3fc;

    cursor: pointer;

    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.storage-rates-create-button>span {
    font-size: 16px;
    line-height: 1;
}

.storage-rates-create-button:hover {
    border-color: rgba(56, 189, 248, 0.45);

    background: rgba(14, 165, 233, 0.16);

    transform: translateY(-1px);
}

/* =========================================================
   SUMMARY
========================================================= */

.storage-rates-summary {
    display: grid;

    grid-template-columns:
        repeat(4,
            minmax(0,
                1fr));

    gap: 12px;

    margin-bottom: 18px;
}

.storage-rates-summary-card {
    min-width: 0;

    padding: 16px;

    border: 1px solid rgba(71, 85, 105, 0.18);
    border-radius: 10px;

    background:
        linear-gradient(145deg,
            rgba(15, 23, 42, 0.9),
            rgba(15, 23, 42, 0.68));

    box-shadow:
        0 10px 24px rgba(2, 6, 23, 0.16);
}

.storage-rates-summary-card>span {
    display: block;

    margin-bottom: 8px;

    color: #64748b;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.storage-rates-summary-card>strong {
    display: block;

    color: #f8fafc;

    font-size: 24px;
    font-weight: 800;

    line-height: 1;
}

.storage-rates-summary-card>small {
    display: block;

    margin-top: 8px;

    color: #94a3b8;

    font-size: 8px;
}

/* =========================================================
   TOOLBAR
========================================================= */

.storage-rates-toolbar {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 14px;
}

.storage-rates-search {
    min-width: 240px;
    flex: 1;

    display: flex;
    align-items: center;

    gap: 8px;

    min-height: 38px;

    padding: 0 12px;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 8px;

    background: rgba(15, 23, 42, 0.7);
}

.storage-rates-search>span {
    color: #64748b;

    font-size: 13px;
}

.storage-rates-search input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #e2e8f0;

    font-size: 10px;
}

.storage-rates-search input::placeholder {
    color: #475569;
}

.storage-rates-toolbar>select {
    min-height: 38px;

    padding: 0 30px 0 11px;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 8px;

    background: #0f172a;

    color: #cbd5e1;

    outline: none;

    font-size: 9px;
    font-weight: 700;
}

.storage-rates-refresh-button {
    min-height: 38px;

    padding: 0 12px;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 8px;

    background: rgba(30, 41, 59, 0.5);

    color: #cbd5e1;

    cursor: pointer;

    font-size: 9px;
    font-weight: 700;
}

.storage-rates-refresh-button:hover:not(:disabled) {
    border-color: rgba(100, 116, 139, 0.42);

    background: rgba(30, 41, 59, 0.78);
}

.storage-rates-refresh-button:disabled {
    cursor: not-allowed;

    opacity: 0.5;
}

/* =========================================================
   MAIN CARD
========================================================= */

.storage-rates-card {
    overflow: hidden;

    border: 1px solid rgba(71, 85, 105, 0.18);
    border-radius: 10px;

    background: rgba(15, 23, 42, 0.72);

    box-shadow:
        0 12px 28px rgba(2, 6, 23, 0.16);
}

/* =========================================================
   LOADING
========================================================= */

.storage-rates-loading {
    min-height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 12px;

    color: #94a3b8;
}

.storage-rates-loading>strong {
    font-size: 10px;
}

.storage-rates-spinner {
    width: 22px;
    height: 22px;

    border: 2px solid rgba(100, 116, 139, 0.25);
    border-top-color: #38bdf8;
    border-radius: 50%;

    animation:
        storage-rates-spin 0.7s linear infinite;
}

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

/* =========================================================
   EMPTY
========================================================= */

.storage-rates-empty,
.storage-rates-empty-terminal {
    min-height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 8px;

    padding: 30px;

    text-align: center;
}

.storage-rates-empty>span {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 50%;

    background: rgba(30, 41, 59, 0.56);

    color: #64748b;

    font-size: 15px;
    font-weight: 800;
}

.storage-rates-empty strong,
.storage-rates-empty-terminal strong {
    color: #cbd5e1;

    font-size: 12px;
}

.storage-rates-empty p,
.storage-rates-empty-terminal p {
    max-width: 420px;

    margin: 0;

    color: #64748b;

    font-size: 9px;
    line-height: 1.5;
}

/* =========================================================
   TABLE
========================================================= */

.storage-rates-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.storage-rates-table {
    width: 100%;
    min-width: 1250px;

    border-collapse: collapse;
}

.storage-rates-table thead {
    background: rgba(15, 23, 42, 0.95);
}

.storage-rates-table th {
    padding: 11px 12px;

    border-bottom: 1px solid rgba(71, 85, 105, 0.18);

    color: #64748b;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.06em;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.storage-rates-table td {
    padding: 12px;

    border-bottom: 1px solid rgba(71, 85, 105, 0.1);

    color: #cbd5e1;

    font-size: 9px;

    vertical-align: middle;
}

.storage-rates-table tbody tr {
    transition:
        background 0.15s ease;
}

.storage-rates-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.38);
}

.storage-rates-table tbody tr:last-child td {
    border-bottom: 0;
}

.storage-rate-id {
    color: #94a3b8;

    font-size: 8px;
}

/* =========================================================
   RULE VALUES
========================================================= */

.storage-rate-rule {
    display: inline-flex;
    align-items: center;

    min-height: 23px;

    padding: 0 8px;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 800;

    white-space: nowrap;
}

.storage-rate-rule.generic {
    border: 1px solid rgba(100, 116, 139, 0.16);

    background: rgba(100, 116, 139, 0.08);

    color: #94a3b8;
}

.storage-rate-rule.specific {
    border: 1px solid rgba(14, 165, 233, 0.18);

    background: rgba(14, 165, 233, 0.08);

    color: #7dd3fc;
}

/* =========================================================
   FREE DAYS
========================================================= */

.storage-rate-free-days {
    display: flex;
    align-items: baseline;

    gap: 4px;
}

.storage-rate-free-days>strong {
    color: #f8fafc;

    font-size: 10px;
}

.storage-rate-free-days>span {
    color: #64748b;

    font-size: 7px;
}

/* =========================================================
   PRICE
========================================================= */

.storage-rate-price {
    color: #4ade80;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

/* =========================================================
   VALIDITY
========================================================= */

.storage-rate-validity {
    display: flex;
    align-items: center;

    gap: 5px;

    white-space: nowrap;
}

.storage-rate-validity>strong {
    color: #cbd5e1;

    font-size: 7px;
    font-weight: 700;
}

.storage-rate-validity>span {
    color: #475569;

    font-size: 8px;
}

/* =========================================================
   STATUS
========================================================= */

.storage-rate-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 23px;

    padding: 0 8px;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 800;
}

.storage-rate-status>span {
    width: 5px;
    height: 5px;

    border-radius: 50%;
}

.storage-rate-status.active {
    border: 1px solid rgba(34, 197, 94, 0.18);

    background: rgba(34, 197, 94, 0.08);

    color: #4ade80;
}

.storage-rate-status.active>span {
    background: #22c55e;
}

.storage-rate-status.inactive {
    border: 1px solid rgba(100, 116, 139, 0.16);

    background: rgba(100, 116, 139, 0.07);

    color: #94a3b8;
}

.storage-rate-status.inactive>span {
    background: #64748b;
}

/* =========================================================
   ACTIONS
========================================================= */

.storage-rate-actions {
    display: flex;
    align-items: center;

    gap: 6px;
}

.storage-rate-actions button {
    min-height: 27px;

    padding: 0 9px;

    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 6px;

    background: rgba(30, 41, 59, 0.52);

    color: #cbd5e1;

    cursor: pointer;

    font-size: 7px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.storage-rate-actions button:hover {
    border-color: rgba(100, 116, 139, 0.38);

    background: rgba(30, 41, 59, 0.8);
}

.storage-rate-actions button.danger {
    border-color: rgba(244, 63, 94, 0.15);

    background: rgba(244, 63, 94, 0.06);

    color: #fb7185;
}

.storage-rate-actions button.activate {
    border-color: rgba(34, 197, 94, 0.16);

    background: rgba(34, 197, 94, 0.06);

    color: #4ade80;
}

/* =========================================================
   MODAL BACKDROP
========================================================= */

.storage-rate-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(2, 6, 23, 0.78);

    backdrop-filter: blur(5px);
}

/* =========================================================
   MODAL
========================================================= */

.storage-rate-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border: 1px solid rgba(71, 85, 105, 0.25);
    border-radius: 12px;

    background: #0f172a;

    box-shadow:
        0 30px 70px rgba(2, 6, 23, 0.5);
}

/* =========================================================
   MODAL HEADER
========================================================= */

.storage-rate-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 20px;

    border-bottom: 1px solid rgba(71, 85, 105, 0.16);

    background:
        linear-gradient(145deg,
            rgba(15, 23, 42, 1),
            rgba(30, 41, 59, 0.72));
}

.storage-rate-modal-header>div {
    min-width: 0;
}

.storage-rate-modal-header>div>span {
    display: inline-block;

    margin-bottom: 5px;

    color: #38bdf8;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.storage-rate-modal-header h2 {
    margin: 0;

    color: #f8fafc;

    font-size: 18px;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.storage-rate-modal-header p {
    margin: 6px 0 0;

    color: #64748b;

    font-size: 9px;
}

.storage-rate-modal-close {
    width: 30px;
    height: 30px;

    flex: 0 0 auto;

    border: 1px solid rgba(71, 85, 105, 0.2);
    border-radius: 7px;

    background: rgba(30, 41, 59, 0.42);

    color: #94a3b8;

    cursor: pointer;

    font-size: 18px;
    line-height: 1;
}

.storage-rate-modal-close:hover {
    background: rgba(51, 65, 85, 0.68);

    color: #f8fafc;
}

/* =========================================================
   MODAL CONTENT
========================================================= */

.storage-rate-modal-content {
    overflow-y: auto;

    padding: 18px 20px;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(100, 116, 139, 0.35) transparent;
}

/* =========================================================
   FORM SECTION
========================================================= */

.storage-rate-form-section {
    padding: 0 0 18px;

    margin-bottom: 18px;

    border-bottom: 1px solid rgba(71, 85, 105, 0.13);
}

.storage-rate-form-section:last-child {
    padding-bottom: 0;

    margin-bottom: 0;

    border-bottom: 0;
}

.storage-rate-form-section-heading {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 13px;
}

.storage-rate-form-section-heading>span {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 6px;

    background: rgba(14, 165, 233, 0.08);

    color: #38bdf8;

    font-size: 7px;
    font-weight: 800;
}

.storage-rate-form-section-heading>div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.storage-rate-form-section-heading strong {
    color: #e2e8f0;

    font-size: 10px;
    font-weight: 800;
}

.storage-rate-form-section-heading small {
    color: #64748b;

    font-size: 7px;
}

/* =========================================================
   FORM GRID
========================================================= */

.storage-rate-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0,
                1fr));

    gap: 12px;
}

.storage-rate-form-grid.commercial {
    grid-template-columns:
        repeat(3,
            minmax(0,
                1fr));
}

/* =========================================================
   FORM FIELD
========================================================= */

.storage-rate-form-field {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.storage-rate-form-label {
    display: flex;
    align-items: center;

    gap: 3px;

    color: #94a3b8;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.storage-rate-form-label em {
    color: #fb7185;

    font-style: normal;
}

.storage-rate-form-field input,
.storage-rate-form-field select {
    width: 100%;
    min-width: 0;
    min-height: 38px;

    box-sizing: border-box;

    padding: 0 11px;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 7px;

    background: rgba(15, 23, 42, 0.9);

    color: #e2e8f0;

    outline: none;

    font-size: 9px;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.storage-rate-form-field input:focus,
.storage-rate-form-field select:focus {
    border-color: rgba(56, 189, 248, 0.42);

    background: rgba(15, 23, 42, 1);

    box-shadow:
        0 0 0 3px rgba(14, 165, 233, 0.06);
}

.storage-rate-form-field input::placeholder {
    color: #475569;
}

.storage-rate-form-field>small {
    color: #475569;

    font-size: 7px;
    line-height: 1.4;
}

/* =========================================================
   PRICE PREVIEW
========================================================= */

.storage-rate-price-preview {
    margin-top: 12px;

    display: grid;

    grid-template-columns:
        auto 1fr;

    gap: 4px 12px;

    padding: 12px;

    border: 1px solid rgba(34, 197, 94, 0.13);
    border-radius: 8px;

    background: rgba(34, 197, 94, 0.045);
}

.storage-rate-price-preview>span {
    align-self: center;

    color: #64748b;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.storage-rate-price-preview>strong {
    color: #4ade80;

    font-size: 13px;
    font-weight: 800;

    text-align: right;
}

.storage-rate-price-preview>small {
    grid-column: 1 / -1;

    color: #64748b;

    font-size: 7px;
}

/* =========================================================
   MODAL FOOTER
========================================================= */

.storage-rate-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    padding: 14px 20px;

    border-top: 1px solid rgba(71, 85, 105, 0.16);

    background: rgba(15, 23, 42, 0.96);
}

.storage-rate-modal-footer button {
    min-height: 34px;

    padding: 0 14px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 8px;
    font-weight: 800;
}

.storage-rate-cancel-button {
    border: 1px solid rgba(71, 85, 105, 0.22);

    background: rgba(30, 41, 59, 0.5);

    color: #94a3b8;
}

.storage-rate-cancel-button:hover:not(:disabled) {
    background: rgba(30, 41, 59, 0.8);

    color: #e2e8f0;
}

.storage-rate-save-button {
    border: 1px solid rgba(14, 165, 233, 0.25);

    background: rgba(14, 165, 233, 0.12);

    color: #7dd3fc;
}

.storage-rate-save-button:hover:not(:disabled) {
    border-color: rgba(56, 189, 248, 0.45);

    background: rgba(14, 165, 233, 0.2);
}

.storage-rate-modal-footer button:disabled {
    cursor: not-allowed;

    opacity: 0.5;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {
    .storage-rates-summary {
        grid-template-columns:
            repeat(2,
                minmax(0,
                    1fr));
    }

    .storage-rates-toolbar {
        flex-wrap: wrap;
    }

    .storage-rates-search {
        flex-basis: 100%;
    }
}

@media (max-width: 720px) {
    .storage-rates-page {
        padding: 16px;
    }

    .storage-rates-header {
        align-items: stretch;

        flex-direction: column;
    }

    .storage-rates-create-button {
        width: 100%;
    }

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

    .storage-rates-toolbar {
        align-items: stretch;

        flex-direction: column;
    }

    .storage-rates-toolbar>select,
    .storage-rates-refresh-button {
        width: 100%;
    }

    .storage-rates-search {
        min-width: 0;
    }

    .storage-rate-modal-backdrop {
        padding: 10px;
    }

    .storage-rate-modal {
        max-height: calc(100vh - 20px);
    }

    .storage-rate-form-grid,
    .storage-rate-form-grid.commercial {
        grid-template-columns:
            1fr;
    }

    .storage-rate-price-preview {
        grid-template-columns:
            1fr;
    }

    .storage-rate-price-preview>strong {
        text-align: left;
    }

    .storage-rate-modal-footer {
        flex-direction: column-reverse;
    }

    .storage-rate-modal-footer button {
        width: 100%;
    }
}/* =========================================================
   STORAGE SUMMARY PAGE
========================================================= */

.storage-summary-page {
    min-height: 100%;
    padding: 24px;

    color: #e2e8f0;
}

/* =========================================================
   HEADER
========================================================= */

.storage-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

    margin-bottom: 22px;
}

.storage-summary-header>div:first-child {
    min-width: 0;
}

.storage-summary-eyebrow {
    display: inline-block;

    margin-bottom: 6px;

    color: #38bdf8;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.storage-summary-header h1 {
    margin: 0;

    color: #f8fafc;

    font-size: 28px;
    font-weight: 800;

    letter-spacing: -0.03em;
}

.storage-summary-header p {
    max-width: 760px;

    margin: 7px 0 0;

    color: #94a3b8;

    font-size: 12px;
    line-height: 1.6;
}

.storage-summary-header-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.storage-summary-refresh-button {
    min-height: 38px;

    padding: 0 14px;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 8px;

    background: rgba(30, 41, 59, 0.5);

    color: #cbd5e1;

    cursor: pointer;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.storage-summary-refresh-button:hover:not(:disabled) {
    border-color: rgba(100, 116, 139, 0.42);

    background: rgba(30, 41, 59, 0.8);

    transform: translateY(-1px);
}

.storage-summary-refresh-button:disabled {
    cursor: not-allowed;

    opacity: 0.5;
}

/* =========================================================
   KPI GRID
========================================================= */

.storage-summary-kpis {
    display: grid;

    grid-template-columns:
        repeat(6,
            minmax(0,
                1fr));

    gap: 10px;

    margin-bottom: 16px;
}

.storage-summary-kpi {
    min-width: 0;

    padding: 14px;

    border: 1px solid rgba(71, 85, 105, 0.16);
    border-radius: 9px;

    background:
        linear-gradient(145deg,
            rgba(15, 23, 42, 0.92),
            rgba(15, 23, 42, 0.7));

    box-shadow:
        0 10px 22px rgba(2, 6, 23, 0.14);
}

.storage-summary-kpi>span {
    display: block;

    margin-bottom: 7px;

    color: #64748b;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.07em;

    text-transform: uppercase;
}

.storage-summary-kpi>strong {
    display: block;

    color: #f8fafc;

    font-size: 22px;
    font-weight: 800;

    line-height: 1;
}

.storage-summary-kpi>small {
    display: block;

    margin-top: 7px;

    color: #64748b;

    font-size: 7px;
}

.storage-summary-kpi.success {
    border-color: rgba(34, 197, 94, 0.18);

    background:
        linear-gradient(145deg,
            rgba(20, 83, 45, 0.13),
            rgba(15, 23, 42, 0.78));
}

.storage-summary-kpi.success>strong {
    color: #4ade80;
}

.storage-summary-kpi.warning {
    border-color: rgba(245, 158, 11, 0.2);

    background:
        linear-gradient(145deg,
            rgba(120, 53, 15, 0.14),
            rgba(15, 23, 42, 0.78));
}

.storage-summary-kpi.warning>strong {
    color: #fbbf24;
}

.storage-summary-kpi.danger {
    border-color: rgba(244, 63, 94, 0.2);

    background:
        linear-gradient(145deg,
            rgba(127, 29, 29, 0.14),
            rgba(15, 23, 42, 0.78));
}

.storage-summary-kpi.danger>strong {
    color: #fb7185;
}

/* =========================================================
   TOTALS CARD
========================================================= */

.storage-summary-totals-card {
    margin-bottom: 16px;

    padding: 15px;

    border: 1px solid rgba(34, 197, 94, 0.14);
    border-radius: 10px;

    background:
        linear-gradient(145deg,
            rgba(20, 83, 45, 0.08),
            rgba(15, 23, 42, 0.78));
}

.storage-summary-totals-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 12px;
}

.storage-summary-totals-heading>div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.storage-summary-totals-heading span {
    color: #64748b;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.storage-summary-totals-heading strong {
    color: #e2e8f0;

    font-size: 11px;
    font-weight: 800;
}

.storage-summary-totals-heading small {
    color: #64748b;

    font-size: 7px;
}

.storage-summary-currency-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit,
            minmax(180px,
                1fr));

    gap: 9px;
}

.storage-summary-currency-card {
    min-width: 0;

    padding: 12px;

    border: 1px solid rgba(34, 197, 94, 0.13);
    border-radius: 8px;

    background: rgba(15, 23, 42, 0.55);
}

.storage-summary-currency-card>span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.storage-summary-currency-card>strong {
    display: block;

    overflow: hidden;

    color: #4ade80;

    font-size: 16px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.storage-summary-no-totals {
    padding: 10px;

    color: #64748b;

    font-size: 8px;
}

/* =========================================================
   FILTERS
========================================================= */

.storage-summary-filters {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.5fr) repeat(5, minmax(120px, 0.8fr)) auto;

    gap: 8px;

    margin-bottom: 14px;
}

.storage-summary-search {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    min-height: 38px;

    padding: 0 11px;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 8px;

    background: rgba(15, 23, 42, 0.72);
}

.storage-summary-search>span {
    color: #64748b;

    font-size: 13px;
}

.storage-summary-search input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #e2e8f0;

    font-size: 9px;
}

.storage-summary-search input::placeholder {
    color: #475569;
}

.storage-summary-filters select {
    min-width: 0;
    min-height: 38px;

    padding: 0 28px 0 10px;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 8px;

    background: #0f172a;

    color: #cbd5e1;

    outline: none;

    font-size: 8px;
    font-weight: 700;
}

.storage-summary-filters select:focus,
.storage-summary-search:focus-within {
    border-color: rgba(56, 189, 248, 0.38);

    box-shadow:
        0 0 0 3px rgba(14, 165, 233, 0.05);
}

.storage-summary-reset-button {
    min-height: 38px;

    padding: 0 12px;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 8px;

    background: rgba(30, 41, 59, 0.46);

    color: #94a3b8;

    cursor: pointer;

    font-size: 8px;
    font-weight: 800;

    white-space: nowrap;
}

.storage-summary-reset-button:hover {
    border-color: rgba(100, 116, 139, 0.4);

    background: rgba(30, 41, 59, 0.76);

    color: #e2e8f0;
}

/* =========================================================
   TABLE CARD
========================================================= */

.storage-summary-card {
    overflow: hidden;

    border: 1px solid rgba(71, 85, 105, 0.17);
    border-radius: 10px;

    background: rgba(15, 23, 42, 0.72);

    box-shadow:
        0 12px 28px rgba(2, 6, 23, 0.15);
}

.storage-summary-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.storage-summary-table {
    width: 100%;
    min-width: 1500px;

    border-collapse: collapse;
}

.storage-summary-table thead {
    background: rgba(15, 23, 42, 0.96);
}

.storage-summary-table th {
    padding: 11px 12px;

    border-bottom: 1px solid rgba(71, 85, 105, 0.18);

    color: #64748b;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 0.06em;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.storage-summary-table td {
    padding: 12px;

    border-bottom: 1px solid rgba(71, 85, 105, 0.1);

    color: #cbd5e1;

    font-size: 8px;

    vertical-align: middle;
}

.storage-summary-table tbody tr {
    transition:
        background 0.15s ease;
}

.storage-summary-table tbody tr:hover {
    background: rgba(30, 41, 59, 0.38);
}

.storage-summary-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================================================
   CONTAINER CELL
========================================================= */

.storage-summary-container-cell {
    min-width: 120px;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.storage-summary-container-cell>strong {
    color: #f8fafc;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.02em;
}

.storage-summary-container-cell>span {
    color: #64748b;

    font-size: 7px;
}

/* =========================================================
   SHIPPING LINE
========================================================= */

.storage-summary-shipping-line {
    min-width: 120px;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.storage-summary-shipping-line>strong {
    color: #cbd5e1;

    font-size: 8px;
    font-weight: 800;
}

.storage-summary-shipping-line>span {
    max-width: 170px;

    overflow: hidden;

    color: #64748b;

    font-size: 7px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   TYPE
========================================================= */

.storage-summary-type {
    min-width: 90px;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.storage-summary-type>strong {
    color: #cbd5e1;

    font-size: 8px;
    font-weight: 800;
}

.storage-summary-type>span {
    color: #64748b;

    font-size: 7px;
}

/* =========================================================
   LOAD STATUS
========================================================= */

.storage-summary-load {
    display: inline-flex;
    align-items: center;

    min-height: 23px;

    padding: 0 8px;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 800;

    white-space: nowrap;
}

.storage-summary-load.empty {
    border: 1px solid rgba(14, 165, 233, 0.18);

    background: rgba(14, 165, 233, 0.07);

    color: #7dd3fc;
}

.storage-summary-load.loaded {
    border: 1px solid rgba(168, 85, 247, 0.18);

    background: rgba(168, 85, 247, 0.07);

    color: #c084fc;
}

.storage-summary-load.invalid {
    border: 1px solid rgba(244, 63, 94, 0.18);

    background: rgba(244, 63, 94, 0.07);

    color: #fb7185;
}

/* =========================================================
   LOCATION
========================================================= */

.storage-summary-location {
    min-width: 130px;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.storage-summary-location>strong {
    max-width: 150px;

    overflow: hidden;

    color: #cbd5e1;

    font-size: 8px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.storage-summary-location>span {
    max-width: 180px;

    overflow: hidden;

    color: #64748b;

    font-size: 7px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   DATE
========================================================= */

.storage-summary-date {
    color: #94a3b8;

    font-size: 8px;

    white-space: nowrap;
}

/* =========================================================
   DAYS
========================================================= */

.storage-summary-days {
    color: #f8fafc;

    font-size: 9px;
    font-weight: 800;
}

.storage-summary-free-days {
    color: #38bdf8;

    font-size: 9px;
    font-weight: 800;
}

.storage-summary-billable-days {
    color: #fbbf24;

    font-size: 9px;
    font-weight: 800;
}

/* =========================================================
   MONEY
========================================================= */

.storage-summary-rate {
    color: #cbd5e1;

    font-size: 8px;
    font-weight: 700;

    white-space: nowrap;
}

.storage-summary-total {
    color: #4ade80;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.storage-summary-empty-value {
    color: #475569;

    font-size: 9px;
}

/* =========================================================
   BILLING STATUS
========================================================= */

.storage-summary-status-wrapper {
    min-width: 120px;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.storage-summary-status {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    min-height: 23px;

    padding: 0 8px;

    border-radius: 999px;

    font-size: 7px;
    font-weight: 800;

    white-space: nowrap;
}

.storage-summary-status>span {
    width: 5px;
    height: 5px;

    flex: 0 0 auto;

    border-radius: 50%;
}

.storage-summary-status.priced {
    border: 1px solid rgba(34, 197, 94, 0.18);

    background: rgba(34, 197, 94, 0.07);

    color: #4ade80;
}

.storage-summary-status.priced>span {
    background: #22c55e;
}

.storage-summary-status.missing_rate {
    border: 1px solid rgba(245, 158, 11, 0.2);

    background: rgba(245, 158, 11, 0.07);

    color: #fbbf24;
}

.storage-summary-status.missing_rate>span {
    background: #f59e0b;
}

.storage-summary-status.invalid_data {
    border: 1px solid rgba(244, 63, 94, 0.2);

    background: rgba(244, 63, 94, 0.07);

    color: #fb7185;
}

.storage-summary-status.invalid_data>span {
    background: #f43f5e;
}

.storage-summary-status-wrapper>small {
    max-width: 190px;

    overflow: hidden;

    color: #64748b;

    font-size: 6px;

    line-height: 1.35;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =========================================================
   LOADING
========================================================= */

.storage-summary-loading {
    min-height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 11px;

    color: #94a3b8;
}

.storage-summary-loading>strong {
    font-size: 9px;
}

.storage-summary-spinner {
    width: 22px;
    height: 22px;

    border: 2px solid rgba(100, 116, 139, 0.24);
    border-top-color: #38bdf8;
    border-radius: 50%;

    animation:
        storage-summary-spin 0.7s linear infinite;
}

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

/* =========================================================
   EMPTY
========================================================= */

.storage-summary-empty,
.storage-summary-empty-terminal {
    min-height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 8px;

    padding: 30px;

    text-align: center;
}

.storage-summary-empty>span {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(71, 85, 105, 0.22);
    border-radius: 50%;

    background: rgba(30, 41, 59, 0.55);

    color: #64748b;

    font-size: 16px;
    font-weight: 800;
}

.storage-summary-empty strong,
.storage-summary-empty-terminal strong {
    color: #cbd5e1;

    font-size: 11px;
    font-weight: 800;
}

.storage-summary-empty p,
.storage-summary-empty-terminal p {
    max-width: 430px;

    margin: 0;

    color: #64748b;

    font-size: 8px;
    line-height: 1.5;
}

/* =========================================================
   SCROLLBAR
========================================================= */

.storage-summary-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.storage-summary-table-wrapper::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
}

.storage-summary-table-wrapper::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: rgba(100, 116, 139, 0.3);
}

.storage-summary-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.48);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1400px) {
    .storage-summary-kpis {
        grid-template-columns:
            repeat(3,
                minmax(0,
                    1fr));
    }

    .storage-summary-filters {
        grid-template-columns:
            repeat(3,
                minmax(0,
                    1fr));
    }

    .storage-summary-search {
        grid-column:
            span 2;
    }
}

@media (max-width: 900px) {
    .storage-summary-kpis {
        grid-template-columns:
            repeat(2,
                minmax(0,
                    1fr));
    }

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

    .storage-summary-search {
        grid-column:
            1 / -1;
    }

    .storage-summary-totals-heading {
        align-items: flex-start;

        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .storage-summary-page {
        padding: 16px;
    }

    .storage-summary-header {
        align-items: stretch;

        flex-direction: column;
    }

    .storage-summary-header-actions,
    .storage-summary-refresh-button {
        width: 100%;
    }

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

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

    .storage-summary-search {
        grid-column:
            auto;
    }

    .storage-summary-filters select,
    .storage-summary-reset-button {
        width: 100%;
    }

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

/* =========================================================
   PAGINATION
========================================================= */

.storage-summary-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  margin-top: 12px;

  padding: 12px 14px;

  border: 1px solid rgba(71, 85, 105, 0.16);
  border-radius: 9px;

  background: rgba(15, 23, 42, 0.62);
}

.storage-summary-pagination-info {
  display: flex;
  align-items: center;

  gap: 18px;

  color: #64748b;

  font-size: 8px;
}

.storage-summary-pagination-info strong {
  color: #cbd5e1;
}

.storage-summary-pagination-info label {
  display: flex;
  align-items: center;

  gap: 7px;

  font-size: 8px;
  font-weight: 700;
}

.storage-summary-pagination-info select {
  height: 30px;

  padding: 0 25px 0 8px;

  border: 1px solid rgba(71, 85, 105, 0.24);
  border-radius: 6px;

  background: #0f172a;

  color: #cbd5e1;

  outline: none;

  font-size: 8px;
  font-weight: 700;
}

.storage-summary-pagination-controls {
  display: flex;
  align-items: center;

  gap: 6px;
}

.storage-summary-pagination-controls button {
  min-height: 31px;

  padding: 0 10px;

  border: 1px solid rgba(71, 85, 105, 0.22);
  border-radius: 6px;

  background: rgba(30, 41, 59, 0.5);

  color: #cbd5e1;

  cursor: pointer;

  font-size: 8px;
  font-weight: 800;

  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.storage-summary-pagination-controls button:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.35);

  background: rgba(14, 165, 233, 0.08);

  color: #7dd3fc;
}

.storage-summary-pagination-controls button:disabled {
  cursor: not-allowed;

  opacity: 0.35;
}

.storage-summary-pagination-current {
  min-width: 130px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  padding: 0 8px;

  color: #64748b;

  font-size: 8px;
}

.storage-summary-pagination-current strong {
  color: #f8fafc;

  font-size: 9px;
}

@media (
  max-width: 850px
) {
  .storage-summary-pagination {
    align-items: stretch;

    flex-direction: column;
  }

  .storage-summary-pagination-info {
    justify-content: space-between;
  }

  .storage-summary-pagination-controls {
    justify-content: center;
  }
}

@media (
  max-width: 540px
) {
  .storage-summary-pagination-info {
    align-items: flex-start;

    flex-direction: column;
  }

  .storage-summary-pagination-controls {
    flex-wrap: wrap;
  }

  .storage-summary-pagination-current {
    order: -1;

    width: 100%;
  }
}/* =====================================================
   STORAGE CHARGES
===================================================== */

.storage-charges-page {
    --sc-bg: #050f20;
    --sc-surface: #0d192b;
    --sc-surface-soft: #101e32;
    --sc-surface-hover: #14243a;

    --sc-border: #20324a;
    --sc-border-soft: #17283e;

    --sc-text: #f5f8fc;
    --sc-text-secondary: #a8b6ca;
    --sc-text-muted: #72839b;

    --sc-primary: #38bdf8;
    --sc-primary-soft: rgba(56, 189, 248, 0.12);

    --sc-success: #22c55e;
    --sc-success-soft: rgba(34, 197, 94, 0.12);

    --sc-warning: #f59e0b;
    --sc-warning-soft: rgba(245, 158, 11, 0.12);

    --sc-danger: #f43f5e;
    --sc-danger-soft: rgba(244, 63, 94, 0.12);

    --sc-muted: #94a3b8;
    --sc-muted-soft: rgba(148, 163, 184, 0.12);

    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 22px;

    padding: 8px 0 36px;

    color: var(--sc-text);
}

/* =====================================================
   HEADER
===================================================== */

.storage-charges-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;
}

.storage-charges-header > div:first-child {
    min-width: 0;
}

.storage-charges-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #8191a8;
}

.storage-charges-header h1 {
    margin: 0;

    font-size: 34px;
    line-height: 1.12;

    font-weight: 800;

    letter-spacing: -0.03em;

    color: var(--sc-text);
}

.storage-charges-header p {
    max-width: 720px;

    margin: 10px 0 0;

    font-size: 14px;
    line-height: 1.6;

    color: var(--sc-text-secondary);
}

/* =====================================================
   HEADER BUTTON
===================================================== */

.storage-charges-refresh-button {
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 14px;

    border: 1px solid var(--sc-border);
    border-radius: 9px;

    background: var(--sc-surface-soft);

    color: #dce6f2;

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        transform 0.16s ease;
}

.storage-charges-refresh-button:hover:not(:disabled) {
    background: var(--sc-surface-hover);

    border-color: #334b68;
}

.storage-charges-refresh-button:active:not(:disabled) {
    transform: translateY(1px);
}

.storage-charges-refresh-button.primary {
    background: #101c30;

    border-color: #1c2c45;

    color: #f6f9fc;
}

.storage-charges-refresh-button.primary:hover:not(:disabled) {
    background: #16253c;

    border-color: #304664;
}

.storage-charges-refresh-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

/* =====================================================
   SUMMARY
===================================================== */

.storage-charges-summary {
    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );

    gap: 14px;
}

.storage-charges-summary-card {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 18px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0f1c30 0%,
            #0b1728 100%
        );

    border: 1px solid var(--sc-border);

    border-radius: 12px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.14);
}

.storage-charges-summary-card::before {
    content: '';

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background: #64748b;
}

.storage-charges-summary-card > span {
    font-size: 11px;
    font-weight: 700;

    color: var(--sc-text-secondary);
}

.storage-charges-summary-card > strong {
    overflow: hidden;

    margin-top: 1px;

    font-size: 25px;
    line-height: 1.1;

    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--sc-text);
}

.storage-charges-summary-card > small {
    font-size: 11px;
    line-height: 1.4;

    color: var(--sc-text-muted);
}

/* =====================================================
   SUMMARY TONES
===================================================== */

.storage-charges-summary-card.tone-warning::before {
    background: var(--sc-warning);
}

.storage-charges-summary-card.tone-warning > strong {
    color: #fbbf24;
}

.storage-charges-summary-card.tone-primary::before {
    background: #3b82f6;
}

.storage-charges-summary-card.tone-primary > strong {
    color: #60a5fa;
}

.storage-charges-summary-card.tone-success::before {
    background: var(--sc-success);
}

.storage-charges-summary-card.tone-success > strong {
    color: #4ade80;
}

.storage-charges-summary-card.tone-muted::before {
    background: #64748b;
}

.storage-charges-summary-card.tone-muted > strong {
    color: #a8b6ca;
}

.storage-charges-summary-card.tone-money::before {
    background: #14b8a6;
}

.storage-charges-summary-card.tone-money > strong {
    font-size: 23px;

    color: #2dd4bf;
}

/* =====================================================
   TOOLBAR
===================================================== */

.storage-charges-toolbar {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px;

    background: var(--sc-surface);

    border: 1px solid var(--sc-border);

    border-radius: 12px;
}

.storage-charges-search {
    height: 42px;

    flex: 1;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 13px;

    background: #091426;

    border: 1px solid #243750;

    border-radius: 8px;

    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.storage-charges-search:focus-within {
    border-color: #3c82aa;

    box-shadow:
        0 0 0 3px
        rgba(56, 189, 248, 0.08);
}

.storage-charges-search > span {
    flex: 0 0 auto;

    font-size: 17px;

    color: #637890;
}

.storage-charges-search input {
    width: 100%;
    min-width: 0;

    padding: 0;

    background: transparent;

    border: 0;
    outline: 0;

    font: inherit;
    font-size: 13px;

    color: var(--sc-text);
}

.storage-charges-search input::placeholder {
    color: #657991;
}

.storage-charges-toolbar select {
    height: 42px;

    min-width: 185px;

    padding: 0 36px 0 13px;

    background: #091426;

    border: 1px solid #243750;

    border-radius: 8px;

    outline: none;

    color: #dce6f2;

    font: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.storage-charges-toolbar select:focus {
    border-color: #3c82aa;
}

/* =====================================================
   CARD
===================================================== */

.storage-charges-card {
    min-width: 0;

    overflow: hidden;

    background: var(--sc-surface);

    border: 1px solid var(--sc-border);

    border-radius: 12px;

    box-shadow:
        0 12px 32px
        rgba(0, 0, 0, 0.16);
}

/* =====================================================
   TABLE
===================================================== */

.storage-charges-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.storage-charges-table {
    width: 100%;

    min-width: 1190px;

    border-collapse: collapse;
}

.storage-charges-table thead {
    background: #0a1627;
}

.storage-charges-table th {
    padding: 13px 14px;

    border-bottom: 1px solid var(--sc-border);

    color: #8192aa;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.storage-charges-table td {
    padding: 15px 14px;

    border-bottom: 1px solid var(--sc-border-soft);

    vertical-align: middle;

    color: #b7c4d5;

    font-size: 12px;
}

.storage-charges-table tbody tr {
    background: #0d192b;

    transition:
        background 0.15s ease;
}

.storage-charges-table tbody tr:hover {
    background: #112139;
}

.storage-charges-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =====================================================
   VOIDED ROW
===================================================== */

.storage-charges-table tbody tr.is-voided {
    background: #0a1423;

    opacity: 0.63;
}

.storage-charges-table tbody tr.is-voided:hover {
    background: #101c2d;

    opacity: 0.78;
}

/* =====================================================
   ID
===================================================== */

.storage-charge-id-cell {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.storage-charge-id-cell strong {
    font-size: 12px;
    font-weight: 800;

    color: #e9eef5;
}

.storage-charge-id-cell small {
    font-size: 10px;

    color: #61748d;
}

/* =====================================================
   CONTAINER
===================================================== */

.storage-charge-container-cell {
    display: flex;
    flex-direction: column;

    gap: 4px;

    min-width: 150px;
}

.storage-charge-container-cell strong {
    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.025em;

    color: #f1f5f9;
}

.storage-charge-container-cell small {
    font-size: 10px;

    color: #7c8ea6;
}

/* =====================================================
   CUSTOMER
===================================================== */

.storage-charge-customer-cell {
    max-width: 220px;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.storage-charge-customer-cell strong {
    overflow: hidden;

    font-size: 12px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;

    color: #edf2f7;
}

.storage-charge-customer-cell small {
    font-size: 10px;

    color: #71849e;
}

.storage-charge-empty-value {
    font-size: 11px;
    font-weight: 600;

    color: #60738c;
}

/* =====================================================
   PERIOD
===================================================== */

.storage-charge-period {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;

    min-width: 185px;
}

.storage-charge-period > span {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.storage-charge-period small {
    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: #60738c;
}

.storage-charge-period strong {
    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    color: #b7c5d7;
}

/* =====================================================
   DAYS
===================================================== */

.storage-charge-days {
    display: grid;

    grid-template-columns:
        auto auto;

    align-items: baseline;

    gap: 2px 5px;

    min-width: 100px;
}

.storage-charge-days > strong {
    font-size: 18px;
    line-height: 1;

    color: #f1f5f9;
}

.storage-charge-days > span {
    font-size: 10px;
    font-weight: 600;

    color: #8292a8;
}

.storage-charge-days > small {
    grid-column: 1 / -1;

    font-size: 9px;

    color: #60738c;
}

/* =====================================================
   RATE
===================================================== */

.storage-charge-rate-cell {
    display: flex;
    flex-direction: column;

    gap: 3px;

    min-width: 100px;
}

.storage-charge-rate-cell strong {
    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;

    color: #f1f5f9;
}

.storage-charge-rate-cell small {
    font-size: 9px;

    color: #60738c;
}

/* =====================================================
   AMOUNT
===================================================== */

.storage-charge-amount {
    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;

    color: #2dd4bf;
}

.storage-charge-amount.voided {
    color: #74859c;

    text-decoration: line-through;
}

/* =====================================================
   STATUS
===================================================== */

.storage-charge-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border: 1px solid transparent;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

.storage-charge-status > span {
    width: 6px;
    height: 6px;

    flex: 0 0 auto;

    border-radius: 50%;
}

/* PENDING */

.storage-charge-status.pending {
    background: var(--sc-warning-soft);

    border-color: rgba(245, 158, 11, 0.22);

    color: #fbbf24;
}

.storage-charge-status.pending > span {
    background: #f59e0b;
}

/* UNBILLED */

.storage-charge-status.unbilled {
    background: rgba(59, 130, 246, 0.12);

    border-color: rgba(59, 130, 246, 0.22);

    color: #60a5fa;
}

.storage-charge-status.unbilled > span {
    background: #3b82f6;
}

/* BILLED */

.storage-charge-status.billed {
    background: var(--sc-success-soft);

    border-color: rgba(34, 197, 94, 0.22);

    color: #4ade80;
}

.storage-charge-status.billed > span {
    background: #22c55e;
}

/* VOIDED */

.storage-charge-status.voided {
    background: var(--sc-muted-soft);

    border-color: rgba(148, 163, 184, 0.15);

    color: #94a3b8;
}

.storage-charge-status.voided > span {
    background: #64748b;
}

/* =====================================================
   ACTIONS
===================================================== */

.storage-charge-actions {
    display: flex;
    align-items: center;

    gap: 6px;

    min-width: 105px;
}

.storage-charge-actions button {
    height: 32px;

    padding: 0 10px;

    border-radius: 7px;

    font: inherit;
    font-size: 10px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.storage-charge-actions button.recalculate {
    background: var(--sc-warning-soft);

    border: 1px solid rgba(245, 158, 11, 0.24);

    color: #fbbf24;
}

.storage-charge-actions button.recalculate:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.2);
}

.storage-charge-actions button.danger {
    background: var(--sc-danger-soft);

    border: 1px solid rgba(244, 63, 94, 0.24);

    color: #fb7185;
}

.storage-charge-actions button.danger:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.2);
}

.storage-charge-actions button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

.storage-charge-readonly {
    font-size: 10px;
    font-weight: 700;

    color: #5e7088;
}

/* =====================================================
   PAGINATION
===================================================== */

.storage-charges-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 13px 16px;

    background: #091426;

    border-top: 1px solid var(--sc-border);
}

.storage-charges-pagination-info {
    font-size: 11px;

    color: #73869e;
}

.storage-charges-pagination-info strong {
    color: #b9c6d6;
}

.storage-charges-pagination-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.storage-charges-pagination-actions > span {
    min-width: 105px;

    font-size: 11px;

    text-align: center;

    color: #74869e;
}

.storage-charges-pagination-actions > span strong {
    color: #bac7d7;
}

.storage-charges-pagination-actions button {
    height: 32px;

    padding: 0 11px;

    background: #0e1b2d;

    border: 1px solid #253851;

    border-radius: 7px;

    color: #aebcce;

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

.storage-charges-pagination-actions button:hover:not(:disabled) {
    background: #14253b;

    border-color: #35506f;
}

.storage-charges-pagination-actions button:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}

/* =====================================================
   LOADING
===================================================== */

.storage-charges-loading {
    min-height: 280px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    color: #7689a1;
}

.storage-charges-loading strong {
    font-size: 12px;
}

.storage-charges-spinner {
    width: 26px;
    height: 26px;

    border: 3px solid #22364e;
    border-top-color: #38bdf8;

    border-radius: 50%;

    animation:
        storage-charges-spin
        0.75s
        linear
        infinite;
}

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

/* =====================================================
   EMPTY
===================================================== */

.storage-charges-empty {
    min-height: 280px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 40px 20px;

    text-align: center;
}

.storage-charges-empty > span {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 4px;

    background: #122239;

    border: 1px solid #243950;

    border-radius: 12px;

    font-size: 20px;
    font-weight: 800;

    color: #6f829a;
}

.storage-charges-empty strong {
    font-size: 14px;

    color: #e4ebf4;
}

.storage-charges-empty p {
    max-width: 420px;

    margin: 0;

    font-size: 12px;
    line-height: 1.5;

    color: #71839a;
}

/* =====================================================
   NO TERMINAL
===================================================== */

.storage-charges-empty-terminal {
    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 22px;

    background: var(--sc-surface);

    border: 1px solid var(--sc-border);

    border-radius: 12px;
}

.storage-charges-empty-terminal strong {
    font-size: 15px;

    color: var(--sc-text);
}

.storage-charges-empty-terminal p {
    margin: 0;

    font-size: 12px;
    line-height: 1.5;

    color: var(--sc-text-secondary);
}

/* =====================================================
   SCROLLBAR
===================================================== */

.storage-charges-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.storage-charges-table-wrapper::-webkit-scrollbar-track {
    background: #091426;
}

.storage-charges-table-wrapper::-webkit-scrollbar-thumb {
    background: #2a3e58;

    border-radius: 999px;
}

.storage-charges-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #39536f;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1350px) {
    .storage-charges-summary {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 900px) {
    .storage-charges-header {
        flex-direction: column;
    }

    .storage-charges-header
        .storage-charges-refresh-button.primary {
        width: 100%;
    }

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

    .storage-charges-toolbar {
        align-items: stretch;

        flex-direction: column;
    }

    .storage-charges-search,
    .storage-charges-toolbar select,
    .storage-charges-toolbar
        .storage-charges-refresh-button {
        width: 100%;
    }

    .storage-charges-pagination {
        align-items: stretch;

        flex-direction: column;
    }

    .storage-charges-pagination-actions {
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .storage-charges-page {
        gap: 16px;
    }

    .storage-charges-header h1 {
        font-size: 28px;
    }

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

    .storage-charges-pagination-actions {
        flex-wrap: wrap;
    }

    .storage-charges-pagination-actions > span {
        order: -1;

        width: 100%;
    }

    .storage-charges-pagination-actions button {
        flex: 1;
    }
}

/* =====================================================
   GENERIC MODAL BACKDROPS
===================================================== */

.storage-charge-modal-backdrop,
.storage-charge-void-modal-backdrop {
    position: fixed;

    inset: 0;

    z-index: 1100;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(
            2,
            8,
            23,
            0.78
        );

    backdrop-filter:
        blur(
            5px
        );

    -webkit-backdrop-filter:
        blur(
            5px
        );
}

/* =====================================================
   DETAIL MODAL
===================================================== */

.storage-charge-detail-modal {
    width: min(
        980px,
        100%
    );

    max-height:
        calc(
            100vh -
            48px
        );

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0e1a2d 0%,
            #091426 100%
        );

    border:
        1px solid
        #243750;

    border-radius:
        16px;

    box-shadow:
        0 30px 90px
        rgba(
            0,
            0,
            0,
            0.48
        );

    animation:
        storage-charge-modal-in
        0.18s
        ease-out;
}

/* =====================================================
   DETAIL HEADER
===================================================== */

.storage-charge-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    padding:
        22px
        24px;

    background:
        #0b1728;

    border-bottom:
        1px solid
        #20324a;
}

.storage-charge-detail-header > div:first-child {
    min-width: 0;
}

.storage-charge-detail-eyebrow {
    display: inline-block;

    margin-bottom:
        7px;

    font-size:
        10px;

    font-weight:
        800;

    letter-spacing:
        0.14em;

    text-transform:
        uppercase;

    color:
        #6f829b;
}

.storage-charge-detail-title-row {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-wrap: wrap;
}

.storage-charge-detail-title-row h2 {
    margin: 0;

    font-size:
        24px;

    line-height:
        1.15;

    font-weight:
        800;

    letter-spacing:
        -0.02em;

    color:
        #f4f7fb;
}

.storage-charge-detail-header p {
    margin:
        8px
        0
        0;

    font-size:
        12px;

    font-weight:
        700;

    letter-spacing:
        0.04em;

    color:
        #9babc0;
}

/* =====================================================
   MODAL CLOSE
===================================================== */

.storage-charge-modal-close {
    width:
        36px;

    height:
        36px;

    flex:
        0 0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding: 0;

    background:
        #101e31;

    border:
        1px solid
        #253950;

    border-radius:
        9px;

    color:
        #91a2b8;

    font-size:
        22px;

    font-weight:
        300;

    line-height:
        1;

    cursor:
        pointer;

    transition:
        background
        0.15s ease,
        border-color
        0.15s ease,
        color
        0.15s ease;
}

.storage-charge-modal-close:hover {
    background:
        #16263b;

    border-color:
        #38506d;

    color:
        #ffffff;
}

/* =====================================================
   DETAIL CONTENT
===================================================== */

.storage-charge-detail-content {
    flex:
        1;

    min-height:
        0;

    overflow-y:
        auto;

    padding:
        22px
        24px;

    display:
        flex;

    flex-direction:
        column;

    gap:
        18px;
}

/* =====================================================
   DETAIL SECTION
===================================================== */

.storage-charge-detail-section {
    padding:
        18px;

    background:
        rgba(
            13,
            25,
            43,
            0.78
        );

    border:
        1px solid
        #1f324a;

    border-radius:
        12px;
}

.storage-charge-detail-section-header {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        11px;

    margin-bottom:
        17px;
}

.storage-charge-detail-section-header > span {
    width:
        30px;

    height:
        30px;

    flex:
        0 0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(
            56,
            189,
            248,
            0.08
        );

    border:
        1px solid
        rgba(
            56,
            189,
            248,
            0.16
        );

    border-radius:
        8px;

    color:
        #38bdf8;

    font-size:
        10px;

    font-weight:
        800;
}

.storage-charge-detail-section-header > div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        3px;
}

.storage-charge-detail-section-header strong {
    font-size:
        13px;

    font-weight:
        800;

    color:
        #eaf0f7;
}

.storage-charge-detail-section-header small {
    font-size:
        10px;

    color:
        #71839b;
}

/* =====================================================
   DETAIL GRID
===================================================== */

.storage-charge-detail-grid {
    display:
        grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap:
        12px;
}

/* =====================================================
   DETAIL FIELD
===================================================== */

.storage-charge-detail-field {
    min-width:
        0;

    display:
        flex;

    flex-direction:
        column;

    gap:
        5px;

    padding:
        11px
        12px;

    background:
        #091426;

    border:
        1px solid
        #1d3048;

    border-radius:
        8px;
}

.storage-charge-detail-field > span {
    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.045em;

    text-transform:
        uppercase;

    color:
        #61748d;
}

.storage-charge-detail-field > strong {
    overflow:
        hidden;

    font-size:
        12px;

    font-weight:
        700;

    text-overflow:
        ellipsis;

    color:
        #cbd6e4;
}

.storage-charge-detail-field > strong.important {
    color:
        #f5f8fb;

    font-size:
        13px;

    font-weight:
        800;
}

/* =====================================================
   DETAIL LOADING
===================================================== */

.storage-charge-detail-loading {
    min-height:
        280px;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    gap:
        12px;

    color:
        #8192a8;

    font-size:
        12px;
}

/* =====================================================
   VOID AUDIT INSIDE DETAIL
===================================================== */

.storage-charge-void-audit {
    margin-top:
        14px;

    padding:
        14px;

    background:
        rgba(
            244,
            63,
            94,
            0.055
        );

    border:
        1px solid
        rgba(
            244,
            63,
            94,
            0.18
        );

    border-radius:
        10px;
}

.storage-charge-void-audit-heading {
    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    margin-bottom:
        13px;
}

.storage-charge-void-audit-heading > span {
    width:
        28px;

    height:
        28px;

    flex:
        0 0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(
            244,
            63,
            94,
            0.12
        );

    border:
        1px solid
        rgba(
            244,
            63,
            94,
            0.22
        );

    border-radius:
        50%;

    color:
        #fb7185;

    font-size:
        13px;

    font-weight:
        900;
}

.storage-charge-void-audit-heading > div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        2px;
}

.storage-charge-void-audit-heading strong {
    font-size:
        12px;

    color:
        #fda4af;
}

.storage-charge-void-audit-heading small {
    font-size:
        10px;

    color:
        #8b7380;
}

.storage-charge-void-reason {
    margin-top:
        12px;

    padding:
        11px
        12px;

    background:
        rgba(
            9,
            20,
            38,
            0.6
        );

    border:
        1px solid
        rgba(
            244,
            63,
            94,
            0.12
        );

    border-radius:
        8px;
}

.storage-charge-void-reason > span {
    display:
        block;

    margin-bottom:
        5px;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.045em;

    text-transform:
        uppercase;

    color:
        #8f7480;
}

.storage-charge-void-reason p {
    margin: 0;

    font-size:
        11px;

    line-height:
        1.55;

    color:
        #c2a8b0;
}

/* =====================================================
   DETAIL FOOTER
===================================================== */

.storage-charge-detail-footer {
    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        9px;

    padding:
        14px
        24px;

    background:
        #091426;

    border-top:
        1px solid
        #20324a;
}

.storage-charge-detail-footer button {
    min-height:
        38px;

    padding:
        0
        14px;

    border-radius:
        8px;

    font:
        inherit;

    font-size:
        11px;

    font-weight:
        800;

    cursor:
        pointer;
}

.storage-charge-detail-close-button {
    background:
        #101e31;

    border:
        1px solid
        #293c55;

    color:
        #b3c1d2;
}

.storage-charge-detail-close-button:hover {
    background:
        #16263b;
}

.storage-charge-detail-recalculate-button {
    background:
        rgba(
            245,
            158,
            11,
            0.12
        );

    border:
        1px solid
        rgba(
            245,
            158,
            11,
            0.25
        );

    color:
        #fbbf24;
}

.storage-charge-detail-recalculate-button:hover:not(:disabled) {
    background:
        rgba(
            245,
            158,
            11,
            0.2
        );
}

.storage-charge-detail-void-button {
    background:
        rgba(
            244,
            63,
            94,
            0.12
        );

    border:
        1px solid
        rgba(
            244,
            63,
            94,
            0.25
        );

    color:
        #fb7185;
}

.storage-charge-detail-void-button:hover:not(:disabled) {
    background:
        rgba(
            244,
            63,
            94,
            0.2
        );
}

.storage-charge-detail-footer button:disabled {
    opacity:
        0.45;

    cursor:
        not-allowed;
}

/* =====================================================
   TABLE VIEW BUTTON
===================================================== */

.storage-charge-actions button.view {
    background:
        rgba(
            56,
            189,
            248,
            0.08
        );

    border:
        1px solid
        rgba(
            56,
            189,
            248,
            0.16
        );

    color:
        #7dd3fc;
}

.storage-charge-actions button.view:hover:not(:disabled) {
    background:
        rgba(
            56,
            189,
            248,
            0.15
        );

    border-color:
        rgba(
            56,
            189,
            248,
            0.3
        );
}

/* =====================================================
   VOID MODAL
===================================================== */

.storage-charge-void-modal {
    width:
        min(
            520px,
            100%
        );

    overflow:
        hidden;

    background:
        linear-gradient(
            145deg,
            #0e1a2d 0%,
            #091426 100%
        );

    border:
        1px solid
        #2a3548;

    border-radius:
        15px;

    box-shadow:
        0 30px 90px
        rgba(
            0,
            0,
            0,
            0.5
        );

    animation:
        storage-charge-modal-in
        0.18s
        ease-out;
}

/* =====================================================
   VOID HEADER
===================================================== */

.storage-charge-void-modal-header {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        18px;

    padding:
        20px
        22px;

    background:
        #0b1728;

    border-bottom:
        1px solid
        #20324a;
}

.storage-charge-void-modal-header > div {
    min-width:
        0;
}

.storage-charge-void-modal-header > div > span {
    display:
        inline-block;

    margin-bottom:
        6px;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;

    color:
        #9b6d79;
}

.storage-charge-void-modal-header h2 {
    margin: 0;

    font-size:
        20px;

    font-weight:
        800;

    color:
        #f4f7fb;
}

.storage-charge-void-modal-header p {
    margin:
        7px
        0
        0;

    font-size:
        11px;

    font-weight:
        700;

    color:
        #8fa0b5;
}

.storage-charge-void-modal-header > button {
    width:
        34px;

    height:
        34px;

    flex:
        0 0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding: 0;

    background:
        #101e31;

    border:
        1px solid
        #253950;

    border-radius:
        8px;

    color:
        #91a2b8;

    font-size:
        21px;

    cursor:
        pointer;
}

.storage-charge-void-modal-header > button:hover {
    background:
        #18273b;

    color:
        #ffffff;
}

/* =====================================================
   VOID CONTENT
===================================================== */

.storage-charge-void-modal-content {
    display:
        flex;

    flex-direction:
        column;

    gap:
        16px;

    padding:
        20px
        22px;
}

/* =====================================================
   VOID WARNING
===================================================== */

.storage-charge-void-warning {
    display:
        flex;

    align-items:
        flex-start;

    gap:
        11px;

    padding:
        12px;

    background:
        rgba(
            244,
            63,
            94,
            0.07
        );

    border:
        1px solid
        rgba(
            244,
            63,
            94,
            0.18
        );

    border-radius:
        9px;
}

.storage-charge-void-warning > span {
    width:
        27px;

    height:
        27px;

    flex:
        0 0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    background:
        rgba(
            244,
            63,
            94,
            0.12
        );

    border-radius:
        50%;

    color:
        #fb7185;

    font-size:
        12px;

    font-weight:
        900;
}

.storage-charge-void-warning > div {
    display:
        flex;

    flex-direction:
        column;

    gap:
        4px;
}

.storage-charge-void-warning strong {
    font-size:
        11px;

    color:
        #fecdd3;
}

.storage-charge-void-warning p {
    margin: 0;

    font-size:
        10px;

    line-height:
        1.5;

    color:
        #9d7c86;
}

/* =====================================================
   VOID FIELD
===================================================== */

.storage-charge-void-field {
    display:
        flex;

    flex-direction:
        column;

    gap:
        7px;
}

.storage-charge-void-field > span {
    font-size:
        10px;

    font-weight:
        800;

    color:
        #b5c2d2;
}

.storage-charge-void-field textarea {
    width:
        100%;

    resize:
        vertical;

    min-height:
        110px;

    max-height:
        220px;

    box-sizing:
        border-box;

    padding:
        11px
        12px;

    background:
        #091426;

    border:
        1px solid
        #263a53;

    border-radius:
        8px;

    outline:
        none;

    color:
        #e1e8f1;

    font:
        inherit;

    font-size:
        12px;

    line-height:
        1.5;

    transition:
        border-color
        0.15s ease,
        box-shadow
        0.15s ease;
}

.storage-charge-void-field textarea::placeholder {
    color:
        #60748d;
}

.storage-charge-void-field textarea:focus {
    border-color:
        #a54258;

    box-shadow:
        0 0 0 3px
        rgba(
            244,
            63,
            94,
            0.07
        );
}

.storage-charge-void-field > small {
    align-self:
        flex-end;

    font-size:
        9px;

    color:
        #62758e;
}

/* =====================================================
   VOID FOOTER
===================================================== */

.storage-charge-void-modal-footer {
    display:
        flex;

    align-items:
        center;

    justify-content:
        flex-end;

    gap:
        9px;

    padding:
        14px
        22px;

    background:
        #091426;

    border-top:
        1px solid
        #20324a;
}

.storage-charge-void-modal-footer button {
    min-height:
        38px;

    padding:
        0
        14px;

    border-radius:
        8px;

    font:
        inherit;

    font-size:
        11px;

    font-weight:
        800;

    cursor:
        pointer;
}

.storage-charge-void-modal-footer button.cancel {
    background:
        #101e31;

    border:
        1px solid
        #293c55;

    color:
        #aebdce;
}

.storage-charge-void-modal-footer button.cancel:hover:not(:disabled) {
    background:
        #16263b;
}

.storage-charge-void-modal-footer button.confirm {
    background:
        #be123c;

    border:
        1px solid
        #e11d48;

    color:
        #ffffff;
}

.storage-charge-void-modal-footer button.confirm:hover:not(:disabled) {
    background:
        #e11d48;
}

.storage-charge-void-modal-footer button:disabled {
    opacity:
        0.42;

    cursor:
        not-allowed;
}

/* =====================================================
   MODAL SCROLLBAR
===================================================== */

.storage-charge-detail-content::-webkit-scrollbar {
    width:
        8px;
}

.storage-charge-detail-content::-webkit-scrollbar-track {
    background:
        #091426;
}

.storage-charge-detail-content::-webkit-scrollbar-thumb {
    background:
        #293e57;

    border-radius:
        999px;
}

.storage-charge-detail-content::-webkit-scrollbar-thumb:hover {
    background:
        #38536f;
}

/* =====================================================
   ANIMATION
===================================================== */

@keyframes storage-charge-modal-in {
    from {
        opacity:
            0;

        transform:
            translateY(
                8px
            )
            scale(
                0.985
            );
    }

    to {
        opacity:
            1;

        transform:
            translateY(
                0
            )
            scale(
                1
            );
    }
}

/* =====================================================
   DETAIL RESPONSIVE
===================================================== */

@media (
    max-width:
        1000px
) {
    .storage-charge-detail-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }
}

@media (
    max-width:
        650px
) {
    .storage-charge-modal-backdrop,
    .storage-charge-void-modal-backdrop {
        align-items:
            flex-end;

        padding:
            12px;
    }

    .storage-charge-detail-modal {
        max-height:
            calc(
                100vh -
                24px
            );

        border-radius:
            14px;
    }

    .storage-charge-detail-header {
        padding:
            18px;
    }

    .storage-charge-detail-title-row h2 {
        font-size:
            20px;
    }

    .storage-charge-detail-content {
        padding:
            16px;
    }

    .storage-charge-detail-grid {
        grid-template-columns:
            1fr;
    }

    .storage-charge-detail-footer {
        padding:
            12px
            16px;

        flex-wrap:
            wrap;
    }

    .storage-charge-detail-footer button {
        flex:
            1 1
            140px;
    }

    .storage-charge-void-modal-header,
    .storage-charge-void-modal-content,
    .storage-charge-void-modal-footer {
        padding-left:
            16px;

        padding-right:
            16px;
    }

    .storage-charge-void-modal-footer button {
        flex:
            1;
    }
}/* =====================================================
   ACCOUNTS RECEIVABLE
===================================================== */

.accounts-receivable-page {
    --ar-surface: #0d192b;
    --ar-surface-soft: #101e32;
    --ar-surface-hover: #14243a;

    --ar-border: #20324a;
    --ar-border-soft: #17283e;

    --ar-text: #f5f8fc;
    --ar-text-secondary: #a8b6ca;
    --ar-text-muted: #72839b;

    --ar-primary: #38bdf8;
    --ar-success: #22c55e;
    --ar-warning: #f59e0b;
    --ar-danger: #f43f5e;
    --ar-purple: #a78bfa;

    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 22px;

    padding: 8px 0 36px;

    color: var(--ar-text);
}

/* =====================================================
   HEADER
===================================================== */

.accounts-receivable-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;
}

.accounts-receivable-header>div:first-child {
    min-width: 0;
}

.accounts-receivable-eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: #8191a8;
}

.accounts-receivable-header h1 {
    margin: 0;

    font-size: 34px;
    line-height: 1.12;

    font-weight: 800;

    letter-spacing: -0.03em;

    color: var(--ar-text);
}

.accounts-receivable-header p {
    max-width: 760px;

    margin: 10px 0 0;

    font-size: 14px;
    line-height: 1.6;

    color: var(--ar-text-secondary);
}

.accounts-receivable-header-actions {
    display: flex;
    align-items: center;

    gap: 9px;
}

/* =====================================================
   BUTTONS
===================================================== */

.accounts-receivable-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 14px;

    border-radius: 9px;

    font: inherit;
    font-size: 12px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.accounts-receivable-button:active:not(:disabled) {
    transform: translateY(1px);
}

.accounts-receivable-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

.accounts-receivable-button.primary {
    background: #0e7490;

    border: 1px solid #0891b2;

    color: #ffffff;
}

.accounts-receivable-button.primary:hover:not(:disabled) {
    background: #0891b2;
}

.accounts-receivable-button.secondary {
    background: #101e31;

    border: 1px solid #293c55;

    color: #b5c3d4;
}

.accounts-receivable-button.secondary:hover:not(:disabled) {
    background: #16263b;

    border-color: #3a526f;
}

/* =====================================================
   SUMMARY
===================================================== */

.accounts-receivable-summary {
    display: grid;

    grid-template-columns:
        repeat(5,
            minmax(0, 1fr));

    gap: 14px;
}

.accounts-receivable-summary-card {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 8px;

    padding: 18px;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            #0f1c30 0%,
            #0b1728 100%);

    border: 1px solid var(--ar-border);

    border-radius: 12px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.14);
}

.accounts-receivable-summary-card::before {
    content: '';

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 2px;

    background: #64748b;
}

.accounts-receivable-summary-card>span {
    font-size: 11px;
    font-weight: 700;

    color: var(--ar-text-secondary);
}

.accounts-receivable-summary-card>strong {
    overflow: hidden;

    font-size: 25px;
    line-height: 1.1;

    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--ar-text);
}

.accounts-receivable-summary-card>small {
    font-size: 11px;

    color: var(--ar-text-muted);
}

.accounts-receivable-summary-card.tone-draft::before {
    background: #94a3b8;
}

.accounts-receivable-summary-card.tone-draft>strong {
    color: #cbd5e1;
}

.accounts-receivable-summary-card.tone-open::before {
    background: #38bdf8;
}

.accounts-receivable-summary-card.tone-open>strong {
    color: #7dd3fc;
}

.accounts-receivable-summary-card.tone-invoiced::before {
    background: #a78bfa;
}

.accounts-receivable-summary-card.tone-invoiced>strong {
    color: #c4b5fd;
}

.accounts-receivable-summary-card.tone-paid::before {
    background: #22c55e;
}

.accounts-receivable-summary-card.tone-paid>strong {
    color: #4ade80;
}

.accounts-receivable-summary-card.tone-money::before {
    background: #14b8a6;
}

.accounts-receivable-summary-card.tone-money>strong {
    color: #2dd4bf;

    font-size: 22px;
}

/* =====================================================
   TOOLBAR
===================================================== */

.accounts-receivable-toolbar {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 12px;

    background: var(--ar-surface);

    border: 1px solid var(--ar-border);

    border-radius: 12px;
}

.accounts-receivable-search {
    height: 42px;

    flex: 1;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 13px;

    background: #091426;

    border: 1px solid #243750;

    border-radius: 8px;
}

.accounts-receivable-search:focus-within {
    border-color: #3c82aa;

    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.08);
}

.accounts-receivable-search>span {
    font-size: 17px;

    color: #637890;
}

.accounts-receivable-search input {
    width: 100%;

    padding: 0;

    background: transparent;

    border: 0;
    outline: 0;

    color: var(--ar-text);

    font: inherit;
    font-size: 13px;
}

.accounts-receivable-search input::placeholder {
    color: #657991;
}

.accounts-receivable-toolbar select {
    height: 42px;

    min-width: 190px;

    padding: 0 35px 0 12px;

    background: #091426;

    border: 1px solid #243750;

    border-radius: 8px;

    color: #dce6f2;

    outline: none;

    font: inherit;
    font-size: 12px;
    font-weight: 600;
}

/* =====================================================
   MAIN CARD
===================================================== */

.accounts-receivable-card {
    min-width: 0;

    overflow: hidden;

    background: var(--ar-surface);

    border: 1px solid var(--ar-border);

    border-radius: 12px;

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.16);
}

/* =====================================================
   TABLE
===================================================== */

.accounts-receivable-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.accounts-receivable-table {
    width: 100%;

    min-width: 1050px;

    border-collapse: collapse;
}

.accounts-receivable-table thead {
    background: #0a1627;
}

.accounts-receivable-table th {
    padding: 13px 14px;

    border-bottom: 1px solid var(--ar-border);

    color: #8192aa;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.08em;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.accounts-receivable-table td {
    padding: 15px 14px;

    border-bottom: 1px solid var(--ar-border-soft);

    vertical-align: middle;

    color: #b7c4d5;

    font-size: 12px;
}

.accounts-receivable-table tbody tr {
    background: #0d192b;

    transition: background 0.15s ease;
}

.accounts-receivable-table tbody tr:hover {
    background: #112139;
}

.accounts-receivable-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =====================================================
   BILL NUMBER
===================================================== */

.accounts-receivable-bill-number {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.accounts-receivable-bill-number strong {
    color: #f1f5f9;

    font-size: 13px;
    font-weight: 800;
}

.accounts-receivable-bill-number small {
    color: #62758d;

    font-size: 10px;
}

/* =====================================================
   CUSTOMER
===================================================== */

.accounts-receivable-customer {
    max-width: 240px;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.accounts-receivable-customer strong {
    overflow: hidden;

    color: #e9eef5;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-receivable-customer small {
    color: #71849d;

    font-size: 10px;
}

/* =====================================================
   PERIOD
===================================================== */

.accounts-receivable-period {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #9aabc0;

    font-size: 11px;

    white-space: nowrap;
}

.accounts-receivable-period small {
    color: #53677f;
}

/* =====================================================
   ITEM COUNT
===================================================== */

.accounts-receivable-item-count {
    min-width: 29px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    background: #13243a;

    border: 1px solid #263b54;

    border-radius: 999px;

    color: #9db0c7;

    font-size: 10px;
    font-weight: 800;
}

/* =====================================================
   MONEY
===================================================== */

.accounts-receivable-money {
    color: #aebccd;

    font-size: 12px;
    font-weight: 700;

    white-space: nowrap;
}

.accounts-receivable-total {
    color: #2dd4bf;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
}

/* =====================================================
   VIEW BUTTON
===================================================== */

.accounts-receivable-view-button {
    min-height: 32px;

    padding: 0 11px;

    background:
        rgba(56, 189, 248, 0.08);

    border:
        1px solid rgba(56, 189, 248, 0.18);

    border-radius: 7px;

    color: #7dd3fc;

    font: inherit;
    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
}

.accounts-receivable-view-button:hover {
    background:
        rgba(56, 189, 248, 0.15);
}

/* =====================================================
   STATUS
===================================================== */

.accounts-receivable-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border: 1px solid transparent;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

.accounts-receivable-status>span {
    width: 6px;
    height: 6px;

    border-radius: 50%;
}

.accounts-receivable-status.draft {
    background: rgba(148, 163, 184, 0.1);

    border-color: rgba(148, 163, 184, 0.18);

    color: #cbd5e1;
}

.accounts-receivable-status.draft>span {
    background: #94a3b8;
}

.accounts-receivable-status.open {
    background: rgba(56, 189, 248, 0.1);

    border-color: rgba(56, 189, 248, 0.2);

    color: #7dd3fc;
}

.accounts-receivable-status.open>span {
    background: #38bdf8;
}

.accounts-receivable-status.invoiced {
    background: rgba(167, 139, 250, 0.1);

    border-color: rgba(167, 139, 250, 0.2);

    color: #c4b5fd;
}

.accounts-receivable-status.invoiced>span {
    background: #a78bfa;
}

.accounts-receivable-status.partial {
    background: rgba(245, 158, 11, 0.1);

    border-color: rgba(245, 158, 11, 0.2);

    color: #fbbf24;
}

.accounts-receivable-status.partial>span {
    background: #f59e0b;
}

.accounts-receivable-status.paid {
    background: rgba(34, 197, 94, 0.1);

    border-color: rgba(34, 197, 94, 0.2);

    color: #4ade80;
}

.accounts-receivable-status.paid>span {
    background: #22c55e;
}

.accounts-receivable-status.canceled {
    background: rgba(244, 63, 94, 0.1);

    border-color: rgba(244, 63, 94, 0.18);

    color: #fb7185;
}

.accounts-receivable-status.canceled>span {
    background: #f43f5e;
}

/* =====================================================
   MODAL BACKDROPS
===================================================== */

.accounts-receivable-modal-backdrop,
.accounts-receivable-selection-backdrop {
    position: fixed;

    inset: 0;

    z-index: 1200;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(2, 8, 23, 0.8);

    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);
}

.accounts-receivable-selection-backdrop {
    z-index: 1250;
}

/* =====================================================
   CREATE MODAL
===================================================== */

.accounts-receivable-create-modal {
    width: min(680px, 100%);

    max-height: calc(100vh - 48px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            #0e1a2d 0%,
            #091426 100%);

    border: 1px solid #243750;

    border-radius: 15px;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.5);
}

/* =====================================================
   DETAIL MODAL
===================================================== */

.accounts-receivable-detail-modal {
    width: min(1080px, 100%);

    height: min(900px, calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);

    display: flex;
    flex-direction: column;

    overflow: hidden;
}

/* =====================================================
   SELECTION MODAL
===================================================== */

.accounts-receivable-selection-modal {
    width: min(1050px, 100%);

    max-height: calc(100vh - 48px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            #0e1a2d 0%,
            #091426 100%);

    border: 1px solid #28405c;

    border-radius: 15px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.58);
}

/* =====================================================
   MODAL HEADER
===================================================== */

.accounts-receivable-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    padding: 20px 22px;

    background: #0b1728;

    border-bottom: 1px solid #20324a;
}

.accounts-receivable-modal-header>div:first-child {
    min-width: 0;
}

.accounts-receivable-modal-header>div>span {
    display: inline-block;

    margin-bottom: 6px;

    color: #70839b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.accounts-receivable-modal-title-row {
    display: flex;
    align-items: center;

    gap: 11px;

    flex-wrap: wrap;
}

.accounts-receivable-modal-title-row h2 {
    margin: 0;

    color: #f4f7fb;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: -0.02em;
}

.accounts-receivable-modal-header p {
    margin: 7px 0 0;

    color: #8799b0;

    font-size: 11px;
}

.accounts-receivable-modal-header>button {
    width: 35px;
    height: 35px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: #101e31;

    border: 1px solid #263a52;

    border-radius: 8px;

    color: #91a2b8;

    font-size: 21px;

    cursor: pointer;
}

.accounts-receivable-modal-header>button:hover {
    background: #18273c;

    color: #ffffff;
}

/* =====================================================
   CREATE CONTENT
===================================================== */

.accounts-receivable-create-content {
    flex: 1;

    overflow-y: auto;

    padding: 20px 22px;

    display: flex;
    flex-direction: column;

    gap: 17px;
}

.accounts-receivable-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 14px;
}

/* =====================================================
   FORM FIELD
===================================================== */

.accounts-receivable-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.accounts-receivable-field.full {
    width: 100%;
}

.accounts-receivable-field>span {
    color: #b5c2d2;

    font-size: 10px;
    font-weight: 800;
}

.accounts-receivable-field input,
.accounts-receivable-field select,
.accounts-receivable-field textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    background: #091426;

    border: 1px solid #263a53;

    border-radius: 8px;

    outline: none;

    color: #e1e8f1;

    font: inherit;
    font-size: 12px;
}

.accounts-receivable-field input,
.accounts-receivable-field select {
    min-height: 41px;
}

.accounts-receivable-field textarea {
    resize: vertical;

    min-height: 95px;
}

.accounts-receivable-field input:focus,
.accounts-receivable-field select:focus,
.accounts-receivable-field textarea:focus {
    border-color: #3c82aa;

    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.07);
}

.accounts-receivable-field>small {
    align-self: flex-end;

    color: #61748c;

    font-size: 9px;
}

/* =====================================================
   MODAL FOOTER
===================================================== */

.accounts-receivable-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    padding: 14px 22px;

    background: #091426;

    border-top: 1px solid #20324a;
}

.accounts-receivable-modal-footer button,
.accounts-receivable-selection-footer button {
    min-height: 38px;

    padding: 0 14px;

    border-radius: 8px;

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.accounts-receivable-modal-footer button.cancel,
.accounts-receivable-selection-footer button.cancel {
    background: #101e31;

    border: 1px solid #293c55;

    color: #aebdce;
}

.accounts-receivable-modal-footer button.primary,
.accounts-receivable-selection-footer button.primary {
    background: #0e7490;

    border: 1px solid #0891b2;

    color: #ffffff;
}

.accounts-receivable-modal-footer button.primary:hover:not(:disabled),
.accounts-receivable-selection-footer button.primary:hover:not(:disabled) {
    background: #0891b2;
}

.accounts-receivable-modal-footer button:disabled,
.accounts-receivable-selection-footer button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}

/* =====================================================
   DETAIL CONTENT
===================================================== */

.accounts-receivable-detail-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.accounts-receivable-detail-summary {
    display: grid;

    grid-template-columns:
        repeat(5,
            minmax(0, 1fr));

    gap: 11px;
}

.accounts-receivable-detail-meta {
    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 11px;
}

.accounts-receivable-detail-value {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 11px 12px;

    background: #091426;

    border: 1px solid #1e3149;

    border-radius: 8px;
}

.accounts-receivable-detail-value>span {
    color: #60738c;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.accounts-receivable-detail-value>strong {
    overflow: hidden;

    color: #cbd7e5;

    font-size: 12px;

    text-overflow: ellipsis;
}

.accounts-receivable-detail-value>strong.important {
    color: #2dd4bf;

    font-size: 14px;
    font-weight: 800;
}

/* =====================================================
   NOTES
===================================================== */

.accounts-receivable-notes {
    padding: 13px 14px;

    background: #0c192b;

    border: 1px solid #1f324a;

    border-radius: 9px;
}

.accounts-receivable-notes>span {
    display: block;

    margin-bottom: 6px;

    color: #64778f;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.accounts-receivable-notes p {
    margin: 0;

    color: #a7b5c7;

    font-size: 11px;
    line-height: 1.55;
}

/* =====================================================
   ITEMS SECTION
===================================================== */

.accounts-receivable-items-section {
    overflow: hidden;

    background: #0b1728;

    border: 1px solid #20324a;

    border-radius: 11px;
}

.accounts-receivable-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 15px;

    border-bottom: 1px solid #20324a;
}

.accounts-receivable-items-header>div {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.accounts-receivable-items-header span {
    color: #657991;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.accounts-receivable-items-header h3 {
    margin: 0;

    color: #e8eef6;

    font-size: 14px;
}

/* =====================================================
   ITEMS TABLE
===================================================== */

.accounts-receivable-items-table-wrapper {
    overflow-x: auto;
}

.accounts-receivable-items-table {
    width: 100%;

    min-width: 800px;

    border-collapse: collapse;
}

.accounts-receivable-items-table th {
    padding: 11px 12px;

    background: #091426;

    border-bottom: 1px solid #20324a;

    color: #74869f;

    font-size: 9px;
    font-weight: 800;

    text-align: left;
    text-transform: uppercase;
}

.accounts-receivable-items-table td {
    padding: 13px 12px;

    border-bottom: 1px solid #182a40;

    color: #aebdce;

    font-size: 11px;
}

.accounts-receivable-items-table tbody tr:last-child td {
    border-bottom: 0;
}

.accounts-receivable-item-description {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.accounts-receivable-item-description strong {
    color: #e5ecf5;

    font-size: 11px;
}

.accounts-receivable-item-description small {
    color: #60738b;

    font-size: 9px;
}

/* =====================================================
   SOURCE BADGE
===================================================== */

.accounts-receivable-source {
    display: inline-flex;

    padding: 5px 8px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;
}

.accounts-receivable-source.storage {
    background: rgba(56, 189, 248, 0.1);

    color: #7dd3fc;
}

.accounts-receivable-source.service {
    background: rgba(167, 139, 250, 0.1);

    color: #c4b5fd;
}

.accounts-receivable-source.manual {
    background: rgba(148, 163, 184, 0.1);

    color: #cbd5e1;
}

/* =====================================================
   REMOVE BUTTON
===================================================== */

.accounts-receivable-remove-button {
    min-height: 30px;

    padding: 0 9px;

    background: rgba(244, 63, 94, 0.08);

    border: 1px solid rgba(244, 63, 94, 0.18);

    border-radius: 7px;

    color: #fb7185;

    font: inherit;
    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
}

.accounts-receivable-remove-button:hover:not(:disabled) {
    background: rgba(244, 63, 94, 0.16);
}

.accounts-receivable-remove-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

/* =====================================================
   EMPTY ITEMS
===================================================== */

.accounts-receivable-items-empty {
    min-height: 130px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 20px;

    text-align: center;
}

.accounts-receivable-items-empty strong {
    color: #dce5ef;

    font-size: 12px;
}

.accounts-receivable-items-empty p {
    margin: 0;

    color: #71849b;

    font-size: 10px;
}

/* =====================================================
   SELECTION CONTENT
===================================================== */

.accounts-receivable-selection-content {
    flex: 1;
    min-height: 0;

    overflow-y: auto;

    padding: 20px 22px;

    display: flex;
    flex-direction: column;

    gap: 17px;
}

.accounts-receivable-available-summary {
    display: grid;

    grid-template-columns:
        repeat(5,
            minmax(0, 1fr));

    gap: 10px;
}

/* =====================================================
   AVAILABLE SECTION
===================================================== */

.accounts-receivable-available-section {
    overflow: hidden;

    background: #0b1728;

    border: 1px solid #20324a;

    border-radius: 11px;
}

.accounts-receivable-available-section>header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 13px 14px;

    border-bottom: 1px solid #20324a;
}

.accounts-receivable-available-section>header h3 {
    margin: 0 0 4px;

    color: #e4ebf4;

    font-size: 13px;
}

.accounts-receivable-available-section>header p {
    margin: 0;

    color: #71839a;

    font-size: 10px;
}

.accounts-receivable-available-actions {
    display: flex;
    align-items: center;

    gap: 9px;
}

.accounts-receivable-available-actions>span {
    min-width: 28px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 7px;

    background: #13243a;

    border-radius: 999px;

    color: #9cb0c7;

    font-size: 9px;
    font-weight: 800;
}

.accounts-receivable-available-actions button {
    padding: 0;

    background: transparent;

    border: 0;

    color: #7dd3fc;

    font: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;
}

/* =====================================================
   AVAILABLE LIST
===================================================== */

.accounts-receivable-available-list {
    display: flex;
    flex-direction: column;
}

.accounts-receivable-available-row {
    width: 100%;

    display: grid;

    grid-template-columns:
        30px minmax(0, 1fr) auto;

    align-items: center;

    gap: 11px;

    padding: 12px 14px;

    background: transparent;

    border: 0;
    border-bottom: 1px solid #182a40;

    color: inherit;

    text-align: left;

    cursor: pointer;

    transition: background 0.15s ease;
}

.accounts-receivable-available-row:last-child {
    border-bottom: 0;
}

.accounts-receivable-available-row:hover {
    background: #102039;
}

.accounts-receivable-available-row.selected {
    background:
        rgba(56, 189, 248, 0.07);
}

.accounts-receivable-checkbox {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #091426;

    border: 1px solid #314660;

    border-radius: 6px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 900;
}

.accounts-receivable-available-row.selected .accounts-receivable-checkbox {
    background: #0e7490;

    border-color: #22a7c9;
}

.accounts-receivable-available-main {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.accounts-receivable-available-main strong {
    overflow: hidden;

    color: #e3ebf5;

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-receivable-available-main small {
    color: #70839a;

    font-size: 9px;
}

.accounts-receivable-available-price {
    display: flex;
    flex-direction: column;

    align-items: flex-end;

    gap: 4px;

    white-space: nowrap;
}

.accounts-receivable-available-price span {
    color: #72849a;

    font-size: 9px;
}

.accounts-receivable-available-price strong {
    color: #2dd4bf;

    font-size: 12px;
}

/* =====================================================
   AVAILABLE EMPTY
===================================================== */

.accounts-receivable-available-empty {
    padding: 25px;

    color: #657990;

    font-size: 10px;

    text-align: center;
}

/* =====================================================
   SELECTION FOOTER
===================================================== */

.accounts-receivable-selection-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 14px 22px;

    background: #091426;

    border-top: 1px solid #20324a;
}

.accounts-receivable-selection-footer>div:first-child {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.accounts-receivable-selection-footer>div:first-child span {
    color: #71849a;

    font-size: 9px;
}

.accounts-receivable-selection-footer>div:first-child strong {
    color: #2dd4bf;

    font-size: 15px;
}

.accounts-receivable-selection-footer>div:last-child {
    display: flex;

    gap: 8px;
}

/* =====================================================
   LOADING / EMPTY
===================================================== */

.accounts-receivable-loading {
    min-height: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 11px;

    color: #778aa2;

    font-size: 11px;
}

.accounts-receivable-spinner {
    width: 26px;
    height: 26px;

    border: 3px solid #22364e;
    border-top-color: #38bdf8;

    border-radius: 50%;

    animation:
        accounts-receivable-spin 0.75s linear infinite;
}

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

.accounts-receivable-empty {
    min-height: 250px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 30px;

    text-align: center;
}

.accounts-receivable-empty>span {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #122239;

    border: 1px solid #243950;

    border-radius: 12px;

    color: #6f829a;

    font-size: 20px;
    font-weight: 800;
}

.accounts-receivable-empty strong {
    color: #e4ebf4;

    font-size: 14px;
}

.accounts-receivable-empty p {
    margin: 0;

    color: #71839a;

    font-size: 11px;
}

/* =====================================================
   NO TERMINAL
===================================================== */

.accounts-receivable-empty-terminal {
    padding: 22px;

    background: var(--ar-surface);

    border: 1px solid var(--ar-border);

    border-radius: 12px;
}

.accounts-receivable-empty-terminal strong {
    color: #f1f5f9;

    font-size: 15px;
}

.accounts-receivable-empty-terminal p {
    margin: 7px 0 0;

    color: #8394aa;

    font-size: 12px;
}

/* =====================================================
   MUTED
===================================================== */

.accounts-receivable-muted {
    color: #64778f;

    font-size: 10px;
}

/* =====================================================
   SCROLLBARS
===================================================== */

.accounts-receivable-table-wrapper::-webkit-scrollbar,
.accounts-receivable-items-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.accounts-receivable-detail-content::-webkit-scrollbar,
.accounts-receivable-selection-content::-webkit-scrollbar,
.accounts-receivable-create-content::-webkit-scrollbar {
    width: 8px;
}

.accounts-receivable-table-wrapper::-webkit-scrollbar-track,
.accounts-receivable-items-table-wrapper::-webkit-scrollbar-track,
.accounts-receivable-detail-content::-webkit-scrollbar-track,
.accounts-receivable-selection-content::-webkit-scrollbar-track,
.accounts-receivable-create-content::-webkit-scrollbar-track {
    background: #091426;
}

.accounts-receivable-table-wrapper::-webkit-scrollbar-thumb,
.accounts-receivable-items-table-wrapper::-webkit-scrollbar-thumb,
.accounts-receivable-detail-content::-webkit-scrollbar-thumb,
.accounts-receivable-selection-content::-webkit-scrollbar-thumb,
.accounts-receivable-create-content::-webkit-scrollbar-thumb {
    background: #293e57;

    border-radius: 999px;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1350px) {
    .accounts-receivable-summary {
        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));
    }

    .accounts-receivable-detail-summary {
        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));
    }

    .accounts-receivable-available-summary {
        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .accounts-receivable-header {
        flex-direction: column;
    }

    .accounts-receivable-header-actions {
        width: 100%;
    }

    .accounts-receivable-header-actions button {
        flex: 1;
    }

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

    .accounts-receivable-toolbar {
        flex-direction: column;

        align-items: stretch;
    }

    .accounts-receivable-toolbar select,
    .accounts-receivable-toolbar button {
        width: 100%;
    }

    .accounts-receivable-detail-summary,
    .accounts-receivable-detail-meta,
    .accounts-receivable-available-summary {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .accounts-receivable-summary {
        grid-template-columns: 1fr;
    }

    .accounts-receivable-modal-backdrop,
    .accounts-receivable-selection-backdrop {
        align-items: flex-end;

        padding: 12px;
    }

    .accounts-receivable-create-modal,
    .accounts-receivable-detail-modal,
    .accounts-receivable-selection-modal {
        max-height: calc(100vh - 24px);
    }

    .accounts-receivable-form-grid,
    .accounts-receivable-detail-summary,
    .accounts-receivable-detail-meta,
    .accounts-receivable-available-summary {
        grid-template-columns: 1fr;
    }

    .accounts-receivable-selection-footer {
        align-items: stretch;

        flex-direction: column;
    }

    .accounts-receivable-selection-footer>div:last-child {
        width: 100%;
    }

    .accounts-receivable-selection-footer>div:last-child button {
        flex: 1;
    }

    .accounts-receivable-available-row {
        grid-template-columns:
            28px minmax(0, 1fr);
    }

    .accounts-receivable-available-price {
        grid-column:
            2;

        align-items:
            flex-start;
    }
}

/* =====================================================
   CUSTOMER SELECTOR
===================================================== */

.accounts-receivable-customer-field {
    position: relative;

    z-index: 40;
}

.accounts-receivable-customer-selector {
    position: relative;

    width: 100%;
}

.accounts-receivable-customer-search-box {
    min-height: 41px;

    display: flex;
    align-items: center;

    gap: 9px;

    padding: 0 11px;

    background: #091426;

    border: 1px solid #263a53;

    border-radius: 8px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.accounts-receivable-customer-search-box:focus-within {
    border-color: #3c82aa;

    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.07);
}

.accounts-receivable-customer-search-box>span:first-child {
    flex: 0 0 auto;

    color: #657991;

    font-size: 15px;
}

.accounts-receivable-customer-search-box input {
    min-width: 0;

    flex: 1;

    padding: 0;

    background: transparent;

    border: 0;

    outline: none;

    color: #e1e8f1;

    font: inherit;
    font-size: 12px;
}

.accounts-receivable-customer-search-box input::placeholder {
    color: #60738b;
}

.accounts-receivable-customer-loading {
    flex: 0 0 auto;

    color: #7dd3fc;

    font-size: 10px;
}

/* =====================================================
   CUSTOMER DROPDOWN
===================================================== */

.accounts-receivable-customer-dropdown {
    position: absolute;

    top: calc(100% + 6px);
    left: 0;
    right: 0;

    z-index: 200;

    max-height: 320px;

    overflow-y: auto;
    overflow-x: hidden;

    background:
        linear-gradient(145deg,
            #0d1b2f 0%,
            #091426 100%);

    border: 1px solid #2a405b;

    border-radius: 9px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.48);
}

.accounts-receivable-customer-option {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    padding: 11px 12px;

    background: transparent;

    border: 0;
    border-bottom: 1px solid #182a40;

    color: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.accounts-receivable-customer-option:last-child {
    border-bottom: 0;
}

.accounts-receivable-customer-option:hover {
    background: #12243b;
}

.accounts-receivable-customer-option.selected {
    background:
        rgba(56, 189, 248, 0.08);
}

/* =====================================================
   CUSTOMER OPTION MAIN
===================================================== */

.accounts-receivable-customer-option-main {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.accounts-receivable-customer-option-main strong {
    overflow: hidden;

    color: #eef4fb;

    font-size: 11px;
    font-weight: 800;

    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-receivable-customer-option-main span {
    overflow: hidden;

    color: #7d90a7;

    font-size: 9px;

    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =====================================================
   CUSTOMER OPTION META
===================================================== */

.accounts-receivable-customer-option-meta {
    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 2px;
}

.accounts-receivable-customer-option-meta span {
    color: #72859d;

    font-size: 9px;

    white-space: nowrap;
}

.accounts-receivable-customer-option-meta span:first-child {
    color: #7dd3fc;

    font-weight: 800;
}

/* =====================================================
   CUSTOMER DROPDOWN EMPTY
===================================================== */

.accounts-receivable-customer-dropdown-empty {
    padding: 22px 14px;

    color: #71849b;

    font-size: 10px;

    text-align: center;
}

/* =====================================================
   SELECTED CUSTOMER
===================================================== */

.accounts-receivable-selected-customer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 7px;

    padding: 9px 10px;

    background:
        rgba(56, 189, 248, 0.06);

    border:
        1px solid rgba(56, 189, 248, 0.16);

    border-radius: 8px;
}

.accounts-receivable-selected-customer>div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;
}

.accounts-receivable-selected-customer span {
    color: #607890;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accounts-receivable-selected-customer strong {
    overflow: hidden;

    color: #dce9f5;

    font-size: 10px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-receivable-selected-customer small {
    color: #7690aa;

    font-size: 9px;
}

.accounts-receivable-selected-customer button {
    flex: 0 0 auto;

    padding: 5px 8px;

    background: transparent;

    border:
        1px solid rgba(56, 189, 248, 0.22);

    border-radius: 6px;

    color: #7dd3fc;

    font: inherit;
    font-size: 9px;
    font-weight: 800;

    cursor: pointer;
}

.accounts-receivable-selected-customer button:hover {
    background:
        rgba(56, 189, 248, 0.08);
}

/* =====================================================
   DROPDOWN SCROLLBAR
===================================================== */

.accounts-receivable-customer-dropdown::-webkit-scrollbar {
    width: 7px;
}

.accounts-receivable-customer-dropdown::-webkit-scrollbar-track {
    background: #091426;
}

.accounts-receivable-customer-dropdown::-webkit-scrollbar-thumb {
    background: #29405b;

    border-radius: 999px;
}

/* =====================================================
   CUSTOMER SELECTOR RESPONSIVE
===================================================== */

@media (max-width: 650px) {
    .accounts-receivable-customer-option {
        align-items: flex-start;

        flex-direction: column;
    }

    .accounts-receivable-customer-option-meta {
        width: 100%;

        align-items: flex-start;

        flex-direction: row;

        gap: 8px;

        flex-wrap: wrap;
    }

    .accounts-receivable-selected-customer {
        align-items: flex-start;

        flex-direction: column;
    }
}

/* =====================================================
   BILL ROW ACTIONS
===================================================== */

.accounts-receivable-row-actions {
    display: flex;
    align-items: center;

    gap: 7px;
}

.accounts-receivable-delete-button {
    min-height: 32px;

    padding: 0 10px;

    background:
        rgba(244, 63, 94, 0.08);

    border:
        1px solid rgba(244, 63, 94, 0.18);

    border-radius: 7px;

    color: #fb7185;

    font: inherit;
    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
}

.accounts-receivable-delete-button:hover:not(:disabled) {
    background:
        rgba(244, 63, 94, 0.16);
}

.accounts-receivable-delete-button:disabled {
    opacity: 0.5;

    cursor: not-allowed;
}

/* =====================================================
   AVAILABLE FILTERS
===================================================== */

.accounts-receivable-available-filters {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.5fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;

    align-items: end;

    gap: 10px;

    padding: 14px;

    background: #0b1728;

    border: 1px solid #20324a;

    border-radius: 11px;
}

.accounts-receivable-available-filters .accounts-receivable-field {
    min-width: 0;
}

.accounts-receivable-available-filters .accounts-receivable-field input,
.accounts-receivable-available-filters .accounts-receivable-field select {
    width: 100%;

    min-height: 40px;

    box-sizing: border-box;
}

.accounts-receivable-available-filters .accounts-receivable-button {
    min-height: 40px;

    white-space: nowrap;
}

/* =====================================================
   CONTAINER GROUPS
===================================================== */

.accounts-receivable-container-groups {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

/* =====================================================
   CONTAINER GROUP
===================================================== */

.accounts-receivable-container-group {
    overflow: hidden;

    background:
        linear-gradient(145deg,
            #0d192b 0%,
            #0a1627 100%);

    border: 1px solid #20324a;

    border-radius: 11px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.accounts-receivable-container-group:hover {
    border-color: #2a405b;
}

.accounts-receivable-container-group.selected {
    border-color:
        rgba(56, 189, 248, 0.42);

    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.07);

    background:
        linear-gradient(145deg,
            rgba(14, 116, 144, 0.1) 0%,
            #0a1627 100%);
}

/* =====================================================
   CONTAINER HEADER
===================================================== */

.accounts-receivable-container-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 14px 15px;

    background: #0d192b;
}

.accounts-receivable-container-group.selected .accounts-receivable-container-group-header {
    background:
        rgba(56, 189, 248, 0.035);
}

/* =====================================================
   CONTAINER MAIN
===================================================== */

.accounts-receivable-container-group-main {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.accounts-receivable-container-group-main>strong {
    color: #eef4fb;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.01em;
}

.accounts-receivable-container-group-main>span {
    color: #8194ab;

    font-size: 10px;
}

.accounts-receivable-container-group-main>small {
    color: #6c8098;

    font-size: 9px;
}

/* =====================================================
   CONTAINER ACTIONS
===================================================== */

.accounts-receivable-container-group-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

.accounts-receivable-container-select-button,
.accounts-receivable-container-expand-button {
    min-height: 32px;

    padding: 0 10px;

    border-radius: 7px;

    font: inherit;
    font-size: 9px;
    font-weight: 800;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

/* =====================================================
   SELECT ALL CONTAINER
===================================================== */

.accounts-receivable-container-select-button {
    background:
        rgba(56, 189, 248, 0.07);

    border:
        1px solid rgba(56, 189, 248, 0.18);

    color: #7dd3fc;
}

.accounts-receivable-container-select-button:hover {
    background:
        rgba(56, 189, 248, 0.13);

    border-color:
        rgba(56, 189, 248, 0.3);
}

/* =====================================================
   EXPAND BUTTON
===================================================== */

.accounts-receivable-container-expand-button {
    background: #101e31;

    border: 1px solid #293c55;

    color: #aebdce;
}

.accounts-receivable-container-expand-button:hover {
    background: #17283d;

    border-color: #3a526f;

    color: #e2e8f0;
}

/* =====================================================
   GROUP ITEMS
===================================================== */

.accounts-receivable-container-group-items {
    display: flex;
    flex-direction: column;

    border-top: 1px solid #20324a;

    background: #091426;
}

/* =====================================================
   ITEM ROW INSIDE CONTAINER GROUP
===================================================== */

.accounts-receivable-container-group-items .accounts-receivable-available-row {
    min-height: 58px;

    padding:
        11px 14px 11px 18px;

    background: #091426;
}

.accounts-receivable-container-group-items .accounts-receivable-available-row:hover {
    background: #102039;
}

.accounts-receivable-container-group-items .accounts-receivable-available-row.selected {
    background:
        rgba(56, 189, 248, 0.07);
}

/* =====================================================
   CONTAINER GROUP VISUAL MARKER
===================================================== */

.accounts-receivable-container-group-header::before {
    content: '';

    width: 3px;
    height: 42px;

    flex: 0 0 auto;

    margin-right: 1px;

    background: #33475f;

    border-radius: 999px;
}

.accounts-receivable-container-group.selected .accounts-receivable-container-group-header::before {
    background: #38bdf8;
}

/* =====================================================
   HEADER LAYOUT FIX
===================================================== */

.accounts-receivable-container-group-header {
    display: grid;

    grid-template-columns:
        3px minmax(0, 1fr) auto;
}

.accounts-receivable-container-group-header .accounts-receivable-container-group-main {
    grid-column: 2;
}

.accounts-receivable-container-group-header .accounts-receivable-container-group-actions {
    grid-column: 3;
}

/* =====================================================
   AVAILABLE SUMMARY SMALL IMPROVEMENT
===================================================== */

.accounts-receivable-available-summary {
    position: sticky;

    top: 0;

    z-index: 15;

    padding: 2px 0;

    background:
        linear-gradient(180deg,
            #0e1a2d 80%,
            rgba(14, 26, 45, 0));
}

/* =====================================================
   FILTER LOADING STATE
===================================================== */

.accounts-receivable-available-filters:has(+ .accounts-receivable-loading) {
    opacity: 0.85;
}

/* =====================================================
   AVAILABLE FILTER INPUTS
===================================================== */

.accounts-receivable-available-filters input,
.accounts-receivable-available-filters select {
    background: #091426;

    border: 1px solid #263a53;

    border-radius: 8px;

    color: #e2e8f0;

    outline: none;

    font: inherit;
    font-size: 11px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.accounts-receivable-available-filters input {
    padding: 0 11px;
}

.accounts-receivable-available-filters select {
    padding:
        0 34px 0 11px;
}

.accounts-receivable-available-filters input:focus,
.accounts-receivable-available-filters select:focus {
    border-color: #3c82aa;

    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.07);
}

.accounts-receivable-available-filters input::placeholder {
    color: #60738b;
}

/* =====================================================
   DATE INPUT
===================================================== */

.accounts-receivable-available-filters input[type='date'] {
    color-scheme: dark;
}

/* =====================================================
   GROUP CONTENT SPACING
===================================================== */

.accounts-receivable-container-group-items .accounts-receivable-available-main strong {
    font-size: 10px;
}

.accounts-receivable-container-group-items .accounts-receivable-available-main small {
    font-size: 9px;
}

/* =====================================================
   GROUP PRICE
===================================================== */

.accounts-receivable-container-group-items .accounts-receivable-available-price strong {
    font-size: 11px;
}

.accounts-receivable-container-group-items .accounts-receivable-available-price span {
    font-size: 8px;
}

/* =====================================================
   RESPONSIVE - FILTERS
===================================================== */

@media (max-width: 1100px) {
    .accounts-receivable-available-filters {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }

    .accounts-receivable-available-filters .accounts-receivable-button {
        width: 100%;
    }
}

@media (max-width: 750px) {
    .accounts-receivable-available-filters {
        grid-template-columns: 1fr;
    }

    .accounts-receivable-container-group-header {
        grid-template-columns:
            3px minmax(0, 1fr);
    }

    .accounts-receivable-container-group-header .accounts-receivable-container-group-main {
        grid-column: 2;
    }

    .accounts-receivable-container-group-header .accounts-receivable-container-group-actions {
        grid-column: 2;

        width: 100%;

        margin-top: 7px;

        justify-content: flex-start;
    }

    .accounts-receivable-container-group-actions button {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .accounts-receivable-container-group-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .accounts-receivable-container-group-actions button {
        width: 100%;
    }
}

/* =====================================================
   DETAIL ACTIONS
===================================================== */

.accounts-receivable-detail-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* =====================================================
   FINAL REVIEW - BACKDROP
===================================================== */

.accounts-receivable-review-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    overflow: hidden;

    background: rgba(2, 8, 23, 0.9);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =====================================================
   FINAL REVIEW - MODAL
===================================================== */

.accounts-receivable-review-modal {
    position: relative;
    z-index: 10000;

    width: min(1380px, calc(100vw - 40px));
    height: min(900px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);

    min-width: 0;
    min-height: 0;

    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #0e1a2d 0%,
            #091426 100%
        );

    border: 1px solid #28405c;
    border-radius: 16px;

    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.62);
}

/* =====================================================
   FINAL REVIEW - HEADER
===================================================== */

.accounts-receivable-review-modal > .accounts-receivable-modal-header {
    flex: 0 0 auto;

    padding: 18px 22px;

    background: #0b1728;

    border-bottom: 1px solid #20324a;
}

/* =====================================================
   FINAL REVIEW - CONTENT / SCROLL
===================================================== */

.accounts-receivable-review-content {
    min-width: 0;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    padding: 18px 20px 24px;

    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* IMPORTANT:
   Prevent sections from shrinking to fit the viewport.
   The content must keep its real height and the modal body must scroll. */
.accounts-receivable-review-content > * {
    flex: 0 0 auto;
}

.accounts-receivable-review-content::-webkit-scrollbar {
    width: 9px;
}

.accounts-receivable-review-content::-webkit-scrollbar-track {
    background: #081321;
}

.accounts-receivable-review-content::-webkit-scrollbar-thumb {
    background: #2b425d;
    border: 2px solid #081321;
    border-radius: 999px;
}

.accounts-receivable-review-content::-webkit-scrollbar-thumb:hover {
    background: #3a5675;
}

/* =====================================================
   FINAL REVIEW - VALIDATION
===================================================== */

.accounts-receivable-review-validation {
    width: 100%;
    min-height: 78px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 15px 17px;

    background: #0c182a;

    border: 1px solid;
    border-radius: 11px;
}

.accounts-receivable-review-validation > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.accounts-receivable-review-validation > div > strong {
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.accounts-receivable-review-validation > div > span {
    color: #91a4ba;

    font-size: 10px;
    line-height: 1.5;
}

.accounts-receivable-review-validation.success {
    background: rgba(34, 197, 94, 0.055);
    border-color: rgba(34, 197, 94, 0.36);
}

.accounts-receivable-review-validation.success > div > strong {
    color: #86efac;
}

.accounts-receivable-review-validation.error {
    background: rgba(244, 63, 94, 0.055);
    border-color: rgba(244, 63, 94, 0.36);
}

.accounts-receivable-review-validation.error > div > strong {
    color: #fda4af;
}

.accounts-receivable-review-validation-icon {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    font-size: 14px;
    font-weight: 900;
}

.accounts-receivable-review-validation.success
.accounts-receivable-review-validation-icon {
    color: #4ade80;

    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.accounts-receivable-review-validation.error
.accounts-receivable-review-validation-icon {
    color: #fb7185;

    background: rgba(251, 113, 133, 0.08);
    border: 1px solid rgba(251, 113, 133, 0.35);
}

/* =====================================================
   FINAL REVIEW - VALIDATION ERRORS
===================================================== */

.accounts-receivable-review-errors {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.accounts-receivable-review-errors > div {
    display: flex;
    align-items: flex-start;

    gap: 9px;

    padding: 10px 12px;

    background: rgba(244, 63, 94, 0.05);
    border: 1px solid rgba(244, 63, 94, 0.15);
    border-radius: 8px;
}

.accounts-receivable-review-errors > div > span {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    display: grid;
    place-items: center;

    margin-top: 1px;

    background: rgba(244, 63, 94, 0.12);
    border-radius: 50%;

    color: #fb7185;

    font-size: 10px;
    font-weight: 900;
}

.accounts-receivable-review-errors p {
    margin: 0;

    color: #c2cfdd;

    font-size: 10px;
    line-height: 1.5;
}

/* =====================================================
   FINAL REVIEW - SECTION
===================================================== */

.accounts-receivable-review-section {
    width: 100%;
    min-width: 0;

    overflow: visible;

    background: #0b1728;

    border: 1px solid #20324a;
    border-radius: 11px;
}

.accounts-receivable-review-section-header {
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 12px 15px;

    background:
        linear-gradient(
            180deg,
            #0f1d31 0%,
            #0c192b 100%
        );

    border-bottom: 1px solid #20324a;
    border-radius: 10px 10px 0 0;
}

.accounts-receivable-review-section-header > div {
    min-width: 0;
}

.accounts-receivable-review-section-header > div > span {
    display: block;

    margin-bottom: 3px;

    color: #38bdf8;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.accounts-receivable-review-section-header h3 {
    margin: 0;

    color: #edf4fb;

    font-size: 14px;
    font-weight: 850;
}

.accounts-receivable-review-section-header > small {
    color: #74879f;

    font-size: 9px;
    text-align: right;
}

/* =====================================================
   FINAL REVIEW - FISCAL DATA
===================================================== */

.accounts-receivable-review-fiscal-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 1px;

    background: #20324a;

    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* =====================================================
   FINAL REVIEW - BILL DATA
===================================================== */

.accounts-receivable-review-bill-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 1px;

    background: #20324a;

    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

/* =====================================================
   FINAL REVIEW - FIELD
===================================================== */

.accounts-receivable-review-field {
    min-width: 0;
    min-height: 86px;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 7px;

    padding: 13px 14px;

    background: #091426;
}

.accounts-receivable-review-field > span {
    color: #72859d;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.accounts-receivable-review-field > strong {
    display: block;

    overflow: visible;

    color: #e2eaf3;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.45;

    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.accounts-receivable-review-field.warning {
    background: rgba(244, 63, 94, 0.055);
}

.accounts-receivable-review-field.warning > span,
.accounts-receivable-review-field.warning > strong {
    color: #fda4af;
}

/* =====================================================
   FINAL REVIEW - CONTAINER LIST
===================================================== */

.accounts-receivable-review-containers {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    display: flex;
    flex-direction: column;

    gap: 12px;

    padding: 14px;
}

.accounts-receivable-review-container {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    overflow: hidden;

    background: #081322;

    border: 1px solid #21344c;
    border-radius: 10px;
}

/* =====================================================
   FINAL REVIEW - CONTAINER HEADER
===================================================== */

.accounts-receivable-review-container-header {
    min-height: 64px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 12px 15px;

    background: #0d1a2d;

    border-bottom: 1px solid #21344c;
}

.accounts-receivable-review-container-header > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}

.accounts-receivable-review-container-header > div:last-child {
    flex: 0 0 auto;

    align-items: flex-end;
    text-align: right;
}

.accounts-receivable-review-container-header strong {
    color: #edf5fd;

    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.accounts-receivable-review-container-header span {
    color: #70849b;

    font-size: 9px;
    line-height: 1.35;
}

/* =====================================================
   FINAL REVIEW - ITEMS
===================================================== */

.accounts-receivable-review-items {
    width: 100%;
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.accounts-receivable-review-item {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    display: grid;
    grid-template-columns:
        minmax(320px, 1fr)
        minmax(100px, 130px)
        minmax(100px, 130px)
        minmax(110px, 145px);

    align-items: center;

    gap: 14px;

    min-height: 72px;

    padding: 12px 15px;

    border-bottom: 1px solid rgba(71, 85, 105, 0.24);
}

.accounts-receivable-review-item:last-child {
    border-bottom: 0;
}

.accounts-receivable-review-item-description {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 11px;
}

.accounts-receivable-review-item-description > .accounts-receivable-source {
    flex: 0 0 auto;
}

.accounts-receivable-review-item-description > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.accounts-receivable-review-item-description strong {
    display: block;

    overflow: visible;

    color: #e0e8f2;

    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;

    white-space: normal;
    overflow-wrap: anywhere;
}

.accounts-receivable-review-item-description > div > span {
    color: #74879e;

    font-size: 9px;
    line-height: 1.4;
}

.accounts-receivable-review-item-values {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 4px;

    text-align: right;
}

.accounts-receivable-review-item-values > span {
    color: #64778e;

    font-size: 8px;
    font-weight: 750;

    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.accounts-receivable-review-item-values > strong {
    color: #cbd7e4;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

.accounts-receivable-review-item-values.total > strong {
    color: #2dd4bf;

    font-size: 12px;
}

/* =====================================================
   FINAL REVIEW - CONTAINER FOOTER
===================================================== */

.accounts-receivable-review-container-footer {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(100px, auto)
        minmax(100px, auto)
        minmax(110px, auto);

    align-items: center;

    gap: 22px;

    min-height: 62px;

    padding: 11px 15px;

    background: #0c192a;
    border-top: 1px solid #21344c;
}

.accounts-receivable-review-container-footer > span {
    color: #778aa1;

    font-size: 9px;
}

.accounts-receivable-review-container-footer > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: 3px;
}

.accounts-receivable-review-container-footer > div > span {
    color: #64778d;

    font-size: 8px;
    text-transform: uppercase;
}

.accounts-receivable-review-container-footer > div > strong {
    color: #cbd7e4;

    font-size: 10px;
    font-weight: 800;

    white-space: nowrap;
}

.accounts-receivable-review-container-footer > div.total > strong {
    color: #2dd4bf;

    font-size: 12px;
}

/* =====================================================
   FINAL REVIEW - GRAND TOTAL
===================================================== */

.accounts-receivable-review-total {
    width: 100%;
    min-width: 0;

    box-sizing: border-box;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(150px, 180px)
        minmax(150px, 180px)
        minmax(190px, 230px);

    align-items: stretch;

    overflow: hidden;

    background: #0b1728;

    border: 1px solid #263a53;
    border-radius: 11px;
}

.accounts-receivable-review-total::before {
    content: '';
}

.accounts-receivable-review-total > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    gap: 4px;

    padding: 12px 15px;

    border-left: 1px solid #263a53;
}

.accounts-receivable-review-total span {
    color: #70839a;

    font-size: 8px;
    font-weight: 750;

    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accounts-receivable-review-total strong {
    color: #d7e1ec;

    font-size: 11px;
    font-weight: 850;

    white-space: nowrap;
}

.accounts-receivable-review-total .grand-total {
    background: rgba(56, 189, 248, 0.055);
}

.accounts-receivable-review-total .grand-total span {
    color: #7dd3fc;
}

.accounts-receivable-review-total .grand-total strong {
    color: #38bdf8;

    font-size: 18px;
    font-weight: 900;
}

/* =====================================================
   FINAL REVIEW - WARNING
===================================================== */

.accounts-receivable-review-warning {
    width: 100%;

    box-sizing: border-box;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    padding: 13px 15px;

    background: rgba(245, 158, 11, 0.045);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
}

.accounts-receivable-review-warning > span {
    width: 25px;
    height: 25px;

    flex: 0 0 25px;

    display: grid;
    place-items: center;

    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 50%;

    color: #fbbf24;

    font-size: 11px;
    font-weight: 900;
}

.accounts-receivable-review-warning > div {
    min-width: 0;
}

.accounts-receivable-review-warning strong {
    display: block;

    margin-bottom: 3px;

    color: #fcd34d;

    font-size: 10px;
    font-weight: 850;
}

.accounts-receivable-review-warning p {
    margin: 0;

    color: #9aaabd;

    font-size: 9px;
    line-height: 1.5;
}

/* =====================================================
   FINAL REVIEW - FOOTER
===================================================== */

.accounts-receivable-review-footer {
    flex: 0 0 auto;

    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    padding: 12px 20px;

    background: #091426;
    border-top: 1px solid #263a53;
}

.accounts-receivable-review-footer button {
    min-height: 40px;

    padding: 0 15px;

    border-radius: 8px;

    font: inherit;
    font-size: 10px;
    font-weight: 850;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease,
        transform 0.15s ease;
}

.accounts-receivable-review-footer button:active:not(:disabled) {
    transform: translateY(1px);
}

.accounts-receivable-review-footer .cancel {
    background: #101e31;
    border: 1px solid #2b405a;
    color: #aebdce;
}

.accounts-receivable-review-footer .cancel:hover:not(:disabled) {
    background: #17283d;
    border-color: #3a526f;
}

.accounts-receivable-review-footer .primary {
    background: #0284c7;
    border: 1px solid #0ea5e9;
    color: #f8fafc;

    box-shadow: 0 7px 20px rgba(2, 132, 199, 0.18);
}

.accounts-receivable-review-footer .primary:hover:not(:disabled) {
    background: #0ea5e9;
}

.accounts-receivable-review-footer button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* =====================================================
   FINAL REVIEW - LAPTOP
===================================================== */

@media (max-width: 1200px) {
    .accounts-receivable-review-modal {
        width: calc(100vw - 28px);
        height: calc(100dvh - 28px);
        max-height: calc(100dvh - 28px);
    }

    .accounts-receivable-review-backdrop {
        padding: 14px;
    }

    .accounts-receivable-review-fiscal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accounts-receivable-review-bill-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .accounts-receivable-review-item {
        grid-template-columns:
            minmax(260px, 1fr)
            minmax(90px, 120px)
            minmax(100px, 130px);
    }

    .accounts-receivable-review-item-values:nth-of-type(2) {
        display: none;
    }

    .accounts-receivable-review-container-footer {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(100px, auto)
            minmax(110px, auto);
    }

    .accounts-receivable-review-container-footer > div:nth-of-type(2) {
        display: none;
    }
}

/* =====================================================
   FINAL REVIEW - TABLET
===================================================== */

@media (max-width: 850px) {
    .accounts-receivable-review-backdrop {
        align-items: stretch;
        padding: 10px;
    }

    .accounts-receivable-review-modal {
        width: 100%;
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
    }

    .accounts-receivable-review-content {
        padding: 14px;
    }

    .accounts-receivable-review-bill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accounts-receivable-review-item {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(110px, auto);
    }

    .accounts-receivable-review-item-values {
        display: none;
    }

    .accounts-receivable-review-item-values.total {
        display: flex;
    }

    .accounts-receivable-review-container-footer {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(110px, auto);
    }

    .accounts-receivable-review-container-footer > div {
        display: none;
    }

    .accounts-receivable-review-container-footer > div.total {
        display: flex;
    }

    .accounts-receivable-review-total {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(145px, 180px)
            minmax(180px, 220px);
    }

    .accounts-receivable-review-total::before {
        display: none;
    }
}

/* =====================================================
   FINAL REVIEW - MOBILE
===================================================== */

@media (max-width: 650px) {
    .accounts-receivable-review-backdrop {
        padding: 0;
    }

    .accounts-receivable-review-modal {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;

        border: 0;
        border-radius: 0;
    }

    .accounts-receivable-review-modal > .accounts-receivable-modal-header {
        padding: 15px 14px;
    }

    .accounts-receivable-review-content {
        padding: 12px;
        gap: 12px;
    }

    .accounts-receivable-review-validation {
        min-height: 0;
        padding: 12px;
    }

    .accounts-receivable-review-section-header {
        min-height: 0;

        align-items: flex-start;
        flex-direction: column;

        gap: 5px;

        padding: 11px 12px;
    }

    .accounts-receivable-review-section-header > small {
        text-align: left;
    }

    .accounts-receivable-review-fiscal-grid,
    .accounts-receivable-review-bill-grid {
        grid-template-columns: 1fr;
    }

    .accounts-receivable-review-field {
        min-height: 70px;
        padding: 11px 12px;
    }

    .accounts-receivable-review-containers {
        padding: 10px;
    }

    .accounts-receivable-review-container-header {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;

        padding: 11px 12px;
    }

    .accounts-receivable-review-container-header > div:last-child {
        align-items: flex-start;
        text-align: left;
    }

    .accounts-receivable-review-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;

        min-height: 0;

        padding: 11px 12px;
    }

    .accounts-receivable-review-item-description {
        align-items: flex-start;
    }

    .accounts-receivable-review-item-values,
    .accounts-receivable-review-item-values.total {
        display: flex;
        align-items: flex-start;
        text-align: left;
    }

    .accounts-receivable-review-container-footer {
        grid-template-columns: 1fr;
        gap: 8px;

        padding: 10px 12px;
    }

    .accounts-receivable-review-container-footer > div,
    .accounts-receivable-review-container-footer > div.total {
        display: flex;
        align-items: flex-start;
    }

    .accounts-receivable-review-total {
        display: flex;
        flex-direction: column;
    }

    .accounts-receivable-review-total::before {
        display: none;
    }

    .accounts-receivable-review-total > div {
        width: 100%;

        box-sizing: border-box;

        flex-direction: row;
        align-items: center;
        justify-content: space-between;

        border-left: 0;
        border-top: 1px solid #263a53;
    }

    .accounts-receivable-review-total > div:first-of-type {
        border-top: 0;
    }

    .accounts-receivable-review-footer {
        min-height: 0;

        align-items: stretch;
        flex-direction: column-reverse;

        padding: 10px 12px;
    }

    .accounts-receivable-review-footer button {
        width: 100%;
    }

    .accounts-receivable-detail-actions {
        width: 100%;
        flex-direction: column;
    }

    .accounts-receivable-detail-actions button {
        width: 100%;
    }
}

/* =====================================================
   CUSTOMER PAYMENTS
===================================================== */

.accounts-receivable-payments-section {
    overflow: hidden;

    background:
        linear-gradient(145deg,
            #0b1728 0%,
            #0a1525 100%);

    border: 1px solid #20324a;
    border-radius: 11px;
}

.accounts-receivable-payments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 15px 16px;

    background: #0b1728;
    border-bottom: 1px solid #20324a;
}

.accounts-receivable-payments-header > div:first-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.accounts-receivable-payments-header > div:first-child > span {
    color: #647990;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accounts-receivable-payments-header h3 {
    margin: 0;

    color: #e8eef6;

    font-size: 14px;
    font-weight: 800;
}

.accounts-receivable-payments-header p {
    max-width: 680px;

    margin: 2px 0 0;

    color: #778aa1;

    font-size: 10px;
    line-height: 1.5;
}

.accounts-receivable-payments-loading {
    padding: 28px 18px;

    color: #7f91a7;

    font-size: 11px;
    text-align: center;
}

/* =====================================================
   PAYMENT SUMMARY
===================================================== */

.accounts-receivable-payment-summary {
    display: grid;
    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 10px;

    padding: 14px 15px 0;
}

.accounts-receivable-payment-summary > div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding: 12px 13px;

    background: #091426;
    border: 1px solid #1e3149;
    border-radius: 9px;
}

.accounts-receivable-payment-summary > div > span {
    color: #657991;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accounts-receivable-payment-summary > div > strong {
    overflow: hidden;

    color: #dce6f2;

    font-size: 15px;
    font-weight: 850;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-receivable-payment-summary > div:nth-child(2) > strong {
    color: #4ade80;
}

.accounts-receivable-payment-summary > div.balance {
    background:
        rgba(245, 158, 11, 0.055);

    border-color:
        rgba(245, 158, 11, 0.22);
}

.accounts-receivable-payment-summary > div.balance > strong {
    color: #fbbf24;
}

/* =====================================================
   PAYMENT LIST
===================================================== */

.accounts-receivable-payment-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    padding: 14px 15px 15px;
}

.accounts-receivable-payment-card {
    overflow: hidden;

    background: #0c192b;
    border: 1px solid #1f334c;
    border-radius: 10px;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.accounts-receivable-payment-card:hover {
    background: #0f1d31;
    border-color: #2b405a;
}

.accounts-receivable-payment-card.voided {
    opacity: 0.68;

    background:
        rgba(127, 29, 29, 0.08);

    border-color:
        rgba(244, 63, 94, 0.18);
}

.accounts-receivable-payment-card-main {
    display: grid;
    grid-template-columns:
        minmax(170px, 210px)
        minmax(0, 1fr);

    gap: 0;
}

.accounts-receivable-payment-card-amount {
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    padding: 15px 16px;

    background: #091426;
    border-right: 1px solid #1f334c;
}

.accounts-receivable-payment-card-amount > span {
    color: #64788f;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accounts-receivable-payment-card-amount > strong {
    color: #2dd4bf;

    font-size: 18px;
    font-weight: 850;
}

.accounts-receivable-payment-card-amount > small {
    color: #70839b;

    font-size: 9px;
}

.accounts-receivable-payment-card-data {
    min-width: 0;

    display: grid;
    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 0;
}

.accounts-receivable-payment-card-data > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;

    padding: 12px 14px;

    border-right: 1px solid #182a40;
    border-bottom: 1px solid #182a40;
}

.accounts-receivable-payment-card-data > div:nth-child(2n) {
    border-right: 0;
}

.accounts-receivable-payment-card-data > div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.accounts-receivable-payment-card-data span {
    color: #60748c;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accounts-receivable-payment-card-data strong {
    overflow: hidden;

    color: #cbd7e5;

    font-size: 10px;
    font-weight: 750;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-receivable-payment-card-data small {
    overflow: hidden;

    color: #71849a;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-receivable-payment-notes {
    margin: 0;
    padding: 10px 15px;

    background: #0a1627;
    border-top: 1px solid #182a40;

    color: #8ea0b5;

    font-size: 10px;
    line-height: 1.55;
}

.accounts-receivable-payment-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 10px 13px;

    background: #091426;
    border-top: 1px solid #1f334c;
}

.accounts-receivable-payment-card-footer > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* =====================================================
   PAYMENT STATUS
===================================================== */

.accounts-receivable-payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding: 0 9px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.accounts-receivable-payment-status.validated {
    background:
        rgba(34, 197, 94, 0.09);

    border-color:
        rgba(34, 197, 94, 0.2);

    color: #4ade80;
}

.accounts-receivable-payment-status.pending {
    background:
        rgba(245, 158, 11, 0.09);

    border-color:
        rgba(245, 158, 11, 0.2);

    color: #fbbf24;
}

.accounts-receivable-payment-status.voided {
    background:
        rgba(244, 63, 94, 0.09);

    border-color:
        rgba(244, 63, 94, 0.2);

    color: #fb7185;
}

/* =====================================================
   PAYMENT ACTIONS
===================================================== */

.accounts-receivable-payment-edit,
.accounts-receivable-payment-void {
    min-height: 30px;

    padding: 0 10px;

    border-radius: 7px;

    font: inherit;
    font-size: 9px;
    font-weight: 800;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.accounts-receivable-payment-edit {
    background:
        rgba(56, 189, 248, 0.07);

    border:
        1px solid rgba(56, 189, 248, 0.18);

    color: #7dd3fc;
}

.accounts-receivable-payment-edit:hover:not(:disabled) {
    background:
        rgba(56, 189, 248, 0.14);

    border-color:
        rgba(56, 189, 248, 0.3);
}

.accounts-receivable-payment-void {
    background:
        rgba(244, 63, 94, 0.07);

    border:
        1px solid rgba(244, 63, 94, 0.18);

    color: #fb7185;
}

.accounts-receivable-payment-void:hover:not(:disabled) {
    background:
        rgba(244, 63, 94, 0.14);

    border-color:
        rgba(244, 63, 94, 0.3);
}

.accounts-receivable-payment-edit:disabled,
.accounts-receivable-payment-void:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.accounts-receivable-payment-empty {
    min-height: 110px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 18px;

    color: #74869d;
    text-align: center;
}

.accounts-receivable-payment-empty strong {
    color: #dce5ef;

    font-size: 11px;
}

.accounts-receivable-payment-empty p {
    margin: 0;

    color: #71849b;

    font-size: 10px;
}

/* =====================================================
   PAYMENT MODAL
===================================================== */

.accounts-receivable-payment-modal {
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            #0e1a2d 0%,
            #091426 100%);

    border: 1px solid #28405c;
    border-radius: 15px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.58);
}

.accounts-receivable-payment-modal-content {
    flex: 1;
    min-height: 0;

    overflow-y: auto;

    padding: 20px 22px;

    display: flex;
    flex-direction: column;

    gap: 16px;
}

.accounts-receivable-payment-context {
    display: grid;
    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 10px;
}

.accounts-receivable-payment-context > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 11px 12px;

    background: #091426;
    border: 1px solid #1e3149;
    border-radius: 8px;
}

.accounts-receivable-payment-context > div > span {
    color: #60748c;

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.accounts-receivable-payment-context > div > strong {
    overflow: hidden;

    color: #dce6f2;

    font-size: 11px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-receivable-payment-context > div:last-child > strong {
    color: #fbbf24;

    font-size: 13px;
}

.accounts-receivable-payment-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 14px;
}

.accounts-receivable-payment-form-grid .full {
    grid-column: 1 / -1;
}

.accounts-receivable-payment-edit-warning {
    padding: 12px 13px;

    background:
        rgba(245, 158, 11, 0.055);

    border:
        1px solid rgba(245, 158, 11, 0.24);

    border-radius: 9px;
}

.accounts-receivable-payment-edit-warning strong {
    display: block;

    margin-bottom: 4px;

    color: #fbbf24;

    font-size: 10px;
    font-weight: 850;
}

.accounts-receivable-payment-edit-warning p {
    margin: 0;

    color: #a69577;

    font-size: 9px;
    line-height: 1.55;
}

.accounts-receivable-payment-modal-content::-webkit-scrollbar {
    width: 8px;
}

.accounts-receivable-payment-modal-content::-webkit-scrollbar-track {
    background: #091426;
}

.accounts-receivable-payment-modal-content::-webkit-scrollbar-thumb {
    background: #293e57;
    border-radius: 999px;
}

/* =====================================================
   VOID PAYMENT MODAL
===================================================== */

.accounts-receivable-void-modal {
    width: min(570px, 100%);
    max-height: calc(100vh - 48px);

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            #0e1a2d 0%,
            #091426 100%);

    border:
        1px solid rgba(244, 63, 94, 0.26);

    border-radius: 15px;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.58);
}

.accounts-receivable-void-content {
    flex: 1;
    min-height: 0;

    overflow-y: auto;

    padding: 20px 22px;

    display: flex;
    flex-direction: column;

    gap: 15px;
}

.accounts-receivable-void-content::-webkit-scrollbar {
    width: 8px;
}

.accounts-receivable-void-content::-webkit-scrollbar-track {
    background: #091426;
}

.accounts-receivable-void-content::-webkit-scrollbar-thumb {
    background: #293e57;
    border-radius: 999px;
}

/* =====================================================
   PAYMENT RESPONSIVE
===================================================== */

@media (max-width: 1000px) {
    .accounts-receivable-payment-card-main {
        grid-template-columns:
            minmax(150px, 190px)
            minmax(0, 1fr);
    }
}

@media (max-width: 800px) {
    .accounts-receivable-payments-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .accounts-receivable-payments-header > button {
        width: 100%;
    }

    .accounts-receivable-payment-card-main {
        grid-template-columns: 1fr;
    }

    .accounts-receivable-payment-card-amount {
        border-right: 0;
        border-bottom: 1px solid #1f334c;
    }

    .accounts-receivable-payment-context {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }

    .accounts-receivable-payment-context > div:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .accounts-receivable-payment-summary,
    .accounts-receivable-payment-context,
    .accounts-receivable-payment-form-grid {
        grid-template-columns: 1fr;
    }

    .accounts-receivable-payment-context > div:last-child,
    .accounts-receivable-payment-form-grid .full {
        grid-column: auto;
    }

    .accounts-receivable-payment-card-data {
        grid-template-columns: 1fr;
    }

    .accounts-receivable-payment-card-data > div,
    .accounts-receivable-payment-card-data > div:nth-child(2n),
    .accounts-receivable-payment-card-data > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #182a40;
    }

    .accounts-receivable-payment-card-data > div:last-child {
        border-bottom: 0;
    }

    .accounts-receivable-payment-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-receivable-payment-card-footer > div {
        width: 100%;
    }

    .accounts-receivable-payment-edit,
    .accounts-receivable-payment-void {
        flex: 1;
    }

    .accounts-receivable-payment-modal,
    .accounts-receivable-void-modal {
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .accounts-receivable-payment-modal-content,
    .accounts-receivable-void-content {
        padding: 15px 14px;
    }
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: #020617;
  color: white;
}/* ==========================================================
   SUPPLIERS PAGE
========================================================== */

.suppliers-page {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* ==========================================================
   HEADER
========================================================== */

.suppliers-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.suppliers-page-header h1 {
    margin: 2px 0 0;

    color: #f8fafc;

    font-size: 24px;
    font-weight: 750;

    letter-spacing: -0.025em;
}

.suppliers-page-header p {
    max-width: 640px;

    margin: 5px 0 0;

    color: #64748b;

    font-size: 10px;
    line-height: 1.5;
}

.suppliers-eyebrow {
    display: block;

    color: #38bdf8;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* ==========================================================
   STATS
========================================================== */

.suppliers-header-stats {
    display: flex;

    gap: 8px;
}

.suppliers-header-stats>div {
    min-width: 74px;

    padding: 9px 11px;

    border:
        1px solid rgba(148, 163, 184, 0.12);

    border-radius: 9px;

    background:
        rgba(15, 23, 42, 0.7);
}

.suppliers-header-stats span {
    display: block;

    color: #64748b;

    font-size: 7px;
    font-weight: 700;

    text-transform: uppercase;
}

.suppliers-header-stats strong {
    display: block;

    margin-top: 3px;

    color: #f8fafc;

    font-size: 16px;
}


/* ==========================================================
   MESSAGE
========================================================== */

.suppliers-message {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 10px 12px;

    border-radius: 9px;

    font-size: 9px;
    font-weight: 600;
}

.suppliers-message-success {
    border:
        1px solid rgba(34, 197, 94, 0.25);

    background:
        rgba(22, 101, 52, 0.08);

    color: #4ade80;
}

.suppliers-message-error {
    border:
        1px solid rgba(239, 68, 68, 0.25);

    background:
        rgba(127, 29, 29, 0.08);

    color: #f87171;
}

.suppliers-message button {
    border: 0;

    cursor: pointer;

    background: transparent;

    color: inherit;

    font-size: 15px;
}


/* ==========================================================
   TABS
========================================================== */

.suppliers-tabs {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    padding: 6px;

    border:
        1px solid rgba(148, 163, 184, 0.13);

    border-radius: 13px;

    background:
        rgba(15, 23, 42, 0.72);
}

.suppliers-tabs>button {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;

    padding: 11px 13px;

    border:
        1px solid transparent;

    border-radius: 9px;

    cursor: pointer;

    background: transparent;

    color: #94a3b8;

    text-align: left;

    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}

.suppliers-tabs>button:hover {
    background:
        rgba(30, 41, 59, 0.65);

    color: #e2e8f0;
}

.suppliers-tabs>button.active {
    border-color:
        rgba(56, 189, 248, 0.2);

    background:
        rgba(37, 99, 235, 0.13);

    color: #f8fafc;
}

.suppliers-tab-icon {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border:
        1px solid rgba(148, 163, 184, 0.15);

    border-radius: 9px;

    background:
        rgba(2, 6, 23, 0.35);

    color: #94a3b8;

    font-size: 14px;
    font-weight: 800;
}

.suppliers-tabs>button.active .suppliers-tab-icon {
    border-color:
        rgba(56, 189, 248, 0.32);

    background:
        rgba(56, 189, 248, 0.1);

    color: #38bdf8;
}

.suppliers-tabs>button>div {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
}

.suppliers-tabs strong {
    font-size: 11px;
}

.suppliers-tabs small {
    margin-top: 2px;

    color: #64748b;

    font-size: 8px;
}

.suppliers-tab-count {
    display: grid;
    place-items: center;

    min-width: 28px;
    height: 24px;

    padding: 0 7px;

    border-radius: 999px;

    background:
        rgba(148, 163, 184, 0.1);

    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;
}


/* ==========================================================
   PANEL
========================================================== */

.suppliers-panel,
.suppliers-form-card {
    padding: 20px;

    border:
        1px solid rgba(148, 163, 184, 0.14);

    border-radius: 14px;

    background:
        rgba(15, 23, 42, 0.78);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}

.suppliers-panel-header,
.suppliers-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 18px;
}

.suppliers-panel-header h2,
.suppliers-form-header h2 {
    margin: 2px 0 0;

    color: #f8fafc;

    font-size: 16px;

    letter-spacing: -0.02em;
}

.suppliers-panel-header p,
.suppliers-form-header p {
    max-width: 620px;

    margin: 4px 0 0;

    color: #64748b;

    font-size: 9px;
    line-height: 1.5;
}

.suppliers-panel-count {
    display: grid;
    place-items: center;

    min-width: 34px;
    height: 30px;

    padding: 0 8px;

    border-radius: 8px;

    background:
        rgba(148, 163, 184, 0.1);

    color: #94a3b8;

    font-size: 10px;
    font-weight: 800;
}


/* ==========================================================
   FORM
========================================================== */

.suppliers-form-section {
    margin-top: 16px;
    padding-top: 16px;

    border-top:
        1px solid rgba(148, 163, 184, 0.08);
}

.suppliers-form-section:first-of-type {
    margin-top: 0;
    padding-top: 0;

    border-top: 0;
}

.suppliers-section-title {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 13px;
}

.suppliers-section-title>span {
    display: grid;
    place-items: center;

    width: 28px;
    height: 28px;

    border-radius: 8px;

    background:
        rgba(56, 189, 248, 0.08);

    color: #38bdf8;

    font-size: 8px;
    font-weight: 800;
}

.suppliers-section-title>div {
    display: flex;
    flex-direction: column;
}

.suppliers-section-title strong {
    color: #e2e8f0;

    font-size: 10px;
}

.suppliers-section-title small {
    margin-top: 2px;

    color: #64748b;

    font-size: 8px;
}

.suppliers-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px 15px;
}

.suppliers-field {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.suppliers-field>span {
    margin-bottom: 6px;

    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;
}

.suppliers-field b {
    margin-left: 4px;

    color: #fb7185;
}

.suppliers-field input,
.suppliers-field select {
    width: 100%;
    min-height: 41px;

    box-sizing: border-box;

    padding: 0 11px;

    border:
        1px solid rgba(100, 116, 139, 0.42);

    border-radius: 9px;

    outline: none;

    background:
        rgba(2, 6, 23, 0.7);

    color: #e2e8f0;

    font-family: inherit;
    font-size: 10px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.suppliers-field input:focus,
.suppliers-field select:focus {
    border-color:
        rgba(56, 189, 248, 0.65);

    background:
        rgba(2, 6, 23, 0.9);

    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.07);
}

.suppliers-field input::placeholder {
    color: #475569;
}

.suppliers-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 18px;
    padding-top: 15px;

    border-top:
        1px solid rgba(148, 163, 184, 0.08);
}


/* ==========================================================
   BUTTONS
========================================================== */

.suppliers-primary-button,
.suppliers-secondary-button {
    min-height: 37px;

    padding: 0 14px;

    border-radius: 8px;

    cursor: pointer;

    font-size: 9px;
    font-weight: 750;
}

.suppliers-primary-button {
    border: 0;

    background:
        linear-gradient(135deg,
            #0284c7,
            #2563eb);

    color: white;
}

.suppliers-primary-button:disabled {
    opacity: 0.4;

    cursor: not-allowed;
}

.suppliers-secondary-button {
    border:
        1px solid rgba(100, 116, 139, 0.4);

    background: transparent;

    color: #94a3b8;
}

.suppliers-secondary-button:hover {
    color: #e2e8f0;
}


/* ==========================================================
   TOOLBAR
========================================================== */

.suppliers-toolbar {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr) 170px;

    gap: 9px;

    margin-bottom: 13px;
}

.suppliers-search {
    position: relative;

    display: flex;
    align-items: center;
}

.suppliers-search>span {
    position: absolute;

    left: 11px;

    color: #64748b;

    pointer-events: none;
}

.suppliers-search input,
.suppliers-toolbar>select {
    width: 100%;
    min-height: 39px;

    box-sizing: border-box;

    border:
        1px solid rgba(100, 116, 139, 0.4);

    border-radius: 8px;

    outline: none;

    background:
        rgba(2, 6, 23, 0.65);

    color: #e2e8f0;

    font-family: inherit;
    font-size: 9px;
}

.suppliers-search input {
    padding:
        0 11px 0 34px;
}

.suppliers-toolbar>select {
    padding:
        0 10px;
}


/* ==========================================================
   TABLE
========================================================== */

.suppliers-table-wrapper {
    overflow-x: auto;

    border:
        1px solid rgba(148, 163, 184, 0.12);

    border-radius: 10px;

    background:
        rgba(2, 6, 23, 0.35);
}

.suppliers-table {
    width: 100%;

    border-collapse: collapse;
}

.suppliers-table th {
    padding: 10px 11px;

    border-bottom:
        1px solid rgba(148, 163, 184, 0.12);

    color: #64748b;

    font-size: 7px;
    font-weight: 800;

    text-align: left;
    text-transform: uppercase;

    white-space: nowrap;
}

.suppliers-table td {
    padding: 11px;

    border-bottom:
        1px solid rgba(148, 163, 184, 0.07);

    color: #94a3b8;

    font-size: 9px;

    vertical-align: middle;
}

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

.suppliers-table tbody tr:hover {
    background:
        rgba(30, 41, 59, 0.35);
}

.suppliers-code {
    color: #cbd5e1;

    font-size: 9px;
}

.suppliers-name-cell {
    display: flex;
    flex-direction: column;

    min-width: 170px;
}

.suppliers-name-cell strong {
    color: #e2e8f0;

    font-size: 9px;
}

.suppliers-name-cell span {
    margin-top: 2px;

    color: #64748b;

    font-size: 8px;
}


/* ==========================================================
   CONTACT
========================================================== */

.suppliers-contact-cell {
    display: flex;
    flex-direction: column;

    min-width: 150px;
}

.suppliers-contact-cell span {
    color: #94a3b8;

    font-size: 8px;
}

.suppliers-contact-cell small {
    margin-top: 2px;

    color: #64748b;

    font-size: 7px;
}

.suppliers-currency {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 5px;

    background:
        rgba(56, 189, 248, 0.07);

    color: #7dd3fc;

    font-size: 8px;
    font-weight: 700;
}


/* ==========================================================
   STATUS
========================================================== */

.suppliers-status {
    display: inline-flex;

    padding: 4px 7px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 700;
}

.suppliers-status.active {
    background:
        rgba(34, 197, 94, 0.1);

    color: #4ade80;
}

.suppliers-status.inactive {
    background:
        rgba(148, 163, 184, 0.1);

    color: #94a3b8;
}


/* ==========================================================
   ACTIONS
========================================================== */

.suppliers-actions {
    display: flex;

    gap: 5px;

    white-space: nowrap;
}

.suppliers-actions button {
    min-height: 28px;

    padding: 0 8px;

    border:
        1px solid rgba(56, 189, 248, 0.2);

    border-radius: 6px;

    cursor: pointer;

    background:
        rgba(56, 189, 248, 0.05);

    color: #38bdf8;

    font-size: 7px;
    font-weight: 700;
}

.suppliers-actions button.danger {
    border-color:
        rgba(239, 68, 68, 0.18);

    background:
        rgba(239, 68, 68, 0.05);

    color: #f87171;
}

.suppliers-actions button.activate {
    border-color:
        rgba(34, 197, 94, 0.2);

    background:
        rgba(34, 197, 94, 0.05);

    color: #4ade80;
}


/* ==========================================================
   EMPTY
========================================================== */

.suppliers-empty {
    padding: 34px 16px;

    color: #64748b;

    font-size: 9px;

    text-align: center;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 900px) {
    .suppliers-page-header {
        flex-direction: column;
    }

    .suppliers-header-stats {
        width: 100%;
    }

    .suppliers-header-stats>div {
        flex: 1;
    }
}

@media (max-width: 700px) {
    .suppliers-tabs {
        grid-template-columns:
            1fr;
    }

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

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

    .suppliers-panel,
    .suppliers-form-card {
        padding: 15px;
    }
}.accounts-payable-page {
    min-height: 100%;
    padding: 28px;
    color: #e5e7eb;
    background:
        radial-gradient(circle at top right,
            rgba(37, 99, 235, 0.08),
            transparent 34%),
        #08111f;
}

/* ==========================================================
   HEADER
========================================================== */

.accounts-payable-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 24px;
}

.accounts-payable-header-copy {
    min-width: 0;
}

.accounts-payable-eyebrow {
    display: inline-flex;
    align-items: center;

    margin-bottom: 8px;

    color: #60a5fa;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.accounts-payable-header h1 {
    margin: 0;

    color: #f8fafc;

    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.accounts-payable-header p {
    max-width: 720px;

    margin: 10px 0 0;

    color: #94a3b8;

    font-size: 14px;
    line-height: 1.6;
}

.accounts-payable-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================
   BUTTONS
========================================================== */

.accounts-payable-button {
    min-height: 40px;

    padding: 0 16px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        opacity 140ms ease;
}

.accounts-payable-button.secondary {
    border-color: #263449;

    background: #101b2d;

    color: #cbd5e1;
}

.accounts-payable-button.secondary:hover:not(:disabled) {
    border-color: #3b82f6;

    background: #15243b;

    color: #eff6ff;
}

.accounts-payable-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ==========================================================
   TABS
========================================================== */

.accounts-payable-tabs {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 18px;

    padding: 5px;

    border: 1px solid #1e2b3e;
    border-radius: 12px;

    background: #0c1625;
}

.accounts-payable-tabs button {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 16px;

    border: 1px solid transparent;
    border-radius: 8px;

    background: transparent;

    color: #94a3b8;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 140ms ease,
        color 140ms ease,
        border-color 140ms ease;
}

.accounts-payable-tabs button:hover {
    color: #e2e8f0;
}

.accounts-payable-tabs button.active {
    border-color: #27466d;

    background: #13233a;

    color: #dbeafe;
}

.accounts-payable-tabs button strong {
    min-width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 6px;

    border-radius: 999px;

    background: #1e293b;

    color: #cbd5e1;

    font-size: 11px;
}

.accounts-payable-tabs button.active strong {
    background: #1d4ed8;

    color: #eff6ff;
}

/* ==========================================================
   SUMMARY
========================================================== */

.accounts-payable-summary {
    display: grid;

    grid-template-columns:
        repeat(5,
            minmax(0, 1fr));

    gap: 12px;

    margin-bottom: 18px;
}

.accounts-payable-summary-card {
    min-width: 0;

    padding: 16px 18px;

    border: 1px solid #1d2a3d;
    border-radius: 12px;

    background: #0d1727;

    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.12);
}

.accounts-payable-summary-card>span {
    display: block;

    margin-bottom: 8px;

    color: #94a3b8;

    font-size: 12px;
    font-weight: 700;
}

.accounts-payable-summary-card>strong {
    display: block;

    overflow: hidden;

    color: #f8fafc;

    font-size: 22px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-payable-summary-card>small {
    display: block;

    margin-top: 6px;

    color: #64748b;

    font-size: 11px;
}

.accounts-payable-summary-card.tone-draft {
    box-shadow:
        inset 3px 0 0 #64748b,
        0 12px 24px rgba(0, 0, 0, 0.12);
}

.accounts-payable-summary-card.tone-open {
    box-shadow:
        inset 3px 0 0 #3b82f6,
        0 12px 24px rgba(0, 0, 0, 0.12);
}

.accounts-payable-summary-card.tone-partial {
    box-shadow:
        inset 3px 0 0 #f59e0b,
        0 12px 24px rgba(0, 0, 0, 0.12);
}

.accounts-payable-summary-card.tone-paid {
    box-shadow:
        inset 3px 0 0 #22c55e,
        0 12px 24px rgba(0, 0, 0, 0.12);
}

.accounts-payable-summary-card.tone-money {
    box-shadow:
        inset 3px 0 0 #8b5cf6,
        0 12px 24px rgba(0, 0, 0, 0.12);
}

/* ==========================================================
   TOOLBAR
========================================================== */

.accounts-payable-toolbar {
    display: grid;

    grid-template-columns:
        minmax(260px, 1fr) 220px auto;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.accounts-payable-search {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    height: 42px;

    padding: 0 13px;

    border: 1px solid #243248;
    border-radius: 9px;

    background: #0c1625;
}

.accounts-payable-search>span {
    color: #64748b;

    font-size: 18px;
}

.accounts-payable-search input {
    width: 100%;
    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #e2e8f0;

    font-size: 13px;
}

.accounts-payable-search input::placeholder {
    color: #64748b;
}

.accounts-payable-toolbar select {
    height: 42px;

    padding: 0 12px;

    border: 1px solid #243248;
    border-radius: 9px;

    outline: 0;

    background: #0c1625;

    color: #cbd5e1;

    font-size: 13px;
}

.accounts-payable-toolbar select:focus,
.accounts-payable-search:focus-within {
    border-color: #3b82f6;
}

/* ==========================================================
   CARD
========================================================== */

.accounts-payable-card {
    overflow: hidden;

    border: 1px solid #1d2a3d;
    border-radius: 13px;

    background: #0b1424;

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ==========================================================
   SECTION HEADER
========================================================== */

.accounts-payable-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    padding: 20px;

    border-bottom: 1px solid #1d2a3d;
}

.accounts-payable-section-header>div>span {
    color: #60a5fa;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.accounts-payable-section-header h2 {
    margin: 5px 0 0;

    color: #f8fafc;

    font-size: 18px;
    font-weight: 800;
}

.accounts-payable-section-header p {
    max-width: 720px;

    margin: 6px 0 0;

    color: #94a3b8;

    font-size: 13px;
    line-height: 1.5;
}

.accounts-payable-pending-counter {
    min-width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #7c2d12;
    border-radius: 999px;

    background: rgba(234, 88, 12, 0.12);

    color: #fdba74;

    font-size: 12px;
    font-weight: 800;
}

/* ==========================================================
   TABLE
========================================================== */

.accounts-payable-table-wrapper {
    width: 100%;

    overflow-x: auto;
}

.accounts-payable-table {
    width: 100%;
    min-width: 1040px;

    border-collapse: collapse;
}

.accounts-payable-table thead {
    background: #101b2d;
}

.accounts-payable-table th {
    padding: 12px 16px;

    border-bottom: 1px solid #223047;

    color: #64748b;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;

    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.accounts-payable-table td {
    padding: 14px 16px;

    border-bottom: 1px solid #172336;

    color: #cbd5e1;

    font-size: 13px;

    vertical-align: middle;
}

.accounts-payable-table tbody tr {
    background: #0d1727;

    transition:
        background 130ms ease;
}

.accounts-payable-table tbody tr:hover {
    background: #101c2f;
}

.accounts-payable-table tbody tr:last-child td {
    border-bottom: 0;
}

/* ==========================================================
   BILL NUMBER
========================================================== */

.accounts-payable-bill-number,
.accounts-payable-supplier-cell,
.accounts-payable-container-cell,
.accounts-payable-service-cell,
.accounts-payable-supplier-mini {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.accounts-payable-bill-number strong,
.accounts-payable-supplier-cell strong,
.accounts-payable-container-cell strong,
.accounts-payable-service-cell strong,
.accounts-payable-supplier-mini strong {
    overflow: hidden;

    color: #f1f5f9;

    font-size: 13px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-payable-bill-number small,
.accounts-payable-supplier-cell small,
.accounts-payable-container-cell small,
.accounts-payable-service-cell small,
.accounts-payable-supplier-mini small {
    color: #64748b;

    font-size: 11px;
}

/* ==========================================================
   PERIOD
========================================================== */

.accounts-payable-period {
    display: flex;
    align-items: center;
    gap: 6px;

    white-space: nowrap;
}

.accounts-payable-period span {
    color: #cbd5e1;
}

.accounts-payable-period small {
    color: #64748b;
}

/* ==========================================================
   ITEM COUNT
========================================================== */

.accounts-payable-item-count {
    min-width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #2b3a51;
    border-radius: 7px;

    background: #111c2f;

    color: #cbd5e1;

    font-size: 12px;
    font-weight: 800;
}

/* ==========================================================
   MONEY
========================================================== */

.accounts-payable-total {
    color: #e2e8f0;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;
}

.accounts-payable-money-highlight {
    color: #86efac !important;
}

/* ==========================================================
   STATUS
========================================================== */

.accounts-payable-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    padding: 0 9px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;

    white-space: nowrap;
}

.accounts-payable-status.status-draft {
    border-color: #475569;

    background: rgba(71, 85, 105, 0.15);

    color: #cbd5e1;
}

.accounts-payable-status.status-open {
    border-color: #1d4ed8;

    background: rgba(37, 99, 235, 0.14);

    color: #93c5fd;
}

.accounts-payable-status.status-partially_paid {
    border-color: #b45309;

    background: rgba(245, 158, 11, 0.12);

    color: #fcd34d;
}

.accounts-payable-status.status-paid {
    border-color: #15803d;

    background: rgba(34, 197, 94, 0.12);

    color: #86efac;
}

.accounts-payable-status.status-canceled {
    border-color: #991b1b;

    background: rgba(220, 38, 38, 0.12);

    color: #fca5a5;
}

/* ==========================================================
   DUE DATE
========================================================== */

.accounts-payable-due {
    color: #cbd5e1;

    white-space: nowrap;
}

.accounts-payable-due.overdue {
    color: #f87171;

    font-weight: 700;
}

/* ==========================================================
   ACTIONS
========================================================== */

.accounts-payable-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accounts-payable-view-button,
.accounts-payable-resolve-button {
    min-height: 32px;

    padding: 0 11px;

    border: 1px solid #2c3e59;
    border-radius: 7px;

    background: #101c2f;

    color: #bfdbfe;

    font-size: 11px;
    font-weight: 800;

    cursor: pointer;

    transition:
        border-color 130ms ease,
        background 130ms ease,
        color 130ms ease;
}

.accounts-payable-view-button:hover,
.accounts-payable-resolve-button:hover {
    border-color: #3b82f6;

    background: #152746;

    color: #eff6ff;
}

.accounts-payable-resolve-button {
    border-color: #854d0e;

    background: rgba(202, 138, 4, 0.08);

    color: #fde68a;
}

.accounts-payable-resolve-button:hover {
    border-color: #d97706;

    background: rgba(202, 138, 4, 0.15);

    color: #fef3c7;
}

/* ==========================================================
   MISSING
========================================================== */

.accounts-payable-missing-text {
    color: #fb923c;

    font-size: 12px;
    font-weight: 700;
}

.accounts-payable-missing-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.accounts-payable-missing-badges span {
    min-height: 22px;

    display: inline-flex;
    align-items: center;

    padding: 0 7px;

    border: 1px solid #9a3412;
    border-radius: 999px;

    background: rgba(234, 88, 12, 0.1);

    color: #fdba74;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

/* ==========================================================
   PAGINATION
========================================================== */

.accounts-payable-pagination {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 12px 16px;

    border-top: 1px solid #1d2a3d;

    background: #0c1625;
}

.accounts-payable-pagination>span {
    color: #64748b;

    font-size: 12px;
}

.accounts-payable-pagination>div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accounts-payable-pagination button {
    min-height: 34px;

    padding: 0 12px;

    border: 1px solid #26364e;
    border-radius: 7px;

    background: #111c2f;

    color: #cbd5e1;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;
}

.accounts-payable-pagination button:hover:not(:disabled) {
    border-color: #3b82f6;

    color: #dbeafe;
}

.accounts-payable-pagination button:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}

/* ==========================================================
   LOADING / EMPTY
========================================================== */

.accounts-payable-loading,
.accounts-payable-empty,
.accounts-payable-empty-terminal {
    min-height: 240px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 32px;

    text-align: center;
}

.accounts-payable-loading strong,
.accounts-payable-empty strong,
.accounts-payable-empty-terminal strong {
    color: #e2e8f0;

    font-size: 15px;
}

.accounts-payable-empty>span {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #2a3b55;
    border-radius: 50%;

    background: #111c2f;

    color: #60a5fa;

    font-size: 20px;
    font-weight: 800;
}

.accounts-payable-empty p,
.accounts-payable-empty-terminal p {
    max-width: 520px;

    margin: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}

.accounts-payable-spinner {
    width: 26px;
    height: 26px;

    display: block;

    border: 3px solid #20304a;
    border-top-color: #3b82f6;
    border-radius: 50%;

    animation:
        accounts-payable-spin 700ms linear infinite;
}

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

/* ==========================================================
   MUTED
========================================================== */

.accounts-payable-muted {
    color: #64748b;
}

/* ==========================================================
   MODAL BACKDROP
========================================================== */

.accounts-payable-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(2, 6, 23, 0.82);

    backdrop-filter:
        blur(5px);
}

/* ==========================================================
   MODAL BASE
========================================================== */

.accounts-payable-detail-modal,
.accounts-payable-resolve-modal,
.accounts-payable-payment-modal,
.accounts-payable-void-modal {
    width: min(1180px,
            100%);

    height: min(900px,
            calc(100dvh - 48px));
    max-height: calc(100dvh - 48px);

    overflow: hidden;

    display: flex;
    flex-direction: column;

    border: 1px solid #26364e;
    border-radius: 14px;

    background: #0b1424;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.45);
}

.accounts-payable-resolve-modal,
.accounts-payable-payment-modal {
    width: min(720px,
            100%);
}

.accounts-payable-void-modal {
    width: min(620px,
            100%);
}

/* ==========================================================
   MODAL HEADER
========================================================== */

.accounts-payable-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 20px 22px;

    border-bottom: 1px solid #1f2d43;

    background: #0e192a;
}

.accounts-payable-modal-header>div>span {
    color: #60a5fa;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.accounts-payable-modal-header h2 {
    margin: 5px 0 0;

    color: #f8fafc;

    font-size: 20px;
    font-weight: 800;
}

.accounts-payable-modal-header p {
    margin: 6px 0 0;

    color: #64748b;

    font-size: 12px;
}

.accounts-payable-modal-header>button {
    width: 34px;
    height: 34px;

    flex: 0 0 auto;

    border: 1px solid #293a53;
    border-radius: 8px;

    background: #111d30;

    color: #94a3b8;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.accounts-payable-modal-header>button:hover {
    border-color: #475569;

    color: #f8fafc;
}

/* ==========================================================
   DETAIL CONTENT
========================================================== */

.accounts-payable-detail-content {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;

    padding: 20px;
}

/* ==========================================================
   DETAIL SUMMARY
========================================================== */

.accounts-payable-detail-summary {
    display: grid;

    grid-template-columns:
        repeat(5,
            minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 14px;
}

.accounts-payable-detail-meta {
    display: grid;

    grid-template-columns:
        repeat(6,
            minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 20px;
}

.accounts-payable-detail-value {
    min-width: 0;

    padding: 12px 13px;

    border: 1px solid #1f2e44;
    border-radius: 9px;

    background: #0e192a;
}

.accounts-payable-detail-value>span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 10px;
    font-weight: 700;
}

.accounts-payable-detail-value>strong {
    display: block;

    overflow: hidden;

    color: #dbe4ef;

    font-size: 12px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-payable-detail-value>strong.important {
    color: #86efac;

    font-size: 15px;
}

/* ==========================================================
   ITEMS SECTION
========================================================== */

.accounts-payable-items-section {
    overflow: hidden;

    margin-top: 16px;

    border: 1px solid #1f2e44;
    border-radius: 10px;

    background: #0c1625;
}

.accounts-payable-items-header {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 12px 15px;

    border-bottom: 1px solid #1f2e44;
}

.accounts-payable-items-header>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.accounts-payable-items-header>div>span {
    color: #64748b;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.accounts-payable-items-header>div>strong {
    color: #e2e8f0;

    font-size: 13px;
}

.accounts-payable-items-header>span {
    min-width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: #172236;

    color: #cbd5e1;

    font-size: 11px;
    font-weight: 800;
}

/* ==========================================================
   CONTAINER GROUPS
========================================================== */

.accounts-payable-container-groups {
    display: flex;
    flex-direction: column;
}

.accounts-payable-container-group {
    border-bottom: 1px solid #1f2e44;
}

.accounts-payable-container-group:last-child {
    border-bottom: 0;
}

.accounts-payable-container-group>header {
    display: grid;

    grid-template-columns:
        1.1fr 1fr auto;

    align-items: center;

    gap: 14px;

    padding: 14px 16px;

    background: #101b2d;
}

.accounts-payable-container-group>header>div {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.accounts-payable-container-group>header span {
    color: #64748b;

    font-size: 10px;
}

.accounts-payable-container-group>header strong {
    overflow: hidden;

    color: #e2e8f0;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================
   ITEMS TABLE
========================================================== */

.accounts-payable-items-table-wrapper {
    overflow-x: auto;
}

.accounts-payable-items-table {
    width: 100%;
    min-width: 720px;

    border-collapse: collapse;
}

.accounts-payable-items-table th {
    padding: 10px 14px;

    border-bottom: 1px solid #1f2e44;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;

    text-align: left;
    text-transform: uppercase;
}

.accounts-payable-items-table td {
    padding: 12px 14px;

    border-bottom: 1px solid #172336;

    color: #cbd5e1;

    font-size: 12px;
}

.accounts-payable-items-table tr:last-child td {
    border-bottom: 0;
}

/* ==========================================================
   TOTALS
========================================================== */

.accounts-payable-totals {
    width: min(360px,
            100%);

    margin: 18px 0 0 auto;

    padding: 14px 16px;

    border: 1px solid #1f2e44;
    border-radius: 9px;

    background: #0e192a;
}

.accounts-payable-totals>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    min-height: 31px;

    color: #94a3b8;

    font-size: 12px;
}

.accounts-payable-totals>div strong {
    color: #dbe4ef;
}

.accounts-payable-totals>div.total {
    margin-top: 7px;
    padding-top: 10px;

    border-top: 1px solid #26364e;

    font-size: 14px;
}

.accounts-payable-totals>div.total span {
    color: #e2e8f0;

    font-weight: 700;
}

.accounts-payable-totals>div.total strong {
    color: #86efac;

    font-size: 17px;
}

/* ==========================================================
   NOTES
========================================================== */

.accounts-payable-notes {
    margin-top: 16px;

    padding: 14px;

    border: 1px solid #1f2e44;
    border-radius: 9px;

    background: #0e192a;
}

.accounts-payable-notes>span {
    color: #64748b;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.accounts-payable-notes p {
    margin: 7px 0 0;

    color: #cbd5e1;

    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================================
   MODAL FOOTER
========================================================== */

.accounts-payable-modal-footer {
    min-height: 66px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;

    padding: 13px 20px;

    border-top: 1px solid #1f2d43;

    background: #0d1727;
}

.accounts-payable-modal-footer button {
    min-height: 38px;

    padding: 0 15px;

    border-radius: 8px;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.accounts-payable-modal-footer button.cancel {
    border: 1px solid #2a3a52;

    background: #111c2f;

    color: #cbd5e1;
}

.accounts-payable-modal-footer button.primary {
    border: 1px solid #2563eb;

    background: #2563eb;

    color: #ffffff;
}

.accounts-payable-modal-footer button.primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.accounts-payable-modal-footer button.cancel:hover:not(:disabled) {
    border-color: #475569;

    color: #f8fafc;
}

.accounts-payable-modal-footer button.danger {
    border: 1px solid #dc2626;

    background: #b91c1c;

    color: #ffffff;
}

.accounts-payable-modal-footer button.danger:hover:not(:disabled) {
    background: #dc2626;
}

.accounts-payable-modal-footer button:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}

/* ==========================================================
   RESOLVE CONTENT
========================================================== */

.accounts-payable-resolve-content {
    overflow-y: auto;

    padding: 20px;
}

.accounts-payable-pending-summary {
    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 18px;
}

.accounts-payable-field {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-bottom: 14px;
}

.accounts-payable-field>span {
    color: #94a3b8;

    font-size: 11px;
    font-weight: 700;
}

.accounts-payable-field.full {
    grid-column: 1 / -1;
}

.accounts-payable-field input,
.accounts-payable-field select,
.accounts-payable-field textarea {
    width: 100%;

    padding: 0 12px;

    border: 1px solid #26364e;
    border-radius: 8px;

    outline: 0;

    background: #0f1a2c;

    color: #e2e8f0;

    font: inherit;
    font-size: 13px;

    box-sizing: border-box;
}

.accounts-payable-field input,
.accounts-payable-field select {
    height: 42px;
}

.accounts-payable-field textarea {
    min-height: 110px;

    padding-top: 11px;
    padding-bottom: 11px;

    resize: vertical;
}

.accounts-payable-field input:focus,
.accounts-payable-field select:focus,
.accounts-payable-field textarea:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.08);
}

.accounts-payable-field input::placeholder,
.accounts-payable-field textarea::placeholder {
    color: #64748b;
}

.accounts-payable-field input:disabled,
.accounts-payable-field select:disabled,
.accounts-payable-field textarea:disabled {
    opacity: 0.55;
}

.accounts-payable-resolve-grid {
    display: grid;

    grid-template-columns:
        1fr 160px;

    gap: 12px;
}

.accounts-payable-cost-preview {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-top: 4px;

    padding: 15px;

    border: 1px solid #1d4ed8;
    border-radius: 9px;

    background: rgba(37, 99, 235, 0.08);
}

.accounts-payable-cost-preview>span {
    color: #93c5fd;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}

.accounts-payable-cost-preview>strong {
    color: #eff6ff;

    font-size: 22px;
    font-weight: 800;
}

.accounts-payable-cost-preview>small {
    color: #64748b;

    font-size: 11px;
}


/* ==========================================================
   PAYMENTS SECTION
========================================================== */

.accounts-payable-payments-section {
    overflow: hidden;

    margin-top: 16px;

    border: 1px solid #1f2e44;
    border-radius: 10px;

    background: #0c1625;
}

.accounts-payable-payments-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;

    padding: 15px 16px;

    border-bottom: 1px solid #1f2e44;

    background: #101b2d;
}

.accounts-payable-payments-header>div {
    min-width: 0;
}

.accounts-payable-payments-header>div>span {
    color: #60a5fa;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.accounts-payable-payments-header h3 {
    margin: 4px 0 0;

    color: #f8fafc;

    font-size: 15px;
    font-weight: 800;
}

.accounts-payable-payments-header p {
    max-width: 720px;

    margin: 5px 0 0;

    color: #64748b;

    font-size: 11px;
    line-height: 1.5;
}

.accounts-payable-button.primary {
    border-color: #2563eb;

    background: #2563eb;

    color: #ffffff;
}

.accounts-payable-button.primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.accounts-payable-payments-loading,
.accounts-payable-payment-empty {
    min-height: 120px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 22px;

    color: #64748b;

    text-align: center;
}

.accounts-payable-payment-empty strong {
    color: #e2e8f0;

    font-size: 13px;
}

.accounts-payable-payment-empty p {
    max-width: 520px;

    margin: 0;

    color: #64748b;

    font-size: 11px;
    line-height: 1.5;
}

.accounts-payable-payment-summary {
    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 10px;

    padding: 14px 16px;

    border-bottom: 1px solid #1f2e44;
}

.accounts-payable-payment-summary>div {
    min-width: 0;

    padding: 12px 13px;

    border: 1px solid #1f2e44;
    border-radius: 9px;

    background: #0e192a;
}

.accounts-payable-payment-summary span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.accounts-payable-payment-summary strong {
    display: block;

    overflow: hidden;

    color: #e2e8f0;

    font-size: 15px;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-payable-payment-summary .balance {
    border-color: rgba(245, 158, 11, 0.4);

    background:
        rgba(245, 158, 11, 0.07);
}

.accounts-payable-payment-summary .balance strong {
    color: #fcd34d;
}

.accounts-payable-payment-list {
    display: flex;
    flex-direction: column;

    gap: 10px;

    padding: 14px 16px 16px;
}

.accounts-payable-payment-card {
    overflow: hidden;

    border: 1px solid #1f2e44;
    border-radius: 10px;

    background: #0e192a;

    transition:
        border-color 140ms ease,
        opacity 140ms ease;
}

.accounts-payable-payment-card:hover {
    border-color: #2f4563;
}

.accounts-payable-payment-card.voided {
    opacity: 0.68;

    border-color: rgba(220, 38, 38, 0.3);
}

.accounts-payable-payment-card-main {
    display: grid;

    grid-template-columns:
        minmax(170px, 220px)
        minmax(0, 1fr);

    gap: 18px;

    padding: 15px;
}

.accounts-payable-payment-card-amount {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.accounts-payable-payment-card-amount>span,
.accounts-payable-payment-card-data span {
    color: #64748b;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.accounts-payable-payment-card-amount>strong {
    color: #86efac;

    font-size: 19px;
    font-weight: 800;
}

.accounts-payable-payment-card-amount>small {
    color: #94a3b8;

    font-size: 10px;
}

.accounts-payable-payment-card-data {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 12px 16px;
}

.accounts-payable-payment-card-data>div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 4px;
}

.accounts-payable-payment-card-data strong {
    overflow: hidden;

    color: #dbe4ef;

    font-size: 11px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-payable-payment-card-data small {
    overflow: hidden;

    color: #64748b;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-payable-payment-notes {
    margin: 0;

    padding: 0 15px 14px;

    color: #94a3b8;

    font-size: 11px;
    line-height: 1.5;
}

.accounts-payable-payment-card-footer {
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 9px 13px;

    border-top: 1px solid #1f2e44;

    background: #0c1625;
}

.accounts-payable-payment-card-footer>div {
    display: flex;
    align-items: center;

    gap: 7px;
}

.accounts-payable-payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 24px;

    padding: 0 8px;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.accounts-payable-payment-status.validated {
    border-color: #15803d;

    background: rgba(34, 197, 94, 0.1);

    color: #86efac;
}

.accounts-payable-payment-status.pending {
    border-color: #b45309;

    background: rgba(245, 158, 11, 0.1);

    color: #fcd34d;
}

.accounts-payable-payment-status.voided {
    border-color: #991b1b;

    background: rgba(220, 38, 38, 0.1);

    color: #fca5a5;
}

.accounts-payable-payment-edit,
.accounts-payable-payment-void {
    min-height: 30px;

    padding: 0 10px;

    border-radius: 7px;

    background: transparent;

    font-size: 10px;
    font-weight: 800;

    cursor: pointer;
}

.accounts-payable-payment-edit {
    border: 1px solid #2563eb;

    color: #93c5fd;
}

.accounts-payable-payment-edit:hover:not(:disabled) {
    background: rgba(37, 99, 235, 0.12);
}

.accounts-payable-payment-void {
    border: 1px solid #991b1b;

    color: #fca5a5;
}

.accounts-payable-payment-void:hover:not(:disabled) {
    background: rgba(220, 38, 38, 0.11);
}

.accounts-payable-payment-edit:disabled,
.accounts-payable-payment-void:disabled {
    opacity: 0.45;

    cursor: not-allowed;
}

/* ==========================================================
   PAYMENT MODAL
========================================================== */

.accounts-payable-payment-modal-content,
.accounts-payable-void-content {
    flex: 1 1 auto;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;
    scrollbar-gutter: stable;

    padding: 20px;
}

.accounts-payable-payment-context {
    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0, 1fr));

    gap: 10px;

    margin-bottom: 18px;
}

.accounts-payable-payment-context>div {
    min-width: 0;

    padding: 12px 13px;

    border: 1px solid #1f2e44;
    border-radius: 9px;

    background: #0e192a;
}

.accounts-payable-payment-context span {
    display: block;

    margin-bottom: 5px;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;
}

.accounts-payable-payment-context strong {
    display: block;

    overflow: hidden;

    color: #e2e8f0;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-payable-payment-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    gap: 0 12px;
}

.accounts-payable-payment-edit-warning {
    margin-top: 4px;

    padding: 13px 14px;

    border: 1px solid rgba(245, 158, 11, 0.36);
    border-radius: 9px;

    background: rgba(245, 158, 11, 0.07);
}

.accounts-payable-payment-edit-warning strong {
    color: #fcd34d;

    font-size: 11px;
}

.accounts-payable-payment-edit-warning p {
    margin: 5px 0 0;

    color: #a78b6b;

    font-size: 10px;
    line-height: 1.5;
}

/* ==========================================================
   VOID PAYMENT MODAL
========================================================== */

.accounts-payable-payment-void-warning {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 16px;

    padding: 14px;

    border: 1px solid rgba(220, 38, 38, 0.35);
    border-radius: 9px;

    background: rgba(220, 38, 38, 0.07);
}

.accounts-payable-payment-void-warning>span {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 50%;

    color: #fca5a5;

    font-size: 14px;
    font-weight: 900;
}

.accounts-payable-payment-void-warning strong {
    color: #fecaca;

    font-size: 12px;
}

.accounts-payable-payment-void-warning p {
    margin: 5px 0 0;

    color: #94a3b8;

    font-size: 10px;
    line-height: 1.5;
}


/* ==========================================================
   SCROLLBARS
========================================================== */

.accounts-payable-table-wrapper::-webkit-scrollbar,
.accounts-payable-detail-content::-webkit-scrollbar,
.accounts-payable-resolve-content::-webkit-scrollbar,
.accounts-payable-payment-modal-content::-webkit-scrollbar,
.accounts-payable-void-content::-webkit-scrollbar,
.accounts-payable-items-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.accounts-payable-table-wrapper::-webkit-scrollbar-track,
.accounts-payable-detail-content::-webkit-scrollbar-track,
.accounts-payable-resolve-content::-webkit-scrollbar-track,
.accounts-payable-payment-modal-content::-webkit-scrollbar-track,
.accounts-payable-void-content::-webkit-scrollbar-track,
.accounts-payable-items-table-wrapper::-webkit-scrollbar-track {
    background: #0b1424;
}

.accounts-payable-table-wrapper::-webkit-scrollbar-thumb,
.accounts-payable-detail-content::-webkit-scrollbar-thumb,
.accounts-payable-resolve-content::-webkit-scrollbar-thumb,
.accounts-payable-payment-modal-content::-webkit-scrollbar-thumb,
.accounts-payable-void-content::-webkit-scrollbar-thumb,
.accounts-payable-items-table-wrapper::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: #2a3a52;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1300px) {
    .accounts-payable-summary {
        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));
    }

    .accounts-payable-detail-summary {
        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));
    }

    .accounts-payable-detail-meta {
        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .accounts-payable-page {
        padding: 20px;
    }

    .accounts-payable-header {
        flex-direction: column;
    }

    .accounts-payable-header-actions {
        width: 100%;
    }

    .accounts-payable-header-actions .accounts-payable-button {
        width: 100%;
    }

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

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

    .accounts-payable-toolbar select,
    .accounts-payable-toolbar .accounts-payable-button {
        width: 100%;
    }

    .accounts-payable-detail-summary,
    .accounts-payable-detail-meta {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }

    .accounts-payable-container-group>header {
        grid-template-columns:
            1fr 1fr;
    }

    .accounts-payable-container-group>header>div:last-child {
        grid-column:
            1 / -1;
    }

    .accounts-payable-payment-card-main {
        grid-template-columns:
            1fr;
    }

    .accounts-payable-payment-context {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .accounts-payable-page {
        padding: 14px;
    }

    .accounts-payable-header h1 {
        font-size: 24px;
    }

    .accounts-payable-tabs {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-payable-tabs button {
        justify-content: space-between;
    }

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

    .accounts-payable-detail-summary,
    .accounts-payable-detail-meta,
    .accounts-payable-pending-summary,
    .accounts-payable-resolve-grid {
        grid-template-columns:
            1fr;
    }

    .accounts-payable-container-group>header {
        grid-template-columns:
            1fr;
    }

    .accounts-payable-container-group>header>div:last-child {
        grid-column:
            auto;
    }

    .accounts-payable-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-payable-pagination>div {
        justify-content: space-between;
    }

    .accounts-payable-pagination button {
        flex: 1;
    }

    .accounts-payable-modal-backdrop {
        padding: 10px;
    }

    .accounts-payable-detail-modal,
    .accounts-payable-resolve-modal,
    .accounts-payable-payment-modal,
    .accounts-payable-void-modal {
        width: 100%;
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
    }

    .accounts-payable-modal-header {
        padding: 16px;
    }

    .accounts-payable-detail-content,
    .accounts-payable-resolve-content,
    .accounts-payable-payment-modal-content,
    .accounts-payable-void-content {
        padding: 14px;
    }

    .accounts-payable-payments-header {
        flex-direction: column;
    }

    .accounts-payable-payments-header .accounts-payable-button {
        width: 100%;
    }

    .accounts-payable-payment-summary,
    .accounts-payable-payment-context,
    .accounts-payable-payment-form-grid,
    .accounts-payable-payment-card-data {
        grid-template-columns: 1fr;
    }

    .accounts-payable-payment-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-payable-payment-card-footer>div {
        width: 100%;
    }

    .accounts-payable-payment-card-footer>div button {
        flex: 1;
    }

    .accounts-payable-modal-footer {
        padding: 12px 14px;
    }

    .accounts-payable-modal-footer button {
        flex: 1;
    }

    .accounts-payable-totals {
        width: 100%;
    }
}/* ==========================================================
   CUSTOMERS PAGE
========================================================== */

.customers-page {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 18px;
}

.customers-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;
}

.customers-page-header h1 {
  margin: 2px 0 0;

  color: #f8fafc;

  font-size: 24px;
  font-weight: 750;

  letter-spacing: -0.025em;
}

.customers-page-header p {
  max-width: 640px;

  margin: 5px 0 0;

  color: #64748b;

  font-size: 10px;

  line-height: 1.5;
}

.customers-eyebrow {
  display: block;

  color: #38bdf8;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}


/* ==========================================================
   HEADER STATS
========================================================== */

.customers-header-stats {
  display: flex;

  gap: 8px;
}

.customers-header-stats>div {
  min-width: 74px;

  padding: 9px 11px;

  border:
    1px solid rgba(148, 163, 184, 0.12);

  border-radius: 9px;

  background:
    rgba(15, 23, 42, 0.7);
}

.customers-header-stats span {
  display: block;

  color: #64748b;

  font-size: 7px;
  font-weight: 700;

  text-transform: uppercase;
}

.customers-header-stats strong {
  display: block;

  margin-top: 3px;

  color: #f8fafc;

  font-size: 16px;
}

.customers-header-stats .warning strong {
  color: #fbbf24;
}


/* ==========================================================
   MESSAGE
========================================================== */

.customers-message {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  padding: 10px 12px;

  border-radius: 9px;

  font-size: 9px;
  font-weight: 600;
}

.customers-message-success {
  border:
    1px solid rgba(34, 197, 94, 0.25);

  background:
    rgba(22, 101, 52, 0.08);

  color: #4ade80;
}

.customers-message-error {
  border:
    1px solid rgba(239, 68, 68, 0.25);

  background:
    rgba(127, 29, 29, 0.08);

  color: #f87171;
}

.customers-message button {
  border: 0;

  cursor: pointer;

  background: transparent;

  color: inherit;

  font-size: 15px;
}


/* ==========================================================
   TABS
========================================================== */

.customers-tabs {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 8px;

  padding: 6px;

  border:
    1px solid rgba(148, 163, 184, 0.13);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.72);
}

.customers-tabs>button {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;

  padding: 11px 13px;

  border:
    1px solid transparent;

  border-radius: 9px;

  cursor: pointer;

  background: transparent;

  color: #94a3b8;

  text-align: left;

  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.customers-tabs>button:hover {
  background:
    rgba(30, 41, 59, 0.65);

  color: #e2e8f0;
}

.customers-tabs>button.active {
  border-color:
    rgba(56, 189, 248, 0.2);

  background:
    rgba(37, 99, 235, 0.13);

  color: #f8fafc;
}

.customers-tab-icon {
  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  border:
    1px solid rgba(148, 163, 184, 0.15);

  border-radius: 9px;

  background:
    rgba(2, 6, 23, 0.35);

  color: #94a3b8;

  font-size: 14px;
  font-weight: 800;
}

.customers-tab-icon.warning {
  color: #fbbf24;
}

.customers-tabs>button.active .customers-tab-icon {
  border-color:
    rgba(56, 189, 248, 0.32);

  background:
    rgba(56, 189, 248, 0.1);

  color: #38bdf8;
}

.customers-tabs>button>div {
  display: flex;
  flex: 1;
  flex-direction: column;

  min-width: 0;
}

.customers-tabs strong {
  font-size: 11px;
}

.customers-tabs small {
  margin-top: 2px;

  color: #64748b;

  font-size: 8px;
}

.customers-tab-count {
  display: grid;
  place-items: center;

  min-width: 28px;
  height: 24px;

  padding: 0 7px;

  border-radius: 999px;

  background:
    rgba(148, 163, 184, 0.1);

  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;
}

.customers-tab-count.warning {
  background:
    rgba(245, 158, 11, 0.12);

  color: #fbbf24;
}


/* ==========================================================
   PANEL
========================================================== */

.customers-panel,
.customers-form-card {
  padding: 20px;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  border-radius: 14px;

  background:
    rgba(15, 23, 42, 0.78);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08);
}

.customers-panel-header,
.customers-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  margin-bottom: 18px;
}

.customers-panel-header h2,
.customers-form-header h2 {
  margin: 2px 0 0;

  color: #f8fafc;

  font-size: 16px;

  letter-spacing: -0.02em;
}

.customers-panel-header p,
.customers-form-header p {
  max-width: 620px;

  margin: 4px 0 0;

  color: #64748b;

  font-size: 9px;

  line-height: 1.5;
}

.customers-panel-count {
  display: grid;
  place-items: center;

  min-width: 34px;
  height: 30px;

  padding: 0 8px;

  border-radius: 8px;

  background:
    rgba(148, 163, 184, 0.1);

  color: #94a3b8;

  font-size: 10px;
  font-weight: 800;
}

.customers-panel-count.warning {
  background:
    rgba(245, 158, 11, 0.1);

  color: #fbbf24;
}


/* ==========================================================
   PENDING
========================================================== */

.customers-pending-list {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.customers-pending-card {
  display: grid;

  grid-template-columns:
    auto minmax(180px, 1fr) minmax(220px, 1.2fr) auto;

  gap: 12px;

  align-items: center;

  padding: 12px;

  border:
    1px solid rgba(245, 158, 11, 0.18);

  border-radius: 10px;

  background:
    rgba(146, 64, 14, 0.045);
}

.customers-pending-indicator {
  display: grid;
  place-items: center;

  width: 30px;
  height: 30px;

  border-radius: 8px;

  background:
    rgba(245, 158, 11, 0.12);

  color: #fbbf24;

  font-size: 12px;
  font-weight: 900;
}

.customers-pending-info {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.customers-pending-info strong {
  overflow: hidden;

  color: #f8fafc;

  font-size: 10px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.customers-pending-info span {
  margin-top: 2px;

  overflow: hidden;

  color: #94a3b8;

  font-size: 8px;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.customers-pending-info small {
  margin-top: 3px;

  color: #64748b;

  font-size: 8px;
}

.customers-missing-fields>span {
  color: #64748b;

  font-size: 7px;
  font-weight: 700;

  text-transform: uppercase;
}

.customers-missing-fields>div {
  display: flex;
  flex-wrap: wrap;

  gap: 5px;

  margin-top: 5px;
}

.customers-missing-fields small {
  padding: 3px 6px;

  border-radius: 5px;

  background:
    rgba(245, 158, 11, 0.08);

  color: #fbbf24;

  font-size: 7px;
}

.customers-complete-button {
  min-height: 32px;

  padding: 0 11px;

  border:
    1px solid rgba(245, 158, 11, 0.25);

  border-radius: 7px;

  cursor: pointer;

  background:
    rgba(245, 158, 11, 0.08);

  color: #fbbf24;

  font-size: 8px;
  font-weight: 700;
}

.customers-complete-button:hover {
  background:
    rgba(245, 158, 11, 0.14);
}


/* ==========================================================
   FORM
========================================================== */

.customers-form-section {
  margin-top: 16px;
  padding-top: 16px;

  border-top:
    1px solid rgba(148, 163, 184, 0.08);
}

.customers-form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;

  border-top: 0;
}

.customers-section-title {
  display: flex;
  align-items: center;

  gap: 9px;

  margin-bottom: 13px;
}

.customers-section-title>span {
  display: grid;
  place-items: center;

  width: 28px;
  height: 28px;

  border-radius: 8px;

  background:
    rgba(56, 189, 248, 0.08);

  color: #38bdf8;

  font-size: 8px;
  font-weight: 800;
}

.customers-section-title>div {
  display: flex;
  flex-direction: column;
}

.customers-section-title strong {
  color: #e2e8f0;

  font-size: 10px;
}

.customers-section-title small {
  margin-top: 2px;

  color: #64748b;

  font-size: 8px;
}

.customers-form-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 12px 15px;
}

.customers-field {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

.customers-field>span {
  margin-bottom: 6px;

  color: #94a3b8;

  font-size: 9px;
  font-weight: 700;
}

.customers-field b {
  margin-left: 4px;

  color: #fb7185;
}

.customers-field input,
.customers-field select {
  width: 100%;
  min-height: 41px;

  box-sizing: border-box;

  padding: 0 11px;

  border:
    1px solid rgba(100, 116, 139, 0.42);

  border-radius: 9px;

  outline: none;

  background:
    rgba(2, 6, 23, 0.7);

  color: #e2e8f0;

  font-family: inherit;
  font-size: 10px;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.customers-field input:focus,
.customers-field select:focus {
  border-color:
    rgba(56, 189, 248, 0.65);

  background:
    rgba(2, 6, 23, 0.9);

  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.07);
}

.customers-field input::placeholder {
  color: #475569;
}

.customers-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 8px;

  margin-top: 18px;
  padding-top: 15px;

  border-top:
    1px solid rgba(148, 163, 184, 0.08);
}


/* ==========================================================
   BUTTONS
========================================================== */

.customers-primary-button,
.customers-secondary-button {
  min-height: 37px;

  padding: 0 14px;

  border-radius: 8px;

  cursor: pointer;

  font-size: 9px;
  font-weight: 750;
}

.customers-primary-button {
  border: 0;

  background:
    linear-gradient(
      135deg,
      #0284c7,
      #2563eb
    );

  color: white;
}

.customers-primary-button:disabled {
  opacity: 0.4;

  cursor: not-allowed;
}

.customers-secondary-button {
  border:
    1px solid rgba(100, 116, 139, 0.4);

  background: transparent;

  color: #94a3b8;
}

.customers-secondary-button:hover {
  color: #e2e8f0;
}


/* ==========================================================
   TOOLBAR
========================================================== */

.customers-toolbar {
  display: grid;

  grid-template-columns:
    minmax(280px, 1fr) 170px;

  gap: 9px;

  margin-bottom: 13px;
}

.customers-search {
  position: relative;

  display: flex;
  align-items: center;
}

.customers-search>span {
  position: absolute;

  left: 11px;

  color: #64748b;

  pointer-events: none;
}

.customers-search input,
.customers-toolbar>select {
  width: 100%;
  min-height: 39px;

  box-sizing: border-box;

  border:
    1px solid rgba(100, 116, 139, 0.4);

  border-radius: 8px;

  outline: none;

  background:
    rgba(2, 6, 23, 0.65);

  color: #e2e8f0;

  font-family: inherit;
  font-size: 9px;
}

.customers-search input {
  padding:
    0 11px 0 34px;
}

.customers-toolbar>select {
  padding:
    0 10px;
}


/* ==========================================================
   TABLE
========================================================== */

.customers-table-wrapper {
  overflow-x: auto;

  border:
    1px solid rgba(148, 163, 184, 0.12);

  border-radius: 10px;

  background:
    rgba(2, 6, 23, 0.35);
}

.customers-table {
  width: 100%;

  border-collapse: collapse;
}

.customers-table th {
  padding: 10px 11px;

  border-bottom:
    1px solid rgba(148, 163, 184, 0.12);

  color: #64748b;

  font-size: 7px;
  font-weight: 800;

  text-align: left;
  text-transform: uppercase;

  white-space: nowrap;
}

.customers-table td {
  padding: 11px;

  border-bottom:
    1px solid rgba(148, 163, 184, 0.07);

  color: #94a3b8;

  font-size: 9px;

  vertical-align: middle;
}

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

.customers-table tbody tr:hover {
  background:
    rgba(30, 41, 59, 0.35);
}

.customers-code {
  color: #cbd5e1;

  font-size: 9px;
}

.customers-name-cell {
  display: flex;
  flex-direction: column;

  min-width: 170px;
}

.customers-name-cell strong {
  color: #e2e8f0;

  font-size: 9px;
}

.customers-name-cell span {
  margin-top: 2px;

  color: #64748b;

  font-size: 8px;
}

.customers-incomplete-text {
  color: #fbbf24;

  font-size: 8px;
}


/* ==========================================================
   STATUS
========================================================== */

.customers-status {
  display: inline-flex;

  padding: 4px 7px;

  border-radius: 999px;

  font-size: 8px;
  font-weight: 700;
}

.customers-status.active {
  background:
    rgba(34, 197, 94, 0.1);

  color: #4ade80;
}

.customers-status.inactive {
  background:
    rgba(148, 163, 184, 0.1);

  color: #94a3b8;
}


/* ==========================================================
   TABLE ACTIONS
========================================================== */

.customers-actions {
  display: flex;

  gap: 5px;

  white-space: nowrap;
}

.customers-actions button {
  min-height: 28px;

  padding: 0 8px;

  border:
    1px solid rgba(56, 189, 248, 0.2);

  border-radius: 6px;

  cursor: pointer;

  background:
    rgba(56, 189, 248, 0.05);

  color: #38bdf8;

  font-size: 7px;
  font-weight: 700;
}

.customers-actions button.danger {
  border-color:
    rgba(239, 68, 68, 0.18);

  background:
    rgba(239, 68, 68, 0.05);

  color: #f87171;
}

.customers-actions button.activate {
  border-color:
    rgba(34, 197, 94, 0.2);

  background:
    rgba(34, 197, 94, 0.05);

  color: #4ade80;
}


/* ==========================================================
   EMPTY
========================================================== */

.customers-empty {
  padding: 34px 16px;

  color: #64748b;

  font-size: 9px;

  text-align: center;
}

.customers-empty-success {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.customers-empty-success>span {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  margin-bottom: 8px;

  border-radius: 50%;

  background:
    rgba(34, 197, 94, 0.08);

  color: #4ade80;
}

.customers-empty-success strong {
  color: #cbd5e1;

  font-size: 10px;
}

.customers-empty-success p {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 8px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 950px) {
  .customers-page-header {
    flex-direction: column;
  }

  .customers-header-stats {
    width: 100%;
  }

  .customers-header-stats>div {
    flex: 1;
  }

  .customers-pending-card {
    grid-template-columns:
      auto minmax(0, 1fr) auto;
  }

  .customers-missing-fields {
    grid-column:
      2 / -1;
  }
}

@media (max-width: 700px) {
  .customers-tabs {
    grid-template-columns:
      1fr;
  }

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

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

  .customers-pending-card {
    grid-template-columns:
      auto minmax(0, 1fr);
  }

  .customers-complete-button,
  .customers-missing-fields {
    grid-column:
      1 / -1;
  }

  .customers-complete-button {
    width: 100%;
  }

  .customers-panel,
  .customers-form-card {
    padding: 15px;
  }
}