/* Ter Zake Actielijst – stylesheet */

#tz-al-wrap {
    font-family: Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

/* Admin balk */
.tz-al-admin-bar {
    background: #f0f4ff;
    border: 1px solid #c5d2f0;
    border-radius: 6px;
    padding: 10px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tz-al-admin-bar select {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #bbb;
    font-size: 14px;
}

/* Toolbar */
.tz-al-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}
.tz-al-toolbar h2 {
    margin: 0;
    font-size: 20px;
    color: #1a1a2e;
}
.tz-al-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.tz-al-filters select {
    padding: 7px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
}

/* Knoppen */
.tz-al-btn-add {
    background: #1e3a8a;
    color: #fff !important;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.tz-al-btn-add:hover { background: #163272; }
.tz-al-btn-save {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
}
.tz-al-btn-save:hover { background: #15803d; }
.tz-al-btn-cancel {
    background: #e5e7eb;
    color: #333;
    border: none;
    border-radius: 5px;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
}
.tz-al-btn-cancel:hover { background: #d1d5db; }

/* Tabel */
.tz-al-table-wrap {
    overflow-x: auto;
}
#tz-al-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
#tz-al-table th {
    background: #1e3a8a;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    white-space: nowrap;
}
#tz-al-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}
#tz-al-table tbody tr:nth-child(even) { background: #f9fafb; }
#tz-al-table tbody tr:hover { background: #eff6ff; }

/* Rij-markeringen */
#tz-al-table tr.tz-te-laat td { background: #fee2e2 !important; }
#tz-al-table tr.tz-vandaag td  { background: #fef9c3 !important; }

/* Status badges */
.tz-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.tz-badge-niet-gestart  { background: #e5e7eb; color: #374151; }
.tz-badge-wordt-uitgevoerd { background: #dbeafe; color: #1e40af; }
.tz-badge-voltooid      { background: #d1fae5; color: #065f46; }
.tz-badge-wachten       { background: #fef3c7; color: #92400e; }

/* Prioriteit */
.tz-prio-hoog   { color: #b91c1c; font-weight: 700; }
.tz-prio-normaal { color: #374151; }
.tz-prio-laag   { color: #6b7280; }

/* Datum */
.tz-datum-te-laat { color: #dc2626; font-weight: 700; }
.tz-datum-vandaag { color: #d97706; font-weight: 700; }

/* Actieknoppen in tabel */
.tz-btn-edit, .tz-btn-delete {
    border: none;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    margin-right: 4px;
}
.tz-btn-edit   { background: #dbeafe; color: #1e40af; }
.tz-btn-edit:hover   { background: #bfdbfe; }
.tz-btn-delete { background: #fee2e2; color: #b91c1c; }
.tz-btn-delete:hover { background: #fecaca; }

/* Leeg / laden */
.tz-al-loading, .tz-al-empty {
    text-align: center;
    padding: 30px;
    color: #9ca3af;
    font-style: italic;
}

/* Modal */
.tz-al-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
}
.tz-al-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 100%;
    max-width: 480px;
    padding: 0 12px;
}
.tz-al-modal-inner {
    background: #fff;
    border-radius: 8px;
    padding: 28px 28px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.tz-al-modal-inner h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #1e3a8a;
}
.tz-form-row {
    margin-bottom: 14px;
}
.tz-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}
.tz-form-row input,
.tz-form-row select,
.tz-form-row textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.tz-form-row textarea { resize: vertical; }
.tz-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Login notice */
.tz-al-login-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 14px 18px;
    color: #92400e;
}

@media (max-width: 600px) {
    .tz-al-toolbar { flex-direction: column; align-items: flex-start; }
    #tz-al-table th:nth-child(3),
    #tz-al-table td:nth-child(3) { display: none; }
}
