* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --rosa: #f47c9c;
    --rosa-claro: #f5b3cf;
    --laranja: #f56600;
    --amarelo: #ffe896;
    --branco: #ffffff;
    --preto: #202020;
    --cinza: #6f6f6f;
    --fundo: #fff8f4;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--fundo);
    color: var(--preto);
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

header {
    margin-bottom: 30px;
}

header h1 {
    font-size: 32px;
    margin-bottom: 6px;
}

header p {
    color: var(--cinza);
    font-size: 15px;
}

form {
    background: var(--branco);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

section {
    margin-bottom: 32px;
}

section h2 {
    font-size: 18px;
    color: var(--laranja);
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fff0e8;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 7px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;

    border: 1px solid #dedede;
    border-radius: 10px;

    font-family: inherit;
    font-size: 15px;

    background: #ffffff;

    outline: none;
    transition: 0.2s;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--rosa);
    box-shadow: 0 0 0 3px rgba(244, 124, 156, 0.15);
}

button {
    width: 100%;

    border: none;
    border-radius: 12px;

    padding: 15px 20px;

    background: var(--laranja);
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.2s;
}

button:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#mensagem {
    margin-top: 18px;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 600px) {

    body {
        padding: 20px 12px;
    }

    form {
        padding: 22px 18px;
    }

    header h1 {
        font-size: 27px;
    }
}
/* =========================
   LISTA DE PEDIDOS
   ========================= */

.lista-container {
    max-width: 1200px;
}

.cabecalho-lista {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.botao-novo {
    background: var(--laranja);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.filtros {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.filtros input,
.filtros select {
    margin-bottom: 0;
}

.tabela-wrapper {
    background: white;
    border-radius: 15px;
    overflow-x: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px;
    font-size: 13px;
    color: var(--cinza);
    border-bottom: 1px solid #eeeeee;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

tbody tr:hover {
    background: #fff9f5;
}

.status {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    background: var(--amarelo);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.sem-resultados {
    text-align: center;
    padding: 40px;
    color: var(--cinza);
}

#mensagemLista {
    margin-top: 20px;
    text-align: center;
}

@media (max-width: 700px) {

    .cabecalho-lista {
        align-items: flex-start;
        flex-direction: column;
    }

    .filtros {
        grid-template-columns: 1fr;
    }
}

/* =========================
   TAGS
   ========================= */

.campo-tags {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: start;
}

.campo-tags input {
    margin-bottom: 10px;
}

.botao-adicionar-tag {
    width: auto;
    padding: 12px 18px;
    white-space: nowrap;
}

.lista-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    background: var(--rosa-claro);
    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;
}

.tag-item .remover-tag {
    width: auto;
    padding: 0;

    background: transparent;
    color: var(--preto);

    font-size: 18px;
    line-height: 1;
}

.tag-item .remover-tag:hover {
    transform: none;
    opacity: 0.6;
}

@media (max-width: 600px) {

    .campo-tags {
        grid-template-columns: 1fr;
    }

    .botao-adicionar-tag {
        width: 100%;
        margin-bottom: 10px;
    }
}
/* =========================
   KANBAN
   ========================= */

.pagina-kanban {
    padding: 30px;
}

.kanban-container {
    width: 100%;
    margin: 0 auto;
}

.cabecalho-kanban {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.acoes-kanban {
    display: flex;
    gap: 10px;
}

.botao-secundario {
    padding: 12px 20px;
    border-radius: 10px;
    background: white;
    color: var(--preto);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e5e5e5;
}

.filtros-kanban {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;

    background: white;
    padding: 16px;

    border-radius: 15px;
    margin-bottom: 20px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.filtros-kanban input,
.filtros-kanban select {
    margin: 0;
}


/* BOARD */

.kanban-board {
    display: flex;
    flex-wrap: nowrap;

    gap: 14px;

    overflow-x: auto;
    overflow-y: hidden;

    width: 100%;
    padding-bottom: 20px;
}


/* COLUNAS */

.kanban-coluna {
    min-width: 285px;
    width: 285px;

    background: #f4f4f4;

    border-radius: 16px;

    padding: 12px;

    flex-shrink: 0;
}

.kanban-coluna-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 5px 4px 14px;
}

.kanban-coluna-titulo h2 {
    font-size: 15px;
}

.kanban-coluna-titulo span {
    background: white;

    min-width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 12px;
    font-weight: bold;
}


/* ÁREA DOS CARDS */

.kanban-cards {
    min-height: 500px;
}


/* CARD */

.kanban-card {
    background: white;

    padding: 15px;

    margin-bottom: 10px;

    border-radius: 12px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.05);

    border: 1px solid #eeeeee;
}

.card-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 10px;
}

.card-id {
    font-size: 11px;
    color: var(--cinza);
}

.kanban-card h3 {
    font-size: 16px;
    margin-bottom: 3px;
}

.card-tema {
    color: var(--cinza);
    font-size: 13px;

    margin-bottom: 15px;
}

.card-info {
    display: flex;
    flex-direction: column;

    gap: 6px;

    font-size: 12px;

    margin-bottom: 12px;
}


/* PRIORIDADES */

.prioridade {
    font-size: 10px;
    font-weight: bold;

    padding: 5px 8px;

    border-radius: 20px;
}

.prioridade-normal {
    background: #eeeeee;
}

.prioridade-alta {
    background: var(--amarelo);
}

.prioridade-urgente {
    background: #ffd7d7;
}


/* TAGS */

.card-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;
}

.kanban-tag {
    background: var(--rosa-claro);

    padding: 4px 7px;

    border-radius: 12px;

    font-size: 10px;
}


/* RESPONSIVO */

@media (max-width: 800px) {

    .pagina-kanban {
        padding: 20px 12px;
    }

    .cabecalho-kanban {
        align-items: flex-start;
        flex-direction: column;
    }

    .filtros-kanban {
        grid-template-columns: 1fr;
    }
}
/* =========================
   DRAG AND DROP
   ========================= */

.kanban-card {
    cursor: grab;
}

.kanban-card:active {
    cursor: grabbing;
}

.card-arrastando {
    opacity: 0.35;
}

.card-em-movimento {
    transform: rotate(2deg);
}

.kanban-cards {
    transition: background-color 0.2s;
}
/* =========================
   DETALHES DO PEDIDO
   ========================= */

.detalhes-container {
    max-width: 1000px;
}

.cabecalho-detalhes {
    margin-bottom: 25px;
}

.voltar-link {
    display: inline-block;
    margin-bottom: 14px;

    color: var(--laranja);
    text-decoration: none;
    font-weight: 600;
}

.detalhes-bloco {
    background: white;

    padding: 24px;

    border-radius: 16px;

    margin-bottom: 18px;

    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.detalhes-bloco h2 {
    margin-bottom: 20px;
}

.detalhes-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.detalhe-item {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.detalhe-item span,
.detalhe-texto span {
    color: var(--cinza);

    font-size: 12px;

    font-weight: 600;

    text-transform: uppercase;
}

.detalhe-item strong {
    font-size: 15px;
}

.detalhe-texto {
    margin-top: 22px;
}

.detalhe-texto p {
    margin-top: 8px;

    line-height: 1.6;

    white-space: pre-wrap;
}

.carregando-detalhes {
    background: white;

    padding: 30px;

    border-radius: 15px;

    text-align: center;
}

@media (max-width: 700px) {

    .detalhes-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   CABEÇALHO DOS DETALHES
   ========================= */

.cabecalho-detalhes {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 25px;
}

.cabecalho-detalhes > div {
    flex: 1;
}

.cabecalho-detalhes h1 {
    margin-bottom: 5px;
}

.cabecalho-detalhes p {
    margin: 0;
}

.cabecalho-detalhes .botao-novo {
    flex-shrink: 0;
    margin-bottom: 0;
}

@media (max-width: 700px) {

    .cabecalho-detalhes {
        flex-direction: column;
        align-items: stretch;
    }

    .cabecalho-detalhes .botao-novo {
        text-align: center;
    }
}
/* =========================
   AÇÕES DOS DETALHES
   ========================= */

.acoes-detalhes {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.botao-excluir {
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;

    padding: 14px 20px;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.botao-excluir:hover {
    background: #dc3545;
    color: white;
}

.botao-excluir:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 700px) {

    .acoes-detalhes {
        width: 100%;
        flex-direction: column;
    }

    .acoes-detalhes .botao-novo,
    .acoes-detalhes .botao-excluir {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}
/* =========================
   TIMELINE DO PEDIDO
   ========================= */

.timeline-historico {
    margin-top: 24px;
}

.timeline-item {
    position: relative;
    padding-left: 42px;
    padding-bottom: 28px;
}

/* Linha vertical */
.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;

    left: 9px;
    top: 20px;
    bottom: -4px;

    width: 2px;
    background: #e5e5e5;
}

/* Bolinha da timeline */
.timeline-marcador {
    position: absolute;

    left: 0;
    top: 5px;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: #ff6600;
    border: 5px solid #ffe4d3;

    box-sizing: border-box;
}

/* Caixa de cada movimentação */
.timeline-conteudo {
    background: #fafafa;
    border: 1px solid #eeeeee;

    border-radius: 12px;

    padding: 16px 20px;
}

/* Nome da etapa */
.timeline-cabecalho {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;

    font-size: 17px;
}

.timeline-conteudo p {
    margin: 5px 0;
    font-size: 14px;
}

/* Selo da etapa atual */
.timeline-atual {
    display: inline-block;

    background: #ff6600;
    color: #ffffff;

    padding: 4px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
}

/* Tempo */
.timeline-tempo {
    margin-top: 10px !important;
    color: #666666;
}

/* =========================
   ATIVIDADES DO PEDIDO
   ========================= */

.cabecalho-atividades {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    margin-bottom: 22px;
}

.cabecalho-atividades h2 {
    margin-bottom: 5px;
}

.cabecalho-atividades p {
    margin: 0;
    color: #777;
    font-size: 14px;
}


.form-nova-tarefa {
    background: #fafafa;
    border: 1px solid #eeeeee;

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 24px;
}


.campo-tarefa {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-bottom: 16px;
}

.campo-tarefa label {
    font-size: 13px;
    font-weight: 600;
}

.campo-tarefa input,
.campo-tarefa textarea {
    width: 100%;
    box-sizing: border-box;
}


.acoes-form-tarefa {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


.botao-secundario {
    padding: 12px 18px;

    background: white;
    color: #555;

    border: 1px solid #dddddd;
    border-radius: 10px;

    cursor: pointer;
}


.lista-tarefas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.tarefa-item {
    display: flex;
    gap: 14px;

    padding: 16px 18px;

    border: 1px solid #eeeeee;
    border-radius: 12px;

    background: #fafafa;
}


.tarefa-check {
    font-size: 24px;
    line-height: 22px;
    color: #ff6600;
}


.tarefa-conteudo {
    flex: 1;
}


.tarefa-titulo {
    font-size: 15px;
}


.tarefa-descricao {
    margin: 7px 0 !important;

    color: #666;

    font-size: 14px;
}


.tarefa-informacoes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;

    margin-top: 9px;

    color: #777;

    font-size: 12px;
}


.sem-tarefas {
    padding: 25px;

    text-align: center;

    background: #fafafa;

    border: 1px dashed #dddddd;
    border-radius: 12px;

    color: #888;
}


@media (max-width: 700px) {

    .cabecalho-atividades {
        flex-direction: column;
        align-items: stretch;
    }

    .cabecalho-atividades .botao-novo {
        width: 100%;
    }
}
/* CHECK DA ATIVIDADE */

.tarefa-check {
    width: 22px;
    height: 22px;

    min-width: 22px;

    padding: 0;

    border: 2px solid #ff6600;
    border-radius: 50%;

    background: white;
    color: white;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: bold;

    transition: 0.2s;
}

.tarefa-check:hover {
    background: #fff0e6;
}

.tarefa-check.concluida {
    background: #ff6600;
    border-color: #ff6600;
}

.tarefa-titulo-concluida {
    text-decoration: line-through;
    color: #999;
}
.cabecalho-atividades .botao-novo {
    width: auto;
    padding: 12px 18px;
    white-space: nowrap;
}

.acoes-tarefa {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.botao-tarefa {
    width: auto;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.botao-editar-tarefa {
    background: white;
    color: #555;
    border: 1px solid #dddddd;
}

.botao-excluir-tarefa {
    background: white;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.botao-excluir-tarefa:hover {
    background: #dc3545;
    color: white;
}

.tarefa-conclusao {
    margin-top: 8px !important;
    font-size: 12px;
    color: #777;
}
.botao-reabrir-tarefa {
    background: white;
    color: #ff6600;
    border: 1px solid #ff6600;
}

.botao-reabrir-tarefa:hover {
    background: #fff2e8;
}
/* =========================
   TELA GLOBAL DE TAREFAS
   ========================= */

.resumo-tarefas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin: 25px 0;
}

.card-resumo-tarefa {
    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 12px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    gap: 5px;
}

.resumo-numero {
    font-size: 26px;
    font-weight: 700;
}

.resumo-label {
    font-size: 13px;
    color: #777777;
}


/* FILTROS */

.filtros-tarefas {
    display: grid;

    grid-template-columns:
        minmax(250px, 2fr)
        1fr
        1fr
        1fr;

    gap: 12px;

    margin-bottom: 25px;
}

.filtros-tarefas input,
.filtros-tarefas select {
    width: 100%;
    box-sizing: border-box;
}


/* LISTA */

.lista-global-tarefas {
    display: flex;
    flex-direction: column;

    gap: 12px;
}


/* RESPONSIVO */

@media (max-width: 900px) {

    .resumo-tarefas {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .filtros-tarefas {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 600px) {

    .resumo-tarefas {
        grid-template-columns: 1fr;
    }

    .filtros-tarefas {
        grid-template-columns: 1fr;
    }
}
/* =========================
   CARDS - TAREFAS GLOBAIS
   ========================= */

.tarefa-global {
    background: #ffffff;

    border: 1px solid #e8e8e8;
    border-radius: 14px;

    padding: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}

.tarefa-global-principal {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    flex: 1;
}

.indicador-tarefa-global {
    width: 22px;
    height: 22px;
    min-width: 22px;

    border: 2px solid #ff6600;
    border-radius: 50%;

    margin-top: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: bold;
    color: white;
}

.indicador-concluido {
    background: #ff6600;
}

.tarefa-global-conteudo {
    flex: 1;
}

.tarefa-global-topo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}

.tarefa-global-topo h3 {
    margin: 0;

    font-size: 17px;
}

.tarefa-global-pedido {
    margin-top: 6px;

    color: #555;
    font-size: 14px;
}

.tarefa-global-pedido span {
    color: #888;
}

.tarefa-global-info {
    display: flex;
    flex-wrap: wrap;

    gap: 25px;

    margin-top: 12px;

    color: #666;
    font-size: 13px;
}

.tarefa-global-conclusao {
    margin-top: 8px;

    color: #777;
    font-size: 12px;
}


/* BADGES */

.badge-prazo {
    display: inline-flex;

    padding: 4px 9px;

    border-radius: 20px;

    background: #eeeeee;

    font-size: 11px;
    font-weight: 700;
}

.badge-atrasada {
    background: #ffe4e4;
    color: #c62828;
}

.badge-hoje {
    background: #fff0d4;
    color: #b26a00;
}

.badge-prazo-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-concluida {
    background: #eeeeee;
    color: #777777;
}


/* LINK */

.link-ver-pedido {
    white-space: nowrap;

    color: #ff6600;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.link-ver-pedido:hover {
    text-decoration: underline;
}


/* RESPONSIVO */

@media (max-width: 700px) {

    .tarefa-global {
        flex-direction: column;
        align-items: stretch;
    }

    .link-ver-pedido {
        margin-left: 37px;
    }
}
/* =========================
   CORES DOS TOTALIZADORES
   ========================= */

.resumo-pendentes {
    background: #fff1e8;
    border-color: #ffd5bb;
}

.resumo-pendentes .resumo-numero {
    color: #f56600;
}


.resumo-hoje {
    background: #fff8d8;
    border-color: #f4df91;
}

.resumo-hoje .resumo-numero {
    color: #b77900;
}


.resumo-atrasadas {
    background: #fff0f0;
    border-color: #f2c7c7;
}

.resumo-atrasadas .resumo-numero {
    color: #c62828;
}


.resumo-concluidas {
    background: #eef8f0;
    border-color: #c9e7ce;
}

.resumo-concluidas .resumo-numero {
    color: #2e7d32;
}
.resumo-tarefas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 25px 0;
}
.indicador-tarefa-global {
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
}

.indicador-tarefa-global:hover {
    transform: scale(1.08);
}

.indicador-concluido {
    background: #ff6600;
}
/* =========================
   TOTALIZADORES CLICÁVEIS
   ========================= */

.card-resumo-clicavel {
    cursor: pointer;

    transition:
            transform 0.15s ease,
            box-shadow 0.15s ease;
}

.card-resumo-clicavel:hover {
    transform: translateY(-2px);

    box-shadow:
            0 6px 18px rgba(0, 0, 0, 0.06);
}

.card-resumo-ativo {
    transform: translateY(-2px);

    box-shadow:
            0 0 0 2px rgba(255, 102, 0, 0.25),
            0 6px 18px rgba(0, 0, 0, 0.07);
}
/* =========================
   RESPONSÁVEIS
   ========================= */

.responsavel-novo {
    display: flex;
    align-items: flex-end;
    gap: 12px;

    margin: 25px 0 35px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 14px;
}

.campo-responsavel {
    flex: 1;

    display: flex;
    flex-direction: column;

    gap: 7px;
}

.campo-responsavel label {
    font-size: 13px;
    font-weight: 600;
}

.campo-responsavel input {
    width: 100%;
    box-sizing: border-box;
}

.responsavel-novo .botao-novo {
    width: auto;
    white-space: nowrap;
}


.cabecalho-responsaveis {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}

.cabecalho-responsaveis h2 {
    margin: 0;
}

.cabecalho-responsaveis span {
    color: #888;
    font-size: 13px;
}


.lista-responsaveis {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.responsavel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 18px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 12px;
}


.responsavel-info {
    display: flex;
    align-items: center;

    gap: 13px;
}


.responsavel-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fff1e8;
    color: #f56600;

    font-size: 13px;
    font-weight: 700;
}


.responsavel-info strong {
    display: block;

    margin-bottom: 4px;
}


.status-responsavel {
    display: inline-flex;

    padding: 3px 8px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}


.status-ativo {
    background: #e8f5e9;
    color: #2e7d32;
}


.status-inativo {
    background: #eeeeee;
    color: #777777;
}


.responsavel-inativo {
    opacity: 0.65;
}


.botao-desativar {
    background: white;
    color: #777;
    border: 1px solid #dddddd;
}


.botao-ativar {
    background: white;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}


@media (max-width: 600px) {

    .responsavel-novo {
        flex-direction: column;
        align-items: stretch;
    }

    .responsavel-novo .botao-novo {
        width: 100%;
    }
}
.cabecalho-responsaveis {
    width: 100%;
    box-sizing: border-box;
}

.lista-responsaveis {
    width: 100%;
    box-sizing: border-box;
}

.responsavel-item {
    width: 100%;
    box-sizing: border-box;
}

.responsavel-novo {
    width: 100%;
    box-sizing: border-box;
}
/* =========================
   CONTAINER DAS TELAS DE LISTA
   ========================= */

.container.lista-container {
    max-width: 1500px;
    padding: 30px;
    box-sizing: border-box;
}
/* =========================
   CONFIGURAÇÃO DO KANBAN
   ========================= */

.nova-coluna-kanban {
    display: flex;
    align-items: flex-end;
    gap: 14px;

    margin: 25px 0 35px;

    padding: 20px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 14px;
}


.campo-config-coluna {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.campo-config-nome {
    flex: 1;
}


.campo-config-coluna label {
    font-size: 13px;
    font-weight: 600;
}


.campo-config-coluna input[type="text"] {
    width: 100%;
    box-sizing: border-box;
}


.campo-config-coluna input[type="color"],
.config-coluna-edicao input[type="color"] {
    width: 50px;
    height: 42px;

    padding: 3px;

    cursor: pointer;

    border: 1px solid #dddddd;
    border-radius: 8px;

    background: white;
}


.cabecalho-config-kanban {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 15px;
}


.cabecalho-config-kanban h2 {
    margin: 0;
}


.cabecalho-config-kanban span {
    font-size: 13px;
    color: #888888;
}


.lista-configuracao-colunas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.config-coluna-item {
    display: grid;

    grid-template-columns:
        45px
        12px
        minmax(250px, 1fr)
        auto
        auto;

    align-items: center;

    gap: 15px;

    padding: 16px 18px;

    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 12px;
}


.config-coluna-ordem {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #f4f4f4;

    font-size: 13px;
    font-weight: 700;
}


.config-coluna-cor {
    width: 8px;
    height: 42px;

    border-radius: 10px;
}


.config-coluna-dados input {
    width: 100%;
    box-sizing: border-box;
}


.config-coluna-status {
    margin-top: 6px;
}


.config-coluna-edicao {
    display: flex;
    align-items: center;
    gap: 8px;
}


.config-coluna-edicao label {
    font-size: 12px;
    color: #777777;
}


.input-ordem-coluna {
    width: 65px;
}


.config-coluna-acoes {
    display: flex;
    align-items: center;
    gap: 7px;
}


.config-coluna-inativa {
    opacity: 0.6;
}


@media (max-width: 850px) {

    .config-coluna-item {
        grid-template-columns:
            40px
            10px
            1fr;
    }

    .config-coluna-edicao,
    .config-coluna-acoes {
        grid-column: 3;
    }
}


@media (max-width: 600px) {

    .nova-coluna-kanban {
        flex-direction: column;
        align-items: stretch;
    }

    .nova-coluna-kanban .botao-novo {
        width: 100%;
    }
}
/* =========================
   AJUSTE - NOVA COLUNA KANBAN
   ========================= */

.nova-coluna-kanban {
    display: grid;

    grid-template-columns:
        minmax(300px, 1fr)
        80px
        auto;

    align-items: end;
    gap: 16px;
}

.nova-coluna-kanban .campo-config-nome {
    width: 100%;
    min-width: 0;
}

.nova-coluna-kanban .campo-config-nome input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.nova-coluna-kanban .campo-config-coluna {
    min-width: 0;
}

.nova-coluna-kanban .botao-novo {
    width: auto;
    min-width: 170px;
    white-space: nowrap;
}

@media (max-width: 700px) {

    .nova-coluna-kanban {
        grid-template-columns: 1fr;
    }

    .nova-coluna-kanban .botao-novo {
        width: 100%;
    }
}
/* =========================
   CORES DINÂMICAS DO KANBAN
   ========================= */

.kanban-coluna {
    border-top: 4px solid var(--cor-coluna, #eeeeee);
}

.kanban-titulo-conteudo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.kanban-indicador-cor {
    width: 10px;
    height: 10px;

    min-width: 10px;

    border-radius: 50%;
}

.kanban-coluna-titulo h2 {
    margin: 0;
}
/* =========================
   CORREÇÃO DEFINITIVA DO BOARD KANBAN
   ========================= */

#kanbanBoard {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: stretch;

    gap: 14px;

    width: 100%;
    max-width: 100%;

    overflow-x: auto !important;
    overflow-y: hidden;

    padding-bottom: 20px;
}

#kanbanBoard > .kanban-coluna {
    flex: 0 0 285px !important;

    width: 285px !important;
    min-width: 285px !important;
    max-width: 285px;

    margin-bottom: 0;
}
/* =====================================================
   PAINEL PRINCIPAL
   ===================================================== */

.painel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px 60px;
}


/* =========================
   CABEÇALHO
   ========================= */

.painel-cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.painel-cabecalho h1 {
    margin: 0 0 6px;
    font-size: 36px;
}

.painel-cabecalho p {
    margin: 0;
    color: #6b7280;
    font-size: 17px;
}


/* =========================
   TOTALIZADORES
   ========================= */

.painel-resumo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.painel-totalizador {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    padding: 24px;
    min-height: 120px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.035);
}

.painel-totalizador-numero {
    display: block;
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}

.painel-totalizador-label {
    color: #6b7280;
    font-size: 15px;
}

.painel-totalizador-alerta {
    border-left: 5px solid #ef4444;
}


/* =========================
   SEÇÕES
   ========================= */

.painel-secao {
    margin-bottom: 38px;
}

.painel-secao-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.painel-secao-titulo h2 {
    margin: 0 0 5px;
    font-size: 21px;
    color: #f35b00;
}

.painel-secao-titulo p {
    margin: 0;
    color: #6b7280;
}


/* =========================
   MENU DE ACESSO RÁPIDO
   ========================= */

.painel-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.painel-menu-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;

    min-height: 100px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;

    text-decoration: none;
    color: #111827;

    transition:
            transform 0.15s ease,
            box-shadow 0.15s ease,
            border-color 0.15s ease;
}

.painel-menu-card:hover {
    transform: translateY(-2px);
    border-color: #f35b00;

    box-shadow:
            0 8px 20px rgba(0, 0, 0, 0.06);
}

.painel-menu-card strong {
    font-size: 18px;
    color: #111827;
}

.painel-menu-card span {
    font-size: 14px;
    color: #6b7280;
}


/* =========================
   PEDIDOS POR ETAPA
   ========================= */

.painel-etapas {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    min-height: 100px;
}


/* =========================
   ALERTAS
   ========================= */

.painel-alertas {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    min-height: 100px;
}


/* =========================
   RESPONSIVIDADE
   ========================= */

@media (max-width: 1000px) {

    .painel-resumo {
        grid-template-columns: repeat(2, 1fr);
    }

    .painel-menu {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 650px) {

    .painel-container {
        padding: 25px 18px 40px;
    }

    .painel-cabecalho {
        align-items: flex-start;
        flex-direction: column;
    }

    .painel-resumo {
        grid-template-columns: 1fr;
    }

    .painel-menu {
        grid-template-columns: 1fr;
    }

    .painel-secao-titulo {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* =========================
   ITENS - PEDIDOS POR ETAPA
   ========================= */

.painel-etapa-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 4px;

    border-bottom: 1px solid #eeeeee;
}

.painel-etapa-item:last-child {
    border-bottom: none;
}

.painel-etapa-identificacao {
    display: flex;
    align-items: center;
    gap: 12px;
}

.painel-etapa-cor {
    width: 14px;
    height: 14px;

    border-radius: 50%;

    flex-shrink: 0;
}

.painel-etapa-nome {
    font-size: 15px;
    font-weight: 500;
    color: #374151;
}

.painel-etapa-quantidade {
    min-width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f5f5f5;

    color: #111827;
}
/* =========================
   LOGIN
   ========================= */

.pagina-login {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #ffffff;

    border: 1px solid #eeeeee;
    border-radius: 20px;

    padding: 36px;

    box-shadow:
            0 12px 35px rgba(0, 0, 0, 0.07);
}

.login-cabecalho {
    text-align: center;
    margin-bottom: 30px;
}

.login-cabecalho h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.login-cabecalho p {
    color: #777777;
}

.login-form {
    padding: 0;
    box-shadow: none;
}

.login-form input {
    margin-bottom: 18px;
}

.mensagem-login {
    margin-bottom: 15px;
    font-size: 13px;
    text-align: center;
}

.mensagem-login-erro {
    color: #c62828;
}

.mensagem-login-sucesso {
    color: #2e7d32;
}
.form-logout {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}
.cabecalho-painel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.acoes-painel {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-logout {
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    width: auto;
}