/* ══════════════════════════════════════════════════════════════
   PATTERN — Comparison table
   Side-by-side strategy comparison: slot picker (cards with letter
   labels), tabbed sections, big delta-table, and a document picker
   sub-table for adding new slots.

   Markup:
     <div class="jamfor-slots-header">…</div>
     <div class="jamfor-slots-grid">
       <div class="jamfor-slot-card">
         <div class="jamfor-slot-letter">A</div>
         <div class="jamfor-slot-title">Strategi 2024</div>
         <div class="jamfor-slot-meta">Stockholm, 12 sidor</div>
         <a class="jamfor-slot-remove">×</a>
       </div>
       <a class="jamfor-slot-card jamfor-slot-add">+ Lägg till</a>
     </div>

     <div class="jamfor-tabs">
       <a class="jamfor-tab active">Översikt</a>
       <a class="jamfor-tab">STA7</a>
     </div>

     <div class="jamfor-table-wrap">
       <table class="jamfor-table">
         <tr>
           <td class="jamfor-cell-label">STRAT</td>
           <td class="jamfor-cell-slot">67</td>
           <td class="jamfor-cell-slot">72</td>
           <td class="jamfor-cell-delta jamfor-delta-pos">+5</td>
         </tr>
       </table>
     </div>

     <table class="jamfor-picker-table">…</table>
     <form class="jamfor-upload-form">…</form>

   Used by: STRATEGIANALYS (jamfor strategier feature)
   Candidates: any app that needs N-way comparison of scored items
   ══════════════════════════════════════════════════════════════ */

.jamfor-slots-header { margin: 1rem 0 1.5rem; }

.jamfor-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.jamfor-slot-card {
    border: 1px solid var(--border);
    padding: 0.75rem;
    position: relative;
    font-size: 0.9rem;
}

.jamfor-slot-letter {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.jamfor-slot-title {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jamfor-slot-meta {
    color: var(--muted);
    font-size: 0.8rem;
}

.jamfor-slot-remove {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.jamfor-slot-add {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-style: dashed;
    min-height: 5rem;
}

.jamfor-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    margin: 1rem 0;
    flex-wrap: wrap;
}

.jamfor-tab {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-bottom: none;
}
.jamfor-tab.active {
    border-color: var(--border);
    font-weight: 600;
}

.jamfor-table-wrap { overflow-x: auto; }

.jamfor-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.jamfor-table th,
.jamfor-table td {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    text-align: left;
}

.jamfor-cell-label { font-weight: 500; }
.jamfor-cell-slot {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.jamfor-cell-delta {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.jamfor-delta-pos { font-weight: 600; }
.jamfor-delta-neg { font-weight: 600; }
.jamfor-delta-zero,
.jamfor-delta-none { color: var(--muted); }

.jamfor-picker-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.jamfor-picker-table th,
.jamfor-picker-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
    text-align: left;
}

.jamfor-upload-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 32rem;
}
