.op-factuur-wrapper { display:inline-flex; align-items:center; gap:.5rem; margin: 10px 0; }
.op-factuur-wrapper .op-factuur-btn { display:inline-flex; align-items:center; justify-content:center; cursor:pointer; background-color:#8BC34A; color:#fff; border:none; padding:12px 20px; border-radius:4px; font-size:15px; font-weight:600; line-height:1.4; text-decoration:none; transition:background-color .2s ease; }
.op-factuur-wrapper .op-factuur-btn:hover { background-color:#7CB342; }
.op-factuur-btn i { margin-right:8px; font-size:16px; }
.op-factuur-btn.is-loading { opacity:.85; pointer-events:none; }
.op-factuur-hint { font-size:12px; opacity:.7; }

.op-factuur-log-delete {
    color: #b32d2e;
    font-size: 12px;
    text-decoration: none;
}
.op-factuur-log-delete:hover {
    text-decoration: underline;
}
table.widefat td:last-child a {
    color: #b32d2e;
    text-decoration: none;
}
table.widefat td:last-child a:hover {
    text-decoration: underline;
}

#bedragChart {
    background: #fff;
    border: 1px solid #ccd0d4;
    padding: 12px;
    border-radius: 4px;
}
.wrap h1 {
    margin-bottom: 24px;
}

.opf-section {
    margin-top: 40px;
    max-width: 800px;
}

.opf-table {
    background: #fff;
    padding: 16px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
}

#bedragChart {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    padding: 12px;
}

#opf-data-container.is-loading {
    position: relative;
    opacity: 0.5;
    pointer-events: none;
}

#opf-data-container.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    margin-left: -16px;
    border: 4px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

form select {
    padding: 4px 6px;
}

/* Hover-stijl voor alle rijen */
.opf-clickable-row:hover td {
  background-color: #f0f8ff;
  cursor: pointer;
}

/* Stijl voor rijen die open zijn — blijft zichtbaar */
.opf-clickable-row.is-open td {
  background-color: #f0f8ff; /* zelfde als hoverkleur */
}

/* Lijntje links alleen bij hover of open */
.opf-clickable-row:hover td:first-child,
.opf-clickable-row.is-open td:first-child {
  box-shadow: inset 4px 0 0 #ccc;
}

/* Geopende rij behoudt achtergrondkleur */
.opf-clickable-row.is-open td {
  background-color: #f0f8ff !important;
}

table.widefat thead tr {
    border-bottom: 2px solid #0073aa;
}






/* === Kaarten === */
.opf-klant-kaarten {
    display: flex;
    gap: 20px;
    margin: 30px 0 40px;
    width: 100%;
    max-width: none; /* of verwijder */
    padding: 0 12px; /* Zorgt voor ademruimte */
    flex-wrap: wrap;
    box-sizing: border-box;
}


.opf-kaart {
    flex: 1;
    padding: 20px;
    border-radius: 6px;
    border-left: 5px solid;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.opf-kaart h2 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.opf-kaart p {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
}

/* Kleuren per status */
.opf-kaart.groen {
    background: #dff0d8;
    border-left-color: #3c763d;
}

.opf-kaart.paars {
    background: #ede7f6;
    border-left-color: #7e57c2;
}

.opf-kaart.blauw {
    background: #d9edf7;
    border-left-color: #31708f;
}

/* === Secties === */
.opf-klant-section {
    margin-top: 20px;
    width: 100%;
}

.opf-klant-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    padding-left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.opf-klant-section h3 .icon {
    font-size: 18px;
}

/* === Tabellen === */
.opf-klant-section table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.opf-klant-section table.widefat td,
.opf-klant-section table.widefat th {
    text-align: left;
    padding: 10px;
    vertical-align: top;
    word-break: break-word;
}

.opf-klant-section table thead th {
    background: #f4f6f9;
    font-weight: 600;
    color: #333;
}

.opf-klant-section table.widefat.striped {
    background-color: #fff;
}

.opf-klant-section table tbody tr:nth-child(odd) {
    background: #fafafa;
}

/* === Knoppen === */
.opf-download-link {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}
.opf-download-link:hover {
    background: #45A049;
}

/* === Crediteringen === */
.opf-creditering {
    background: #fff8f8;
}

.opf-correctie-label {
    font-size: 12px;
    color: #cc0000;
    margin-left: 6px;
}

/* === Mobile Styles === */
@media (max-width: 900px) {
    .opf-klant-kaarten {
        flex-direction: column;
        max-width: 100%;
        gap: 12px;
    }

    .opf-kaart {
        width: 100%;
    }

    .opf-klant-section table {
        font-size: 14px;
    }

    .opf-klant-section h3 {
        font-size: 18px;
    }

    .opf-klant-section table.widefat td,
    .opf-klant-section table.widefat th {
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .opf-hide-text-mobile {
        display: none;
    }
}

@media (max-width: 600px) {
    .opf-hide-mobile {
        display: none;
    }
}






