/* Fonte institucional Transdata — Red Hat Display (variável), auto-hospedada */
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/redhat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/redhat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  /* Paleta padronizada a partir do logotipo Transdata (elmo) — teal #1a96b2 + neutros da mesma matiz */
  --primary: #1a96b2; /* teal exato do logo */
  --primary-dark: #157c93; /* hover / estados pressionados */
  --accent: #0d5b6d; /* teal profundo — usado nos gradientes (texto branco legível) */
  --accent-dark: #094553;
  --navy: #083944; /* faixas escuras / rodapé */

  --bg: #f0f8f9; /* fundo levemente teal */
  --surface: #ffffff;
  --surface-tint: #e5f2f5; /* superfícies suaves (th, toolbars) */
  --text: #192a2e; /* carvão levemente teal */
  --text-muted: #567076;
  --border: #cbe1e6;
  --danger: #dc3545; /* funcional — feedback de erro */
  --danger-bg: #fdf1f2;
  --success: #0ec143; /* funcional — feedback de sucesso */
  --success-bg: #eefdf3;

  /* Cores por segmento de atuação (diferenciadores funcionais das áreas) */
  --seg-transporte: #1a96b2;
  --seg-guindaste: #ef8a1b; /* içamento / guindastes */
  --seg-eolica: #0ea371; /* energia eólica */
  --seg-engenharia: #7c46e6; /* engenharia */
}

body {
  font-family: 'Red Hat Display', Tahoma, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.center-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--text-muted);
}

/* ===== Login ===== */
.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* a montagem (foto) e aplicada via JS em background-image e rotaciona a cada 5 min */
  background-color: #0d5b6d; /* fallback enquanto a imagem carrega */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.6s ease-in-out;
  padding: 1rem;
}

/* gradiente azul corporativo por cima da montagem */
.login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 57, 68, 0.82) 0%, rgba(26, 150, 178, 0.62) 100%);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.login-card h1 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.login-card .subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.login-card label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.login-card input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  outline: none;
}

.login-card input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 150, 178, 0.15);
}

/* ===== Botões ===== */
.btn {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 3px 10px rgba(26, 150, 178, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
  box-shadow: 0 5px 16px rgba(26, 150, 178, 0.32);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover:not(:disabled) {
  background: var(--bg);
}

.btn-small {
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}

/* ===== Alertas ===== */
.alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* ===== Layout ===== */
.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
  box-shadow: 0 2px 12px rgba(8, 57, 68, 0.06);
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Marca com logo (cubo) + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.brand-sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.topbar nav {
  display: flex;
  gap: 0.35rem;
}

.topbar nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.topbar nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 3px 10px rgba(26, 150, 178, 0.28);
}

.topbar nav a:hover:not(.active) {
  color: var(--primary);
  background: #e3f2f5;
}

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

.user-chip {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.page h1 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  position: relative;
}

/* traço de acento sob os títulos de página */
.page h1::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.page .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(8, 57, 68, 0.04);
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}

.card:hover {
  box-shadow: 0 10px 28px rgba(8, 57, 68, 0.1);
  transform: translateY(-2px);
  border-color: #c9d8e8;
}

/* Card com faixa colorida no topo (por segmento) */
.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.card-accent.seg-transporte::before { background: var(--seg-transporte); }
.card-accent.seg-guindaste::before { background: var(--seg-guindaste); }
.card-accent.seg-eolica::before { background: var(--seg-eolica); }
.card-accent.seg-engenharia::before { background: var(--seg-engenharia); }

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--navy);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  font-size: 0.9rem;
}

.info-list dt {
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== Badges ===== */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-admin {
  background: #fef3c7;
  color: #92400e;
}

.badge-user {
  background: #e0f2fe;
  color: #075985;
}

.badge-active {
  background: var(--success-bg);
  color: var(--success);
}

.badge-inactive {
  background: var(--danger-bg);
  color: var(--danger);
}

/* ===== Tabela ===== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  background: var(--surface-tint);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--border);
}

tbody tr:nth-child(even) td {
  background: #fafcfe;
}

tbody tr:hover td {
  background: #eef5fc;
}

tr:last-child td {
  border-bottom: none;
}

.row-inactive td {
  opacity: 0.55;
}

.you-tag {
  color: var(--text-muted);
  font-size: 0.8rem;
}

td select {
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  background: var(--surface);
}

/* ===== Sub-abas da administração ===== */
.subnav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border);
  margin: 0.75rem 0 1.25rem;
}

.subnav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.subnav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.subnav a:hover {
  color: var(--primary);
}

/* ===== Grupos ===== */
.groups-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .groups-layout {
    grid-template-columns: 3fr 2fr;
  }
}

.group-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.group-form input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.group-form input:focus {
  border-color: var(--primary);
}

.group-form .btn {
  align-self: flex-start;
}

.members-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.add-member-row {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.add-member-row select {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--surface);
}

.member-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.member-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0;
}

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

.btn-danger {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: #fee2e2;
}

.row-selected td {
  background: #eff6ff;
}

.empty-cell {
  text-align: center;
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
}

.admin-group-note {
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

/* ===== Mural de notícias ===== */
.dash-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .dash-layout {
    grid-template-columns: 1fr 300px;
  }
}

.mural-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.mural-header h1 {
  margin: 0;
}

.news-card {
  margin-bottom: 1rem;
}

.news-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.news-title-row h2 {
  font-size: 1.1rem;
  margin: 0;
}

.news-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.news-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0.75rem;
}

.news-body {
  font-size: 0.92rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.news-body p {
  margin: 0 0 0.75rem;
}

.news-body h2 {
  font-size: 1.15rem;
  margin: 1rem 0 0.5rem;
}

.news-body h3 {
  font-size: 1rem;
  margin: 0.9rem 0 0.4rem;
}

.news-body ul,
.news-body ol {
  margin: 0 0 0.75rem 1.25rem;
}

.news-body blockquote {
  margin: 0 0 0.75rem;
  padding: 0.4rem 0.9rem;
  border-left: 3px solid var(--primary);
  background: #f8fafc;
  color: var(--text-muted);
}

.news-body a {
  color: var(--primary);
}

.news-body img,
.news-body video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0;
}

.news-body .video-embed,
.rich-content .video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* proporção 16:9 */
  margin: 0.75rem 0;
}

.news-body .video-embed iframe,
.rich-content .video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* ===== Editor de conteúdo rico ===== */
.rich-editor {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.rich-toolbar button {
  min-width: 30px;
  height: 30px;
  padding: 0 0.5rem;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
}

.rich-toolbar button:hover {
  background: #e2e8f0;
  border-color: var(--border);
}

.rich-toolbar .sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 0.25rem;
}

.rich-toolbar .uploading {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.rich-toolbar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rich-toolbar button.source-on {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.rich-select {
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  padding: 0 0.35rem;
  cursor: pointer;
}

.rich-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rich-color {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  height: 30px;
  padding: 0 0.35rem;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.rich-color:hover {
  background: #e2e8f0;
  border-color: var(--border);
}

.rich-color-hl span {
  background: #fde68a;
  border-radius: 3px;
  padding: 0 0.15rem;
  line-height: 1;
}

.rich-color input[type='color'] {
  width: 20px;
  height: 20px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
}

/* Barra de ajuste de mídia (imagem / vídeo / caixa de vídeo) */
.media-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  background: #eef5fc;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
}

.media-label {
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.15rem;
}

.media-group {
  display: inline-flex;
  gap: 0.15rem;
}

.media-toolbar button {
  min-width: 34px;
  height: 28px;
  padding: 0 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--text);
}

.media-toolbar button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.media-toolbar .media-remove {
  color: var(--danger);
  border-color: #fecaca;
  background: var(--danger-bg);
}

.media-toolbar .sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 0.1rem;
}

/* Realce da mídia selecionada */
.rich-content img,
.rich-content video,
.rich-content .video-embed {
  cursor: pointer;
}

.rich-content img.media-selected,
.rich-content video.media-selected,
.rich-content .video-embed.media-selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Editor de código-fonte (HTML) */
.rich-source {
  width: 100%;
  min-height: 220px;
  max-height: 480px;
  padding: 0.75rem 0.9rem;
  border: none;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono, ui-monospace, 'Courier New', monospace);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  resize: vertical;
}

.rich-content {
  min-height: 180px;
  max-height: 480px;
  overflow-y: auto;
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.6;
  outline: none;
}

.rich-content:empty::before {
  content: 'Escreva o conteúdo… use a barra acima para formatar e inserir mídia';
  color: var(--text-muted);
}

.rich-content img,
.rich-content video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.editor-error {
  margin: 0.5rem;
}

.news-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.news-form input,
.news-form textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
}

.news-form input:focus,
.news-form textarea:focus {
  border-color: var(--primary);
}

.news-form-actions {
  display: flex;
  gap: 0.5rem;
}

.empty-mural {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

/* ===== Menu suspenso de departamentos ===== */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-toggle {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
  color: var(--primary);
  background: #eff6ff;
}

.dropdown-toggle .caret {
  font-size: 0.7rem;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(8, 57, 68, 0.12);
  padding: 0.35rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
}

.dropdown-item {
  text-decoration: none;
  color: var(--text) !important;
  font-size: 0.88rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
}

.dropdown-item:hover {
  background: #eff6ff;
  color: var(--primary) !important;
}

/* ===== Portal do departamento ===== */
.dept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.dept-header h1 {
  margin: 0;
}

.dept-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 900px) {
  .dept-layout {
    grid-template-columns: 240px 1fr;
  }
}

.dept-sidebar h3 {
  margin-bottom: 0.5rem;
}

.dept-page-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dept-page-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border-radius: 6px;
  padding: 0.1rem 0.15rem 0.1rem 0.35rem;
}

.dept-page-list li.active {
  background: #eff6ff;
}

.dept-page-link {
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  padding: 0.35rem 0.1rem;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dept-page-list li.active .dept-page-link {
  color: var(--primary);
  font-weight: 600;
}

.dept-page-order {
  display: inline-flex;
  gap: 0.1rem;
  flex-shrink: 0;
}

.dept-page-order button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1;
}

.dept-page-order button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.dept-page-order button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.dept-content .news-card h2 {
  margin-bottom: 0.75rem;
}

.member-actions {
  display: inline-flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.badge-manager {
  background: #ede9fe;
  color: #6d28d9;
  margin-left: 0.4rem;
}

/* Estado vazio dos manuais (nenhum selecionado) */
.manual-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

.manuals-icon {
  width: 140px;
  height: auto;
  max-width: 60%;
  margin-bottom: 0.5rem;
}

/* Numeração automática dos manuais na lista (0001, 0002, …) */
.manual-num {
  font-family: var(--font-mono, ui-monospace, 'Courier New', monospace);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-dark);
  margin-right: 0.45rem;
}

.dept-page-list.manual-list li.active .manual-num {
  color: var(--primary);
}

/* ===== Visualizador de manual em PDF ===== */
.pdf-view {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.pdf-frame {
  width: 100%;
  height: 78vh;
  min-height: 480px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

/* ===== Acesso dos manuais (admin) ===== */
.manual-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

/* ===== Manuais: subcategorias ===== */
.manual-tree-icon,
.manual-subcat-icon {
  opacity: 0.85;
}

.manual-subcats {
  margin-top: 0.5rem;
}

.manual-subcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.manual-subcat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  text-align: left;
  cursor: pointer;
  padding: 1rem;
  border: 1px solid var(--border, #d9e0ea);
  transition: box-shadow 0.15s, transform 0.05s;
}

.manual-subcat-card:hover {
  box-shadow: 0 4px 14px rgba(8, 57, 68, 0.12);
}

.manual-subcat-card:active {
  transform: translateY(1px);
}

.manual-subcat-icon {
  font-size: 1.6rem;
}

.manual-subcat-name {
  font-weight: 600;
}

.manual-subcat-meta {
  font-size: 0.8rem;
}

.access-opt {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  cursor: pointer;
}

.access-opt input {
  margin-top: 0.15rem;
}

.access-groups {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.4rem 0 0.25rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-tint);
  max-height: 220px;
  overflow-y: auto;
}

.access-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}

/* ===== Busca nos manuais ===== */
.manual-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.manual-search {
  width: 240px;
  max-width: 60vw;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  outline: none;
  background: var(--surface);
}

.manual-search:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 150, 178, 0.15);
}

.search-results {
  margin-top: 0.5rem;
}

.search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.search-result-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.search-result {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: box-shadow 0.15s, transform 0.15s;
}

.search-result:hover {
  box-shadow: 0 6px 18px rgba(8, 57, 68, 0.1);
  transform: translateY(-1px);
}

.search-result-title {
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-result-snippet {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ===== Rodapé institucional ===== */
.site-footer {
  margin-top: auto;
  background: var(--navy);
  color: #cdd9e8;
  padding: 1.75rem 1.5rem 1.4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-slogan {
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #9fb3ca;
}

.footer-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.seg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e7eef7;
}

.seg-chip::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}

.seg-chip.seg-transporte { --dot: #4d94f0; }
.seg-chip.seg-guindaste { --dot: var(--seg-guindaste); }
.seg-chip.seg-eolica { --dot: #22c98f; }
.seg-chip.seg-engenharia { --dot: #a07bf0; }

.footer-copy {
  max-width: 1100px;
  margin: 1.1rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  color: #8ba3bd;
}

/* ===== Faixa de resumo dos serviços (opcional em páginas) ===== */
.service-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.service-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--tile, var(--accent));
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.service-tile .st-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.service-tile .st-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.service-tile.seg-transporte { --tile: var(--seg-transporte); }
.service-tile.seg-guindaste { --tile: var(--seg-guindaste); }
.service-tile.seg-eolica { --tile: var(--seg-eolica); }
.service-tile.seg-engenharia { --tile: var(--seg-engenharia); }

/* ===================== Responsivo (mobile / tablet) ===================== */
@media (max-width: 680px) {
  .content {
    padding: 1.25rem 1rem;
  }

  /* Topbar empilhada: marca, navegação e conta em linhas próprias */
  .topbar {
    padding: 0.55rem 0.9rem;
    gap: 0.5rem;
  }
  .topbar-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem 0.9rem;
  }
  .topbar nav {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }
  .topbar-right {
    width: 100%;
    justify-content: flex-end;
  }

  .page h1 {
    font-size: 1.3rem;
  }

  /* Menus suspensos não estouram a lateral da tela */
  .dropdown-menu {
    min-width: 180px;
    max-width: calc(100vw - 1.8rem);
  }

  /* Abas de administração roláveis na horizontal */
  .subnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .subnav a {
    white-space: nowrap;
  }

  /* Login mais compacto */
  .login-card {
    padding: 1.75rem 1.25rem;
  }

  /* Cabeçalhos de seção e busca ocupam a largura no celular */
  .mural-header,
  .dept-header {
    gap: 0.6rem;
  }
  .manual-header-actions {
    width: 100%;
    gap: 0.5rem;
  }
  .manual-search {
    width: 100%;
    max-width: none;
    order: -1;
  }
  .manual-header-actions .btn {
    flex: 1 1 auto;
  }

  /* Visualizador de PDF com altura confortável no celular */
  .pdf-frame {
    height: 70vh;
    min-height: 360px;
  }

  /* Rodapé empilhado */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}

@media (max-width: 420px) {
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .topbar nav a,
  .dropdown-toggle {
    padding: 0.35rem 0.65rem;
    font-size: 0.85rem;
  }
  .card {
    padding: 1.1rem;
  }
}

/* ===== Assinaturas: modal, busca no AD, quadro e lista de assinaturas ===== */

.sig-count {
  margin-left: 0.4rem;
  font-size: 0.72rem;
}

/* Modal genérico (coleta de assinatura) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 57, 68, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 1rem;
  overflow-y: auto;
  z-index: 1000;
}
.modal-card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  width: 100%;
  max-width: 560px;
}
.sign-modal .sign-doc-name {
  margin: -0.25rem 0 1rem;
  font-weight: 600;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.modal-head h2 {
  margin: 0;
}
.modal-close {
  border: none;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 0.25rem;
}
.modal-close:hover {
  color: var(--text);
}
.modal-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.field-label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin: 1.1rem 0 0.4rem;
}

/* Busca de usuário no AD */
.ad-search {
  position: relative;
}
.ad-results {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-height: 240px;
  overflow-y: auto;
}
button.ad-result,
li.ad-result {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.ad-results li:last-child .ad-result,
.ad-results li:last-child.ad-result {
  border-bottom: none;
}
button.ad-result:hover {
  background: var(--surface-tint);
}
.ad-result span.muted {
  font-size: 0.8rem;
}
.signer-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--primary);
  background: var(--surface-tint);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}
.signer-chip .muted {
  font-size: 0.82rem;
}

/* Quadro de assinatura */
.signature-pad {
  width: 100%;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
  display: block;
}
.sign-pad-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

/* Lista de assinaturas coletadas */
.sig-section {
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.sig-section h3 {
  margin: 0 0 0.85rem;
}
.sig-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.sig-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
}
.sig-image {
  width: 160px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-shrink: 0;
}
.sig-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-width: 0;
}
.sig-meta .muted {
  font-size: 0.8rem;
}
.sig-note {
  font-style: italic;
  color: var(--text);
}
.sig-when {
  margin-top: 0.2rem;
}
.sig-remove {
  flex-shrink: 0;
}

@media (max-width: 620px) {
  .sig-item {
    flex-wrap: wrap;
  }
  .sig-image {
    width: 120px;
    height: 54px;
  }
}

/* ===== Lista de presença: formulário, folha e impressão ===== */

.attendance-form .af-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.af-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.af-field > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}
.af-field.af-wide {
  grid-column: span 3;
}
.af-field input,
.af-field textarea {
  width: 100%;
}
@media (max-width: 720px) {
  .attendance-form .af-grid {
    grid-template-columns: 1fr 1fr;
  }
  .af-field.af-wide {
    grid-column: span 2;
  }
}

/* Adicionar participante (busca de usuário do portal) */
.add-participant {
  position: relative;
}
.add-participant input {
  width: 100%;
}
.add-participant .ad-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  background: var(--surface);
  z-index: 20;
  box-shadow: 0 10px 28px rgba(8, 57, 68, 0.14);
}

/* Folha (visual do documento) */
.sheet {
  padding: 0;
  overflow: hidden;
}
.sheet-title-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.9fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.sheet-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--border);
}
.sheet-brand .brand-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  font-size: 1.15rem;
}
.sheet-brand .brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.sheet-heading {
  margin: 0;
  align-self: center;
  text-align: center;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.sheet-cell {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.85rem;
  min-height: 3.1rem;
}
.sheet-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.sheet-value {
  font-size: 0.95rem;
  color: var(--text);
  white-space: pre-wrap;
  padding-top: 0.15rem;
}
.sheet-date {
  border-left: 1px solid var(--border);
}
.sheet-full {
  border-bottom: 1px solid var(--border);
}
.sheet-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.sheet-row-4 .sheet-cell + .sheet-cell {
  border-left: 1px solid var(--border);
}
.sheet-row-obj {
  display: grid;
  grid-template-columns: 3fr 1fr;
  border-bottom: 1px solid var(--border);
}
.sheet-row-obj .sheet-cell + .sheet-cell {
  border-left: 1px solid var(--border);
}
.sheet-participants-head {
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.82rem;
  padding: 0.5rem;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border);
}

/* Seletor de modo de participação (formulário de cabeçalho) */
.access-mode-field {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.access-mode-legend {
  font-weight: 600;
  font-size: 0.85rem;
}
.access-mode-opt {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.35;
  cursor: pointer;
}
.access-mode-opt input {
  margin-top: 0.2rem;
  width: auto;
  flex: none;
}

/* Etiqueta do modo, ao lado do cabeçalho da tabela (visão admin) */
.badge-mode {
  margin-left: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  vertical-align: middle;
}
.badge-mode.mode-open {
  background: #e3f2e8;
  color: #1b7a3d;
}
.badge-mode.mode-restricted {
  background: #eef1f6;
  color: #45506b;
}

/* Painel de auto-assinatura (visão do usuário comum) */
.self-sign-panel {
  padding: 1rem;
  text-align: center;
}
.self-sign-cta p,
.self-sign-done .attendance-sig {
  margin: 0.6rem auto;
}
.self-sign-cta {
  padding: 0.8rem 0;
}
.self-sign-done .attendance-sig {
  display: block;
  max-height: 90px;
}

.attendance-table {
  width: 100%;
  border-collapse: collapse;
}
.attendance-table th,
.attendance-table td {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.45rem 0.7rem;
  text-align: left;
  vertical-align: middle;
}
.attendance-table th {
  background: var(--surface-tint);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
}
.attendance-table th:last-child,
.attendance-table td:last-child {
  border-right: none;
}
.attendance-table .col-num {
  width: 3rem;
  text-align: center;
  color: var(--text-muted);
}
.attendance-table .col-sign {
  width: 220px;
}
.attendance-table .col-actions {
  width: 2.5rem;
  text-align: center;
}
.attendance-empty {
  text-align: center;
  padding: 1.25rem;
}
.attendance-sig {
  height: 46px;
  max-width: 200px;
  object-fit: contain;
}
.link-btn.danger {
  color: var(--danger);
  font-weight: 700;
}

@media (max-width: 720px) {
  .sheet-title-row {
    grid-template-columns: 1fr;
  }
  .sheet-brand,
  .sheet-date {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sheet-row-4,
  .sheet-row-obj {
    grid-template-columns: 1fr 1fr;
  }
}

/* Impressão: mostra apenas a folha */
@media print {
  .no-print {
    display: none !important;
  }
  .topbar,
  .site-footer {
    display: none !important;
  }
  .layout,
  .content,
  .page {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .dept-layout {
    display: block !important;
  }
  .card,
  .sheet {
    box-shadow: none !important;
    border: 1px solid #999 !important;
  }
  .attendance-table th {
    background: #eee !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Departamento no modal e edição inline na tabela */
.dept-select {
  width: 100%;
  margin-bottom: 0.5rem;
}
.col-dept {
  padding: 0.2rem 0.4rem !important;
}
.dept-inline-input {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  font: inherit;
  color: var(--text);
}
.dept-inline-input:hover {
  border-color: var(--border);
}
.dept-inline-input:focus {
  border-color: var(--primary);
  background: #fff;
  outline: none;
}
@media print {
  .dept-inline-input {
    border-color: transparent !important;
    background: transparent !important;
    padding: 0 !important;
  }
}

/* ===== Melhorias: lixeira, admin de depto e meus dados ===== */
.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

.user-chip {
  color: inherit;
  text-decoration: none;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}
.user-chip:hover {
  opacity: 0.8;
}

.small {
  font-size: 0.8rem;
}
.text-danger {
  color: var(--danger);
}

.page-narrow {
  max-width: 720px;
}

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

/* Grade de campos (formulários de perfil) */
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.field-grid label,
.member-edit > label,
.card > form > label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.field-grid input,
.member-edit input,
.member-edit textarea {
  width: 100%;
}
@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

/* Lista de membros detalhada (admin de depto) */
.member-list-detailed li {
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.member-list-detailed li:last-child {
  border-bottom: none;
}
.member-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.member-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.member-edit {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Meus dados — foto de perfil */
.profile-photo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-readonly {
  margin: 0.5rem 0;
}
