@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =========================================
   1. DESIGN SYSTEM PADRÃO (Base Fornecedoras)
   ========================================= */
.page-header-container, .system-toolbar, .sacola-dashboard, .kanban-container {
    font-family: 'Poppins', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
}

/* Cabeçalho de Texto */
.page-header-container {
    padding: 10px 10px 5px 10px;
    margin-bottom: 10px;
}

.header-breadcrumb {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-voltar-system {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    padding: 0;
}
.btn-voltar-system:hover { color: #666; }

.page-title-system {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Barra de Ferramentas (Caixa Branca) */
.system-toolbar {
    background: white;
    padding: 10px 15px;
    border-radius: 12px; /* Arredondado do sistema */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    gap: 20px;
}

/* Busca Clean */
.search-wrapper-system {
    flex: 1; /* Ocupa espaço disponível */
    position: relative;
    max-width: 600px;
}

.search-wrapper-system i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #bbb;
    font-size: 1.1rem;
}

.search-wrapper-system input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 20px; /* Pill shape */
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #444;
    outline: none;
    transition: all 0.2s;
}

.search-wrapper-system input:focus {
    background: white;
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Botão Padrão do Sistema (Rose) */
.btn-system-rose {
    background: #bf8396; /* Cor exata aproximada do print */
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px; /* Pill shape */
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-system-rose:hover {
    background: #a66d7f;
}

/* Dashboard de Métricas (Simplificado) */
.sacola-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 5px;
}

.stat-card {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0; /* Borda sutil em vez de lateral colorida forte */
}

/* Mantivemos cores sutis apenas no texto/borda leve se quiser */
.stat-card.warning { border-bottom: 3px solid #e67e22; }
.stat-card.success { border-bottom: 3px solid #27ae60; }
.stat-card.info { border-bottom: 3px solid #bf8396; }

.stat-label { font-size: 0.75rem; color: #888; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.4rem; font-weight: 700; color: #444; margin-top: 2px; }

/* Grid do Kanban */
.kanban-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px;
    height: calc(100vh - 260px);
    align-items: flex-start;
    justify-content: center; /* Centralizado na tela */
}

.kanban-col {
    min-width: 310px;
    max-width: 310px;
    background: #f4f5f7; /* Padrão Trello/Kanban */
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kanban-header {
    padding: 8px 5px;
    font-weight: 600;
    color: #555;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.kanban-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}
.kanban-body::-webkit-scrollbar { width: 5px; }
.kanban-body::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* =========================================
   2. CARDS (INTACTOS - CONFORME SOLICITADO)
   ========================================= */
.kanban-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 12px;
    cursor: grab;
    border-left: 6px solid #ccc;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.kanban-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(137, 127, 164, 0.15);
}

.kanban-card[data-status="ABERTA"] { border-left-color: #897FA4; }
.kanban-card[data-status*="SOLICITOU"] { border-left-color: #e67e22; }
.kanban-card[data-status*="AGUARDANDO"] { border-left-color: #27ae60; }
.kanban-card[data-status*="ENTREGUE"], 
.kanban-card[data-status*="FINALIZADA"] { border-left-color: #95a5a6; }

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px 5px 15px;
}

.card-id {
    color: #897FA4;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.5px;
}

.card-days-badge {
    background: #f0f0f0;
    color: #333;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.card-body-content {
    padding: 5px 15px 12px 15px;
}

.card-cliente-nome {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
    text-transform: capitalize;
    line-height: 1.2;
}

.card-location {
    font-size: 0.8rem;
    color: #e84393;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
}

.card-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.badge-envio-pill {
    background: #e0f7fa;
    color: #006064;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-etiqueta {
    background: #f3e5f5;
    color: #897FA4;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.card-footer-row {
    border-top: 1px solid #f0f0f0;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.footer-info {
    font-size: 0.7rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}