/* ============================================
   YACHTSECURE CUSTOM WIDGET - STYLES
   Version: 1.0
   ============================================ */
.ysw, .ysw * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ysw {
  --ys-primary: #0f172a;
  --ys-primary-light: #1e293b;
  --ys-accent: #e15615;
  --ys-accent-hover: #f97316;
  --ys-bg: #e2e8f0;
  --ys-white: #ffffff;
  --ys-text: #0f172a;
  --ys-text-muted: #64748b;
  --ys-border: #cbd5e1;
  --ys-radius: 14px;
  --ys-hull: #2563eb;
  --ys-liability: #7c3aed;
  --ys-crew: #0d9488;
  --ys-war: #ea580c;
}

.ysw {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--ys-bg);
  color: var(--ys-text);
  padding: 0;
}

/* Le pixel de padding bas n'est pas dÃ©coratif : sans lui, la marge basse du dernier enfant
   (`.pf-card`, `.doc-category-group`) fusionne avec celle de ses parents et sort de la chaÃ®ne.
   Elle Ã©chappe alors Ã  la hauteur de l'Ã©lÃ©ment racine, celle qu'Appsmith mesure pour l'auto
   height, tout en comptant dans la hauteur rÃ©elle du document : le contenu dÃ©passe de 12 Ã 
   20 px et un ascenseur apparaÃ®t. Sous 960 px, la rÃ¨gle qui pose `padding: 4px` joue dÃ©jÃ 
   ce rÃ´le. */
.ysw .widget-root {
  padding: 0 0 1px;
}

/* ========== WELCOME BANNER ========== */
.ysw .welcome-banner {
  font-size: 24px;
  font-weight: 700;
  color: var(--ys-primary);
  padding: 16px 4px 16px;
}

.ysw .welcome-banner:empty {
  display: none;
}

/* ========== NAVIGATION TABS ========== */
.ysw .nav-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--ys-white);
  border-radius: var(--ys-radius);
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ysw .nav-tab {
  position: relative;
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--ys-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.ysw .nav-tab:hover:not(.disabled) {
  background: #f0f5ff;
  color: var(--ys-primary);
}

.ysw .nav-tab.active {
  background: var(--ys-primary);
  color: var(--ys-white);
  box-shadow: 0 4px 12px rgba(26, 60, 110, 0.25);
}

.ysw .nav-tab.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ysw .nav-tab .tab-icon {
  font-size: 16px;
}

.ysw .nav-tab .tab-badge {
  background: #e5e7eb;
  color: var(--ys-text-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.ysw .nav-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ========== VESSEL SELECTOR ========== */
.ysw .vessel-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.ysw .vessel-selector-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ysw .vessel-select-wrapper {
  position: relative;
  flex: 1;
  max-width: 400px;
  min-width: 250px;
}

.ysw .vessel-select-trigger {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 2px solid var(--ys-border);
  background: var(--ys-white);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.ysw .vessel-select-trigger:hover {
  border-color: var(--ys-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ysw .vessel-select-trigger.open {
  border-color: var(--ys-primary);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ysw .vessel-select-trigger .selected-vessel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ysw .vessel-select-trigger .sel-icon {
  font-size: 24px;
}

.ysw .vessel-select-trigger .sel-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.ysw .vessel-select-trigger .sel-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--ys-text);
}

.ysw .vessel-select-trigger .sel-type {
  font-size: 13px;
  color: var(--ys-text-muted);
  font-weight: 500;
}

.ysw .vessel-select-trigger .chevron {
  font-size: 14px;
  color: var(--ys-text-muted);
  transition: transform 0.2s ease;
}

.ysw .vessel-select-trigger.open .chevron {
  transform: rotate(180deg);
}

.ysw .vessel-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ys-white);
  border: 2px solid var(--ys-primary);
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  z-index: 100;
  max-height: 320px;
  overflow: hidden;
  flex-direction: column;
}

.ysw .vessel-dropdown.show {
  display: flex;
}

.ysw .vessel-search-box {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
}

.ysw .vessel-search-box input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  background: #f9fafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 10px center;
  transition: border-color 0.2s;
}

.ysw .vessel-search-box input:focus {
  border-color: var(--ys-primary);
  background-color: var(--ys-white);
}

.ysw .vessel-options {
  overflow-y: auto;
  max-height: 260px;
}

.ysw .vessel-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.ysw .vessel-option:hover {
  background: #f0f5ff;
}

.ysw .vessel-option.selected {
  background: #e8f0fe;
}

.ysw .vessel-option .opt-icon {
  font-size: 18px;
}

.ysw .vessel-option .opt-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
}

.ysw .vessel-option .opt-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--ys-text);
}

.ysw .vessel-option .opt-type {
  font-size: 11px;
  color: var(--ys-text-muted);
}

.ysw .vessel-option .opt-check {
  color: var(--ys-primary);
  font-weight: 700;
  font-size: 16px;
  visibility: hidden;
}

.ysw .vessel-option.selected .opt-check {
  visibility: visible;
}

.ysw .vessel-option-empty {
  padding: 20px 16px;
  text-align: center;
  color: #999;
  font-size: 13px;
}

/* ========== SECTION HEADER ========== */
.ysw .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ysw .section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ys-text);
}

.ysw .quote-count {
  background: var(--ys-primary);
  color: var(--ys-white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ========== DESKTOP: TABLE ROWS ========== */
/* Pas de marge horizontale nÃ©gative : elle Ã©largissait l'Ã©lÃ©ment de 4 px de chaque cÃ´tÃ©
   au-delÃ  du conteneur, ce qui dÃ©clenchait une barre de dÃ©filement horizontale â€” et celle-ci
   confisquait 15 px de hauteur utile, coupant le bas du contenu sous Auto Height. Le padding
   horizontal compensait exactement cette marge, on retire les deux : la largeur de contenu
   est identique au pixel prÃ¨s. Le dÃ©bord vertical de 10 px, lui, ne dÃ©borde pas et reste. */
.ysw .quotes-table {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 10px 0;
  margin: -10px 0;
}

.ysw .table-header {
  display: grid;
  grid-template-columns: 40px 130px 130px minmax(0, 1.5fr) 110px 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  align-items: center;
  width: 100%;
}

.ysw .table-header > span {
  display: block;
  width: 100%;
}

.ysw .table-header .header-category,
.ysw .table-header .header-product {
  text-align: left;
}

.ysw .table-header .header-premium,
.ysw .table-header .header-deductible {
  text-align: right;
  padding-right: 15px;
}

.ysw #tableRows,
.ysw #archiveTableRows {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ysw .quote-row {
  display: grid;
  grid-template-columns: 40px 130px 130px minmax(0, 1.5fr) 110px 110px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 22px;
  margin-bottom: 0px;
  border: 1px solid #cbd5e1;
  box-sizing: border-box;
  border-radius: var(--ys-radius);
  color: var(--ys-text);
  background: #f1f5f9;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  align-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.ysw .quote-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border-color: #94a3b8;
}

.ysw .quote-row::before {
  display: none;
}

/* Row color palette â€” Base blanche + bordure d'accent 4px par catÃ©gorie */
.ysw .row-bg-hull-0,
.ysw .row-bg-hull-1,
.ysw .row-bg-hull-2,
.ysw .row-bg-liability-0,
.ysw .row-bg-liability-1,
.ysw .row-bg-liability-2,
.ysw .row-bg-crew-0,
.ysw .row-bg-crew-1,
.ysw .row-bg-crew-2,
.ysw .row-bg-war-0,
.ysw .row-bg-war-1,
.ysw .row-bg-war-2 {
  background: #ffffff;
}

.ysw .row-bg-hull-0,
.ysw .row-bg-hull-1,
.ysw .row-bg-hull-2 {
  border-left: 4px solid #2563eb !important;
}

.ysw .row-bg-liability-0,
.ysw .row-bg-liability-1,
.ysw .row-bg-liability-2 {
  border-left: 4px solid #7c3aed !important;
}

.ysw .row-bg-crew-0,
.ysw .row-bg-crew-1,
.ysw .row-bg-crew-2 {
  border-left: 4px solid #0d9488 !important;
}

.ysw .row-bg-war-0,
.ysw .row-bg-war-1,
.ysw .row-bg-war-2 {
  border-left: 4px solid #ea580c !important;
}

/* Checkbox */
.ysw .row-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  font-size: 12px;
  color: transparent;
  flex-shrink: 0;
  user-select: none;
}

.ysw .row-checkbox:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.ysw .row-checkbox.checked {
  background: var(--ys-accent);
  border-color: var(--ys-accent);
  color: #fff;
}

/* Status badges - Ultra Clean Soft Fintech Badges */
.ysw .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ysw .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.ysw .status-badge.active_policy {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.ysw .status-badge.active_policy .status-dot {
  background: #10b981;
}

.ysw .status-badge.quote_received {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ysw .status-badge.quote_received .status-dot {
  background: #3b82f6;
}

.ysw .status-badge.comparison {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.ysw .status-badge.comparison .status-dot {
  background: #f59e0b;
}

.ysw .status-badge.analysis {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ysw .status-badge.analysis .status-dot {
  background: #0284c7;
}

.ysw .status-badge.renewal {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.ysw .status-badge.renewal .status-dot {
  background: #a855f7;
}

/* End dates and renewals */
.ysw .row-status-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.ysw .end-date {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  margin-bottom: -2px;
  font-weight: 500;
}

.ysw .auto-renew {
  font-size: 9px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.ysw .auto-renew-mob {
  font-size: 11px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

/* Category Pill Badges â€” Teintes Pastel Distinctes + Point ColorÃ© Vif */
.ysw .row-category,
.ysw .card-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 6px 12px;
  border-radius: 20px;
  line-height: 1.2;
  width: fit-content;
}

.ysw .row-category::before,
.ysw .card-category::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ysw [class*=row-bg-hull] .row-category,
.ysw [class*=row-bg-hull] .card-category {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ysw [class*=row-bg-hull] .row-category::before,
.ysw [class*=row-bg-hull] .card-category::before {
  background: #2563eb;
}

.ysw [class*=row-bg-liability] .row-category,
.ysw [class*=row-bg-liability] .card-category {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.ysw [class*=row-bg-liability] .row-category::before,
.ysw [class*=row-bg-liability] .card-category::before {
  background: #7c3aed;
}

.ysw [class*=row-bg-crew] .row-category,
.ysw [class*=row-bg-crew] .card-category {
  background: #f0fdf4;
  color: #047857;
  border: 1px solid #bbf7d0;
}

.ysw [class*=row-bg-crew] .row-category::before,
.ysw [class*=row-bg-crew] .card-category::before {
  background: #0d9488;
}

.ysw [class*=row-bg-war] .row-category,
.ysw [class*=row-bg-war] .card-category {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.ysw [class*=row-bg-war] .row-category::before,
.ysw [class*=row-bg-war] .card-category::before {
  background: #ea580c;
}

/* Row text */
.ysw .row-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  text-align: right;
  padding-right: 15px;
  letter-spacing: -0.3px;
}

.ysw .row-value.secondary {
  color: #64748b;
  font-weight: 700;
}

.ysw .row-product-name {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.ysw .row-insurer {
  font-size: 13px;
  color: #64748b;
  margin-top: 3px;
  font-weight: 500;
}

/* Row actions */
.ysw .row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
  container-type: inline-size;
  min-width: 0;
}

@container (max-width: 320px) {
  .ysw .row-actions {
    flex-direction: column;
    align-items: flex-end;
  }
}
@container (max-width: 220px) {
  .ysw .row-actions .btn {
    padding: 7px 10px;
    font-size: 11px;
    letter-spacing: 0;
    gap: 4px;
  }
}
.ysw .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  font-family: inherit;
  max-width: 100%;
  overflow: hidden;
}

.ysw .btn-analysis {
  background: #f1f5f9;
  color: #0f172a;
  border: 1.5px solid #94a3b8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ysw .btn-analysis:hover {
  background: #e2e8f0;
  border-color: #475569;
  transform: translateY(-1px);
}

.ysw .btn-docs {
  background: #f1f5f9;
  color: #0f172a;
  border: 1.5px solid #94a3b8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ysw .btn-docs:hover {
  background: #e2e8f0;
  border-color: #475569;
  transform: translateY(-1px);
}

.ysw .btn-subscribe {
  background: linear-gradient(135deg, #e15615, #f97316);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(225, 86, 21, 0.25);
}

.ysw .btn-subscribe:hover {
  box-shadow: 0 6px 16px rgba(225, 86, 21, 0.4);
  transform: translateY(-1px);
}

/* ========== COACH MARKS & PULSE ========== */
.ysw .pulse-orange {
  animation: pulseOrange 1.5s infinite;
  background: linear-gradient(135deg, var(--ys-accent), var(--ys-accent-hover)) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(225, 86, 21, 0.6) !important;
}

@keyframes pulseOrange {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(225, 86, 21, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(225, 86, 21, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(225, 86, 21, 0);
  }
}
.ysw .premium-tooltip {
  position: absolute;
  background: #ffffff;
  color: #1a3c6e;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 2px var(--ys-accent);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  max-width: 300px;
  line-height: 1.5;
  border: none;
}

.ysw .premium-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.ysw .premium-tooltip::after {
  content: "";
  position: absolute;
  border: 8px solid transparent;
}

/* Note: Since we have a 2px accent border via box-shadow, the arrow might look a bit disconnected, but setting it to white is best. */
.ysw .premium-tooltip.top::after {
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-top-color: #ffffff;
}

.ysw .premium-tooltip.right::after {
  top: 50%;
  right: 100%;
  transform: translateY(-50%);
  border-right-color: #ffffff;
}

.ysw .premium-tooltip.bottom::after {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #ffffff;
}

.ysw .premium-tooltip.left::after {
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border-left-color: #ffffff;
}

.ysw .tooltip-title {
  color: var(--ys-accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  border-bottom: 2px solid #f0f2f5;
  padding-bottom: 6px;
}

.ysw .tooltip-arrows {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ysw .tooltip-arrow-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
}

.ysw .tooltip-arrow-item b {
  color: var(--ys-primary);
  font-weight: 700;
}

/* ========== COMPARISON FLOATING BAR ========== */
.ysw .comparison-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--ys-white);
  border-bottom: 2px solid var(--ys-primary);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 500;
  /* CachÃ©e par translation de sa propre hauteur : un dÃ©calage fixe (-80px)
     ne suffisait pas sur mobile, oÃ¹ la barre passe sur deux lignes (95 px)
     et dÃ©passait de 15 px par-dessus le haut du widget. */
  transform: translateY(calc(-100% - 24px));
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
}

.ysw .comparison-bar.visible {
  transform: none;
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.ysw .comparison-bar .bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ys-text);
}

.ysw .comparison-bar .bar-count {
  background: var(--ys-primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}

.ysw .comparison-bar .bar-category {
  font-weight: 600;
  color: var(--ys-primary);
}

.ysw .comparison-bar .bar-warning {
  font-size: 12px;
  color: var(--ys-accent);
  font-weight: 500;
}

.ysw .btn-compare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--ys-primary), var(--ys-primary-light));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(26, 60, 110, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}

.ysw .btn-compare:hover {
  box-shadow: 0 6px 20px rgba(26, 60, 110, 0.45);
  transform: translateY(-1px);
}

.ysw .btn-compare:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== MOBILE: CARD LAYOUT ========== */
.ysw .cards-container {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.ysw .quote-card {
  border-radius: var(--ys-radius);
  padding: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  box-sizing: border-box;
  color: var(--ys-text);
  position: relative;
  overflow: hidden;
}

.ysw .quote-card::before {
  display: none;
}

.ysw .card-content {
  position: relative;
  z-index: 1;
}

.ysw .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ysw .card-product {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.ysw .card-date {
  font-size: 12px;
  color: #64748b;
}

.ysw .card-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ysw .card-checkbox-row .cb-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ysw .card-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.ysw .card-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ysw .card-field .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #64748b;
  font-weight: 600;
}

.ysw .card-field .value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.ysw .card-field .value.premium {
  font-size: 20px;
  font-weight: 800;
}

.ysw .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.ysw .card-actions .btn {
  flex: 1 1 130px;
  justify-content: center;
}

/* ========== COMING SOON ========== */
.ysw .coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--ys-text-muted);
}

.ysw .coming-soon .cs-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.ysw .coming-soon h3 {
  font-size: 20px;
  color: #555;
  margin-bottom: 8px;
}

.ysw .coming-soon p {
  font-size: 14px;
  max-width: 400px;
}

/* ========== EMPTY STATE ========== */
.ysw .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ys-text-muted);
}

.ysw .empty-state .es-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.ysw .empty-state p {
  font-size: 14px;
}

/* ========== UPLOAD BUTTON (discreet yellow) ========== */
.ysw .upload-btn-wrapper {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.ysw .upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px dashed rgba(234, 179, 8, 0.5);
  border-radius: 10px;
  background: rgba(254, 249, 195, 0.35);
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.2px;
}

.ysw .upload-btn:hover {
  background: rgba(254, 249, 195, 0.65);
  border-color: rgba(234, 179, 8, 0.8);
}

.ysw .upload-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ysw .upload-btn-icon {
  font-size: 15px;
}

/* ========== UPLOAD MODAL OVERLAY ========== */
/* â”€â”€ Confirmation de dÃ©claration de sinistre â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ysw .claim-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ysw .claim-confirm-overlay.open {
  display: flex;
}

.ysw .claim-confirm-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  border-top: 5px solid #dc2626;
  animation: modalSlideIn 0.25s ease;
}

.ysw .claim-confirm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px 10px;
}

.ysw .claim-confirm-icon {
  font-size: 22px;
  color: #dc2626;
}

.ysw .claim-confirm-title {
  font-size: 17px;
  font-weight: 800;
  color: #dc2626;
  flex: 1;
}

.ysw .claim-confirm-close {
  border: none;
  background: #f1f5f9;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

.ysw .claim-confirm-body {
  padding: 0 20px 4px;
}

.ysw .claim-confirm-intro {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 12px;
}

.ysw .claim-confirm-list {
  margin: 0 0 14px;
  padding-left: 20px;
}

.ysw .claim-confirm-list li {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 7px;
}

.ysw .claim-confirm-tip {
  display: flex;
  gap: 9px;
  background: #eff6ff;
  border-left: 3px solid var(--ys-primary, #1A3C6E);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

.ysw .claim-confirm-tip p {
  margin: 0;
  font-size: 13px;
  color: #1e3a5f;
  line-height: 1.5;
}

.ysw .claim-confirm-tip-icon {
  font-size: 15px;
}

.ysw .claim-confirm-ack {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  margin-bottom: 6px;
}

.ysw .claim-confirm-ack input {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: #dc2626;
}

.ysw .claim-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 20px 18px;
}

.ysw .claim-confirm-cancel,
.ysw .claim-confirm-ok {
  border: none;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.ysw .claim-confirm-cancel {
  background: #f1f5f9;
  color: #475569;
}

.ysw .claim-confirm-ok {
  background: #dc2626;
  color: #fff;
}

.ysw .claim-confirm-ok:disabled {
  background: #fca5a5;
  cursor: not-allowed;
}

/* Pastille d'Ã©tat pour les sinistres : point rouge de 7 px en haut Ã  droite */
.ysw .nav-tab.nav-tab-claim::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background-color: #dc2626;
  border-radius: 50%;
  pointer-events: none;
}

.ysw .upload-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.ysw .upload-overlay.open {
  display: flex;
}

.ysw .upload-modal {
  background: var(--ys-white);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ysw .upload-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ys-border);
}

.ysw .upload-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ys-primary);
}

.ysw .upload-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ysw .upload-modal-close:hover {
  background: #e5e7eb;
  color: #333;
}

/* ========== DROP ZONE ========== */
.ysw .upload-dropzone {
  margin: 24px;
  border: 2px dashed var(--ys-border);
  border-radius: 16px;
  background: #fafbfc;
  transition: all 0.2s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ysw .upload-dropzone.dragover {
  border-color: var(--ys-primary);
  background: #f0f5ff;
  box-shadow: inset 0 0 30px rgba(26, 60, 110, 0.08);
}

.ysw .dropzone-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  text-align: center;
}

.ysw .dropzone-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.ysw .dropzone-main {
  font-size: 17px;
  font-weight: 700;
  color: var(--ys-text);
  margin-bottom: 6px;
}

.ysw .dropzone-or {
  font-size: 13px;
  color: var(--ys-text-muted);
  margin-bottom: 10px;
}

.ysw .dropzone-browse {
  padding: 10px 28px;
  border: none;
  border-radius: 10px;
  background: var(--ys-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.ysw .dropzone-browse:hover {
  background: var(--ys-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 60, 110, 0.3);
}

.ysw .dropzone-restriction {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ys-text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* File Preview */
.ysw .dropzone-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  width: 100%;
}

.ysw .preview-file-icon {
  font-size: 36px;
}

.ysw .preview-file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ysw .preview-file-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ys-text);
  word-break: break-all;
}

.ysw .preview-file-size {
  font-size: 12px;
  color: var(--ys-text-muted);
}

.ysw .preview-remove {
  width: 32px;
  height: 32px;
  border: none;
  background: #fee2e2;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.ysw .preview-remove:hover {
  background: #fca5a5;
}

/* Error */
.ysw .dropzone-error {
  padding: 10px 20px;
  margin: 0 24px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* ========== VALIDATE BUTTON ========== */
.ysw .upload-validate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 48px);
  margin: 0 24px 24px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.35);
  font-family: inherit;
}

.ysw .upload-validate-btn:hover {
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
  transform: translateY(-1px);
}

.ysw .upload-validate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ========== PROGRESS BAR ========== */
.ysw .upload-progress-container {
  padding: 20px 24px 24px;
  text-align: center;
}

.ysw .upload-progress-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ys-text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.ysw .upload-progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.ysw .upload-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ys-primary), var(--ys-primary-light));
  border-radius: 4px;
  transition: width 1s linear;
}

.ysw .upload-progress-time {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ys-text-muted);
  font-weight: 600;
}

/* ========== UPLOAD RESULT ========== */
.ysw .upload-result {
  padding: 20px 24px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.ysw .upload-result.success {
  color: #16a34a;
}

.ysw .upload-result.error {
  color: #dc2626;
}

.ysw .upload-result a {
  color: var(--ys-primary);
  text-decoration: underline;
}

/* ========== CLAIMS TAB ========== */
.ysw .claims-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
  max-width: 620px;
  margin: 0 auto;
}

.ysw .claims-welcome-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.ysw .claims-welcome-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ys-primary);
  margin-bottom: 20px;
}

.ysw .claims-welcome-text {
  font-size: 15px;
  color: var(--ys-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.ysw .claims-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fef9e7;
  border: 1px solid #f5e6a3;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.ysw .claims-note-icon {
  font-size: 18px;
  flex-shrink: 0;
  color: #b45309;
}

.ysw .claims-note p {
  font-size: 13px;
  color: #92400e;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

/* â”€â”€ FAQ Section â”€â”€ */
.ysw .claims-faq {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--ys-white);
  border-radius: var(--ys-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ysw .claims-faq-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--ys-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ysw .claims-faq-product-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ys-primary);
  margin-top: 14px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ys-border);
}

.ysw .claims-faq-product-name:first-of-type {
  margin-top: 0;
}

.ysw .claims-faq-text {
  font-size: 14px;
  color: var(--ys-text);
  line-height: 1.75;
  white-space: pre-line;
}

/* â”€â”€ Declare Claim Button â”€â”€ */
.ysw .claims-declare-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
  transition: all 0.2s ease;
  font-family: inherit;
  margin-top: 32px;
}

.ysw .claims-declare-btn:hover {
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.5);
  transform: translateY(-2px);
}

.ysw .claims-declare-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* â”€â”€ Active Claim Banner â”€â”€ */
.ysw .claims-active {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

.ysw .claims-active-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
  border-radius: var(--ys-radius) var(--ys-radius) 0 0;
  color: #fff;
}

.ysw .claims-active-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
  animation: claimPulse 2s ease-in-out infinite;
}

@keyframes claimPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
}
.ysw .claims-active-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.ysw .claims-active-msg {
  padding: 20px 24px;
  background: var(--ys-white);
  border-left: 3px solid #047857;
  border-right: 1px solid var(--ys-border);
  font-size: 14px;
  color: var(--ys-text);
  line-height: 1.7;
}

/* â”€â”€ Upload Section â”€â”€ */
.ysw .claims-upload-section {
  padding: 20px 24px;
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  border-top: none;
  border-radius: 0 0 var(--ys-radius) var(--ys-radius);
}

.ysw .claims-upload-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ys-text);
  margin-bottom: 14px;
}

.ysw .claims-upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ysw .claims-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 2px dashed var(--ys-primary);
  background: #f0f5ff;
  color: var(--ys-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ysw .claims-upload-btn:hover {
  background: #dbeafe;
  border-color: var(--ys-primary-light);
  transform: translateY(-1px);
}

.ysw .claims-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.ysw .claims-upload-hint {
  font-size: 12px;
  color: var(--ys-text-muted);
  margin-top: 8px;
}

.ysw .claims-upload-status {
  display: none;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.ysw .claims-upload-sending {
  display: block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  animation: claimPulse 1.5s ease-in-out infinite;
}

.ysw .claims-upload-success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ysw .claims-upload-error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* â”€â”€ File Chips â”€â”€ */
.ysw .claims-files-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ysw .claims-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 12px;
  color: var(--ys-text);
  font-weight: 500;
}

.ysw .claims-file-icon {
  font-size: 14px;
}

.ysw .claims-file-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== PROFILE TAB ========== */
.ysw .pf-card {
  background: var(--ys-white);
  border-radius: var(--ys-radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 20px;
}

.ysw .pf-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--ys-primary) 0%, var(--ys-primary-light) 100%);
  color: #fff;
}

.ysw .pf-header-entity {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

.ysw .pf-header-contact {
  background: linear-gradient(135deg, #1e6f5c 0%, #289672 100%);
}

.ysw .pf-card-icon {
  font-size: 36px;
  opacity: 0.9;
  flex-shrink: 0;
}

.ysw .pf-card-titles {
  flex: 1;
  min-width: 0;
}

.ysw .pf-card-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ysw .pf-card-subtitle {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 500;
}

.ysw .pf-section {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f2f5;
}

.ysw .pf-section:last-child {
  border-bottom: none;
}

.ysw .pf-section-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ys-accent);
  margin: 0 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(225, 86, 21, 0.15);
}

.ysw .pf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.ysw .pf-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ysw .pf-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ys-text-muted);
  font-weight: 600;
}

.ysw .pf-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ys-text);
  word-break: break-word;
}

.ysw .pf-bool-yes {
  color: #16a34a;
}

.ysw .pf-bool-no {
  color: var(--ys-text-muted);
}

.ysw .pf-bool-detail {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  margin-top: 2px;
}

.ysw .pf-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--ys-text-muted);
}

.ysw .pf-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.ysw .pf-empty p {
  font-size: 14px;
  margin: 0;
}

/* ========== RESPONSIVE ========== */
.ysw.lt960 .quotes-table {
    display: none !important;
  }
.ysw.lt960 .cards-container {
    display: flex !important;
  }
.ysw.lt960 .widget-root {
    padding: 4px;
  }
.ysw.lt900 .upload-btn-wrapper {
    justify-content: center;
  }
.ysw.lt900 .upload-btn {
    width: 100%;
    justify-content: center;
  }
.ysw.lt600 .section-header h2 {
    font-size: 17px;
  }
.ysw.lt600 .nav-tab {
    flex-direction: column;
    gap: 4px;
    padding: 8px 2px;
    min-height: 56px;
    font-size: 10px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
  }
.ysw.lt600 .nav-tab .tab-icon {
    font-size: 20px;
  }
.ysw.lt600 .comparison-bar {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 12px 16px;
  }
.ysw.lt600 .comparison-bar .bar-info {
    flex-wrap: wrap;
    justify-content: center;
  }
.ysw.lt600 .upload-btn-wrapper {
    justify-content: center;
  }
.ysw.lt600 .upload-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
  }
.ysw.lt600 .upload-modal {
    max-width: 100%;
    border-radius: 16px;
  }
.ysw.lt600 .upload-dropzone {
    margin: 16px;
    min-height: 180px;
  }
.ysw.lt600 .dropzone-main {
    font-size: 15px;
  }
.ysw.lt600 .upload-validate-btn {
    width: calc(100% - 32px);
    margin: 0 16px 16px;
  }
.ysw.lt600 .upload-progress-container {
    padding: 16px;
  }
/* Profile tab responsive */
.ysw.lt600 .pf-grid {
    grid-template-columns: 1fr;
  }
.ysw.lt600 .pf-card-header {
    padding: 16px;
  }
.ysw.lt600 .pf-section {
    padding: 12px 16px;
  }
.ysw.lt600 .pf-card-title {
    font-size: 18px;
  }
/* Claims tab responsive */
.ysw.lt600 .claims-welcome {
    padding: 40px 16px;
  }
.ysw.lt600 .claims-welcome-title {
    font-size: 18px;
  }
.ysw.lt600 .claims-faq {
    padding: 16px;
  }
.ysw.lt600 .claims-declare-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
.ysw.lt600 .claims-active-header {
    padding: 16px;
  }
.ysw.lt600 .claims-active-title {
    font-size: 16px;
  }
.ysw.lt600 .claims-active-msg {
    padding: 16px;
  }
.ysw.lt600 .claims-upload-section {
    padding: 16px;
  }
.ysw.lt600 .claims-upload-row {
    flex-direction: column;
    align-items: stretch;
  }
.ysw.lt600 .claims-upload-btn {
    width: 100%;
    justify-content: center;
  }
.ysw.lt380 .card-main {
    grid-template-columns: 1fr;
  }
/* ========== COLLAPSIBLE ARCHIVE SECTION ========== */
.ysw .archive-section {
  margin-top: 28px;
  background: var(--ys-white);
  border: 1.5px dashed var(--ys-border);
  border-radius: var(--ys-radius);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ysw .archive-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  cursor: pointer;
  background: rgba(26, 60, 110, 0.02);
  user-select: none;
  transition: background 0.2s ease;
}

.ysw .archive-header:hover {
  background: rgba(26, 60, 110, 0.05);
}

.ysw .archive-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ys-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ysw .archive-icon {
  font-size: 16px;
  opacity: 0.8;
}

.ysw .archive-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--ys-primary);
  font-size: 12px;
}

.ysw .archive-section.open .archive-chevron {
  transform: rotate(180deg);
}

.ysw .archive-content {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== ARCHIVE TABLE - THINNER ROWS & SMALLER TYPOGRAPHY ========== */
.ysw .archive-table .quote-row {
  padding: 10px 16px;
  border-radius: 10px;
  min-height: 54px;
}

.ysw .archive-table .row-checkbox {
  width: 16px;
  height: 16px;
  font-size: 9px;
  border-radius: 4px;
}

.ysw .archive-table .status-badge {
  padding: 3px 8px;
  font-size: 10px;
}

.ysw .archive-table .end-date {
  font-size: 9px;
}

.ysw .archive-table .row-category {
  font-size: 12px;
}

.ysw .archive-table .row-product-name {
  font-size: 13px;
}

.ysw .archive-table .row-insurer {
  font-size: 11px;
  margin-top: 1px;
}

.ysw .archive-table .row-value {
  font-size: 15px;
  padding-right: 8px;
}

.ysw .archive-table .btn {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
}

/* ========== ARCHIVE CARDS - THINNER & SMALLER ========== */
.ysw .archive-cards .quote-card {
  padding: 12px;
  border-radius: 10px;
}

.ysw .archive-cards .card-category {
  font-size: 13px;
}

.ysw .archive-cards .card-product {
  font-size: 11px;
  margin-bottom: 8px;
}

.ysw .archive-cards .card-main {
  gap: 8px;
  margin-bottom: 10px;
}

.ysw .archive-cards .card-field .label {
  font-size: 8px;
}

.ysw .archive-cards .card-field .value {
  font-size: 12px;
}

.ysw .archive-cards .card-field .value.premium {
  font-size: 15px;
}

.ysw .archive-cards .card-actions {
  padding-top: 10px;
}

.ysw .archive-cards .card-actions .btn {
  padding: 6px 10px;
  font-size: 11px;
}

/* Grey out styles for archived quotes */
.ysw .quote-row.archived-row {
  opacity: 0.55;
  cursor: default;
  filter: saturate(0.3) brightness(0.9);
}

.ysw .quote-row.archived-row:hover {
  transform: none;
  box-shadow: none;
}

.ysw .quote-card.archived-card {
  opacity: 0.55;
  cursor: default;
  filter: saturate(0.3) brightness(0.9);
}

/* ============================================
   DOCUMENTS TAB STYLES
   ============================================ */
.ysw .docs-container {
  padding: 16px 0;
}

.ysw .docs-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}

.ysw .docs-search-input {
  flex: 1;
  padding: 10px 14px 10px 36px;
  border: 1px solid #dde1e7;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  transition: border-color 0.2s;
}

.ysw .docs-search-input:focus {
  border-color: #1A3C6E;
}

.ysw .doc-category-group {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.ysw .doc-category-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background: #f8fafc;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  color: #1A3C6E;
}

.ysw .doc-category-header .cat-icon {
  font-size: 18px;
  margin-right: 10px;
}

.ysw .doc-category-header .cat-name {
  flex: 1;
  font-size: 14px;
}

.ysw .doc-category-header .cat-count {
  background: #1A3C6E;
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  margin-right: 10px;
}

.ysw .doc-category-header .cat-chevron {
  font-size: 12px;
  transition: transform 0.2s;
  color: #64748b;
}

.ysw .doc-category-group.collapsed .doc-category-header {
  border-bottom: none;
}

.ysw .doc-category-group.collapsed .doc-category-header .cat-chevron {
  transform: rotate(-90deg);
}

.ysw .doc-category-group.collapsed .doc-list {
  display: none;
}

.ysw .doc-list {
  padding: 8px 12px;
}

.ysw .doc-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
  cursor: pointer;
  gap: 12px;
}

.ysw .doc-item:hover {
  background: #f1f5f9;
}

.ysw .doc-file-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.ysw .doc-file-icon.pdf {
  background: #fee2e2;
  color: #dc2626;
}

.ysw .doc-file-icon.doc,
.ysw .doc-file-icon.docx {
  background: #dbeafe;
  color: #2563eb;
}

.ysw .doc-file-icon.xls,
.ysw .doc-file-icon.xlsx {
  background: #dcfce7;
  color: #16a34a;
}

.ysw .doc-file-icon.jpg,
.ysw .doc-file-icon.jpeg,
.ysw .doc-file-icon.png {
  background: #fef3c7;
  color: #d97706;
}

.ysw .doc-info {
  flex: 1;
  min-width: 0;
}

.ysw .doc-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ysw .doc-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ysw .doc-open-btn,
.ysw .doc-share-btn {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.15s;
}

.ysw .doc-open-btn:hover,
.ysw .doc-share-btn:hover {
  background: #1A3C6E;
  color: #fff;
  border-color: #1A3C6E;
}

.ysw .doc-open-btn svg,
.ysw .doc-share-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* ========== YEAR TABS & SEARCH STYLES ========== */
.ysw .docs-search {
  margin-bottom: 14px;
}

.ysw .docs-search input,
.ysw .docs-search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid #dde1e7;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 12px center;
  transition: border-color 0.2s;
}

.ysw .docs-search input:focus,
.ysw .docs-search-input:focus {
  border-color: #1A3C6E;
}

.ysw .year-tabs-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.ysw .year-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.ysw .year-tab {
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.ysw .year-tab:hover {
  background: #f0f5ff;
  color: #1A3C6E;
}

.ysw .year-tab.active {
  background: #cab28b;
  color: #fff;
  box-shadow: 0 3px 8px rgba(202, 178, 139, 0.4);
}

.ysw .year-dropdown {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.ysw .doc-share-btn {
  background: #e15615 !important;
  border-color: #e15615 !important;
  color: #fff !important;
}

.ysw .doc-share-btn:hover {
  background: #ff7a3d !important;
  border-color: #ff7a3d !important;
  box-shadow: 0 2px 8px rgba(225, 86, 21, 0.35);
}

.ysw .docs-empty {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}

.ysw .docs-empty .empty-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

/* Le survol n'existe pas au doigt : sans ce garde-fou, iOS conserve l'Ã©tat
   :hover aprÃ¨s l'appui et le bouton reste allumÃ©. */
.ysw .doc-share-btn {
  -webkit-tap-highlight-color: transparent;
}

@keyframes ysSpin {
  to {
    transform: rotate(360deg);
  }
}
/* â”€â”€ Rechargement d'un navire â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Le contenu affichÃ© est celui du navire prÃ©cÃ©dent tant que les requÃªtes tournent :
   on le grise et on coupe les clics, plutÃ´t que de laisser l'utilisateur agir sur
   des donnÃ©es fausses. #tab-documents est volontairement absent de la liste : son
   contenu est dÃ©jÃ  remplacÃ© par son propre indicateur d'attente, le griser
   masquerait ce dernier. Le sÃ©lecteur de navire et les onglets restent actifs. */
.ysw .widget-root.ys-busy #quotesTable,
.ysw .widget-root.ys-busy #cardsContainer,
.ysw .widget-root.ys-busy #archiveSection,
.ysw .widget-root.ys-busy #tab-claims,
.ysw .widget-root.ys-busy #tab-settings {
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.15s ease;
}

/* Barre de progression indÃ©terminÃ©e sous la barre d'onglets : elle remplace le
   toast, au mÃªme endroit pour tous les onglets. */
.ysw .widget-root.ys-busy #navTabs {
  position: relative;
}

.ysw .widget-root.ys-busy #navTabs::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0) 0%, var(--ys-primary) 50%, rgba(15, 23, 42, 0) 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: ysBar 1.1s ease-in-out infinite;
}

@keyframes ysBar {
  0% {
    background-position: -40% 0;
  }
  100% {
    background-position: 140% 0;
  }
}
/* â”€â”€ Rappel des conditions gÃ©nÃ©rales : texte courtier mis en forme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   Contreparties des styles sos-* de l'application mobile, avec les jetons du
   widget. Voir buildFaqAssistanceHtml dans widget.js. */
.ysw .claims-faq-hotlines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px 0 14px;
}

.ysw .claims-faq-hotline {
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  border-left: 4px solid var(--ys-accent);
  border-radius: 12px;
  padding: 12px 14px;
}

.ysw .claims-faq-hotline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ysw .claims-faq-hotline-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ys-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ysw .claims-faq-hotline-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--ys-crew);
  background: rgba(13, 148, 136, 0.12);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

/* `user-select: all` sÃ©lectionne le numÃ©ro entier d'un seul clic : sur ordinateur,
   copier est le geste utile, on ne dÃ©croche pas depuis le navigateur. */
.ysw .claims-faq-hotline-number {
  display: inline-block;
  margin: 8px 0 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ys-primary);
  text-decoration: none;
  user-select: all;
}

.ysw .claims-faq-hotline-number:hover {
  color: var(--ys-accent);
}

.ysw .claims-faq-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ysw .claims-faq-copy,
.ysw .claims-faq-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--ys-border);
  background: var(--ys-white);
  color: var(--ys-primary);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ysw .claims-faq-copy:hover,
.ysw .claims-faq-call:hover {
  background: var(--ys-primary);
  border-color: var(--ys-primary);
  color: var(--ys-white);
}

.ysw .claims-faq-copy.copied {
  background: rgba(13, 148, 136, 0.14);
  border-color: var(--ys-crew);
  color: var(--ys-crew);
}

.ysw .claims-faq-emails {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.ysw .claims-faq-email {
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ysw .claims-faq-email-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ys-text-muted);
}

.ysw .claims-faq-email-address {
  font-size: 15px;
  font-weight: 700;
  color: var(--ys-primary);
  text-decoration: none;
  word-break: break-all;
  user-select: all;
}

.ysw .claims-faq-email-address:hover {
  color: var(--ys-accent);
}

.ysw .claims-faq-metrics {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.ysw .claims-faq-metrics-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--ys-hull);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

.ysw .claims-faq-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.ysw .claims-faq-metric {
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  border-radius: 10px;
  padding: 8px 10px;
}

.ysw .claims-faq-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ys-text-muted);
  line-height: 1.35;
}

.ysw .claims-faq-metric-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--ys-primary);
  margin-top: 3px;
  white-space: nowrap;
}

.ysw .claims-faq-clauses {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ysw .claims-faq-clause {
  background: var(--ys-white);
  border: 1px solid var(--ys-border);
  border-radius: 12px;
  overflow: hidden;
}

.ysw .claims-faq-clause-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid var(--ys-border);
}

.ysw .claims-faq-clause-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--ys-primary);
}

.ysw .claims-faq-clause-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--ys-text-muted);
  white-space: nowrap;
}

.ysw .claims-faq-clause-items {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 12px;
}

.ysw .claims-faq-generic {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px 0;
}

.ysw .claims-faq-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.ysw .claims-faq-bullet {
  color: var(--ys-hull);
  font-size: 13px;
  line-height: 1.5;
  flex-shrink: 0;
}

.ysw .claims-faq-row-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ys-text);
}

.ysw .claims-faq-inline-link {
  color: var(--ys-hull);
  font-weight: 700;
  text-decoration: none;
  word-break: break-word;
}

.ysw .claims-faq-inline-link:hover {
  text-decoration: underline;
}

.ysw.lt640 .claims-faq-hotline-number {
    font-size: 20px;
  }

.ysw.lt640 .claims-faq-metrics-grid {
    grid-template-columns: 1fr;
  }
/* â”€â”€ Claims History â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ysw .claims-history {
  margin-bottom: 24px;
}

.ysw .claims-history-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ys-text-muted);
  margin: 0 0 10px;
}

.ysw .claims-history-item {
  background: var(--ys-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.ysw .claims-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ysw .claims-history-ref {
  font-weight: 800;
  font-size: 15px;
  color: var(--ys-text);
}

.ysw .claims-history-meta {
  font-size: 12px;
  color: var(--ys-text-muted);
}

.ysw .claims-history-badge {
  background: #e8f0fe;
  color: var(--ys-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ysw .claims-history-badge--closed {
  background: #f1f5f9;
  color: var(--ys-text-muted);
}

.ysw .claims-history-badge--progress {
  background: #fef3c7;
  color: #92400e;
}

.ysw .claims-history-badge--survey {
  background: #ede9fe;
  color: #5b21b6;
}

.ysw .claims-history-steps {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.ysw .claims-history-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
}

.ysw .claims-history-step--done {
  background: var(--ys-primary);
}

.ysw .claims-history-location {
  font-size: 13px;
  color: var(--ys-text);
  margin-bottom: 10px;
  line-height: 1.45;
}

.ysw .claims-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.ysw .claims-history-field {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 7px 10px;
}

.ysw .claims-history-field-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--ys-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.ysw .claims-history-field-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ys-text);
}

.ysw .claims-history-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.ysw .claims-history-notice-title {
  font-size: 11px;
  font-weight: 800;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.ysw .claims-history-notice-body {
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ysw .claims-history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ysw .claims-history-link {
  background: none;
  border: 1px solid var(--ys-primary);
  color: var(--ys-primary);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ysw .claims-history-link:hover {
  background: #f0f5ff;
}

.ysw .claims-history-updated {
  font-size: 11px;
  color: var(--ys-text-muted);
}

.ysw.lt600 .claims-history-head {
    flex-direction: column;
    gap: 6px;
  }

.ysw.lt600 .claims-history-grid {
    grid-template-columns: 1fr;
  }

.ysw.lt600 .claims-history-footer {
    flex-direction: column;
    align-items: stretch;
  }

.ysw.lt600 .claims-history-link {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

.ysw.lt600 .claims-history-updated {
    text-align: center;
  }
/* â”€â”€ Premier geste tactile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   En Auto Height, le contenu tient exactement dans l'iframe : le document du
   widget n'a rien Ã  faire dÃ©filer. Il reste pourtant la cible du geste, et le
   rebond Ã©lastique consomme le premier glissement â€” il bouge de quelques pixels
   puis revient, et seul le deuxiÃ¨me geste atteint le conteneur d'Appsmith, qui
   est Ã  l'extÃ©rieur de l'iframe. En lui retirant son statut de conteneur
   scrollable, le geste va au parent dÃ¨s le premier contact. Rien n'est masquÃ©,
   puisqu'il n'y a pas de dÃ©bordement. RÃ©servÃ© au tactile : sur ordinateur la
   molette se propage dÃ©jÃ , et l'ascenseur reste un filet de sÃ©curitÃ© utile. */
/* Ouverte depuis l'app (bouton SOS) : en haut du widget plutÃ´t qu'au centre.
   Custom1 est en Auto Height, le centre de son iframe peut Ãªtre loin sous l'Ã©cran. */
.ysw .claim-confirm-overlay.from-app {
  align-items: flex-start;
  padding-top: 24px;
}

/* â”€â”€ Sinistres : piÃ¨ces jointes, bandeau de dÃ©pÃ´t, Ã©tat d'envoi â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   RestaurÃ© depuis la version d'avant le 23/09 (commit 49aac9f^), oÃ¹ ces
   rÃ¨gles avaient sautÃ©. */
.ysw .claims-history-docs {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  margin-top: 4px;
}

.ysw .claims-history-docs-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--ys-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.ysw .claims-history-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.ysw .claims-history-doc:hover {
  background: #f0f5ff;
  border-color: var(--ys-primary);
}

.ysw .claims-history-doc-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.ysw .claims-history-doc-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ysw .claims-history-doc-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ys-text);
}

.ysw .claims-history-doc-file {
  font-size: 11px;
  color: var(--ys-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ysw .claims-history-docs-hint {
  font-size: 11px;
  color: var(--ys-text-muted);
  font-style: italic;
  margin-top: 4px;
}

.ysw .claims-secure-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  margin: 12px 0 16px;
  text-align: left;
}

.ysw .claims-secure-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.ysw .claims-secure-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ysw .claims-secure-title {
  font-size: 13px;
  font-weight: 700;
  color: #065f46;
}

.ysw .claims-secure-desc {
  font-size: 12px;
  color: #047857;
  line-height: 1.45;
}

.ysw .claims-card-upload-status {
  font-size: 12px;
  font-weight: 600;
}

.ysw .claims-card-upload-status.sending,
.ysw .claims-card-upload-status.success,
.ysw .claims-card-upload-status.error {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 8px;
}

.ysw .claims-card-upload-status.sending {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ysw .claims-card-upload-status.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ysw .claims-card-upload-status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Modale de dÃ©claration placÃ©e par le JS dans la partie visible de l'Ã©cran
   (voir placeClaimConfirm) : le JS fixe le dÃ©calage, on retire le centrage. */
.ysw .claim-confirm-overlay.anchored {
  align-items: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}
/* â”€â”€ DÃ©mo : le conteneur joue le rÃ´le de l'iframe du widget â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ysw.ysw-viewport { position: relative; height: 100%; overflow: hidden; }
.ysw .ysw-scroll { height: 100%; overflow-y: auto; padding: 8px 14px 70px; scrollbar-width: thin; }
.ysw.lt600 .ysw-scroll { padding: 6px 8px 64px; }
.ysw .comparison-bar { position: absolute; }
.ysw .upload-overlay, .ysw .claim-confirm-overlay { position: absolute; }
.ysw .upload-overlay { backdrop-filter: none; }
.ysw input[type="text"], .ysw input[type="email"] { font-family: inherit; color: var(--ys-text); }
.ysw button { font-family: inherit; }

/* Note du courtier (HTML stockÃ© en base, mis en forme comme le rapport n8n) */
.ysw .ys-bn-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #666; margin: 0 0 10px; }
.ysw .ys-bn { background: #f8f8fb; border-left: 4px solid #1a1a2e; padding: 16px 20px; border-radius: 0 6px 6px 0; }
.ysw .ys-bn p { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: #2c2c3e; }
.ysw .ys-bn p:last-child { margin-bottom: 0; }
.ysw .ys-bn strong { color: #1a1a2e; }

/* â”€â”€ Modales Appsmith (thÃ¨me Â« Modern Â», rayon 0) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ysw .as-overlay { display: none; position: absolute; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .55); align-items: center; justify-content: center; padding: 18px; }
.ysw .as-overlay.open { display: flex; }
.ysw .as-modal { position: relative; background: #fff; width: 100%; max-height: 100%; overflow-y: auto; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05); animation: modalSlideIn .25s ease; }
.ysw .as-modal-lg { max-width: 990px; }
.ysw .as-modal-md { max-width: 640px; }
.ysw .as-modal-sm { max-width: 480px; }
.ysw .as-close { position: absolute; top: 8px; right: 8px; z-index: 3; width: 32px; height: 32px; border: none; border-radius: 50%; background: #f1f5f9; color: #475569; font-size: 20px; cursor: pointer; line-height: 1; }
.ysw .as-close:hover { background: #e2e8f0; }
.ysw .as-modal-foot { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid #e2e8f0; }
.ysw .as-btn { background: #553de9; color: #fff; border: none; padding: 9px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ysw .as-report-frame { padding: 26px 30px 10px; }
.ysw.lt600 .as-report-frame { padding: 18px 12px 6px; }
.ysw.lt600 .as-overlay { padding: 8px; }

/* Rapport d'analyse / comparaison (styles du gÃ©nÃ©rateur n8n html_conversion) */
.ysw .ys-report { font-family: Georgia, "Times New Roman", serif; color: #1a1a2e; }
.ysw .ys-report .report-header { margin-bottom: 22px; border-bottom: 2px solid #1a1a2e; padding-bottom: 12px; padding-right: 30px; }
.ysw .ys-report .report-header h1 { font-size: 22px; margin: 0 0 4px; }
.ysw .ys-report .meta { font-size: 12.5px; color: #666; }
.ysw .ys-report .section-title { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #666; margin: 22px 0 10px; }
.ysw .ys-report .comparison-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ysw .ys-report .comparison-table th { background: #1a1a2e; color: #fff; padding: 9px 12px; text-align: left; font-size: 12px; font-weight: 600; }
.ysw .ys-report .comparison-table td { padding: 8px 12px; border-bottom: 1px solid #e8e8e8; vertical-align: top; }
.ysw .ys-report .rep-section td { background: #f0f0f5; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; }
.ysw .ys-report td.good { color: #1a7a4a; font-weight: 600; }
.ysw .ys-report td.bad { color: #c0392b; }
.ysw .ys-report td.warn { color: #d35400; font-weight: 700; }
.ysw .ys-report .broker-note { background: #f8f8fb; border-left: 4px solid #1a1a2e; padding: 16px 20px; border-radius: 0 6px 6px 0; font-size: 14px; line-height: 1.7; color: #2c2c3e; }
.ysw.lt600 .ys-report .comparison-table { font-size: 11.5px; }
.ysw.lt600 .ys-report .comparison-table th, .ysw.lt600 .ys-report .comparison-table td { padding: 6px 6px; }

/* Modale Â« Docs Â» d'une ligne (widget CustomDocs1) */
.ysw .as-docs { padding: 22px 20px 16px; }
.ysw .as-docs-header { display: flex; align-items: center; justify-content: space-between; margin: 0 36px 14px 0; }
.ysw .as-docs-title { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.ysw .as-docs-title h2 { font-size: 18px; font-weight: 800; color: #1A3C6E; }
.ysw .as-docs-count { background: #1A3C6E; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }

/* Modale Souscription */
.ysw .as-sub { padding: 26px 24px 22px; }
.ysw .as-sub h3 { font-size: 18px; font-weight: 800; color: #0f172a; margin: 0 30px 12px 0; }
.ysw .as-sub-details { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 13px; line-height: 1.55; padding: 10px 12px; margin-bottom: 14px; border-radius: 6px; }
.ysw .as-sub p { font-size: 14px; line-height: 1.6; color: #334155; }

/* Visionneuse de documents */
.ysw .as-viewer { background: #525659; padding: 0 0 24px; }
.ysw .as-viewer-bar { background: #323639; color: #f1f5f9; font-size: 13px; padding: 12px 50px 12px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ysw .as-viewer-page { background: #fff; width: min(620px, calc(100% - 32px)); margin: 22px auto 0; padding: 34px 38px; min-height: 520px; box-shadow: 0 3px 12px rgba(0,0,0,.35); font-size: 13px; line-height: 1.6; color: #1f2937; }
.ysw.lt600 .as-viewer-page { padding: 22px 18px; min-height: 380px; }
.ysw .as-viewer-page .pdf-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid #e15615; padding-bottom: 8px; margin-bottom: 22px; font-size: 11px; color: #64748b; }
.ysw .as-viewer-page .pdf-head b { color: #1a3c6e; font-size: 18px; }
.ysw .as-viewer-page h2 { font-size: 17px; letter-spacing: .06em; color: #1a3c6e; margin-bottom: 16px; }
.ysw .as-viewer-page p { margin-bottom: 14px; }
.ysw .as-viewer-page table { width: 100%; border-collapse: collapse; }
.ysw .as-viewer-page td { border-bottom: 1px solid #e5e7eb; padding: 7px 4px; }
.ysw .as-viewer-page td:first-child { color: #64748b; width: 34%; }
.ysw .as-viewer-page .pdf-lines i { display: block; height: 9px; background: #eef1f5; border-radius: 3px; margin: 12px 0; }
.ysw .as-viewer-page .pdf-foot { margin-top: 40px; font-size: 10.5px; color: #94a3b8; text-align: center; }

/* Modale de partage (widget CustomShareWidget) */
.ysw .as-modal-share { background: transparent; box-shadow: none; }
.ysw .share-container { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 14px; }
.ysw .sh-header { text-align: center; }
.ysw .sh-icon { font-size: 28px; color: #e15615; margin-bottom: 6px; }
.ysw .sh-header h3 { font-size: 17px; font-weight: 800; color: #1A3C6E; margin: 0 0 4px; }
.ysw .sh-header p { font-size: 13px; color: #6b7280; }
.ysw .sh-doc-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #1A3C6E; margin-bottom: 8px; }
.ysw .sh-doc-list { display: flex; flex-direction: column; gap: 6px; }
.ysw .sh-doc-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #dde1e7; border-radius: 10px; background: #f9fafb; }
.ysw .sh-doc-icon { font-size: 18px; cursor: pointer; }
.ysw .sh-doc-text { display: flex; flex-direction: column; min-width: 0; flex: 1; cursor: pointer; }
.ysw .sh-doc-name { font-size: 13px; font-weight: 600; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.ysw .sh-doc-text:hover .sh-doc-name { text-decoration: underline; color: #1A3C6E; }
.ysw .sh-doc-kind { font-size: 11px; color: #6b7280; }
.ysw .sh-doc-remove { width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: #9ca3af; font-size: 20px; cursor: pointer; }
.ysw .sh-doc-remove:hover { background: #fee2e2; color: #dc2626; }
.ysw .sh-search-wrapper { position: relative; }
.ysw .sh-search-icon { position: absolute; left: 12px; top: 12px; width: 18px; height: 18px; color: #9ca3af; }
.ysw .sh-search-wrapper input, .ysw .sh-manual input { width: 100%; padding: 12px 12px 12px 38px; border: 2px solid #dde1e7; border-radius: 10px; font-size: 16px; outline: none; background: #f9fafb; }
.ysw .sh-manual input { padding-left: 12px; }
.ysw .sh-search-wrapper input:focus, .ysw .sh-manual input:focus { border-color: #1A3C6E; background: #fff; }
.ysw .sh-search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #dde1e7; border-radius: 10px; max-height: 180px; overflow-y: auto; margin-top: 6px; z-index: 10; box-shadow: 0 10px 25px rgba(0,0,0,.1); display: none; }
.ysw .sh-search-results.visible { display: block; }
.ysw .sh-result-item { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f3f4f6; display: flex; flex-direction: column; }
.ysw .sh-result-item:hover { background: #f0f5ff; }
.ysw .sh-result-name { font-weight: 700; font-size: 13px; color: #1a1a2e; }
.ysw .sh-result-city { font-size: 11px; color: #6b7280; }
.ysw .sh-marina-card { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); border: 1px solid #dde1e7; border-radius: 12px; padding: 14px; }
.ysw .sh-marina-card-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ysw .sh-badge { background: #1A3C6E; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.ysw .sh-clear-btn { background: #ffe4e6; color: #e11d48; border: none; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; cursor: pointer; }
.ysw .sh-marina-name { margin: 0 0 10px; font-size: 16px; color: #1A3C6E; }
.ysw .sh-marina-details { display: flex; flex-direction: column; gap: 6px; }
.ysw .sh-detail-row { display: flex; gap: 6px; font-size: 12px; color: #4b5563; word-break: break-word; }
.ysw .sh-highlight-email { font-weight: 600; color: #1a1a2e; }
.ysw .sh-divider { text-align: center; position: relative; margin: 2px 0; }
.ysw .sh-divider::before { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: #dde1e7; }
.ysw .sh-divider span { background: #fff; padding: 0 12px; color: #9ca3af; font-size: 12px; font-weight: 600; text-transform: uppercase; position: relative; }
.ysw .sh-message-input { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ysw .sh-message-label { font-size: 12px; color: #6b7280; font-weight: 600; }
.ysw .sh-message-input textarea { width: 100%; padding: 10px 12px; min-height: 75px; max-height: 200px; line-height: 1.4; resize: none; overflow-y: hidden; border: 2px solid #dde1e7; border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s, background .2s; background: #f9fafb; box-sizing: border-box; }
.ysw .sh-message-input textarea:focus { border-color: #1A3C6E; background: #fff; }
.ysw .sh-message-signature { display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 6px 10px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; font-size: 12px; color: #64748b; }
.ysw .sh-message-signature .sh-sig-icon { font-size: 13px; }
.ysw .sh-message-signature .sh-sig-label { font-weight: 500; color: #64748b; }
.ysw .sh-message-signature strong { color: #1A3C6E; font-weight: 700; }
.ysw .sh-send-btn { background: linear-gradient(135deg, #e15615, #ff7a3d); color: #fff; border: none; padding: 14px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(225,86,21,.3); text-transform: uppercase; letter-spacing: 1px; }
.ysw .sh-send-btn:disabled { background: #d1d5db; box-shadow: none; cursor: not-allowed; opacity: .7; }
.ysw .sh-send-btn.btn-success { background: linear-gradient(135deg, #16a34a, #22c55e); }

/* Toast de dÃ©monstration */
.ysw .ysw-toast { position: absolute; left: 50%; bottom: 58px; transform: translate(-50%, 16px); background: rgba(15, 23, 42, .92); color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 3000; max-width: 86%; text-align: center; }
.ysw .ysw-toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ── Rapport d'Audit Technique (Analyse d'un devis) ─────────────────────────
   Styles du rapport Insight™ généré par n8n (nœud « Code in JavaScript8 »).
   Polices Inter et Playfair Display embarquées dans le plugin (assets/fonts,
   licence SIL OFL 1.1, sous-ensemble latin) : aucun appel à Google Fonts. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/playfair-display-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
.ysw .ys-audit { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; color: #333; font-size: 13px; line-height: 1.5; padding-right: 26px; }
.ysw .ys-audit .vessel-report-header { text-align: center; margin-bottom: 32px; padding-bottom: 15px; border-bottom: 3px double #dcb048; }
.ysw .ys-audit .report-type-tag { font-size: 17px; color: #dcb048; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 8px; display: block; }
.ysw .ys-audit .vessel-main-title { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-size: 34px; color: #1A2755; margin: 0; letter-spacing: 1px; line-height: 1.15; }
.ysw .ys-audit .vessel-main-specs { font-size: 13px; color: #555; margin-top: 6px; font-weight: 600; font-style: italic; }
.ysw .ys-audit .section-block { margin-bottom: 20px; }
.ysw .ys-audit h2 { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; }
.ysw .ys-audit .yacht-num-box { background-color: #dcb048; color: #111; padding: 4px 0; width: 30px; text-align: center; border-radius: 3px; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.ysw .ys-audit .yacht-title-text { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-size: 19px; font-weight: 700; color: #1A2755; }
.ysw .ys-audit h3 { color: #1A2755; font-size: 14px; margin: 16px 0 8px; font-weight: 700; }
.ysw .ys-audit h4 { color: #1A2755; font-size: 13px; margin: 14px 0 6px; font-weight: 700; }
.ysw .ys-audit ul { margin: 6px 0 8px; padding-left: 20px; }
.ysw .ys-audit li { margin: 3px 0; }
.ysw .ys-audit p { margin: 0 0 8px; }
.ysw .ys-audit strong { color: #1f2937; }
.ysw .ys-audit table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 12px; }
.ysw .ys-audit th { background: #f8f9fa; color: #1A2755; font-weight: 700; text-transform: uppercase; padding: 8px 6px; border-bottom: 2px solid #dcb048; text-align: left; font-size: 11px; }
.ysw .ys-audit td { padding: 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.ysw .ys-audit td:first-child { font-weight: 600; background: #fafafa; width: 25%; color: #222; }
.ysw .ys-audit .section-subtitle { margin: -4px 0 10px; font-size: 12px; color: #444; font-style: italic; line-height: 1.35; font-weight: 500; }
.ysw .ys-audit .box-base { padding: 8px 12px; margin: 10px 0; border-left: 3px solid #ccc; }
.ysw .ys-audit .box-gold { border-left-color: #dcb048; background-color: #fffcf5; }
.ysw .ys-audit .closing-block { margin-top: 30px; padding: 20px; background-color: #fffdf5; border: 1px solid #e8d296; border-radius: 4px; text-align: center; }
.ysw .ys-audit .closing-title { color: #1A2755; font-size: 14px; margin: 0 0 10px; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid #dcb048; display: inline-block; padding-bottom: 2px; }
.ysw .ys-audit .closing-slogan { font-weight: 700; color: #1A2755; margin-top: 10px; font-size: 13px; }
.ysw .ys-audit .legal-disclaimer-mini { margin-top: 24px; padding-top: 12px; border-top: 1px solid #eee; font-size: 10.5px; color: #999; text-align: center; font-style: italic; line-height: 1.35; }
.ysw.lt600 .ys-audit { font-size: 12.5px; padding-right: 0; }
.ysw.lt600 .ys-audit .vessel-main-title { font-size: 26px; }
.ysw.lt600 .ys-audit table { font-size: 11px; display: block; overflow-x: auto; }
.ysw.lt600 .ys-audit td:first-child { width: auto; }
