.cmp-wrap { max-width: 1400px; }
.cmp-title { margin-bottom: 16px; }
.cmp-mockup-tag { display: inline-block; background: #fff3e0; color: #b45309; font-size: 11px; padding: 3px 8px; border-radius: 10px; margin-left: 10px; vertical-align: middle; font-weight: 600; }

.cmp-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.cmp-toolbar select { height: 32px; }

/* Kanban */
.cmp-kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 20px; }
.cmp-coluna { background: #eef0f3; border-radius: 8px; min-width: 250px; max-width: 250px; flex-shrink: 0; display: flex; flex-direction: column; align-self: flex-start; }
.cmp-coluna-header { padding: 10px 12px; font-weight: 600; border-bottom: 2px solid #dcdfe4; display: flex; justify-content: space-between; align-items: center; font-size: 13px; position: sticky; top: 32px; background: #eef0f3; border-radius: 8px 8px 0 0; z-index: 2; }
.cmp-coluna-header small { font-weight: 400; color: #666; }
.cmp-coluna-body { padding: 10px; min-height: 80px; }
.cmp-coluna-body.cmp-drag-over { background: #dfe8f5; }

.cmp-card { background: #fff; border-radius: 6px; padding: 10px 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.1); cursor: grab; border-left: 4px solid #ccc; }
.cmp-card.cmp-ok { border-left-color: #4caf50; }
.cmp-card.cmp-atencao { border-left-color: #ff9800; }
.cmp-card.cmp-atrasado { border-left-color: #e53935; background: #fef6f6; box-shadow: 0 0 0 1px #f3b9b9; }
.cmp-atraso-flag { display: flex; align-items: center; gap: 5px; background: #e53935; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 4px; margin-bottom: 7px; text-transform: uppercase; }
.cmp-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cmp-card-tipo { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; margin-bottom: 5px; }
.cmp-tipo-compra { background: #e3f0fd; color: #1a5fa8; }
.cmp-tipo-contratacao { background: #f3e8fd; color: #7b2fc9; }
.cmp-card-obra { font-size: 12px; color: #555; font-weight: 600; }
.cmp-card-solic { font-size: 12px; color: #777; }
.cmp-card-rcoc { font-size: 11px; color: #2271b1; font-weight: 600; margin-top: 3px; }
.cmp-card-tempo { font-size: 11px; color: #888; margin-top: 4px; }
.cmp-card.cmp-atencao .cmp-card-tempo { color: #b45309; font-weight: 600; }
.cmp-card.cmp-atrasado .cmp-card-tempo { color: #c62828; font-weight: 700; }
.cmp-card-valor { font-size: 13px; font-weight: 600; margin-top: 6px; }

.cmp-badge { font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 600; text-transform: uppercase; }
.cmp-badge-ok { background: #e3f5e5; color: #2e7d32; }
.cmp-badge-atencao { background: #fff3e0; color: #ef6c00; }
.cmp-badge-atrasado { background: #fdeaea; color: #c62828; }

.cmp-row-atrasado { background: #fdeaea; }
.cmp-row-atencao { background: #fff8ee; }

/* Fretes - visual diferenciado e urgente */
.cmp-title-frete { color: #b45309; }
.cmp-kanban-frete .cmp-coluna { max-width: 300px; min-width: 280px; background: #fff7ed; }
.cmp-coluna-header-frete { background: #ffedd5; color: #9a3412; border-bottom-color: #fdba74; }
.cmp-card-frete { border-left-color: #f97316; }
.cmp-card-frete.cmp-frete-atrasado { background: #fef2f2; box-shadow: 0 0 0 2px #ef4444; animation: cmp-pulse 1.8s infinite; }
.cmp-atraso-flag-frete { background: #dc2626; }
.cmp-frete-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
@keyframes cmp-pulse { 0%,100% { box-shadow: 0 0 0 2px #ef4444; } 50% { box-shadow: 0 0 0 4px #fca5a5; } }

/* Modal */
.cmp-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
.cmp-modal { background: #fff; border-radius: 8px; width: 100%; max-width: 720px; padding: 24px; position: relative; }
.cmp-modal-close { position: absolute; top: 12px; right: 16px; font-size: 24px; background: none; border: none; cursor: pointer; color: #666; }
.cmp-modal h2 { margin-top: 0; }

.cmp-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; }
.cmp-section h3 { margin: 0 0 10px; font-size: 14px; }

.cmp-mini-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.cmp-mini-table th, .cmp-mini-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }

.cmp-inline-form { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cmp-inline-form input, .cmp-inline-form select { flex: 1; min-width: 100px; height: 32px; border: 1px solid #ccd0d4; border-radius: 4px; padding: 0 8px; }

.cmp-field { display: flex; flex-direction: column; flex: 1; min-width: 100px; gap: 4px; }
.cmp-field input, .cmp-field select { height: 32px; border: 1px solid #ccd0d4; border-radius: 4px; padding: 0 8px; width: 100%; }
.cmp-label { font-size: 11px; font-weight: 600; color: #666; text-transform: uppercase; letter-spacing: .02em; }

.cmp-aprovador-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; gap: 10px; flex-wrap: wrap; }
.cmp-aprov-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.cmp-aprovador-item button { cursor: pointer; }
.cmp-aprovado-sim { color: #2e7d32; font-weight: 600; }
.cmp-aprovado-nao { color: #999; }

.cmp-resultado { font-size: 18px; font-weight: 700; margin-top: 6px; }
.cmp-resultado.positivo { color: #2e7d32; }
.cmp-resultado.negativo { color: #c62828; }

.cmp-mov-item { font-size: 12px; color: #666; padding: 4px 0; border-bottom: 1px solid #f5f5f5; }

.cmp-form-inline, .cmp-form-faixa { display: flex; gap: 8px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.cmp-form-faixa { flex-direction: column; align-items: flex-start; background: #f6f7f8; padding: 14px; border-radius: 6px; }
.cmp-form-faixa input:not(.cmp-inline-form input) { width: 260px; }
.cmp-faixa-aprovadores { display: flex; gap: 14px; flex-wrap: wrap; }

.cmp-table { margin-top: 10px; }

.cmp-btn { background: #2271b1; color: #fff; border: none; border-radius: 4px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.cmp-btn:hover { background: #135e96; }
.cmp-btn.secondary { background: #f0f0f1; color: #2271b1; border: 1px solid #2271b1; }
.cmp-btn.danger { background: #fff; color: #c62828; border: 1px solid #f0c5c5; }
.cmp-btn.small { padding: 3px 8px; font-size: 12px; }

.cmp-toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; }
