/* File: css/tyler-review.css — Tyler Review page */

.status-message { padding: 0.8rem 1rem; margin-bottom: 1rem; border-radius: 4px; display: none; }
.status-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-message.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.tr-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.tr-controls select {
    margin-left: 6px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.tr-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.tr-tile {
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tr-tile strong { font-size: 1.4rem; }
.tr-tile-label { font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 0.03em; }
.tr-tile-sub { font-size: 0.8rem; color: #777; }

.loading { text-align: center; padding: 3rem; color: #666; }
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.tr-table-wrap { overflow-x: auto; }
.tr-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.tr-table th, .tr-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
    vertical-align: top;
}
.tr-table th { background: #f8f9fa; font-weight: 600; white-space: nowrap; }
.tr-table tbody tr { cursor: pointer; }
.tr-table tbody tr:hover td { background: #f8fbff; }
.tr-sub { font-size: 0.82rem; color: #666; margin-top: 2px; max-width: 360px; }
.tr-empty { text-align: center; padding: 2rem; color: #666; background: #fff; border-radius: 8px; }

.tr-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 2px 4px 2px 0;
    white-space: nowrap;
}
.tr-good { background: #d4edda; color: #155724; }
.tr-warn { background: #fff3cd; color: #856404; }
.tr-bad  { background: #f8d7da; color: #721c24; }

.tr-detail {
    background: #fff;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.tr-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tr-detail-head h2 { font-size: 1.1rem; margin: 0; }
.tr-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
    margin-top: 12px;
}
@media (max-width: 800px) { .tr-detail-grid { grid-template-columns: 1fr; } }
.tr-detail h3 { font-size: 0.95rem; margin: 14px 0 6px; }
.tr-pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.88rem;
    margin: 0;
    max-height: 520px;
    overflow-y: auto;
}
.tr-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 0.88rem; }
.tr-facts dt { color: #666; }
.tr-facts dd { margin: 0; }
