button{
    cursor: pointer;
}
.admin-feature-form {
    display: grid;
    gap: 18px;
}

.admin-feature-form section {
    display: grid;
    gap: 10px;
    border-top: 1px solid #e5eaf0;
    padding-top: 18px;
}

.admin-feature-form h2 {
    margin: 0;
    font-size: 20px;
}

.admin-feature-form label {
    display: grid;
    gap: 6px;
    color: #33445e;
    font-size: 12px;
    font-weight: 700;
}

.admin-feature-form input,
.admin-feature-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 5px;
    padding: 9px;
    font: inherit;
}

.admin-feature-form .check-row {
    display: flex;
}

.admin-feature-form .check-row input {
    width: auto;
}

.admin-flash {
    margin: 14px 0;
    padding: 10px 12px;
    border-radius: 5px;
    font-weight: 700;
}

.admin-flash.success {
    color: #0b6b35;
    background: #dcfce7;
}

.admin-flash.error {
    color: #a52620;
    background: #fff1f0;
}

.jodi-grid {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 10px;
}

.jodi-grid label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    min-height: 36px;
    background: #f8fafc;
    font-size: 14px;
}

.jodi-grid input {
    width: auto;
}

@media (max-width: 700px) {
    .jodi-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Tez Bombay reference admin dashboard. */
:root {
    --admin-yellow: #ffe166;
    --admin-red: #dc2626;
    --admin-slate: #eef2f7;
    --admin-border: #d8e0eb;
    --admin-ink: #1f2937;
}

.admin-page {
    min-height: 100vh;
    padding: 32px 16px;
    background: var(--admin-slate);
    color: #333;
    font-family: "Nunito", sans-serif;
}

.admin-dashboard,
.admin-dashboard.admin-wide {
    width: min(100%, 980px);
    margin: 0 auto;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(20, 30, 48, .14);
}

.admin-header {
    align-items: flex-start;
}

.admin-header h1 {
    margin: 0 0 8px;
    color: var(--admin-ink);
    font-size: 28px;
    text-align: left;
}

.admin-header p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.logout-button,
.dark-button {
    min-height: 36px;
    border-radius: 6px;
    background: #111827;
    color: #fff;
    padding: 0 14px;
    font-size: 13px;
}

.table-action-button {
    min-height: 31px;
    border: 0;
    border-radius: 999px;
    background: #e8ebff;
    color: #3147aa;
    cursor: pointer;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
}

.admin-tabs {
    gap: 10px;
    margin: 18px 0 0;
}

.admin-tabs a {
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    background: #f8fafc;
    color: #111827;
    padding: 14 14px;
    font-size: 13px;
}

.admin-tabs a.active {
    border-color: var(--admin-red);
    background: var(--admin-red);
    color: #fff;
}

.dashboard-meta {
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 0;
}

.dashboard-meta div {
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px;
}

.dashboard-meta span {
    color: #667085;
    font-size: 13px;
}

.dashboard-meta strong {
    margin-top: 4px;
    color: #111827;
}

.dashboard-section {
    gap: 14px;
    border-top: 0;
    padding: 0;
    margin-top: 22px;
}

.dashboard-section h2 {
    color: var(--admin-ink);
    font-size: 20px;
}

.dashboard-section label,
.admin-feature-form label {
    color: #344054;
    font-size: 14px;
}

.dashboard-section input,
.dashboard-section textarea,
.dashboard-section select,
.admin-feature-form input,
.admin-feature-form textarea {
    border-color: #cbd5e1;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
}

.date-open-row {
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 14px;
}

.action-button,
.reset-button,
.save-tez-chart-button {
    min-height: 44px;
    border-radius: 6px;
    background: var(--admin-red);
    box-shadow: none;
    color: #fff;
    font-size: 15px;
}

.reset-button {
    background: var(--admin-red);
}

.save-tez-chart-button:hover {
    background: #b91c1c;
    box-shadow: none;
}

.result-table-wrap {
    margin-top: 18px;
    border-color: var(--admin-border);
    border-radius: 8px;
}

.admin-result-table {
    font-size: 14px;
}

.admin-result-table th,
.admin-result-table td {
    border-color: var(--admin-border);
    padding: 4px;
}

.admin-result-table thead th {
    background: var(--admin-yellow);
    color: #111827;
    font-size: 13px;
}

.admin-result-table input {
    border-color: #cbd5e1;
    border-radius: 6px;
}

.admin-bottom-links {
    gap: 12px;
    margin-top: 22px;
}

.admin-bottom-links a {
    color: #0645d8;
    font-size: 14px;
}

.saved-dates-section {
    background: linear-gradient(180deg, #fffdf3 0%, #fff 58%);
}

.saved-dates-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1d777;
}

.saved-dates-head h2 {
    margin: 0;
}

.saved-dates-head span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #e9c63c;
    border-radius: 6px;
    background: var(--admin-yellow);
    color: #111827;
    font-size: 12px;
    font-weight: 900;
}

.saved-date-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.saved-date-list form {
    margin: 0;
}

.saved-date-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    width: 100%;
    min-height: 36px;
    padding: 7px 8px 7px 10px;
    border: 1px solid #d8e0eb;
    border-left: 4px solid var(--admin-yellow);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #fff8d7 100%);
    color: #111827;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    text-decoration: none;
    box-shadow: 0 5px 12px rgba(17, 24, 39, .07);
    transition: transform .15s ease, border-color .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.saved-date-button span {
    line-height: 1;
}

.saved-date-button small {
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    color: inherit;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.saved-date-button:hover,
.saved-date-button.active {
    border-color: var(--admin-red);
    border-left-color: var(--admin-red);
    background: linear-gradient(180deg, #ef4444 0%, var(--admin-red) 100%);
    color: #fff;
    box-shadow: 0 7px 16px rgba(220, 38, 38, .2);
    transform: translateY(-1px);
}

.saved-date-button:focus-visible {
    outline: 3px solid rgba(255, 225, 102, .9);
    outline-offset: 2px;
}

.saved-dates-empty {
    display: grid;
    gap: 5px;
    margin-top: 16px;
    padding: 16px;
    border: 1px dashed #e6d18a;
    border-radius: 8px;
    background: #fffaf0;
    color: #475467;
}

.saved-dates-empty strong {
    color: #111827;
    font-size: 15px;
}

.saved-dates-empty span {
    font-size: 13px;
}

.admin-flash {
    border-radius: 6px;
}

.admin-feature-form section {
    border-color: var(--admin-border);
}

.jodi-grid label {
    border-color: var(--admin-border);
    border-radius: 8px;
}

.admin-week-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
}

.admin-week-modal[hidden] {
    display: none;
}

.admin-week-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
}

.admin-week-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(94vw, 760px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 16px;
    background-color: #000000;
}

.admin-week-modal-card {
    display: grid;
    gap: 14px;
}

.admin-week-modal-header,
.admin-week-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

html.is-modal-open,
body.is-modal-open {
    overflow: hidden;
}

.admin-week-modal-card {
    border-radius: 8px;
    background: #111827;
}

.admin-week-modal-header h3 {
    color: #fff;
}

.admin-week-modal-card label,
.admin-week-modal-card legend {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.admin-week-modal-card fieldset {
    border-color: rgba(255, 255, 255, .24);
}

.admin-week-modal-card .choice {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-week-modal-card select,
.admin-week-modal-card input {
    border-radius: 6px;
}

.admin-week-close {
    display: grid;
    place-items: center;
    width: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 22px;
    line-height: 1;
}

.admin-week-submit {
    background: #16a34a;
}

.admin-week-dismiss,
.admin-week-close {
    background: #ef4444;
}

.admin-game-edit-modal {
    width: min(100%, 920px);
    gap: 18px;
    border: 0;
    border-radius: 8px;
    background: #050505;
    padding: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
}

#game-edit-modal .admin-week-modal-dialog {
    width: min(96vw, 950px);
}

#week-panel-modal .admin-week-modal-dialog {
    width: min(96vw, 900px);
}

#game-result-modal .admin-week-modal-dialog {
    width: min(96vw, 900px);
}

.admin-game-edit-modal .admin-week-modal-header {
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.admin-game-edit-modal .admin-week-modal-header h3 {
    color: #28e09a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.admin-game-edit-modal .admin-week-modal-header p {
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 700;
}

.admin-game-edit-modal label,
.admin-game-edit-modal legend {
    display: grid;
    gap: 6px;
    color: #4a6085;
    font-weight: 700;
    font-size: 14px;
}

.admin-game-edit-modal input,
.admin-game-edit-modal select {
    padding: 8px;
    border: 1px solid #dbe7f6;
    border-radius: 6px;
    background: #f8fbff;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.admin-game-edit-modal .two-fields {
    gap: 16px;
}

.admin-game-edit-modal fieldset {
    gap: 12px;
    border: 1px solid #d9e4f5;
    border-radius: 12px;
    padding: 8px;
}

.admin-game-edit-modal legend {
    padding: 0 10px;
    font-size: 14px;
}

.admin-game-edit-modal .choice {
    border-color: #dbe7f6;
    border-radius: 8px;
    background: #f3f7ff;
    color: #344054;
    font-size: 14px;
    font-weight: 900;
}

.admin-game-edit-modal .choice input,
.admin-game-edit-modal .check-row input {
    width: 15px;
    min-height: 15px;
    accent-color: #1683ff;
}

.admin-game-edit-modal .check-row {
    gap: 28px;
    margin-top: 8px;
}

.admin-game-edit-modal .check-row label {
    display: inline;
    align-items: center;
    color: #6a88b6;
    font-size: 14px;
}

.admin-game-edit-modal .admin-week-modal-actions {
    justify-content: flex-end;
    gap: 14px;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.admin-game-edit-modal .admin-week-submit,
.admin-game-edit-modal .admin-week-dismiss,
.admin-game-edit-modal .admin-week-close-text {
    min-height: 36px;
    border: 0;
    border-radius: 8px;
    padding: 0 24px;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-game-edit-modal .admin-week-submit {
    background: #16a34a;
    text-transform: none;
}

.admin-game-edit-modal .admin-week-dismiss,
.admin-game-edit-modal .admin-week-close-text {
    background: #ff4747;
}

.admin-game-edit-modal .admin-week-close-text {
    width: auto;
    min-width: 100px;
    line-height: 1;
}

.admin-week-panel-modal {
    width: min(100%, 880px);
    gap: 18px;
    border: 0;
    border-radius: 8px;
    background: #050505;
    padding: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
}

.admin-week-panel-modal .admin-week-modal-header {
    align-items: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.admin-week-panel-modal h3 {
    margin: 0;
    color: #28e09a;
    font-size: 20px;
    line-height: 1.1;
}

.admin-week-panel-modal h3 mark {
    background: #174ea6;
    color: #fff;
}

.admin-week-panel-modal .admin-week-modal-header p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 800;
}

.week-panel-dates,
.week-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.week-panel-dates {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.week-panel-grid {
    row-gap: 14px;
}

.admin-week-panel-modal label {
    display: grid;
    gap: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.admin-week-panel-modal label small {
    color: rgba(255, 255, 255, .66);
    font-size: 13px;
    font-weight: 800;
}

.admin-week-panel-modal input {
    min-height: 50px;
    border: 1px solid #dbe7f6;
    border-radius: 6px;
    background: #f8fbff;
    color: #111827;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 900;
}

.week-panel-help {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 700;
}

.week-panel-help b {
    color: var(--admin-yellow);
}

.admin-week-panel-modal .admin-week-modal-actions {
    justify-content: flex-end;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.admin-week-panel-modal .admin-week-submit,
.admin-week-panel-modal .admin-week-dismiss,
.admin-week-panel-modal .admin-week-close-text {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    padding: 0 24px;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.admin-week-panel-modal .admin-week-submit {
    background: #16a34a;
}

.admin-week-panel-modal .admin-week-dismiss,
.admin-week-panel-modal .admin-week-close-text {
    background: #ff4747;
}

.admin-week-panel-modal .admin-week-close-text {
    width: auto;
    min-width: 96px;
}

.admin-game-result-modal {
    width: min(100%, 880px);
    gap: 18px;
    border: 0;
    border-radius: 8px;
    background: #050505;
    padding: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .42);
}

.admin-game-result-modal .admin-week-modal-header {
    display: grid;
    grid-template-columns: 1fr 160px;
    align-items: start;
    gap: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.admin-game-result-modal .admin-week-modal-header h3 {
    margin: 0;
    color: #28e09a;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 800;
}

.admin-game-result-modal .admin-week-modal-header p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 800;
}

.admin-game-result-modal .admin-week-close-text {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #e82627;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.admin-game-result-modal label {
    display: grid;
    gap: 7px;
    color: #4a6085;
    font-size: 14px;
    font-weight: 900;
}

.admin-game-result-modal .three-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.admin-game-result-modal input {
    min-height: 52px;
    border: 1px solid #dbe7f6;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    padding: 8px 14px;
    font-size: 16px;
    font-weight: 700;
}

.admin-game-result-modal .check-row {
    gap: 24px;
}

.admin-game-result-modal .check-row label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #405579;
    font-size: 16px;
}

.admin-game-result-modal .check-row input {
    width: 16px;
    min-height: 16px;
    padding: 0;
    accent-color: #1683ff;
}

.admin-game-result-modal .admin-week-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.admin-game-result-modal .admin-week-submit,
.admin-game-result-modal .admin-week-dismiss {
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    background: #e82627;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
}

.game-detail-page .admin-dashboard {
    font-size: 14px;
}

.game-detail-page .admin-header h1 {
    font-size: 28px;
}

.game-detail-page .admin-header p,
.game-detail-page .dashboard-meta span,
.game-detail-page .dashboard-meta strong,
.game-detail-page .admin-result-table,
.game-detail-page input,
.game-detail-page button,
.game-detail-page a {
    font-size: 14px;
}

.game-detail-page .dashboard-section h2 {
    margin: 0 0 18px;
    font-size: 20px;
}

.game-details-section {
    border-top: 1px solid var(--admin-border);
    padding-top: 20px;
}

.game-details-wrap,
.week-history-wrap {
    margin-top: 0;
}

.game-details-table td,
.game-details-table th,
.week-history-table td,
.week-history-table th {
    vertical-align: middle;
}

.edit-date-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 135px;
    align-items: end;
    gap: 14px;
    border-top: 1px solid var(--admin-border);
    border-bottom: 1px solid var(--admin-border);
    padding-top: 18px;
    padding-bottom: 18px;
}

.edit-date-section label {
    display: grid;
    gap: 7px;
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.edit-date-section input {
    min-height: 44px;
    font-weight: 800;
}

.edit-date-section .action-button {
    width: 100%;
    min-height: 46px;
}

.week-history-table td:first-child {
    display: grid;
    gap: 4px;
}

.week-history-table td:first-child a {
    color: #005bdc;
    font-size: 18px;
    font-weight: 900;
}

.week-history-table td:first-child small {
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.week-history-table .table-actions {
    gap: 10px;
}

.week-history-table .table-actions a,
.week-history-table .table-actions .link-danger {
    min-height: 29px;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 900;
}

.week-history-table .table-actions a {
    background: #e8e8ff;
    color: #3147aa;
}

.saved-week-section {
    background: linear-gradient(180deg, #fffdf4 0%, #fff 55%);
}

.saved-week-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.saved-week-head h2 {
    margin: 0;
}

.saved-week-head p {
    margin: 5px 0 0;
    color: #667085;
    font-size: 14px;
    font-weight: 800;
}

.week-history-cards {
    display: grid;
    gap: 12px;
}

.week-history-card {
    display: grid;
    grid-template-columns: minmax(170px, .7fr) minmax(170px, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #d9e4f2;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(17, 24, 39, .05);
}

.week-range-badge {
    display: grid;
    gap: 3px;
    border-left: 5px solid var(--admin-yellow);
    border-radius: 8px;
    background: #fff8d7;
    padding: 10px 12px;
}

.week-range-badge span {
    color: #005bdc;
    font-size: 16px;
    font-weight: 900;
}

.week-range-badge small {
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.week-card-summary {
    display: grid;
    gap: 4px;
}

.week-card-summary strong {
    color: #111827;
    font-size: 15px;
}

.week-card-summary span {
    color: #667085;
    font-size: 14px;
    font-weight: 800;
}

.week-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.week-card-actions form {
    margin: 0;
}

.week-card-actions a,
.week-card-actions .table-action-button,
.week-card-actions .link-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.week-card-actions a,
.week-card-actions .table-action-button {
    background: #e8e8ff;
    color: #3147aa;
}

.week-card-actions .link-danger {
    background: #fee7e7;
    color: #ca2929;
}

.week-history-empty {
    display: grid;
    gap: 5px;
    border: 1px dashed #e6d18a;
    border-radius: 10px;
    background: #fffaf0;
    padding: 18px;
    color: #667085;
}

.week-history-empty strong {
    color: #111827;
    font-size: 15px;
}

.login-page {
    min-height: 100vh;
    padding: 24px;
    background: #f4f7fb;
}

.login-shell {
    width: min(100%, 520px);
    border: 0;
    border-radius: 8px;
    background: #111827;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(20, 30, 48, .14);
}

.login-brand {
    display: none;
}

.admin-login-form {
    gap: 14px;
    padding: 0;
}

.admin-login-form label {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.admin-login-form input {
    min-height: 36px;
    border: 0;
    border-radius: 4px;
}

.admin-login-form button {
    min-height: 37px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffc61a, #ffba08);
    color: #fff;
    box-shadow: none;
}

@media (max-width: 600px) {
    .admin-page {
        padding: 16px 8px 24px;
    }

    .admin-dashboard,
    .admin-dashboard.admin-wide {
        padding: 16px 14px;
        border-radius: 16px;
    }

    .admin-header {
        flex-direction: column;
        gap: 12px;
    }

    .logout-button {
        width: 100%;
        min-height: 42px;
    }

    .admin-tabs {
        /* display: grid; */
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-tabs a {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        text-align: center;
    }

    .dashboard-meta,
    .date-open-row {
        grid-template-columns: 1fr;
    }

    .admin-week-modal-card {
        border-radius: 18px 18px 0 0;
    }

    .section-title-row {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .section-title-row h2 {
        margin: 0;
        font-size: 20px;
    }

    .section-title-row .dark-button {
        width: 100%;
        min-height: 48px;
        border-radius: 5px;
        font-size: 16px;
    }

    .game-list-wrap {
        overflow: visible;
        margin-top: 22px;
        border-radius: 8px;
        background: #fff;
        padding: 14px;
    }

    .game-table {
        display: block;
        border: 0;
    }

    .game-table thead {
        display: none;
    }

    .game-table tbody {
        display: grid;
        gap: 16px;
    }

    .game-table tr {
        display: block;
        border: 1px solid #d9e4f2;
        border-radius: 15px;
        background: #fff;
        padding: 14px;
        box-shadow: 0 8px 18px rgba(17, 24, 39, .04);
    }

    .game-table th,
    .game-table td {
        display: block;
        border: 0;
        border-bottom: 1px solid #edf1f7;
        padding: 8px 0;
        color: #111827;
        font-size: 16px;
        text-align: left;
        white-space: normal;
    }

    .game-table th::before,
    .game-table td::before {
        content: attr(data-label);
        display: block;
        /* margin-bottom: 8px; */
        color: #667085;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .game-table th[data-label="Name"] {
        font-size: 16px;
        font-weight: 900;
    }

    .game-table td[data-label="Days"],
    .game-table td[data-label="Live"] {
        display: none;
    }

    .game-table .table-actions {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 12px;
        border-bottom: 0;
        padding-bottom: 4px;
        white-space: normal;
    }

    .game-table .table-actions::before {
        flex: 0 0 100%;
        margin-bottom: 0;
    }

    .game-table .table-actions a,
    .game-table .table-actions .table-action-button,
    .game-table .table-actions .link-danger {
        min-height: 34px;
        border-radius: 999px;
        padding: 7px 13px;
        font-size: 14px;
        font-weight: 900;
    }

    .game-table .table-actions a,
    .game-table .table-actions .table-action-button {
        background: #e8e8ff;
        color: #3147aa;
    }

    .game-table .table-actions form {
        display: inline-flex;
        /* margin-top: 8px; */
    }

    .tez-chart-wrap {
        overflow: visible;
        margin-top: 18px;
        border-radius: 10px;
        background: #fff;
        padding: 10px;
    }

    .tez-chart-table {
        display: block;
        border: 0;
    }

    .tez-chart-table thead {
        display: none;
    }

    .tez-chart-table tbody {
        display: grid;
        gap: 14px;
    }

    .tez-chart-table tr {
        display: grid;
        gap: 0;
        border: 1px solid #d9e4f2;
        border-radius: 15px;
        background: #fff;
        padding: 14px;
        box-shadow: 0 7px 16px rgba(17, 24, 39, .04);
    }

    .tez-chart-table th,
    .tez-chart-table td {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: center;
        gap: 12px;
        border: 0;
        border-bottom: 1px solid #edf1f7;
        padding: 4px 0;
        text-align: left;
    }

    .tez-chart-table tr > :last-child {
        border-bottom: 0;
    }

    .tez-chart-table th::before,
    .tez-chart-table td::before {
        content: attr(data-label);
        align-self: center;
        text-align: left;
        color: #667085;
        font-size: 13px;
        font-weight: 900;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .tez-chart-table th {
        color: #111827;
        font-size: 22px;
        font-weight: 900;
        text-align: right;
    }

    .tez-chart-table input[type="text"],
    .tez-chart-table input:not([type]),
    .tez-chart-table .patti-input,
    .tez-chart-table .single-input {
        width: 100%;
        /* min-height: 44px; */
        border: 1px solid #d9e4f2;
        border-radius: 7px;
        background: #fff;
        padding: 6px 12px;
        color: #111827;
        font-size: 18px;
        font-weight: 500;
    }

    .tez-chart-table td[data-label="Game Off"] label {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        min-height: 36px;
        border-bottom: 0;
        color: #111827;
        font-size: 18px;
        font-weight: 900;
    }

    .tez-chart-table td[data-label="Game Off"] input {
        width: 16px;
        min-height: 16px;
    }

    .game-detail-page .admin-header h1 {
        font-size: 20px;
    }

    .game-detail-page .admin-header p,
    .game-detail-page .dashboard-meta span,
    .game-detail-page .dashboard-meta strong,
    .game-detail-page .admin-result-table,
    .game-detail-page input,
    .game-detail-page button,
    .game-detail-page a {
        font-size: 14px;
        min-width: 120px;
    }

    .game-detail-page .dashboard-section h2 {
        font-size: 18px;
    }

    .edit-date-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .edit-date-section .action-button {
        min-height: 44px;
    }

    .game-details-wrap,
    .week-history-wrap {
        overflow: visible;
        border-radius: 8px;
        background: #fff;
        padding: 10px;
    }

    .game-details-table,
    .week-history-table {
        display: block;
        border: 0;
    }

    .game-details-table thead,
    .week-history-table thead {
        display: none;
    }

    .game-details-table tbody,
    .week-history-table tbody {
        display: grid;
        gap: 12px;
    }

    .game-details-table tr,
    .week-history-table tr {
        display: block;
        border: 1px solid #d9e4f2;
        border-radius: 13px;
        background: #fff;
        padding: 12px;
        box-shadow: 0 7px 16px rgba(17, 24, 39, .04);
    }

    .game-details-table th,
    .game-details-table td,
    .week-history-table th,
    .week-history-table td {
        display: block;
        border: 0;
        border-bottom: 1px solid #edf1f7;
        padding: 6px 0;
        color: #111827;
        font-size: 16px;
        text-align: left;
        white-space: normal;
    }

    .game-details-table th::before,
    .game-details-table td::before,
    .week-history-table th::before,
    .week-history-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: #667085;
        font-size: 12px;
        font-weight: 900;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .game-details-table td:last-child,
    .week-history-table td:last-child {
        border-bottom: 0;
    }

    .week-history-table td:first-child a {
        font-size: 16px;
    }

    .week-history-table .table-actions {
        display: grid;
        gap: 9px;
        border-bottom: 0;
    }

    .week-history-table .table-actions a,
    .week-history-table .table-actions .link-danger,
    .week-history-table .table-actions form {
        width: min(100%, 160px);
    }

    .week-history-table .table-actions a,
    .week-history-table .table-actions .link-danger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 5px 12px;
        font-size: 14px;
    }

    .saved-week-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .week-history-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .week-card-actions {
        justify-content: flex-start;
        gap: 9px;
    }

    .week-card-actions a,
    .week-card-actions .table-action-button,
    .week-card-actions .link-danger {
        min-height: 30px;
        font-size: 14px;
    }

    .week-card-actions .table-action-button {
        flex: 1 1 140px;
    }

    .week-card-actions form {
        flex: 0 0 100%;
    }

    .admin-week-panel-modal {
        width: 100%;
        max-height: calc(100vh - 32px);
        gap: 14px;
        padding: 18px;
    }

    .week-panel-dates,
    .week-panel-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .admin-week-panel-modal h3 {
        font-size: 18px;
    }

    .admin-week-panel-modal label,
    .admin-week-panel-modal input,
    .admin-week-panel-modal .admin-week-submit,
    .admin-week-panel-modal .admin-week-dismiss,
    .admin-week-panel-modal .admin-week-close-text {
        font-size: 14px;
    }

    .admin-week-panel-modal input {
        min-height: 42px;
    }

    .admin-week-panel-modal .admin-week-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-game-result-modal {
        width: 100%;
        max-height: calc(100vh - 32px);
        gap: 14px;
        padding: 18px;
    }

    .admin-game-result-modal .admin-week-modal-header,
    .admin-game-result-modal .three-fields,
    .admin-game-result-modal .admin-week-modal-actions {
        grid-template-columns: 1fr;
        padding-bottom: 16px;
    }

    .admin-game-result-modal .admin-week-modal-header {
        gap: 12px;
    }

    .admin-game-result-modal .admin-week-modal-header h3 {
        font-size: 18px;
    }

    .admin-game-result-modal input,
    .admin-game-result-modal .admin-week-close-text,
    .admin-game-result-modal .admin-week-submit,
    .admin-game-result-modal .admin-week-dismiss,
    .admin-game-result-modal .check-row label {
        font-size: 14px;
    }

    .admin-game-result-modal input,
    .admin-game-result-modal .admin-week-close-text,
    .admin-game-result-modal .admin-week-submit,
    .admin-game-result-modal .admin-week-dismiss {
        min-height: 42px;
    }
}
