/* ==========================================================================
   R2 POS - Algemene Layout
   ========================================================================== */
.r2pos-dashboard-wrapper { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; font-size: var(--r2pos-font-size); }
.r2pos-main-content { flex: 3; min-width: 300px; }
.r2pos-flex-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }

/* ==========================================================================
   R2 POS - Sidebar
   ========================================================================== */
.r2pos-sidebar { flex: 1; min-width: 250px; max-width: 300px; background: var(--r2pos-bg); border: 1px solid #ddd; border-radius: var(--r2pos-radius); padding: 20px; }
.r2pos-sidebar h3 { margin-top: 0; margin-bottom: 15px; border-bottom: 2px solid #ddd; padding-bottom: 10px; }
.r2pos-sidebar ul { list-style-type: none; padding-left: 0; margin-bottom: 0; margin-left: 0; }
.r2pos-sidebar li { margin-bottom: 15px; list-style: none; }
.r2pos-sidebar a { text-decoration: none !important; color: #333; font-size: 1.3rem; }
.r2pos-sidebar a.r2pos-active { font-weight: bold; color: var(--r2pos-primary); }
.r2pos-sidebar .r2pos-logout { margin-top: 25px; padding-top: 15px; border-top: 1px solid #ddd; }
.r2pos-sidebar .r2pos-logout a { color: #d63638; font-weight: bold; }

/* ==========================================================================
   R2 POS - Kaarten (Cards)
   ========================================================================== */
.r2pos-card { flex: 1; min-width: 250px; border: 1px solid #ddd; padding: 20px; border-radius: var(--r2pos-radius); background: var(--r2pos-bg); }
.r2pos-card-large { flex: 2; min-width: 300px; }
.r2pos-card h3 { margin-top: 0; }

.r2pos-points { 
    font-size: 38px; 
    margin: 20px auto; 
    background: var(--r2pos-primary); 
    color: #fff;
    text-align: center;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    vertical-align: middle;
    border: 1px solid var(--r2pos-primary);
    padding: 40px 0 0 0;
}
.r2pos-points-value { color: #555; margin-bottom: 0; text-align:center; }

/* ==========================================================================
   R2 POS - Meldingen (Alerts)
   ========================================================================== */
.r2pos-alert { padding: 10px; margin-bottom: 20px; border-radius: 4px; border: 1px solid transparent; }
.r2pos-alert-success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.r2pos-alert-error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }

/* ==========================================================================
   R2 POS - Knoppen (Buttons)
   ========================================================================== */
.r2pos-btn { padding: 8px 16px; border: none; cursor: pointer; border-radius: var(--r2pos-radius); display: inline-block; text-decoration: none !important; font-size: 1rem; transition: opacity 0.2s; }
.r2pos-btn-primary { background-color: var(--r2pos-primary); color: white !important; }
.r2pos-btn-primary:hover { opacity: 0.85; color: white !important; }
.r2pos-btn-secondary { background-color: #ddd; color: #333 !important; }
.r2pos-btn-outline { background: #fff; border: 1px solid #ccc; color: #333 !important; }
.r2pos-btn-danger-outline { background-color: transparent; color: #d63638 !important; border: 1px solid #d63638; }

/* ==========================================================================
   R2 POS - Formulieren (Forms)
   ========================================================================== */
.r2pos-form-group { display: flex; gap: 10px; margin-bottom: 10px; }
.r2pos-form-group-spaced { margin-bottom: 15px; }
.r2pos-form-col { flex: 1; }
.r2pos-form-col-3 { flex: 3; }
.r2pos-form-col-2 { flex: 2; }
.r2pos-form-container { max-width: 400px; margin: 0 auto; background: var(--r2pos-bg); padding: 25px; border-radius: var(--r2pos-radius); box-shadow: var(--r2pos-shadow); }
.r2pos-form-container-box { max-width: 400px; padding: 20px; border: 1px solid #ddd; background: var(--r2pos-bg); border-radius: var(--r2pos-radius); }
.r2pos-input { width: 100%; max-width: 100%; font-size: var(--r2pos-font-size); padding: 8px; border: 1px solid #ccc; border-radius: 3px; }
.r2pos-input-readonly { background: #e9e9e9; color: #777; cursor: not-allowed; }
.r2pos-form-help { color: #d63638; display: block; margin-top: 5px; font-size: 11px; line-height: 1.3; }

/* ==========================================================================
   R2 POS - Kassabonnen (Receipts)
   ========================================================================== */
.r2pos-receipt { border: 1px solid #e2e2e2; margin-bottom: 15px; border-radius: var(--r2pos-radius); box-shadow: 0 1px 3px rgba(0,0,0,0.02); overflow: hidden; background: #fff; }
.r2pos-receipt-header { background: var(--r2pos-bg); padding: 10px 15px; border-bottom: 1px solid #e2e2e2; display: flex; justify-content: space-between; align-items: center; font-size: var(--r2pos-font-size); }
.r2pos-receipt-title strong { color: #333; }
.r2pos-receipt-title span { color: #888; margin-left: 8px; }
.r2pos-receipt-date { color: #333; font-weight: 600; }
.r2pos-receipt-body { padding: 15px; }

.r2pos-table { width: 100%; border-collapse: collapse; line-height: 1.4; border: 0 !important}
.r2pos-table th { padding: 8px 0 6px 0; font-weight: 600; text-align: left; font-size: var(--r2pos-font-size); background: #fff; border: 0 !important; border-bottom: 2px solid #ddd !important; }
.r2pos-table th.col-qty { text-align: center !important; }
.r2pos-table th.col-price { text-align: right !important; }
.r2pos-table td { padding: 6px 0; vertical-align: top; font-size: var(--r2pos-font-size) !important; background: #fff !important; border: 0 !important; border-bottom: 1px solid #ddd !important;}
.r2pos-table td.col-qty { text-align: center; color: #444; padding-top: 7px; }
.r2pos-table td.col-price { text-align: right; white-space: nowrap; color: #333; padding-top: 7px; }
.r2pos-table td.col-artnr { color: #666; padding-top: 7px; }
.r2pos-item-title { font-weight: 600; color: #333; display: block; margin-bottom: 2px; }
.r2pos-item-meta { color: #888; font-size: 1.1rem; }

.r2pos-tfoot-sub { padding: 8px 0 2px 0; text-align: right; }
.r2pos-tfoot-sub.label { color: #555; border: 0 !important}
.r2pos-tfoot-sub.value { font-weight: 600; color: #333; border: 0 !important}
.r2pos-tfoot-disc { padding: 2px 0; text-align: right; color: #d63638; font-weight: 600; }
.r2pos-table .r2pos-tfoot-pay { padding: 2px 0; text-align: right; color: #888; border-bottom: 0 !important; border-top: 1px solid #ddd !important }

/* ==========================================================================
   R2 POS - Paginering (Pagination)
   ========================================================================== */
.r2pos-pagination { margin-top: 25px; text-align: center; }
.r2pos-pagination ul { display: inline-flex; list-style: none; padding: 0; gap: 5px; }
.r2pos-pagination ul li {list-style:none}
.r2pos-pagination .page-numbers { padding: 6px 12px; border: 1px solid #ccc; text-decoration: none !important; color: #333; border-radius: var(--r2pos-radius); background: #fff; display: inline-block; font-size: var(--r2pos-font-size); }
.r2pos-pagination .page-numbers.current { background: var(--r2pos-primary); color: #fff !important; border-color: var(--r2pos-primary); }