/* ── IBS Documenten Bibliotheek – Frontend stijl ── */

.ibs-doclib-wrap {
    --ibs-kleur: #2d5a3d;
    --ibs-kleur-donker: #1e3f2a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    margin: 1.5rem 0;
    background: #f7f7f5;
}

/* Header */
.ibs-doclib-header {
    background: var(--ibs-kleur);
    padding: 2rem;
    text-align: center;
}
.ibs-doclib-header h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 6px;
    border: none;
    padding: 0;
}
.ibs-doclib-header p {
    color: rgba(255,255,255,.75);
    font-size: .95rem;
    margin: 0;
}

/* Toolbar */
.ibs-doclib-toolbar {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: #f0ede8;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}
.ibs-zoek {
    flex: 1;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: .9rem;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ibs-zoek:focus {
    border-color: var(--ibs-kleur);
    box-shadow: 0 0 0 3px rgba(45,90,61,.15);
}
.ibs-filter {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: .9rem;
    background: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
}

/* Lijst */
.ibs-doclib-lijst {
    padding: 12px 16px;
}
.ibs-doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8e4de;
    border-left: 4px solid var(--ibs-kleur);
    border-radius: 7px;
    margin-bottom: 8px;
    transition: box-shadow .15s;
}
.ibs-doc-item:last-child { margin-bottom: 0; }
.ibs-doc-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.ibs-doc-item[data-hidden="true"] { display: none; }

/* Icoon */
.ibs-doc-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ibs-icon-pdf  { background: #FCEBEB; }
.ibs-icon-word { background: #E6F1FB; }
.ibs-icon-excel { background: #EAF3DE; }
.ibs-icon-overig { background: #f0ede8; }

/* Info */
.ibs-doc-info {
    flex: 1;
    min-width: 0;
}
.ibs-doc-naam {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ibs-doc-meta {
    display: block;
    font-size: .8rem;
    color: #888;
    margin-top: 2px;
}

/* Badge */
.ibs-badge {
    font-size: .72rem;
    padding: 3px 9px;
    border-radius: 99px;
    font-weight: 600;
    flex-shrink: 0;
    letter-spacing: .02em;
}
.ibs-badge-pdf   { background: #FCEBEB; color: #A32D2D; }
.ibs-badge-word  { background: #E6F1FB; color: #185FA5; }
.ibs-badge-excel { background: #EAF3DE; color: #3B6D11; }
.ibs-badge-overig { background: #f0ede8; color: #5F5E5A; }

/* Download knop */
.ibs-btn-download {
    display: inline-block;
    background: var(--ibs-kleur);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: background .15s, transform .1s;
    cursor: pointer;
    border: none;
}
.ibs-btn-download:hover {
    background: var(--ibs-kleur-donker) !important;
    color: #fff !important;
}
.ibs-btn-download:active { transform: scale(.97); }
.ibs-btn-disabled {
    background: #ccc !important;
    color: #888 !important;
    cursor: default;
    pointer-events: none;
}

/* Footer */
.ibs-doclib-footer {
    background: #f0ede8;
    border-top: 1px solid #ddd;
    padding: 10px 16px;
    font-size: .8rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

/* Leeg */
.ibs-leeg {
    text-align: center;
    padding: 2rem;
    color: #aaa;
    font-size: .9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .ibs-doc-item { flex-wrap: wrap; }
    .ibs-badge { display: none; }
    .ibs-btn-download { width: 100%; text-align: center; }
}
