/* =============================================
   OrdemPRO Sistema – Estilos Globais
   Zoom de -25% aplicado via body.app-body { zoom: 0.75 } no layout.css
============================================= */

:root {
  --primary:      #1a56db;
  --primary-dark: #1343b0;
  --primary-light:#eff6ff;
  --accent:       #ff6b35;
  --success:      #0e9f6e;
  --warning:      #f59e0b;
  --danger:       #e02424;
  --dark:         #111928;
  --gray-800:     #374151;
  --gray-600:     #6b7280;
  --gray-400:     #9ca3af;
  --gray-200:     #e5e7eb;
  --gray-100:     #f3f4f6;
  --white:        #ffffff;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:    0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --transition:   all .2s ease;
  --statusbar-h:  22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Inter', 'Segoe UI', system-ui, sans-serif; color: var(--dark); background: var(--gray-100); font-size: 15px; line-height: 1.5; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ---- FORM ELEMENTS ---- */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--gray-800); margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white); color: var(--dark);
  font-size: 14px; transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-invalid { border-color: var(--danger); }

/* Select elements: reduce vertical padding so fixed heights (32–36px) don't clip text;
   increase padding-right to keep text clear of the native dropdown arrow */
select.form-control {
  padding-top:    7px !important;
  padding-bottom: 7px !important;
  padding-right:  30px !important;
  padding-left:   10px !important;
  height: auto !important;  /* remove any fixed height that clips option text */
  min-height: 36px;
  line-height: 1.4;
  cursor: pointer;
  /* overflow:hidden and text-overflow clip option text in Chrome — keep unset */
}

.invalid-feedback {
  font-size: 12px; color: var(--danger);
  margin-top: 4px; display: flex; align-items: center; gap: 4px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }

.btn-danger  { background: var(--danger);  color: var(--white); }
.btn-danger:hover  { background: #c81e1e; }
.btn-success { background: var(--success); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }

.btn-sm  { padding: 7px 14px; font-size: 13px; }
.btn-lg  { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ---- ALERTS ---- */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-danger  { background: #fdf2f2; border: 1px solid #fde8e8; color: #9b1c1c; }
.alert-success { background: #f3faf7; border: 1px solid #def7ec; color: #03543f; }
.alert-warning { background: #fffbeb; border: 1px solid #fef3c7; color: #92400e; }
.alert-info    { background: var(--primary-light); border: 1px solid #c3ddfd; color: #1e429f; }

/* ---- CARD ---- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-200); }
.card-body   { padding: 24px; }
.card-header { padding: 16px 24px; border-bottom: 1px solid var(--gray-200); }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); background: var(--gray-100); border-radius: 0 0 var(--radius) var(--radius); }
.mb-3 { margin-bottom: 16px; }

/* ---- BADGE ---- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 50px; font-size: 12px; font-weight: 700;
  white-space: nowrap; letter-spacing: 0.2px; line-height: 1.4;
  border: 1px solid transparent;
}
.badge-success { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
.badge-danger  { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.badge-warning { background: #fef3c7; color: #78350f; border-color: #fcd34d; }
.badge-info    { background: #dbeafe; color: #1e3a8a; border-color: #93c5fd; }
.badge-gray    { background: #f3f4f6; color: #374151; border-color: #d1d5db; }
.badge-primary { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }

/* ---- TABLE ---- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 12px 16px; background: var(--gray-100); font-weight: 600; color: var(--gray-600); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; text-align: left; border-bottom: 1px solid var(--gray-200); }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-200); color: var(--dark); vertical-align: middle; }
.table tbody tr:hover { background: #f8f9ff; }
.table tbody tr:last-child td { border-bottom: none; }

/* ---- STATUS ROW COLORS ---- */
.table tbody tr.row-aberta     td { background: #eff6ff; }
.table tbody tr.row-andamento  td { background: #fff7ed; }
.table tbody tr.row-concluida  td { background: #f0fdf4; }
.table tbody tr.row-cancelada  td { background: #f9fafb; color: #9ca3af; }
.table tbody tr.row-aguardando td { background: #fefce8; }
.table tbody tr.row-problema   td { background: #fef2f2; }
.table tbody tr.row-aberta:hover    td { background: #dbeafe; }
.table tbody tr.row-andamento:hover td { background: #ffedd5; }
.table tbody tr.row-concluida:hover td { background: #dcfce7; }
.table tbody tr.row-problema:hover  td { background: #fee2e2; }

/* ---- PAGINATION ---- */
.pagination { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px;
  border-radius: 6px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--gray-200); color: var(--gray-800);
  transition: var(--transition);
}
.pagination a:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.pagination span.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.pagination span.disabled { color: var(--gray-400); cursor: default; }

/* ---- UTILS ---- */
.text-primary { color: var(--primary); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-muted   { color: var(--gray-600); }
.text-sm      { font-size: 13px; }
.text-center  { text-align: center; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }

/* ---- APP LOGO ---- */
.app-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.app-logo-icon {
  width: 42px; height: 42px; background: #ff6b35; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px; font-weight: 800;
  letter-spacing: -1px; flex-shrink: 0;
}
.app-logo-text { font-size: 22px; font-weight: 600; color: #111928; letter-spacing: -0.3px; }
.app-logo-text strong { font-weight: 800; color: #ff6b35; }

/* ---- LOGIN PAGE ---- */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); padding: 24px;
}
.login-box { width: 100%; max-width: 380px; }
.login-logo {
  text-align: center; margin-bottom: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.login-logo p { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.login-form .form-control {
  border: none; border-bottom: 1.5px solid var(--gray-200);
  border-radius: 0; padding: 10px 0;
  background: transparent; font-size: 15px;
}
.login-form .form-control:focus { border-color: var(--primary); box-shadow: none; }
.login-form .form-label { font-size: 12px; color: var(--gray-600); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.login-form .btn-primary { background: var(--primary); border-radius: 50px; font-size: 15px; font-weight: 600; padding: 13px; margin-top: 8px; }
.login-links { display: flex; justify-content: center; gap: 32px; margin-top: 20px; }
.login-links a { font-size: 13px; color: var(--primary); font-weight: 500; transition: var(--transition); }
.login-links a:hover { color: var(--primary-dark); }

.input-password-wrap { position: relative; }
.input-password-wrap .toggle-pass {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); padding: 4px; font-size: 16px; transition: var(--transition);
}
.input-password-wrap .toggle-pass:hover { color: var(--gray-600); }

/* ---- STATUS BAR (rodapé fixo, fora do zoom do body) ---- */
.statusbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--statusbar-h);
  background: #1a2744;
  border-top: 1px solid #0f1a32;
  display: flex; align-items: center;
  padding: 0 14px; gap: 0;
  z-index: 9000;
  font-size: 10px; color: rgba(255,255,255,.75);
  font-family: 'Inter', sans-serif;
  user-select: none;
}
.statusbar-sep { width: 1px; height: 16px; background: rgba(255,255,255,.18); margin: 0 12px; flex-shrink: 0; }
.statusbar-item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.statusbar-item strong { color: #fff; font-weight: 600; }
.statusbar-item.statusbar-right { margin-left: auto; }
.statusbar-clock { font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }

/* ======================================================
   OS PIPELINE (barra de status visual horizontal)
   ====================================================== */
.os-pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
  overflow-x: auto;
  flex-wrap: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  border: none;
  background: none;
  cursor: default;
  white-space: nowrap;
  transition: all .15s;
}
button.pipeline-step { cursor: pointer; }
button.pipeline-step:hover { background: #f3f4f6; color: #374151; }
.pipeline-step .pipeline-icon { font-size: 18px; line-height: 1; }
.pipeline-step.done { color: #6b7280; }
.pipeline-step.done .pipeline-icon { opacity: .6; }
.pipeline-step.active {
  background: #eff6ff;
  color: #1a56db;
  font-weight: 700;
  border: 1.5px solid #93c5fd;
}
.pipeline-arrow {
  color: #d1d5db;
  font-size: 16px;
  padding: 0 2px;
  flex-shrink: 0;
  align-self: center;
}
.pipeline-step.muted { opacity: .35; pointer-events: none; }
.pipeline-step-cancel { border-left: 2px dashed #e5e7eb; margin-left: 6px; padding-left: 14px; }
.pipeline-step-cancel.active { background: #fef2f2; color: #dc2626; border: 1.5px solid #fca5a5; }
button.pipeline-step-cancel:hover { background: #fef2f2; color: #dc2626; }

/* ======================================================
   BADGE EXTRA VARIANTS
   ====================================================== */
.badge-orange  { background:#ffedd5; color:#7c2d12; border-color:#f97316; }
.badge-teal    { background:#ccfbf1; color:#134e4a; border-color:#14b8a6; }
.badge-purple  { background:#ede9fe; color:#4c1d95; border-color:#8b5cf6; }
.badge-brown   { background:#fef3c7; color:#713f12; border-color:#f59e0b; }

/* Prioridade badges extras */
.badge-urgente { background:#fee2e2; color:#7f1d1d; border-color:#ef4444; font-weight:800; }
.badge-alta    { background:#ffedd5; color:#7c2d12; border-color:#f97316; }
.badge-media   { background:#fef9c3; color:#713f12; border-color:#ca8a04; }
.badge-normal  { background:#f3f4f6; color:#1f2937; border-color:#9ca3af; }

/* ======================================================
   SITUAÇÃO CHECKLIST COLORS
   ====================================================== */
.badge-sit-pendente   { background:#f9fafb; color:#6b7280; }
.badge-sit-analise    { background:#eff6ff; color:#1d4ed8; }
.badge-sit-autorizada { background:#f0fdf4; color:#15803d; }
.badge-sit-recusada   { background:#fef2f2; color:#dc2626; }
.badge-sit-aguardando { background:#fefce8; color:#a16207; }
.badge-sit-concluido  { background:#f0fdf4; color:#166534; font-weight:700; }

/* ======================================================
   HELPERS UTILITÁRIOS
   ====================================================== */
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-primary { color: var(--primary); }
.text-muted   { color: #9ca3af; }
.text-center  { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 16px !important; }

/* Alert */
.alert { display:flex; gap:10px; align-items:flex-start; padding:12px 16px; border-radius:8px; margin-bottom:16px; font-size:14px; }
.alert-danger  { background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; }
.alert-success { background:#f0fdf4; border:1px solid #86efac; color:#166534; }
.alert-warning { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }
.alert-info    { background:#eff6ff; border:1px solid #93c5fd; color:#1e40af; }

/* Invalid feedback */
.is-invalid { border-color: #ef4444 !important; }
.invalid-feedback { color:#ef4444; font-size:12px; margin-top:3px; }

/* ======================================================
   TABS NAV — barra de abas com scroll em mobile
   ====================================================== */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 20px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
}
.tabs-nav a:hover { color: #374151; }
.tabs-nav a.active { color: var(--primary); border-bottom-color: var(--primary); }
/* tab-btn: botão <button> usado como aba (clientes, OS etc.) */
.tabs-nav .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.tabs-nav .tab-btn:hover { color: #374151; }
.tabs-nav .tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ======================================================
   TABELA RESPONSIVA — scrollable em mobile
   ====================================================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}
/* .table-responsive — gerado automaticamente pelo app.js para todas as .table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-radius: inherit;
}

/* ======================================================
   MODAL — garante scroll e tamanho correto em mobile
   ====================================================== */
.modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* ======================================================
   RESPONSIVIDADE MOBILE — breakpoints globais
   ====================================================== */

/* ── Desktop médio (≤ 1280px) ─────────────────────── */
@media (max-width: 1280px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Tablet landscape (≤ 1024px) ──────────────────── */
@media (max-width: 1024px) {
  .grid-2, .grid-1-2, .grid-2-1, .grid-3 { grid-template-columns: 1fr !important; }
  .main-content [style*="2fr 1fr"],
  .main-content [style*="1fr 2fr"],
  .main-content [style*="3fr 2fr"],
  .main-content [style*="1fr 1fr 1fr"],
  .main-content [style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}

/* ── Tela dividida / narrow (≤ 860px) — o zoom 0.75 faz a tela efetiva ser menor ── */
@media (max-width: 860px) {
  /* Grids com pixel fixo ou muitas colunas colapsam para 2 */
  .main-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  /* grids de 2 colunas ficam 1 coluna */
  .main-content [style*="2fr 1fr"],
  .main-content [style*="1fr 2fr"],
  .main-content [style*="3fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Forçar min-width 0 em cells para não transbordar */
  .main-content [style*="grid-template-columns"] > * {
    min-width: 0;
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Tablet portrait (≤ 768px) ────────────────────── */
@media (max-width: 768px) {
  .main-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .main-content [style*="2fr 1fr"],
  .main-content [style*="1fr 2fr"],
  .main-content [style*="grid-column: 1/3"],
  .main-content [style*="grid-column:1/3"] {
    grid-template-columns: 1fr !important;
  }

  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-card { padding: 14px 12px; gap: 10px; }
  .stat-icon { width: 40px; height: 40px; font-size: 18px; }
  .stat-info h3 { font-size: 20px; }

  /* Page header */
  .page-header { flex-wrap: wrap; gap: 10px; }
  .page-header > div:first-child { flex: 1; min-width: 0; }
  .page-header h2 { font-size: 18px; }

  /* Card paddings */
  .card-body { padding: 16px; }
  .card-header { padding: 12px 16px; font-size: 14px; }
  .card-footer { padding: 12px 16px; }

  /* Tables */
  .table th, .table td { padding: 10px 10px; font-size: 13px; }
  .table .btn-sm { padding: 5px 8px; font-size: 12px; white-space: nowrap; }

  /* Modais: tela quase toda */
  [id^="modal"] > div { width: 96vw !important; max-height: 90vh !important; overflow-y: auto !important; }
  .modal-box { max-width: 96vw !important; padding: 20px !important; }

  /* Tabs nav: garantir scroll horizontal */
  .tabs-nav { overflow-x: auto; flex-wrap: nowrap !important; }
  .tabs-nav a { padding: 10px 14px; font-size: 13px; }
}

/* ── Mobile (≤ 640px) ─────────────────────────────── */
@media (max-width: 640px) {
  .main-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .main-content [style*="grid-column"] { grid-column: auto !important; }

  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-info h3 { font-size: 18px; }
  .stat-icon { width: 36px; height: 36px; font-size: 16px; }

  /* Page header: botões empilham */
  .page-header { flex-direction: column; align-items: stretch; gap: 8px; }
  .page-header h2 { font-size: 17px; }
  .page-header .btn,
  .page-header > div:last-child { width: 100%; justify-content: center; text-align: center; }

  /* Botões de ação: wrappam */
  [style*="display:flex"][style*="gap:12px"],
  [style*="display:flex"][style*="gap:16px"],
  [style*="display:flex"][style*="gap:24px"] { flex-wrap: wrap; }

  .main-content { padding: 14px 12px !important; }
  .table .col-hide-xs { display: none !important; }

  /* Form actions */
  .form-actions { flex-direction: column !important; }
  .form-actions .btn { width: 100%; }
}

/* ── Mobile pequeno (≤ 480px) ─────────────────────── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .btn { font-size: 13px; padding: 9px 14px; }
  .btn-sm { padding: 5px 9px; font-size: 12px; }
  .main-content { padding: 12px 10px !important; }
  .card-body { padding: 14px 12px; }
  .card-header { padding: 10px 14px; font-size: 13px; }
  .page-header h2 { font-size: 16px; }
  .stat-info h3 { font-size: 16px; }
  .stat-icon { width: 32px; height: 32px; font-size: 14px; }
}

/* ── Touch: alvos mínimos de 44px ─────────────────── */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 36px; }
  .form-control { min-height: 44px; font-size: 16px; }
  select.form-control { min-height: 44px; font-size: 16px; }
  textarea.form-control { font-size: 16px; }
  .nav-item { padding: 12px 16px; min-height: 44px; }
}

/* ======================================================
   UTILITÁRIOS ADICIONAIS
   ====================================================== */
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.min-w-0 { min-width: 0; }
.grid-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-form-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.grid-form-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 860px) {
  .grid-form-3, .grid-form-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-form-2, .grid-form-3, .grid-form-4 { grid-template-columns: 1fr; }
}

/* Badge extra: status sistema */
.badge-trial   { background:#fef9c3; color:#713f12; border-color:#ca8a04; }
.badge-ativo   { background:#d1fae5; color:#065f46; border-color:#6ee7b7; }
.badge-bloqueado { background:#fee2e2; color:#991b1b; border-color:#fca5a5; }
.badge-cancelado { background:#f3f4f6; color:#374151; border-color:#d1d5db; }


/* ── Prazo Banner (dashboard) ──────────────────────────── */
.prazo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 8px;
  padding: 7px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.prazo-banner-icon { font-size: 15px; }
.prazo-banner-label { font-weight: 700; color: #7c2d12; white-space: nowrap; }
.prazo-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}
.prazo-chip:hover { opacity: .8; }
.prazo-chip-danger { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }
.prazo-chip-warn   { background: #fffbeb; color: #b45309; border: 1px solid #fcd34d; }
