#sec6 .lottery-wrap{max-width:1250px;margin:auto}#sec6 .lottery-banner{background:#fff8d7;border:1px solid #edbd36;border-radius:9px;padding:12px;margin:12px 0}#sec6 .lottery-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:15px 0}#sec6 .lottery-tabs button,#sec6 .lottery-action{background:#ffcc00;border:1px solid #d7aa00;border-radius:7px;padding:9px 13px;font-weight:700;cursor:pointer}#sec6 .lottery-tabs button.active{background:#111;color:#fff;border-color:#111}#sec6 .lottery-panel{display:none}#sec6 .lottery-panel.active{display:block}#sec6 .lottery-card{border:1px solid #ddd;border-radius:12px;padding:17px;margin:12px 0;background:white}#sec6 .lottery-form{display:flex;gap:10px;flex-wrap:wrap;align-items:end}#sec6 label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:bold}#sec6 input,#sec6 select,#sec6 textarea{padding:9px;border:1px solid #bbb;border-radius:7px;min-width:160px;box-sizing:border-box}#sec6 .lottery-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}#sec6 .lottery-stats>div{background:#fafafa;border:1px solid #ddd;border-radius:9px;padding:13px}#sec6 .lottery-stats strong{display:block;font-size:26px;margin-top:7px}#sec6 .lottery-table{overflow:auto}#sec6 table{min-width:650px}#sec6 .lottery-muted{color:#666;font-size:13px}#sec6 .lottery-danger{background:#d72c35;color:white;border:0}#sec6 .lottery-good{color:#117a3d;font-weight:bold}#sec6 .lottery-error{color:#b20b22;font-weight:bold}#sec6 .lottery-ticket{font-size:32px;font-weight:bold;letter-spacing:2px}#sec6 .lottery-form button:disabled{opacity:.5;cursor:not-allowed}

/* Searchable lottery participant selector */
.lottery-search-wrap{position:relative;min-width:300px;max-width:100%}
.lottery-search-wrap input{width:100%;box-sizing:border-box}
.lottery-search-results{position:absolute;top:calc(100% + 3px);left:0;right:0;z-index:100;max-height:270px;overflow-y:auto;background:#fff;border:1px solid #d8dce2;border-radius:9px;box-shadow:0 9px 25px #17202c24}
.lottery-search-results[hidden]{display:none}
.lottery-search-option{display:flex;flex-direction:column;gap:3px;width:100%;text-align:left;padding:10px 12px;border:0;border-bottom:1px solid #eee;background:#fff;color:#1c2430;cursor:pointer}
.lottery-search-option:hover,.lottery-search-option:focus{background:#fff0f1}
.lottery-search-option small{color:#697381;font-size:12px}
.lottery-search-empty{padding:12px;color:#697381}

#sec6 #lottery-available-card{cursor:pointer;border-color:#e7a1a6}#sec6 #lottery-available-card:hover{background:#fff0f1}#sec6 #lottery-available-card small{display:block;color:#777;margin-top:4px}#sec6 #lottery-available-panel[hidden]{display:none}#sec6 .lottery-history{margin-top:16px;padding:14px;border:1px solid #e2e5ea;border-radius:9px;background:#fafafa}#sec6 .lottery-history h4{margin:0 0 8px}#sec6 .lottery-registry-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}#sec6 .lottery-registry-tools input{min-width:270px}#sec6 #lottery-period-filter{margin:10px 0;min-width:270px}#sec6 .lottery-table table{width:100%}
