/* OJ Claims – UI */
.ojc-alert{padding:16px;border-radius:8px;margin:16px 0;font-weight:600}
.ojc-alert-success{background:#ecfdf5;border:1px solid #10b981;color:#065f46}
.ojc-faded{opacity:.5;pointer-events:none}
.ojc-alert{padding:14px;border:1px solid #cbd5e1;background:#f8fafc;margin:16px 0;border-left:4px solid #22c55e}
.ojc-alert--error{border-left-color:#ef4444}

/* ===== OJ Claims – My Account-vy ===== */

.ojc-myclaims {
    margin: 24px 0;
}

.ojc-myclaims__title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #0f172a;
}

.ojc-myclaims__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
}

.ojc-myclaims__list {
    flex: 0 0 260px;
    max-width: 320px;
}

.ojc-myclaims__detail {
    flex: 1 1 360px;
    min-width: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.03);
}

.ojc-myclaims__empty,
.ojc-myclaims__hint,
.ojc-myclaims__no-items {
    font-size: 14px;
    color: #64748b;
}

/* Lista med ärenden */

.ojc-myclaims__list-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ojc-myclaims__list-item + .ojc-myclaims__list-item {
    margin-top: 8px;
}

.ojc-myclaims__list-link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.ojc-myclaims__list-link:hover {
    border-color: #0f766e;
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.04);
}

.ojc-myclaims__list-item.is-active .ojc-myclaims__list-link {
    border-color: #0f766e;
    background: #ecfeff;
    box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.1);
}

.ojc-myclaims__list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ojc-myclaims__list-id {
    font-weight: 600;
    font-size: 13px;
    color: #0f172a;
}

.ojc-myclaims__list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.ojc-myclaims__list-date::before {
    content: "• ";
    color: #cbd5f5;
}

.ojc-myclaims__list-count {
    margin-left: auto;
}

/* Header för valt ärende */

.ojc-myclaims__header {
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
}

.ojc-myclaims__header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.ojc-myclaims__claim-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.ojc-myclaims__header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
}

.ojc-myclaims__meta-item {
    display: inline-flex;
    align-items: center;
}

/* Legend */

.ojc-myclaims__legend {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 11px;
}

.ojc-myclaims__legend-label {
    font-weight: 600;
    color: #64748b;
}

/* Statuspills */

.ojc-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.ojc-status--new {
    background: #eff6ff;
    color: #1d4ed8;
}

.ojc-status--review {
    background: #fef3c7;
    color: #92400e;
}

.ojc-status--approved {
    background: #ecfdf3;
    color: #166534;
}

.ojc-status--rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.ojc-status--complement {
    background: #f5f3ff;
    color: #5b21b6;
}

.ojc-status--complement-in {
    background: #e0e7ff;
    color: #4338ca;
}

.ojc-status--decision {
    background: #e0f2fe;
    color: #0c4a6e;
}

/* Tabell / stacked layout för rader */

.ojc-table {
    width: 100%;
    border-collapse: collapse;
}

/* Desktop */

@media (min-width: 641px) {
    .ojc-table__head,
    .ojc-table__row {
        display: table-row;
    }

    .ojc-table__cell {
        display: table-cell;
        padding: 8px 12px;
        border-bottom: 1px solid #e5e7eb;
        vertical-align: top;
        font-size: 14px;
    }

    .ojc-table__head .ojc-table__cell {
        font-weight: 600;
        font-size: 12px;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: .04em;
        background: #f9fafb;
    }

    .ojc-table__cell--product {
        width: 40%;
    }

    .ojc-table__cell--qty {
        width: 8%;
        text-align: center;
        white-space: nowrap;
    }

    .ojc-table__cell--status {
        width: 16%;
    }

    .ojc-table__cell--desc {
        width: 20%;
    }

    .ojc-table__cell--offer {
        width: 16%;
    }

    .ojc-table__cell[data-label]::before {
        content: "";
        display: none;
    }
}

/* Mobil / små skärmar: stackade kort */

@media (max-width: 640px) {
    .ojc-myclaims__layout {
        flex-direction: column;
    }

    .ojc-myclaims__list {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .ojc-myclaims__detail {
        padding: 16px;
    }

    .ojc-table__head {
        display: none;
    }

    .ojc-table__row {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .ojc-table__cell {
        display: block;
        padding: 2px 0;
        font-size: 13px;
    }

    .ojc-table__cell[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: #6b7280;
        margin-right: 4px;
    }

    .ojc-table__cell--product {
        margin-bottom: 4px;
    }
}

/* Övriga smådetaljer */

.ojc-table__product-name {
    font-weight: 500;
    color: #0f172a;
}

.ojc-table__desc,
.ojc-table__offer {
    font-size: 13px;
    color: #111827;
}

.ojc-table__muted {
    font-size: 12px;
    color: #9ca3af;
}

/* ===== OJ Claims – scroll i ärendelistan (desktop) ===== */

@media (min-width: 880px) {
    .ojc-myclaims__list-inner {
        max-height: 320px;      /* justera höjd om du vill ha längre/kortare kolumn */
        overflow-y: auto;
        padding-right: 4px;     /* lite luft för scrollbaren */
        margin-right: -4px;     /* så korten inte "hoppar" när scroll dyker upp */
    }

    /* Tunn, diskret scrollbar (WebKit-browsers) */
    .ojc-myclaims__list-inner::-webkit-scrollbar {
        width: 6px;
    }

    .ojc-myclaims__list-inner::-webkit-scrollbar-track {
        background: transparent;
    }

    .ojc-myclaims__list-inner::-webkit-scrollbar-thumb {
        background-color: rgba(148, 163, 184, 0.7); /* grå/blå */
        border-radius: 999px;
    }
}

/* ========== OJ CLAIMS – Tydligare sektioner i detaljvyn ========== */

.ojc-myclaims__detail-header h3 {
    font-size: 20px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    color: #111827 !important;
}

.ojc-myclaims__detail-header {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 20px !important;
}

.ojc-myclaims__items-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    margin: 20px 0 10px !important;
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

/* ========== Status-badges i tabellen ========== */

.ojc-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: #f3f4f6;
    color: #374151;
}

.ojc-status-badge--approved {
    background: #dcfce7;
    color: #166534;
}

.ojc-status-badge--rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.ojc-status-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.ojc-offer-text {
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}
/* ===== OJ Claims – Global FAQ under Mina reklamationer ===== */

.ojc-claims-faq {
    margin-top: 32px;
    padding: 20px 20px 18px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: radial-gradient(circle at top left, #f9fafb 0, #ffffff 55%, #f3f4f6 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
    max-width: 960px;
}

.ojc-claims-faq__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.ojc-claims-faq__intro {
    margin: 0 0 16px;
    font-size: 13px;
    color: #4b5563;
}

.ojc-claims-faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.ojc-claims-faq__item {
    position: relative;
    padding: 14px 12px 12px 40px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.ojc-claims-faq__step {
    position: absolute;
    left: 12px;
    top: 14px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #111827;
    color: #f9fafb;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ojc-claims-faq__item-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.ojc-claims-faq__item-body {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .ojc-claims-faq {
        margin-top: 24px;
        padding: 16px 14px;
        border-radius: 14px;
    }
}

/* ============================================
   OJ Claims – Mina reklamationer (kundvy)
   Premium tabell-layout
   ============================================ */

.ojc-myclaims {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 16px;
}

.ojc-myclaims__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  color: #000000;
}

.ojc-myclaims__empty,
.ojc-myclaims__empty-detail {
  margin: 8px 0 0;
  font-size: 14px;
  color: #4b5563;
}

/* Layout: vänster lista + höger detaljpanel */
.ojc-myclaims__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

/* Vänster – lista */
.ojc-myclaims__list-panel {
  flex: 0 0 260px;
  max-width: 280px;
}

.ojc-myclaims__list-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.ojc-myclaims__list-inner {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
}

/* Scrollbar lite snyggare */
.ojc-myclaims__list-inner::-webkit-scrollbar {
  width: 6px;
}
.ojc-myclaims__list-inner::-webkit-scrollbar-track {
  background: #f9fafb;
  border-radius: 999px;
}
.ojc-myclaims__list-inner::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

/* Ärende-item */
.ojc-myclaims__list-item {
  margin: 0 0 8px;
}

.ojc-myclaims__list-link {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
}

.ojc-myclaims__list-link:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.ojc-myclaims__list-item--active .ojc-myclaims__list-link {
  border-color: #000000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

/* Innehållet i ärendekortet */
.ojc-myclaims__list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ojc-myclaims__list-id {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.ojc-myclaims__list-bottom {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}

.ojc-myclaims__list-date::after {
  content: "•";
  margin: 0 4px;
  color: #d1d5db;
}

.ojc-myclaims__list-count {
  white-space: nowrap;
}

/* Status-pill (återanvänds i både lista och detalj) */
.ojc-myclaims__status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

.ojc-myclaims__status-pill--approved {
  background: #f0ede2;
  border-color: #ad9b61;
  color: #1f2933;
}

.ojc-myclaims__status-pill--rejected {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.ojc-myclaims__status-pill--inprogress {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.ojc-myclaims__status-pill--attention {
  background: #fffbeb;
  border-color: #facc15;
  color: #92400e;
}

/* Höger – detaljpanel */
.ojc-myclaims__detail-panel {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 1000px; /* A1: maxbredd för detaljpanel */
}

/* Header */
.ojc-myclaims__detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ojc-myclaims__detail-header-main {
  min-width: 0;
}

.ojc-myclaims__detail-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
}

.ojc-myclaims__detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: #6b7280;
}

.ojc-myclaims__detail-meta-item {
  white-space: nowrap;
}

.ojc-myclaims__detail-status {
  flex-shrink: 0;
}

/* Body + tabellkort */
.ojc-myclaims__detail-body {
  margin-top: 4px;
}

.ojc-myclaims__items-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.ojc-myclaims__table-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

/* Tabell */
.ojc-myclaims__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ojc-myclaims__table thead {
  background: #f9fafb;
}

.ojc-myclaims__table th,
.ojc-myclaims__table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #f3f4f6;
}

.ojc-myclaims__table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

/* Kolumnbredder */
.ojc-myclaims__col-product { width: 32%; }
.ojc-myclaims__col-qty     { width: 8%;  }
.ojc-myclaims__col-status  { width: 14%; }
.ojc-myclaims__col-desc    { width: 26%; }
.ojc-myclaims__col-offer   { width: 20%; }

.ojc-myclaims__cell-product {
  font-weight: 500;
  color: #111827;
}

.ojc-myclaims__cell-qty {
  font-variant-numeric: tabular-nums;
}

.ojc-myclaims__cell-status {
  white-space: nowrap;
}

.ojc-myclaims__cell-desc,
.ojc-myclaims__cell-offer {
  color: #374151;
}

/* Radstatus-pill i tabellen */
.ojc-myclaims__item-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

.ojc-myclaims__item-status--approved {
  background: #f0ede2;
  border-color: #ad9b61;
  color: #1f2933;
}

.ojc-myclaims__item-status--rejected {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.ojc-myclaims__item-status--pending {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

/* Erbjudande-text */
.ojc-myclaims__offer-text {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 10px;
  background: #f9fafb;
  font-size: 12px;
  color: #111827;
}

/* Muted text */
.ojc-myclaims__muted {
  color: #9ca3af;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .ojc-myclaims__layout {
    flex-direction: column;
  }

  .ojc-myclaims__list-panel {
    flex: none;
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }

  .ojc-myclaims__list-inner {
    max-height: 260px;
  }

  .ojc-myclaims__detail-panel {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .ojc-myclaims {
    padding: 0 12px;
  }

  .ojc-myclaims__detail-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ojc-myclaims__detail-status {
    margin-top: 6px;
  }

  .ojc-myclaims__table th,
  .ojc-myclaims__table td {
    padding: 8px 6px;
  }
}

/* --- MINA REKLAMATIONER: MINIMI-LAYOUT & KORT --- */

/* Container */
.ojc-myclaims {
  max-width: 1200px;
  margin: 32px auto 48px;
  padding: 0 16px;
}

/* Vänster + höger sida bredvid varandra */
.ojc-myclaims__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

/* Vänster panel – grund */
.ojc-myclaims__list-panel {
  flex: 0 0 260px;
  max-width: 280px;
}

/* UL utan punkter + scroll */
.ojc-myclaims__list-inner {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 420px;
  overflow-y: auto;
}

/* Ärendekort */
.ojc-myclaims__list-item {
  margin: 0 0 8px;
}

.ojc-myclaims__list-link {
  display: block;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease, background-color 0.15s ease;
}

.ojc-myclaims__list-link:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

/* Aktivt kort */
.ojc-myclaims__list-item--active .ojc-myclaims__list-link {
  border-color: #000000;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

/* Innehåll i kortet */
.ojc-myclaims__list-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.ojc-myclaims__list-id {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.ojc-myclaims__list-bottom {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #6b7280;
}

/* Höger panel */
.ojc-myclaims__detail-panel {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 1000px;
}

/* Header-kortet */
.ojc-myclaims__detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

/* Tabellkortet */
.ojc-myclaims__table-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.ojc-myclaims__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ojc-myclaims__table thead {
  background: #f9fafb;
}

.ojc-myclaims__table th,
.ojc-myclaims__table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}

/* Status-pill (återanvänd samma som i listan) */
.ojc-myclaims__status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

/* Radstatus i tabell */
.ojc-myclaims__item-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
}

/* Responsiv – stapla på mobil */
@media (max-width: 960px) {
  .ojc-myclaims__layout {
    flex-direction: column;
  }

  .ojc-myclaims__list-panel {
    max-width: 100%;
  }

  .ojc-myclaims__detail-panel {
    max-width: 100%;
  }
}

