/**
 * ==============================================================================
 * Multi-Tech Pro Enterprise Theme (spin-theme.css)
 * Platforma: Multi-Tech Pro Field Service Manager (fsm.multi-tech.pro)
 * Przeznaczenie: Klasyczny, zwarty desktopowy interfejs operatorski (Telco FSM)
 * Wersja: 1.1.0 (Production Enterprise Release)
 * ==============================================================================
 * 
 * SPIS TREŚCI:
 * 1. ZMIENNE PROJEKTOWE & TOKENY SYSTEMOWE (CSS Custom Properties)
 * 2. RESET, TYPOGRAFIA & BAZOWE ELEMENTY (11-12px Segoe UI / Tahoma)
 * 3. GŁÓWNA STRUKTURA UKŁADU (App Layout, Flex/Grid Containers)
 * 4. BELKA GÓRNA (Topbar, Logo Multi-Tech Pro FSM, Zakładki modułów z efektem bevel)
 * 5. PASEK NARZĘDZIOWY (Toolbar, Pigułki statusowe w 4 barwach, Przyciski akcji)
 * 6. PANEL BOCZNY (Sidebar 260-280px / 52px zwinięty, Akordeon, Liczniki, Ostrzeżenia)
 * 7. DOLNA KARTA UŻYTKOWNIKA (Awatar SJ, Multi-Tech Pro / TELZAS Partner, PGI 0)
 * 8. SIATKA GŁÓWNA - MASTER GRID (Ultra-dense table ~24-27px, Wiersz filtrów w <th>, Zaznaczenie #fff3cd)
 * 9. PLAKIETKI STATUSÓW (Fuksja/Magenta #c2185b, Bordowy #881337, Pomarańcz #ea580c, Linki, Szarości)
 * 10. DOLNE PANELE DOKOWANE (Master-Detail Split, Resizer, Zadania i NE List)
 * 11. PAGINACJA I PASEK PODSUMOWANIA SIATKI
 * 12. OKNA DIALOGOWE, MODALE I FORMULARZE KLASYCZNE
 * 13. MENU KONTEKSTOWE, TOOLTIPY & SYSTEM CHMUREK
 * 14. GALERIA ZDJĘĆ I DOKUMENTACJA TERENOWA (Field Photo Catalog)
 * 15. WBUDOWANE IKONY SVG & KLASY POMOCNICZE
 * 16. SPiN INTEGRATION & COMPONENT ROOT ALIASES
 * ==============================================================================
 */

/* ==============================================================================
   1. ZMIENNE PROJEKTOWE & TOKENY SYSTEMOWE
   ============================================================================== */
:root {
  /* Paleta bazowa - Srebro, Szarość, Metale Telco */
  --spin-bg-page: #eaeff4;
  --spin-bg-panel: #f4f7f9;
  --spin-bg-panel-alt: #ffffff;
  --spin-bg-topbar-top: #fbfcfd;
  --spin-bg-topbar-bottom: #dbe2e9;
  --spin-bg-toolbar-top: #f2f5f8;
  --spin-bg-toolbar-bottom: #dce3ea;
  --spin-bg-header-top: #f7fafc;
  --spin-bg-header-bottom: #e2e8f0;
  --spin-bg-header-hover: #edf4fa;

  /* Obramowania telco */
  --spin-border-main: #b5c2cf;
  --spin-border-dark: #8b9baa;
  --spin-border-light: #ffffff;
  --spin-border-subtle: #d1d9e2;
  --spin-border-input: #a0aec0;
  --spin-border-focus: #0284c7;

  /* Typografia i barwy tekstu */
  --spin-font-family: "Segoe UI", Tahoma, Arial, "Helvetica Neue", sans-serif;
  --spin-font-mono: "Consolas", "Courier New", monospace;
  --spin-text-main: #1e293b;
  --spin-text-muted: #64748b;
  --spin-text-subtle: #94a3b8;
  --spin-text-heading: #0f172a;
  --spin-text-link: #1d4ed8;

  /* Barwy firmowe Multi-Tech Pro (Identyfikacja wizualna) */
  --mtp-primary: #015ea4;
  --mtp-accent: #0292d4;
  --mtp-graphite: #353b46;
  --mtp-navy-deep: #0f5d9a;

  /* Wymiary gęstości Telco */
  --spin-topbar-height: 36px;
  --spin-toolbar-height: 32px;
  --spin-sidebar-width: 270px;
  --spin-sidebar-collapsed-width: 52px;
  --spin-row-height: 24px;
  --spin-splitter-height: 6px;
  --spin-dock-panel-height: 230px;

  /* Pigułki Statusowe w Toolbarze (4 kluczowe kolory Telco) */
  --spin-pill-burgundy: #881337;
  --spin-pill-burgundy-border: #700f2b;
  --spin-pill-blue: #1d4ed8;
  --spin-pill-blue-border: #1e3a8a;
  --spin-pill-orange: #ea580c;
  --spin-pill-orange-border: #9a3412;
  --spin-pill-emerald: #15803d;
  --spin-pill-emerald-border: #14532d;
  
  /* Plakietki Statusów w Siatce Danych */
  --spin-status-magenta-bg: #c2185b;
  --spin-status-magenta-text: #ffffff;
  --spin-status-magenta-border: #880e4f;

  --spin-status-burgundy-bg: #7f1d1d;
  --spin-status-burgundy-text: #ffffff;
  --spin-status-burgundy-border: #4c0519;

  --spin-status-orange-bg: #ea580c;
  --spin-status-orange-text: #ffffff;
  --spin-status-orange-border: #9a3412;

  --spin-status-gray-bg: #e2e8f0;
  --spin-status-gray-text: #475569;
  --spin-status-gray-border: #cbd5e1;

  --spin-status-green-bg: #15803d;
  --spin-status-green-text: #ffffff;
  --spin-status-green-border: #14532d;

  --spin-status-alert-bg: #dc2626;
  --spin-status-alert-text: #ffffff;

  /* Wyróżnienia zaznaczenia wiersza (Klasyczny Telco Warm Yellow) */
  --spin-row-selected-bg: #fff3cd;
  --spin-row-selected-border: #ffeeba;
  --spin-row-selected-text: #533f03;
  --spin-row-hover-bg: #eaf2fa;

  /* Gradienty 3D Bevel (Efekt wypukłości/wklęsłości telco) */
  --spin-bevel-btn: linear-gradient(to bottom, #fcfdfe 0%, #ebf0f5 48%, #d8e1ea 52%, #e5edf5 100%);
  --spin-bevel-btn-hover: linear-gradient(to bottom, #ffffff 0%, #f1f6fb 48%, #e1e9f1 52%, #edf3f8 100%);
  --spin-bevel-btn-pressed: linear-gradient(to bottom, #cad5e2 0%, #dbe3ed 100%);
  --spin-bevel-tab-active: linear-gradient(to bottom, #ffffff 0%, #edf2f7 100%);
  --spin-bevel-tab-inactive: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e1 100%);

  /* Cienie */
  --spin-shadow-subtle: 0 1px 2px rgba(0, 0, 0, 0.08);
  --spin-shadow-dropdown: 0 4px 12px rgba(0, 0, 0, 0.18);
  --spin-shadow-modal: 0 10px 25px rgba(0, 0, 0, 0.35);
  --spin-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* ==============================================================================
   2. RESET, TYPOGRAFIA & BAZOWE ELEMENTY
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--spin-font-family);
  font-size: 12px;
  line-height: 1.25;
  color: var(--spin-text-main);
  background-color: var(--spin-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: text;
}

/* Dostosowanie suwaków przewijania - zwarte, szare, dyskretne */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #e5ebf1;
  border: 1px solid #d0dbe6;
}

::-webkit-scrollbar-thumb {
  background: #b0c0d0;
  border-radius: 2px;
  border: 1px solid #94a3b8;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

::-webkit-scrollbar-corner {
  background: #d8e1ea;
}

/* Elementy formularzy w stylu enterprise */
input[type="text"],
input[type="search"],
input[type="number"],
input[type="date"],
select,
textarea {
  font-family: var(--spin-font-family);
  font-size: 11px;
  color: #1e293b;
  background-color: #ffffff;
  border: 1px solid var(--spin-border-input);
  border-radius: 2px;
  padding: 2px 5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--spin-border-focus);
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.35);
  background-color: #ffffff;
}

button {
  font-family: var(--spin-font-family);
  user-select: none;
}

a {
  color: var(--spin-text-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==============================================================================
   3. GŁÓWNA STRUKTURA UKŁADU (App Layout Engine)
   ============================================================================== */
.spin-app {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  min-width: 1024px;
  overflow: hidden;
  background-color: var(--spin-bg-page);
}

.spin-header-wrapper {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--spin-border-dark);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.spin-body-layout {
  flex: 1 1 auto;
  display: flex;
  flex-direction: row;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.spin-content-area {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background-color: #ffffff;
}

/* ==============================================================================
   4. BELKA GÓRNA (Topbar, Logo Multi-Tech Pro FSM, Zakładki modułów z efektem bevel)
   ============================================================================== */
.spin-topbar-wrapper {
  font-family: var(--spin-font-family);
  font-size: 11px;
  color: #1e293b;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex-shrink: 0;
  user-select: none;
}

.spin-topbar {
  height: var(--spin-topbar-height);
  background: linear-gradient(to bottom, var(--spin-bg-topbar-top) 0%, var(--spin-bg-topbar-bottom) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 6px;
  border-bottom: 1px solid var(--spin-border-subtle);
}

.spin-topbar-row1 {
  height: 36px;
  background: linear-gradient(to bottom, #fbfcfd 0%, #dbe2e9 100%);
  border-bottom: 1px solid #b5c2cf;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 40;
}

.spin-topbar-row2 {
  height: 32px;
  background: linear-gradient(to bottom, #f2f5f8, #dce3ea);
  border-bottom: 1px solid #8b9baa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-top: 1px solid #ffffff;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 30;
}

.spin-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}

/* Logo Multi-Tech Pro FSM z sygnetem masztu i falami radiowymi */
.spin-logo-brand,
.spin-brand-box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  text-decoration: none;
  cursor: pointer;
}

.spin-radio-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.spin-radio-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

.spin-brand-text {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
}

.spin-brand-name,
.spin-brand-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--mtp-primary);
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.spin-brand-dot,
.spin-brand-title .brand-accent {
  color: #dc2626;
  font-weight: 900;
}

.spin-brand-network,
.spin-brand-sub {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.3px;
  text-transform: none;
}

/* Zakładki modułów: ZADANIA, NARZĘDZIA, UTRZYMANIE, INFO */
.spin-nav-tabs,
.spin-tabs-container {
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 3px;
  padding-left: 6px;
}

.spin-nav-tab,
.spin-tab-item {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #334155;
  background: var(--spin-bevel-tab-inactive);
  border: 1px solid var(--spin-border-main);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.15s ease;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}

.spin-nav-tab:hover,
.spin-tab-item:hover {
  background: linear-gradient(to bottom, #f1f5f9 0%, #d8e2ec 100%);
  color: #0f172a;
}

.spin-nav-tab.active,
.spin-tab-item.active {
  background: var(--spin-bevel-tab-active);
  color: #1d4ed8;
  font-weight: 700;
  height: 30px;
  border-color: var(--spin-border-dark);
  border-bottom: 1px solid #f2f5f8;
  margin-bottom: -1px;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 #ffffff;
  z-index: 10;
}

.spin-nav-tab .tab-icon,
.spin-tab-item .tab-icon {
  font-size: 13px;
  line-height: 1;
}

.spin-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Wskaźnik stanu sieci i zegar */
.spin-status-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #475569;
  padding: 2px 8px;
  background: #ffffff;
  border: 1px solid var(--spin-border-subtle);
  border-radius: 12px;
}

.spin-status-dot-green,
.spin-led-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  display: inline-block;
  flex-shrink: 0;
}

.spin-led-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.spin-led-red {
  background-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.spin-led-amber {
  background-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.spin-clock {
  font-family: var(--spin-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

/* ==============================================================================
   5. PASEK NARZĘDZIOWY (Toolbar, Pigułki statusowe w 4 barwach, Przyciski akcji)
   ============================================================================== */
.spin-toolbar {
  height: var(--spin-toolbar-height);
  background: linear-gradient(to bottom, #f2f5f8, #dce3ea);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid var(--spin-border-main);
}

.spin-toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.spin-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Separator pionowy narzędzi */
.spin-tool-separator {
  width: 1px;
  height: 20px;
  background-color: #b5c2cf;
  border-right: 1px solid #ffffff;
  margin: 0 3px;
}

/* Pigułki statusowe w toolbarze (Pill Buttons) */
.spin-pill,
.spin-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease, filter 0.15s ease;
  user-select: none;
}

.spin-pill:hover,
.spin-pill-btn:hover {
  filter: brightness(1.1);
}

.spin-pill:active,
.spin-pill-btn:active {
  transform: translateY(1px);
}

/* 1. Bordowa pigułka #881337 */
.spin-pill-burgundy {
  background: linear-gradient(to bottom, #9f1239 0%, #881337 100%) !important;
  border: 1px solid var(--spin-pill-burgundy-border) !important;
  color: #ffffff !important;
}

/* 2. Błękitna pigułka #1d4ed8 */
.spin-pill-blue {
  background: linear-gradient(to bottom, #2563eb 0%, #1d4ed8 100%) !important;
  border: 1px solid var(--spin-pill-blue-border) !important;
  color: #ffffff !important;
}

/* 3. Pomarańczowa pigułka #ea580c */
.spin-pill-orange {
  background: linear-gradient(to bottom, #f97316 0%, #ea580c 100%) !important;
  border: 1px solid var(--spin-pill-orange-border) !important;
  color: #ffffff !important;
}

/* 4. Szmaragdowa / zielona pigułka #15803d */
.spin-pill-emerald,
.spin-pill-green {
  background: linear-gradient(to bottom, #16a34a 0%, #15803d 100%) !important;
  border: 1px solid var(--spin-pill-emerald-border) !important;
  color: #ffffff !important;
}

.spin-pill-badge,
.spin-pill-count {
  background-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

/* Srebrzyste przyciski akcji z tłoczeniem 3D */
.spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: #1e293b;
  background: var(--spin-bevel-btn);
  border: 1px solid var(--spin-border-main);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.1s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.spin-btn:hover {
  background: var(--spin-bevel-btn-hover);
  border-color: #8c9dae;
  color: #0f172a;
}

.spin-btn:active,
.spin-btn.active {
  background: var(--spin-bevel-btn-pressed);
  border-color: #64748b;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.spin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #e2e8f0;
  border-color: #cbd5e1;
  box-shadow: none;
}

.spin-btn .btn-icon {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.spin-btn-primary {
  background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #1e40af;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 1px 2px rgba(0,0,0,0.15);
}

.spin-btn-primary:hover {
  background: linear-gradient(to bottom, #60a5fa 0%, #2563eb 100%);
  color: #ffffff;
  border-color: #1d4ed8;
}

.spin-btn-danger {
  background: linear-gradient(to bottom, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  border-color: #991b1b;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.spin-collapse-btn {
  background: linear-gradient(to bottom, #ffffff 0%, #e2e8f0 100%);
  border: 1px solid #94a3b8;
  border-radius: 3px;
  color: #334155;
  font-size: 10px;
  padding: 2px 5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.spin-collapse-btn:hover {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
}

/* Popovery kolumn i filtrów w toolbarze */
.spin-popover-panel {
  position: absolute;
  top: 100%;
  background: #ffffff;
  border: 1px solid #8b9baa;
  border-radius: 3px;
  box-shadow: var(--spin-shadow-dropdown);
  z-index: 150;
  font-size: 11px;
  padding: 4px 0;
  min-width: 180px;
}

.spin-popover-item {
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #1e293b;
  transition: background 0.1s;
}

.spin-popover-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.spin-popover-item.active {
  background: #dbeafe;
  font-weight: 700;
  color: #1e40af;
}

/* ==============================================================================
   6. PANEL BOCZNY (Sidebar 260-280px / 52px zwinięty, Akordeon, Liczniki, Ostrzeżenia)
   ============================================================================== */
.spin-sidebar,
.spin-sidebar-root {
  width: var(--spin-sidebar-width);
  min-width: var(--spin-sidebar-width);
  max-width: var(--spin-sidebar-width);
  background-color: #eaedf2;
  border-right: 1px solid var(--spin-border-main);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  user-select: none;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 50;
  font-family: var(--spin-font-family);
  font-size: 11px;
  color: #1e293b;
}

/* Stan zwinięty sidebaru */
.spin-sidebar.collapsed,
.spin-sidebar-root.is-collapsed,
.spin-sidebar-root.collapsed {
  width: var(--spin-sidebar-collapsed-width);
  min-width: var(--spin-sidebar-collapsed-width);
}

.spin-sidebar.collapsed .spin-accordion-content,
.spin-sidebar.collapsed .spin-user-details,
.spin-sidebar.collapsed .spin-accordion-title,
.spin-sidebar.collapsed .spin-menu-label,
.spin-sidebar.collapsed .spin-badge-alert,
.spin-sidebar.collapsed .spin-accordion-toggle,
.spin-sidebar-root.is-collapsed .spin-scroll-area,
.spin-sidebar-root.is-collapsed .spin-top-tabs-bar,
.spin-sidebar-root.is-collapsed .spin-bottom-fixed-area {
  display: none !important;
}

.spin-sidebar.collapsed .spin-user-card,
.spin-sidebar-root.is-collapsed .spin-user-badge-card {
  padding: 6px 4px;
  justify-content: center;
}

/* Pasek górny marki w sidebarze */
.spin-brand-header {
  height: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #e8ecf1 100%);
  border-bottom: 1px solid #b8bec8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 8px;
  flex-shrink: 0;
}

.spin-brand-left {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
}

.spin-toggle-collapse-btn {
  background: linear-gradient(180deg, #ffffff 0%, #e2e6eb 100%);
  border: 1px solid #a8b2be;
  border-radius: 3px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  font-size: 9px;
  box-shadow: 0 1px 1px rgba(0,0,0,0.08);
  transition: all 0.15s;
}

.spin-toggle-collapse-btn:hover {
  background: #ffffff;
  color: #0284c7;
  border-color: #0284c7;
}

/* Pasek 4 zakładek narzędziowych (ZADANIA, NARZĘDZIA, UTRZYMANIE, INFO) */
.spin-top-tabs-bar {
  height: 48px;
  background: #e2e6ec;
  border-bottom: 1px solid #b8bec8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px 4px;
  gap: 2px;
  flex-shrink: 0;
}

.spin-top-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #edf1f5 100%);
  border: 1px solid #b5bcc7;
  border-radius: 2px;
  cursor: pointer;
  font-size: 8px;
  font-weight: 700;
  color: #475569;
  padding: 2px 1px;
  text-transform: uppercase;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
  transition: all 0.12s;
  text-align: center;
}

.spin-top-tab-item:hover {
  background: #ffffff;
  color: #0f172a;
}

.spin-top-tab-item.active {
  background: linear-gradient(180deg, #fffbeb 0%, #fed7aa 100%);
  border: 1px solid #f97316;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px #fdba74;
}

.spin-top-tab-icon {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 2px;
}

/* Obszar przewijany akordeonów */
.spin-sidebar-scroll,
.spin-scroll-area {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 2px 0 8px 0;
}

/* Sekcje akordeonu z niebiesko-srebrnym nagłówkiem */
.spin-accordion-group {
  margin-bottom: 2px;
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid var(--spin-border-subtle);
}

.spin-accordion-header {
  height: 26px;
  background: linear-gradient(to bottom, #e2e8f0 0%, #cbd5e1 100%);
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  color: #1e3a8a;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.spin-accordion-header:hover {
  background: linear-gradient(to bottom, #edf2f7 0%, #dbeafe 100%);
  color: #1d4ed8;
}

.spin-accordion-header-left,
.spin-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.spin-accordion-toggle {
  font-size: 9px;
  color: #475569;
  transition: transform 0.2s ease;
}

.spin-accordion-group.open .spin-accordion-toggle {
  transform: rotate(90deg);
}

.spin-accordion-title,
.spin-header-title {
  text-transform: uppercase;
  letter-spacing: 0.2px;
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
}

.spin-header-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.spin-header-tool-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1px 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  font-size: 11px;
  border-radius: 2px;
}

.spin-header-tool-btn:hover {
  background: rgba(2, 132, 199, 0.1);
}

.spin-accordion-content {
  display: none;
  background-color: #f8fafc;
  padding: 2px 0;
}

.spin-accordion-group.open .spin-accordion-content {
  display: block;
}

.spin-section-content {
  background: #f0f2f6;
  padding: 6px 8px 8px 8px;
  border-bottom: 1px solid #cbd2dc;
}

/* Pozycje menu wewnątrz akordeonu */
.spin-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  padding: 0 10px 0 14px;
  font-size: 11px;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.1s ease, color 0.1s ease;
  text-decoration: none;
}

.spin-menu-item:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.spin-menu-item.active {
  background-color: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  border-left: 3px solid #2563eb;
  padding-left: 11px;
}

.spin-menu-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spin-menu-icon {
  font-size: 12px;
  width: 14px;
  text-align: center;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Czerwone plakietki ostrzegawcze (! 5, ! 2, ! 16) */
.spin-badge-alert,
.spin-warning-badge {
  background: linear-gradient(to bottom, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.4);
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.spin-badge-alert::before {
  content: "!";
  font-weight: 900;
  font-size: 9px;
}

/* Widgety liczników z zaokrąglonymi krawędziami */
.spin-widget-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 2px rgba(0,0,0,0.06);
  transition: all 0.12s;
  margin-bottom: 5px;
  border: 1px solid #cbd2dc;
}

.spin-widget-btn:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 #ffffff, 0 2px 5px rgba(0,0,0,0.12);
}

.spin-widget-btn:active {
  transform: translateY(1px);
}

.spin-widget-yellow {
  background: linear-gradient(180deg, #ffffff 0%, #fef8dd 100%);
  border-color: #d8cca2;
}

.spin-widget-blue {
  background: linear-gradient(180deg, #ffffff 0%, #e2ecf6 100%);
  border-color: #b0c6d8;
}

.spin-widget-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 11px;
  color: #1e293b;
}

.spin-subsection-label {
  text-align: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.3px;
  margin: 6px 0 4px 0;
  text-transform: uppercase;
}

/* Przyciski UTRZYMANIE INFRASTRUKTURY (zielony play) */
.spin-action-green-btn {
  width: 100%;
  height: 32px;
  background: linear-gradient(180deg, #43a047 0%, #2e7d32 100%);
  border: 1px solid #1b5e20;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 4px rgba(0,0,0,0.16);
  color: #ffffff;
  transition: all 0.12s;
  margin-bottom: 5px;
}

.spin-action-green-btn:hover {
  background: linear-gradient(180deg, #4caf50 0%, #388e3c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 3px 6px rgba(0,0,0,0.2);
}

.spin-action-green-btn:active {
  transform: translateY(1px);
}

.spin-play-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #16a34a;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.15));
}

.spin-menu-item:hover .spin-play-icon {
  border-color: transparent transparent transparent #15803d;
  transform: scale(1.15);
}

/* Przycisk USTERKI */
.spin-usterki-btn {
  width: 100%;
  height: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #e2e6eb 100%);
  border: 1px solid #a8b2be;
  border-bottom: 2px solid #8e98a6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 8px;
  transition: all 0.12s;
}

.spin-usterki-btn:hover {
  background: #ffffff;
  border-color: #0284c7;
}

/* 4 Tłoczone srebrzyste przyciski w panelu */
.spin-embossed-btn {
  width: 100%;
  height: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #e4e7ed 100%);
  border: 1px solid #a8b2bf;
  border-bottom: 2px solid #8e99a8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
  transition: all 0.12s;
}

.spin-embossed-btn:hover {
  background: #ffffff;
  color: #0284c7;
  border-color: #94a3b8;
}

.spin-embossed-btn:active {
  transform: translateY(1px);
  border-bottom-width: 1px;
}

.spin-map-row {
  display: grid;
  grid-template-columns: 1fr 28px 28px;
  gap: 3px;
  align-items: center;
}

.spin-icon-btn {
  height: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #e4e7ed 100%);
  border: 1px solid #a8b2bf;
  border-bottom: 2px solid #8e99a8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
  transition: all 0.12s;
}

.spin-icon-btn:hover {
  background: #ffffff;
  border-color: #0284c7;
}

/* Lista linków instrukcji */
.spin-guides-list {
  list-style: none;
  padding: 4px 6px;
  margin: 0;
  background: #f8fafc;
  border-bottom: 1px solid #cbd2dc;
}

.spin-guide-link {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 3px 2px;
  color: #1e3a8a;
  font-size: 10.5px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.35;
}

.spin-guide-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.spin-guide-bullet {
  color: #64748b;
  font-weight: bold;
}

/* Elementy zwiniętego sidebaru */
.spin-collapsed-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 12px;
}

.spin-collapsed-item {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd2dc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.15s;
}

.spin-collapsed-item:hover {
  background: #f0fdf4;
  border-color: #16a34a;
  transform: scale(1.05);
}

.spin-collapsed-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: #ffffff;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 0 4px;
  border: 1px solid #ffffff;
}

/* ==============================================================================
   7. DOLNA KARTA UŻYTKOWNIKA (Awatar SJ, Multi-Tech Pro / TELZAS Partner, PGI 0)
   ============================================================================== */
.spin-bottom-fixed-area {
  background: #eef1f6;
  border-top: 1px solid #b8bec8;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.spin-user-card,
.spin-user-badge-card {
  flex: 0 0 auto;
  background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%);
  border-top: 1px solid var(--spin-border-main);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: inset 0 1px 0 #ffffff;
}

/* Czerwony awatar "SJ" */
.spin-avatar-red,
.spin-avatar-sj {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.spin-user-details,
.spin-user-info {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}

.spin-user-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spin-user-company,
.spin-user-sub {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spin-status-toolbar {
  height: 28px;
  background: linear-gradient(180deg, #fdfdfd 0%, #e2e6eb 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  gap: 4px;
  border-top: 1px solid #d1d5db;
}

.spin-user-pgi-row,
.spin-pgi-selector {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #ffffff;
  border: 1px solid #a8b2bf;
  border-radius: 2px;
  padding: 1px 4px;
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.spin-pgi-selector select {
  border: none;
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  padding: 0;
}

.spin-pgi-tag {
  font-size: 9.5px;
  font-weight: 700;
  background: #cbd5e1;
  color: #1e293b;
  padding: 0 4px;
  border-radius: 2px;
  border: 1px solid #94a3b8;
}

.spin-logout-btn {
  background: linear-gradient(to bottom, #ffffff 0%, #e2e8f0 100%);
  border: 1px solid #94a3b8;
  border-radius: 3px;
  color: #b91c1c;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 #ffffff, 0 1px 1px rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.1s ease;
  text-transform: uppercase;
}

.spin-logout-btn:hover {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

.spin-active-counter-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  cursor: default;
}

/* ==============================================================================
   8. SIATKA GŁÓWNA - MASTER GRID (Ultra-dense table ~24-27px, Wiersz filtrów w <th>)
   ============================================================================== */
.spin-grid-wrapper,
.spin-grid-root {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background-color: #ffffff;
  overflow: hidden;
  position: relative;
}

.spin-grid-scroll-area {
  flex: 1 1 auto;
  overflow: auto;
  position: relative;
  background-color: #ffffff;
}

.spin-grid-table,
.spin-grid-root table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 11px;
  color: #1e293b;
}

/* Nagłówki kolumn siatki */
.spin-grid-table thead,
.spin-grid-root thead {
  position: sticky;
  top: 0;
  z-index: 20;
}

.spin-grid-table thead tr:first-child th,
.spin-grid-header th {
  background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
  color: #1e293b;
  font-weight: 700;
  text-align: left;
  padding: 4px 6px;
  height: 24px;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #94a3b8;
  border-right: 1px solid #cbd5e1;
  white-space: nowrap;
  user-select: none;
  position: relative;
  box-shadow: inset 0 1px 0 #ffffff;
}

.spin-grid-table thead tr:first-child th:hover,
.spin-grid-header th:hover {
  background: linear-gradient(to bottom, #edf2f7 0%, #d8e2ec 100%);
}

.spin-th-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.spin-sort-indicator {
  font-size: 8px;
  color: #64748b;
}

/* Wiersz filtrów bezpośrednio pod nagłówkami kolumn */
.spin-filter-row th {
  background: #f1f5f9;
  padding: 2px 3px !important;
  border-bottom: 2px solid #64748b;
  border-right: 1px solid #cbd5e1;
  height: 24px;
}

.spin-filter-input,
.spin-filter-select {
  width: 100%;
  height: 20px !important;
  font-size: 10.5px !important;
  padding: 1px 4px !important;
  border: 1px solid var(--spin-border-input) !important;
  border-radius: 2px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box;
}

.spin-filter-input:focus,
.spin-filter-select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.4) !important;
  background-color: #eff6ff !important;
}

.spin-filter-input.active {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  font-weight: 600;
}

/* Wiersze danych tabeli */
.spin-grid-table tbody tr,
.spin-table-row {
  height: var(--spin-row-height);
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.05s ease;
  cursor: pointer;
}

/* Paski naprzemienne (zebra) */
.spin-grid-table tbody tr:nth-child(even),
.spin-table-row:nth-child(even) {
  background-color: #f8fafc;
}

.spin-grid-table tbody tr:nth-child(odd),
.spin-table-row:nth-child(odd) {
  background-color: #ffffff;
}

/* Hover na wierszu */
.spin-grid-table tbody tr:hover,
.spin-table-row:hover:not(.spin-row-selected) {
  background-color: var(--spin-row-hover-bg) !important;
}

/* ZAZNACZONY WIERSZ: ciepły żółto-beżowy (#fff3cd, obramowanie #ffeeba, pasek boczny #f59e0b) */
.spin-grid-table tbody tr.selected,
.spin-grid-table tbody tr.active,
.spin-grid-table tbody tr[aria-selected="true"],
.spin-row-selected,
.spin-table-row.spin-row-selected {
  background-color: var(--spin-row-selected-bg) !important;
  color: var(--spin-row-selected-text) !important;
  outline: 1px solid var(--spin-row-selected-border);
  border-left: 3px solid #f59e0b !important;
  font-weight: 600;
}

.spin-grid-table tbody tr.selected td,
.spin-grid-table tbody tr.active td,
.spin-row-selected td {
  background-color: var(--spin-row-selected-bg) !important;
  border-bottom-color: #fce89f;
}

/* Komórki siatki */
.spin-grid-table td,
.spin-grid-root td {
  padding: 2px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #edf2f7;
  vertical-align: middle;
}

.spin-td-checkbox {
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  text-align: center;
  padding: 0 !important;
}

.spin-td-checkbox input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
  vertical-align: middle;
}

.spin-td-center {
  text-align: center;
}

.spin-td-right {
  text-align: right;
}

.spin-td-code {
  font-family: var(--spin-font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

/* Przyciski zakresów / Scope filters */
.spin-btn-scope {
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: all 0.15s ease;
}

.spin-btn-scope:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}

.spin-btn-scope.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.2);
}

/* ==============================================================================
   9. PLAKIETKI STATUSÓW (Status Badges)
   ============================================================================== */
.spin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 7px;
  border-radius: 9px;
  text-transform: none;
  white-space: nowrap;
  user-select: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Wykonywana / Wykonywane: intensywna fuksja / magenta (#c2185b) */
.spin-badge-magenta,
.spin-status-in-progress,
.spin-status-wykonywana,
.spin-status-wykonywane {
  background-color: var(--spin-status-magenta-bg) !important;
  color: var(--spin-status-magenta-text) !important;
  border: 1px solid var(--spin-status-magenta-border);
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Wykonane: ciemnobordowy / wiśniowy (#7f1d1d / #881337) */
.spin-badge-burgundy,
.spin-status-done,
.spin-status-wykonane {
  background-color: var(--spin-status-burgundy-bg) !important;
  color: var(--spin-status-burgundy-text) !important;
  border: 1px solid var(--spin-status-burgundy-border);
  font-weight: 700;
}

/* Nowe: pomarańczowy (#ea580c) */
.spin-badge-orange,
.spin-status-new,
.spin-status-nowe {
  background-color: var(--spin-status-orange-bg) !important;
  color: var(--spin-status-orange-text) !important;
  border: 1px solid var(--spin-status-orange-border);
  font-weight: 700;
}

/* NOWA - Przekazana: podkreślony tekst linku w kolorze niebieskim */
.spin-status-forwarded,
.spin-status-przekazana {
  color: var(--spin-text-link) !important;
  font-weight: 700;
  text-decoration: underline !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer;
}

.spin-status-forwarded:hover {
  color: #1e40af !important;
}

/* Raport gotowy, Do wykonania, Oczekuje na wykonanie: stonowane szarości */
.spin-badge-gray,
.spin-status-ready,
.spin-status-pending,
.spin-status-to-do,
.spin-status-oczekuje {
  background-color: var(--spin-status-gray-bg) !important;
  color: var(--spin-status-gray-text) !important;
  border: 1px solid var(--spin-status-gray-border);
  font-weight: 600;
}

/* Dodatkowe statusy akceptacji / sukcesu */
.spin-badge-green,
.spin-status-accepted {
  background-color: var(--spin-status-green-bg) !important;
  color: var(--spin-status-green-text) !important;
  border: 1px solid var(--spin-status-green-border);
}

.spin-badge-alert-pill {
  background-color: var(--spin-status-alert-bg) !important;
  color: #ffffff !important;
}

/* ==============================================================================
   10. DOLNE PANELE DOKOWANE (Master-Detail Split, Resizer, Zadania i NE)
   ============================================================================== */
.spin-dock-container {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  background-color: #f1f5f9;
  border-top: 1px solid var(--spin-border-main);
  position: relative;
  z-index: 30;
}

/* Pasek podziału (Splitter / Resizer) */
.spin-splitter {
  height: var(--spin-splitter-height);
  background: linear-gradient(to bottom, #dbe2e9 0%, #cbd5e1 100%);
  border-top: 1px solid #ffffff;
  border-bottom: 1px solid #94a3b8;
  cursor: row-resize;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  position: relative;
  transition: background 0.15s ease;
}

.spin-splitter:hover,
.spin-splitter.dragging {
  background: linear-gradient(to bottom, #bfdbfe 0%, #93c5fd 100%);
  border-bottom-color: #3b82f6;
}

/* Uchwyt paska podziału */
.spin-splitter-grip {
  width: 48px;
  height: 3px;
  background: repeating-linear-gradient(
    to right,
    #64748b,
    #64748b 2px,
    transparent 2px,
    transparent 4px
  );
  border-radius: 1px;
}

.spin-splitter-toggle {
  position: absolute;
  right: 12px;
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 2px;
  font-size: 8px;
  padding: 0 4px;
  cursor: pointer;
  line-height: 1.2;
}

/* Zawartość dolnych paneli dokowanych */
.spin-dock-panels {
  height: var(--spin-dock-panel-height);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  background-color: #f8fafc;
}

.spin-dock-container.collapsed .spin-dock-panels {
  display: none !important;
}

/* Panel Lewy & Panel Prawy */
.spin-dock-panel {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--spin-border-main);
  background-color: #ffffff;
}

.spin-dock-panel:last-child {
  border-right: none;
}

/* Nagłówek panelu z niebieską pigułką */
.spin-dock-header {
  height: 26px;
  background: linear-gradient(to bottom, #f1f5f9 0%, #d8e2ec 100%);
  border-bottom: 1px solid var(--spin-border-main);
  border-top: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  box-shadow: inset 0 1px 0 #ffffff;
}

.spin-dock-header-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
}

/* Niebieska pigułka w nagłówku dolnego panelu */
.spin-dock-pill {
  background: linear-gradient(to bottom, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
  border: 1px solid #1e3a8a;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
}

.spin-dock-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.spin-dock-body {
  flex: 1 1 auto;
  overflow: auto;
  background-color: #ffffff;
}

/* Mini tabela w dolnych panelach */
.spin-sub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.spin-sub-table thead th {
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
  padding: 2px 5px;
  text-align: left;
  border-bottom: 1px solid #cbd5e1;
  border-right: 1px solid #edf2f7;
  position: sticky;
  top: 0;
  white-space: nowrap;
}

.spin-sub-table tbody tr {
  height: 21px;
  border-bottom: 1px solid #f1f5f9;
}

.spin-sub-table tbody tr:hover {
  background-color: #f1f5f9;
}

.spin-sub-table tbody tr.selected {
  background-color: var(--spin-row-selected-bg);
}

.spin-sub-table td {
  padding: 1px 5px;
  white-space: nowrap;
}

/* ==============================================================================
   11. PAGINACJA I PASEK PODSUMOWANIA SIATKI
   ============================================================================== */
.spin-pagination-bar {
  height: 25px;
  background: linear-gradient(to bottom, #f1f5f9 0%, #d8e2ec 100%);
  border-top: 1px solid var(--spin-border-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 11px;
  color: #475569;
  user-select: none;
}

.spin-pagination-controls {
  display: flex;
  align-items: center;
  gap: 3px;
}

.spin-page-btn {
  min-width: 20px;
  height: 19px;
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--spin-bevel-btn);
  border: 1px solid var(--spin-border-main);
  border-radius: 2px;
  cursor: pointer;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spin-page-btn:hover {
  background: #ffffff;
  border-color: #64748b;
}

.spin-page-btn.active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1e40af;
  font-weight: 700;
}

.spin-page-size-select {
  height: 19px;
  font-size: 10.5px;
  padding: 0 2px;
  margin-left: 6px;
}

.spin-pagination-summary {
  font-weight: 600;
  color: #334155;
}

/* ==============================================================================
   12. OKNA DIALOGOWE, MODALE I FORMULARZE KLASYCZNE
   ============================================================================== */
.spin-modal-backdrop,
.spin-guide-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spin-modal-window,
.spin-guide-modal {
  background-color: #f1f5f9;
  border: 1px solid var(--spin-border-dark);
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-radius: 4px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  min-width: 480px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  color: #1e293b;
}

/* Warianty szerokości okien modalnych SPiN */
.spin-modal-window.spin-modal-sm {
  width: 440px;
  max-width: 92vw;
}

.spin-modal-window.spin-modal-md {
  width: 640px;
  max-width: 92vw;
}

.spin-modal-window.spin-modal-lg {
  width: 880px;
  max-width: 94vw;
}

.spin-modal-window.spin-modal-xl {
  width: 1180px;
  max-width: 96vw;
  height: 88vh;
  max-height: 88vh;
}

.spin-modal-header {
  height: 32px;
  min-height: 32px;
  background: linear-gradient(to bottom, #f8fafc 0%, #cbd5e1 100%);
  border-bottom: 1px solid var(--spin-border-dark);
  border-top: 1px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  user-select: none;
  box-shadow: inset 0 1px 0 #ffffff;
}

.spin-modal-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.spin-modal-title .spin-badge {
  font-size: 10px;
  padding: 1px 6px;
}

.spin-modal-close {
  width: 18px;
  height: 18px;
  background: linear-gradient(to bottom, #f87171 0%, #dc2626 100%);
  border: 1px solid #991b1b;
  border-radius: 2px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.spin-modal-close:hover {
  background: #b91c1c;
}

.spin-modal-close:active {
  background: #991b1b;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.spin-modal-body {
  padding: 14px;
  overflow-y: auto;
  background-color: #f8fafc;
  color: #1e293b;
  flex: 1;
}

.spin-modal-footer {
  height: 42px;
  min-height: 42px;
  background: linear-gradient(to bottom, #f1f5f9 0%, #e2e8f0 100%);
  border-top: 1px solid var(--spin-border-main);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 #ffffff;
}

/* Sekcje, panele i ramki wewnątrz modali SPiN */
.spin-modal-section,
.spin-fieldset {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-radius: 4px;
  padding: 12px 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 0 #ffffff;
}

.spin-modal-section-title,
.spin-fieldset-legend {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1e3a8a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2e8f0;
}

/* Klasyczne siatki formularzy SPiN */
.spin-form-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 12px;
  align-items: center;
  font-size: 11px;
}

.spin-form-grid-4col {
  display: grid;
  grid-template-columns: 130px 1fr 130px 1fr;
  gap: 8px 12px;
  align-items: center;
  font-size: 11px;
}

.spin-form-label {
  font-weight: 600;
  color: #334155;
  text-align: right;
  white-space: nowrap;
}

.spin-form-label.required::after {
  content: " *";
  color: #dc2626;
}

.spin-form-input,
.spin-form-select,
.spin-form-textarea {
  background-color: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 11px;
  color: #0f172a;
  outline: none;
  width: 100%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  font-family: inherit;
  box-sizing: border-box;
}

.spin-form-input:focus,
.spin-form-select:focus,
.spin-form-textarea:focus {
  border-color: #2563eb;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.spin-form-input:disabled,
.spin-form-select:disabled,
.spin-form-textarea:disabled {
  background-color: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

/* ==============================================================================
   KARTY WSKAŹNIKÓW KPI SPiN (.spin-card-kpi)
   ============================================================================== */
.spin-card-kpi {
  background: linear-gradient(to bottom, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #b5c2cf;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.spin-card-kpi:hover {
  border-color: #3b82f6;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.15), inset 0 1px 0 #ffffff;
}

.spin-card-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.spin-card-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spin-card-kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #1e3a8a;
  box-shadow: inset 0 1px 0 #ffffff;
}

.spin-card-kpi-val {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.spin-card-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==============================================================================
   TABELE ZWARTE SPiN (.spin-table-compact)
   ============================================================================== */
.spin-table-compact {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  overflow: hidden;
}

.spin-table-compact thead th {
  background: linear-gradient(to bottom, #f8fafc 0%, #e2e8f0 100%);
  color: #1e3a8a;
  font-weight: 700;
  padding: 5px 8px;
  height: 24px;
  border-bottom: 1px solid #94a3b8;
  border-right: 1px solid #cbd5e1;
  text-align: left;
  user-select: none;
  white-space: nowrap;
}

.spin-table-compact thead th:last-child {
  border-right: none;
}

.spin-table-compact tbody tr {
  height: 24px;
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.05s ease;
}

.spin-table-compact tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.spin-table-compact tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.spin-table-compact tbody tr:hover {
  background-color: #e0f2fe !important;
}

.spin-table-compact tbody tr.selected,
.spin-table-compact tbody tr.active {
  background-color: #fff3cd !important;
  color: #856404 !important;
  font-weight: 600;
}

.spin-table-compact td {
  padding: 3px 8px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  color: #1e293b;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  vertical-align: middle;
}

.spin-table-compact td:last-child {
  border-right: none;
}

/* Wskaźniki LED statusu */
.spin-led-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.spin-led-dot.online,
.spin-led-dot.success {
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.spin-led-dot.warning {
  background-color: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.spin-led-dot.offline,
.spin-led-dot.error {
  background-color: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

/* ==============================================================================
   13. MENU KONTEKSTOWE, TOOLTIPY & SYSTEM CHMUREK
   ============================================================================== */
.spin-context-menu {
  position: fixed;
  background-color: #ffffff;
  border: 1px solid var(--spin-border-dark);
  box-shadow: var(--spin-shadow-dropdown);
  border-radius: 3px;
  padding: 3px 0;
  min-width: 170px;
  z-index: 2000;
  font-size: 11px;
}

.spin-context-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  cursor: pointer;
  color: #1e293b;
}

.spin-context-item:hover {
  background-color: #2563eb;
  color: #ffffff;
}

.spin-context-separator {
  height: 1px;
  background-color: #e2e8f0;
  margin: 3px 0;
}

/* ==============================================================================
   14. GALERIA ZDJĘĆ I DOKUMENTACJA TERENOWA (Field Photo Catalog)
   ============================================================================== */
.spin-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  padding: 8px;
}

.spin-photo-thumb {
  border: 1px solid var(--spin-border-main);
  background-color: #ffffff;
  padding: 3px;
  border-radius: 2px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.spin-photo-thumb:hover {
  border-color: #2563eb;
  transform: translateY(-1px);
}

.spin-photo-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
  border-radius: 1px;
}

.spin-photo-caption {
  font-size: 10px;
  color: #475569;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ==============================================================================
   15. WBUDOWANE IKONY SVG & KLASY POMOCNICZE
   ============================================================================== */
.spin-icon-inline {
  width: 13px;
  height: 13px;
  display: inline-block;
  vertical-align: middle;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Ikona fal radiowych masztu telekomunikacyjnego */
.spin-icon-radio-waves {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12c0 2.85 1.2 5.42 3.12 7.24l1.42-1.42C4.94 16.32 4 14.27 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 2.27-.94 4.32-2.54 5.82l1.42 1.42C20.8 17.42 22 14.85 22 12c0-5.52-4.48-10-10-10zm0 4c-3.31 0-6 2.69-6 6 0 1.71.72 3.25 1.88 4.35l1.42-1.42C8.54 14.23 8 13.18 8 12c0-2.21 1.79-4 4-4s4 1.79 4 4c0 1.18-.54 2.23-1.3 2.93l1.42 1.42C17.28 15.25 18 13.71 18 12c0-3.31-2.69-6-6-6zm0 4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
}

/* Ikona odświeżenia */
.spin-icon-refresh {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 15-6.7L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-15 6.7L3 16'/%3E%3Cpath d='M3 21v-5h5'/%3E%3C/svg%3E");
}

/* Ikona grupowania */
.spin-icon-group {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Ikona kolumn */
.spin-icon-columns {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M12 3v18'/%3E%3C/svg%3E");
}

/* Ikona terminu / kalendarza */
.spin-icon-calendar {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2' ry='2'/%3E%3Cline x1='16' x2='16' y1='2' y2='6'/%3E%3Cline x1='8' x2='8' y1='2' y2='6'/%3E%3Cline x1='3' x2='21' y1='10' y2='10'/%3E%3C/svg%3E");
}

/* Pomocnicze klasy tekstu i układu */
.spin-text-bold { font-weight: 700; }
.spin-text-semibold { font-weight: 600; }
.spin-text-danger { color: #dc2626 !important; }
.spin-text-primary { color: #1d4ed8 !important; }
.spin-text-success { color: #15803d !important; }
.spin-text-muted { color: #64748b !important; }

.spin-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spin-flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.spin-flex-col {
  display: flex;
  flex-direction: column;
}

.spin-gap-1 { gap: 4px; }
.spin-gap-2 { gap: 8px; }
.spin-gap-3 { gap: 12px; }

.spin-hidden {
  display: none !important;
}

/* Animacja pulsowania dla operacji w tle */
@keyframes spin-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.spin-loading-pulse {
  animation: spin-pulse 1.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Animacja obrotu dla odświeżania */
@keyframes spin-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-anim-rotate {
  animation: spin-rotate 0.8s linear infinite;
  display: inline-block;
}

/* ==============================================================================
   16. SPiN INTEGRATION & COMPONENT ROOT ALIASES
   ============================================================================== */
.spin-sidebar-root {
  flex-shrink: 0;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.08);
}

.spin-grid-root {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
