﻿:root {
  --bg: #0b1b33;
  --bg-accent: #102748;
  --surface: #e6ebf2;
  --surface-alt: #dde3ea;
  --text: #0b1b33;
  --muted: #51607a;
  --primary: #1f5fbf;
  --primary-dark: #164a96;
  --secondary: #3aa0ff;
  --accent: #5dc4ff;
  --danger: #c84b4b;
  --success: #2f8f6a;
  --shadow: 0 18px 40px rgba(7, 20, 41, 0.18);
  --radius: 16px;
  --currency-symbol-url: url('assets/riyal-symbol.png');
  --ui-scale: 0.6;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Tajawal", "Cairo", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #163763, var(--bg));
  min-height: 100vh;
  direction: rtl;
  line-height: 1.6;
  zoom: var(--ui-scale);
  width: calc(100% / var(--ui-scale));
  position: relative;
  left: calc((100% / var(--ui-scale) - 100%) / 2);
}

body.auth-pending .site-header,
body.auth-pending .nav-links {
  visibility: hidden;
  pointer-events: none;
}

body.auth-pending main {
  visibility: hidden;
}

body.auth-pending [data-permission],
body.auth-pending [data-permissions] {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.bg-shape {
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.bg-shape--one {
  top: -80px;
  left: -60px;
  background: linear-gradient(120deg, rgba(61, 145, 255, 0.8), rgba(16, 56, 102, 0.6));
}

.bg-shape--two {
  bottom: -120px;
  right: -40px;
  background: linear-gradient(130deg, rgba(45, 88, 143, 0.75), rgba(29, 59, 106, 0.55));
}

.container {
  width: min(calc(1600px / var(--ui-scale)), calc(94vw / var(--ui-scale)));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 32px 0 14px;
  position: relative;
  z-index: 40;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  direction: rtl;
}

.nav-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  text-align: right;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand > div {
  text-align: right;
}

.settings-menu {
  position: relative;
  margin: 0;
  z-index: 50;
  pointer-events: auto;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(15, 51, 97, 0.35);
}

.brand h1 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
}

.brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(246, 248, 252, 0.8);
  border: 1px solid rgba(16, 39, 72, 0.12);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(10, 31, 60, 0.12);
  color: #0b1b33;
}

.nav-links a.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.settings-menu {
  position: relative;
  z-index: 20;
}

.settings-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(200, 210, 224, 0.9);
  background: rgba(246, 248, 252, 0.92);
  color: #1f355f;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px rgba(10, 31, 60, 0.18);
}

.settings-menu summary::-webkit-details-marker {
  display: none;
}

.settings-menu[open] summary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(22, 70, 135, 0.28);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notifications-bell {
  position: relative;
  z-index: 30;
}

.notifications-bell__btn {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(200, 210, 224, 0.9);
  background: rgba(246, 248, 252, 0.92);
  color: #1f355f;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notifications-bell__btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notifications-bell__btn.is-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(22, 70, 135, 0.28);
}

.notifications-bell__count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #c84b4b;
  color: #fff;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid #fff;
  min-width: 22px;
  text-align: center;
}

.notifications-bell__count.hidden {
  display: none;
}

.notifications-panel {
  position: absolute;
  top: 64px;
  inset-inline-end: 0;
  width: min(380px, 92vw);
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dfe6f0;
  box-shadow: 0 20px 40px rgba(12, 24, 50, 0.18);
  padding: 16px;
}

.notifications-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.notifications-panel__header h4 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.notifications-panel__filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.notifications-panel__filters .filter-btn {
  border: 1px solid #e1e7f0;
  background: #f7f9fc;
  color: #1f355f;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notifications-panel__filters .filter-btn.is-active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.notifications-list {
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.notification-item {
  border: 1px solid #e2e8f2;
  background: #f9fbff;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: right;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(12, 24, 50, 0.12);
}

.notification-item.is-unread {
  background: #ffffff;
  border-color: rgba(26, 77, 148, 0.3);
}

.notification-item__tone {
  width: 8px;
  height: 100%;
  border-radius: 999px;
  background: #1f5fbf;
  flex: 0 0 8px;
}

.notification-item__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.notification-item__title {
  font-weight: 700;
  color: #102748;
}

.notification-item__message {
  color: #3a4f6f;
  font-size: 0.95rem;
}

.notification-item__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: #6d7c92;
}

.notification-item__chip {
  background: #eef2f8;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

.notification-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #1f5fbf;
  margin-top: 6px;
  flex: 0 0 8px;
  opacity: 0;
}

.notification-item.is-unread .notification-item__dot {
  opacity: 1;
}

.notification-item[data-tone="success"] .notification-item__tone,
.notification-item[data-tone="success"] .notification-item__dot {
  background: #2f8f6a;
}

.notification-item[data-tone="warn"] .notification-item__tone,
.notification-item[data-tone="warn"] .notification-item__dot {
  background: #d38c42;
}

.notification-item[data-tone="error"] .notification-item__tone,
.notification-item[data-tone="error"] .notification-item__dot {
  background: #c84b4b;
}

.notification-empty {
  text-align: center;
  padding: 20px 12px;
  color: var(--muted);
  background: #f4f7fb;
  border-radius: 14px;
  border: 1px dashed #d7e0ee;
}

.notifications-panel__footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.notification-toasts {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1200;
}

.notification-toast {
  min-width: 220px;
  max-width: min(320px, 88vw);
  background: rgba(17, 36, 74, 0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(6, 18, 39, 0.35);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.notification-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.notification-toast__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.notification-toast__message {
  font-size: 0.92rem;
}

.notification-toast[data-tone="success"] {
  background: rgba(35, 120, 85, 0.95);
}

.notification-toast[data-tone="warn"] {
  background: rgba(211, 140, 66, 0.95);
}

.notification-toast[data-tone="error"] {
  background: rgba(200, 75, 75, 0.95);
}

.settings-dropdown {
  position: absolute;
  top: 56px;
  left: 0;
  min-width: 190px;
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 18px 32px rgba(12, 24, 50, 0.2);
  z-index: 60;
  pointer-events: auto;
}

.permission-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.permission-module {
  background: #f7f9fc;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  padding: 10px 14px;
}

.permission-accordion {
  border-radius: 12px;
}

.permission-accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: #1f355f;
  padding: 6px 4px;
  list-style: none;
}

.permission-accordion summary::-webkit-details-marker {
  display: none;
}

.permission-submodule {
  padding: 10px 6px 4px;
  border-top: 1px dashed #d7deea;
}

.permission-submodule:first-of-type {
  border-top: none;
}

.permission-subtitle {
  font-weight: 600;
  color: #2b3f64;
  margin-bottom: 8px;
}

.permission-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 12px;
}

.permissions-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #2d3d5a;
  background: #eef3f9;
  padding: 6px 10px;
  border-radius: 10px;
}

.permission-item input {
  margin: 0;
}

.settings-dropdown * {
  pointer-events: auto;
}

.settings-item {
  appearance: none;
  border: 1px solid transparent;
  background: #eef2f8;
  color: #1f355f;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  font-family: inherit;
}

.settings-item:hover {
  background: #e3ebf6;
}

.settings-item.active {
  background: #1f5fbf;
  color: #fff;
}

.settings-item--danger {
  background: #ffe9e9;
  color: #8f2f2f;
  border-color: rgba(200, 75, 75, 0.3);
}

.settings-item--danger:hover {
  background: #ffdede;
}

.hero {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.users-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.2fr);
  align-items: center;
}

.users-hero__stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.users-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start;
  margin-bottom: 26px;
}

.users-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.users-panel__meta {
  color: var(--muted);
  font-weight: 600;
}


.hero-card {
  background: var(--surface);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
}

.hero-card span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-card strong {
  font-size: 1.6rem;
}

.status {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
  border: 1px solid transparent;
  font-weight: 600;
}

.status--info {
  background: #e9f1fb;
  border-color: #c9ddf6;
}

.status--success {
  background: #e6f6ef;
  border-color: #bfe7d7;
}

.status--warn {
  background: #fff2d9;
  border-color: #f2d29c;
}

.status--error {
  background: #fdeaea;
  border-color: #f3bcbc;
}

.card {
  background: linear-gradient(180deg, #eef2f8, #e6ebf2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(10, 24, 43, 0.14);
  margin-bottom: 26px;
  animation: fadeUp 0.5s ease both;
  border: 1px solid rgba(190, 201, 216, 0.7);
}

.section-menu {
  text-align: center;
}

.menu-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

.menu-button {
  width: 100%;
  justify-content: center;
  background: linear-gradient(120deg, #1f5fbf, #2a7ad6);
  box-shadow: 0 12px 24px rgba(18, 61, 120, 0.24);
  border: 1px solid rgba(31, 95, 191, 0.25);
  font-size: 1rem;
}

.menu-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(18, 61, 120, 0.28);
}

.section-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.filter-toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.filter-card {
  background: #f4f7fb;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 16px;
  padding: 14px;
}

.filter-card__label {
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.filter-pills {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.filter-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.search-input {
  max-width: 320px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(197, 210, 226, 0.9);
  padding: 10px 14px;
  background: #f7f9fc;
}

.toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cfd6df;
  background: #f5f7fb;
  color: #1f355f;
  font-size: 0.9rem;
}

.list-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.list-totals span {
  background: #eef2f8;
  padding: 6px 10px;
  border-radius: 10px;
}

.currency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
}

.currency-symbol {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: var(--currency-symbol-url) center/contain no-repeat;
  flex: 0 0 auto;
  transform: translateY(1px);
}

.currency-value {
  display: inline-block;
  line-height: 1;
}

.stats-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.section-stats {
  margin-bottom: 16px;
}

.section-stats .stat-card {
  cursor: default;
}

.section-stats .stat-card:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(197, 210, 226, 0.9);
}

.section-menu .stats-grid {
  margin-bottom: 16px;
}

.stat-card {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 96px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-card strong {
  display: block;
  font-size: 1.25rem;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(20, 35, 74, 0.16);
  border-color: rgba(90, 120, 170, 0.6);
}

.row-upcoming {
  background: #fff4d9;
}

.row-upcoming td {
  font-weight: 600;
  color: #7a4b12;
}

.row-overdue {
  background: #ffe8e8;
}

.row-overdue td {
  font-weight: 600;
  color: #8f2f2f;
}

.status-meta {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.status-meta.overdue-flag {
  color: #b93d3d;
  font-weight: 700;
}

.fleet-dates-summary {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.fleet-dates-summary__panel {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.fleet-dates-summary__header h4 {
  margin: 0;
  color: #1f355f;
  font-size: 1rem;
}

.fleet-dates-summary__header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.fleet-dates-summary__stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.phase-count {
  background: #eef2f8;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 10px;
  padding: 6px 8px;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.phase-count strong {
  color: #1f355f;
  font-size: 1rem;
}

.fleet-dates-summary__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.fleet-dates-summary__list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(197, 210, 226, 0.9);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
}

.fleet-dates-summary__list li > div {
  display: grid;
  gap: 2px;
}

.fleet-dates-summary__list strong {
  color: #1f355f;
}

.fleet-dates-summary__list span,
.fleet-dates-summary__list small {
  color: var(--muted);
  font-weight: 600;
}

.fleet-dates-summary__empty {
  color: var(--muted);
  justify-content: center !important;
  background: #f2f6fb !important;
}

.fleet-dates-summary__more {
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 10px;
  background: #f4f8fd;
}

.fleet-dates-summary__more > summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 10px;
  font-weight: 700;
  color: #1f355f;
}

.fleet-dates-summary__more > summary::-webkit-details-marker {
  display: none;
}

.fleet-dates-summary__list--more {
  max-height: 220px;
  padding: 0 8px 8px;
}

.expiry-phase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.expiry-phase--green {
  background: #e4f7ec;
  color: #216b42;
}

.expiry-phase--yellow {
  background: #fff2dd;
  color: #94652a;
}

.expiry-phase--red {
  background: #fdeaea;
  color: #a84444;
}

.expiry-phase--neutral {
  background: #e4eefc;
  color: #1f4f9a;
}

@media (max-width: 780px) {
  .fleet-dates-summary__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fleet-dates-summary__list li {
    display: grid;
    justify-items: start;
  }
}

.highlight {
  background: #ffe9b7;
  padding: 0 2px;
  border-radius: 4px;
}

.countdown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #cfd6df;
  background: #eef2f8;
  color: #1f355f;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 28px;
}

.follow-up-banner {
  display: flex;
  justify-content: flex-start;
  margin: 4px 0 16px;
}

.countdown-badge[data-state="upcoming"] {
  background: #e6f2ff;
  border-color: #a7c8ff;
  color: #1f4f9a;
}

.countdown-badge[data-state="today"] {
  background: #eef4f3;
  border-color: #b7d7c7;
  color: #1c3f36;
}

.countdown-badge[data-state="overdue"] {
  background: #fdeaea;
  border-color: #f3bcbc;
  color: #8f2f2f;
}

.value-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.amount-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.amount-label {
  color: var(--muted);
  font-weight: 600;
}

.status-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-sub {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.execution-stack span {
  display: block;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cfd6df;
  background: #f3f6fb;
  color: #1f355f;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.filter-pills .pill {
  width: 100%;
  justify-content: center;
}

.pill--ghost {
  background: #f1f5fb;
  border-color: #cfd6df;
  color: #1f355f;
}

.pill--ghost.active {
  background: #1f5fbf;
  color: #fff;
  border-color: #1f5fbf;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 16px;
  position: relative;
  z-index: 1;
}

.smart-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: center;
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 10px 20px rgba(20, 35, 74, 0.08);
}

.smart-bar__item span {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
}

.smart-bar__item strong {
  font-size: 1.1rem;
}

.smart-bar__action {
  justify-self: end;
}

@media (max-width: 720px) {
  .smart-bar__action {
    justify-self: stretch;
  }
}
.filter-pills .pill[data-status="overdue"] {
  border-color: #f2b1b1;
  color: #9a2f2f;
  background: #fff2f2;
}

.filter-pills .pill.active[data-status="overdue"] {
  background: #c84b4b;
  border-color: #c84b4b;
  color: #fff;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.claim-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 16px;
}

.attachment-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f2f6fb;
  border: 1px solid #d7e1ef;
  color: #0b1b33;
  font-weight: 600;
  text-decoration: none;
  min-width: 160px;
}

.attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.attachment-card__title {
  font-weight: 700;
  color: #1b3c7a;
}

.attachment-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-card__name {
  font-size: 0.85rem;
  color: #5f6b7a;
  word-break: break-all;
}

.branch-row {
  cursor: pointer;
}

.branch-row:hover {
  background: #eaf1fb;
}

.attachment-card span {
  font-size: 0.9rem;
}

.attachment-card strong {
  color: #2a4d8f;
}

.claim-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 10px 0 8px;
}

.claim-step {
  background: #eef2f7;
  border: 1px solid #d5dde8;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  color: #64748b;
}

.claim-step.is-done {
  background: #d9f0e4;
  border-color: #67b986;
  color: #0f5132;
}

.claim-step.is-current {
  background: #e7eefc;
  border-color: #4676c5;
  color: #1b3c7a;
}

.stage-lock {
  display: none;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff3cd;
  color: #7a5b00;
  font-weight: 600;
}

.stage-lock--visible {
  display: block;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  direction: rtl;
  justify-items: stretch;
}

.form-grid .form-group {
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 600;
}

.form-group label.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.date-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.date-inline input {
  flex: 1 1 160px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfd6df;
  background: #f1f4f8;
  font-family: inherit;
}

textarea {
  min-height: 90px;
}

.form-grid .form-group:has(textarea) {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .form-grid .form-group:has(textarea) {
    grid-column: span 1;
  }
}

.form-group--wide {
  grid-column: span 2;
}

@media (max-width: 720px) {
  .form-group--wide {
    grid-column: span 1;
  }
}

.permission-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 12px;
  padding: 12px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef3fb;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  color: #1f355f;
}

.permission-item input {
  width: auto;
  accent-color: var(--primary);
}

.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.permission-tag {
  background: #eef3fb;
  border: 1px solid #cfd6df;
  color: #1f355f;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}

.permission-tag--empty {
  color: var(--muted);
  background: #f1f4f8;
}

.detail-item--note .detail-value {
  width: 100%;
}

.detail-item--note .note-text {
  background: #f7f9fc;
  border: 1px solid #d7e1f1;
  border-radius: 10px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.7;
  min-height: 48px;
  max-height: 140px;
  overflow: auto;
  color: #1f355f;
}

.vehicle-picker-modal.hidden {
  display: none;
}

.vehicle-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
}

.vehicle-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 44, 0.45);
  backdrop-filter: blur(4px);
}

.vehicle-picker-panel {
  position: relative;
  background: #fff;
  width: min(520px, 90vw);
  margin: 10vh auto;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.vehicle-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.vehicle-picker-header h3 {
  margin: 0;
}

.vehicle-picker-close {
  border: none;
  background: #eef2f8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}

.vehicle-picker-search {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #cfd6df;
  margin-bottom: 12px;
}

.vehicle-picker-list {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.vehicle-picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e0e6f0;
  background: #f7f9fc;
  cursor: pointer;
  text-align: right;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(28, 107, 90, 0.2);
}

.btn.secondary {
  background: #e8e2db;
  color: #3a2f27;
}

.btn.success {
  background: var(--success);
}

.btn.danger {
  background: var(--danger);
}

.btn.btn-small {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.link-button {
  background: none;
  border: none;
  color: #1f5fbf;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.link-button:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow-x: auto;
  padding-bottom: 6px;
  position: relative;
  z-index: 2;
}

table:not(.debt-table) {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

table:not(.debt-table) thead {
  background: var(--surface-alt);
}

table:not(.debt-table) th,
table:not(.debt-table) td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #d6dde6;
}

table.users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

table.users-table thead th {
  background: var(--surface-alt);
  color: #1f355f;
  font-weight: 700;
}

table.users-table th,
table.users-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #d6dde6;
}

table.users-table tbody tr {
  background: #f7f9fc;
}

table.users-table tbody tr:nth-child(even) {
  background: #eef3f9;
}

.debt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  min-width: 760px;
}

.debt-table thead th {
  background: #e6edf7;
  color: #1f355f;
  border: none;
  font-weight: 700;
  padding: 14px 12px;
}

.debt-table th,
.debt-table td {
  padding: 14px 12px;
  text-align: center;
  border: none;
}

.debt-table tbody tr {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.debt-table tbody tr:hover {
  box-shadow: none;
  border-color: rgba(120, 146, 186, 0.9);
  background: #f1f5fb;
}

.debt-table-body {
  pointer-events: auto;
}

.debt-table tbody td,
.debt-table tbody tr {
  transform: none !important;
  transition: none;
}

.debt-table tbody td * {
  pointer-events: auto;
}

.view-badge {
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #efe7df;
  color: transparent;
  font-size: 0;
  position: relative;
}

.view-badge::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a2f27;
}

.debt-table-body td {
  padding-top: 16px;
  padding-bottom: 16px;
  user-select: none;
}

.debt-table tbody tr {
  position: static;
}

.debt-table tbody td {
  position: static;
}

.debt-table .btn {
  position: relative;
  z-index: 1;
}

.form-grid {
  align-items: start;
  direction: rtl;
  justify-items: stretch;
}

.form-group {
  text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
  text-align: right;
}

.debt-table tbody td:first-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.debt-table tbody td:last-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.empty {
  color: var(--muted);
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.status-OPEN,
.status-REQUIRES_PHOTOS,
.status-WAITING_REPAIR,
.status-IN_PROGRESS,
.status-DRAFT,
.status-ESTIMATE_RECEIVED,
.status-SUBMITTED,
.status-IN_WORKSHOP,
.status-PARTS_ORDERED,
.status-QUALITY_CHECK,
.status-READY_FOR_DELIVERY {
  background: #fff2dd;
  color: #94652a;
}

.status-COMPLETED,
.status-CLOSED,
.status-COMPENSATED,
.status-DELIVERED_TO_BRANCH {
  background: #e5f6ef;
  color: #2e6f57;
}

.status-open,
.status-under_collection,
.status-debt,
.status-legal,
.status-in_execution,
.status-settlement,
.status-closed {
  background: #e4eefc;
  color: #1f4f9a;
}

.hint {
  color: rgba(81, 96, 122, 0.85);
  margin-top: 8px;
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.collapsed-list {
  margin-top: 12px;
}

.collapsed-list > summary {
  cursor: pointer;
  font-weight: 700;
  padding: 10px 14px;
  background: #eef2f8;
  border: 1px solid #cfd6df;
  border-radius: 12px;
  list-style: none;
}

.collapsed-list > summary::-webkit-details-marker {
  display: none;
}

.battery-record {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
}

.battery-record__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: #1f355f;
}

.battery-record__meta {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.battery-record__body {
  display: grid;
  gap: 4px;
  color: #1f355f;
  font-weight: 600;
}

.battery-record__links,
.battery-record__note {
  color: var(--muted);
  font-size: 0.9rem;
}

.letters-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.letters-meta-cell {
  background: #f5f8fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.letters-meta-cell span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.letters-meta-cell strong {
  color: #183562;
  font-size: 1rem;
}

.letters-body-preview {
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.letters-body-preview h3 {
  margin: 0 0 8px;
  color: #183562;
  font-size: 1rem;
}

.letters-body-preview pre {
  margin: 0;
  font-family: "Tajawal", "Cairo", sans-serif;
  font-size: 0.98rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #1f355f;
}

.letters-attachment-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}

.letters-attachment-list li {
  background: #f8fafc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.letters-attachment-list li a {
  color: #1f5fbf;
  font-weight: 700;
  text-decoration: none;
}

.letters-attachment-list li a:hover {
  text-decoration: underline;
}

.letters-attachment-list li span {
  color: var(--muted);
  font-size: 0.9rem;
}

.letters-attachment-note {
  color: #35507b;
  font-size: 0.9rem;
}

.letters-search-group {
  margin-top: 12px;
}

.warranty-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
}

.warranty-badge--near {
  background: #fff2dd;
  color: #94652a;
}

.warranty-badge--expired {
  background: #fdeaea;
  color: #a84444;
}

.warranty-badge--far {
  background: #e5f6ef;
  color: #2e6f57;
}

.timeline-item {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 12px;
  box-shadow: 0 10px 22px rgba(18, 32, 61, 0.08);
}

.timeline-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-weight: 700;
}

.timeline-index {
  background: #1f5fbf;
  color: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.timeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(31, 95, 191, 0.1);
  color: #1f5fbf;
}

.timeline-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.timeline-details {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  color: #203254;
}

.timeline-detail {
  background: #eef2f8;
  padding: 6px 10px;
  border-radius: 10px;
}

.action-card {
  border: 1px solid #d5dde8;
  background: #f7f9fc;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.action-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #1c2f55;
  margin-bottom: 8px;
}

.action-card__body {
  display: grid;
  gap: 6px;
  color: #203254;
}

.timeline-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
  overflow: hidden;
}

.modal.hidden {
  display: none;
}

.modal__content {
  background: #f7f9fc;
  border-radius: 20px;
  padding: 22px;
  max-width: 620px;
  width: min(92vw, 620px);
  box-shadow: 0 22px 44px rgba(12, 24, 50, 0.22);
  position: relative;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

body.modal-open {
  overflow: hidden;
}

.modal__title {
  margin: 0 0 12px;
}

.modal__close {
  position: absolute;
  top: 10px;
  left: 10px;
  border: none;
  background: #e8eef7;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
}

.modal__body {
  display: grid;
  gap: 0;
  color: #203254;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 16px;
  background: #f7f9fc;
  overflow: hidden;
}

.modal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(197, 210, 226, 0.7);
  background: transparent;
  justify-content: flex-start;
}

.modal-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

.modal-label::after {
  content: ":";
  margin-inline-start: 6px;
  color: rgba(81, 96, 122, 0.7);
  font-weight: 400;
}

.modal-value {
  font-weight: 700;
  color: #1f355f;
  text-align: right;
  white-space: nowrap;
}

.modal-row:last-child {
  border-bottom: none;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.payments-panel {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 18px;
  padding: 16px;
  margin: 8px 0 16px;
}

.detail-grid {
  display: grid;
  gap: 12px 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 12px;
}

.detail-grid .detail-item {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.detail-grid .detail-item > span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.detail-grid .detail-item .detail-value {
  font-weight: 700;
  color: #1f355f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-item--qr {
  text-align: center;
}

.detail-item--qr .detail-value {
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-item--action .detail-value {
  justify-content: flex-start;
}

.detail-item--action .btn {
  min-height: 38px;
  padding: 8px 14px;
}

.qr-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.qr-image {
  width: clamp(104px, 12vw, 138px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid rgba(197, 210, 226, 0.9);
  background: #fff;
  padding: 4px;
  image-rendering: pixelated;
  display: block;
}

.qr-meta {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.vehicle-sale-collapse {
  margin-top: 8px;
}

.vehicle-sale-collapse > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9fc;
}

.vehicle-sale-collapse > summary::after {
  content: "إظهار";
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.vehicle-sale-collapse[open] > summary::after {
  content: "إخفاء";
}

.vehicle-sale-collapse[open] > summary {
  margin-bottom: 12px;
}

.vehicle-damage-collapse {
  margin-top: 12px;
  border: 1px dashed #d7e3f0;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fbff;
}

.vehicle-damage-collapse > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9fc;
  font-weight: 700;
  color: #23446e;
}

.vehicle-damage-collapse > summary::after {
  content: "إظهار";
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.vehicle-damage-collapse[open] > summary::after {
  content: "إخفاء";
}

.vehicle-damage-collapse[open] > summary {
  margin-bottom: 8px;
}

.vehicle-damage-summary__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #243b5a;
  font-size: 0.88rem;
}

.vehicle-damage-summary__item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  background: #fff;
  border: 1px solid #e3eaf4;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
}

.vehicle-damage-summary__item span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.vehicle-damage-summary__empty {
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 8px;
}

.inspection-checklist {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.inspection-checklist label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
  color: #1f355f;
}

.inspection-session-list {
  display: grid;
  gap: 14px;
}

.inspection-session-card {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 14px;
  padding: 14px;
}

.inspection-session-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.inspection-session-card__header h3 {
  margin: 0;
  font-size: 1.03rem;
}

.periodic-picker {
  margin-top: 8px;
}

.inspection-queue {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.inspection-queue-item {
  display: grid;
  gap: 8px;
}

.inspection-queue-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 12px;
  padding: 8px;
}

.inspection-queue-row.is-active {
  border-color: #2a6fd4;
  box-shadow: 0 8px 18px rgba(31, 95, 191, 0.14);
}

.inspection-queue-open {
  appearance: none;
  border: none;
  background: transparent;
  display: grid;
  gap: 2px;
  text-align: right;
  width: 100%;
  cursor: pointer;
  padding: 4px;
}

.inspection-queue-open strong {
  color: #1f355f;
  font-size: 1rem;
}

.inspection-queue-open span,
.inspection-queue-open small {
  color: var(--muted);
  font-weight: 600;
}

.inspection-queue-remove {
  min-height: 36px;
}

.inspection-queue-panel {
  padding-inline: 4px;
}

.inspection-active-panel {
  margin-top: 6px;
}

.renewal-request-list {
  display: grid;
  gap: 12px;
}

.renewal-request-card {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.renewal-request-card--closed {
  background: #f4f8ff;
}

.renewal-request-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.renewal-request-fold {
  padding: 0;
}

.renewal-request-card__summary {
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 14px;
  position: relative;
}

.renewal-request-card__summary::-webkit-details-marker {
  display: none;
}

.renewal-request-card__summary::marker {
  content: "";
}

.renewal-request-card__summary::after {
  content: "▾";
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  align-self: center;
}

.renewal-request-fold:not([open]) .renewal-request-card__summary::after {
  transform: rotate(-90deg);
}

.renewal-request-fold__content {
  padding: 0 14px 14px;
}

.renewal-request-card__header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.renewal-request-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: left;
}

.renewal-request-meta small {
  color: var(--muted);
  font-weight: 600;
}

.renewal-method-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: #e8eef9;
  color: #1f4f9f;
  font-weight: 700;
  font-size: 0.84rem;
}

.renewal-vehicle-list {
  display: grid;
  gap: 8px;
}

.renewal-vehicle-item {
  display: grid;
  gap: 8px;
}

.renewal-vehicle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.renewal-vehicle-row.is-active {
  border-color: #2a6fd4;
  box-shadow: 0 8px 18px rgba(31, 95, 191, 0.14);
}

.renewal-vehicle-open {
  appearance: none;
  border: none;
  background: transparent;
  text-align: right;
  width: 100%;
  display: grid;
  gap: 2px;
  cursor: pointer;
  padding: 4px;
}

.renewal-vehicle-open strong {
  color: #1f355f;
  font-size: 1rem;
}

.renewal-vehicle-open span,
.renewal-vehicle-open small {
  color: var(--muted);
  font-weight: 600;
}

.renewal-vehicle-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.renewal-vehicle-status--pending {
  color: #8d5f09;
  background: #fff4d8;
}

.renewal-vehicle-status--done {
  color: #0a6c38;
  background: #def7e8;
}

.renewal-vehicle-panel {
  padding-inline: 4px;
}

.renewal-session-card {
  background: #fff;
}

.renewal-closed-vehicles {
  display: grid;
  gap: 8px;
}

.renewal-closed-vehicle {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.renewal-closed-vehicle strong {
  color: #1f355f;
}

.renewal-closed-vehicle span,
.renewal-closed-vehicle small {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 780px) {
  .renewal-request-card__header {
    display: grid;
  }

  .renewal-request-meta {
    justify-items: start;
    text-align: right;
  }

  .renewal-vehicle-row {
    grid-template-columns: 1fr;
  }
}

#mobileUploadModalLink {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.5;
  width: 100%;
}

.scroll-top-btn {
  margin-bottom: 8px;
}

.detail-grid--stack {
  grid-template-columns: 1fr;
}

.detail-grid--stack .detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-item--link-collapsible {
  display: block !important;
  width: 100%;
}

.mobile-upload-link-collapse {
  margin-top: 0;
  width: 100%;
}

.mobile-upload-link-collapse > summary {
  background: #eef2f8;
}

.mobile-upload-link-collapse__content {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.detail-grid--stack .detail-label::after {
  content: ":";
  margin-inline-start: 4px;
}

.detail-grid--stack .detail-label {
  color: var(--muted);
  font-weight: 600;
}

.detail-grid--stack .detail-value {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-grid--stack .detail-value .value-stack,
.detail-grid--stack .detail-value .status-stack,
.detail-grid--stack .detail-value .execution-stack {
  flex-basis: 100%;
  margin-top: 4px;
}

.choice-grid {
  background: var(--surface-alt);
  border: 1px solid #cfd6df;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.detail-item > span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-item > strong {
  display: block;
  font-size: 1rem;
}

.detail-item .detail-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

.status-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17, 36, 74, 0.95);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(6, 18, 39, 0.35);
  font-weight: 600;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

.timeline-item {
  background: var(--surface-alt);
  border: 1px solid #cfd6df;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.timeline-group {
  margin: 18px 0 10px;
  font-weight: 700;
  color: #1f355f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-group::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(31, 53, 95, 0.18);
}

.timeline-item--fresh {
  border-color: #2f8f6a;
  box-shadow: 0 10px 20px rgba(47, 143, 106, 0.18);
  background: #f1fbf7;
}

.detail-item--execution {
  border: 1px dashed rgba(31, 95, 191, 0.35);
  background: #f1f6ff;
}

.detail-item--execution .detail-value {
  font-weight: 700;
  color: #1f5fbf;
}

.detail-item img {
  display: block;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.timeline-index {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.timeline-details {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(81, 96, 122, 0.9);
  font-size: 0.95rem;
}

.timeline-detail {
  line-height: 1.5;
}

.timeline-attachments a {
  display: inline-block;
  margin-left: 12px;
  color: var(--primary-dark);
  text-decoration: none;
}

.amount-row {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.amount-row select,
.amount-row input {
  width: 100%;
}

.alert {
  background: #e0e6ef;
  border-right: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    align-items: flex-start;
  }

  .debt-layout {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 540px;
  }

  .nav-block {
    width: 100%;
  }

  .settings-menu {
    position: static;
  }

  .settings-dropdown {
    left: auto;
    right: 0;
  }
}

@media (max-width: 900px) {
  .users-hero {
    grid-template-columns: 1fr;
  }

  .users-layout {
    grid-template-columns: 1fr;
  }

  .users-table {
    min-width: 560px;
  }
}

@media (max-width: 1100px) {
  :root {
    --ui-scale: 0.72;
  }

  body {
    zoom: var(--ui-scale);
    width: calc(100% / var(--ui-scale));
    left: calc((100% / var(--ui-scale) - 100%) / 2);
  }
}

@media (max-width: 900px) {
  :root {
    --ui-scale: 1;
  }

  body {
    zoom: var(--ui-scale);
    width: calc(100% / var(--ui-scale));
    left: calc((100% / var(--ui-scale) - 100%) / 2);
  }
}

@media print {
  body {
    background: #fff;
    zoom: 1;
    width: 100%;
    left: 0;
  }

  .bg-shape,
  .site-header,
  .nav-links,
  .actions,
  .btn,
  .status {
    display: none !important;
  }

  .card {
    display: none;
  }

  .print-area {
    display: block;
  }

  .print-area {
    box-shadow: none;
    border: 1px solid #cfd6df;
  }

  .container {
    width: 100%;
  }
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-tile {
  background: var(--surface-alt);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #cdd5df;
}

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.stat-tile-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-tile-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(10, 31, 60, 0.18);
}

.stat-tile strong {
  font-size: 1.6rem;
}

.severity-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 72px;
}

.severity-critical {
  background: #fdeaea;
  color: #a84444;
}

.severity-warning {
  background: #fff2dd;
  color: #94652a;
}

.severity-info {
  background: #e4eefc;
  color: #1f4f9a;
}

.audit-summary-lists {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 16px;
}

.audit-summary-list {
  background: #f7f9fc;
  border: 1px solid rgba(197, 210, 226, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
}

.audit-summary-list h3 {
  margin: 0 0 10px;
  color: #1f355f;
  font-size: 1rem;
}

.audit-summary-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.audit-summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #eef2f8;
}

.audit-summary-list li span:last-child {
  color: #1f355f;
  font-weight: 700;
}

.audit-pagination {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.audit-page-info {
  min-width: 150px;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.audit-detail-text {
  max-width: 460px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mono-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.status-open,
.status-waiting {
  background: #fff2dd;
  color: #94652a;
}

.status-completed {
  background: #e5f6ef;
  color: #2e6f57;
}

.status-cancelled {
  background: #fdeaea;
  color: #a84444;
}

.badge-in-progress {
  background: #fff2dd;
  color: #94652a;
}

.badge-claim {
  background: #e4eefc;
  color: #1f4f9a;
}

.badge-closed {
  background: #e5f6ef;
  color: #2e6f57;
}
#debtActionForm {
  direction: rtl;
  text-align: right;
  justify-items: end;
}

#panel-actions {
  direction: rtl;
}

#panel-actions .form-grid {
  direction: rtl;
  justify-items: end;
  text-align: right;
  margin-bottom: 18px;
}

#panel-actions .form-group,
#panel-actions .form-group label {
  text-align: right;
  width: 100%;
  direction: rtl;
}

#panel-actions .form-grid > .form-group {
  justify-self: end;
}

#panel-actions .form-group input,
#panel-actions .form-group select,
#panel-actions .form-group textarea {
  text-align: right;
  direction: rtl;
}

#panel-actions input,
#panel-actions select,
#panel-actions textarea {
  text-align: right;
  direction: rtl;
}

#panel-actions select {
  direction: rtl;
}
.maintenance-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 12px 0 20px;
}

.maintenance-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #eef2f7;
  border: 1px solid #d5dde8;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.maintenance-step .step-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.08);
}

.maintenance-step svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.maintenance-step.is-done {
  background: #d9f0e4;
  border-color: #67b986;
  color: #0f5132;
}

.maintenance-step.is-current {
  background: #e7eefc;
  border-color: #4676c5;
  color: #1b3c7a;
}

.maintenance-step.is-locked {
  background: #f4f5f7;
  border-color: #e0e0e0;
  color: #94a3b8;
  cursor: not-allowed;
}

.maintenance-step:not(.is-locked):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.attachments-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.attachment-stage-card {
  background: #f7f9fc;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 12px;
}

.attachment-stage-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1b3c7a;
  margin-bottom: 10px;
}

.attachment-stage-header .stage-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 8px;
}

.attachment-thumb-wrap {
  display: grid;
  gap: 6px;
}

.attachment-thumb {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e1e8f3;
  background: #fff;
}

.attachment-thumb img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.attachment-caption {
  font-size: 0.75rem;
  color: #5f6b7a;
  text-align: center;
}

.attachment-file {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  background: #fff;
  border: 1px dashed #d1d9e6;
  border-radius: 10px;
  padding: 6px 8px;
}

@media (max-width: 720px) {
  .maintenance-step {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

/* Login page */
.login-page {
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  zoom: 1;
  width: 100%;
  left: 0;
  background:
    radial-gradient(760px 360px at 10% 12%, rgba(51, 137, 208, 0.24), transparent 62%),
    radial-gradient(760px 360px at 92% 84%, rgba(83, 172, 239, 0.2), transparent 60%),
    linear-gradient(140deg, #081a34 0%, #102a4b 54%, #0d2e54 100%);
}

.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(155, 195, 236, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 195, 236, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.32;
  z-index: 0;
}

.login-network {
  width: min(1240px, 96vw);
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px) 0;
  position: relative;
  z-index: 1;
}

.login-network__paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.flow-path {
  fill: none;
  stroke-linecap: round;
}

.flow-path--main {
  stroke: url(#loginFlowMain);
  stroke-width: 3;
  stroke-dasharray: 10 14;
  animation: flowPulse 7s ease-in-out infinite, flowRun 15s linear infinite;
}

.flow-path--soft {
  stroke: url(#loginFlowSoft);
  stroke-width: 2.4;
  opacity: 0.78;
  stroke-dasharray: 7 15;
  animation: flowPulse 8s ease-in-out infinite, flowRun 17s linear infinite;
}

.login-tasks {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.task-node {
  position: absolute;
  width: clamp(170px, 15vw, 208px);
  border-radius: 16px;
  border: 1px solid rgba(170, 212, 248, 0.38);
  background: linear-gradient(160deg, rgba(17, 52, 91, 0.8), rgba(11, 36, 66, 0.64));
  color: #e9f5ff;
  padding: 11px 12px;
  display: grid;
  gap: 6px;
  box-shadow: 0 16px 28px rgba(3, 15, 32, 0.22);
  backdrop-filter: blur(2px);
}

.task-node strong {
  font-size: 0.95rem;
  line-height: 1.4;
}

.task-node span {
  font-size: 0.81rem;
  color: rgba(220, 238, 255, 0.84);
  line-height: 1.5;
}

.task-node__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(183, 225, 255, 0.4);
  background: rgba(105, 184, 241, 0.18);
  color: #d6ecff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.task-node__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.task-node--contracts {
  top: 12%;
  left: 8%;
}

.task-node--maintenance {
  top: 12%;
  right: 8%;
}

.task-node--claims {
  bottom: 18%;
  right: 8%;
}

.task-node--collections {
  bottom: 18%;
  left: 8%;
}

.task-node--users {
  top: 42%;
  left: 3%;
}

.login-card {
  width: min(92vw, 440px);
  background: linear-gradient(180deg, #f7fbff, #eaf2fb);
  border: 1px solid rgba(188, 208, 233, 0.82);
  border-radius: 24px;
  box-shadow: 0 26px 56px rgba(4, 17, 36, 0.3);
  padding: clamp(22px, 3vw, 30px) clamp(18px, 2.6vw, 28px) clamp(20px, 2.8vw, 26px);
  z-index: 3;
  text-align: right;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: loginFadeIn 0.55s ease both;
}

.login-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 138, 206, 0.26);
  background: rgba(100, 163, 228, 0.16);
  color: #355e8c;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
  position: absolute;
  top: clamp(14px, 2.2vw, 22px);
  right: clamp(14px, 2vw, 20px);
}

.login-card h1 {
  margin: clamp(34px, 4.2vw, 44px) 0 0;
  color: #102647;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1.25;
  text-align: center;
}

.login-subtitle {
  margin: 0;
  color: #587095;
  font-size: 0.9rem;
  text-align: center;
}

.login-card .form-group label {
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.login-card .form-grid {
  gap: 11px;
  grid-template-columns: 1fr;
  margin-top: 2px;
}

.login-card input {
  background: #f9fcff;
  border-color: #ccd9ec;
  font-size: 0.95rem;
  padding: 11px 12px;
  min-height: 50px;
  border-radius: 13px;
}

.login-card #loginEmail {
  direction: ltr;
  text-align: left;
}

.login-card #loginPassword {
  text-align: right;
  letter-spacing: 0.05em;
}

.login-card input:focus {
  outline: none;
  border-color: #4a86d1;
  box-shadow: 0 0 0 3px rgba(74, 134, 209, 0.16);
}

.login-card .actions {
  margin-top: 2px;
  margin-bottom: 0;
}

.login-card .btn {
  width: 100%;
  justify-content: center;
  border-radius: 13px;
  padding: 12px 16px;
  font-size: 0.96rem;
  min-height: 50px;
  box-shadow: 0 14px 24px rgba(20, 76, 145, 0.2);
}

.login-card .status {
  margin: 2px 0 0;
}

.login-route-note {
  margin: 4px 0 0;
  text-align: center;
  color: #5d7497;
  font-size: 0.82rem;
  line-height: 1.45;
}

.login-card .login-company {
  margin: 0;
  text-align: center;
  color: #6a7f9f;
  font-size: 0.82rem;
  line-height: 1.45;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flowRun {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes flowPulse {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .task-node {
    width: clamp(156px, 16vw, 188px);
  }
}

@media (max-width: 860px) {
  .login-network {
    width: min(620px, 94vw);
    min-height: auto;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 12px;
    padding: 18px 0 30px;
  }

  .login-network__paths {
    display: none;
  }

  .login-tasks {
    position: static;
    inset: auto;
    pointer-events: auto;
    width: 100%;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }

  .task-node {
    position: static;
    width: 100%;
    box-shadow: 0 12px 24px rgba(3, 15, 32, 0.2);
  }

  .task-node--contracts,
  .task-node--maintenance,
  .task-node--claims,
  .task-node--collections,
  .task-node--users {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .login-card {
    width: 100%;
    max-width: 460px;
    gap: 9px;
  }
}

@media (max-width: 560px) {
  .login-tasks {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-path,
  .login-card {
    animation: none;
  }
}
