/* 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: var(--tr-text, #1f2937); }

.tr-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.tr-plate {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #1e293b;
    padding: 3px 10px;
    border-radius: 5px;
    border: 2px solid #f59e0b;
    letter-spacing: 1.5px;
}

.tr-title-date { font-weight: 600; font-size: 13px; color: var(--tr-text, #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: var(--tr-tile, #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: var(--tr-muted, #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: var(--tr-line, #e5e7eb);
    color: var(--tr-text, #1f2937);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

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

.tr-card {
    position: relative;
    background: var(--tr-card, #e8e8e8);
    border: 1px solid var(--tr-line, #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, var(--tr-card-hi, #ffffff), var(--tr-card-hi2, #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: var(--tr-chip, #eef2ff);
    color: var(--tr-chip-text, #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: var(--tr-text, #374151); }
.tr-row span:last-child { font-weight: 600; }

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

/* Mini globo rojo "E" (igual al del mapa) para el conteo de excesos de velocidad */
.tr-pin { display: inline-block; width: 15px; height: 15px; background: #c62828; border: 1.5px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); vertical-align: -3px; margin: 0 4px 0 2px; box-shadow: 0 1px 3px rgba(0,0,0,.4); text-align: center; }
.tr-pin i { display: block; transform: rotate(45deg); color: #fff; font: 700 9px/12px system-ui, sans-serif; }
.tr-strong.tr-alert { color: #ffd2d2; }

/* Ventanas de viaje y parada en el mapa */
.hm-pop { min-width: 190px; font-size: 12px; line-height: 1.5; }
.hm-pop-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; color: #1a73e8; }
.hm-pop-row { display: flex; justify-content: space-between; gap: 12px; padding: 1px 0; border-top: 1px solid #e5e7eb; }
.hm-pop-row span:first-child { color: #6b7280; }
.hm-pop-row span:last-child { font-weight: 600; text-align: right; }
