/* Track & Verify — layout not dependent on Tailwind JIT */
.page-track-verify main.sh-main {
    flex: 1 0 auto;
    min-height: auto;
    overflow: visible;
}

.tv-is-hidden {
    display: none !important;
}

.tv-alert {
    max-width: 36rem;
    margin: 0 auto 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.tv-alert--info {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.tv-page {
    max-width: 64rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 3rem;
}

.tv-page-head {
    text-align: center;
    margin-bottom: 2rem;
}

.tv-page-head h1 {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 800;
    color: #1f2937;
}

.tv-page-head p {
    margin: 0.5rem 0 0;
    color: #4b5563;
}

.tv-page-head .tv-mode-links {
    margin-top: 0.65rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.tv-grid {
    display: grid;
    gap: 1.5rem;
}

.tv-grid--dual {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .tv-grid--dual {
        grid-template-columns: 1fr 1fr;
    }
}

.tv-grid--single {
    max-width: 36rem;
    margin: 0 auto;
}

.tv-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
}

.tv-card--track {
    border-top: 3px solid #1e5f9e;
}

.tv-card--verify {
    border-top: 3px solid #0ea5e9;
}

.tv-card-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.tv-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tv-field label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.tv-field input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    box-sizing: border-box;
}

.tv-field input:focus {
    outline: none;
    border-color: #1e5f9e;
    box-shadow: 0 0 0 2px rgba(30, 95, 158, 0.15);
}

.tv-btn {
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s;
}

.tv-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.tv-btn--track {
    background: #1e5f9e;
}

.tv-btn--verify {
    background: #0ea5e9;
}

.tv-result {
    margin-top: 2rem;
}

.tv-result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    padding: 1.5rem;
}

.tv-result-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.tv-result-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1.25rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .tv-result-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.tv-result-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tv-result-row strong {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.8125rem;
}

.tv-result-row span {
    color: #111827;
    font-weight: 600;
}

.tv-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.tv-badge--confirmed {
    background: #dcfce7;
    color: #166534;
}

.tv-badge--pending {
    background: #fef3c7;
    color: #92400e;
}

.tv-badge--cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.tv-badge--paid {
    background: #dbeafe;
    color: #1e40af;
}

.tv-result-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.tv-result-loading {
    color: #6b7280;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.tv-detail-block {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: left;
    font-size: 0.875rem;
}

.tv-detail-block h4 {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.tv-detail-block .tv-detail-lines > div {
    margin-top: 0.25rem;
}

.tv-footer-links {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.tv-auto-hint {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
}
