@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('../img/ChatGPT\ Image\ 28\ de\ mar.\ de\ 2026\,\ 14_19_12.png');
    background-size: cover;
    background-position: center;
}

.container {
    width: 420px;
    background-color: transparent;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 10px;
    box-shadow: 0 0 20px rgb(255, 255, 255);
    color: #ffffff;
    padding: 30px 40px;
}

.container h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
}

.input-box {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 30px 0;
}

.input-box input {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 40px;
    outline: none;
    /* Aumentado de 45px para 75px para o texto não passar por baixo dos dois ícones */
    padding: 20px 75px 20px 20px; 
    font-size: 16px;
    color: #ffffff;
}

.input-box input::placeholder {
    color: #ffffff;
}

/* Ícones padrão (Usuário e Cadeado) */
.input-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #000000;
}

/* ==========================================================================
   Ajustes exclusivos do Ícone de Mostrar/Ocultar Senha (Olhinho)
   ========================================================================== */
.input-box .toggle-password {
    right: 50px; /* Posiciona o olho logo ao lado do cadeado */
    color: #ffffff; /* Deixa o olho branco para destacar no fundo, ou mude para #000000 se preferir preto */
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.input-box .toggle-password:hover {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.1); /* Dá um leve zoom quando passa o mouse */
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    margin: -15px 0 15px;
}

.remember-forgot label input{
    accent-color: #000000;
    margin-right: 5px;
}

.remember-forgot a {
    color: #ffffff;
    text-decoration: none;
}

.remember-forgot a:hover {
    text-decoration: underline;
}

.login {
    width: 100%;
    height: 50px;
    background-color: rgb(0, 17, 255);
    border: none;
    border-radius: 40px;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 0 10px rgb(0, 0, 0, .1);
    margin-top: 10px;
}

.login:hover {
    background-color: transparent;
    border: 2px solid rgb(107, 107, 107);
    color: #fff;
    transition: 0.5s;
}

.register-link {
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
}

.register-link a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

.container{

    width:90%;
    max-width:1200px;

    margin:auto;

    margin-top:40px;

    padding:30px;

}

.form-grid{

    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));

    gap:15px;

    margin-bottom:25px;

}

table{

    width:100%;

    border-collapse:collapse;

    margin-top:20px;

}

th{

    background:#1e293b;

    color:white;

}

th,td{

    padding:14px;

    text-align:center;

    border:1px solid #ddd;

}

tr:nth-child(even){

    background:#f5f5f5;

}

tr:hover{

    background:#e8eefc;

}

button{

    cursor:pointer;

}

.export-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.export-actions button {
    min-height: 38px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #e8f1ff;
    color: #1d4ed8;
    cursor: pointer;
    font-weight: 900;
    padding: 0 14px;
}

.export-actions button:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.tracking-export-actions {
    justify-content: flex-start;
    margin-bottom: 0;
}

.maintenance-filters {
    align-items: end;
}

.maintenance-list {
    display: grid;
    gap: 12px;
}

.maintenance-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    border: 1px solid #dbeafe;
    border-left: 5px solid #1d4ed8;
    border-radius: 8px;
    background: #ffffff;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.maintenance-card.pendente {
    border-left-color: #dc2626;
}

.maintenance-card.agendada {
    border-left-color: #f59e0b;
}

.maintenance-card.concluida {
    border-left-color: #16a34a;
}

.maintenance-card h3,
.maintenance-card strong {
    color: #0f172a;
}

.maintenance-card p,
.maintenance-card small,
.maintenance-card li {
    color: #64748b;
}

.maintenance-card ul {
    margin: 10px 0 0 18px;
}

.maintenance-status {
    display: inline-flex;
    border-radius: 999px;
    background: #e8f1ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
    text-transform: uppercase;
}

.maintenance-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 170px;
}

.maintenance-actions button,
.secondary-action {
    min-height: 38px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #e8f1ff;
    color: #1d4ed8;
    cursor: pointer;
    font-weight: 900;
    padding: 0 14px;
}

.maintenance-actions button:hover,
.secondary-action:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.maintenance-actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.maintenance-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.maintenance-summary article {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.maintenance-summary span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.maintenance-summary strong {
    display: block;
    color: #062a63;
    font-size: 20px;
}

.maintenance-dialog {
    width: min(720px, calc(100vw - 28px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
}

.maintenance-dialog::backdrop {
    background: rgba(15, 23, 42, .5);
}

.maintenance-dialog form {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.maintenance-dialog h2 {
    color: #062a63;
}

.maintenance-dialog p {
    color: #64748b;
}

.maintenance-dialog textarea {
    width: 100%;
    resize: vertical;
}

.maintenance-dialog menu {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 760px) {
    .maintenance-card {
        grid-template-columns: 1fr;
    }

    .maintenance-actions {
        min-width: 0;
    }

    .maintenance-summary {
        grid-template-columns: 1fr;
    }
}

.alerts-page .pecas-hero {
    align-items: center;
}

.alerts-page .pecas-panel {
    box-shadow: 0 16px 40px rgba(7, 27, 58, 0.08);
}

.alerts-overview-panel {
    padding-bottom: 22px;
}

.alerts-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.alerts-summary article {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: none;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.alerts-summary article::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #1d4ed8;
}

.alerts-summary span,
.alerts-updated {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.alerts-updated {
    margin-top: 4px;
    text-transform: none;
}

.alerts-summary strong {
    display: block;
    color: #062a63;
    font-size: 26px;
    line-height: 1;
    margin-top: 8px;
}

.alerts-summary small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

.alerts-list {
    display: grid;
    gap: 10px;
}

.alert-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    border: 1px solid #dbeafe;
    border-left: 4px solid #1d4ed8;
    border-radius: 8px;
    background: #fbfdff;
    padding: 16px;
    box-shadow: none;
    transition: border-color 180ms ease, background 180ms ease;
}

.alert-item:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.alert-item.critica {
    border-left-color: #1e40af;
}

.alert-item.alta {
    border-left-color: #2563eb;
}

.alert-item.media {
    border-left-color: #60a5fa;
}

.alert-item > .material-icons-sharp {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e8f1ff;
    color: #1d4ed8;
}

.alert-item strong {
    color: #0f172a;
    font-size: 16px;
}

.alert-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alert-item-header span {
    border-radius: 999px;
    background: #e8f1ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 9px;
}

.alert-item p {
    color: #475569;
    margin: 5px 0 8px;
}

.alert-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.alert-meta span {
    border-radius: 999px;
    background: #eef6ff;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
}

.alerts-page .secondary-action:disabled {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 700px) {
    .alerts-summary {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Tela de pecas
   ========================================================================== */
.pecas-page {
    display: block;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(6, 11, 31, 0.9), rgba(13, 31, 61, 0.78)),
        url('../img/ChatGPT\ Image\ 28\ de\ mar.\ de\ 2026\,\ 14_19_12.png');
    background-size: cover;
    background-position: center;
    color: #172033;
    padding: 32px 18px;
}

.pecas-page.embedded-page {
    min-height: auto;
    background: transparent;
    padding: 0;
}

.pecas-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.embedded-page .pecas-shell {
    width: 100%;
}

.pecas-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 22px;
    color: #ffffff;
}

.embedded-page .pecas-hero {
    display: none;
}

.pecas-kicker,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pecas-kicker {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
}

.pecas-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    text-align: left;
}

.pecas-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 16px;
    line-height: 1.7;
}

.pecas-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
    padding: 26px;
    margin-bottom: 22px;
}

.embedded-page .pecas-panel {
    box-shadow: 0 16px 40px rgba(7, 27, 58, 0.08);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-label {
    background: #eaf1ff;
    color: #1d4ed8;
    margin-bottom: 8px;
}

.section-heading h2 {
    color: #111827;
    font-size: 22px;
    line-height: 1.2;
}

.pecas-form {
    grid-template-columns: repeat(5, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 0;
}

.pecas-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.pecas-form label span {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.pecas-form input,
.pecas-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    padding: 0 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.pecas-form input::placeholder {
    color: #94a3b8;
}

.pecas-form select {
    cursor: pointer;
}

.pecas-form input:focus,
.pecas-form select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.primary-action {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    padding: 0 22px;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.25);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(29, 78, 216, 0.3);
}

.primary-action:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.secondary-action {
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 800;
    padding: 0 16px;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.secondary-action:hover {
    border-color: #1d4ed8;
    background: #eff6ff;
}

.form-feedback {
    min-height: 22px;
    margin-top: 14px;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
}

.form-feedback:empty {
    display: none;
}

.form-feedback.error {
    color: #b91c1c;
}

.table-card {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.pecas-page .tabela {
    min-width: 720px;
    margin-top: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.pecas-page .tabela th {
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.pecas-page .tabela th,
.pecas-page .tabela td {
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px;
    text-align: left;
    vertical-align: middle;
}

.pecas-page .tabela tbody tr:nth-child(even) {
    background: #f8fafc;
}

.pecas-page .tabela tbody tr:hover {
    background: #eef4ff;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 28px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-weight: 800;
    padding: 4px 10px;
}

.table-state {
    color: #64748b;
    font-weight: 700;
    text-align: center !important;
}

.table-state.error {
    color: #b91c1c;
}

.install-form {
    grid-template-columns: minmax(220px, 1.1fr) minmax(220px, 1.1fr) minmax(180px, 0.8fr) auto;
}

.install-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.install-summary article {
    min-height: 130px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 18px;
}

.install-summary span {
    display: block;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.install-summary strong {
    display: block;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.install-summary small {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .pecas-form,
    .install-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .primary-action {
        width: 100%;
    }

    .install-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .pecas-page {
        padding: 22px 12px;
    }

    .pecas-hero h1 {
        font-size: 34px;
    }

    .pecas-panel {
        padding: 18px;
    }

    .pecas-form,
    .install-form {
        grid-template-columns: 1fr;
    }

    .table-card {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .pecas-page .tabela {
        min-width: 0;
    }

    .pecas-page .tabela thead {
        display: none;
    }

    .pecas-page .tabela,
    .pecas-page .tabela tbody,
    .pecas-page .tabela tr,
    .pecas-page .tabela td {
        display: block;
        width: 100%;
    }

    .pecas-page .tabela tr {
        overflow: hidden;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #ffffff;
        margin-bottom: 12px;
    }

    .pecas-page .tabela tbody tr:nth-child(even) {
        background: #ffffff;
    }

    .pecas-page .tabela td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        border-bottom: 1px solid #e2e8f0;
        text-align: right;
    }

    .pecas-page .tabela td::before {
        content: attr(data-label);
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
    }

    .pecas-page .tabela .table-state {
        display: block;
        text-align: center !important;
    }

    .pecas-page .tabela .table-state::before {
        display: none;
    }
}


.danger-action{

    background:#dc3545;

    color:#fff;

    border:none;

    padding:10px 16px;

    border-radius:8px;

    cursor:pointer;

    margin-left:10px;

}

.danger-action:hover{

    background:#b92a37;

}

/* ==========================================================================
   Checklist visual
   ========================================================================== */
.checklist-page .pecas-form {
    grid-template-columns: none;
}

.checklist-start-form {
    display: grid;
    gap: 18px;
}

.driver-route-board,
.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.driver-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 16px;
    text-align: left;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.driver-card:hover,
.driver-card.selected {
    border-color: #2563eb;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.16);
    transform: translateY(-1px);
}

.driver-card.selected {
    background: #f7fbff;
}

.driver-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 900;
    text-transform: uppercase;
}

.driver-card-main {
    display: grid;
    gap: 6px;
}

.driver-card-main strong,
.checklist-route-card h3 {
    color: #111827;
    font-size: 16px;
    line-height: 1.25;
}

.driver-card-main small,
.checklist-route-card p,
.driver-km {
    color: #64748b;
    font-size: 13px;
}

.driver-km {
    font-weight: 800;
    white-space: nowrap;
}

.start-details {
    display: grid;
    grid-template-columns: minmax(160px, 0.6fr) minmax(180px, 0.8fr) minmax(260px, 1.4fr);
    gap: 14px;
}

.start-details label,
.route-event-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.start-details span,
.route-event-form span {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.start-details input,
.start-details textarea,
.route-event-form input,
.route-event-form select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    padding: 0 14px;
}

.start-details textarea {
    padding-top: 12px;
    resize: vertical;
}

.checklist-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checklist-flags label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
    padding: 0 12px;
}

.checklist-route-card {
    display: grid;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.route-card-top,
.route-card-metrics,
.route-actions,
.route-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.route-card-top {
    color: #64748b;
    font-size: 13px;
}

.route-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 0 10px;
    text-transform: uppercase;
}

.route-status.open {
    background: #fff7ed;
    color: #c2410c;
}

.route-status.done {
    background: #dcfce7;
    color: #166534;
}

.mini-route {
    display: grid;
    grid-template-columns: 16px 1fr 16px;
    align-items: center;
    gap: 8px;
    min-height: 22px;
}

.route-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.route-dot-start {
    background: #2563eb;
}

.route-dot-end {
    background: #16a34a;
}

.route-dot-pending {
    background: #f97316;
}

.route-line {
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #f59e0b, #16a34a);
}

.route-card-metrics {
    align-items: stretch;
}

.route-card-metrics span {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
}

.route-card-metrics strong {
    color: #111827;
    font-size: 15px;
}

.route-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.route-actions .primary-action,
.route-actions .danger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-left: 0;
    text-decoration: none;
}

.route-finished {
    color: #166534;
    font-weight: 900;
}

.route-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 800;
    padding: 22px;
    text-align: center;
}

.route-empty.error {
    color: #b91c1c;
}

.route-detail-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    color: #ffffff;
}

.route-detail-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    text-align: left;
}

.route-detail-hero p {
    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
}

.back-link {
    width: fit-content;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
}

.route-map-panel {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
    margin-bottom: 22px;
    padding: 24px;
}

.route-map-header {
    margin-bottom: 18px;
}

.route-map-header h2 {
    color: #111827;
    font-size: 22px;
}

.route-map-surface {
    position: relative;
    min-height: 360px;
    overflow-x: auto;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background:
        linear-gradient(0deg, rgba(255,255,255,0.58), rgba(255,255,255,0.58)),
        repeating-linear-gradient(45deg, #edf4f8 0 18px, #e4edf3 18px 36px);
    padding: 28px;
}

.route-road {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 168px;
    height: 12px;
    border-radius: 999px;
    background: #263544;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.route-road::after {
    content: "";
    position: absolute;
    inset: 5px 14px auto;
    height: 2px;
    background: repeating-linear-gradient(90deg, #ffffff 0 22px, transparent 22px 38px);
    opacity: 0.82;
}

.route-points {
    position: relative;
    min-width: 780px;
    min-height: 300px;
}

.route-point {
    position: absolute;
    top: 133px;
    width: 190px;
    transform: translateX(-50%);
}

.point-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 24px;
    height: 24px;
    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    transform: translateX(-50%);
    z-index: 2;
}

.point-card {
    display: grid;
    gap: 6px;
    min-height: 108px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
    transform: translateY(-118px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.route-point:nth-child(even) .point-card {
    transform: translateY(58px);
}

.point-card strong {
    color: #111827;
    font-size: 15px;
}

.point-card span,
.point-card small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
}

.point-card img {
    width: 100%;
    max-height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.route-point-almoco .point-dot {
    background: #f59e0b;
}

.route-point-abastecimento .point-dot {
    background: #7c3aed;
}

.route-point-ocorrencia .point-dot {
    background: #dc2626;
}

.route-point-avaria .point-dot {
    background: #991b1b;
}

.route-point-end .point-dot {
    background: #16a34a;
}

.route-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
}

.route-event-form {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(150px, 0.7fr);
    gap: 14px;
}

.route-event-form .event-description {
    grid-column: 1 / -1;
}

.route-event-form .primary-action {
    width: fit-content;
}

.route-summary-grid {
    display: grid;
    gap: 12px;
}

.route-summary-grid article {
    display: grid;
    gap: 6px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
}

.route-summary-grid span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.route-summary-grid strong {
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
}

.route-finish-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
}

.technician-log-list {
    display: grid;
    gap: 12px;
}

.technician-log-panel {
    display: grid;
    gap: 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 22px;
    padding-top: 18px;
}

.inline-section-heading {
    display: grid;
    gap: 6px;
}

.inline-section-heading h3 {
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
}

.technician-log-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    align-items: center;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 14px;
}

.technician-log-item strong {
    display: block;
    color: #111827;
    font-size: 15px;
    margin-bottom: 4px;
}

.technician-log-item p,
.technician-log-item small {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.technician-log-item img {
    width: 96px;
    height: 74px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.photo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.photo-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    padding: 0 10px;
    text-decoration: none;
}

.photo-actions a:hover {
    border-color: #1d4ed8;
    background: #eff6ff;
}

@media (max-width: 900px) {
    .start-details,
    .route-workspace,
    .route-event-form {
        grid-template-columns: 1fr;
    }

    .driver-card {
        grid-template-columns: 48px 1fr;
    }

    .driver-km {
        grid-column: 2;
    }
}

@media (max-width: 620px) {
    .route-map-surface {
        min-height: 420px;
        padding: 18px;
    }

    .route-points {
        min-width: 720px;
    }

    .route-card-top,
    .route-card-metrics,
    .route-map-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================================
   Usuarios e acessos
   ========================================================================== */
.usuarios-form {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.status-toggle {
    justify-content: end;
}

.status-toggle input {
    width: 22px;
    min-height: 22px;
    accent-color: #1d4ed8;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.user-access-card {
    display: grid;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 18px;
}

.user-access-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-access-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.user-access-head h3 {
    color: #111827;
    font-size: 17px;
    line-height: 1.25;
}

.user-access-head p {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.user-access-tags,
.user-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.access-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    padding: 0 10px;
    text-transform: uppercase;
}

.access-pill.admin {
    background: #dbeafe;
    color: #1d4ed8;
}

.access-pill.active {
    background: #dcfce7;
    color: #166534;
}

.access-pill.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.route-tracker-status {
    display: grid;
    gap: 6px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
}

.route-tracker-status strong {
    color: #0f172a;
    font-size: 14px;
}

.route-tracker-status span,
.route-tracker-status small {
    font-size: 12px;
    line-height: 1.45;
}

.route-tracker-status.active {
    border-color: #99f6e4;
    background: #ecfdf5;
    color: #0f766e;
}

.route-tracker-status.error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

.route-gps-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #ffffff;
}

.route-gps-summary {
    display: grid;
    gap: 4px;
}

.route-gps-summary strong {
    color: #0f172a;
    font-size: 15px;
}

.route-gps-summary span,
.route-gps-summary small {
    color: #64748b;
    font-size: 12px;
}

.route-gps-canvas {
    width: 100%;
    min-height: 220px;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(148, 163, 184, .18) 1px, transparent 1px),
        linear-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px),
        #f8fafc;
    background-size: 24px 24px;
}

/* ==========================================================================
   Configuracoes de conta
   ========================================================================== */
.profile-panel {
    display: grid;
    gap: 18px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-photo {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h2 {
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
}

.profile-header p {
    color: #64748b;
    font-weight: 700;
    margin-top: 4px;
}

.profile-photo-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 14px;
}

.profile-photo-form label {
    display: grid;
    gap: 8px;
    color: #1e293b;
    font-weight: 800;
}

.profile-photo-form input {
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    padding: 10px;
}

.profile-form {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.fuel-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 16px;
}

.fuel-summary-grid article {
    padding: 22px;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.fuel-summary-grid span {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 8px;
}

.fuel-summary-grid strong {
    color: #0f172a;
    font-size: 24px;
    font-weight: 900;
}

/* ==========================================================================
   App mobile do tecnico
   ========================================================================== */
.technician-app-page {
    display: block;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    background: #eef5ff;
    color: #111827;
    padding-bottom: 92px;
}

.technician-app-page * {
    min-width: 0;
}

.technician-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: max(22px, env(safe-area-inset-top)) 24px 24px;
    background: #062a63;
    color: #ffffff;
}

.technician-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 800;
}

.technician-back .material-icons-sharp {
    font-size: 22px;
}

.technician-topbar h1 {
    font-size: 28px;
    font-weight: 900;
}

.technician-home {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 18px 28px;
}

.technician-update-card,
.technician-card,
.active-shift-card,
.favorite-vehicle {
    border: 1px solid #e3e0ea;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(31, 41, 55, 0.08);
}

.technician-update-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    margin-bottom: 26px;
    width: 100%;
    background: #1f73be;
    color: #ffffff;
}

.technician-update-card > .material-icons-sharp {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    font-size: 30px;
}

.technician-update-card strong,
.technician-update-card p {
    display: block;
    color: #ffffff;
}

.technician-update-card strong {
    font-size: 18px;
    font-weight: 900;
}

.technician-update-card p {
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.35;
    opacity: 0.95;
}

.technician-update-card button {
    border: 0;
    background: transparent;
    color: #ffffff;
}

.technician-greeting {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.technician-greeting h2 {
    color: #0f172a;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
}

.technician-greeting p {
    margin-top: 8px;
    color: #6b7280;
    font-size: 18px;
    font-weight: 600;
}

.technician-greeting a {
    color: #1d4ed8;
    font-weight: 800;
    text-decoration: none;
}

.technician-card {
    padding: 22px;
    margin-bottom: 24px;
}

.technician-card h3 {
    color: #111827;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}

.technician-card .section-heading.compact {
    margin-bottom: 18px;
}

.technician-card .section-heading.compact p {
    margin-top: 10px;
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.quick-action {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: center;
    min-height: 128px;
    padding: 22px;
    width: 100%;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    text-align: left;
}

.quick-action .material-icons-sharp {
    grid-row: span 2;
    font-size: 34px;
}

.quick-action strong {
    color: #ffffff;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 900;
}

.quick-action small {
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;
}

.quick-action.fuel {
    background: #1767b3;
}

.quick-action.checklist {
    background: #2554d9;
}

.quick-action.damage {
    grid-column: 1 / -1;
    background: #0f4f98;
}

.favorite-vehicles {
    display: grid;
    gap: 14px;
}

.favorite-vehicle {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    color: #111827;
    text-align: left;
}

.favorite-vehicle .material-icons-sharp {
    color: #1d4ed8;
    font-size: 32px;
}

.favorite-vehicle strong {
    display: block;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.favorite-vehicle small,
.favorite-vehicle b {
    color: #6b7280;
    font-weight: 700;
}

.technician-empty {
    padding: 18px;
    border: 1px dashed #c9c8d2;
    border-radius: 8px;
    color: #64748b;
    background: #fbfbfd;
    font-weight: 800;
}

.technician-empty a {
    display: inline-block;
    margin-left: 8px;
    color: #1d4ed8;
    text-decoration: none;
}

.active-shift-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
}

.active-shift-card strong,
.active-shift-card span,
.active-shift-card small {
    display: block;
}

.active-shift-card strong {
    color: #111827;
    font-weight: 900;
}

.active-shift-card span,
.active-shift-card small {
    color: #64748b;
    font-weight: 700;
}

.active-shift-card a {
    padding: 12px 16px;
    border-radius: 8px;
    background: #2554d9;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
}

.active-shift-card.in-progress {
    border-color: #b7d6ff;
    background: #eff6ff;
}

.active-shift-card.finished {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.active-shift-card.in-progress strong {
    color: #1d4ed8;
}

.active-shift-card.finished strong {
    color: #64748b;
}

.technician-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.technician-chip.danger {
    background: #fee2e2;
    color: #dc2626;
}

.technician-chip.active {
    background: #dcfce7;
    color: #15803d;
}

.technician-card h2 {
    margin-top: 14px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
}

.technician-muted {
    margin-top: 10px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.45;
}

.technician-form-screen {
    padding-top: 28px;
}

.technician-entry-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.technician-entry-form label {
    display: grid;
    gap: 8px;
    color: #1e293b;
    font-weight: 800;
}

.technician-entry-form input,
.technician-entry-form textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
}

.technician-entry-form textarea {
    resize: vertical;
}

.technician-route-screen {
    padding-top: 28px;
}

.mobile-route-status {
    margin-top: 18px;
}

.mobile-route-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.mobile-route-summary article {
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
}

.mobile-route-summary span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.mobile-route-summary strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
}

.mobile-route-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-mini-action {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 16px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
}

.quick-mini-action .material-icons-sharp {
    font-size: 30px;
}

.mobile-route-timeline {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.mobile-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
}

.mobile-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 18px;
    bottom: -18px;
    width: 2px;
    background: #bfdbfe;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 4px solid #bfdbfe;
    border-radius: 50%;
    background: #1d4ed8;
}

.mobile-timeline-item div {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.mobile-timeline-item strong,
.mobile-timeline-item p,
.mobile-timeline-item small,
.mobile-timeline-item a {
    display: block;
}

.mobile-timeline-item strong {
    color: #0f172a;
    font-weight: 900;
}

.mobile-timeline-item p {
    margin-top: 4px;
    color: #334155;
    font-weight: 700;
}

.mobile-timeline-item small {
    margin-top: 6px;
    color: #64748b;
    font-weight: 700;
}

.mobile-timeline-item a {
    margin-top: 8px;
    color: #1d4ed8;
    font-weight: 900;
    text-decoration: none;
}

/* ==========================================================================
   Login e cadastro mobile
   ========================================================================== */
.mobile-auth-page {
    display: block;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .2), transparent 36%),
        linear-gradient(180deg, #062a63 0%, #0b3a7b 36%, #eef5ff 36%, #eef5ff 100%);
    color: #0f172a;
}

.mobile-auth-shell {
    width: min(100%, 520px);
    min-height: 100vh;
    margin: 0 auto;
    padding: max(28px, env(safe-area-inset-top)) 20px 28px;
}

.mobile-auth-brand {
    padding: 18px 4px 26px;
    color: #ffffff;
}

.mobile-auth-logo {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, .18);
}

.mobile-auth-brand > span {
    display: block;
    margin-top: 14px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.mobile-auth-brand h1 {
    margin-top: 8px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
}

.mobile-auth-brand p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
}

.mobile-auth-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.mobile-auth-card label {
    display: grid;
    gap: 8px;
    color: #1e293b;
    font-weight: 900;
}

.mobile-auth-input {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fbff;
}

.mobile-auth-input > .material-icons-sharp {
    color: #1d4ed8;
}

.mobile-auth-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

.mobile-auth-input button {
    border: 0;
    background: transparent;
    color: #64748b;
}

.mobile-auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.mobile-auth-remember input {
    width: 18px;
    height: 18px;
    accent-color: #1d4ed8;
}

.mobile-auth-link,
.mobile-auth-footer a {
    color: #1d4ed8;
    font-weight: 900;
    text-decoration: none;
}

.mobile-auth-link {
    justify-self: end;
    font-size: 14px;
}

.mobile-auth-submit {
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 16px 28px rgba(29, 78, 216, .25);
}

.mobile-auth-footer {
    color: #64748b;
    text-align: center;
    font-weight: 700;
}

.mobile-menu-link {
    display: none;
    width: fit-content;
    margin-bottom: 14px;
    color: #1d4ed8;
    font-weight: 900;
    text-decoration: none;
}

.technician-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    background: #062a63;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.18);
}

.technician-bottom-nav a,
.technician-bottom-nav button {
    display: grid;
    justify-items: center;
    gap: 2px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.48);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.technician-bottom-nav .material-icons-sharp {
    font-size: 30px;
}

.technician-bottom-nav .active {
    color: #7cc7ff;
}

.mobile-floating-logout {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    right: 14px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(8, 47, 99, 0.94);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(8, 47, 99, 0.28);
}

.mobile-floating-logout .material-icons-sharp {
    font-size: 20px;
}

.mobile-floating-home {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 14px);
    left: 14px;
    z-index: 80;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 10px 14px;
    background: #ffffff;
    color: #0b3b7a;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(8, 47, 99, 0.18);
}

.mobile-floating-home .material-icons-sharp {
    font-size: 20px;
}

.mobile-admin-metrics,
.mobile-admin-menu {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.mobile-admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mobile-admin-metric,
.mobile-admin-menu a {
    border: 1px solid #dce7f7;
    border-radius: 8px;
    background: #f8fbff;
}

.mobile-admin-metric {
    padding: 16px;
}

.mobile-admin-metric span,
.mobile-admin-metric small {
    display: block;
    color: #64748b;
    font-weight: 800;
}

.mobile-admin-metric strong {
    display: block;
    margin: 8px 0 4px;
    color: #082f63;
    font-size: 22px;
    font-weight: 900;
}

.mobile-admin-menu a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: center;
    padding: 16px;
    color: #0f172a;
    text-decoration: none;
}

.mobile-admin-menu .material-icons-sharp {
    grid-row: span 2;
    color: #1d4ed8;
    font-size: 30px;
}

.mobile-admin-menu strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 900;
}

.mobile-admin-menu small {
    color: #64748b;
    font-weight: 700;
}

.technician-only-nav {
    display: none;
}

.checklist-page.technician-mode:not(.embedded-page) {
    display: block;
    min-height: 100vh;
    padding-bottom: 96px;
    background: #eef5ff;
}

.checklist-page.technician-mode:not(.embedded-page) .pecas-shell {
    width: min(100%, 760px);
    padding: 0 18px 24px;
}

.checklist-page.technician-mode:not(.embedded-page) .pecas-hero {
    margin: 0 -18px 22px;
    padding: max(22px, env(safe-area-inset-top)) 24px 26px;
    border-radius: 0;
    background: #062a63;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(6, 42, 99, 0.24);
}

.checklist-page.technician-mode:not(.embedded-page) .pecas-hero h1,
.checklist-page.technician-mode:not(.embedded-page) .pecas-hero p,
.checklist-page.technician-mode:not(.embedded-page) .pecas-kicker {
    color: #ffffff;
}

.checklist-page.technician-mode:not(.embedded-page) .pecas-hero h1 {
    font-size: 28px;
}

.checklist-page.technician-mode:not(.embedded-page) .pecas-hero p {
    opacity: .9;
}

.checklist-page.technician-mode:not(.embedded-page) .mobile-menu-link {
    display: inline-flex;
    color: rgba(255, 255, 255, .92);
}

.checklist-page.technician-mode:not(.embedded-page) .pecas-panel {
    padding: 20px 16px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(31, 41, 55, 0.08);
}

.checklist-page.technician-mode:not(.embedded-page) .section-label {
    color: #1d4ed8;
}

.checklist-page.technician-mode:not(.embedded-page) .section-heading h2 {
    color: #0f172a;
    font-size: 24px;
}

.checklist-page.technician-mode:not(.embedded-page) .driver-route-board,
.checklist-page.technician-mode:not(.embedded-page) .checklist-grid {
    gap: 12px;
}

.checklist-page.technician-mode:not(.embedded-page) .driver-card {
    grid-template-columns: auto 1fr;
    padding: 16px;
    border-color: #dbeafe;
    background: #f8fbff;
}

.checklist-page.technician-mode:not(.embedded-page) .driver-card.selected {
    border-color: #1d4ed8;
    background: #eff6ff;
}

.checklist-page.technician-mode:not(.embedded-page) .driver-avatar {
    background: #1d4ed8;
}

.checklist-page.technician-mode:not(.embedded-page) .driver-km {
    grid-column: 2;
    justify-self: start;
}

.checklist-page.technician-mode:not(.embedded-page) .start-details {
    grid-template-columns: 1fr;
}

.checklist-page.technician-mode:not(.embedded-page) .checklist-flags {
    grid-template-columns: 1fr;
}

.checklist-page.technician-mode:not(.embedded-page) .primary-action {
    width: 100%;
    justify-content: center;
    background: #1d4ed8;
}

.checklist-page.technician-mode:not(.embedded-page) .technician-only-nav {
    display: grid;
}

@media (max-width: 980px) {
    .usuarios-form {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .fuel-summary-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 680px) {
    .usuarios-form,
    .profile-form,
    .profile-photo-form {
        grid-template-columns: 1fr;
    }

    .fuel-summary-grid {
        grid-template-columns: 1fr;
    }

    .technician-home {
        padding: 20px 14px 24px;
    }

    .technician-greeting h2 {
        font-size: 26px;
    }

    .technician-greeting p {
        font-size: 16px;
    }

    .technician-card {
        padding: 18px 14px;
    }

    .quick-action {
        min-height: 104px;
        padding: 16px 14px;
        gap: 8px 10px;
    }

    .quick-action .material-icons-sharp {
        font-size: 28px;
    }

    .quick-action strong {
        font-size: 19px;
    }

    .quick-action small {
        font-size: 12px;
    }

    .favorite-vehicle {
        grid-template-columns: auto 1fr;
    }

    .favorite-vehicle b {
        grid-column: 2;
    }

    .mobile-route-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .technician-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .technician-update-card {
        grid-template-columns: 1fr auto;
        padding: 14px;
    }

    .technician-update-card > .material-icons-sharp {
        display: none;
    }

    .technician-update-card strong {
        font-size: 16px;
    }

    .technician-update-card p {
        font-size: 13px;
    }

    .quick-actions-grid {
        gap: 10px;
    }

    .quick-action {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        min-height: 96px;
    }

    .quick-action .material-icons-sharp {
        grid-row: auto;
    }

    .technician-bottom-nav a,
    .technician-bottom-nav button {
        font-size: 10px;
    }

    .technician-bottom-nav .material-icons-sharp {
        font-size: 24px;
    }
}

.tracking-page {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    min-height: 100vh;
    background: #eef5ff;
    color: #0f172a;
}

.tracking-sidebar {
    z-index: 2;
    display: grid;
    align-content: start;
    gap: 16px;
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #dbeafe;
    background: #ffffff;
    padding: 22px;
    box-shadow: 12px 0 36px rgba(15, 23, 42, .08);
}

.tracking-heading h1 {
    color: #062a63;
    font-size: 30px;
    line-height: 1.1;
}

.tracking-heading p {
    color: #64748b;
    margin-top: 6px;
}

.tracking-filters {
    display: grid;
    gap: 10px;
}

.tracking-filters label {
    display: grid;
    gap: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.tracking-filters select,
.tracking-filters input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fbff;
    color: #0f172a;
    padding: 0 12px;
}

.tracking-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.tracking-summary article {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 12px;
}

.tracking-summary span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.tracking-summary strong {
    display: block;
    color: #1d4ed8;
    font-size: 20px;
    margin-top: 4px;
}

.tracking-list,
.tracking-history {
    display: grid;
    gap: 10px;
}

.tracking-list-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    cursor: pointer;
    padding: 13px;
    text-align: left;
}

.tracking-list-item > span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px #eaf2ff;
}

.tracking-list-item strong,
.tracking-list-item small {
    display: block;
}

.tracking-list-item small,
.tracking-history p {
    color: #64748b;
    font-weight: 700;
}

.tracking-list-item b {
    color: #062a63;
    white-space: nowrap;
}

.tracking-history {
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
}

.tracking-history h2 {
    color: #062a63;
    font-size: 20px;
}

.tracking-history-grid {
    display: grid;
    gap: 8px;
}

.tracking-history-grid span {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    color: #64748b;
    padding: 10px 12px;
    font-weight: 700;
}

.tracking-history-grid strong {
    color: #062a63;
}

.tracking-map-wrap,
#tracking-map {
    min-height: 100vh;
}

.tracking-marker {
    display: grid;
    place-items: center;
}

.tracking-marker span {
    display: block;
    width: 22px;
    height: 22px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .28);
}

.tracking-event-marker span {
    display: block;
    width: 16px;
    height: 16px;
    border: 3px solid #ffffff;
    border-radius: 5px;
    background: #1d4ed8;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .25);
    transform: rotate(45deg);
}

body.tracking-page.embedded-page,
body.tracking-page.embedded-page .tracking-sidebar,
body.tracking-page.embedded-page .tracking-map-wrap,
body.tracking-page.embedded-page #tracking-map {
    min-height: 900px;
}

@media (max-width: 900px) {
    .tracking-page {
        grid-template-columns: 1fr;
    }

    .tracking-sidebar {
        height: auto;
        max-height: none;
        border-right: 0;
    }

    .tracking-map-wrap,
    #tracking-map {
        min-height: 58vh;
    }
}

/* Alertas: camada final para manter o visual alinhado com as telas administrativas. */
body.alerts-page {
    background:
        radial-gradient(circle at top left, rgba(29, 78, 216, .18), transparent 34%),
        linear-gradient(135deg, #061c3f 0%, #0f3b78 48%, #eaf2ff 48%, #f6f9ff 100%);
}

body.alerts-page.embedded-page {
    background: transparent;
}

.alerts-page .alerts-overview-panel,
.alerts-page .pecas-panel {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 16px 40px rgba(7, 27, 58, .08);
}

.alerts-page .alerts-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
}

.alerts-page .alerts-summary article {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    box-shadow: none;
    padding: 16px;
}

.alerts-page .alerts-summary article::before {
    background: #1d4ed8;
}

.alerts-page .alerts-summary span,
.alerts-page .alerts-summary small,
.alerts-page .alerts-updated {
    color: #64748b;
}

.alerts-page .alerts-summary strong {
    color: #062a63;
}

.alerts-page .alerts-list {
    gap: 10px;
}

.alerts-page .alert-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid #dbeafe;
    border-left: 4px solid #1d4ed8;
    border-radius: 8px;
    background: #fbfdff;
    box-shadow: none;
    padding: 16px;
}

.alerts-page .alert-item:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.alerts-page .alert-item > .material-icons-sharp {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e8f1ff;
    color: #1d4ed8;
}

.alerts-page .alert-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.alerts-page .alert-item-header strong {
    color: #0f172a;
    font-size: 16px;
}

.alerts-page .alert-item-header span,
.alerts-page .alert-meta span {
    border-radius: 999px;
    background: #e8f1ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.alerts-page .alert-item p {
    color: #475569;
    margin: 5px 0 8px;
}

.alerts-page .alert-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.alerts-page .alert-meta span {
    background: #eef6ff;
    color: #64748b;
    font-weight: 800;
}

.alerts-page .alerts-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.alerts-page .alerts-toolbar select {
    min-width: 180px;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 800;
    padding: 0 12px;
}

.alerts-page .alert-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.alerts-page .alert-actions button,
.alerts-page .alert-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #e8f1ff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    padding: 0 12px;
    text-decoration: none;
}

.alerts-page .alert-actions button:hover,
.alerts-page .alert-actions a:hover {
    background: #1d4ed8;
    color: #ffffff;
}

.alerts-page .alert-resolution {
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    background: #f0fdf4;
    margin-top: 12px;
    padding: 12px;
}

.alerts-page .alert-resolution strong {
    color: #166534;
    font-size: 13px;
}

.alerts-page .alert-resolution p {
    color: #14532d;
    margin: 4px 0;
}

.alerts-page .alert-resolution small {
    color: #15803d;
    font-weight: 800;
}

.alert-resolve-dialog {
    width: min(620px, calc(100vw - 28px));
    border: 0;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.alert-resolve-dialog::backdrop {
    background: rgba(15, 23, 42, .5);
}

.alert-resolve-dialog form {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.alert-resolve-dialog h2 {
    color: #062a63;
}

.alert-resolve-dialog p,
.alert-resolve-dialog label span {
    color: #64748b;
    font-weight: 800;
}

.alert-resolve-dialog textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    margin-top: 8px;
    padding: 12px;
    resize: vertical;
}

.alert-resolve-dialog menu {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 700px) {
    .alerts-page .alerts-summary {
        grid-template-columns: 1fr;
    }

    .alerts-page .alert-item-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .alerts-page .alerts-toolbar {
        justify-content: stretch;
    }

    .alerts-page .alerts-toolbar select,
    .alerts-page .alerts-toolbar button {
        width: 100%;
    }
}
