/* ================================================================
   app.css — TENSIG HS Import Controle
   Alle custom stijlen. Tailwind wordt alleen gebruikt voor
   statische HTML elementen, niet voor dynamisch gegenereerde.
   ================================================================ */

body {
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}

/* ----------------------------------------------------------------
   KAARTJES (zoekresultaten + drilldown)
   ---------------------------------------------------------------- */
.group-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    transition: all .15s;
    text-decoration: none;
}
.group-card:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.group-code {
    font-family: monospace;
    font-weight: 700;
    color: #334155;
    font-size: 15px;
    min-width: 90px;
}
.group-label {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    flex: 1;
    margin-left: 12px;
}
.group-count {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 8px;
}
.group-arrow {
    color: #cbd5e1;
    margin-left: 8px;
    font-size: 14px;
}

/* ----------------------------------------------------------------
   KNOPPEN
   ---------------------------------------------------------------- */
.btn {
    background: #f1f5f9;
    color: #475569;
    font-size: 9px;
    font-weight: 700;
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.05em;
}
.btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ----------------------------------------------------------------
   FORMULIER INPUTS
   ---------------------------------------------------------------- */
.zakelijk-input {
    border-bottom: 2px solid #cbd5e1;
    border-radius: 0;
    padding-bottom: 2px;
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
    width: 100%;
    outline: none;
}

/* ----------------------------------------------------------------
   SECTIE LABELS
   ---------------------------------------------------------------- */
.section-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #64748b;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ----------------------------------------------------------------
   TARIC TARIEF KAARTJES
   ---------------------------------------------------------------- */
.tarief-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all .15s;
    background: white;
    margin-bottom: 8px;
}
.tarief-card:hover          { border-color: #94a3b8; }
.tarief-card.selected       { border-color: #1e40af; background: #eff6ff; }
.tarief-card.selected-green { border-color: #166534; background: #f0fdf4; }
.tarief-card.selected-orange{ border-color: #9a3412; background: #fff7ed; }

.tarief-badge {
    font-family: monospace;
    font-size: 18px;
    font-weight: 800;
}
.tarief-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tarief-card-tarieven {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.tarief-card-legal {
    font-size: 9px;
    font-family: monospace;
    color: #94a3b8;
}
.tarief-card-sub {
    font-size: 9px;
    color: #94a3b8;
    margin-top: 4px;
}
.tarief-badge-groen  { color: #166534; }
.tarief-badge-rood   { color: #991b1b; }
.tarief-badge-grijs  { color: #1e293b; }
.tarief-label-klein  { font-size: 9px; color: #94a3b8; margin-left: 2px; }
.tarief-separator    { margin: 0 8px; color: #cbd5e1; }

/* ----------------------------------------------------------------
   CALCULATOR CHECKBOXES
   ---------------------------------------------------------------- */
.cb-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}
.cb-row:last-child { border-bottom: none; }
input[type=checkbox] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1e40af;
    flex-shrink: 0;
}
.cb-tekst        { flex: 1; min-width: 0; }
.cb-titel        { font-size: 10px; font-weight: 700; color: #334155; }
.cb-sublabel     { font-size: 9px; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-bedrag       { font-size: 11px; font-family: monospace; font-weight: 700; color: #475569; white-space: nowrap; }

/* ----------------------------------------------------------------
   WORDCLOUD
   ---------------------------------------------------------------- */
.wc-tag {
    display: inline-block;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 700;
    text-transform: lowercase;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    transition: all .12s;
}
.wc-tag:hover  { background: #1e40af; color: white; border-color: #1e40af; }
.wc-tag.active { background: #1e40af; color: white; border-color: #1e40af; }
.wc-intro {
    margin-bottom: 12px;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}
.wc-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 2;
}

/* ----------------------------------------------------------------
   BREADCRUMB
   ---------------------------------------------------------------- */
.bc-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.bc-item:hover  { background: #c7d2fe; }
.bc-item.actief { background: #e0e7ff; cursor: default; }
.bc-sep {
    color: #94a3b8;
    font-size: 12px;
    margin: 0 2px;
}

/* ----------------------------------------------------------------
   FILTER BAR
   ---------------------------------------------------------------- */
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0e7ff;
    color: #3730a3;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}
.filter-tag-x {
    cursor: pointer;
    font-weight: 700;
    margin-left: 2px;
}
.filter-tag-x:hover { color: #dc2626; }

/* ----------------------------------------------------------------
   GEEN RESULTATEN
   ---------------------------------------------------------------- */
.geen-resultaten {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 16px;
}

/* ----------------------------------------------------------------
   TOTAAL REGEL CALCULATOR
   ---------------------------------------------------------------- */
.calc-totaal-rij {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 4px;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
}
.calc-totaal-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}
.calc-totaal-bedrag {
    font-size: 26px;
    font-weight: 900;
    font-family: monospace;
    color: #0f172a;
}

/* ----------------------------------------------------------------
   DETAIL BOX / JURIDISCHE BASIS
   ---------------------------------------------------------------- */
.detail-item {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.detail-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.detail-badge {
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    background: #1e293b;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
}
.detail-legal  { font-size: 10px; font-family: monospace; font-weight: 700; color: #475569; }
.detail-titel  { font-size: 11px; font-weight: 700; color: #1e293b; margin: 4px 0; }
.detail-raw    { font-size: 9px; font-family: monospace; color: #64748b; background: #f8fafc; padding: 8px; border-radius: 4px; border: 1px solid #f1f5f9; word-break: break-all; }
