/* Static Ticket Styles */

.ticket-header {
    background-color: #fff;
    color: #333;
    padding: 15px;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    border: 1px solid #dee2e6;
    transition: background-color 0.2s ease;
}

.ticket-header.active {
    background-color: #ced4da;
    border-bottom: 1px solid #ced4da;
}

.ticket-header:hover {
    background-color: #f8f9fa;
}

.ticket-header h4 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.ticket-color-square {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 3px;
}

.square-blue {
    background-color: #007bff;
}

.square-orange {
    background-color: #ffc107;
}

.square-purple {
    background-color: #6f42c1;
}

.ticket-content {
    border: 1px solid #dee2e6;
    border-top: none;
    background-color: white;
    padding: 15px;
}

.ticket-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-info h5 {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.ticket-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.ticket-controls {
    display: flex;
    align-items: center;
}

.btn-qty {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    color: #333;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.qty-display {
    margin: 0 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.saiba-mais {
    font-size: 0.75rem;
    background-color: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    text-decoration: none;
}

.saiba-mais:hover {
    color: white;
    text-decoration: none;
    background-color: #0056b3;
}

.ticket-desc-open {
    font-size: 0.85rem;
    margin-top: 5px;
    color: #6c757d;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    /* Black transparency */
    align-items: center;
    justify-content: center;
}

.modal-content-custom {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-close-custom {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-close-custom:hover,
.modal-close-custom:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body-scroll {
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 10px;
    text-align: left;
    line-height: 1.6;
}

.btn-saiba-mais {
    font-size: 0.75rem;
    background-color: #343a40 !important;
    /* Dark info button */
    color: white !important;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    text-decoration: none;
    border: 1px solid #343a40;
    cursor: pointer;
}

.btn-saiba-mais:hover {
    background-color: #23272b !important;
}