/* ============================================================
   MASTER INTERNET – documentos.css
   Página "Documentos" (contratos/tabelas por cidade). Usa servico.css
   + legal.css como base (reset, header, tipografia, :root com as
   variáveis de cor). Só acrescenta o seletor de cidade e a lista de
   documentos.
   ============================================================ */

.doc-city-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-700);
  margin-bottom: 28px;
}
.doc-city-row strong { color: var(--gray-900); }
.doc-city-change {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  padding: 6px 14px;
  border: 1.5px solid var(--blue-md);
  border-radius: 50px;
  background: var(--blue-lt);
  transition: background var(--dur) var(--ease);
}
.doc-city-change:hover { background: var(--blue-md); }

.doc-tipo-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dk);
  margin-bottom: 20px;
}

.doc-groups { display: grid; gap: 20px; }

.doc-group {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.doc-group-head {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
}
.doc-group-empresa { font-size: 17px; font-weight: 900; color: var(--gray-900); }

.doc-list { display: grid; gap: 8px; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--gray-200);
  transition: all var(--dur) var(--ease);
}
.doc-item:hover { border-color: var(--blue); background: var(--blue-lt); }
.doc-item-icon { width: 18px; height: 18px; color: var(--gray-500); flex-shrink: 0; }
.doc-item:hover .doc-item-icon { color: var(--blue); }
.doc-item-label { flex: 1; font-size: 14.5px; font-weight: 600; color: var(--gray-700); }
.doc-item:hover .doc-item-label { color: var(--blue-dk); }
.doc-item-download { width: 17px; height: 17px; color: var(--gray-500); flex-shrink: 0; }
.doc-item:hover .doc-item-download { color: var(--blue); }

.doc-empty {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px;
  text-align: center;
  font-size: 14.5px;
  color: var(--gray-500);
  box-shadow: var(--shadow-card);
}

@media (max-width: 680px) {
  .doc-group { padding: 18px; }
}

/* ---- Modal de seleção de cidade (copiado de style.css — esta página não
   carrega o CSS da home) ---- */
.city-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease);
}
.city-modal-overlay.open { opacity: 1; visibility: visible; }

.city-modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  transform: translateY(16px);
  transition: transform var(--dur) var(--ease);
}
.city-modal-overlay.open .city-modal { transform: translateY(0); }

.city-modal h3 { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; }
.city-modal-sub { color: var(--gray-500); font-size: 14px; margin-bottom: 20px; }

.city-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--gray-500);
  background: var(--gray-100);
  transition: background var(--dur), color var(--dur);
}
.city-modal-close:hover { background: var(--gray-200); color: var(--gray-900); }
.city-modal-close svg { width: 18px; height: 18px; }

.city-modal-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  margin-bottom: 20px;
  transition: border-color var(--dur);
}
.city-modal-search-wrap:focus-within { border-color: var(--blue); }
.city-modal-search-wrap svg { width: 18px; height: 18px; color: var(--gray-500); flex-shrink: 0; }
.city-modal-search-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  font-family: inherit;
  color: var(--gray-900);
}

.city-modal-list { overflow-y: auto; padding-right: 4px; }
.city-modal-group + .city-modal-group { margin-top: 18px; }
.city-modal-group h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.city-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.city-modal-item {
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--gray-200);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all var(--dur) var(--ease);
}
.city-modal-item:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.city-modal-empty { color: var(--gray-500); font-size: 14px; text-align: center; padding: 20px 0; }

@media (max-width: 600px) {
  .city-modal { padding: 24px 20px; max-height: 90vh; }
  .city-modal-grid { grid-template-columns: 1fr; }
}
