.results-page {
    max-width: 100%;
}

.results-page.container {
    padding-left: 20px;
    padding-right: 20px;
}

.results-page .hero h1,
.results-page #resultsTitle {
    color: #ffff00 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.results-association-line {
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.results-description {
    margin: 10px auto 0;
    max-width: 720px;
    font-style: italic;
    color: #f4f4f5;
    text-align: center;
}

.results-description[hidden] {
    display: none !important;
}

.results-table-wrap {
    margin-top: 20px;
}

.results-empty {
    padding: 24px;
    text-align: center;
    color: #e4e4e7;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
}

.results-scroll-hint {
    margin: 0 0 10px;
    text-align: center;
    font-size: 13px;
    color: #e4e4e7;
}

.results-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.results-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    font-size: 14px;
}

.results-table th,
.results-table td {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    text-align: left;
    vertical-align: middle;
    max-width: 280px;
    word-break: break-word;
}

.results-table thead th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.results-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.results-table tbody tr.results-row-highlight {
    background: #fef9c3 !important;
    outline: 2px solid #eab308;
}

.results-access-modal .bank-modal-panel label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 600;
    font-size: 13px;
}

.results-access-modal .bank-modal-panel input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

.results-access-modal .bank-modal-panel .primary-btn {
    width: 100%;
    margin-top: 8px;
}

.bank-modal-hint-bottom {
    margin: 8px 0 0;
    font-size: 12px;
}

.results-action-col {
    white-space: nowrap;
    min-width: 120px;
}

.results-add-bank-btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
}

.results-add-bank-btn.is-disabled,
.results-add-bank-btn:disabled {
    background: #9ca3af !important;
    color: #f3f4f6 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    box-shadow: none !important;
    pointer-events: none;
}

.results-table tbody tr.results-row-locked td:not(.results-action-col) {
    color: #9ca3af;
}

.bank-done-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 12px;
}

.bank-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bank-modal[hidden] {
    display: none !important;
}

.bank-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.bank-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    color: #111827;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.bank-modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
}

.bank-modal-hint {
    margin: 0 0 14px;
    font-size: 13px;
    color: #4b5563;
}

.bank-step label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 600;
    font-size: 13px;
}

.bank-step input,
.bank-step select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.bank-step .primary-btn {
    margin-top: 12px;
    width: 100%;
}

.bank-step[hidden],
.bank-step-verify[hidden] {
    display: none !important;
}

.bank-step-verify label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 600;
    font-size: 13px;
}

.bank-step-verify input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 4px;
}

.bank-verify-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.bank-verify-actions .primary-btn {
    width: 100%;
    margin-top: 0 !important;
}

.bank-btn-secondary {
    background: #e5e7eb !important;
    color: #111827 !important;
}

.bank-modal-message-top {
    margin: 0 0 12px;
    min-height: 1.2em;
}

.bank-modal-message {
    margin: 12px 0 0;
    font-size: 13px;
    min-height: 1.2em;
}

.bank-modal-message.is-error {
    color: #b91c1c;
}

.bank-modal-message.is-success {
    color: #15803d;
}

.admin-bank-table-wrap {
    overflow-x: auto;
    margin-top: 12px;
}

.admin-bank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-bank-table th,
.admin-bank-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    text-align: left;
}

.admin-bank-table thead th {
    background: rgba(255, 214, 77, 0.2);
}

.home-button-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 214, 77, 0.25);
    color: #ffd64d;
}

.home-button-type-badge.results {
    background: rgba(96, 165, 250, 0.25);
    color: #93c5fd;
}

.home-results-status {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 214, 77, 0.25);
}

.home-results-status-summary {
    margin: 0 0 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.home-results-preview-wrap {
    overflow-x: auto;
}

.home-results-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.home-results-preview-table th,
.home-results-preview-table td {
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 8px;
    text-align: left;
    white-space: nowrap;
}

.home-results-preview-table thead th {
    background: rgba(255, 214, 77, 0.15);
}
