/* trips.css - Panel de viajes (mismo archivo en /placas y en la app) */

.tr-panel { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #1f2937; }

.tr-title { font-weight: 700; font-size: 14px; margin-bottom: 10px; color: #111827; }

.tr-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 14px;
    color: white;
}

.tr-summary h4 { margin: 0 0 10px; font-size: 15px; }
.tr-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12.5px; }
.tr-dim { opacity: 0.85; }
.tr-strong { font-weight: 700; }
.tr-summary-grid .tr-strong { font-size: 14px; margin-top: 2px; }

.tr-summary-foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12.5px;
}

.tr-summary-foot > div { display: flex; justify-content: space-between; margin-top: 4px; }

.tr-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }

.tr-tile {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}

.tr-num { font-size: 26px; font-weight: 800; color: #1a73e8; line-height: 1.1; }
.tr-label { font-size: 12px; color: #6b7280; margin-top: 2px; }

.tr-section {
    font-size: 15px;
    margin: 6px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #1a73e8;
}

.tr-actions { display: flex; gap: 8px; margin-bottom: 10px; }

.tr-btn {
    flex: 1;
    padding: 9px 6px;
    border: none;
    border-radius: 8px;
    background: #e5e7eb;
    color: #1f2937;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.tr-btn-primary { background: #1a73e8; color: white; }

.tr-card {
    position: relative;
    background: #e8e8e8;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #1a73e8;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    opacity: 0.4;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.tr-card.tr-selected {
    opacity: 1;
    background: linear-gradient(to right, #ffffff, #f8f9fa);
    border-left-width: 5px;
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.25), 0 0 0 1px rgba(26, 115, 232, 0.15);
}

.tr-card.tr-selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #34a853;
    color: white;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tr-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-right: 30px; }
.tr-card h4 { margin: 0; font-size: 15px; }

.tr-focus {
    border: none;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.tr-row { display: flex; justify-content: space-between; padding: 3px 0; color: #374151; }
.tr-row span:last-child { font-weight: 600; }

.tr-empty { text-align: center; color: #6b7280; padding: 16px 0; font-size: 13px; }
