/* InnoWeb Beyen Berichten - front-end styling */

.ibbm-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    margin: 20px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ibbm-column {
    flex: 1 1 320px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.ibbm-column h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.ibbm-form,
.ibbm-filter-form {
    margin: 0 0 16px 0;
}

.ibbm-field {
    margin-bottom: 14px;
}

.ibbm-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.ibbm-field input[type="text"],
.ibbm-field input[type="color"],
.ibbm-field select,
.ibbm-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    font-size: 0.95rem;
}

.ibbm-field textarea {
    resize: vertical;
}

.ibbm-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ibbm-row .ibbm-field {
    flex: 1 1 140px;
}

.ibbm-actions {
    margin-top: 10px;
    text-align: right;
}

.ibbm-button-primary,
.ibbm-button-secondary {
    display: inline-block;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.ibbm-button-primary {
    background: #0055ff;
    color: #ffffff;
}

.ibbm-button-primary:hover {
    background: #0042c7;
}

.ibbm-button-secondary {
    background: #f0f2f5;
    color: #1f2933;
}

.ibbm-button-secondary:hover {
    background: #e0e4ea;
}

.ibbm-notice {
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.ibbm-notice-success {
    background: #e7f7ef;
    color: #0b7a3b;
    border: 1px solid #b9e6c6;
}

.ibbm-notice-error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.ibbm-error {
    color: #b3261e;
}

.ibbm-berichten-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ibbm-bericht {
    border-radius: 12px;
    border: 1px solid #e1e4e8;
    padding: 10px 12px;
    background: #fafbfc;
}

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

.ibbm-bericht-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ibbm-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.ibbm-bericht-meta {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.ibbm-bericht-body details {
    font-size: 0.9rem;
}

.ibbm-bericht-body summary {
    cursor: pointer;
    color: #0055ff;
}

.ibbm-bericht-body p {
    margin-top: 6px;
}

.ibbm-meta-recipients {
    font-size: 0.8rem;
    color: #4b5563;
    margin-top: 6px;
}

.ibbm-empty {
    font-size: 0.9rem;
    color: #6b7280;
}

.ibbm-field-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ibbm-field-inline label {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ibbm-wrapper {
        flex-direction: column;
    }
}
