/* ==========================================================================
   Event Tickets with Ticket Scanner - Backend Styles
   Modern SaaS-style admin UI
   ========================================================================== */

/* --- Custom Properties (scoped to admin page) --- */
.event-tickets-with-ticket-scanner-admin-page {
    --et-primary: #9333ea;
    --et-primary-hover: #7c22d0;
    --et-primary-light: #f3e8ff;
    --et-success: #22c55e;
    --et-success-hover: #16a34a;
    --et-danger: #ef4444;
    --et-danger-hover: #dc2626;
    --et-bg: #f8fafc;
    --et-card-bg: #ffffff;
    --et-border: #e5e7eb;
    --et-border-light: #f3f4f6;
    --et-text: #111827;
    --et-text-secondary: #6b7280;
    --et-text-muted: #9ca3af;
    --et-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --et-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --et-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --et-radius: 12px;
    --et-radius-sm: 8px;
    --et-spacing: 24px;
    --et-spacing-sm: 16px;
    --et-spacing-xs: 8px;
    --et-transition: 0.15s ease;
}

/* --- Base Layout --- */
.sngmbh_container {
    /*width: 98%;*/
}

.event-tickets-with-ticket-scanner-admin-page {
    padding-top: 10px;
    padding-right: 10px;
}

/* et-ready is added by JS after init — the initial opacity:0 is inline in index.php
   so the page stays hidden until CSS + JS are both loaded */
.event-tickets-with-ticket-scanner-admin-page.et-ready {
    opacity: 1;
}

.event-tickets-with-ticket-scanner-admin-page .sngmbh_container {
    animation: et-fade-in 0.3s ease;
}

@keyframes et-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes lds-dual-ring {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Bootstrap-like form utilities --- */
.sngmbh_mb-3, .sngmbh_my-3 {
    margin-bottom: 1rem!important;
}
.sngmbh_input-group {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: stretch;
    align-items: stretch;
    width: 100%;
}
.sngmbh_input-group>.sngmbh_custom-select:not(:last-child), .sngmbh_input-group>.sngmbh_form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.sngmbh_input-group>.sngmbh_custom-file, .sngmbh_input-group>.sngmbh_custom-select, .sngmbh_input-group>.sngmbh_form-control, .sngmbh_input-group>.sngmbh_form-control-plaintext {
    position: relative;
    -ms-flex: 1 1 0%;
    flex: 1 1 0%;
    min-width: 0;
    margin-bottom: 0;
}
.sngmbh_mb-2, .sngmbh_my-2 {
    margin-bottom: .5rem!important;
}
@media (prefers-reduced-motion: reduce) {
    .sngmbh_form-control {
        transition: none;
    }
}
.sngmbh_form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.sngmbh_input-group-append {
    margin-left: -1px;
}
.sngmbh_input-group-append, .sngmbh_input-group-prepend {
    display: -ms-flexbox;
    display: flex;
}
.sngmbh_input-group>.sngmbh_input-group-append>.sngmbh_btn, .sngmbh_input-group>.sngmbh_input-group-append>.sngmbh_input-group-text, .sngmbh_input-group>.sngmbh_input-group-prepend:first-child>.sngmbh_btn:not(:first-child), .sngmbh_input-group>.sngmbh_input-group-prepend:first-child>.sngmbh_input-group-text:not(:first-child), .sngmbh_input-group>.sngmbh_input-group-prepend:not(:first-child)>.sngmbh_btn, .sngmbh_input-group>.sngmbh_input-group-prepend:not(:first-child)>.sngmbh_input-group-text {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.sngmbh_input-group-append .sngmbh_btn, .sngmbh_input-group-prepend .sngmbh_btn {
    position: relative;
    z-index: 2;
}
.event-tickets-with-ticket-scanner-admin-page [type=button]:not(:disabled), .event-tickets-with-ticket-scanner-admin-page [type=reset]:not(:disabled), .event-tickets-with-ticket-scanner-admin-page [type=submit]:not(:disabled), .event-tickets-with-ticket-scanner-admin-page button:not(:disabled) {
    cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
    .sngmbh_btn {
        transition: none;
    }
}
.sngmbh_btn {
    display: inline-block;
    font-weight: 400;
    color: #212529;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0 10px;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    min-height: 30px;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.sngmbh_btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
.sngmbh_btn-delete {
    color: #fff;
    background-color: #ff0000;
    border-color: #ff0000;
}
.event-tickets-with-ticket-scanner-admin-page [type=button], .event-tickets-with-ticket-scanner-admin-page [type=reset], .event-tickets-with-ticket-scanner-admin-page [type=submit], .event-tickets-with-ticket-scanner-admin-page button {
    -webkit-appearance: button;
}

/* ==========================================================================
   Header Bar
   ========================================================================== */
.event-tickets-with-ticket-scanner-header {
    background-color: #9333ea;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.event-tickets-with-ticket-scanner-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.event-tickets-with-ticket-scanner-header-logo {
    height: 32px;
    width: auto;
    display: block;
}

.event-tickets-with-ticket-scanner-header-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.event-tickets-with-ticket-scanner-header-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.event-tickets-with-ticket-scanner-header-meta {
    font-size: 12px;
    opacity: 0.9;
}

.event-tickets-with-ticket-scanner-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive header */
@media (max-width: 782px) {
    .event-tickets-with-ticket-scanner-header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px;
    }

    .event-tickets-with-ticket-scanner-header-right {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ==========================================================================
   Upgrade Button (white pill style)
   ========================================================================== */
.event-tickets-with-ticket-scanner-upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: #ffffff;
    color: #000000 !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 7px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.15s ease;
}

.event-tickets-with-ticket-scanner-upgrade-btn:hover {
    background-color: #f8f8f8;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

.event-tickets-with-ticket-scanner-upgrade-btn:active {
    transform: translateY(1px);
}

.event-tickets-with-ticket-scanner-upgrade-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   Topbar & Navigation
   ========================================================================== */
.event-tickets-with-ticket-scanner-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.event-tickets-with-ticket-scanner-topbar-left {
    flex: 1;
}

/* Back-Button */
.event-tickets-with-ticket-scanner-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.event-tickets-with-ticket-scanner-back-icon {
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

.event-tickets-with-ticket-scanner-back-btn:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.event-tickets-with-ticket-scanner-back-btn:active {
    transform: translateY(1px);
}

/* Top menu (pill buttons) */
.event-tickets-with-ticket-scanner-topmenu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

/* === RESET + STYLE FOR TOPMENU BUTTONS === */
button.event-tickets-with-ticket-scanner-topmenu-item,
button.event-tickets-with-ticket-scanner-topmenu-item-active {
    all: unset;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 14px;
    border-radius: 999px;

    font-size: 13px;
    font-family: inherit;
    font-weight: 500;

    cursor: pointer;
    text-decoration: none;

    color: #111827;
    background: transparent;
    border: 1px solid var(--et-border);

    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

button.event-tickets-with-ticket-scanner-topmenu-item:hover {
    background: #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

button.event-tickets-with-ticket-scanner-topmenu-item-active {
    background: var(--et-primary-light);
    color: var(--et-primary);
    border-color: var(--et-primary);
}

button.event-tickets-with-ticket-scanner-topmenu-item:focus,
button.event-tickets-with-ticket-scanner-topmenu-item-active:focus {
    outline: none;
    box-shadow: none;
}

/* ==========================================================================
   Card System
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-card {
    background: var(--et-card-bg);
    border-radius: var(--et-radius);
    padding: var(--et-spacing);
    box-shadow: var(--et-shadow);
    border: 1px solid var(--et-border);
    margin-bottom: var(--et-spacing-sm);
    transition: box-shadow var(--et-transition);
}

.event-tickets-with-ticket-scanner-admin-page .et-card:hover {
    box-shadow: var(--et-shadow-md);
}

.event-tickets-with-ticket-scanner-admin-page .et-card-header {
    font-size: 15px;
    font-weight: 600;
    color: var(--et-text);
    margin-bottom: var(--et-spacing-sm);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--et-border-light);
    display: flex;
    align-items: center;
}

/* Section titles (h3 inside plugin) */
.event-tickets-with-ticket-scanner-admin-page .et-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--et-text);
    margin: var(--et-spacing) 0 var(--et-spacing-sm) 0;
    padding: 0;
}

/* Links inside cards */
.event-tickets-with-ticket-scanner-admin-page .et-card a {
    color: var(--et-primary);
    text-decoration: none;
    transition: color var(--et-transition);
}

.event-tickets-with-ticket-scanner-admin-page .et-card a:hover {
    color: var(--et-primary-hover);
    text-decoration: underline;
}

/* ==========================================================================
   Spinner
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    animation: et-fade-in 0.3s ease;
}

.event-tickets-with-ticket-scanner-admin-page .et-spinner-text {
    margin-top: 12px;
    font-size: 13px;
    color: var(--et-text-secondary);
    font-weight: 500;
}

/* Modern dual-ring spinner (overrides the inline JS version) */
.event-tickets-with-ticket-scanner-admin-page .lds-dual-ring {
    display: inline-block;
    width: 40px;
    height: 40px;
}

.event-tickets-with-ticket-scanner-admin-page .lds-dual-ring:after {
    content: " ";
    display: block;
    width: 28px;
    height: 28px;
    margin: 4px;
    border-radius: 50%;
    border: 3px solid var(--et-primary);
    border-color: var(--et-primary) transparent var(--et-primary) transparent;
    animation: lds-dual-ring 0.8s linear infinite;
}

/* Overlay spinner — appended to body, so NOT scoped to admin-page */
.et-spinner-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    text-align: center;
    min-width: 100px;
}

/* Content loading area */
.event-tickets-with-ticket-scanner-admin-page .et-content-area {
    min-height: 200px;
}

.event-tickets-with-ticket-scanner-admin-page .et-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-footer {
    margin-top: 60px;
    padding-top: var(--et-spacing);
    border-top: 1px solid var(--et-border);
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--et-spacing-sm);
    margin-bottom: var(--et-spacing);
}

@media (max-width: 900px) {
    .event-tickets-with-ticket-scanner-admin-page .et-footer-grid {
        grid-template-columns: 1fr;
    }
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-card {
    margin-bottom: 0;
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-card p {
    color: var(--et-text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-card a {
    color: var(--et-primary);
    font-weight: 500;
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-card a:hover {
    color: var(--et-primary-hover);
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-shortcodes {
    margin-top: var(--et-spacing-sm);
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-shortcodes h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--et-text);
    margin: var(--et-spacing) 0 var(--et-spacing-xs) 0;
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-shortcodes p {
    color: var(--et-text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-shortcodes b {
    display: inline-block;
    background: var(--et-primary-light);
    color: var(--et-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: monospace;
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-shortcodes ul {
    color: var(--et-text-secondary);
    font-size: 13px;
    line-height: 1.8;
    padding-left: 20px;
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-shortcodes li b {
    background: none;
    color: var(--et-text);
    padding: 0;
    font-family: inherit;
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-credits {
    text-align: center;
    padding: var(--et-spacing-sm) 0;
    color: var(--et-text-muted);
    font-size: 12px;
    border-top: 1px solid var(--et-border-light);
    margin-top: var(--et-spacing);
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-credits a {
    color: var(--et-text-secondary);
    text-decoration: none;
    transition: color var(--et-transition);
}

.event-tickets-with-ticket-scanner-admin-page .et-footer-credits a:hover {
    color: var(--et-primary);
}

/* ==========================================================================
   DataTables — general overrides (inside and outside cards)
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page table.dataTable {
    border-collapse: collapse;
    width: 100% !important;
}

.event-tickets-with-ticket-scanner-admin-page table.dataTable thead th {
    background: var(--et-bg);
    border-bottom: 2px solid var(--et-border);
    color: var(--et-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 10px 12px;
    vertical-align: bottom;
}

.event-tickets-with-ticket-scanner-admin-page table.dataTable tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--et-border-light);
    font-size: 13px;
    color: var(--et-text);
}

.event-tickets-with-ticket-scanner-admin-page table.dataTable tbody tr:nth-child(even) {
    background-color: var(--et-bg);
}

.event-tickets-with-ticket-scanner-admin-page table.dataTable tbody tr:hover {
    background-color: var(--et-primary-light);
}

/* DataTables search / length / pagination controls */
.event-tickets-with-ticket-scanner-admin-page .dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--et-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    transition: border-color var(--et-transition), box-shadow var(--et-transition);
}

.event-tickets-with-ticket-scanner-admin-page .dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--et-primary);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.15);
    outline: none;
}

.event-tickets-with-ticket-scanner-admin-page .dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--et-border);
    border-radius: 6px;
    padding: 4px 20px 4px 8px;
    font-size: 13px;
}

.event-tickets-with-ticket-scanner-admin-page .dataTables_wrapper .dataTables_info {
    font-size: 12px;
    color: var(--et-text-secondary);
    padding-top: 10px;
}

.event-tickets-with-ticket-scanner-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px !important;
    font-size: 13px;
    padding: 4px 10px !important;
    transition: all var(--et-transition);
}

.event-tickets-with-ticket-scanner-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--et-primary) !important;
    border-color: var(--et-primary) !important;
    color: #fff !important;
}

.event-tickets-with-ticket-scanner-admin-page .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--et-primary-light) !important;
    border-color: var(--et-primary) !important;
    color: var(--et-primary) !important;
}

/* ==========================================================================
   DataTables inside cards (scoped, for hover override consistency)
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-card table.dataTable {
    border-collapse: collapse;
    width: 100% !important;
}

.event-tickets-with-ticket-scanner-admin-page .et-card table.dataTable thead th {
    background: var(--et-bg);
    border-bottom: 2px solid var(--et-border);
    color: var(--et-text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 10px 12px;
    vertical-align: bottom;
}

.event-tickets-with-ticket-scanner-admin-page .et-card table.dataTable tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--et-border-light);
    font-size: 13px;
    color: var(--et-text);
}

.event-tickets-with-ticket-scanner-admin-page .et-card table.dataTable tbody tr:nth-child(even) {
    background-color: var(--et-bg);
}

.event-tickets-with-ticket-scanner-admin-page .et-card table.dataTable tbody tr:hover {
    background-color: var(--et-primary-light);
}

/* ==========================================================================
   Buttons (brand-styled within plugin context)
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .button-primary {
    background: var(--et-primary) !important;
    border-color: var(--et-primary) !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 2px 12px !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
    transition: background var(--et-transition), box-shadow var(--et-transition);
    box-shadow: none !important;
    text-shadow: none !important;
}

.event-tickets-with-ticket-scanner-admin-page .button-primary:hover,
.event-tickets-with-ticket-scanner-admin-page .button-primary:focus {
    background: var(--et-primary-hover) !important;
    border-color: var(--et-primary-hover) !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(147, 51, 234, 0.25) !important;
}

.event-tickets-with-ticket-scanner-admin-page .button-secondary,
.event-tickets-with-ticket-scanner-admin-page .button {
    border-radius: 5px;
    padding: 2px 10px !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.8;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: all var(--et-transition);
}

.event-tickets-with-ticket-scanner-admin-page .button-delete,
.event-tickets-with-ticket-scanner-admin-page .sngmbh_btn-delete {
    background: var(--et-danger) !important;
    border-color: var(--et-danger) !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 2px 12px !important;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background var(--et-transition), box-shadow var(--et-transition);
}

.event-tickets-with-ticket-scanner-admin-page .button-delete:hover,
.event-tickets-with-ticket-scanner-admin-page .sngmbh_btn-delete:hover {
    background: var(--et-danger-hover) !important;
    border-color: var(--et-danger-hover) !important;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.25) !important;
}

/* ==========================================================================
   Badges
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.event-tickets-with-ticket-scanner-admin-page .et-badge-success {
    background: #dcfce7;
    color: #166534;
}

.event-tickets-with-ticket-scanner-admin-page .et-badge-danger {
    background: #fef2f2;
    color: #991b1b;
}

.event-tickets-with-ticket-scanner-admin-page .et-badge-purple {
    background: var(--et-primary-light);
    color: var(--et-primary);
}

/* ==========================================================================
   Stats Cards (attendance summary)
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-stats-card {
    background: var(--et-card-bg);
    border-radius: var(--et-radius-sm);
    padding: var(--et-spacing-sm) var(--et-spacing);
    border: 1px solid var(--et-border);
    text-align: center;
}

.event-tickets-with-ticket-scanner-admin-page .et-stats-card .et-stats-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--et-text);
    line-height: 1.2;
}

.event-tickets-with-ticket-scanner-admin-page .et-stats-card .et-stats-label {
    font-size: 12px;
    color: var(--et-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* ==========================================================================
   Headings inside plugin
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .sngmbh_container h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--et-text);
    margin: 0 0 var(--et-spacing-sm) 0;
}

.event-tickets-with-ticket-scanner-admin-page .sngmbh_container h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--et-text);
    margin: var(--et-spacing-sm) 0 var(--et-spacing-xs) 0;
}

/* ==========================================================================
   Form inputs inside plugin
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page input[type="text"],
.event-tickets-with-ticket-scanner-admin-page input[type="number"],
.event-tickets-with-ticket-scanner-admin-page input[type="date"],
.event-tickets-with-ticket-scanner-admin-page input[type="email"],
.event-tickets-with-ticket-scanner-admin-page input[type="url"],
.event-tickets-with-ticket-scanner-admin-page select,
.event-tickets-with-ticket-scanner-admin-page textarea {
    border-radius: 6px;
    border: 1px solid var(--et-border);
    transition: border-color var(--et-transition), box-shadow var(--et-transition);
}

.event-tickets-with-ticket-scanner-admin-page select {
    padding-right: 20px;
}

.event-tickets-with-ticket-scanner-admin-page input[type="text"]:focus,
.event-tickets-with-ticket-scanner-admin-page input[type="number"]:focus,
.event-tickets-with-ticket-scanner-admin-page input[type="date"]:focus,
.event-tickets-with-ticket-scanner-admin-page input[type="email"]:focus,
.event-tickets-with-ticket-scanner-admin-page input[type="url"]:focus,
.event-tickets-with-ticket-scanner-admin-page select:focus,
.event-tickets-with-ticket-scanner-admin-page textarea:focus {
    border-color: var(--et-primary);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.15);
    outline: none;
}

/* ==========================================================================
   Key-Value Table (support info rows)
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-kv-table {
    display: flex;
    flex-direction: column;
}

.event-tickets-with-ticket-scanner-admin-page .et-kv-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--et-border-light);
    font-size: 13px;
    gap: 12px;
}

.event-tickets-with-ticket-scanner-admin-page .et-kv-row:last-child {
    border-bottom: none;
}

.event-tickets-with-ticket-scanner-admin-page .et-kv-label {
    color: var(--et-text-secondary);
    font-weight: 500;
    min-width: 180px;
    flex-shrink: 0;
}

.event-tickets-with-ticket-scanner-admin-page .et-kv-value {
    color: var(--et-text);
    font-weight: 400;
}

/* ==========================================================================
   Support Textarea (copy-paste block)
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-support-textarea {
    width: 100%;
    min-height: 180px;
    padding: 12px 14px;
    font-family: monospace;
    font-size: 12px;
    line-height: 1.6;
    color: var(--et-text);
    background: var(--et-bg);
    border: 1px solid var(--et-border);
    border-radius: var(--et-radius-sm);
    resize: vertical;
    cursor: text;
}

.event-tickets-with-ticket-scanner-admin-page .et-support-textarea:focus {
    border-color: var(--et-primary);
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.15);
    outline: none;
}

/* ==========================================================================
   Support Page Quick Links
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-support-quicklinks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--et-spacing-sm);
    margin-bottom: var(--et-spacing);
}

@media (max-width: 1100px) {
    .event-tickets-with-ticket-scanner-admin-page .et-support-quicklinks {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .event-tickets-with-ticket-scanner-admin-page .et-support-quicklinks {
        grid-template-columns: 1fr;
    }
}

.event-tickets-with-ticket-scanner-admin-page .et-support-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    text-decoration: none;
    transition: box-shadow var(--et-transition), transform 0.1s ease;
}

.event-tickets-with-ticket-scanner-admin-page a.et-support-link:hover {
    box-shadow: var(--et-shadow-md);
    transform: translateY(-1px);
    text-decoration: none;
}

.event-tickets-with-ticket-scanner-admin-page .et-support-link .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    flex-shrink: 0;
}

.event-tickets-with-ticket-scanner-admin-page .et-support-link strong {
    display: block;
    color: var(--et-text);
    font-size: 14px;
    margin-bottom: 2px;
}

.event-tickets-with-ticket-scanner-admin-page .et-support-link span {
    color: var(--et-text-secondary);
    font-size: 12px;
}

/* ==========================================================================
   Library List
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-lib-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-tickets-with-ticket-scanner-admin-page .et-lib-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--et-border-light);
    font-size: 13px;
}

.event-tickets-with-ticket-scanner-admin-page .et-lib-list li:last-child {
    border-bottom: none;
}

.event-tickets-with-ticket-scanner-admin-page .et-lib-name {
    font-weight: 500;
    color: var(--et-text);
}

/* ==========================================================================
   jQuery UI Dialog — Modern Override
   ========================================================================== */

/* Overlay backdrop */
.ui-widget-overlay {
    background: rgba(15, 23, 42, 0.4) !important;
    backdrop-filter: blur(2px);
    opacity: 1 !important;
}

/* Dialog container */
.ui-dialog {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    padding: 0 !important;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Title bar */
.ui-dialog .ui-dialog-titlebar {
    background: #9333ea !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 16px 20px !important;
    color: #fff !important;
}

.ui-dialog .ui-dialog-title {
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    float: none !important;
    width: auto !important;
}

/* Title bar needs relative for close button positioning */
.ui-dialog .ui-dialog-titlebar {
    position: relative !important;
}

/* Close button in title bar — pinned to top-right, not centered vertically */
.ui-dialog .ui-dialog-titlebar-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 28px !important;
    height: 28px !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: background 0.15s ease;
}

.ui-dialog .ui-dialog-titlebar-close:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon {
    background-image: none !important;
}

.ui-dialog .ui-dialog-titlebar-close .ui-icon::before {
    content: "\00d7";
    display: block;
    text-align: center;
    font-size: 18px;
    line-height: 28px;
    color: #fff;
    font-style: normal;
}

/* No-close variant (hide close button) */
.ui-dialog.no-close .ui-dialog-titlebar-close {
    display: none;
}

/* Dialog content area */
.ui-dialog .ui-dialog-content {
    padding: 24px !important;
    font-size: 13px;
    line-height: 1.6;
    color: #111827;
}

.ui-dialog .ui-dialog-content p {
    margin: 0 0 12px 0;
}

.ui-dialog .ui-dialog-content form {
    margin: 0;
}

.ui-dialog .ui-dialog-content input[type="text"],
.ui-dialog .ui-dialog-content input[type="number"],
.ui-dialog .ui-dialog-content input[type="email"],
.ui-dialog .ui-dialog-content select,
.ui-dialog .ui-dialog-content textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.ui-dialog .ui-dialog-content input[type="text"]:focus,
.ui-dialog .ui-dialog-content input[type="number"]:focus,
.ui-dialog .ui-dialog-content input[type="email"]:focus,
.ui-dialog .ui-dialog-content select:focus,
.ui-dialog .ui-dialog-content textarea:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.15);
    outline: none;
}

.ui-dialog .ui-dialog-content input[type="checkbox"] {
    accent-color: #9333ea;
}

/* Button pane */
.ui-dialog .ui-dialog-buttonpane {
    border-top: 1px solid #f3f4f6 !important;
    background: #f8fafc !important;
    padding: 12px 20px !important;
    margin-top: 0 !important;
}

.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    float: right;
    display: flex;
    gap: 8px;
}

.ui-dialog .ui-dialog-buttonpane button {
    border-radius: 8px !important;
    padding: 6px 18px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #111827 !important;
    margin: 0 !important;
}

.ui-dialog .ui-dialog-buttonpane button:first-child {
    background: #9333ea !important;
    border-color: #9333ea !important;
    color: #fff !important;
}

.ui-dialog .ui-dialog-buttonpane button:first-child:hover {
    background: #7c22d0 !important;
    border-color: #7c22d0 !important;
    box-shadow: 0 2px 4px rgba(147, 51, 234, 0.3);
}

.ui-dialog .ui-dialog-buttonpane button:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.ui-dialog .ui-dialog-buttonpane button:first-child:hover {
    background: #7c22d0 !important;
    color: #fff !important;
}

/* Delete/danger button styling inside dialogs */
.ui-dialog .sngmbh_btn-delete {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
}

.ui-dialog .sngmbh_btn-delete:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}

/* Tables inside dialogs */
.ui-dialog table.widefat td:hover {
    background-color: #f3e8ff !important;
}

/* Spinner inside dialog */
.ui-dialog .et-spinner {
    padding: 30px 0;
}

.ui-dialog .lds-dual-ring:after {
    border-color: #9333ea transparent #9333ea transparent;
}

/* Wizard dialog override — already has custom styles, just align border-radius */
.saso-wizard-dialog.ui-dialog {
    border-radius: 12px !important;
}

.saso-wizard-dialog .ui-dialog-titlebar {
    border-radius: 0 !important;
}

/* ==========================================================================
   Table row action buttons — lightweight ghost style
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-btn-action {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--et-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: color var(--et-transition), background var(--et-transition), border-color var(--et-transition);
    box-shadow: none !important;
    text-shadow: none !important;
    margin: 0 1px;
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-action:hover,
.event-tickets-with-ticket-scanner-admin-page .et-btn-action:focus {
    color: var(--et-text);
    background: var(--et-border-light);
    border-color: var(--et-border);
    box-shadow: none !important;
    outline: none;
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-action--danger {
    color: #b91c1c;
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-action--danger:hover,
.event-tickets-with-ticket-scanner-admin-page .et-btn-action--danger:focus {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

/* ==========================================================================
   Toolbar & Button Groups
   ========================================================================== */
.event-tickets-with-ticket-scanner-admin-page .et-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.event-tickets-with-ticket-scanner-admin-page .et-toolbar-hint {
    font-size: 12px;
    color: var(--et-text-muted);
}

.event-tickets-with-ticket-scanner-admin-page .et-toolbar-desc {
    margin-right: auto;
    color: var(--et-text-muted);
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-group {
    display: inline-flex;
    border: 1px solid var(--et-border);
    border-radius: 5px;
    overflow: hidden;
    vertical-align: middle;
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-group--danger {
    border-color: #fecaca;
}

/* et-btn-action inside a group */
.event-tickets-with-ticket-scanner-admin-page .et-btn-group .et-btn-action {
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--et-border);
    margin: 0;
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-group--danger .et-btn-action {
    border-right-color: #fecaca;
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-group .et-btn-action:last-child {
    border-right: none;
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-group .et-btn-action:hover,
.event-tickets-with-ticket-scanner-admin-page .et-btn-group .et-btn-action:focus {
    border-color: transparent;
    z-index: 1;
}

/* button / button-secondary inside a group (toolbar) */
.event-tickets-with-ticket-scanner-admin-page .et-btn-group .button-secondary,
.event-tickets-with-ticket-scanner-admin-page .et-btn-group .button {
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: 1px solid var(--et-border) !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.event-tickets-with-ticket-scanner-admin-page .et-btn-group .button-secondary:last-child,
.event-tickets-with-ticket-scanner-admin-page .et-btn-group .button:last-child {
    border-right: none !important;
}
