
:root {
    --primary: #172b3a;
    --accent: #17a398;
    --background: #f5f7f9;
    --border: #e8edf0;
}

.entry-page {
    width: min(100% - 32px, 900px);
    margin: 35px auto;
}

/* Competition summary */

.competition-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.competition-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.competition-heading img{
    width:100px;
    height:100px;
    border-radius: 5px;
    object-fit: contain;
    border:2px solid var(--secondary-color);
}

.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--secondary-color);
}

.competition-heading h2 {
    margin: 9px 0;
    font-size: 23px;
    color: var(--primary);
}

.competition-heading p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.competition-status {
    background: #e5f7f1;
    color: #168b65;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 20px;
}

.sales-info {
    margin-top: 27px;
}

.sales-numbers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13px;
}

.sales-numbers strong {
    font-size: 20px;
    color: var(--primary);
}

.remaining {
    color: var(--muted);
    margin-left: auto;
}

.progress-track {
    height: 9px;
    background: #edf0f2;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 13px;
}

.progress-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: inherit;
    transition: width .3s ease;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--muted);
    font-size: 11px;
}

.competition-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

/* Entries section */

.entries-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
}
.entries-heading-1{
    flex:1;
}

.entries-heading a{
    text-decoration: none;
    border:1px solid #000;
    border-radius: 5px;
    height:30px;
    padding-left:1em;
    padding-right:1em;
    color:#000;
    font-weight:600;
}

.entries-heading h3 {
    font-size: 20px;
    color: var(--primary);
    margin: 0 0 6px;
}

.entries-heading p {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

/* Search */

.entry-search {
    display: flex;
    gap: 10px;
    margin-top: 23px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0 12px;
    min-width: 0;
}

.search-icon {
    font-size: 22px;
    color: var(--muted);
}

.search-input-wrapper input {
    width: 100%;
    border: 0;
    outline: none;
    padding: 13px 10px;
    font-size: 13px;
    background: transparent;
    min-width: 0;
}

.search-input-wrapper button {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 21px;
    cursor: pointer;
    display: none;
}

.search-button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 0 22px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.search-button:hover {
    opacity: .9;
}

/* Toolbar */

.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 25px 0 13px;
    color: var(--muted);
    font-size: 12px;
}

.page-size {
    display: flex;
    align-items: center;
    gap: 7px;
}

.page-size select {
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: white;
    color: var(--text);
}

/* Entry rows */

.entries-list {
    border-top: 1px solid var(--border);
}

.entry-row {
    display: grid;
    grid-template-columns: 100px 100px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    margin-top:3px;
}

.entry-header {
    background: #f8fafb;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.entry-ticket {
    font-weight: 700;
    color: var(--primary);
}

.entry-player {
    font-weight: 600;
    color: var(--text);
}

.entry-date {
    color: var(--muted);
    font-size: 12px;
}

/* Empty state */

.empty-state {
    padding: 45px 15px;
    text-align: center;
}

.empty-icon {
    font-size: 35px;
    color: var(--muted);
}

.empty-state h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.empty-state p {
    color: var(--muted);
    font-size: 13px;
}

/* Pagination */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
}

.pagination button {
    min-width: 35px;
    height: 35px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 5px;
    color: var(--text);
    cursor: pointer;
    font-size: 12px;
}

.pagination button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled):not(.active) {
    background: #f1f5f7;
}

.pagination .page-dots {
    padding: 0 5px;
    color: var(--muted);
}
.empty-state{
     min-height:300px;
}
.empty-state img{
     width:100px;
     height:100px;
     object-fit: contain;
}
.t-lbl{
     height:30px;
     border-radius:5px;
     font-size: 12px;
     font-weight: 700;
     padding-left:1em;
     padding-right:1em;
     width:80px;
}
.t-lbl.neighbor{
    background-color:#000;
    color:var(--primary-color);
}
.t-lbl.main{
    background-color:var(--primary-color);
    color:#000;
}
.entry-date button{
     height:30px;
     marhin-left:20px;
     background: var(--primary-color);
     border:0;
     color:#000;
     border-radius: 5px;
     height:35px;
     font-weight: 700;
     cursor: pointer;
}
.entry-row-0,
.entry-row-2{
    background-color:var(--primary-color-soft);
    border-radius:10px;
}
.entry-row-1{
    border:2px solid green;
    border-radius:10px;
}
.winning_ticket_wrapper{
    width:100vw;
    height:100vh;
    position: fixed;
    z-index: 100;
    top:0;
    left:0;
    background-color:rgba(0,0,0,.6);
}
.winning_ticket{
    background: #fff;
    box-shadow: 0px 0px 5px #a0a0a0;
    border-radius: 5px;
    width:400px;
    height:auto;
}
.winning_ticket_header,
.winning_ticket_body{
    padding: 1em;
    padding-left:2em;
    padding-right:2em;
}
.wt-title{
    flex:1;
}
.wt-close{
    cursor: pointer;
    width:35px;
    height:35px;
    border-radius: 50%;
}
.wt-close:hover{
    background: var(--border);
}
.ticket_card{
    background: linear-gradient(125deg, #000 0%, var(--primary-color) 60%, var(--secondary-color) 100%);
    border-radius: 6px;
    padding: 27px;
    color: white;
    position: relative;
    overflow: hidden;
    height: 150px;
    margin-bottom: 20px;
}
.ticket_card h1{
    font-size: 50px;
    font-weight: 700;
}
.winning_ticket_body input{
    width:100%;
    height:40px;
    border:1px solid var(--hard-border);
    margin-top:5px;
    border-radius: 5px;
    padding-left:20px;
    padding-right:20px;
}
.winning_ticket_body input:focus{
    outline:none;
}
.wt-button{
    margin-top:30px;
}
.wt-button button{
    border:0;
    height:40px;
    width:100%;
    background-color:green;
    border-radius: 5px;
    color:#fff;
    font-size:17px;
    font-weight: 700;
    cursor: pointer;
}

/* Mobile */

@media(max-width: 600px) {

    .entry-page {
        width: calc(100% - 20px);
        margin: 15px auto;
    }

    .competition-summary,
    .entries-section {
        padding: 17px;
    }

    .competition-heading h2 {
        font-size: 19px;
    }

    .sales-numbers {
        font-size: 11px;
    }

    .sales-numbers strong {
        font-size: 17px;
    }

    .remaining {
        width: 100%;
        margin-left: 0;
    }

    .entry-search {
        flex-direction: column;
    }

    .search-input-wrapper {
        min-height: 45px;
    }

    .search-button {
        min-height: 43px;
    }

    .results-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .entry-row {
        grid-template-columns: 65px 100px 1fr auto;
        gap: 8px;
        padding: 13px 5px;
        font-size: 11px;
    }

    .entry-header {
        font-size: 9px;
    }

    .entry-date {
        font-size: 10px;
    }

}
