/* ==========================================================================
   Tachograph Module Styles (Standalone & Tobuli Integration)
   Autosufficiente al 100%: definisce variabili proprie senza dipendere da file esterni
   ========================================================================== */

:root {
    --suite-bg: #0f172a;
    --suite-card-bg: #1e293b;
    --suite-text-primary: #0f172a;
    --suite-text-secondary: #475569;
    --suite-text-muted: #94a3b8;
    --suite-border: #e2e8f0;
    --suite-border-subtle: #f1f5f9;
    --suite-accent: #0284c7;
    --suite-radius-sm: 6px;
    --suite-radius-md: 10px;
}

.tachograph-modal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    border: none;
}

.tachograph-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.tachograph-dropzone {
    border: 2px dashed #94a3b8;
    background: #f8fafc;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tachograph-dropzone:hover,
.tachograph-dropzone.dragover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.tachograph-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.tachograph-badge-drive {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.tachograph-badge-work {
    background: #fef9c3;
    color: #a16207;
    border: 1px solid #fde047;
}

.tachograph-badge-avail {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;
}

.tachograph-badge-rest {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.tachograph-timeline-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    min-height: 120px;
}

.toll-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.toll-icon-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08);
}

.toll-icon-btn-whatsapp {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.toll-icon-btn-whatsapp:hover {
    background: #22c55e;
    color: #ffffff;
    border-color: #22c55e;
}

/* ==========================================================================
   Tachograph Pro Cockpit & Tabs Styles (Modal & Desktop)
   ========================================================================== */

.tacho-cockpit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.tacho-tabs-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

.tacho-tab-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.tacho-tab-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tacho-tab-btn.active {
    background: #e0f2fe;
    border-color: #7dd3fc;
    color: #0284c7;
    font-weight: 700;
}

.tacho-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: #e11d48;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.tacho-tab-panel {
    display: none;
}

.tacho-tab-panel.active {
    display: block;
}

.tacho-filter-bar {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.tacho-filter-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tacho-filter-pill:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tacho-filter-pill.active {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

/* Compact & Subtle Disclaimer Notice (Micro-Footnote) */
.tacho-disclaimer-compact {
    margin-top: 10px;
    padding: 3px 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 9.5px;
    line-height: 1.2;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tacho-disclaimer-compact i {
    color: #94a3b8;
    font-size: 10px;
    flex-shrink: 0;
}

/* Status Badges for Pro Blocks (Compensations, Hardware, Calibrations) */
.tacho-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}
.tacho-badge-compensated { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.tacho-badge-pending { background: #e0f2fe; color: #0284c7; border: 1px solid #7dd3fc; }
.tacho-badge-overdue { background: #ffe4e6; color: #be123c; border: 1px solid #fda4af; }
.tacho-badge-undetermined { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }
.tacho-badge-valid { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.tacho-badge-expiring { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }
.tacho-badge-expired { background: #ffe4e6; color: #be123c; border: 1px solid #fda4af; }
.tacho-badge-present { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.tacho-badge-absent { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

.tacho-hex-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #0f172a;
}

.tacho-sev-msi { background: #701a75; color: #ffffff; padding: 1px 6px; border-radius: 3px; font-size: 0.68rem; font-weight: 700; }
.tacho-sev-vsi { background: #be123c; color: #ffffff; padding: 1px 6px; border-radius: 3px; font-size: 0.68rem; font-weight: 700; }
.tacho-sev-si { background: #d97706; color: #ffffff; padding: 1px 6px; border-radius: 3px; font-size: 0.68rem; font-weight: 700; }
.tacho-sev-mi { background: #0284c7; color: #ffffff; padding: 1px 6px; border-radius: 3px; font-size: 0.68rem; font-weight: 700; }




