body {
    background-color: white;
    font-family: Arial, sans-serif;
    margin: 0;
    height: 100%;
}


.botao-voltar-menu .btn-voltar-dash {
  background: #6a0dad;
  border-color: #6a0dad;
  color: white;
  border-radius: 20px;
}

.botao-voltar-menu .btn-voltar-dash:hover {
  background: #530a9e;
  border-color: #530a9e;
  color: white;
}


/* ===================== AGENDAMENTO SEM ACEITE OU RECUSA ===================== */

.agendamento-section {
    margin-top: 20px;
}

.agendamento-link-pdf {
    color: #8056c4;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
}

.agendamento-link-pdf:hover {
    text-decoration: underline;
}


/* ===================== DASHBOARD HEADER ===================== */

.dash-header {
    background: #1a1a2e;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.dash-cidade {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.dash-subtitulo {
    font-size: 12px;
    color: #aaa;
    margin-top: 3px;
}

.dash-dir {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.card-inline {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 150px;
}

.card-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.resp-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #8056c4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.resp-nome {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.btn-voltar-dash {
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.15);
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-voltar-dash:hover {
    background: rgba(255,255,255,0.14);
    color: white;
}


/* ===================== LEGENDA DE SAÚDE ===================== */

.faixa-legenda {
    background: #f5f0ff;
    border-bottom: 1px solid #e8deff;
    padding: 8px 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.faixa-label {
    font-size: 11px;
    color: #888;
    margin-right: 8px;
}

.faixa-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #555;
    margin-right: 16px;
}

.faixa-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.faixa-item strong {
    color: #333;
}

.saude-operacional h1 {
    font-size: 19px;
}

.saude-operacional h2 {
    font-size: 17px;
}

.saude-operacional p {
    font-size: 13px;
}

.saude-operacional {
    background: white;
    padding: 25px;
    border-radius: 15px;
    max-width: 700px;
    margin: 30px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.atividades-diarias {
    margin: 35px;
    margin-top: 70px;
}


/* ===================== BACKLOG DE DEVOLUÇÃO ===================== */

.backlog-section {
    margin-top: 80px;
}

.backlog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 10px;
}

.backlog-titulo-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 3px;
}

.backlog-titulo {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.backlog-subtitulo {
    font-size: 12px;
    color: #888;
}

.btn-exportar-op {
    padding: 7px 18px;
    border-radius: 20px;
    border: none;
    background: #8056c4;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-exportar-op:hover {
    opacity: 0.85;
}

/* Cards de resumo */
.backlog-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.bk-card {
    background: #f8f8f8;
    border: 0.5px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px 20px;
    min-width: 130px;
}

.bk-card-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    font-weight: 500;
}

.bk-card-valor {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.val-ok      { color: #4caf50; }
.val-atencao { color: #ff9800; }
.val-critico { color: #f44336; }

.bk-card-divider {
    height: 0.5px;
    background: #e0e0e0;
    margin: 8px 0 6px;
}

.bk-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #444;
    margin-top: 3px;
}

.bk-card-sub {
    color: #888;
}

.bk-card-wide {
    min-width: 150px;
}

.bk-badge {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.badge-ok   { background: #e8f5e9; color: #388e3c; }
.badge-warn { background: #fff3e0; color: #e65100; }
.badge-bad  { background: #ffebee; color: #c62828; }

.carregando-card {
    color: #aaa;
    font-size: 13px;
    padding: 14px 20px;
}

.bk-instrucao {
    font-size: 11px;
    color: #999;
    margin-bottom: 1rem;
}

/* Legenda da tabela */
.backlog-legenda-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.backlog-legenda {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.leg-item-op {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

/* Badges de dias */
.badge-dias-op {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.meta-ok-op   { background: #e8f5e9; color: #388e3c; }
.meta-fora-op { background: #ffebee; color: #c62828; }

/* Tabela */
.backlog-tabela-wrap {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 400px;
    border: 0.5px solid #e0e0e0;
    border-radius: 10px;
}

.backlog-tabela-wrap::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.backlog-tabela-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.backlog-tabela-wrap::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.tabela-op {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.tabela-op th {
    text-align: left;
    padding: 10px 12px;
    background: #f4f4f4;
    color: #555;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tabela-op th:hover { color: #8056c4; }
.tabela-op th.ativo-th { color: #8056c4; }

.tabela-op td {
    padding: 9px 12px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
}

.tabela-op tr:last-child td { border-bottom: none; }
.tabela-op tr:hover td { background: #fafafa; }

.tabela-op td:nth-child(6),
.tabela-op th:nth-child(6) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge pendência romaneios */
.rom-badge-op {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.rom-badge-fora { background: #ffebee; color: #c62828; }
.rom-badge-ok   { background: #e8f5e9; color: #388e3c; }



/* Mensagens */
.carregando-msg {
    padding: 2rem;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

.sem-pendencias {
    padding: 2rem;
    text-align: center;
    color: #4caf50;
    font-size: 14px;
    font-weight: 600;
}

.erro-msg-op {
    padding: 2rem;
    text-align: center;
    color: #f44336;
    font-size: 13px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #8056c4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}