body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; padding: 0; background-color: #f4f7f6; color: #333; }
header { background-color: #0056b3; color: white; padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; }
header h1 { margin: 0; font-size: 1.5em; }
.user-menu { position: relative; display: flex; align-items: center; }
.user-menu span { margin-right: 15px; }
.settings-icon { cursor: pointer; font-size: 1.4em; position: relative; }
.settings-dropdown { display: none; position: absolute; right: 0; top: 100%; background-color: white; min-width: 180px; box-shadow: 0 8px 16px rgba(0,0,0,0.2); z-index: 1; border-radius: 4px; overflow: hidden; margin-top: 5px; }
.settings-dropdown a { color: black; padding: 12px 16px; text-decoration: none; display: block; font-size: 0.9em; }
.settings-dropdown a:hover { background-color: #f1f1f1; }
.settings-dropdown.show { display: block; }

.main-content { max-width: 1000px; margin: 30px auto; padding: 20px; }
.container { background: white; padding: 25px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); margin-bottom: 30px; }
h2, h3 { color: #0056b3; border-bottom: 2px solid #ddd; padding-bottom: 10px; margin-top: 0; }
label { display: block; margin-top: 15px; font-weight: bold; }
select, input[type="text"], input[type="number"], input[type="password"], textarea { width: 100%; padding: 10px; margin-top: 5px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
textarea { height: 120px; font-family: monospace; font-size: 0.9em; resize: vertical; }
.button, button, input[type="submit"] { width: 100%; padding: 15px; margin-top: 20px; font-size: 1.1em; background-color: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; text-align: center; text-decoration: none; display: inline-block; }
input[type="submit"]:disabled { background-color: #a0a0a0; cursor: not-allowed; }
.button-secondary { background-color: #6c757d; }
.button-danger { background-color: #dc3545; }
.button-group { display: flex; gap: 15px; }
#printer-status { margin-top: 10px; font-weight: bold; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #ddd; }
th { background-color: #f2f2f2; }
.feedback { padding: 15px; margin-bottom: 20px; border-radius: 5px; color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }
.feedback.success { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }

/* ---- CHECKBOX TABEL STIJLEN ---- */
.checkbox-table {
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.checkbox-table td {
    border: none;
    padding: 8px;
    vertical-align: middle;
}
/* NIEUWE REGEL: Maak de eerste kolom (met de checkbox) smal */
.checkbox-table td:first-child {
    width: 40px; 
}
.checkbox-table input[type="checkbox"] {
    width: auto;
    margin: 0;
}
.checkbox-table label {
    display: inline;
    font-weight: normal;
    margin: 0;
}

/* Voeg deze nieuwe stijlen toe aan je style.css */
.table-container {
    max-height: 400px; /* Bepaalt de maximale hoogte, pas aan naar wens */
    overflow-y: auto;  /* Voegt een verticale scrollbalk toe als de inhoud hoger is */
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px; /* Ruimte tussen de tabel en de bewerkingsformulier */
}
/* ---- EINDE CHECKBOX STIJLEN ---- */

.virtual-label-container { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; background: white; padding: 25px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); margin-bottom: 30px; }
.label-forms { flex: 1; min-width: 300px; }
.label-preview { flex: 1; min-width: 300px; text-align: center; }
.label-preview h3 { text-align: left; }
#zpl-preview-image { width: 100%; max-width: 400px; border: 1px solid #ddd; background-color: #f9f9f9; min-height: 200px; aspect-ratio: 100 / 150; }

.quantity-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 5px;}
.quantity-controls button { width: 40px; padding: 5px; font-size: 1.2em; line-height: 1; height: 40px; margin: 0; background-color: #e9e9e9; color: #333; }
.quantity-controls input[type="number"] { width: 70px; text-align: center; font-size: 1.5em; padding: 5px; height: 40px; margin: 0; }
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.5); }
.modal-content { background-color: #fefefe; margin: 15% auto; padding: 30px; border: 1px solid #888; width: 80%; max-width: 500px; border-radius: 8px; position: relative; }
.close-button { color: #aaa; position: absolute; top: 10px; right: 20px; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-button:hover, .close-button:focus { color: black; text-decoration: none; }

.admin-nav { background-color: #e9ecef; padding: 10px 0; margin-bottom: 20px; text-align: center; }
.admin-nav a { margin: 0 15px; text-decoration: none; color: #0056b3; font-weight: bold; padding: 8px 12px; border-radius: 4px; }
.admin-nav a.active, .admin-nav a:hover { background-color: #0056b3; color: white; }