:root {
  --navy: #0e1a2b;
  --navy-light: #152640;
  --teal: #4ecdc4;
  --teal-dark: #2fa39a;
  --gold: #f2c230;
  --cream: #f5f2e9;
  --ink: #1b1f27;
  --gray: #5c6470;
  --border: #e7e5df;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 26, 43, 0.1);
  --ff: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

body {
  font-family: var(--ff);
  margin: 0;
  background: var(--bg-alt);
  color: var(--ink);
}

/* LOGIN */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: var(--navy);
  background-image: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
}

.login-box {
  background: #fff;
  padding: 2.75rem 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 340px;
  max-width: 90vw;
  text-align: center;
}

.login-logo {
  height: 48px;
  margin: 0 auto 0.75rem;
}

.login-eyebrow {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--teal-dark);
  margin: 0 0 1.5rem;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.login-box label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  margin-top: 0.3rem;
}

.login-box input {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--ff);
  font-size: 0.95rem;
}

.login-box input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.25);
}

.btn-primary {
  background: var(--teal-dark);
  color: #fff;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--ff);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background: var(--teal);
  color: var(--navy);
}

.alert {
  background: #fde8e8;
  color: #9b1c1c;
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.alert-success {
  background: rgba(62, 207, 111, 0.15);
  color: #1c8a48;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 2rem;
  background: var(--navy);
  color: #fff;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-brand img {
  height: 30px;
}

.topbar-brand span {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1rem;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-user {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
}

.link-button {
  display: inline-block;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  font-family: var(--ff);
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.link-button:hover {
  border-color: var(--teal);
  background: rgba(78, 205, 196, 0.12);
}

/* SINO DE NOTIFICAÇÕES */
.notif-bell-wrap {
  position: relative;
}

.notif-bell {
  position: relative;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.notif-bell:hover {
  border-color: var(--teal);
  background: rgba(78, 205, 196, 0.12);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e0553f;
  color: #fff;
  font-family: var(--ff);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy);
}

.notif-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  z-index: 95;
}

.notif-panel h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
}

.notif-item {
  list-style: none;
  border-top: 1px solid var(--border);
  padding: 0.6rem 0;
}

.notif-item:first-child {
  border-top: none;
}

.notif-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.notif-item a:hover strong {
  color: var(--teal-dark);
}

.notif-item-meta {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.15rem;
}

.notif-list {
  margin: 0;
  padding: 0;
}

.notif-empty {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

/* BOARD */
.board {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  overflow-x: auto;
  align-items: flex-start;
}

.kanban-column {
  background: #eceff3;
  border-radius: var(--radius);
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 6rem);
  box-shadow: var(--shadow);
}

.kanban-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  border-bottom: 3px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.kanban-column-header--novo { border-bottom-color: var(--teal); }
.kanban-column-header--contatado { border-bottom-color: var(--gold); }
.kanban-column-header--reuniao_agendada { border-bottom-color: #7c9dfa; }
.kanban-column-header--fechado { border-bottom-color: #3ecf6f; }
.kanban-column-header--sem_interesse { border-bottom-color: #c7ccd4; }

.kanban-column-header--a_fazer { border-bottom-color: #c7ccd4; }
.kanban-column-header--fazendo { border-bottom-color: var(--gold); }
.kanban-column-header--concluido { border-bottom-color: #3ecf6f; }

.kanban-count {
  background: #dde1e7;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.72rem;
  color: var(--gray);
  font-weight: 700;
}

.kanban-column-body {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  min-height: 80px;
  transition: background-color 0.15s ease;
}

.kanban-column-body.drag-over {
  background-color: rgba(78, 205, 196, 0.15);
  border-radius: 6px;
}

.kanban-card {
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid var(--teal);
  padding: 0.65rem 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: grab;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.kanban-card:hover {
  box-shadow: 0 4px 12px rgba(14, 26, 43, 0.15);
}

.kanban-card.dragging {
  opacity: 0.4;
}

.kanban-card-nome {
  font-size: 0.9rem;
  color: var(--navy);
}

.kanban-card-info {
  color: var(--gray);
}

.kanban-card-campanha {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.78rem;
  margin-top: 0.2rem;
}

.kanban-card-vendedor {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--navy);
  font-weight: 600;
}

.kanban-card-obs {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  color: var(--gray);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.kanban-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.tag-chip-mini {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.kanban-empty {
  text-align: center;
  color: #9aa5b1;
  font-size: 0.8rem;
  padding: 1rem 0;
}

/* HUB (início) */
.hub-page {
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  gap: 1.25rem;
  max-width: 900px;
  width: 100%;
  min-width: 0;
}

.hub-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
}

.hub-card:hover {
  box-shadow: 0 4px 16px rgba(14, 26, 43, 0.18);
  transform: translateY(-2px);
}

.hub-card-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.hub-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.hub-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray);
}

/* OBRAS */
.obras-page {
  padding: 1.5rem 2rem;
}

.obras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  align-items: start;
}

.obra-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--teal);
  overflow: hidden;
}

.obra-card:hover {
  box-shadow: 0 4px 16px rgba(14, 26, 43, 0.18);
}

.obra-card-header {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.obra-card-toggle {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff);
  text-align: left;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.obra-card-header-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.obra-card-chevron {
  color: var(--gray);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.obra-card-toggle[aria-expanded="true"] .obra-card-chevron {
  transform: rotate(180deg);
}

.obra-card-edit {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.3rem;
  flex-shrink: 0;
  border-radius: 6px;
}

.obra-card-edit:hover {
  color: var(--teal-dark);
  background: var(--bg-alt);
}

.obra-card-nome {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.obra-card-endereco {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray);
}

.obra-card-progress {
  margin-top: 0.35rem;
}

.obra-progress-bar {
  background: #eceff3;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.obra-progress-fill {
  background: var(--teal);
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.obra-progress-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--gray);
}

.obra-card-body {
  border-top: 1px solid var(--border);
  padding: 0.5rem 1.25rem 1.1rem;
}

.obra-tarefas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.obra-tarefa-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.obra-tarefa-item:last-child {
  border-bottom: none;
}

.obra-tarefa-check-wrap {
  padding-top: 0.15rem;
}

.obra-tarefa-check {
  width: 18px;
  height: 18px;
  accent-color: var(--teal-dark);
  cursor: pointer;
}

.obra-tarefa-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.obra-tarefa-titulo {
  font-size: 0.88rem;
  color: var(--ink);
}

.obra-tarefa-titulo--feita {
  color: var(--gray);
  text-decoration: line-through;
}

.obra-tarefa-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: var(--gray);
}

.obra-tarefas-empty {
  color: var(--gray);
  font-size: 0.82rem;
  padding: 0.6rem 0;
}

.obra-tarefa-remove {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.1rem 0.3rem;
  flex-shrink: 0;
  align-self: flex-start;
}

.obra-tarefa-remove:hover {
  color: #c0392b;
}

.obra-card-full-link {
  display: block;
  text-align: right;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}

.obra-card-full-link:hover {
  text-decoration: underline;
}

.obras-empty {
  color: var(--gray);
  font-size: 0.9rem;
}

.fab-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--teal-dark);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(14, 26, 43, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.fab-button:hover {
  background: var(--teal);
  transform: translateY(-2px);
}

/* TAREFAS (dentro do quadro de obra) */
.tarefa-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.tarefa-prazo {
  font-size: 0.78rem;
  color: var(--gray);
}

.tarefa-prazo--vencida {
  color: #c0392b;
  font-weight: 700;
}

.modal-delete {
  margin-right: auto;
  color: #c0392b;
  border-color: #f3c9c3;
}

.anexo-progresso {
  font-size: 0.78rem;
  color: var(--gray);
}

.anexo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 160px;
  overflow-y: auto;
}

.anexo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.anexo-item:last-child {
  border-bottom: none;
}

.anexo-link {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--teal-dark);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anexo-link:hover {
  text-decoration: underline;
}

.anexo-tamanho {
  font-size: 0.72rem;
  color: var(--gray);
  flex-shrink: 0;
}

.anexo-remove {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.1rem 0.3rem;
  flex-shrink: 0;
}

.anexo-remove:hover {
  color: #c0392b;
}

.anexo-empty {
  color: var(--gray);
  font-size: 0.8rem;
  padding: 0.2rem 0;
}

.anexo-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 92vw;
  max-height: 92vh;
}

.anexo-preview img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}

.anexo-preview-close {
  position: absolute;
  top: -0.75rem;
  right: -0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.anexo-preview-download {
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.anexo-preview-download:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 43, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 360px;
  max-width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
}

/* Sem isso, um flex-column com altura limitada ENCOLHE os filhos (campos,
   listas) pra caber no espaço em vez de deixar o modal rolar — é o que
   fazia a descrição e a lista de anexos aparecerem cortadas/espremidas. */
.modal > * {
  flex-shrink: 0;
}

.modal h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 800;
}

.modal p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
}

.modal label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modal select,
.modal input,
.modal textarea {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.modal select:focus,
.modal input:focus,
.modal textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.25);
}

.modal textarea {
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.modal-actions .secondary {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--ff);
}

.modal-actions .btn-primary {
  margin-top: 0;
  padding: 0.55rem 1.1rem;
}

.modal-hint {
  font-size: 0.75rem;
  color: var(--gray);
  font-style: italic;
}

.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-chip {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-family: var(--ff);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.tag-chip.selected {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--navy);
}

.tag-chip-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.tag-chip-cor {
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.tag-chip-edit,
.tag-chip-remove {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 0.78rem;
  padding: 0.1rem 0.15rem;
  line-height: 1;
}

.tag-chip-edit:hover {
  color: var(--teal-dark);
}

.tag-chip-remove:hover {
  color: #c0392b;
}

.tag-create {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.3rem;
}

.tag-create input[type="file"] {
  max-width: 100%;
}

.tag-create input[type="text"] {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
}

.tag-create input[type="color"] {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.tag-create .secondary {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--ff);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* USUÁRIOS */
.users-page {
  padding: 1.5rem 2rem;
  max-width: 780px;
}

.users-page h1 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.users-lead {
  color: var(--gray);
  font-size: 0.88rem;
  margin: 0 0 1.5rem;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.users-table th,
.users-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.85rem;
  vertical-align: middle;
}

.users-table th {
  background: var(--bg-alt);
  color: var(--navy);
  font-weight: 700;
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-pill--ativo {
  background: rgba(62, 207, 111, 0.15);
  color: #1c8a48;
}

.status-pill--inativo {
  background: rgba(197, 202, 210, 0.4);
  color: var(--gray);
}

.users-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.users-actions form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.users-actions .secondary {
  background: var(--bg-alt);
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--ff);
  font-size: 0.78rem;
  white-space: nowrap;
}

.users-actions .users-delete-btn {
  background: #fde8e8;
  color: #9b1c1c;
  border-color: #f3c9c3;
}

.users-reset-form input {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  width: 110px;
}

.users-new {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.users-new h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--navy);
}

.users-new-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
}

.users-new-form label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.4rem;
}

.users-new-form input,
.users-new-form select {
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

.users-new-form input:focus,
.users-new-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.25);
}

.users-new-form .btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.75rem;
}

/* MOBILE */
@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
  }

  .topbar-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
  }

  .topbar-user {
    width: 100%;
    order: -1;
  }

  .notif-panel {
    width: calc(100vw - 2rem);
    right: -0.5rem;
  }

  .obras-page,
  .hub-page,
  .users-page {
    padding: 1rem;
  }

  .hub-page {
    padding-top: 2rem;
  }

  .board {
    padding: 1rem 0.75rem;
    gap: 0.75rem;
    scroll-snap-type: x proximity;
  }

  .kanban-column {
    width: 86vw;
    min-width: 86vw;
    scroll-snap-align: start;
    max-height: none;
  }

  .modal {
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 1.25rem;
  }

  .modal-overlay {
    padding: 0;
  }

  .modal-actions {
    flex-wrap: wrap;
  }

  .modal-actions button {
    flex: 1;
    min-width: 100px;
  }

  .tag-create {
    flex-wrap: wrap;
  }

  .tag-create input[type="text"] {
    flex-basis: 100%;
  }

  .users-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .users-new-form {
    grid-template-columns: 1fr;
  }

  .obra-card-header {
    padding: 1rem;
  }

  .obra-card-body {
    padding: 0.5rem 1rem 1rem;
  }
}
