/* CSS uit index.php toegevoegd */
body { margin:0; font-family:'Roboto', Arial, sans-serif; background:#111; color:#fff; padding-bottom: 80px; }

header {
    background: #1e2024; color: #E0E0E0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 200; box-sizing: border-box;
}

.header-brand {
    display: flex; align-items: center; gap: 15px;
}

.header-brand img {
    width: 85.16px; height: 80px; border-radius: 6px;
}

.header-brand h1 {
    font-size: 34px; font-family: 'Roboto', sans-serif; margin: 0;
}

.container { padding: 30px; padding-top: 120px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #1c1c1c; border-radius: 8px; table-layout: fixed; }
thead th { position: sticky; top: 120px; z-index: 150; background: rgba(22,163,74,0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; padding: 16px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid #333; font-size: 15px; }
thead th:first-child { border-top-left-radius: 8px; }
thead th:last-child { border-top-right-radius: 8px; }
td { padding: 16px 14px; border-bottom: 1px solid #333; text-align: left; vertical-align: middle; }
.resizer { width: 5px; height: 100%; position: absolute; right: 0; top: 0; cursor: col-resize; user-select: none; z-index: 160; }
.resizer:hover { background-color: rgba(255, 255, 255, 0.3); }
tbody tr { transition: background-color 0.2s ease; height: 30px; cursor: pointer; }
tbody tr:hover { background-color: #2a2a2a; }
tbody tr.no-border-bottom td { border-bottom: none !important; }
.btn { background:#16a34a; padding:8px 14px; border-radius:6px; text-decoration:none; color:#fff; font-size:14px; border:none; cursor:pointer; font-weight:bold; margin-left:5px; }
.btn-upload { background:#3b82f6; width: 150px; text-align: center; box-sizing: border-box; display: inline-block; }
.btn-debug { background:#dc2626; color:#fff; border:none; border-radius:4px; font-size:11px; cursor:pointer; margin-left:8px; padding:3px 6px; vertical-align:middle; }
.btn-debug:hover { background:#b91c1c; }
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(6px); display:none; justify-content:center; align-items:center; z-index:9999; padding:20px; box-sizing:border-box; }
.modal-box { background:#1e1e1e; padding:40px; border-radius:14px; width:480px; box-shadow:0 0 40px rgba(0,0,0,0.7); border:1px solid #333; max-height:90vh; overflow-y:auto; }
.modal-box-large { width:900px; max-width:100%; }
.modal-box label { display:block; margin-top:15px; font-size:13px; color:#aaa; font-weight: bold; }
.modal-box input[type="text"], .modal-box input[type="number"], .modal-box input[type="password"], .modal-box select, .modal-box textarea { width:100%; padding:10px; margin-top:8px; border:none; border-radius:6px; box-sizing:border-box; background:#111; color:#fff; border:1px solid #444; font-size: 14px; }
.modal-box input[type="range"] { width:100%; margin-top:10px; }
.modal-actions { margin-top:20px; display:flex; gap:10px; }
.form-row { display: flex; align-items: center; margin-bottom: 12px; }
.form-row label { width: 150px; margin: 0; font-size: 13px; color: #aaa; flex-shrink: 0; text-align: left; }
.form-row input[type="text"], .form-row input[type="password"], .form-row select { flex: 1; margin: 0; padding: 10px; border-radius: 6px; border: 1px solid #444; background: #111; color: #fff; box-sizing: border-box; }
input[type="file"] { color: transparent; width: 100%; }
input[type="file"]::-webkit-file-upload-button { visibility: visible; color: #fff; background: #3b82f6; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: bold; margin-right: 15px; font-family: Arial, sans-serif; }
#field_total, #field_subtotal, #field_vat { font-weight: bold; font-size: 15px; color: #fff; }
.status-container { display: flex; flex-direction: column; gap: 6px; }
.status-block { background: #262626; border: 1px solid #333; border-radius: 6px; padding: 10px 14px; display: flex; flex-direction: row; justify-content: space-between; align-items: center; font-size: 12px; gap: 8px; }
.badge-pb-paid { color: #f97316; font-weight: bold; }
.badge-pb-none { color: #888; font-weight: bold; }
.invoice-nr { background: #16a34a; color: #fff; padding: 6px 10px; border-radius: 6px; font-family: monospace; font-size: 11px; text-decoration: none; cursor: pointer; border: none; width: 150px; text-align: center; box-sizing: border-box; display: inline-block; }
.invoice-nr:hover { background: #14833b; }
.vat-row { display: flex; gap: 10px; margin-top: 10px; }
.vat-block { flex: 1; background: #111; border: 1px solid #444; border-radius: 6px; padding: 10px; text-align: center; }
.vat-block span { display: block; font-size: 10px; color: #888; text-transform: uppercase; }
.vat-block div { font-size: 14px; font-weight: bold; color: #fff; margin-top: 4px; }
.tabs-nav { display: flex; border-bottom: 1px solid #333; margin-bottom: 20px; }
.tab-link { padding: 10px 20px; cursor: pointer; color: #888; border-bottom: 2px solid transparent; }
.tab-link.active { color: #16a34a; border-bottom: 2px solid #16a34a; font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.filter-row { display: flex; gap: 10px; margin-bottom: 20px; align-items: center; background: #262626; padding: 15px; border-radius: 8px; }
tbody tr .row-title, tbody tr .row-date { color: #888; transition: color 0.2s ease; }
tbody tr:hover .row-title, tbody tr:hover .row-date { color: #fff; }
tbody tr .row-diensten { color: #555; transition: color 0.2s ease; }
tbody tr:hover .row-diensten { color: #888; }
.facturen-status-col { padding: 4px 8px !important; max-width: 250px; }
.tooltip-container { cursor: pointer; }
.tooltip-footer { position: relative; }
.tooltip-header:hover::after, .tooltip-footer:hover::after {
    content: attr(data-tooltip); position: absolute; left: 50%; transform: translateX(-50%);
    background: #333; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px;
    white-space: nowrap; opacity: 0; pointer-events: none;
    animation: showTooltip 0.2s ease forwards; animation-delay: 2s; z-index: 9999;
}
.tooltip-header:hover::after { top: 100%; margin-top: 8px; }
.tooltip-footer:hover::after { bottom: 100%; margin-bottom: 8px; }
@keyframes showTooltip { to { opacity: 1; } }
.toggle-btn {
    background: #555; color: #fff; border: none; padding: 8px 14px;
    border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: bold;
    transition: all 0.2s ease; margin-right: 5px; font-family: Arial;
}
.toggle-btn:hover { background: #777; box-shadow: 0 0 8px rgba(59, 130, 246, 0.6); }
.toggle-btn.active { background: #3b82f6; }
.bulk-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 1000; align-items: center; justify-content: center; }
.bulk-modal-content { background: #1e1e1e; padding: 30px; border-radius: 8px; width: 350px; text-align: center; border: 1px solid #333; position: relative; }
.close-bulk { position: absolute; top: 10px; right: 15px; cursor: pointer; color: #fff; font-size: 20px; }

.search-wrapper {
    position: relative; display: flex; align-items: center; margin-right: 10px;
}
.search-wrapper .search-icon {
    position: absolute; left: 12px; color: #888; pointer-events: none; font-size: 14px;
}
.search-wrapper input {
    padding: 8px 14px 8px 36px; background: #1c1c1c; color: #fff;
    border: 1px solid #333; border-radius: 6px; font-size: 14px; width: 220px;
    outline: none; transition: border-color 0.2s ease;
}
.search-wrapper input::placeholder { color: #666; }
.search-wrapper input:focus { border-color: #16a34a; }
.search-wrapper .search-clear {
    position: absolute; right: 10px; color: #888; cursor: pointer; font-size: 16px;
    display: none; line-height: 1;
}
.search-wrapper .search-clear:hover { color: #fff; }
