.logo-icon-intro {
    display: flex;
    margin-left: auto;
    margin-right: auto;
    max-height: 120px;
    width: auto;
}

.container-mine {
    max-width: 1000px;
}

span {
    &.status-ticket {
        font-size: 12px;
        padding: 5px 12px;
        border-radius: 15px;
        color: var(--bs-white);
    }

    &.check_out {
        background-color: var(--bs-danger);
    }

    &.check_in {
        background-color: var(--bs-green);
    }
}

#lista > table {
    font-size: 14px;
}

nav.navbar {
    box-shadow: 0px -20px 25px #000;
}

.ticket-dashboard {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.ticket-summary {
    max-width: none;
    min-width: 0;
}

.ticket-summary-main {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-left: 5px solid var(--bs-primary);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(33, 37, 41, 0.06);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr);
    padding: 1rem;
}

.ticket-summary-label {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ticket-summary-title {
    color: #212529;
    font-size: 1.35rem;
    font-weight: 700;
}

.ticket-summary-metrics {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticket-summary-metric {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    min-width: 0;
    padding: 0.5rem;
    text-align: center;
}

.ticket-summary-metric span {
    color: #6c757d;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
}

.ticket-summary-metric strong {
    color: #212529;
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.ticket-type-metrics {
    padding: 1rem;
}

.ticket-summary-metric strong.text-danger {
    color: var(--bs-danger) !important;
}

.ticket-summary-metric strong.text-success {
    color: var(--bs-success) !important;
}

.ticket-type-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.ticket-type-panel {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(33, 37, 41, 0.05);
    min-width: 0;
    overflow: hidden;
}

.ticket-type-panel-bonus {
    border-top: 4px solid var(--bs-primary);
}

.ticket-type-panel-entry {
    border-top: 4px solid var(--bs-warning);
}

.ticket-type-header {
    align-items: center;
    border-bottom: 1px solid #eef0f2;
    display: flex;
    justify-content: space-between;
    padding: 0.85rem 1rem;
}

.ticket-type-header span {
    color: #212529;
    font-size: 0.95rem;
    font-weight: 800;
}

.ticket-type-header small {
    background: #f1f3f5;
    border-radius: 8px;
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
}

.ticket-checkin-chart {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(33, 37, 41, 0.06);
    color: #212529;
    display: grid;
    gap: 0.85rem;
    grid-template-rows: auto auto 1fr;
    min-height: 100%;
    min-width: 0;
    padding: 1rem;
}

.ticket-chart-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ticket-chart-label {
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.ticket-chart-title {
    color: #212529;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.ticket-chart-header strong {
    color: #55d696;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.ticket-chart-range {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0.25rem;
}

.ticket-chart-range-button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    min-width: 0;
    padding: 0.5rem 0.35rem;
}

.ticket-chart-range-button.is-active {
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--bs-primary);
    color: var(--bs-primary);
}

.ticket-chart-range-button:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}

.ticket-chart-plot {
    min-height: 220px;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.ticket-chart-plot svg {
    display: block;
    height: 100%;
    min-height: 220px;
    width: 100%;
}

.ticket-chart-grid-line {
    stroke: #e9ecef;
    stroke-width: 1;
}

.ticket-chart-axis-label {
    fill: #6c757d;
    font-size: 14px;
    font-weight: 700;
}

.ticket-chart-line {
    fill: none;
    stroke: #55d696;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.ticket-chart-point {
    fill: #ffffff;
    cursor: pointer;
    outline: none;
    stroke: #55d696;
    stroke-width: 4;
}

.ticket-chart-point:hover,
.ticket-chart-point:focus {
    fill: #55d696;
}

.ticket-chart-tooltip {
    background: #ffffff;
    border: 1px solid #d8dee6;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    color: #17202a;
    font-size: 0.78rem;
    font-weight: 800;
    left: 0;
    line-height: 1.2;
    max-width: 160px;
    opacity: 0;
    padding: 0.45rem 0.6rem;
    pointer-events: none;
    position: absolute;
    text-align: center;
    top: 0;
    transform: translate(-50%, calc(-100% - 10px));
    transition: opacity 0.12s ease;
    white-space: nowrap;
    z-index: 2;
}

.ticket-chart-tooltip.is-visible {
    opacity: 1;
}

.ticket-chart-tooltip::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffffff;
    bottom: -6px;
    content: "";
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.ticket-chart-empty {
    fill: #6c757d;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .ticket-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .ticket-summary-main,
    .ticket-summary-metrics,
    .ticket-type-grid {
        grid-template-columns: 1fr;
    }

    .ticket-summary-main {
        padding: 0.85rem;
    }

    .ticket-summary-metric {
        align-items: center;
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .ticket-summary-metric strong {
        margin-top: 0;
    }
}


/* ========================
   INBOX TABS
   ======================== */

#inboxTabs .nav-link {
    color: #6c757d;
    font-weight: 600;
}

#inboxTabs .nav-link.active {
    color: var(--bs-primary);
    font-weight: 700;
}

.inbox-tab-content {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-top: 0;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1.5rem;
}

/* ========================
   ESCÁNER
   ======================== */

.scanner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem 2rem;
    max-width: 540px;
    margin: 0 auto;
}

.scanner-header {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--bs-primary);
}

.scanner-icon-big {
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.scanner-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #212529;
    margin-bottom: 0.25rem;
}

.scanner-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.scanner-form {
    width: 100%;
    margin-bottom: 1.75rem;
}

.scanner-form .form-control-lg {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    letter-spacing: 0.02em;
}

/* Último resultado del escáner */
.scanner-last-result {
    width: 100%;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    border: 2px solid transparent;
}

.scanner-last-result.result-success {
    background: #d1e7dd;
    border-color: #a3cfbb;
    color: #0a3622;
}

.scanner-last-result.result-warning {
    background: #fff3cd;
    border-color: #ffe69c;
    color: #664d03;
}

.scanner-last-result.result-error {
    background: #f8d7da;
    border-color: #f1aeb5;
    color: #58151c;
}

.scanner-result-icon {
    display: block;
    margin-bottom: 0.4rem;
}

.scanner-result-icon svg {
    width: 32px;
    height: 32px;
}

.scanner-result-message {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.scanner-result-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.scanner-result-time {
    display: block;
    font-size: 0.78rem;
    opacity: 0.75;
    margin-top: 0.2rem;
}

/* ========================
   MODAL DE ESCANEO
   ======================== */

.scan-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.scan-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.scan-modal-overlay.scan-success {
    background: rgba(25, 135, 84, 0.96);
}

.scan-modal-overlay.scan-warning {
    background: rgba(230, 126, 0, 0.96);
}

.scan-modal-overlay.scan-error {
    background: rgba(220, 53, 69, 0.96);
}

.scan-modal-content {
    text-align: center;
    color: #ffffff;
    padding: 2rem;
    animation: scan-pop 0.18s ease;
}

@keyframes scan-pop {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.scan-modal-icon {
    margin-bottom: 1rem;
    line-height: 1;
}

.scan-modal-icon svg {
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.scan-modal-message {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.scan-modal-name {
    font-size: 1.25rem;
    font-weight: 600;
    opacity: 0.95;
    margin-bottom: 0.25rem;
    min-height: 1.5rem;
}

.scan-modal-sub {
    font-size: 0.95rem;
    opacity: 0.8;
    min-height: 1.25rem;
}
