:root {
  --green: #72B82E;
  --blue: #1A4F9C;
  --dark-blue: #0D2F6E;
  --light-green: #A8D45A;
  --light-blue: #4A7FBF;
  --bg: #F4F8F2;
  --white: #FFFFFF;
  --text: #1A2B1A;
  --muted: #6B7F6B;
  --border: #D6E8C4;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  min-height: 100vh;
  padding: 24px 16px;
  color: var(--text);
}

.container {
  max-width: 820px;
  margin: 0 auto;
}

/* ===== HEADER ===== */
.header {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--blue) 60%, var(--light-blue) 100%);
  border-radius: 18px;
  padding: 28px 32px;
  margin-bottom: 22px;
  color: #fff;
  box-shadow: 0 4px 24px rgba(26,79,156,0.18);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.header-left { flex: 1; }

.header-subtitle {
  font-size: 11px;
  opacity: 0.7;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header-input-empresa {
  font-size: 24px;
  font-weight: 700;
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.4);
  color: #fff;
  outline: none;
  width: 100%;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: text;
  font-family: inherit;
}

.header-operadoras {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.operadora-badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.operadora-badge span { opacity: 0.7; }

.operadora-badge input {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 700;
  outline: none;
  width: 100px;
  font-family: inherit;
  font-size: 13px;
}

.header-logo {
  background: #fff;
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
}

/* ===== ALERTA DUPLO ===== */
.alerta-duplo {
  background: #FFFBE6;
  border: 1.5px solid #F5C518;
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.alerta-duplo-icon { font-size: 22px; }

.alerta-duplo-titulo {
  font-weight: 700;
  color: #7B5000;
  font-size: 14px;
}

.alerta-duplo-texto {
  color: #5C3A00;
  font-size: 13px;
  margin-top: 4px;
}

/* ===== TABS ===== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 9px 20px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 2px 10px #72B82E55;
  border-bottom: 3px solid var(--dark-blue);
}

/* ===== CARD GENERICO ===== */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 6px rgba(26,79,156,0.08);
}

.card-title {
  margin: 0 0 26px;
  color: var(--dark-blue);
  font-size: 16px;
  border-bottom: 3px solid var(--green);
  padding-bottom: 10px;
}

.card-title-small {
  margin: 0 0 20px;
  color: var(--dark-blue);
  font-size: 16px;
  border-bottom: 3px solid var(--green);
  padding-bottom: 10px;
}

/* ===== TIMELINE ===== */
.timeline-step {
  display: flex;
  gap: 16px;
}

.timeline-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 48px;
  flex-shrink: 0;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.timeline-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
}

.timeline-line {
  width: 3px;
  flex: 1;
  min-height: 24px;
  opacity: 0.25;
}

.timeline-content {
  padding-bottom: 28px;
  flex: 1;
}

.timeline-label {
  font-weight: 700;
  color: var(--dark-blue);
  font-size: 14px;
}

.timeline-desc {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.5;
}

.timeline-badges {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.badge-date {
  background: #1A4F9C15;
  color: var(--blue);
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

.badge-waiting {
  background: #F1F5F9;
  color: #94A3B8;
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 12px;
}

.badge-auto {
  background: #72B82E20;
  color: var(--green);
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.badge-efetiv {
  background: #72B82E20;
  color: var(--green);
  border-radius: 7px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ===== BENEFICIARIOS ===== */
.benef-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.benef-table thead tr {
  background: #1A4F9C10;
}

.benef-table th {
  text-align: left;
  padding: 10px 14px;
  color: var(--dark-blue);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}

.benef-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.benef-nome {
  font-weight: 700;
  color: var(--dark-blue);
}

.benef-badge {
  border-radius: 7px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 12px;
  display: inline-block;
}

.benef-origem {
  color: #C0392B;
  font-weight: 600;
  font-size: 13px;
}

.benef-destino {
  color: var(--green);
  font-weight: 600;
  font-size: 13px;
}

.btn-remover {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  border-radius: 7px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
}

.benef-form {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.benef-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  flex: 1;
  min-width: 150px;
  font-family: inherit;
}

.benef-select {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  font-family: inherit;
}

.btn-adicionar {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  box-shadow: 0 2px 8px #72B82E55;
  font-family: inherit;
}

/* ===== EDITAR DATAS ===== */
.datas-intro {
  color: var(--muted);
  font-size: 13px;
  margin: 12px 0 24px;
}

.etapa-block {
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  border-left: 4px solid transparent;
}

.etapa-block.blue-bg {
  background: #1A4F9C08;
  border-left-color: var(--blue);
}

.etapa-block.green-bg {
  background: #72B82E08;
  border-left-color: var(--green);
}

.etapa-header {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.etapa-header.blue { color: var(--blue); }
.etapa-header.green { color: var(--green); }

.date-field { margin-bottom: 18px; }

.date-field label {
  display: block;
  font-weight: 700;
  color: var(--dark-blue);
  font-size: 13px;
  margin-bottom: 6px;
}

.date-field .required {
  color: #C0392B;
  font-size: 11px;
}

.date-field-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.date-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  accent-color: var(--green);
  font-family: inherit;
}

.date-input.filled {
  border-color: var(--green);
}

.date-hint {
  color: #94A3B8;
  font-size: 12px;
}

.btn-limpar {
  background: none;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
}

.number-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
  width: 100px;
  font-family: inherit;
}

.efetiv-hint {
  margin-left: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* ===== OBSERVACOES ===== */
.observacoes {
  background: linear-gradient(135deg, #72B82E15, #1A4F9C10);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 20px;
}

.observacoes-titulo {
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.observacoes-badge {
  background: var(--green);
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
}

.observacoes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--dark-blue);
  font-size: 13px;
  line-height: 2.2;
}

/* ===== FOOTER ===== */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding: 0 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-date {
  color: #CBD5E1;
  font-size: 11px;
}

.btn-exportar {
  background: linear-gradient(135deg, var(--blue), var(--dark-blue));
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 10px #1A4F9C55;
  font-family: inherit;
}

/* ===== RESPONSIVO ===== */
.table-wrapper { overflow-x: auto; }

@media (max-width: 600px) {
  .header { padding: 20px 18px; }
  .card { padding: 18px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

/* ===== PRINT ===== */
@media print {
  button { display: none !important; }
  input {
    border: none !important;
    background: transparent !important;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    width: auto;
  }
  .btn-limpar { display: none !important; }
  .btn-remover { display: none !important; }
  .btn-adicionar { display: none !important; }
  .btn-exportar { display: none !important; }
  .benef-form { display: none !important; }
  .tabs { display: none !important; }
}

/* ===== HIDDEN UTILITY ===== */
.hidden { display: none !important; }
