/* ------------------------------------------------------------
   Algemene form styling
------------------------------------------------------------ */
#ct-ticket-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}

/* Input velden */
#ct-ticket-form input[type="text"],
#ct-ticket-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;       /* dunne border */
    border-radius: 3px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 12px;
}

/* Step titels */
#ct-ticket-form h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.concertnaam {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px 10px 20px;
  background: #2e7d32;  /* lichter groen */
  color: #fff;
  border: 1px;
  border-color: #2e7d32; 
  border-radius: 6px;
  
}

/* ------------------------------------------------------------
   Dag selectie knoppen
------------------------------------------------------------ */
#day-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;       /* Ruimte tussen knoppen */
    margin-bottom: 15px;
}

.day-btn {
    flex: 1 1 calc(50% - 12px); /* 2 kolommen op desktop */
    padding: 12px 8px;
    font-size: 14px;
    border: 1px solid #04583C;
    border-radius: 6px;
    background: #e6f2ef;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;

    color:#000;
}

.day-btn:hover:not(:disabled) {
    background: #04583C; /* donkergroen */
    color: #fff;
}


.day-btn.selected {
    background: #2e7d32;  /* lichter groen */
    color: #fff;
    border-color: #2e7d32;
}

.day-btn:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}


.day-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.3;
}

.ct-day-date {
    font-weight: 600;
}

.ct-day-remaining {
    font-size: 13px;
    margin-top: 4px;
}

.ct-day-remaining.ct-last-tickets {
    xcolor: #b00020;
    font-weight: 600;
}


/*  warning eerst naam en mail invullen */
.ct-warning-msg {
    background: #fff3f3;
    padding: 8px 6px;
    border-radius: 4px;
}



/* ------------------------------------------------------------
   Aantal ticket knoppen
------------------------------------------------------------ */
#qty-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #04583C;
    background: #e6f2ef;
    color: #04583C;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #04583C;
    color: #fff;
}

.qty-btn.selected {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

/* ------------------------------------------------------------
   Submit knop
------------------------------------------------------------ */
#ticket-submit {
    display: inline-block;
    padding: 12px 20px;
    font-size: 14px;
    background: #04583C;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#ticket-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#ticket-submit:hover:not(:disabled) {
    background: #2e7d32;
}

/* ------------------------------------------------------------
   Live totaalbedrag
------------------------------------------------------------ */
#ct-total {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

/* ------------------------------------------------------------
   Betalingsinfo box
------------------------------------------------------------ */
#ct-payment-info {
    margin-top: 20px;
}

.ct-payment-box {
    padding: 15px;
    background: #f0fdf4;
    border: 1px solid #2ecc71;
    border-radius: 6px;
    font-size: 14px;
}

.ct-payment-box h3 {
    margin-top: 0;
    color: #2e7d32;
}

.ct-payment-box p {
    margin: 6px 0;
}

.ct-payment-box button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background: #04583C;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.ct-payment-box button:hover {
    background: #2e7d32;
}

/* ------------------------------------------------------------
   Kleine tekst
------------------------------------------------------------ */
.ct-small {
    font-size: 12px;
    color: #555;
}

/* ------------------------------------------------------------
   knop terug naarHome
------------------------------------------------------------ */
.ct-btn-home {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: 6px;
    background: #2e7d32;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s ease;
}

.ct-btn-home:hover {
    background: #04583C;
    color: #fff;
}


/* betalingsinfo op scherm */
.ct-payment-box {
	max-width:650px;
	margin:auto;
}


.ct-payment-wrapper {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
}

.ct-payment-right {
    width:220px;
    text-align:center;
}

.ct-payment-right img {
    max-width:200px;
}


.ct-payment-wrapper {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
}

.ct-payment-left {
    flex:1;
}

.ct-payment-right {
    width:220px;
    text-align:center;
}

.ct-payment-right img {
    max-width:200px;
    height:auto;
}

/* MOBIEL */
@media (max-width:768px){

    .ct-payment-wrapper {
        flex-direction:column;
        align-items:center;
        gap:25px;
    }

    .ct-payment-right {
        width:100%;
    }

    .ct-payment-right img {
        max-width:220px;
    }
}




/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media(max-width:480px){
    .day-btn {
        flex: 1 1 100%; /* 1 kolom op mobiel */
    }
    #qty-buttons {
        justify-content: space-between;
    }
}

/* === TOGGLE SWITCH FILTERS === */

.toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

/* Verberg de checkbox */
.toggle input {
    display: none;
}

/* Slider */
.toggle .slider {
    position: relative;
    width: 34px;
    height: 18px;
    background-color: #ccc;
    border-radius: 20px;
    transition: background-color 0.2s;
}

/* Knop */
.toggle .slider::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

/* AAN */
.toggle input:checked + .slider {
    background-color: #0073aa; /* WP blauw */
}

.toggle input:checked + .slider::before {
    transform: translateX(16px);
}

/* AAN */
.toggle.special input:checked + .slider {
    background-color: #d63638; /* rood */
}

button.ticket-paid {
    background: #2ecc71;
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

button.ticket-paid:hover {
    background: #27ae60;
}



.ct-total-box.active-day {
    xbackground-color: #e9fbe9;
    border: 1px solid #7ed957;
    transition: all 0.25s ease;
background-color: #f2fff2;
box-shadow: 0 0 6px rgba(126, 217, 87, 0.4);


}

.ct-filter-actions {
    display: inline-flex;
    gap: 10px;
    margin-left: 20px;
}





/* === WRAPPER & TABLE CONTAINER === */
#ct-list-view {
  width: 100%;
  overflow-x: auto;                     /* horizontaal scrollen op smalle schermen */
  -webkit-overflow-scrolling: touch;    /* smooth scroll op iOS */
  -ms-overflow-style: -ms-autohiding-scrollbar; /* mooi scrollen in IE/Edge */
  margin-top: 10px;
}

/* === TABEL BASIS === */
#ct-tickets-admin-table {
  width: 100%;          /* vul de container */
  min-width: 1000px;    /* minimale breedte zodat kolommen niet overlappen */
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 14px;       /* was 12 */
  background-color: #fff;
}

/* === HEADER & CELLEN === */
#ct-tickets-admin-table th,
#ct-tickets-admin-table td {
  border: 1px solid #ccc;
  padding: 2px 4px;             /* was 6px 10px;  */
  text-align: left;
  white-space: nowrap;          /* voorkom wrap */
  overflow: hidden;             /* content die te lang is wordt afgekapt */
  text-overflow: ellipsis;      /* toont ... bij te lange tekst */
}

/* === HEADER STIJL === */
#ct-tickets-admin-table th {
  background: #f0f0f0;
  font-weight: bold;
}

/* === ALTERNATING ROWS + HOVER === */
#ct-tickets-admin-table tbody tr:nth-child(odd) { background: #fff; }
#ct-tickets-admin-table tbody tr:nth-child(even) { background: #fafafa; }
#ct-tickets-admin-table tbody tr:hover { background: #eef7ff; }


/* === DELETE BUTTON === */
#ct-tickets-admin-table button.delete {
  width: 24px;
  height: 24px;
  padding: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}
#ct-tickets-admin-table .delete .fa-trash {
  font-size: 15px;
  color: #0073aa;
  transition: color 0.2s;
}
#ct-tickets-admin-table button.delete:hover .fa-trash {
  color: #005f8d;
}

/* === DOWNLOAD TICKET BUTTON === */
#ct-tickets-admin-table button.download-ticket {
  width: 24px;
  height: 24px;
  padding: 2px;
  background: transparent;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}
#ct-tickets-admin-table .download-ticket {
  font-size: 15px;
  color: #0073aa;
  transition: color 0.2s;
}
#ct-tickets-admin-table button.download-ticket:hover {
  color: #005f8d;
}



/* === CENTRERING === */
#ct-tickets-admin-table td:nth-child(5),
#ct-tickets-admin-table th:nth-child(5),
#ct-tickets-admin-table td:nth-child(7),
#ct-tickets-admin-table th:nth-child(7) {
  text-align: center;
}

/* === RIGHT ALIGN === */
#ct-tickets-admin-table td:nth-child(3),
#ct-tickets-admin-table th:nth-child(3),
#ct-tickets-admin-table td:nth-child(4),
#ct-tickets-admin-table th:nth-child(4) {
  text-align: right;
}



/* === RESPONSIVE TABLE FOR MOBILE === */
@media screen and (max-width: 1024px) {
  #ct-tickets-admin-table {
    min-width: 900px; /* minimale breedte voor horizontaal scrollen */
    font-size: 13px;
  }
}

@media screen and (max-width: 768px) {
  #ct-tickets-admin-table {
    font-size: 12px;
    min-width: 800px;
  }
  #ct-tickets-admin-table th,
  #ct-tickets-admin-table td {
    padding: 5px 8px;
  }
}

@media screen and (max-width: 480px) {
  #ct-tickets-admin-table {
    min-width: 700px;
  }
}


/* === TOGGLE SWITCH FILTERS === */
#leden-admin-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}


/* === totalen admin === */
#ct-admin-totals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.ct-total-box {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
	border: 1px solid #2E7D32;
}

.ct-total-number {
    font-size: 22px;
    font-weight: bold;
}

.ct-total-label {
    font-size: 13px;
    color: #777;
}

/* === PRINT LIJST BUTTON === */
#ct-print-lijst-button {
  width: 75px;
  height: 30px;
  padding: 0px;
  margin: 0px 0px 0px 20px;
  background: transparent;
  border: 1px solid #2E7D32;
  cursor: pointer;
  box-sizing: border-box;
}
#ct-print-lijst-button {
  font-size: 14px;
  color: #0073aa;
  transition: color 0.2s;
}
#ct-print-lijst-button:hover {
  background-color: #04583C;
}



#ct-scan-feedback {
    font-size: 2em;
    font-weight: bold;
    padding: 20px;
    text-align: center;
    width: 100%;
}

/* checkin */
.green-bg {
    xbackground:#2ecc71;
    background: #78e08f;
	color:white;
    font-size:28px;
    text-align:center;
    padding:40px;
    font-weight:bold;
}

.red-bg {
    xbackground:#e74c3c;
    background: #eb3b5a;
	color:white;
    font-size:28px;
    text-align:center;
    padding:40px;
    font-weight:bold;
}

/*  lichte 'pop' bij opdate van life teller checkin  */
.count-flash {
    transition: transform 0.2s ease;
    transform: scale(1.2);
}

.checkindag1 {
    display:flex;
    justify-content:space-between; /* label links, teller rechts */
    align-items:flex-start;
    gap:40px;
	padding: 5px;
}

.checkindag2 {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
	padding: 5px;
}

.ct-dag-label {

    xdisplay:block;
    font-size:20px;
    margin-bottom:5px;
    padding: 6px 12px;
    margin: 0 5px;
    border: 1px solid #444;
    background: #eee;
    cursor: pointer;
    border-radius: 4px;
}

.ct-dag-label.active {
    background: #04583C;  /*donkergroen*/
    font-weight: bold;
}


.ct-dag-count-dag1 {
    font-size:36px;      /* groter */
    font-weight:bold;
    color:#2c3e50;
}

.ct-dag-count-dag2 {
    font-size:36px;      /* groter */
    font-weight:bold;
    color:#2c3e50;
}

.ct-checkin-teller p {
    display:flex;
    justify-content:space-between; /* label links, teller rechts */
    align-items:center;
    margin: 2px 0;
	
}

.ct-checkin-teller {
    max-width:600px;
    margin:auto;
}

.ct-checkin-teller p {
    background:#f4f6f7;
    padding:5px 5px;
    border-radius:10px;
}