/* ==========================================================================
   Rentix shared tokens + base UI primitives
   Общие переменные, иконки, скелетоны и проектные акценты.
   ========================================================================== */

:root {
  /* поверхности */
  --bg: #08080b;
  --bg-grid: rgba(255, 255, 255, .025);
  --panel: rgba(15, 15, 19, .86);
  --panel-soft: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .20);

  /* текст */
  --ink: #f2f2f6;
  --muted: #8c8d99;
  --muted-soft: #5c5d68;

  /* фирменные цвета Majestic */
  --accent: #ff0a5e;
  --accent-2: #ff4d8c;
  --accent-deep: #5c0028;
  --accent-soft: rgba(var(--accent-rgb), .14);
  --accent-rgb: 255, 10, 94;
  --accent-2-rgb: 255, 77, 140;

  /* статусы */
  --gold: #f3b13c;
  --green: #2bd07a;
  --green-soft: rgba(43, 208, 122, .14);
  --grey-rail: #4b4c56;

  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

body[data-project="gta5rp"] {
  --accent: #ff7a00;
  --accent-2: #ffb15c;
  --accent-deep: #5a2500;
  --accent-soft: rgba(255, 122, 0, .16);
  --accent-rgb: 255, 122, 0;
  --accent-2-rgb: 255, 177, 92;
}

.rx-icon {
  width: 1.08em;
  height: 1.08em;
  display: inline-block;
  vertical-align: -.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon-btn .rx-icon,
.notification-bell .rx-icon,
.search-ico .rx-icon,
.toast-close .rx-icon,
.upload-file-preview .rx-icon,
.ticket-empty-icon .rx-icon,
.rental-vehicle-link-mark .rx-icon {
  width: 18px;
  height: 18px;
}
.notification-bell .rx-icon { width: 17px; height: 17px; }
.search-ico .rx-icon { width: 16px; height: 16px; }
.icon-btn .rx-icon { width: 18px; height: 18px; }
.toast-close .rx-icon { width: 14px; height: 14px; }
.upload-file-kind .rx-icon { width: 18px; height: 18px; }
.ticket-empty-icon .rx-icon { width: 42px; height: 42px; }
.context-menu-icon .rx-icon { width: 15px; height: 15px; }
.context-menu-icon-text { font: 700 11px/1 var(--font-display); letter-spacing: .02em; }

.skeleton-state {
  display: grid;
  gap: 10px;
  padding: 4px;
  color: var(--muted);
}
.skeleton-card {
  position: relative;
  overflow: hidden;
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}
.skeleton-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .24), rgba(var(--accent-2-rgb), .42), rgba(var(--accent-rgb), .18));
}
.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 20%, rgba(var(--accent-rgb), .09) 48%, transparent 74%);
  animation: rentixSkeletonShimmer 1.25s ease-in-out infinite;
}
.skeleton-line {
  display: block;
  height: 10px;
  margin: 17px 16px 0;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}
.skeleton-line.short { width: 38%; }
.skeleton-line.medium { width: 62%; }
.skeleton-line.long { width: 84%; }
.skeleton-label {
  padding: 0 3px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
@keyframes rentixSkeletonShimmer { to { transform: translateX(120%); } }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
