/* Plataforma Geotab - estilos comunes compartidos */

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", "Calibri", "Tahoma", sans-serif;
}

.nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.link {
    text-decoration: none;
    border-radius: 10px;
    padding: 9px 12px;
    border: 1px solid #bfd3ee;
    background: #edf5ff;
    color: #0d3f7a;
    font-weight: 600;
    font-size: 0.88rem;
}

/* Tablas globales: zebra rows + hover + cursor */
table tbody tr > td {
    transition: background-color 0.16s ease;
}

table tbody tr:nth-child(odd) > td {
    background-color: #ffffff !important;
}

table tbody tr:nth-child(even) > td {
    background-color: #f1f6ff !important;
}

table tbody tr:hover > td {
    background-color: #dbeafe !important;
    cursor: pointer;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    min-width: 240px;
    max-width: 340px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.25s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast.info  { background: #1a3a6b; color: #daeaff; border-left: 4px solid #4a9fff; }
.toast.ok    { background: #0c4a2b; color: #b6f0d3; border-left: 4px solid #22d475; }
.toast.warn  { background: #4a2500; color: #ffd8a8; border-left: 4px solid #f97316; }
.toast.error { background: #4a0c0c; color: #ffd0d0; border-left: 4px solid #f44336; }

.toast-icon { font-size: 1.1rem; flex-shrink: 0; }
.toast.hiding { opacity: 0; transform: translateX(30px); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 720px) {
    .nav { gap: 6px; }

    .link {
        padding: 7px 10px;
        font-size: 0.8rem;
    }
}
